1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8889],{566:(e,t,r)=>{"use strict";r.d(t,{VersionsPill:()=>o});var n=r(19749),i=r(95155),l=r(92825);r(12115);let o=()=>{let e,t=(0,n.c)(2),{versionCount:r}=(0,l.useDocumentInfo)();return r?(t[0]!==r?(e=(0,i.jsx)("span",{className:"pill-version-count",children:r}),t[0]=r,t[1]=e):e=t[1],e):null}},844:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n=e=>e?.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},1150:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772),i=r(73274),l=r(99155);t.default={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>(0,n._)`{allowedValue: ${e}}`},code(e){let{gen:t,data:r,$data:o,schemaCode:a,schema:s}=e;o||s&&"object"==typeof s?e.fail$data((0,n._)`!${(0,i.useFunc)(t,l.default)}(${r}, ${a})`):e.fail((0,n._)`${s} !== ${r}`)}}},1585:(e,t,r)=>{for(var n=r(49509),i=r(49641).Buffer,l=Math.floor(0xffffff*Math.random()),o=p.index=parseInt(0xffffff*Math.random(),10),a=(void 0===n||"number"!=typeof n.pid?Math.floor(1e5*Math.random()):n.pid)%65535,s=(()=>{try{return _Buffer}catch(e){try{return i}catch(e){return null}}})(),u=function(e){return!!(null!=e&&e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e))},c=[],d=0;d<256;d++)c[d]=(d<=15?"0":"")+d.toString(16);var f=RegExp("^[0-9a-fA-F]{24}$"),h=[];for(d=0;d<10;)h[48+d]=d++;for(;d<16;)h[55+d]=h[87+d]=d++;function p(e){if(!(this instanceof p))return new p(e);if(e&&(e instanceof p||"ObjectID"===e._bsontype))return e;if(this._bsontype="ObjectID",null==e||"number"==typeof e){this.id=this.generate(e);return}var t=p.isValid(e);if(t||null==e)if(t&&"string"==typeof e&&24===e.length)return p.createFromHexString(e);else if(null!=e&&12===e.length)this.id=e;else if(null!=e&&"function"==typeof e.toHexString)return e;else throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");else throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters")}e.exports=p,p.default=p,p.createFromTime=function(e){var t,r;return new p((t=8,(8===(r=(r=e=parseInt(e,10)%0xffffffff).toString(16)).length?r:"00000000".substring(r.length,t)+r)+"0000000000000000"))},p.createFromHexString=function(e){if(void 0===e||null!=e&&24!==e.length)throw Error("Argument passed in must be a single String of 12 bytes or a string of 24 hex characters");for(var t="",r=0;r<24;)t+=String.fromCharCode(h[e.charCodeAt(r++)]<<4|h[e.charCodeAt(r++)]);return new p(t)},p.isValid=function(e){return null!=e&&("number"==typeof e||("string"==typeof e?12===e.length||24===e.length&&f.test(e):e instanceof p||(u(e)?p.isValid(e.toString("hex")):"function"==typeof e.toHexString&&!!s&&(e.id instanceof s||"string"==typeof e.id)&&(12===e.id.length||24===e.id.length&&f.test(e.id)))))},p.prototype={constructor:p,toHexString:function(){if(!this.id||!this.id.length)throw Error("invalid ObjectId, ObjectId.id must be either a string or a Buffer, but is ["+JSON.stringify(this.id)+"]");if(24===this.id.length)return this.id;if(u(this.id))return this.id.toString("hex");for(var e="",t=0;t<this.id.length;t++)e+=c[this.id.charCodeAt(t)];return e},equals:function(e){if(e instanceof p)return this.toString()===e.toString();if("string"==typeof e&&p.isValid(e)&&12===e.length&&u(this.id))return e===this.id.toString("binary");if("string"==typeof e&&p.isValid(e)&&24===e.length)return e.toLowerCase()===this.toHexString();if("string"==typeof e&&p.isValid(e)&&12===e.length)return e===this.id;if(null!=e&&(e instanceof p||e.toHexString))return e.toHexString()===this.toHexString();else return!1},getTimestamp:function(){var e,t=new Date;return e=u(this.id)?this.id[3]|this.id[2]<<8|this.id[1]<<16|this.id[0]<<24:this.id.charCodeAt(3)|this.id.charCodeAt(2)<<8|this.id.charCodeAt(1)<<16|this.id.charCodeAt(0)<<24,t.setTime(1e3*Math.floor(e)),t},generate:function(e){"number"!=typeof e&&(e=~~(Date.now()/1e3)),e=parseInt(e,10)%0xffffffff;var t=o=(o+1)%0xffffff;return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e,l>>16&255,l>>8&255,255&l,a>>8&255,255&a,t>>16&255,t>>8&255,255&t)}};var m=Symbol&&Symbol.for&&Symbol.for("nodejs.util.inspect.custom")||"inspect";p.prototype[m]=function(){return"ObjectID("+this+")"},p.prototype.toJSON=p.prototype.toHexString,p.prototype.toString=p.prototype.toHexString},1611:(e,t,r)=>{"use strict";r.d(t,{Iterable:()=>p});var n=r(19749),i=r(95155),l=r(84365),o=r(63344),a=r(41412),s=r(23999);r(12115);var u=r(20385),c=r(49947),d=r(79615),f=r(6722);let h="iterable-diff",p=e=>{let t,r=(0,n.c)(12),{baseVersionField:p,comparisonValue:m,field:y,locale:v,parentIsLocalized:b,versionValue:_}=e,{i18n:w,t:x}=(0,o.d)(),{selectedLocales:S}=(0,u.I)(),{config:C}=(0,a.c)();if(!(0,s.eE)(y)&&!(0,s.MT)(y))throw Error("Expected field to be an array or blocks type but got: ".concat(y.type));let k=Math.max(Array.isArray(_)?_.length:0,Array.isArray(m)?m.length:0);if(r[0]!==p||r[1]!==C||r[2]!==y||r[3]!==w||r[4]!==v||r[5]!==k||r[6]!==b||r[7]!==S||r[8]!==x||r[9]!==m||r[10]!==_){var T;t=(0,i.jsx)("div",{className:h,children:(0,i.jsxs)(c.$,{field:y,isIterable:!0,Label:"label"in y&&y.label&&"function"!=typeof y.label&&(0,i.jsxs)("span",{children:[v&&(0,i.jsx)("span",{className:"".concat(h,"__locale-label"),children:v}),(0,l.s)(y.label,w)]}),locales:S,parentIsLocalized:b,valueFrom:m,valueTo:_,children:[k>0&&(0,i.jsx)("div",{className:"".concat(h,"__rows"),children:Array.from({length:k},(e,t)=>{let r=(null==_?void 0:_[t])||{},n=(null==m?void 0:m[t])||{},{fields:l,versionFields:o}=(0,f.G)({baseVersionField:p,config:C,field:y,row:t,valueFromRow:n,valueToRow:r});if(!(null==o?void 0:o.length))return null;let a=String(t+1).padStart(2,"0"),u=(0,s.eE)(y)?"".concat(x("general:item")," ").concat(a):"".concat(x("fields:block")," ").concat(a);return(0,i.jsx)("div",{className:"".concat(h,"__row"),children:(0,i.jsx)(c.$,{fields:l,hideGutter:!0,Label:(0,i.jsxs)("div",{className:"".concat(h,"-label-container"),children:[(0,i.jsx)("div",{className:"".concat(h,"-label-prefix")}),(0,i.jsx)("span",{className:"".concat(h,"__label"),children:u})]}),locales:S,parentIsLocalized:b||y.localized,valueFrom:n,valueTo:r,children:(0,i.jsx)(d.RenderVersionFieldsToDiff,{versionFields:o})})},t)})}),0===k&&(0,i.jsx)("div",{className:"".concat(h,"__no-rows"),children:w.t("version:noRowsFound",{label:"labels"in y&&(null==(T=y.labels)?void 0:T.plural)?(0,l.s)(y.labels.plural,w):w.t("general:rows")})})]})}),r[0]=p,r[1]=C,r[2]=y,r[3]=w,r[4]=v,r[5]=k,r[6]=b,r[7]=S,r[8]=x,r[9]=m,r[10]=_,r[11]=t}else t=r[11];return t}},1777:(e,t,r)=>{"use strict";r.d(t,{NavHamburger:()=>o});var n=r(19749),i=r(95155),l=r(92825);r(12115);let o=e=>{let t,r,o=(0,n.c)(6),{baseClass:a}=e,{navOpen:s,setNavOpen:u}=(0,l.useNav)(),c="".concat(a,"__mobile-close");o[0]!==u?(t=()=>{u(!1)},o[0]=u,o[1]=t):t=o[1];let d=s?void 0:-1;return o[2]!==c||o[3]!==t||o[4]!==d?(r=(0,i.jsx)("button",{className:c,onClick:t,tabIndex:d,type:"button",children:(0,i.jsx)(l.Hamburger,{isActive:!0})}),o[2]=c,o[3]=t,o[4]=d,o[5]=r):r=o[5],r}},2097:(e,t,r)=>{"use strict";r.d(t,{P:()=>o,U:()=>l});
1var n=r(61721),i=r(32532);function l(e){let t=window.location.origin,r=r=>{if(r.origin!==t)return;let n=e.getRootElement();if(document.activeElement!==n)return;let l=r.data;if("string"==typeof l){let t;try{t=JSON.parse(l)}catch(e){return}if(t&&"nuanria_messaging"===t.protocol&&"request"===t.type){let n=t.payload;if(n&&"makeChanges"===n.functionId){let t=n.args;if(t){let[n,l,o,a,s]=t;e.update(()=>{let e=(0,i.vJq)();if((0,i.I2P)(e)){let t=e.anchor,u=t.getNode(),c=0,d=0;if((0,i.kFe)(u)&&n>=0&&l>=0&&(c=n,d=n+l,e.setTextNodeRange(u,c,u,d)),c===d&&""===o||(e.insertRawText(o),u=t.getNode()),(0,i.kFe)(u)){c=a,d=a+s;let t=u.getTextContentSize();c=c>t?t:c,d=d>t?t:d,e.setTextNodeRange(u,c,u,d)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}}let o=(0,i.vE9)({build:(e,t,r)=>(0,n.v)(t),config:(0,i.lVE)({disabled:"undefined"==typeof window}),name:"@lexical/dragon",register:(e,t,r)=>(0,n.QZ)(()=>r.getOutput().disabled.value?void 0:l(e))})},2133:(e,t,r)=>{"use strict";function n({field:e,index:t,parentIndexPath:r,parentPath:n="",parentSchemaPath:i}){let l=n.split("."),o=l?.[l.length-1]?.startsWith("_index-"),a=o?l.slice(0,-1).join("."):n,s=o?a:n;if("name"in e)return{indexPath:"",path:`${s?s+".":""}${e.name}`,schemaPath:`${i?i+".":""}${e.name}`};let u=`_index-${r?r+"-":""}${t}`,c=i.split(".");return{indexPath:`${r?r+"-":""}${t}`,path:`${s?s+".":""}${u}`,schemaPath:c?.[c.length-1]?.startsWith("_index-")?`${i}-${t}`:`${i?i+".":""}${u}`}}r.d(t,{Z:()=>n})},2426:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true}
vendor: 6,299 bytes, line 1
1,"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')},2921:(e,t,r)=>{"use strict";r.d(t,{Tabs:()=>d});var n=r(19749),i=r(95155),l=r(84365),o=r(63344);r(12115);var a=r(20385),s=r(49947),u=r(79615);let c="tabs-diff",d=e=>{let t,r=(0,n.c)(13),{baseVersionField:l,comparisonValue:o,field:s,versionValue:u}=e,{selectedLocales:d}=(0,a.I)();if(r[0]!==l.tabs||r[1]!==s||r[2]!==e||r[3]!==d||r[4]!==o||r[5]!==u){let n;r[7]!==s||r[8]!==e||r[9]!==d||r[10]!==o||r[11]!==u?(n=(t,r)=>{var n,l;if(!(null==t||null==(n=t.fields)?void 0:n.length))return null;let a=null==(l=s.tabs)?void 0:l[r];return a?(0,i.jsx)("div",{className:"".concat(c,"__tab"),children:(()=>{if("name"in a&&d&&a.localized)return d.map((r,n)=>{var l,s;let d={...e,comparisonValue:null==o||null==(l=o[t.name])?void 0:l[r],fieldTab:a,locale:r,tab:t,versionValue:null==u||null==(s=u[t.name])?void 0:s[r]};return(0,i.jsx)("div",{className:"".concat(c,"__tab-locale"),children:(0,i.jsx)("div",{className:"".concat(c,"__tab-locale-value"),children:(0,i.jsx)(f,{...d},r)})},[r,n].join("-"))});if(!("name"in t)||!t.name)return(0,i.jsx)(f,{fieldTab:a,...e,tab:t},r);{let n={...e,comparisonValue:null==o?void 0:o[t.name],fieldTab:a,tab:t,versionValue:null==u?void 0:u[t.name]};return(0,i.jsx)(f,{...n},r)}})()},r):null},r[7]=s,r[8]=e,r[9]=d,r[10]=o,r[11]=u,r[12]=n):n=r[12],t=(0,i.jsx)("div",{className:c,children:l.tabs.map(n)}),r[0]=l.tabs,r[1]=s,r[2]=e,r[3]=d,r[4]=o,r[5]=u,r[6]=t}else t=r[6];return t},f=e=>{var t;let r,d=(0,n.c)(10),{comparisonValue:f,fieldTab:h,locale:p,parentIsLocalized:m,tab:y,versionValue:v}=e,{i18n:b}=(0,o.d)(),{selectedLocales:_}=(0,a.I)();return(null==(t=y.fields)?void 0:t.length)?(d[0]!==h.fields||d[1]!==h.localized||d[2]!==b||d[3]!==p||d[4]!==m||d[5]!==_||d[6]!==y||d[7]!==f||d[8]!==v?(r=(0,i.jsx)(s.$,{fields:h.fields,Label:"label"in y&&y.label&&"function"!=typeof y.label&&(0,i.jsxs)("span",{children:[p&&(0,i.jsx)("span",{className:"".concat(c,"__locale-label"),children:p}),(0,l.s)(y.label,b)]}),locales:_,parentIsLocalized:m||h.localized,valueFrom:f,valueTo:v,children:(0,i.jsx)(u.RenderVersionFieldsToDiff,{versionFields:y.fields})}),d[0]=h.fields,d[1]=h.localized,d[2]=b,d[3]=p,d[4]=m,d[5]=_,d[6]=y,d[7]=f,d[8]=v,d[9]=r):r=d[9],r):null}},2925:(e,t,r)=>{"use strict";let n;r.d(t,{a:()=>em,b:()=>ev,c:()=>eb,d:()=>f,e:()=>h,f:()=>m,g:()=>y,h:()=>v,i:()=>b,j:()=>C,k:()=>E,l:()=>P,m:()=>O,n:()=>A,o:()=>M,p:()=>D});var i=r(19749),l=r(12115),o=r(95155),a=r(41412),s=r(94271),u=r(32532),c=r(70893),d=r(62002),f="u">typeof window&&"u">typeof window.document&&"u">typeof window.document.createElement;function h(e){let t=(0,i.c)(2),r=void 0===e?500:e,n=(0,l.useRef)(void 0),o;return t[0]!==r?(o=e=>new Promise(t=>{let i=()=>{e(),t()};"requestIdleCallback"in window?("cancelIdleCallback"in window&&void 0!==n.current&&cancelIdleCallback(n.current),n.current=requestIdleCallback(i,{timeout:r})):new Promise(e=>{setTimeout(e,100),requestAnimationFrame(()=>{setTimeout(e,0)})}).then(i)}),t[0]=r,t[1]=o):o=t[1],o}var p=(0,l.createContext)({currentView:"default",inheritable:!1,setCurrentView:()=>{}}),m=e=>{let t=y(),r=void 0!==e.currentView,n=t.inheritable&&(!!t.views||!!t.hasExplicitCurrentView),i=r||t.inheritable&&!!t.hasExplicitCurrentView,{children:s,currentView:u,inheritable:c,views:d}={children:e.children,currentView:n?t.currentView:e.currentView,inheritable:t.inheritable||e.inheritable,views:n&&t.views?t.views:e.views},[f,h]=(0,a.a)(u,"default"),m=d&&"default"!==f&&!d[f]?"default":f,v=(0,l.useMemo)(()=>{let e=d?d[m]:void 0;return{currentView:m,currentViewMap:e,hasExplicitCurrentView:i,inheritable:c,isControlledByParent:n,setCurrentView:h,views:d}},[m,c,i,n,h,d]);return(0,o.jsx)(p,{value:v,children:s})};function y(){return(0,l.use)(p)}var v=class{_x;_y;constructor(e,t){this._x=e,this._y=t}calcDeltaXTo({x:e}){return this.x-e}calcDeltaYTo({y:e}){return this.y-e}calcDistanceTo(e){return Math.sqrt(Math.pow(this.calcDeltaXTo(e),2)+Math.pow(this.calcDeltaYTo(e),2))}calcHorizontalDistanceTo(e){return Math.abs(this.calcDeltaXTo(e))}calcVerticalDistance(e){return Math.abs(this.calcDeltaYTo(e))}equals({x:e,y:t}){return this.x===e&&this.y===t}get x(){return this._x}get y(){return this._y}};function b(e){return e instanceof v}var _=e=>{let t=document.getElementById("slash-menu");if(!t)return;let r=t.getBoundingClientRect();r.top+r.height>window.innerHeight&&t.scrollIntoView({block:"center"}),r.top<0&&t.scrollIntoView({block:"center"}),e.scrollIntoView({block:"nearest"})};function w(e,t){let r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return r.top>n.top&&r.top<n.bottom}var x=(0,u.guI)("SCROLL_TYPEAHEAD_OPTION_INTO_VIEW_COMMAND");function S({anchorElementRef:e,close:t,editor:r,groups:n,menuRenderFn:i,resolution:o,shouldSplitNodeWithQuery:a=!1}){let[s,c]=(0,l.useState)(null),d=o.match&&o.match.matchingString||"",f=(0,l.useCallback)(e=>{let t=r.getRootElement();null!==t&&(t.setAttribute("aria-activedescendant",`slash-menu-popup__item-${e.key}
1`),c(e.key))},[r]),h=(0,l.useCallback)(()=>{if(null!==n&&null!=d){let e=n.flatMap(e=>e.items);e.length&&f(e[0])}},[n,f,d]);(0,l.useEffect)(()=>{h()},[d,h]);let p=(0,l.useCallback)(e=>{t(),r.update(()=>{let e=null!=o.match&&a?function(e){let t,r=(0,u.vJq)();if(!(0,u.I2P)(r)||!r.isCollapsed())return;let n=r.anchor;if("text"!==n.type)return;let i=n.getNode();if(!i.isSimpleText())return;let l=n.offset,o=i.getTextContent().slice(0,l),a=e.replaceableString.length,s=l-function(e,t,r){let n=r;for(let r=n;r<=t.length;r++)e.substring(e.length-r)===t.substring(0,r)&&(n=r);return n}(o,e.matchingString,a);if(!(s<0))return 0===s?[t]=i.splitText(l):[,t]=i.splitText(s,l),t}(o.match):null;e&&e.remove()}),setTimeout(()=>{let t;r.read(()=>{t=(0,u.vJq)()?.clone()}),r.update(()=>{t&&(0,u.n1P)(t)}),e.onSelect({editor:r,queryString:o.match?o.match.matchingString:""})},0)},[r,a,o.match,t]);return(0,l.useEffect)(()=>()=>{let e=r.getRootElement();null!==e&&e.removeAttribute("aria-activedescendant")},[r]),(0,l.useLayoutEffect)(()=>{null===n?c(null):null===s&&h()},[n,s,f,h]),(0,l.useEffect)(()=>(0,u.Sdt)(r.registerCommand(x,({item:e})=>!!e.ref&&null!=e.ref.current&&(_(e.ref.current),!0),u.AcJ)),[r,f]),(0,l.useEffect)(()=>(0,u.Sdt)(r.registerCommand(u.bbF,e=>{if(null!==n&&n.length&&null!==s){let t=n.flatMap(e=>e.items),i=t.findIndex(e=>e.key===s),l=i!==t.length-1?i+1:0,o=t[l];if(!o)return!1;f(o),null!=o.ref&&o.ref.current&&r.dispatchCommand(x,{index:l,item:o}),e.preventDefault(),e.stopImmediatePropagation()}return!0},u.JjG),r.registerCommand(u.UDz,e=>{if(null!==n&&n.length&&null!==s){let t=n.flatMap(e=>e.items),r=t.findIndex(e=>e.key===s),i=0!==r?r-1:t.length-1,l=t[i];if(!l)return!1;f(l),null!=l.ref&&l.ref.current&&_(l.ref.current),e.preventDefault(),e.stopImmediatePropagation()}return!0},u.JjG),r.registerCommand(u.Q$N,e=>(e.preventDefault(),e.stopImmediatePropagation(),t(),!0),u.AcJ),r.registerCommand(u.OXk,e=>{if(null===n||null===s)return!1;let t=n.flatMap(e=>e.items).find(e=>e.key===s);return!!t&&(e.preventDefault(),e.stopImmediatePropagation(),p(t),!0)},u.JjG),r.registerCommand(u.RTo,e=>{if(null===n||null===s)return!1;let t=n.flatMap(e=>e.items).find(e=>e.key===s);return!!t&&(null!==e&&(e.preventDefault(),e.stopImmediatePropagation()),p(t),!0)},u.JjG)),[p,t,r,n,s,f]),i(e,(0,l.useMemo)(()=>({groups:n,selectedItemKey:s,selectItemAndCleanUp:p,setSelectedItemKey:c}),[p,s,n]),o.match?o.match.matchingString:"")}var C="\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'\"~=<>_:;";function k(e,t,r){let n=(0,u.peL)(r);if(null===n||!n.isCollapsed)return!1;let i=n.anchorNode,l=n.anchorOffset;if(null==i||null==l)return!1;try{t.setStart(i,e),t.setEnd(i,l>1?l:1)}catch{return!1}return!0}function T(e,t){return 0===t&&e.getEditorState().read(()=>{let e=(0,u.vJq)();if((0,u.I2P)(e)){let t=e.anchor.getNode().getPreviousSibling();return(0,u.kFe)(t)&&t.isTextEntity()}return!1})}function N(e){l.startTransition?l.startTransition(e):e()}var E=(0,u.guI)("ENABLE_SLASH_MENU_COMMAND");function P({anchorClassName:e,anchorElem:t,groups:r,menuRenderFn:n,onClose:a,onOpen:c,onQueryChange:d,triggerFn:h}){let[p]=(0,s.DF)(),[m,y]=(0,l.useState)(null),v=function(e,t,r,n){let o,a=(0,i.c)(14),[u]=(0,s.DF)(),c;a[0]===Symbol.for("react.memo_cache_sentinel")?(c=f?document.createElement("div"):null,a[0]=c):c=a[0];let d=(0,l.useRef)(c),h;a[1]!==e||a[2]!==n||a[3]!==u||a[4]!==t?(h=()=>{if(null===d.current||void 0===parent)return;let r=u.getRootElement(),i=d.current,l=i.firstChild;if(null!==r&&null!==t){let{height:o,width:a}=t.getRect(),{left:s,top:u}=t.getRect(),c=u;if(u-=e.getBoundingClientRect().top+window.scrollY,s-=e.getBoundingClientRect().left+window.scrollX,i.style.left=`${s+window.scrollX}px`,i.style.height=`${o}px`,i.style.width=`${a}px`,null!==l){let t=l.getBoundingClientRect(),n=t.height,a=t.width,d=r.getBoundingClientRect(),f="rtl"===document.dir||"rtl"===document.documentElement.dir,h=e.getBoundingClientRect(),p=Math.max(0,d.left);if(!f&&s+a>d.right)i.style.left=`${d.right-a+window.scrollX}px`;else if(f&&t.left<p){let e=p+a-h.left;i.style.left=`${e+window.scrollX}px`}c+n+32>window.innerHeight&&!(c<0)?i.style.top=`${u+32-n+window.scrollY-(o+24)}px`:i.style.top=`${u+window.scrollY+32}px`}i.isConnected||(null!=n&&(i.className=n),i.setAttribute("aria-label","Slash menu"),i.setAttribute("role","listbox"),i.style.display="block",i.style.position="absolute",e.append(i)),i.setAttribute("id","slash-menu"),d.current=i,r.setAttribute("aria-controls","slash-menu")}},a[1]=e,a[2]=n,a[3]=u,a[4]=t,a[5]=h):h=a[5];let p=h,m,y;return a[6]!==u||a[7]!==p||a[8]!==t?(m=()=>{let e=u.getRootElement();if(null!==t)return p(),()=>{null!==e&&e.removeAttribute("aria-controls");let t=d.current;null!==t&&t.isConnected&&(t.remove(),t.removeAttribute("id"))}},y=[u,p,t],a[6]=u,a[7]=p,a[8]=t,a[9]=m,a[10]=y):(m=a[9],y=a[10]),(0,l.useEffect)(m,y),a[11]!==t||a[12]!==r?(o=e=>{null!==t&&(e||r(null))},a[11]=t,a[12]=r,a[13]=o):o=a[13],function(e,t,r,n){let o=(0,i.c)(
17),[a]=(0,s.DF)(),u,c;o[0]!==a||o[1]!==r||o[2]!==n||o[3]!==e||o[4]!==t?(u=()=>{let i=t.current;if(null!=i&&null!=e){let e=a.getRootElement(),t=null!=e?function(e,t){let r=getComputedStyle(e),n="absolute"===r.position,i=t?/(auto|scroll|hidden)/:/(auto|scroll)/;if("fixed"===r.position)return document.body;for(let t=e;t=t.parentElement;)if(r=getComputedStyle(t),!(n&&"static"===r.position)&&i.test(r.overflow+r.overflowY+r.overflowX))return t;return document.body}(e,!1):document.body,l=!1,o=w(i,t),s=function(){l||(window.requestAnimationFrame(function(){r(),l=!1}),l=!0);let e=w(i,t);e!==o&&(o=e,n?.(e))},u=new ResizeObserver(r);return window.addEventListener("resize",r),document.addEventListener("scroll",s,{capture:!0,passive:!0}),u.observe(i),()=>{u.disconnect(),window.removeEventListener("resize",r),document.removeEventListener("scroll",s,!0)}}},c=[a,n,r,e,t],o[0]=a,o[1]=r,o[2]=n,o[3]=e,o[4]=t,o[5]=u,o[6]=c):(u=o[5],c=o[6]),(0,l.useEffect)(u,c)}(t,d,p,o),d}(t,m,y,e),b=(0,l.useCallback)(()=>{y(null),null!=a&&null!==m&&a()},[a,m]),_=(0,l.useCallback)(e=>{y(e),null!=c&&null===m&&c(e)},[c,m]);return(0,l.useEffect)(()=>(0,u.Sdt)(p.registerCommand(E,({node:e})=>(p.getEditorState().read(()=>{let t={leadOffset:0,matchingString:"",replaceableString:""};if(!T(p,t.leadOffset)&&null!==e){let e=p._window??window,r=e.document.createRange();null!==k(t.leadOffset,r,e)&&N(()=>_({getRect:()=>r.getBoundingClientRect(),match:t}));return}}),!0),u.AcJ)),[p,_]),(0,l.useEffect)(()=>{let e=p.registerUpdateListener(()=>{p.getEditorState().read(()=>{let e,t=p._window??window,r=t.document.createRange(),n=(0,u.vJq)(),i=(p.getEditorState().read(()=>{let t=(0,u.vJq)();(0,u.I2P)(t)&&(e=function(e){let t=e.anchor;if("text"!==t.type)return null;let r=t.getNode();if(!r.isSimpleText())return null;let n=t.offset;return r.getTextContent().slice(0,n)}(t))}),e);if(!(0,u.I2P)(n)||!n.isCollapsed()||void 0===i||null===r)return void b();let l=h({editor:p,query:i});if(d(l?l.matchingString:null),null!==l&&!T(p,l.leadOffset)&&null!==k(l.leadOffset,r,t))return void N(()=>_({getRect:()=>r.getBoundingClientRect(),match:l}));b()})});return()=>{e()}},[p,h,d,m,b,_]),null===v.current||null===m||null===p?null:(0,o.jsx)(S,{anchorElementRef:v,close:b,editor:p,groups:r,menuRenderFn:n,resolution:m,shouldSplitNodeWithQuery:!0})}var O=class e{_bottom;_left;_right;_top;constructor(e,t,r,n){let[i,l]=t<=n?[t,n]:[n,t],[o,a]=e<=r?[e,r]:[r,e];this._top=i,this._right=a,this._left=o,this._bottom=l}static fromDOM(t){let{height:r,left:n,top:i,width:l}=t.getBoundingClientRect();return e.fromLWTH(n,l,i,r)}static fromDOMRect(t){let{height:r,left:n,top:i,width:l}=t;return e.fromLWTH(n,l,i,r)}static fromLTRB(t,r,n,i){return new e(t,r,n,i)}static fromLWTH(t,r,n,i){return new e(t,n,t+r,n+i)}static fromPoints(t,r){let{x:n,y:i}=t,{x:l,y:o}=r;return e.fromLTRB(n,i,l,o)}contains(e){if(b(e)){let{x:t,y:r}=e,n=r<this._top,i=r>this._bottom,l=t<this._left,o=t>this._right;return{reason:{isOnBottomSide:i,isOnLeftSide:l,isOnRightSide:o,isOnTopSide:n},result:!n&&!i&&!l&&!o}}let{bottom:t,left:r,right:n,top:i}=e;return i>=this._top&&i<=this._bottom&&t>=this._top&&t<=this._bottom&&r>=this._left&&r<=this._right&&n>=this._left&&n<=this._right}distanceFromPoint(e){let t=this.contains(e);if(t.result)return{distance:0,isOnBottomSide:t.reason.isOnBottomSide,isOnLeftSide:t.reason.isOnLeftSide,isOnRightSide:t.reason.isOnRightSide,isOnTopSide:t.reason.isOnTopSide};let r=0,n=0;return e.x<this._left?r=this._left-e.x:e.x>this._right&&(r=e.x-this._right),e.y<this._top?n=this._top-e.y:e.y>this._bottom&&(n=e.y-this._bottom),{distance:Math.sqrt(r*r+n*n),isOnBottomSide:e.y>this._bottom,isOnLeftSide:e.x<this._left,isOnRightSide:e.x>this._right,isOnTopSide:e.y<this._top}}equals({bottom:e,left:t,right:r,top:n}){return n===this._top&&e===this._bottom&&t===this._left&&r===this._right}generateNewRect({bottom:t=this.bottom,left:r=this.left,right:n=this.right,top:i=this.top}){return new e(r,i,n,t)}intersectsWith(e){let{height:t,left:r,top:n,width:i}=e,{height:l,left:o,top:a,width:s}=this;return(r+i>=o+s?r+i:o+s)-(r<=o?r:o)<=i+s&&(n+t>=a+l?n+t:a+l)-(n<=a?n:a)<=t+l}get bottom(){return this._bottom}get height(){return Math.abs(this._bottom-this._top)}get left(){return this._left}get right(){return this._right}get top(){return this._top}get width(){return Math.abs(this._left-this._right)}},$=new WeakMap;function A(e,t){$.has(e)||$.set(e,new Map);let r=$.get(e);for(let[e,n]of Object.entries(t))if(!(!n||"object"!=typeof n)){if("blocks"===e){for(let[e,t]of Object.entries(n))r.set(`block:${e}`,t);continue}if("inlineBlocks"===e){for(let[e,t]of Object.entries(n))r.set(`inlineBlock:${e}`,t);continue}r.set(e,n)}}function M(e){$.delete(e)}function j(e,t,r){let n=$.get(e);if("block"===t&&r?.__fields?.blockType){let e=r.__fields.blockType;return n?.get(`block:${e}`)}if("inlineBlock"===t&&r?.__fields?.blockType){let e=r.__fields.blockType;return n?.get(`inlineBlock:${e}`)}return n?.get(t)}function D({editorConfig:e,nodeViews:t}){let r=function({nodes:e}){return e.map(e=>"node"in e?e.node:e)}({nodes:e.features.nodes});if(t){let e=new Set;for(let[r,n]of Object.entries(t))n&&"object"==typeof n&&("blocks"===r&&Object.keys(n).length>0?e.add("block"):"inlineBlocks"===r&&Object.keys(n).length>0?e.add("inlineBlock"):e.add(r));for(let t of r)if("getType"in t){let r=t.getType();e.has(r)&&function({node:e,nodeType:t}){if("getType"in e&&e.getType()===t){if(e.prototype._originalDecorate||(e.prototype._originalDecorate=e.prototype.decorate),e.prototype._originalCreateDOM||(e.prototype._originalCreateDOM=e.prototype.createDOM),e.prototype.decorate&&!e.prototype._decorateOverridden){e.prototype._decorateOverridden=!0;let r=!!e.prototype.createDOM;e.prototype.decorate=function(n,i){let o=j(n,t,this);if(o){if(o.Component)return o.Component({config:i,editor:n,isEditor:!0,isJSXConverter:!1,node:this});if(o.createDOM&&o.html){let e="function"==typeof o.html?o.html({config:i,editor:n,isEditor:!0,isJSXConverter:!1,node:this}):o.html;return l.createElement("span",{dangerouslySetInnerHTML:{__html:e}})}if(o.html&&r&&!o.createDOM)return l.createElement(l.Fragment);if("block"===t){if(o.Block||o.Label)return e.prototype._originalDecorate.call(this,n,i,o.Block,o.Label)}else if("inlineBlock"===t&&(o.Block||o.Label))return e.prototype._originalDecorate.call(this,n,i,o.Block,o.Label)}return e.prototype._originalDecorate.call(this,n,i)}}
1e.prototype.createDOM&&!e.prototype._createDOMOverridden&&(e.prototype._createDOMOverridden=!0,e.prototype.createDOM=function(r,n){let i=j(n,t,this);if(i){if(i.createDOM)return i.createDOM({config:r,editor:n,node:this});if(i.html){let e="function"==typeof i.html?i.html({config:r,editor:n,isEditor:!0,isJSXConverter:!1,node:this}):i.html,t=document.createElement("div");return t.innerHTML=e,t.firstElementChild||t}}return e.prototype._originalCreateDOM.call(this,r,n)})}}({node:t,nodeType:r})}}return r}var I=/^[\t ]*$/,F=/^(\s*)(\d+)\.\s/,R=/^(\s*)[-*+]\s/,L=/^(\s*)(?:-\s)?\s?(\[(\s|x)?\])\s/i,B=/^(#{1,6})\s/,z=/^>\s/,K=/^[ \t]*(\\`\\`\\`|```)(\w+)?/,U=/[ \t]*(\\`\\`\\`|```)$/,W=/^[ \t]*```[^`]+(?:(?:`{1,2}|`{4,})[^`]+)*```(?:[^`]|$)/,J=/^\|(.+)\|\s?$/,q=/^(\| ?:?-*:? ?)+\|\s?$/,V=/^[ \t]*<[a-z_][\w-]*(?:\s[^<>]*)?\/?>/i,H=/^[ \t]*<\/[a-z_][\w-]*\s*>/i,G=(0,u.urt)("mdHardLineBreak",{parse:e=>"string"==typeof e&&/^(\\| {2,})$/.test(e)?e:""});function Y(e){if(e.endsWith("\\"))return[e.slice(0,-1),"\\"];let t=e.match(/^(.*?\S)( {2,})$/);return t?[t[1],t[2]]:null}function Z(e){let t=(0,u.WKo)(),r=function(e){let t=e.getChildren(),r=t.length-1,n=t[r];if(!(0,u.kFe)(n))return null;let i=n.getTextContent(),l=Y(i);if(null!==l){let[e,t]=l;return n.setTextContent(e),t}return/^ {2,}$/.test(i)&&function(e,t){for(let r=t-1;r>=0&&!(0,u.wH$)(e[r]);r--)if(/\S/.test(e[r].getTextContent()))return!0;return!1}(t,r)?(n.setTextContent(""),i):null}(e);return null!==r&&(0,u.Chh)(t,G,r),t}var X=e=>(t,r,n)=>{let i=t.getPreviousSibling(),l=t.getNextSibling(),o=(0,c.i)("check"===e?"x"===n[3]:void 0);if((0,c.HY)(l)&&l.getListType()===e){let e=l.getFirstChild();null!==e?e.insertBefore(o):l.append(o),t.remove()}else if((0,c.HY)(i)&&i.getListType()===e)i.append(o),t.remove();else{let r=(0,c.DE)(e,"number"===e?Number(n[2]):void 0);r.append(o),t.replace(r)}o.append(...r),o.select(0,0);let a=function(e){let t=e.match(/\t/g),r=e.match(/ /g),n=0;return t&&(n+=t.length),r&&(n+=Math.floor(r.length/4)),n}(n[1]);a&&o.setIndent(a)},Q=(e,t,r)=>{let n=[],i=e.getChildren(),l=0;for(let o of i)if((0,c.Mz)(o)){if(1===o.getChildrenSize()){let e=o.getFirstChild();if((0,c.HY)(e)){n.push(Q(e,t,r+1));continue}}let i=" ".repeat(4*r),a=e.getListType(),s="number"===a?`${e.getStart()+l}. `:"check"===a?`- [${o.getChecked()?"x":" "}] `:"- ";n.push(i+s+t(o)),l++}return n.join(` 2`)},ee={type:"element",dependencies:[d.jL],export:(e,t)=>{if(!(0,d.Pi)(e))return null;let r=Number(e.getTag().slice(1));return"#".repeat(r)+" "+t(e)},regExp:B,replace:(n=e=>{let t="h"+e[1].length;return(0,d.fi)(t)},(e,t,r)=>{let i=n(r);i.append(...t),e.replace(i),i.select(0,0)})},et={type:"element",dependencies:[d.dJ],export:(e,t)=>{if(!(0,d.jd)(e))return null;let r=t(e).split(` 3`),n=[];for(let e of r)n.push("> "+e);return n.join(` 4`)},regExp:z,replace:(e,t,r,n)=>{if(n){let r=e.getPreviousSibling();if((0,d.jd)(r)){r.splice(r.getChildrenSize(),0,[Z(r),...t]),r.select(0,0),e.remove();return}}let i=(0,d.xi)();i.append(...t),e.replace(i),i.select(0,0)}},er={type:"element",dependencies:[c.v5,c.YW],export:(e,t)=>(0,c.HY)(e)?Q(e,t,0):null,regExp:R,replace:X("bullet")},en=(c.v5,c.YW,X("check"),{type:"element",dependencies:[c.v5,c.YW],export:(e,t)=>(0,c.HY)(e)?Q(e,t,0):null,regExp:F,replace:X("number")});function ei(e){return(t,r)=>(0,d.Pi)(t)&&t.getTag()==="h"+e?"#".repeat(e)+" "+r(t):null}function el(e,t){let r={};for(let n of e){let e=t(n);e&&(r[e]?r[e].push(n):r[e]=[n])}return r}function eo(e){let t=el(e,e=>e.type);return{element:t.element||[],multilineElement:t["multiline-element"]||[],textFormat:t["text-format"]||[],textMatch:t["text-match"]||[]}}ei(1),ei(2),ei(3),ei(4),ei(5),ei(6);var ea=/[!-/:-@[-`{-~\s]/,es=/^\s{0,3}$/;function eu(e){if(!(0,u.bSg)(e))return!1;let t=e.getFirstChild();return null==t||1===e.getChildrenSize()&&(0,u.kFe)(t)&&es.test(t.getTextContent())}function ec(e,t,r,n,i){let l=[],o=e.getChildren();n||(n=[]),i||(i=[]);e:for(let e of o){var a;for(let o of r){if(!o.export)continue;let a=o.export(e,e=>ec(e,t,r,n,[...i,...n]),(e,r)=>ed(e,r,t,n,i));if(null!=a){l.push(a);continue e}}(0,u.wH$)(e)?l.push((a=e,(0,u.I8X)(a,G)+` 5`)):(0,u.kFe)(e)?l.push(ed(e,e.getTextContent(),t,n,i)):(0,u.ff4)(e)?l.push(ec(e,t,r,n,i)
5):(0,u.Cyw)(e)&&l.push(e.getTextContent())}return l.join("")}function ed(e,t,r,n,i){let l=t.trim(),o=l;e.hasFormat("code")||(o=o.replace(/([*_`~\\])/g,"\\$1"));let a="",s="",u="",c=ef(e,!0),d=ef(e,!1),f=new Set;for(let t of r){let r=t.format[0],i=t.tag;eh(e,r)&&!f.has(r)&&(f.add(r),eh(c,r)&&n.find(e=>e.tag===i)||(n.push({format:r,tag:i}),a+=i))}for(let t=0;t<n.length;t++){let r=n[t],l=eh(e,r.format),o=eh(d,r.format);if(l&&o)continue;let a=[...n];for(;a.length>t;){let e=a.pop();i&&e&&i.find(t=>t.tag===e.tag)||(e&&"string"==typeof e.tag&&(l?o||(u+=e.tag):s+=e.tag),n.pop())}break}return o=a+o+u,s+t.replace(l,()=>o)}function ef(e,t){let r=t?e.getPreviousSibling():e.getNextSibling();if(!r){let n=e.getParentOrThrow();n.isInline()&&(r=t?n.getPreviousSibling():n.getNextSibling())}for(;r;){if((0,u.ff4)(r)){if(!r.isInline())break;let e=t?r.getLastDescendant():r.getFirstDescendant();if((0,u.kFe)(e))return e;r=t?r.getPreviousSibling():r.getNextSibling()}if((0,u.kFe)(r))return r;if(!(0,u.ff4)(r))break}return null}function eh(e,t){return(0,u.kFe)(e)&&e.hasFormat(t)}function eg(e,t,r){let n=r.length;for(let i=t;i>=n;i--){let t=i-n;if(ep(e,t,r,0,n)&&" "!==e[t+n])return t}return -1}function ep(e,t,r,n,i){for(let l=0;l<i;l++)if(e[t+l]!==r[n+l])return!1;return!0}function em(e,t=ey){let r=eo(t),n=el(r.textFormat,({tag:e})=>e[e.length-1]),i=el(r.textMatch,({trigger:e})=>e);for(let r of t){let t=r.type;if("element"===t||"text-match"===t||"multiline-element"===t){for(let t of r.dependencies)if(!e.hasNode(t))throw Error("MarkdownShortcuts: missing dependency %s for transformer. Ensure node dependency is included in editor initial config."+t.getType())}}return e.registerUpdateListener(({dirtyLeaves:t,editorState:l,prevEditorState:o,tags:a})=>{if(a.has("collaboration")||a.has("historic")||e.isComposing())return;let s=l.read(u.vJq),c=o.read(u.vJq);if(!(0,u.I2P)(c)||!(0,u.I2P)(s)||!s.isCollapsed()||s.is(c))return;let d=s.anchor.key,f=s.anchor.offset,h=l._nodeMap.get(d);(0,u.kFe)(h)&&t.has(d)&&(1===f||!(f>c.anchor.offset+1))&&e.update(()=>{var e;if(h.hasFormat("code"))return;let t=h.getParent();null!==t&&(function(e,t,r,n){let i=e.getParent();if(!(0,u.IqF)(i)||e.getFirstChild()!==t)return!1;let l=t.getTextContent();if(" "!==l[r-1])return!1;for(let{regExp:i,replace:o}of n){let n=l.match(i);if(n&&n[0].length===(n[0].endsWith(" ")?r:r-1)){let i=t.getNextSiblings(),[l,a]=t.splitText(r);if(l?.remove(),!1!==o(e,a?[a,...i]:i,n,!1))return!0}}return!1}(t,h,e=s.anchor.offset,r.element)||function(e,t,r,n){let i=e.getParent();if(!(0,u.IqF)(i)||e.getFirstChild()!==t)return!1;let l=t.getTextContent();if(" "!==l[r-1])return!1;for(let{regExpEnd:i,regExpStart:o,replace:a}of n){if(i&&!("optional"in i)||i&&"optional"in i&&!i.optional)continue;let n=l.match(o);if(n&&n[0].length===(n[0].endsWith(" ")?r:r-1)){let i=t.getNextSiblings(),[l,o]=t.splitText(r);if(l?.remove(),!1!==a(e,o?[o,...i]:i,n,null,null,!1))return!0}}return!1}(t,h,e,r.multilineElement)||function(e,t,r){let n=e.getTextContent(),i=r[n[t-1]];if(null==i)return!1;for(let r of(t<n.length&&(n=n.slice(0,t)),i)){if(!r.replace||!r.regExp)continue;let t=n.match(r.regExp);if(null===t)continue;let i=t.index||0,l=i+t[0].length,o;return 0===i?[o]=e.splitText(l):[,o]=e.splitText(i,l),o&&(o.selectNext(0,0),r.replace(o,t)),!0}return!1}(h,e,i)||function(e,t,r){let n=e.getTextContent(),i=t-1,l=n[i],o=r[l];if(o)for(let t of o){let{tag:r}=t,o=r.length,a=i-o+1;if(o>1&&!ep(n,a,r,0,o)||" "===n[a-1])continue;let s=n[i+1];if(!1===t.intraword&&s&&!ea.test(s))continue;let c=e,d=eg(n,a,r),f=c;for(;d<0&&(f=f.getPreviousSibling())&&!(0,u.wH$)(f);)if((0,u.kFe)(f)){let e=f.getTextContent();c=f,d=eg(e,e.length,r)}if(d<0||c===e&&d+o===a)continue;let h=c.getTextContent();if(d>0&&h[d-1]===l)continue;let p=h[d-1];if(!1===t.intraword&&p&&!ea.test(p))continue;let m=e.getTextContent(),y=m.slice(0,a)+m.slice(i+1);e.setTextContent(y);let v=c===e?y:h;c.setTextContent(v.slice(0,d)+v.slice(d+o));let b=(0,u.vJq)(),_=(0,u.uTE)();(0,u.n1P)(_);let w=i-o*(c===e?2:1)+1;for(let r of(_.anchor.set(c.__key,d,"text"),_.focus.set(e.__key,w,"text"),t.format))_.hasFormat(r)||_.formatText(r);
5for(let e of(_.anchor.set(_.focus.key,_.focus.offset,_.focus.type),t.format))_.hasFormat(e)&&_.toggleFormat(e);return(0,u.I2P)(b)&&(_.format=b.format),!0}}(h,e,n))})})}var ey=[ee,et,er,en,{type:"text-format",format:["code"],tag:"`"},{type:"text-format",format:["bold","italic"],tag:"***"},{type:"text-format",format:["bold","italic"],intraword:!1,tag:"___"},{type:"text-format",format:["bold"],tag:"**"},{type:"text-format",format:["bold"],intraword:!1,tag:"__"},{type:"text-format",format:["highlight"],tag:"=="},{type:"text-format",format:["italic"],tag:"*"},{type:"text-format",format:["italic"],intraword:!1,tag:"_"},{type:"text-format",format:["strikethrough"],tag:"~~"}];function ev(e,t=ey,r,n=!1,i=!0){let l=n?e:function(e,t){let r=e.split(` 6`),n=!1,i=[],l=0;for(let e=0;e<r.length;e++){let o=r[e],a=i[i.length-1],s=e<r.length-1?Y(o):null,u=void 0!==a&&null!==Y(a);if(W.test(o)){i.push(o);continue}if(U.test(o)){0===l&&(n=!0),1===l&&(n=!1),l>0&&l--,i.push(o);continue}if(K.test(o)){n=!0,l++,i.push(o);continue}if(n){i.push(o);continue}I.test(o)||I.test(a)||!a||B.test(a)||B.test(o)||z.test(o)||F.test(o)||R.test(o)||L.test(o)||J.test(o)||q.test(o)||u||!t||V.test(o)||H.test(o)||V.test(a)||H.test(a)||U.test(a)?i.push(o):i[i.length-1]=a+" "+(null===s?o.trim():o.trimStart())}return i.join(` 7`)}(e,i);return(function(e,t=!1){let r=eo(e),n=function(e){let t={},r={},n=[];for(let i of e){let{tag:e}=i;t[e]=i;let l=e.replace(/([*^+])/g,"\\$1");n.push(l),1===e.length?r[e]=RegExp(`(?<![\\\\${l}])(${l})((\\\\${l})?.*?[^${l}\\s](\\\\${l})?)((?<!\\\\)|(?<=\\\\\\\\))(${l})(?![\\\\${l}])`):r[e]=RegExp(`(?<!\\\\)(${l})((\\\\${l})?.*?[^\\s](\\\\${l})?)((?<!\\\\)|(?<=\\\\\\\\))(${l})(?!\\\\)`)}return{fullMatchRegExpByTag:r,openTagsRegExp:RegExp(`(?<![\\\\])(${n.join("|")})`,"g"),transformersByTag:t}}(r.textFormat);return(e,i)=>{let l=e.split(` 8`),o=l.length,a=i||(0,u.NiT)();a.clear();for(let e=0;e<o;e++){let t=l[e],[i,o]=function(e,t,r,n){for(let i of r){let{handleImportAfterStartMatch:r,regExpEnd:l,regExpStart:o,replace:a}=i,s=e[t]?.match(o);if(!s)continue;if(r){let l=r({lines:e,rootNode:n,startLineIndex:t,startMatch:s,transformer:i});if(null===l)continue;if(l)return l}let u="object"==typeof l&&"regExp"in l?l.regExp:l,c=l&&"object"==typeof l&&"optional"in l?l.optional:!l,d=t,f=e.length;for(;d<f;){let r=u?e[d]?.match(u):null;if(!r&&(!c||c&&d<f-1)||r&&t===d&&r.index===s.index){d++;continue}let i=[];if(r&&t===d)i.push(e[t].slice(s[0].length,-r[0].length));else for(let n=t;n<=d;n++){let l=e[n];if(n===t){let e=l.slice(s[0].length);i.push(e)}else if(n===d&&r){let e=l.slice(0,-r[0].length);i.push(e)}else i.push(l)}if(!1!==a(n,null,s,r,i,!0))return[!0,d];break}}return[!1,t]}(l,e,r.multilineElement,a);if(i){e=o;continue}!function(e,t,r,n,i){let l=(0,u.sTu)(e),o=(0,u.lJ7)();for(let{regExp:n,replace:i}of(o.append(l),t.append(o),r)){let t=e.match(n);if(t&&(l.setTextContent(e.slice(t[0].length)),!1!==i(o,[l],t,!0)))break}if(function e(t,r,n){let i=function(e,t){let r=function(e,t){let r=e.match(t.openTagsRegExp);if(null==r)return null;for(let n of r){let r=n.replace(/^\s/,""),i=t.fullMatchRegExpByTag[r];if(null==i)continue;let l=e.match(i),o=t.transformersByTag[r];if(null!=l&&null!=o){if(!1!==o.intraword)return l;let{index:t=0}=l,r=e[t-1],n=e[t+l[0].length];if((!r||ea.test(r))&&(!n||ea.test(n)))return l}}return null}(e.getTextContent(),t);if(!r)return null;let n=r.index||0,i=n+r[0].length,l=t.transformersByTag[r[1]];return{endIndex:i,match:r,startIndex:n,transformer:l}}(t,r),l=function(e,t){let r,n,i,l;for(let o of t){if(!o.replace||!o.importRegExp)continue;let t=e.getTextContent().match(o.importRegExp);if(!t)continue;let a=t.index||0,s=o.getEndIndex?o.getEndIndex(e,t):a+t[0].length;!1!==s&&(void 0===r||void 0===n||a<r&&s>n)&&(r=a,n=s,i=o,l=t)}return void 0===r||void 0===n||void 0===i||void 0===l?null:{endIndex:n,match:l,startIndex:r,transformer:i}}(t,n);if(i&&l&&(i.startIndex<=l.startIndex&&i.endIndex>=l.endIndex?l=null:i=null),i){let l=function(e,t,r,n,i){let l=e.getTextContent(),o,a,s;if(i[0]===l?s=e:0===t?[s,o]=e.splitText(r):[a,s,o]=e.splitText(t,r),s.setTextContent(i[2]),n)for(let e of n.format)s.hasFormat(e)||s.toggleFormat(e);return{nodeAfter:o,nodeBefore:a,transformedNode:s}}(t,i.startIndex,i.endIndex,i.transformer,i.match);
8l.nodeAfter&&(0,u.kFe)(l.nodeAfter)&&!l.nodeAfter.hasFormat("code")&&e(l.nodeAfter,r,n),l.nodeBefore&&(0,u.kFe)(l.nodeBefore)&&!l.nodeBefore.hasFormat("code")&&e(l.nodeBefore,r,n),l.transformedNode&&(0,u.kFe)(l.transformedNode)&&!l.transformedNode.hasFormat("code")&&e(l.transformedNode,r,n)}else if(l){var o,a,s,c;let i,d,f,h=(o=l.startIndex,a=l.endIndex,s=l.transformer,c=l.match,(0===o?[f,i]=t.splitText(a):[d,f,i]=t.splitText(o,a),s.replace)?{nodeAfter:i,nodeBefore:d,transformedNode:(f?s.replace(f,c):void 0)||void 0}:null);if(!h)return;h.nodeAfter&&(0,u.kFe)(h.nodeAfter)&&!h.nodeAfter.hasFormat("code")&&e(h.nodeAfter,r,n),h.nodeBefore&&(0,u.kFe)(h.nodeBefore)&&!h.nodeBefore.hasFormat("code")&&e(h.nodeBefore,r,n),h.transformedNode&&(0,u.kFe)(h.transformedNode)&&!h.transformedNode.hasFormat("code")&&e(h.transformedNode,r,n)}let d=t.getTextContent().replace(/\\([*_`~])/g,"$1");t.setTextContent(d)}(l,n,i),o.isAttached()&&e.length>0){let e=o.getPreviousSibling();if((0,u.bSg)(e)||(0,d.jd)(e)||(0,c.HY)(e)){let t=e;if((0,c.HY)(e)){let r=e.getLastDescendant();t=null==r?null:(0,u.BtT)(r,c.Mz)}null!=t&&t.getTextContentSize()>0&&(t.splice(t.getChildrenSize(),0,[Z(t),...o.getChildren()]),o.remove())}}}(t,a,r.element,n,r.textMatch)}for(let e of a.getChildren())!t&&eu(e)&&a.getChildrenSize()>1&&e.remove();null!==(0,u.vJq)()&&a.selectStart()}})(t,n)(l,r)}function eb(e=ey,t,r=!1){return(function(e,t=!1){let r=eo(e),n=[...r.multilineElement,...r.element],i=!t,l=r.textFormat.filter(e=>1===e.format.length).sort((e,t)=>e.format.includes("code")&&!t.format.includes("code")?1:!e.format.includes("code")&&t.format.includes("code")?-1:0);return e=>{let t=[],o=(e||(0,u.NiT)()).getChildren();return o.forEach((e,a)=>{let s=function(e,t,r,n){for(let i of t){if(!i.export)continue;let t=i.export(e,e=>ec(e,r,n));if(null!=t)return t}return(0,u.ff4)(e)?ec(e,r,n):(0,u.Cyw)(e)?e.getTextContent():null}(e,n,l,r.textMatch);null!=s&&t.push(i&&a>0&&!eu(e)&&!eu(o[a-1])?` 9`.concat(s):s)}),t.join(` 10`)}})(e,r)(t)}},3401:(e,t,r)=>{"use strict";r.d(t,{E:()=>a});var n=r(12115),i=r(46641),l=r(82396),o=["axis","item"],a=(0,n.forwardRef)((e,t)=>n.createElement(l.P,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:o,tooltipPayloadSearcher:i.uN,categoricalChartProps:e,ref:t}))},3718:(e,t,r)=>{"use strict";r.d(t,{a:()=>m,b:()=>y});var n=r(48643),i=r(19749),l=r(95155),o=r(92825),a=r(12115),s=r(58647),u=r(63344),c=r(78234),d=r(15526),f=r(85055),h=r(32532),p=({data:e,featureKey:t,fieldMapOverride:r,handleDrawerSubmit:i,schemaFieldsPathOverride:h,schemaPath:p,schemaPathSuffix:m})=>{let{t:y}=(0,u.d)(),{id:v,collectionSlug:b,getDocPreferences:_,globalSlug:w}=(0,o.useDocumentInfo)(),{fields:x}=(0,o.useDocumentForm)(),S=(0,s.a)(),C=(0,a.useRef)(new AbortController),[k,T]=(0,a.useState)(!1),{fieldProps:{featureClientSchemaMap:N}}=(0,n.b)(),{getFormState:E}=(0,o.useServerFunctions)(),P=h??`${p}.lexical_internal_feature.${t}${m?`.${m}`:""}`,O=r??N[t]?.[P];(0,a.useEffect)(()=>{let t=new AbortController;return(async()=>{let{state:r}=await E({id:v,collectionSlug:b,data:e??{},docPermissions:{fields:!0},docPreferences:await _(),documentFormState:(0,d.KS)(x,{excludeFiles:!0}),globalSlug:w,initialBlockData:e,operation:"update",readOnly:!S,renderAllFields:!0,schemaPath:P,signal:t.signal});T(r)})(),()=>{(0,c.eS)(t)}},[P,v,e,E,b,S,w,_,x]);let $=(0,a.useCallback)(async({formState:e})=>{(0,c.eS)(C.current);let t=new AbortController;C.current=t;let{state:r}=await E({id:v,collectionSlug:b,docPermissions:{fields:!0},docPreferences:await _(),documentFormState:(0,d.KS)(x,{excludeFiles:!0}),formState:e,globalSlug:w,initialBlockFormState:e,operation:"update",readOnly:!S,schemaPath:P,signal:t.signal});return r||e},[E,v,S,b,_,x,w,P]);return(0,a.useEffect)(()=>()=>{(0,c.eS)(C.current)},[]),!1===k?null:(0,l.jsxs)(o.Form,{beforeSubmit:[$],disableValidationOnSubmit:!0,fields:Array.isArray(O)?O:[],initialState:k,onChange:[$],onSubmit:i,uuid:(0,f.A)(),children:[(0,l.jsx)(o.RenderFields,{fields:Array.isArray(O)?O:[],forceRender:!0,parentIndexPath:"",parentPath:"",parentSchemaPath:P,permissions:!0,readOnly:!S}),(0,l.jsx)(o.FormSubmit,{children:y("fields:saveChanges")}
10)]})},m=e=>{let t,r=(0,i.c)(15),{className:n,data:a,drawerSlug:s,drawerTitle:u,featureKey:c,fieldMapOverride:d,handleDrawerSubmit:f,schemaFieldsPathOverride:h,schemaPath:m,schemaPathSuffix:y}=e,{closeModal:v}=(0,o.useModal)(),b=u??"",_;return r[0]!==v||r[1]!==s||r[2]!==f?(_=(e,t)=>{v(s),setTimeout(()=>{f(e,t)},1)},r[0]=v,r[1]=s,r[2]=f,r[3]=_):_=r[3],r[4]!==n||r[5]!==a||r[6]!==s||r[7]!==c||r[8]!==d||r[9]!==h||r[10]!==m||r[11]!==y||r[12]!==b||r[13]!==_?(t=(0,l.jsx)(o.EditDepthProvider,{children:(0,l.jsx)(o.Drawer,{className:n,slug:s,title:b,children:(0,l.jsx)(p,{data:a,featureKey:c,fieldMapOverride:d,handleDrawerSubmit:_,schemaFieldsPathOverride:h,schemaPath:m,schemaPathSuffix:y})})}),r[4]=n,r[5]=a,r[6]=s,r[7]=c,r[8]=d,r[9]=h,r[10]=m,r[11]=y,r[12]=b,r[13]=_,r[14]=t):t=r[14],t},y=(0,h.guI)("INSERT_UPLOAD_WITH_DRAWER_COMMAND")},3965:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(81708),i=r(79772),l=r(61974),o=r(73274);t.default={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>(0,i._)`{additionalProperty: ${e.additionalProperty}}`},code(e){let{gen:t,schema:r,parentSchema:a,data:s,errsCount:u,it:c}=e;if(!u)throw Error("ajv implementation error");let{allErrors:d,opts:f}=c;if(c.props=!0,"all"!==f.removeAdditional&&(0,o.alwaysValidSchema)(c,r))return;let h=(0,n.allSchemaProperties)(a.properties),p=(0,n.allSchemaProperties)(a.patternProperties);function m(e){t.code((0,i._)`delete ${s}[${e}]`)}function y(n){if("all"===f.removeAdditional||f.removeAdditional&&!1===r)return void m(n);if(!1===r){e.setParams({additionalProperty:n}),e.error(),d||t.break();return}if("object"==typeof r&&!(0,o.alwaysValidSchema)(c,r)){let r=t.name("valid");"failing"===f.removeAdditional?(v(n,r,!1),t.if((0,i.not)(r),()=>{e.reset(),m(n)})):(v(n,r),d||t.if((0,i.not)(r),()=>t.break()))}}function v(t,r,n){let i={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};!1===n&&Object.assign(i,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(i,r)}t.forIn("key",s,r=>{h.length||p.length?t.if(function(r){let l;if(h.length>8){let e=(0,o.schemaRefOrVal)(c,a.properties,"properties");l=(0,n.isOwnProperty)(t,e,r)}else l=h.length?(0,i.or)(...h.map(e=>(0,i._)`${r} === ${e}`)):i.nil;return p.length&&(l=(0,i.or)(l,...p.map(t=>(0,i._)`${(0,n.usePattern)(e,t)}.test(${r})`))),(0,i.not)(l)}(r),()=>y(r)):y(r)}),e.ok((0,i._)`${u} === ${l.default.errors}`)}}},4057:()=>{},4186:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;let n=r(73274),i=r(51616),l=r(24648),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!function e(t){for(let r in t){if(a.has(r))return!0;let n=t[r];if(Array.isArray(n)&&n.some(e)||"object"==typeof n&&e(n))return!0}return!1}(e):!!t&&function e(t){let r=0;for(let i in t)if("$ref"===i||(r++,!o.has(i)&&("object"==typeof t[i]&&(0,n.eachItem)(t[i],t=>r+=e(t)),r===1/0)))return 1/0;return r}(e)<=t)};let a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(e,t="",r){!1!==r&&(t=d(t));let n=e.parse(t);return u(e,n)}function u(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=s,t._getFullPath=u;let c=/#\/?$/;function d(e){return e?e.replace(c,""):""}t.normalizeId=d,t.resolveUrl=function(e,t,r){return r=d(r),e.resolve(t,r)};let f=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};let{schemaId:r,uriResolver:n}=this.opts,o=d(e[r]||t),a={"":o},u=s(n,o,!1),c={},h=new Set;return l(e,{allKeys:!0},(e,t,n,i)=>{if(void 0===i)return;let l=u+t,o=a[i];function s(t){let r=this.opts.uriResolver.resolve;if(t=d(o?r(o,t):t),h.has(t))throw m(t);h.add(t);let n=this.refs[t];return"string"==typeof n&&(n=this.refs[n]),"object"==typeof n?p(e,n.schema,t):t!==d(l)&&("#"===t[0]?(p(e,c[t],t),c[t]=e):this.refs[t]=l),t}function y(e){if("string"==typeof e){if(!f.test(e))throw Error(`invalid anchor "${e}"`);s.call(this,`#${e}`)}}"string"==typeof e[r]&&(o=s.call(this,e[r])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),a[t]=o}),c;function p(e,t,r){if(void 0!==t&&!i(e,t))throw m(r)}function m(e){return Error(`reference "${e}" resolves to more than one schema`)}}},4873:(e,t,r)=>{"use strict";var n=r(12115).__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;t.c=function(e){return n.H.useMemoCache(e)}},5034:()=>{},5394:(e,t,r)=>{"use strict";r.d(t,{j:()=>function e(t,r){var i,l;if(t===r)return!0;
10if(t&&r&&(i=t.constructor)===r.constructor){if(i===Date)return t.getTime()===r.getTime();if(i===RegExp)return t.toString()===r.toString();if(i===Array){if((l=t.length)===r.length)for(;l--&&e(t[l],r[l]););return -1===l}if(!i||"object"==typeof t){for(i in l=0,t)if(n.call(t,i)&&++l&&!n.call(r,i)||!(i in r)||!e(t[i],r[i]))return!1;return Object.keys(r).length===l}}return t!=t&&r!=r}});var n=Object.prototype.hasOwnProperty},5718:()=>{},6001:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(49509);let i=e=>{let{adminRoute:t,apiRoute:r,includeBasePath:i,path:l="",relative:o=!1,serverURL:a}=e,s=n.env.NEXT_BASE_PATH||e.basePath||"",u=t||r,c=[u&&"/"!==u&&u,l&&l].filter(Boolean).join("")||"/",d=(s+c).replace(/\/$/,"")||"/";if(o||!a)return(i??!t)&&s?d:c;let f=new URL(a);return new URL(d,f.origin).toString()}},6005:(e,t,r)=>{"use strict";r.d(t,{NavWrapper:()=>o});var n=r(19749),i=r(95155),l=r(92825);r(12115);let o=e=>{let t,r,o=(0,n.c)(11),{baseClass:a,children:s}=e,{hydrated:u,navOpen:c,navRef:d,shouldAnimate:f}=(0,l.useNav)(),h=c&&"".concat(a,"--nav-open"),p=f&&"".concat(a,"--nav-animate"),m=u&&"".concat(a,"--nav-hydrated");o[0]!==a||o[1]!==h||o[2]!==p||o[3]!==m?(t=[a,h,p,m].filter(Boolean),o[0]=a,o[1]=h,o[2]=p,o[3]=m,o[4]=t):t=o[4];let y=t.join(" "),v=!c||void 0,b="".concat(a,"__scroll");return o[5]!==s||o[6]!==d||o[7]!==y||o[8]!==v||o[9]!==b?(r=(0,i.jsx)("aside",{className:y,inert:v,children:(0,i.jsx)("div",{className:b,ref:d,children:s})}),o[5]=s,o[6]=d,o[7]=y,o[8]=v,o[9]=b,o[10]=r):r=o[10],r}},6434:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"/_next/static/media/payload-favicon-light.b8a65007.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAANlBMVEVMaXH///////////////////////////////////////////////////////////////////+kpd7DAAAAEnRSTlMAdo/15mvEgxwpDQSgS8ayQj0ZIUK/AAAACXBIWXMAAC4jAAAuIwF4pT92AAAAOklEQVR4nC3LQQKAIAhFwaeAH9Sy7n/ZNs1+gBqjgMxL8j4Ja4v0hu7jD1toE0EXzQvqTWY3yQL+vj4zgwFqjTrzFAAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},6652:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s,_J:()=>o,j1:()=>a});let n=String.prototype.replace,i=/%20/g,l={RFC1738:"RFC1738",RFC3986:"RFC3986"},o={RFC1738:function(e){return n.call(e,i,"+")},RFC3986:function(e){return String(e)}},a=l.RFC1738;l.RFC3986;let s=l.RFC3986},6722:(e,t,r)=>{"use strict";function n({baseVersionField:e,config:t,field:r,row:n,valueFromRow:i,valueToRow:l}){let o=[],a=[];if("array"===r.type&&"fields"in r)o=r.fields,a=e.rows?.length?e.rows[n]:e.fields;else if("blocks"===r.type)if(l?.blockType===i?.blockType)o=(t?.blocksMap?.[l?.blockType]??(("blocks"in r||"blockReferences"in r)&&(r.blockReferences??r.blocks)?.find(e=>"string"!=typeof e&&e.slug===l?.blockType)||{fields:[]})).fields,a=e.rows?.length?e.rows[n]:e.fields;else{let s=t?.blocksMap?.[l?.blockType]??(("blocks"in r||"blockReferences"in r)&&(r.blockReferences??r.blocks)?.find(e=>"string"!=typeof e&&e.slug===l?.blockType)||{fields:[]}),u=t?.blocksMap?.[i?.blockType]??(("blocks"in r||"blockReferences"in r)&&(r.blockReferences??r.blocks)?.find(e=>"string"!=typeof e&&e.slug===i?.blockType)||{fields:[]});o=[...new Map([...s.fields,...u.fields].map(e=>[e.name,e])).values()],a=e.rows?.length?e.rows[n]:e.fields}return{fields:o,versionFields:a}}r.d(t,{G:()=>n})},7239:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(25703);function i(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&n._P in e?e[n._P](t):e instanceof Date?new e.constructor(t):new Date(t)}},7525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;let n=r(79772),i=r(73274),l=r(61974);function o(e,t){let r=e.const("err",t);e.if((0,n._)`${l.default.vErrors} === null`,()=>e.assign(l.default.vErrors,(0,n._)`[${r}]`),(0,n._)`${l.default.vErrors}.push(${r})`),e.code((0,n._)`${l.default.errors}++`)}function a(e,t){let{gen:r,validateName:i,schemaEnv:l}=e;l.$async?r.throw((0,n._)`new ${e.ValidationError}(${t})`):(r.assign((0,n._)`${i}.errors`,t),r.return(!1))}t.keywordError={message:({keyword:e})=>(0,n.str)`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,n.str)`"${e}" keyword must be ${t} ($data)`:(0,n.str)`"${e}
10" keyword is invalid ($data)`},t.reportError=function(e,r=t.keywordError,i,l){let{it:s}=e,{gen:c,compositeRule:d,allErrors:f}=s,h=u(e,r,i);(null!=l?l:d||f)?o(c,h):a(s,(0,n._)`[${h}]`)},t.reportExtraError=function(e,r=t.keywordError,n){let{it:i}=e,{gen:s,compositeRule:c,allErrors:d}=i;o(s,u(e,r,n)),c||d||a(i,l.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(l.default.errors,t),e.if((0,n._)`${l.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,n._)`${l.default.vErrors}.length`,t),()=>e.assign(l.default.vErrors,null)))},t.extendErrors=function({gen:e,keyword:t,schemaValue:r,data:i,errsCount:o,it:a}){if(void 0===o)throw Error("ajv implementation error");let s=e.name("err");e.forRange("i",o,l.default.errors,o=>{e.const(s,(0,n._)`${l.default.vErrors}[${o}]`),e.if((0,n._)`${s}.instancePath === undefined`,()=>e.assign((0,n._)`${s}.instancePath`,(0,n.strConcat)(l.default.instancePath,a.errorPath))),e.assign((0,n._)`${s}.schemaPath`,(0,n.str)`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign((0,n._)`${s}.schema`,r),e.assign((0,n._)`${s}.data`,i))})};let s={keyword:new n.Name("keyword"),schemaPath:new n.Name("schemaPath"),params:new n.Name("params"),propertyName:new n.Name("propertyName"),message:new n.Name("message"),schema:new n.Name("schema"),parentSchema:new n.Name("parentSchema")};function u(e,t,r){let{createErrors:o}=e.it;return!1===o?(0,n._)`{}`:function(e,t,r={}){let{gen:o,it:a}=e,u=[function({errorPath:e},{instancePath:t}){let r=t?(0,n.str)`${e}${(0,i.getErrorPath)(t,i.Type.Str)}`:e;return[l.default.instancePath,(0,n.strConcat)(l.default.instancePath,r)]}(a,r),function({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:l}){let o=l?t:(0,n.str)`${t}/${e}`;return r&&(o=(0,n.str)`${o}${(0,i.getErrorPath)(r,i.Type.Str)}`),[s.schemaPath,o]}(e,r)];return function(e,{params:t,message:r},i){let{keyword:o,data:a,schemaValue:u,it:c}=e,{opts:d,propertyName:f,topSchemaRef:h,schemaPath:p}=c;i.push([s.keyword,o],[s.params,"function"==typeof t?t(e):t||(0,n._)`{}`]),d.messages&&i.push([s.message,"function"==typeof r?r(e):r]),d.verbose&&i.push([s.schema,u],[s.parentSchema,(0,n._)`${h}${p}`],[l.default.data,a]),f&&i.push([s.propertyName,f])}(e,t,u),o.object(...u)}(e,t,r)}},8271:(e,t,r)=>{"use strict";r.d(t,{Z:()=>l});let n=JSON;if(void 0===i)var i={};let l=i||{};i.JSOX=l,l.version="1.2.121";let o="function"==typeof BigInt,a=["ab","u8","cu8","s8","u16","s16","u32","s32","u64","s64","f32","f64"],s=null,u=null,c=[ArrayBuffer,Uint8Array,Uint8ClampedArray,Int8Array,Uint16Array,Int16Array,Uint32Array,Int32Array,null,null,Float32Array,Float64Array],d={true:!0,false:!1,null:null,NaN:NaN,Infinity:1/0,undefined:void 0};class f extends Date{constructor(e,t){super(e),this.ns=t||0}}l.DateNS=f;let h=[];function p(){let e=h.pop();return e||(e={context:0,current_proto:null,current_class:null,current_class_field:0,arrayType:-1,valueType:0,elements:null}),e}function m(e){h.push(e)}l.updateContext=function(){};let y=[];l.escape=function(e){let t,r="";if(!e)return e;for(t=0;t<e.length;t++)('"'==e[t]||"\\"==e[t]||"`"==e[t]||"'"==e[t])&&(r+="\\"),r+=e[t];return r};let v=new WeakMap,b=new Map,_=new Map,w=[];l.reset=function(){v=new WeakMap,b=new Map,_=new Map,w=[]},l.begin=function(e,t){let r,n={name:null,value_type:0,string:"",contains:null,className:null},i={line:1,col:1},l=0,s=new Map,u=0,d=!0,h=!1,v=!1,b=null,w=null,x,S={first:null,last:null,saved:null,push(e){let t=this.saved;t?(this.saved=t.next,t.node=e,t.next=null,t.prior=this.last):t={node:e,next:null,prior:this.last},this.last?this.last.next=t:this.first=t,this.last=t,this.length++},pop(){let e=this.last;return(this.last=e.prior)||(this.first=null),e.next=this.saved,this.last&&(this.last.next=null),e.next||(e.first=null),this.saved=e,this.length--,e.node},length:0},C=[],k={},T=null,N=null,P=0,O=-1,$=0,A=0,M=!1,j=!1,D=!1,I=!1,F=!1,R={first:null,last:null,saved:null,push(e){let t=this.saved;t?(this.saved=t.next,t.node=e,t.next=null,t.prior=this.last):t={node:e,next:null,prior:this.last},this.last?this.last.next=t:this.first=t,this.last=t},shift(){let e=this.first;return e?((this.first=e.next)||(this.last=null),e.next=this.saved,this.saved=e,e.node):null},unshift(e){let t=this.saved;this.saved=t.next,t.node=e,t.next=this.first,t.prior=null,this.first||(this.last=t),this.first=t}},L=null,B=!1,z=!1,K=!1,U=!1,W=!1,J=!1,q=!1,V=0,H=0,G=!1,Y=!1,Z=!1;function X(e){throw Error(`${e} at ${l} [${i.line}:${i.col}]`)}return{fromJSOX(e,t,r){if(s.get(e))throw Error("Existing fromJSOX has been registered for prototype");if(t||(t=function(){}),t&&!("constructor"in t))throw Error("Please pass a prototype like thing...");s.set(e,{protoCon:t.prototype.constructor,cb:r})},registerFromJSOX(e,t){throw Error("registerFromJSOX is deprecated, please update to use fromJSOX instead:"+e+t.toString())},finalError(){0!==A&&(1===A&&X("Comment began at end of document"),3===A&&X("Open comment '/*' is missing close at end of document"),4===A&&X("Incomplete '/* *' close at end of document")),B&&X("Incomplete string")}
10,value(){this.finalError();let e=b;return b=void 0,e},reset(){u=0,d=!0,R.last&&(R.last.next=R.save),R.save=R.first,R.first=R.last=null,S.last&&(S.last.next=S.save),S.length=0,S.save=R.first,S.first=S.last=null,x=void 0,$=0,C=[],k={},T=null,N=null,P=0,n.value_type=0,n.name=null,n.string="",n.className=null,i.line=1,i.col=1,v=!1,A=0,G=!1,B=!1,K=!1,U=!1,Y=!1},usePrototype(e,t){k[e]=t},write(r){let n;if("string"!=typeof r&&void 0!==r&&(r=String(r)),!d)throw Error("Parser is still in an error state, please reset before resuming");for(n=this._write(r,!1);n>0&&("function"==typeof t&&function e(r,n){let i,l,o=r[n];if(o&&"object"==typeof o)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(void 0!==(l=e(o,i))?o[i]=l:delete o[i]);return t.call(r,n,o)}({"":b},""),b=e(b),!(n<2));n=this._write());},parse(e,t){"string"!=typeof e&&(e=String(e)),this.reset();let r=this._write(e,!0);if(r>0){let e=this.value();if(void 0===e&&r>1)throw Error("Pending value could not complete");return"function"==typeof t?function e(r,n){let i,l,o=r[n];if(o&&"object"==typeof o)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(void 0!==(l=e(o,i))?o[i]=l:delete o[i]);return t.call(r,n,o)}({"":e},""):e}this.finalError()},_write(e,t){let k,X,Q,ee=0;function et(e,t){throw Error(`${e} '${String.fromCodePoint(t)}' unexpected at ${l} (near '${Q.substr(l>4?l-4:0,l>4?3:l-1)}[${String.fromCodePoint(t)}]${Q.substr(l,10)}') [${i.line}:${i.col}]`)}function er(){n.value_type=0,n.string="",n.contains=null}function en(){let e=null;switch(n.value_type){case 5:if(!(n.string.length>13)&&(13!=n.string.length||!(n[0]>"2"))||Y||F||I||j||(Z=!0),Z)if(o)return BigInt(n.string);else throw Error("no builtin BigInt()",0);if(Y){let e=n.string.match(/\.(\d\d\d\d*)/),t=e?e[1]:null;if(!t||t.length<4){let e=new Date(n.string);return isNaN(e.getTime())&&et("Bad Date format",k),e}{let e=t.substr(3);for(;e.length<6;)e+="0";let r=new f(n.string,Number(e));return isNaN(r.getTime())&&et("Bad DateNS format"+r+r.getTime(),k),r}}return(v?-1:1)*Number(n.string);case 4:if(n.className){if((e=s.get(n.className))||(e=_.get(n.className)),e&&e.cb)return n.className=null,e.cb.call(n.string);throw Error("Double string error, no constructor for: new "+n.className+"("+n.string+")")}return n.string;case 2:return!0;case 3:return!1;case 7:case 8:return NaN;case 9:return-1/0;case 10:return 1/0;case 1:return null;case -1:case 12:return;case 6:if(n.className&&((e=s.get(n.className))||(e=_.get(n.className)),n.className=null,e&&e.cb))return n.contains=e.cb.call(n.contains);return n.contains;case 13:if(O>=0){let e;if(e=n.contains.length?E(n.contains[0]):E(n.string),0===O)return O=-1,e;{let t=new c[O](e);return O=-1,t}}if(-2===O){let e,t=w,r=n.contains.length;for(e=0;e<r;e++){let i=n.contains[e],l=t[i];if(!l){let i=S.first,o=0;for(;i&&o<r&&o<S.length;){let r=n.contains[o];if(!i.next||r!==i.next.node.name)break;if(i.next)if("number"==typeof r){let e=i.next.node.elements;if(e&&r>=e.length)if(o===S.length-1){console.log("This is actually at the current object so use that",o,n.contains,x),l=x,o++,i=i.next;break}else{if(i.next.next&&r===e.length){l=i.next.next.node.elements,i=i.next,o++,t=l;continue}l=x,o++;break}}else if(r!==i.next.node.name){l=i.next.node.elements[r],e=o;break}else l=i.next.next?i.next.next.node.elements:x;else l=l[r];i=i.next,o++}e=o<r?o-1:o}if("object"==typeof l&&!l)throw Error("Path did not resolve properly:"+n.contains+" at "+i+"("+e+")");t=l}return O=-3,t}if(n.className&&((e=s.get(n.className))||(e=_.get(n.className)),n.className=null,e&&e.cb))return e.cb.call(n.contains);return n.contains;default:console.log("Unhandled value conversion.",n)}}function ei(){if(-3==O){6===n.value_type&&x.push(n.contains),O=-1;return}12===n.value_type?(x.push(void 0),delete x[x.length-1]):x.push(en()),er()}function el(){if(-3===O&&13===n.value_type){er(),O=-1;return}if(12===n.value_type)return;!n.name&&N&&(n.name=N.fields[P++]);let e=en();T&&T.protoDef&&T.protoDef.cb?(e=T.protoDef.cb.call(x,n.name,e))&&(x[n.name]=e):x[n.name]=e,er()}function eo(e){if(0!==u){switch(v&&et("Negative outside of quotes, being converted to a string (would lose count of leading '-' characters)",e),u){case 31:switch(n.value_type){case 2:n.string+="true";break;case 3:n.string+="false";break;case 1:n.string+="null";break;case 10:n.string+="Infinity";break;case 9:n.string+="-Infinity",et("Negative outside of quotes, being converted to a string",e);break;case 8:n.string+="NaN";break;case 7:n.string+="-NaN",et("Negative outside of quotes, being converted to a string",e);break;case -1:n.string+="undefined";break;case 4:case 0:break;default:console.log("Value of type "+n.value_type+" is not restored...")}break;case 1:n.string+="t";break;case 2:n.string+="tr";break;case 3:n.string+="tru";break;case 5:n.string+="f";break;case 6:n.string+="fa";break;case 7:n.string+="fal";break;case 8:n.string+="fals";break;case 9:n.string+="n";break;case 10:n.string+="nu";break;case 11:n.string+="nul";break;case 12:n.string+="u";break;case 13:n.string+="un";break;case 14:n.string+="und";break;case 15:n.string+="unde";break;case 16:n.string+="undef";break;case 17:n.string+="undefi";break;case 18:n.string+="undefin";break;case 19:n.string+="undefine";break;case 20:n.string+="N";break;case 21:n.string+="Na";break;case 22:n.string+="I";break;case 23:n.string+="In";break;case 24:n.string+="Inf";break;case 25:n.string+="Infi";break;case 26:n.string+="Infin";break;case 27:n.string+="Infini";break;case 28:n.string+="Infinit";break;case 0:case 29:case 30:break;
10case 32:et("String-keyword recovery fail (after whitespace)",e)}n.value_type=4,u<29&&(u=31)}else u=31,n.value_type=4;if(123==e)eu();else if(91==e)ec();else if(44==e);else{if(32==e||13==e||10==e||9==e||65279==e||8232==e||8233==e)return;44==e||125==e||93==e||58==e?et("Invalid character near identifier",e):n.string+=r}}function ea(e){let t=0;for(;0==t&&l<Q.length;){r=Q.charAt(l);let o=Q.codePointAt(l++);if(o>=65536&&(r+=Q.charAt(l),l++),i.col++,o==e)K?(q?et("Incomplete hexidecimal sequence",o):J?et("Incomplete long unicode sequence",o):W&&et("Incomplete unicode sequence",o),U?(U=!1,t=1):n.string+=r,K=!1):t=1;else if(K){if(W){if(125==o){n.string+=String.fromCodePoint(V),W=!1,J=!1,K=!1;continue}V*=16,o>=48&&o<=57?V+=o-48:o>=65&&o<=70?V+=o-65+10:o>=97&&o<=102?V+=o-97+10:(et("(escaped character, parsing hex of \\u)",o),t=-1,W=!1,K=!1);continue}if(q||J){if(0===H&&123===o){W=!0;continue}if(H<2||J&&H<4){if(V*=16,o>=48&&o<=57)V+=o-48;else if(o>=65&&o<=70)V+=o-65+10;else if(o>=97&&o<=102)V+=o-97+10;else{et(J?"(escaped character, parsing hex of \\u)":"(escaped character, parsing hex of \\x)",o),t=-1,q=!1,K=!1;continue}H++,J?4==H&&(n.string+=String.fromCodePoint(V),J=!1,K=!1):2==H&&(n.string+=String.fromCodePoint(V),q=!1,K=!1);continue}}switch(o){case 13:U=!0,i.col=1;continue;case 8232:case 8233:i.col=1;case 10:U?U=!1:i.col=1,i.line++;break;case 116:n.string+=" ";break;case 98:n.string+="\b";break;case 110:n.string+="\n";break;case 114:n.string+="\r";break;case 102:n.string+="\f";break;case 118:n.string+="\v";break;case 48:n.string+="\0";break;case 120:q=!0,H=0,V=0;continue;case 117:J=!0,H=0,V=0;continue;default:n.string+=r}K=!1}else 92===o?K?(n.string+="\\",K=!1):(K=!0,V=0,H=0):(U&&(U=!1,i.line++,i.col=2),n.string+=r)}return t}function es(){let e;for(;(e=l)<Q.length;){r=Q.charAt(e);let o=Q.codePointAt(l++);if(o>=256){i.col-=l-e,l=e;break}if(95!=o)if(i.col++,o>=48&&o<=57)D&&(F=!0),n.string+=r;else if(45==o||43==o)0!=n.string.length&&(!D||I||F)?(v&&(n.string="-"+n.string,v=!1),n.string+=r,Y=!0):(45!=o||D||(v=!v),n.string+=r,I=!0);else if(78==o){if(0==u){z=!1,u=20;return}et("fault while parsing number;",o);break}else if(73==o){if(0==u){z=!1,u=22;return}et("fault while parsing number;",o);break}else if(58==o&&Y)v&&(n.string="-"+n.string,v=!1),n.string+=r,Y=!0;else if(84==o&&Y)v&&(n.string="-"+n.string,v=!1),n.string+=r,Y=!0;else if(90==o&&Y)v&&(n.string="-"+n.string,v=!1),n.string+=r,Y=!0;else if(46==o)if(j||M||D){d=!1,et("fault while parsing number;",o);break}else n.string+=r,j=!0;else if(110==o){Z=!0;break}else if(M&&(o>=95&&o<=102||o>=65&&o<=70))n.string+=r;else if(120==o||98==o||111==o||88==o||66==o||79==o)if(M||"0"!=n.string){d=!1,et("fault while parsing number;",o);break}else M=!0,n.string+=r;else if(101==o||69==o)if(D){d=!1,et("fault while parsing number;",o);break}else n.string+=r,D=!0;else if(32==o||13==o||10==o||9==o||47==o||35==o||44==o||125==o||93==o||123==o||91==o||34==o||39==o||96==o||58==o){i.col-=l-e,l=e;break}else{t&&(d=!1,et("fault while parsing number;",o));break}}t||l!=Q.length?(z=!1,n.value_type=5,0==$&&(G=!0)):z=!0}function eu(){let e,t=2,r=null,i={};if(u>0&&u<29&&eo(123),e=ed(),0==$)29==u||31==u&&(e||n.string.length)?(e&&e.protoDef&&e.protoDef.protoCon&&(i=new e.protoDef.protoCon),e&&(e.protoDef||!n.string)||((r=C.find(e=>e.name===n.string))?h?(r.fields.length=0,t=4):(i=new r.protoCon,t=5):(C.push(r={name:n.string,protoCon:e&&e.protoDef&&e.protoDef.protoCon||(function(){}).constructor,fields:[]}),t=4),h=!1),N=r,u=0):u=29;else if(29==u||1===$||3===$||5==$)if(0!=u||4==n.value_type){if(e&&e.protoDef)i=new e.protoDef.protoCon;else if(r=C.find(e=>e.name===n.string))t=5,i={};else{function l(){}s.set(n.string,{protoCon:l.prototype.constructor,cb:null}),i=new l}u=0}else u=0;else if(2==$&&0==u)return et("fault while parsing; getting field name unexpected ",k),d=!1,!1;let o=p();return n.value_type=6,0===$?x=i:1==$?n.name=x.length:(3==$||5==$)&&(!n.name&&N&&(n.name=N.fields[P++]),x[n.name]=i),o.context=$,o.elements=x,o.name=n.name,o.current_proto=T,o.current_class=N,o.current_class_field=P,o.valueType=n.value_type,o.arrayType=O,o.className=n.className,n.className=null,n.name=null,T=e,N=r,P=0,x=i,w||(w=x),S.push(o),er(),$=t,!0}function ec(){if(u>0&&u<29&&eo(91),31==u&&n.string.length){let e=a.findIndex(e=>e===n.string);u=0,e>
10=0?(O=e,n.className=n.string,n.string=null):"ref"===n.string?(n.className=null,O=-2):s.get(n.string)||_.get(n.string)?n.className=n.string:et(`Unknown type '${n.string}' specified for array`,k)}else if(2==$||29==u||30==u)return et("Fault while parsing; while getting field name unexpected",k),d=!1,!1;{let e=p();n.value_type=13;let t=[];if(0==$)x=t;else if(1==$)-1==O&&x.push(t),n.name=x.length;else if(3==$)if(n.name||(console.log("This says it's resolved......."),O=-3),T&&T.protoDef)if(T.protoDef.cb){let e=T.protoDef.cb.call(x,n.name,t);void 0!==e&&(t=x[n.name]=e)}else x[n.name]=t;else x[n.name]=t;e.context=$,e.elements=x,e.name=n.name,e.current_proto=T,e.current_class=N,e.current_class_field=P,e.valueType=n.value_type,e.arrayType=-1==O?-3:O,e.className=n.className,O=-1,n.className=null,n.name=null,T=null,N=null,P=0,x=t,w||(w=t),S.push(e),er(),$=1}return!0}function ed(){let e={protoDef:null,cls:null};return(e.protoDef=s.get(n.string))?n.className||(n.className=n.string,n.string=null):(e.protoDef=_.get(n.string))&&!n.className&&(n.className=n.string,n.string=null),n.string&&(e.cls=C.find(e=>e.name===n.string),!e.protoDef&&!e.cls),e.protoDef||e.cls?e:null}if(!d)return -1;if(e&&e.length){let t;(t=y.pop())?t.n=0:t={buf:null,n:0},(X=t).buf=e,R.push(X)}else z&&(z=!1,n.value_type=5,0==$&&(G=!0),ee=1),0!==$&&et("Unclosed object at end of stream.",k);for(;d&&(X=R.shift());){if(l=X.n,Q=X.buf,B){let e=ea(L);e<0?d=!1:e>0&&(B=!1,d&&(n.value_type=4))}for(z&&es();!G&&d&&l<Q.length;){if(r=Q.charAt(l),(k=Q.codePointAt(l++))>=65536&&(r+=Q.charAt(l),l++),i.col++,A){if(1==A)if(42==k)A=3;else{if(47!=k)return et("fault while parsing;",k);A=2}else 2==A?(10==k||13==k)&&(A=0):3==A?42==k&&(A=4):A=3*(47!=k);continue}switch(k){case 35:A=2;break;case 47:A=1;break;case 123:eu();break;case 91:ec();break;case 58:if(5==$)u=0,n.name=n.string,n.string="",n.value_type=0;else if(2==$||4==$)if(4==$){if(!Object.keys(x).length){console.log("This is a full object, not a class def...",n.className);let e=()=>{};s.set(S.last.node.current_class.name,{protoCon:e.prototype.constructor,cb:null}),x=new e,$=3,n.name=n.string,u=0,n.string="",n.value_type=0,console.log("don't do default;s do a revive...")}}else 0!=u&&31!=u&&29!=u&&30!=u&&eo(32),u=0,n.name=n.string,n.string="",$=2===$?3:6,n.value_type=0;else 0==$?(console.log("Override colon found, allow class redefinition",$),h=!0):(1==$?et("(in array, got colon out of string):parsing fault;",k):3==$?et("String unexpected",k):et("(outside any object, got colon out of string):parsing fault;",k),d=!1);break;case 125:if(31==u&&(u=0),4==$)if(N){n.string&&N.fields.push(n.string),er();let e=S.pop();$=0,u=0,n.name=e.name,x=e.elements,N=e.current_class,P=e.current_class_field,O=e.arrayType,n.value_type=e.valueType,n.className=e.className,w=null,m(e)}else et("State error; gathering class fields, and lost the class",k);else if(2==$||5==$){0!=n.value_type&&(N&&(n.name=N.fields[P++]),el()),n.value_type=6,T&&T.protoDef&&(console.log("SOMETHING SHOULD AHVE BEEN REPLACED HERE??",T),console.log("The other version only revives on init"),x=new T.protoDef.cb(x,void 0,void 0)),n.contains=x,n.string="";let e=S.pop();$=e.context,n.name=e.name,x=e.elements,N=e.current_class,T=e.current_proto,P=e.current_class_field,O=e.arrayType,n.value_type=e.valueType,n.className=e.className,m(e),0==$&&(G=!0)}else if(3==$){0===n.value_type&&et("Fault while parsing; unexpected",k),el(),n.value_type=6,n.contains=x,u=0;let e=S.pop();$=e.context,n.name=e.name,x=e.elements,T=e.current_proto,N=e.current_class,P=e.current_class_field,O=e.arrayType,n.value_type=e.valueType,n.className=e.className,m(e),0==$&&(G=!0)}else et("Fault while parsing; unexpected",k),d=!1;v=!1;break;case 93:if(u>=30&&(u=0),1==$){0!=n.value_type&&ei(),n.contains=x;{let e=S.pop();n.name=e.name,n.className=e.className,$=e.context,x=e.elements,T=e.current_proto,N=e.current_class,P=e.current_class_field,O=e.arrayType,n.value_type=e.valueType,m(e)}n.value_type=13,0==$&&(G=!0)}else et(`bad context ${$}; fault while parsing`,k),d=!1;v=!1;break;case 44:u<30&&0!=u&&eo(k),(31==u||29==u)&&(u=0),4==$?N?(N.fields.push(n.string),n.string="",u=29):et("State error; gathering class fields, and lost the class",k):2==$?N?(n.name=N.fields[P++],0!=n.value_type&&(el(),er())):(n.string||n.value_type)&&et("State error; comma in field name and/or lost the class",k):5==$?(N?(-3==O||n.name||(n.name=N.fields[P++]),0!=n.value_type&&(-3!=O&&el(),er())):0!=n.value_type&&(el(),er()),n.name=null):1==$?(0==n.value_type&&(n.value_type=12),ei(),er(),u=0):3==$&&0!=n.value_type?($=2,0!=n.value_type&&(el(),er()),u=0):(d=!1,et("bad context; excessive commas while parsing;",k)),v=!1;break;default:switch(k){default:if(0==$||3==$&&29==u||2==$||29==u||4==$)switch(k){case 96:case 34:case 39:0==u||29==u?(n.string.length&&(console.log("IN ARRAY AND FIXING?"),n.className=n.string,n.str
10ing=""),ea(k)?n.value_type=4:(L=k,B=!0)):et("fault while parsing; quote not at start of field name",k);break;case 10:i.line++,i.col=1;case 13:case 32:case 8232:case 8233:case 9:case 65279:if(0===$&&31===u){u=0,0===$&&(G=!0);break}if(0===u||30===u)0==$&&n.value_type&&(G=!0);else if(29===u){if(0===$){u=0,G=!0;break}n.string.length&&console.log("STEP TO NEXT TOKEN."),u=30}else d=!1,et("fault while parsing; whitepsace unexpected",k);break;default:if(0==u&&(k>=48&&k<=57||43==k||46==k||45==k)){M=!1,D=!1,Y=!1,Z=!1,I=!1,F=!1,j=!1,n.string=r,X.n=l,es();break}if(30===u&&(d=!1,et("fault while parsing; character unexpected",k)),0===u){u=29,n.value_type=4,n.string+=r;break}if(0==n.value_type)0!==u&&31!==u&&eo(k);else{if(31===u||29===u){n.string+=r;break}if(2==$){if(29==u){n.string+=r;break}et("Multiple values found in field name",k)}3==$&&et("String unexpected",k)}}else 0==u&&(k>=48&&k<=57||43==k||46==k||45==k)?(M=!1,D=!1,Y=!1,Z=!1,I=!1,F=!1,j=!1,n.string=r,X.n=l,es()):0==n.value_type?0!=u?eo(k):(u=31,n.string+=r,n.value_type=4):2==$?et("Multiple values found in field name",k):3==$?(4!=n.value_type&&((6==n.value_type||13==n.value_type)&&et("String unexpected",k),eo(k)),30==u?ed()?n.string=r:et("String unexpected",k):31==u?n.string+=r:et("String unexpected",k)):1==$&&(30==u?(n.className||(n.className=n.string,n.string=""),n.string+=r):31==u&&(n.string+=r));break;case 96:case 34:case 39:n.string&&(n.className=n.string),n.string="",ea(k)?(n.value_type=4,u=31):(L=k,B=!0);break;case 10:i.line++,i.col=1;case 32:case 9:case 13:case 8232:case 8233:case 65279:if(31==u){if(0==$){u=0,G=!0;break}else if(3==$){u=32;break}else if(2==$){u=30;break}else if(1==$){u=30;break}}0==u||30==u||(29==u?n.string.length&&(u=30):u<31&&eo(k));break;case 116:0==u?u=1:27==u?u=28:eo(k);break;case 114:1==u?u=2:eo(k);break;case 117:2==u?u=3:9==u?u=10:0==u?u=12:eo(k);break;case 101:3==u?(n.value_type=2,u=31):8==u?(n.value_type=3,u=31):14==u?u=15:18==u?u=19:eo(k);break;case 110:0==u?u=9:12==u?u=13:17==u?u=18:22==u?u=23:25==u?u=26:eo(k);break;case 100:13==u?u=14:19==u?(n.value_type=-1,u=31):eo(k);break;case 105:16==u?u=17:24==u?u=25:26==u?u=27:eo(k);break;case 108:10==u?u=11:11==u?(n.value_type=1,u=31):6==u?u=7:eo(k);break;case 102:0==u?u=5:15==u?u=16:23==u?u=24:eo(k);break;case 97:5==u?u=6:20==u?u=21:eo(k);break;case 115:7==u?u=8:eo(k);break;case 73:0==u?u=22:eo(k);break;case 78:0==u?u=20:21==u?(n.value_type=v?7:8,v=!1,u=31):eo(k);break;case 121:28==u?(n.value_type=v?9:10,v=!1,u=31):eo(k);break;case 45:0==u?v=!v:eo(k);break;case 43:0!==u&&eo(k)}}if(G){31==u&&(u=0);break}}if(l==Q.length){var ef;ef=X,y.push(ef),B||z||2==$?ee=0:0==$&&(0!=n.value_type||b)&&(G=!0,ee=1)}else X.n=l,R.unshift(X),ee=2;if(G){w=null;break}}return d?(G&&0!=n.value_type&&(u=0,b=en(),v=!1,n.string="",n.value_type=0),G=!1,ee):-1}}};let x=[Object.freeze(l.begin())],S=0;function C(){return this&&this.valueOf()}l.parse=function(e,t){let r,n=S++;x.length<=n&&x.push(Object.freeze(l.begin())),r=x[n],"string"!=typeof e&&(e=String(e)),r.reset();let i=r._write(e,!0);if(i>0){let e=r.value();if(void 0===e&&i>1)throw Error("Pending value could not complete");return e="function"==typeof t?function e(r,n){let i,l,o=r[n];if(o&&"object"==typeof o)for(i in o)Object.prototype.hasOwnProperty.call(o,i)&&(void 0!==(l=e(o,i))?o[i]=l:delete o[i]);return t.call(r,n,o)}({"":e},""):e,S--,e}r.finalError()},l.defineClass=function(e,t){let r,n=Object.keys(t);for(let e=1;e<n.length;e++){let t,r;(t=n[e-1])>(r=n[e])&&(n[e-1]=r,n[e]=t,e?e-=2:e--)}w.push(r={name:e,tag:n.toString(),proto:Object.getPrototypeOf(t),fields:Object.keys(t)});for(let e=1;e<r.fields.length;e++)if(r.fields[e]<r.fields[e-1]){let t=r.fields[e-1];r.fields[e-1]=r.fields[e],r.fields[e]=t,e>1&&(e-=2)}r.proto===Object.getPrototypeOf({})&&(r.proto=null)},l.toJSOX=l.registerToJSOX=function(e,t,r){if(t.prototype&&t.prototype===Object.prototype){let n=Object.keys(t).toString();if(b.get(n))throw Error("Existing toJSOX has been registered for object type");b.set(n,{external:!0,name:e,cb:r})}else{if(v.get(t.prototype))throw Error("Existing toJSOX has been registered for prototype");v.set(t.prototype,{external:!0,name:e||r.constructor.name,cb:r})}},l.fromJSOX=function(e,t,r){if(t||(t=(function(){}).prototype),_.get(e))throw Error("Existing fromJSOX has been registered for prototype");if(t&&!("constructor"in t))throw Error("Please pass a prototype like thing...");_.set(e,{protoCon:t.prototype.constructor,cb:r})},l.registerFromJSOX=function(e,t){throw Error("deprecated; please adjust code to use fromJSOX:"+e+t.toString())},l.addType=function(e,t,r,n){l.toJSOX(e,t,r),l.fromJSOX(e,t,n)},l.registerToFrom=function(e,t){throw Error("registerToFrom deprecated; please use addType:"+e+t.toString())},l.stringifier=function(){let e=[],t='"',r=new WeakMap,i=[],o=[],a=new WeakMap,c=new Map,h=null,p=[],m=!1;function y(e){return"string"==typeof e&&""===e?'""':"number"!=typeof e||isNaN(e)?e.includes("\uFEFF")||e in d||/[0-9\-]/.test(e[0])||/[\n\r\t #\[\]{}()<>\~!+*/.:,\-"'`]/.test(e)?t+l.escape(e)+t:e:"'"+e.toString()+"'"}v.get(Object.prototype)||(v.set(Object.prototype,{external:!1,name:Object.prototype.constructor.name,cb:null}),v.set(Date.prototype,{external:!1,name:"Date",cb:function(){let e;if(-621672192e5===this.getTime())return"0000-01-01T00:00:00.000Z";let t=-this.getTimezoneOffset(),r=function(e){let t=Math.floor(Math.abs(e));return(t<10?"0":"")+t};return this.getFullYear()+"-"+r(this.getMonth()+1)+"-"+r(this.getDate())+"T"+r(this.getHours())+":"+r(this.getMinutes())+":"+r(this.getSeconds())+("."+((e=Math.floor(Math.abs(this.getMilliseconds())))<100?"0":"")+(e<10?"0":""))+e+(t>=0?"+":"-")+r(t/60)+":"+r(t%60)}}),v.set(f.prototype,{external:!1,name:"DateNS",cb:function(){let e,t,r=-this.getTimezoneOffset(),n=function(e){let t=Math.floor(Math.abs(e));return(t<10?"0":"")+t};return this.getFullYear()+"-"+n(this.getMonth()+1)+"-"+n(this.getDate())+"T"+n(this.getHours())+":"+n(this.getMinutes())+":"+n(this.getSeconds())+("."+((e=Math.floor(Math.abs(this.getMilliseconds())))<100?"0":"")+(e<10?"0":"")+e+(((t=Math.floor(Math.abs(this.ns)))<1e5?"0":"")+(t<1e4?"0":"")+(t<1e3?"0":"")+(t<100?"0":""))+(t<10?"0":""))+t+(r>=0?"+":"-")+n(r/60)+":"+n(r%60)}}),v.set(Boolean.prototype,{external:!1,name:"Boolean",cb:C}),v.set(Number.prototype,{external:!1,name:"Number",cb:function(){return isNaN(this)?"NaN":isFinite(this)?String(this):this<0?"-Infinity":"Infinity"}}),v.set(String.prototype,{external:!1,name:"String",cb:function(){return'"'+l.escape(C.apply(this))+'"'}}),"function"==typeof BigInt&&v.set(BigInt.prototype,{external:!1,name:"BigInt",cb:function(){return this+"n"}}),v.set(ArrayBuffer.prototype,{external:!0,name:"ab",cb:function(){return"["+y(N(this))+"]"}}),v.set(Uint8Array.prototype,{external:!0,name:"u8",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Uint8ClampedArray.prototype,{external:!0,name:"uc8",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Int8Array.prototype,{external:!0,name:"s8",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Uint16Array.prototype,{external:!0,name:"u16",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Int16Array.prototype,{external:!0,name:"s16",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Uint32Array.prototype,{external:!0,name:"u32",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Int32Array.prototype,{external:!0,name:"s32",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Float32Array.prototype,{external:!0,name:"f32",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Float64Array.prototype,{external:!0,name:"f64",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(Float64Array.prototype,{external:!0,name:"f64",cb:function(){return"["+y(N(this.buffer))+"]"}}),v.set(RegExp.prototype,u={external:!0,name:"regex",cb:function(e,t){return"'"+escape(this.source)+"'"}}),_.set("regex",{protoCon:RegExp,cb:function(e,t){return new RegExp(this)}}),v.set(Map.prototype,u={external:!0,name:"map",cb:null}),_.set("map",{protoCon:Map,cb:function(e,t){return e?void this.set(e,t):this}}),v.set(Array.prototype,s={external:!1,name:Array.prototype.constructor.name,cb:null}));let x={defineClass(t,r){let n,i=Object.keys(r);for(let e=1;e<i.length;e++){let t,r;(t=i[e-1])>(r=i[e])&&(i[e-1]=r,i[e]=t,e?e-=2:e--)}
10e.push(n={name:t,tag:i.toString(),proto:Object.getPrototypeOf(r),fields:Object.keys(r)});for(let e=1;e<n.fields.length;e++)if(n.fields[e]<n.fields[e-1]){let t=n.fields[e-1];n.fields[e-1]=n.fields[e],n.fields[e]=t,e>1&&(e-=2)}n.proto===Object.getPrototypeOf({})&&(n.proto=null)},setDefaultObjectToJSOX(e){h=e},isEncoding:e=>!!o.find((t,r)=>t===e&&r<o.length-1),encodeObject(e){return h?h.apply(e,[this]):e},stringify:(t,n,l)=>(function(t,n,l){let d,f,_;if(void 0===t)return"undefined";if(null===t)return;let C=typeof l,T=typeof n;if(d="",f="","number"===C)for(_=0;_<l;_+=1)f+=" ";else"string"===C&&(f=l);if(n&&"function"!==T&&("object"!==T||"number"!=typeof n.length))throw Error("JSOX.stringify");i.length=0,r=new WeakMap;let N=function t(r,l){var _=d;let C=s.cb,T=u.cb;s.cb=function(){let e=[],r=i.length;for(let n=0;n<this.length;n+=1)i[r]=n,e[n]=t(n,this)||"null";return i.length=r,o.length=r,0===e.length?"[]":d?"[\n"+d+e.join(",\n"+d)+"\n"+_+"]":"["+e.join(",")+"]"},u.cb=function(){let e={tmp:null},r="{",n=!0;for(let[l,o]of this){e.tmp=o;let a=i.length;i[a]=l,r+=(n?"":",")+y(l)+":"+t("tmp",e),i.length=a,n=!1}return r+"}"};let N=function(r,l){let s,u,C,T,N,E,P,O=i.length,$=!0,A=l[r],M="object"==typeof A;M&&null!==A&&h&&!p.find(e=>e===A)&&(p.push(A),o[O]=A,$=!1,M="object"==typeof(A=h.apply(A,[x])),p.pop(),o.length=O,M="object"==typeof A);let j=null!=A&&Object.getPrototypeOf(A),D=j&&(a.get(j)||v.get(j)||null),I=!D&&null!=A&&(c.get(Object.keys(A).toString())||b.get(Object.keys(A).toString())||null);"function"==typeof n&&($=!1,A=n.call(l,r,A));let F=D&&D.cb||I&&I.cb;if(null!=A&&"object"==typeof A&&"function"==typeof F)if(p.find(e=>e===A))C=S(A);else{if("object"==typeof A&&(C=S(A)))return C;p.push(A),o[O]=A,A=F.call(A,x),$=!1,p.pop(),D&&D.name&&"string"==typeof A&&"-"!==A[0]&&(A[0]<"0"||A[0]>"9")&&'"'!==A[0]&&"'"!==A[0]&&"`"!==A[0]&&"["!==A[0]&&"{"!==A[0]&&(A=" "+A),o.length=O}else if("object"==typeof A&&(C=S(A)))return C;switch(typeof A){case"bigint":return A+"n";case"string":{A=$?y(A):A;let t="";if(""===r&&(t=e.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":"")+w.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":"")+(d?"\n":"")),D&&D.external)return t+D.name+A;if(I&&I.external)return t+I.name+A;return t+A}case"number":case"boolean":case"null":return String(A);case"object":if(C)return"ref"+C;if(!A)return"null";if(d+=f,N=null,E=[],n&&"object"==typeof n){for(s=0,T=n.length,N=k(A,n);s<T;s+=1)"string"==typeof n[s]&&(u=n[s],i[O]=u,void 0!==(C=t(u,A))&&(N?E.push(C):E.push(y(u)+(d?": ":":")+C)));i.splice(O,1)}else{N=k(A);let e=[];for(u in A)if((!m||Object.prototype.propertyIsEnumerable.call(A,u))&&Object.prototype.hasOwnProperty.call(A,u)){let t;for(t=0;t<e.length;t++)if(e[t]>u){e.splice(t,0,u);break}t==e.length&&e.push(u)}for(let r=0;r<e.length;r++)u=e[r],Object.prototype.hasOwnProperty.call(A,u)&&(i[O]=u,void 0!==(C=t(u,A))&&(N?E.push(C):E.push(y(u)+(d?": ":":")+C)));i.splice(O,1)}P=""===r?(e.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":"")||w.map(e=>e.name+"{"+e.fields.join(",")+"}").join(d?"\n":""))+(d?"\n":""):"",D&&D.external&&(P+=y(D.name));let R=null;return N&&(R=y(N.name)),C=P+(0===E.length?"{}":d?(N?R:"")+"{\n"+d+E.join(",\n"+d)+"\n"+_+"}":(N?R:"")+"{"+E.join(",")+"}"),d=_,C}}(r,l);return s.cb=C,u.cb=T,N}("",{"":t});return w.length=0,N})(t,n,l),setQuote(e){t=e},registerToJSOX(e,t,r){return this.toJSOX(e,t,r)},toJSOX(e,t,r){if(t.prototype&&t.prototype!==Object.prototype){if(a.get(t.prototype))throw Error("Existing toJSOX has been registered for prototype");a.set(t.prototype,{external:!0,name:e||r.constructor.name,cb:r})}else{let n=Object.keys(t).toString();if(c.get(n))throw Error("Existing toJSOX has been registered for object type");c.set(n,{external:!0,name:e,cb:r})}},get ignoreNonEnumerable(){return m},set ignoreNonEnumerable(val){m=val}};return x;function S(e){if(null===e)return;let t=r.get(e);return t?"ref"+t:void r.set(e,n.stringify(i))}function k(t,r){let n,i,l=Object.getPrototypeOf(t);if(i=e.find(e=>{if(e.proto&&e.proto===l)return!0}))return i;if(e.length||w.length){if(r)n=(r=r.map(e=>"string"==typeof e?e:void 0)).toString();else{let e=Object.keys(t);for(let t=1;t<e.length;t++){let r,n;(r=e[t-1])>(n=e[t])&&(e[t-1]=n,e[t]=r,t?t-=2:t--)}n=e.toString()}(i=e.find(e=>{if(e.tag===n)return!0}))||(i=w.find(e=>{if(e.tag===n)return!0}))}return i}};let k="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789$_",T={"~":-1,"=":-1,$:62,_:63,"+":62,"-":62,".":62,"/":63,",":63};for(let e=0;e<k.length;e++)T[k[e]]=e;function N(e){let t,r,n,i,l,o="",a=new Uint8Array(e),s=a.byteLength,u=s%3,c=s-u;for(let e=0;e<c;e+=3)t=(0xfc0000&(l=a[e]<<16|a[e+1]<<8|a[e+2]))>>18,r=(258048&l)>>12,n=(4032&l)>>6,i=63&l,o+=k[t]+k[r]+k[n]+k[i];return 1==u?(t=(252&(l=a[c]))>>2,r=(3&l)<<4,o+=k[t]+k[r]+"=="):2==u&&(t=(64512&(l=a[c]<<8|a[c+1]))>>10,r=(1008&l)>>4,n=(15&l)<<2,o+=k[t]+k[r]+k[n]+"="),o}function E(e){let t,r=new ArrayBuffer(e.length%4==1?((e.length+3)/4|0)*3-3:e.length%4==2?((e.length+3)/4|0)*3-2:e.length%4==3?((e.length+3)/4|0)*3-1:-1==T[e[e.length-3]]?((e.length+3)/4|0)*3-3:-1==T[e[e.length-2]]?((e.length+3)/4|0)*3-2:-1==T[e[e.length-1]]?((e.length+3)/4|0)*3-1:((e.length+3)/4|0)*3),n=new Uint8Array(r),i=e.length+3>>2;for(t=0;t<i;t++){let r=T[e[4*t]],i=4*t+1<e.length?T[e[4*t+1]]:-1,l=i>=0&&4*t+2<e.length?T[e[4*t+2]]:-1,o=l>=0&&4*t+3<e.length?T[e[4*t+3]]:-1;i>=0&&(n[3*t+0]=r<<2|i>>4),l>=0&&(n[3*t+1]=i<<4|l>>2&15),o>=0&&(n[3*t+2]=l<<6|63&o)}return r}Object.freeze(T),l.stringify=function(e,t,r){return l.stringifier().stringify(e,t,r)},[[0,256,[0xffd9ff,0xff6aff,130048,3670016,0,0xfffff8,0xffffff,8388607]]].map(e=>({firstChar:e[0],lastChar:e[1],bits:e[2]}))},8301:(e,t,r)=>{"use strict";r.d(t,{NT:()=>i});let n=({req:{user:e}})=>!!e,i={access:{create:n,delete:n,read:n,unlock:n,update:n},admin:{components:{},custom:{},enableRichTextLink:!0,enableRichTextRelationship:!0,pagination:{defaultLimit:10,limits:[5,10,25,50,100]},useAsTitle:"id"},auth:!1,custom:{},endpoints:[],fields:[],hooks:{afterChange:[],afterDelete:[],afterForgotPassword:[],afterLogin:[],afterLogout:[],afterMe:[],afterOperation:[],afterRead:[],afterRefresh:[],beforeChange:[],beforeDelete:[],beforeLogin:[],beforeOperation:[],beforeRead:[],beforeValidate:[],me:[],refresh:[]},indexes:[],timestamps:!0,upload:!1,versions:!1}},8667:(e,t,r)=>{"use strict";r.d(t,{a:()=>p,b:()=>m,c:()=>y,d:()=>v,e:()=>_,f:()=>w});var n,i,l=r(12115),o=r(47650);function a(e){if("react"===e)return n||(n=r.t(l,2));
10if("react-dom"===e)return i||(i=r.t(o,2));throw Error("Unknown module ".concat(e))}var s=Object.create,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,f=Object.getPrototypeOf,h=Object.prototype.hasOwnProperty,p=a,m=(e,t)=>()=>(e&&(t=e(e=0)),t),y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),v=(e,t)=>{for(var r in t)u(e,r,{get:t[r],enumerable:!0})},b=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let i of d(t))h.call(e,i)||i===r||u(e,i,{get:()=>t[i],enumerable:!(n=c(t,i))||n.enumerable});return e},_=(e,t,r)=>(r=null!=e?s(f(e)):{},b(!t&&e&&e.__esModule?r:u(r,"default",{value:e,enumerable:!0}),e)),w=e=>b(u({},"__esModule",{value:!0}),e)},9058:()=>{},11930:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;let n=r(79772),i=r(74455),l=r(61974),o=r(4186),a=r(73274),s=r(85331);class u{constructor(e){var t;let r;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(r=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!=(t=e.baseId)?t:(0,o.normalizeId)(null==r?void 0:r[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==r?void 0:r.$async,this.refs={}}}function c(e){let t,r,a=f.call(this,e);if(a)return a;let u=(0,o.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:c,lines:d}=this.opts.code,{ownProperties:h}=this.opts,p=new n.CodeGen(this.scope,{es5:c,lines:d,ownProperties:h});e.$async&&(t=p.scopeValue("Error",{ref:i.default,code:(0,n._)`require("ajv/dist/runtime/validation_error").default`}));let m=p.scopeName("validate");e.validateName=m;let y={gen:p,allErrors:this.opts.allErrors,data:l.default.data,parentData:l.default.parentData,parentDataProperty:l.default.parentDataProperty,dataNames:[l.default.data],dataPathArr:[n.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:p.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,n.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:t,schema:e.schema,schemaEnv:e,rootId:u,baseId:e.baseId||u,schemaPath:n.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,n._)`""`,opts:this.opts,self:this};try{this._compilations.add(e),(0,s.validateFunctionCode)(y),p.optimize(this.opts.code.optimize);let t=p.toString();r=`${p.scopeRefs(l.default.scope)}return ${t}`,this.opts.code.process&&(r=this.opts.code.process(r,e));let i=Function(`${l.default.self}`,`${l.default.scope}`,r)(this,this.scope.get());if(this.scope.value(m,{ref:i}),i.errors=null,i.schema=e.schema,i.schemaEnv=e,e.$async&&(i.$async=!0),!0===this.opts.code.source&&(i.source={validateName:m,validateCode:t,scopeValues:p._values}),this.opts.unevaluated){let{props:e,items:t}=y;i.evaluated={props:e instanceof n.Name?void 0:e,items:t instanceof n.Name?void 0:t,dynamicProps:e instanceof n.Name,dynamicItems:t instanceof n.Name},i.source&&(i.source.evaluated=(0,n.stringify)(i.evaluated))}return e.validate=i,e}catch(t){throw delete e.validate,delete e.validateName,r&&this.logger.error("Error compiling schema, function code:",r),t}finally{this._compilations.delete(e)}}function d(e){return(0,o.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:c.call(this,e)}function f(e){for(let n of this._compilations){var t,r;if(t=n,r=e,t.schema===r.schema&&t.root===r.root&&t.baseId===r.baseId)return n}}function h(e,t){let r;for(;"string"==typeof(r=this.refs[t]);)t=r;return r||this.schemas[t]||p.call(this,e,t)}function p(e,t){let r=this.opts.uriResolver.parse(t),n=(0,o._getFullPath)(this.opts.uriResolver,r),i=(0,o.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return y.call(this,r,e);let l=(0,o.normalizeId)(n),a=this.refs[l]||this.schemas[l];if("string"==typeof a){let t=p.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,r,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||c.call(this,a),l===(0,o.normalizeId)(t)){let{schema:t}=a,{schemaId:r}=this.opts,n=t[r];return n&&(i=(0,o.resolveUrl)(this.opts.uriResolver,i,n)),new u({schema:t,schemaId:r,root:e,baseId:i})}
10return y.call(this,r,a)}}t.SchemaEnv=u,t.compileSchema=c,t.resolveRef=function(e,t,r){var n;r=(0,o.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let l=h.call(this,e,r);if(void 0===l){let i=null==(n=e.localRefs)?void 0:n[r],{schemaId:o}=this.opts;i&&(l=new u({schema:i,schemaId:o,root:e,baseId:t}))}if(void 0!==l)return e.refs[r]=d.call(this,l)},t.getCompilingSchema=f,t.resolveSchema=p;let m=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:r,root:n}){var i;let l;if((null==(i=e.fragment)?void 0:i[0])!=="/")return;for(let n of e.fragment.slice(1).split("/")){if("boolean"==typeof r)return;let e=r[(0,a.unescapeFragment)(n)];if(void 0===e)return;let i="object"==typeof(r=e)&&r[this.opts.schemaId];!m.has(n)&&i&&(t=(0,o.resolveUrl)(this.opts.uriResolver,t,i))}if("boolean"!=typeof r&&r.$ref&&!(0,a.schemaHasRulesButRef)(r,this.RULES)){let e=(0,o.resolveUrl)(this.opts.uriResolver,t,r.$ref);l=p.call(this,n,e)}let{schemaId:s}=this.opts;if((l=l||new u({schema:r,schemaId:s,root:n,baseId:t})).schema!==l.root.schema)return l}},12015:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(81708),i=r(73274),l=r(79772);t.default={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,l.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,l._)`{pattern: ${e}}`},code(e){let{gen:t,data:r,$data:o,schema:a,schemaCode:s,it:u}=e,c=u.opts.unicodeRegExp?"u":"";if(o){let{regExp:n}=u.opts.code,o="new RegExp"===n.code?(0,l._)`new RegExp`:(0,i.useFunc)(t,n),a=t.let("valid");t.try(()=>t.assign(a,(0,l._)`${o}(${s}, ${c}).test(${r})`),()=>t.assign(a,!1)),e.fail$data((0,l._)`!${a}`)}else{let t=(0,n.usePattern)(e,a);e.fail$data((0,l._)`!${t}.test(${r})`)}}}},12422:(e,t,r)=>{"use strict";r.d(t,{f:()=>n});let n=({collectionConfig:e,select:t})=>{e.upload&&t&&(t.mimeType=!0,t.thumbnailURL=!0,e.upload.imageSizes&&e.upload.imageSizes.length>0?e.upload.adminThumbnail&&"string"==typeof e.upload.adminThumbnail?t.sizes={[e.upload.adminThumbnail]:{filename:!0}}:t.sizes=e.upload.imageSizes.reduce((e,t)=>({...e,[t.name]:{filename:!0,url:!0,width:!0}}),{}):t.url=!0)}},12618:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772);t.default={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxItems"===e?"more":"fewer"} than ${t} items`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:i}=e,l="maxItems"===t?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`${r}.length ${l} ${i}`)}}},13163:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772),i=n.operators,l={maximum:{okStr:"<=",ok:i.LTE,fail:i.GT},minimum:{okStr:">=",ok:i.GTE,fail:i.LT},exclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},exclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}};t.default={keyword:Object.keys(l),type:"number",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must be ${l[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,n._)`{comparison: ${l[e].okStr}, limit: ${t}}`},code(e){let{keyword:t,data:r,schemaCode:i}=e;e.fail$data((0,n._)`${r} ${l[t].fail} ${i} || isNaN(${r})`)}}},13293:(e,t,r)=>{"use strict";r.d(t,{G:()=>C});var n=r(69717),i=r(30889),l=r(32532);let o=[];class a extends l.fGB{__ids;static getType(){return"mark"}static clone(e){return new a(e.__ids,e.__key)}static importDOM(){return null}static importJSON(e){return s().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIDs(e.ids)}exportJSON(){return{...super.exportJSON(),ids:this.getIDs()}}constructor(e=o,t){super(t),this.__ids=e}createDOM(e){let t=document.createElement("mark");return(0,l.ZB7)(t,e.theme.mark),this.__ids.length>
101&&(0,l.ZB7)(t,e.theme.markOverlap),t}updateDOM(e,t,r){let n=e.__ids,i=this.__ids,o=n.length,a=i.length,s=r.theme.markOverlap;return o!==a&&(1===o?2===a&&(0,l.ZB7)(t,s):1===a&&(0,l.HEf)(t,s)),!1}hasID(e){return this.getIDs().includes(e)}getIDs(){return Array.from(this.getLatest().__ids)}setIDs(e){let t=this.getWritable();return t.__ids=e,t}addID(e){let t=this.getWritable();return t.__ids.includes(e)?t:t.setIDs([...t.__ids,e])}deleteID(e){let t=this.getWritable(),r=t.__ids.indexOf(e);if(-1===r)return t;let n=Array.from(t.__ids);return n.splice(r,1),t.setIDs(n)}insertNewAfter(e,t=!0){let r=s(this.__ids);return this.insertAfter(r,t),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,r){if(!(0,l.I2P)(t)||"html"===r)return!1;let n=t.anchor,i=t.focus,o=n.getNode(),a=i.getNode(),s=t.isBackward()?n.offset-i.offset:i.offset-n.offset;return this.isParentOf(o)&&this.isParentOf(a)&&this.getTextContent().length===s}excludeFromCopy(e){return"clone"!==e}}function s(e=o){return(0,l.pTq)(new a(e))}(0,l.vE9)({name:"@lexical/mark",nodes:()=>[a]});var u=r(41747),c=r(12115),d=r(95155);let f=Object.freeze({" ":"\\t","\n":"\\n"}),h=RegExp(Object.keys(f).join("|"),"g"),p=Object.freeze({ancestorHasNextSibling:"|",ancestorIsLastChild:" ",hasNextSibling:"â",isLastChild:"â",selectedChar:"^",selectedLine:">"}),m=[e=>e.hasFormat("bold")&&"Bold",e=>e.hasFormat("code")&&"Code",e=>e.hasFormat("italic")&&"Italic",e=>e.hasFormat("strikethrough")&&"Strikethrough",e=>e.hasFormat("subscript")&&"Subscript",e=>e.hasFormat("superscript")&&"Superscript",e=>e.hasFormat("underline")&&"Underline",e=>e.hasFormat("highlight")&&"Highlight"],y=[e=>e.hasTextFormat("bold")&&"Bold",e=>e.hasTextFormat("code")&&"Code",e=>e.hasTextFormat("italic")&&"Italic",e=>e.hasTextFormat("strikethrough")&&"Strikethrough",e=>e.hasTextFormat("subscript")&&"Subscript",e=>e.hasTextFormat("superscript")&&"Superscript",e=>e.hasTextFormat("underline")&&"Underline",e=>e.hasTextFormat("highlight")&&"Highlight"],v=[e=>e.isDirectionless()&&"Directionless",e=>e.isUnmergeable()&&"Unmergeable"],b=[e=>e.isToken()&&"Token",e=>e.isSegmented()&&"Segmented"];function _(e,t=!1){let r=Object.entries(f).reduce((e,[t,r])=>e.replace(RegExp(t,"g"),String(r)),e);return t?r.replace(/[^\s]/g,"*"):r}function w(e){let t=m.map(t=>t(e)).filter(Boolean).join(", ").toLocaleLowerCase();return""!==t&&(t="format: "+t),t}function x(e){if(!e.__state)return!1;let t=[];for(let[r,n]of e.__state.knownState.entries()){if(r.isEqual(n,r.defaultValue))continue;let e=JSON.stringify(r.unparse(n));t.push(`[${r.key}: ${e}]`)}let r=t.join(",");return""!==r&&(r="state: "+r),r}let S=(0,c.forwardRef)(function({treeTypeButtonClassName:e,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:r,timeTravelPanelButtonClassName:n,viewClassName:i,timeTravelPanelClassName:l,editorState:o,setEditorState:a,setEditorReadOnly:s,generateContent:u,commandsLog:f=[]},h){let[p,m]=(0,c.useState)([]),[y,v]=(0,c.useState)(""),[b,_]=(0,c.useState)(!1),[w,x]=(0,c.useState)(!1),S=(0,c.useRef)(0),C=(0,c.useRef)(null),[k,T]=(0,c.useState)(!1),[N,E]=(0,c.useState)(!1),[P,O]=(0,c.useState)(!1),$=(0,c.useRef)(null),A=(0,c.useRef)([]),M=(0,c.useRef)(0),j=(0,c.useCallback)(e=>{let t=++M.current;u(e).then(e=>{t===M.current&&v(e)}).catch(e=>{t===M.current&&v(`Error rendering tree: ${e.message} 11 12Stack: 13${e.stack}`)})},[u]);(0,c.useEffect)(()=>{if((P||!(o._nodeMap.size>1e3)||(E(!0),P))&&($.current!==o||A.current!==f)){let e=$.current!==o;$.current=o,A.current=f,j(w),!b&&e&&m(e=>[...e,[Date.now(),o]])}},[o,j,w,P,b,f]);let D=p.length;return(0,c.useEffect)(()=>{if(k){let e,t=()=>{let r=S.current;if(r===D-1)return void T(!1);let n=p[r][0];e=setTimeout(()=>{S.current++;let e=S.current,r=C.current;null!==r&&(r.value=String(e)),a(p[e][1]),t()},p[r+1][0]-n)};return t(),()=>{clearTimeout(e)}}},[p,k,D,a]),(0,d.jsxs)("div",{className:i,children:[!P&&N?(0,d.jsxs)("div",{style:{padding:20},children:[(0,d.jsx)("span",{style:{marginRight:20},children:"Detected large EditorState, this can impact debugging performance."}),(0,d.jsx)("button",{onClick:()=>{O(!0)},style:{background:"transparent",border:"1px solid white",color:"white",cursor:"pointer",padding:5},children:"Show full tree"})]}):null,P?null:(0,d.jsx)("button",{onClick:()=>(j(!w),void x(!w)),className:e,type:"button",children:w?"Tree":"Export DOM"}),!b&&(P||!N)&&D>2&&(0,d.jsx)("button",{onClick:()=>{s(!0),S.current=D-1,_(!0)},className:t,type:"button",children:"Time Travel"}),(P||!N)&&(0,d.jsx)("pre",{ref:h,children:y}),b&&(P||!N)&&(0,d.jsxs)("div",{className:l,children:[(0,d.jsx)("button",{className:n,onClick:()=>{S.current===D-1&&(S.current=1),T(!k)},type:"button",children:k?"Pause":"Play"}),(0,d.jsx)("input",{className:r,ref:C,onChange:e=>{let t=Number(e.target.value),r=p[t];r&&(S.current=t,a(r[1]))},type:"range",min:"1",max:D-1}),(0,d.jsx)("button",{className:n,onClick:()=>{s(!1);let e=p.length-1;a(p[e][1]);let t=C.current;null!==t&&(t.value=String(e)),_(!1),T(!1)},type:"button",children:"Exit"})]})]})});function C({treeTypeButtonClassName:e,timeTravelButtonClassName:t,t
13imeTravelPanelSliderClassName:r,timeTravelPanelButtonClassName:o,timeTravelPanelClassName:s,viewClassName:f,editor:m,customPrintNode:C}){let k=c.createRef(),[T,N]=(0,c.useState)(m.getEditorState()),E=function(e){let[t,r]=(0,c.useState)([]);return(0,c.useEffect)(()=>(function(e,t){let r=new Set,n=0;for(let[i]of e._commands)r.add(e.registerCommand(i,e=>(t(t=>{let r=[...t];return r.push({index:n+=1,payload:e,type:i.type?i.type:"UNKNOWN"}),r.length>10&&r.shift(),r}),!1),l.da8));return()=>r.forEach(e=>e())})(e,r),[e]),(0,c.useMemo)(()=>t,[t])}(m);return(0,c.useEffect)(()=>(0,l.Sdt)(m.registerUpdateListener(({editorState:e})=>{N(e)}),m.registerEditableListener(()=>{N(m.getEditorState())})),[m]),(0,c.useEffect)(()=>{let e=k.current;if(null!==e)return e.__lexicalEditor=m,()=>{e.__lexicalEditor=null}},[m,k]),(0,d.jsx)(S,{treeTypeButtonClassName:e,timeTravelButtonClassName:t,timeTravelPanelSliderClassName:r,timeTravelPanelButtonClassName:o,viewClassName:f,timeTravelPanelClassName:s,setEditorReadOnly:e=>{let t=m.getRootElement();null!=t&&(t.contentEditable=e?"false":"true")},editorState:T,setEditorState:e=>m.setEditorState(e),generateContent:async function(e){return function(e,t,r,o,s=!1){let c=e.getEditorState(),d=e._config,f=e._compositionKey,m=e._editable;if(r){let t="";return c.read(()=>{t=function(e){let t=document.createElement("div");return t.innerHTML=e.trim(),function e(t,r){let n,i=Array(1+r++).join(" "),l=Array(r-1).join(" ");for(let o=0;o<t.children.length;o++)n=document.createTextNode("\n"+i),t.insertBefore(n,t.children[o]),e(t.children[o],r),t.lastElementChild===t.children[o]&&(n=document.createTextNode("\n"+l),t.appendChild(n));return t}(t,0).innerHTML}((0,n.g)(e))}),t}let S=" root\n",C=c.read(()=>{let e=(0,l.vJq)();return function e(t,r,n=[]){let i=t.getChildren(),o=i.length;i.forEach((t,i)=>{r(t,n.concat(i===o-1?p.isLastChild:p.hasNextSibling)),(0,l.ff4)(t)&&e(t,r,n.concat(i===o-1?p.ancestorIsLastChild:p.ancestorHasNextSibling))})}((0,l.NiT)(),(t,r)=>{let n=`(${t.getKey()})`,u=t.getType()||"",c=t.isSelected();S+=`${c?p.selectedLine:" "} ${r.join(" ")} ${n} ${u} ${function(e,t,r=!1){let n=t?t(e,r):void 0;if(void 0!==n&&n.length>0)return n;if((0,l.kFe)(e)){var o,s;let t,n,i=e.getTextContent(),l=0===i.length?"(empty)":`"${_(i,r)}"`,a=[w(e),(o=e,""!==(t=v.map(e=>e(o)).filter(Boolean).join(", ").toLocaleLowerCase())&&(t="detail: "+t),t),(s=e,""!==(n=b.map(e=>e(s)).filter(Boolean).join(", ").toLocaleLowerCase())&&(n="mode: "+n),n),x(e)].filter(Boolean).join(", ");return[l,0!==a.length?`{ ${a} }`:null].filter(Boolean).join(" ").trim()}if((0,i.FJ)(e)){let t,n,i,l=e.getURL(),o=0===l.length?"(empty)":`"${_(l,r)}"`,a=[(null!=(t=e.getTarget())&&(t="target: "+t),t),(null!=(n=e.getRel())&&(n="rel: "+n),n),(null!=(i=e.getTitle())&&(i="title: "+i),i),x(e)].filter(Boolean).join(", ");return[o,0!==a.length?`{ ${a} }`:null].filter(Boolean).join(" ").trim()}if(e instanceof a)return`ids: [ ${e.getIDs().join(", ")} ]`;if((0,l.bSg)(e)){let t,r=(""!==(t=y.map(t=>t(e)).filter(Boolean).join(", ").toLocaleLowerCase())&&(t="format: "+t),t);return(""!==r?`{ ${r} }`:"")+(e.__style?`(${e.__style})`:"")}return""}(t,o,s)} 14`,S+=function({indent:e,isSelected:t,node:r,nodeKeyDisplay:n,selection:i,typeDisplay:o}){if(!(0,l.kFe)(r)||!(0,l.I2P)(i)||!t||(0,l.ff4)(r))return"";let a=i.anchor,s=i.focus;if(""===r.getTextContent()||a.getNode()===i.focus.getNode()&&a.offset===s.offset)return"";let[u,c]=function(e,t){let r=t.getStartEndPoints();if((0,l.RTZ)(t)||null===r)return[-1,-1];let[n,i]=r,o=e.getTextContent(),a=o.length,s=-1,u=-1;if("text"===n.type&&"text"===i.type){let t=n.getNode(),r=i.getNode();t===r&&e===t&&n.offset!==i.offset?[s,u]=n.offset<i.offset?[n.offset,i.offset]:[i.offset,n.offset]:[s,u]=e===t?t.isBefore(r)?[n.offset,a]:[0,n.offset]:e===r?r.isBefore(t)?[i.offset,a]:[0,i.offset]:[0,a]}let c=(o.slice(0,s).match(h)||[]).length,d=(o.slice(s,u).match(h)||[]).length;return[s+c,u+c+d]}(r,i);if(u===c)return"";let d=e[e.length-1]===p.hasNextSibling?p.ancestorHasNextSibling:p.ancestorIsLastChild,f=[...e.slice(0,e.length-1),d],m=Array(u+1).fill(" "),y=Array(c-u).fill(p.selectedChar),v=o.length+2,b=Array(n.length+v).fill(" ");return[p.selectedLine,f.join(" "),[...b,...m,...y].join("")].join(" ")+"\n"}({indent:r,isSelected:c,node:t,nodeKeyDisplay:n,selection:e,typeDisplay:u})}),null===e?": null":(0,l.I2P)(e)?function(e){let t="",r=w(e);t+=`: range ${""!==r?`{ ${r} }`:""} ${""!==e.style?`{ style: ${e.style} } `:""}`;let n=e.anchor,i=e.focus,l=n.offset,o=i.offset;return t+` 15 â anchor { key: ${n.key}, offset: ${null===l?"null":l}, type: ${n.type} } 16 â focus { key: ${i.key}, offset: ${null===o?"null":o}, type: ${i.type} }`}(e):(0,u.Ln)(e)?`: table 17 â { table: ${e.tableKey}, anchorCell: ${e.anchor.key}, focusCell: ${e.focus.key} }`:(0,l.RTZ)(e)?`: node 18 â [${Array.from(e._nodes).join(", ")}]`:""});if(S+="\n selection"+C,S+="\n\n commands:",t.length)for(let{index:e,type:r,payload:n}of t)S+=` 19 â ${e}. { type: ${r}, payload: ${n instanceof Event?n.constructor.name:n} }`;else S+="\n â None dispatched.";let{version:k}=e.constructor;return S+=` 20 21 editor${k?` (v${k})`:""}:`,S+=` 22 â namespace ${d.namespace}`,null!==f&&(S+=` 23 â compositionKey ${f}`),S+=` 24 â editable ${String(m)}`}(m,E,e,C)},ref:k,commandsLog:E})}},14912:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});let n=new Set(["equals","contains","not_equals","in","all","not_in","exists","greater_than","greater_than_equal","less_than","less_than_equal","like","not_like","within","intersects","near"]),i=e=>!!(e?.or&&(e?.or?.length===0||e?.or?.length>0&&e?.or?.[0]?.and&&e?.or?.[0]?.and?.length>0))&&e.or.every(e=>!!(e.and&&Array.isArray(e.and))&&e.and.every(e=>{if("object"!=typeof e)return!1;let t=Object.keys(e);if(0===t.length)return!1;for(let r of t){let t=Object.keys(e[r])[0];if(!t||!n.has(t))return!1}return!0}))}
24,14994:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(43961);let i=(e,t,r)=>{let i={};return e&&(Object.keys(e).forEach(t=>{!0!==r&&e[t]?.disableFormData||(i[t]=e[t]?.value)}),t&&(i=(0,n.s)(i))),i}},15526:(e,t,r)=>{"use strict";r.d(t,{KS:()=>function e(t,r={}){if("object"!=typeof t||null===t||!("$$typeof"in t)||"symbol"!=typeof t.$$typeof){if("object"!=typeof t||null===t)return t;if(Array.isArray(t))return t.map(t=>"object"!=typeof t||null===t?t:e(t,r));if(t instanceof File){if(r.excludeFiles)return;return t}if(t instanceof Date)return new Date(t);let n={};for(let i in t){let l=t[i];n[i]="object"!=typeof l||null===l?l:e(l,r)}return n}}});var n=r(49641).Buffer;function i(e){return e instanceof n?n.from(e):new e.constructor(e.buffer.slice(),e.byteOffset,e.length)}let l=new Map;l.set(Date,e=>new Date(e)),l.set(Map,(e,t)=>new Map(a(Array.from(e),t))),l.set(Set,(e,t)=>new Set(a(Array.from(e),t))),l.set(RegExp,e=>new RegExp(e.source,e.flags));let o=null;function a(e,t){let r=Object.keys(e),n=Array(r.length);for(let a=0;a<r.length;a++){let s=r[a],u=e[s];"object"!=typeof u||null===u?n[s]=u:u instanceof RegExp?n[s]=new RegExp(u.source,u.flags):u.constructor!==Object&&(o=l.get(u.constructor))?n[s]=o(u,t):ArrayBuffer.isView(u)?n[s]=i(u):n[s]=t(u)}return n}let s=e=>{if("object"!=typeof e||null===e)return e;if(Array.isArray(e))return a(e,s);if(e instanceof RegExp)return new RegExp(e.source,e.flags);if(e.constructor!==Object&&(o=l.get(e.constructor)))return o(e,s);let t={};for(let r in e){if(!1===Object.hasOwnProperty.call(e,r))continue;let n=e[r];"object"!=typeof n||null===n?t[r]=n:n instanceof RegExp?t[r]=new RegExp(n.source,n.flags):n.constructor!==Object&&(o=l.get(n.constructor))?t[r]=o(n,s):ArrayBuffer.isView(n)?t[r]=i(n):t[r]=s(n)}return t}},16490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772),i=r(73274);t.default={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>(0,n._)`{passingSchemas: ${e.passing}}`},code(e){let{gen:t,schema:r,parentSchema:l,it:o}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(o.opts.discriminator&&l.discriminator)return;let a=t.let("valid",!1),s=t.let("passing",null),u=t.name("_valid");e.setParams({passing:s}),t.block(function(){r.forEach((r,l)=>{let c;(0,i.alwaysValidSchema)(o,r)?t.var(u,!0):c=e.subschema({keyword:"oneOf",schemaProp:l,compositeRule:!0},u),l>0&&t.if((0,n._)`${u} && ${a}`).assign(a,!1).assign(s,(0,n._)`[${s}, ${l}]`).else(),t.if(u,()=>{t.assign(a,!0),t.assign(s,l),c&&e.mergeEvaluated(c,n.Name)})})}),e.result(a,()=>e.reset(),()=>e.error(!0))}}},16565:(e,t,r)=>{"use strict";r.d(t,{p:()=>n});let n=async e=>{let t;switch(e){case"ar":t=(await r.e(8085).then(r.bind(r,18085))).ar;break;case"az":t=(await r.e(933).then(r.bind(r,10933))).az;break;case"bg":t=(await r.e(8109).then(r.bind(r,78109))).bg;break;case"bn-BD":case"bn-IN":t=(await r.e(6797).then(r.bind(r,16797))).bn;break;case"ca":t=(await r.e(286).then(r.bind(r,50286))).ca;break;case"cs":t=(await r.e(2116).then(r.bind(r,82116))).cs;break;case"da":t=(await r.e(2382).then(r.bind(r,22382))).da;break;case"de":t=(await r.e(2713).then(r.bind(r,62713))).de;break;case"en-US":t=(await Promise.resolve().then(r.bind(r,83039))).enUS;break;case"es":t=(await r.e(3439).then(r.bind(r,13439))).es;break;case"et":t=(await r.e(5302).then(r.bind(r,5302))).et;break;case"fa-IR":t=(await r.e(5344).then(r.bind(r,95344))).faIR;break;case"fr":t=(await r.e(7981).then(r.bind(r,37981))).fr;break;case"he":t=(await r.e(7709).then(r.bind(r,67709))).he;break;case"hr":t=(await r.e(7039).then(r.bind(r,57039))).hr;break;case"hu":t=(await r.e(3033).then(r.bind(r,33033))).hu;break;case"id":t=(await r.e(6972).then(r.bind(r,66972))).id;break;case"is":t=(await r.e(9033).then(r.bind(r,19033))).is;break;case"it":t=(await r.e(9769).then(r.bind(r,69769))).it;break;case"ja":t=(await r.e(8885).then(r.bind(r,58885))).ja;break;case"ko":t=(await r.e(480).then(r.bind(r,20480))).ko;break;case"lt":t=(await r.e(5895).then(r.bind(r,75895))).lt;break;case"lv":t=(await r.e(7789).then(r.bind(r,17789))).lv;break;case"nb":t=(await r.e(3007).then(r.bind(r,93007))).nb;break;case"nl":t=(await r.e(6685).then(r.bind(r,96685))).nl;break;case"pl":t=(await r.e(9927).then(r.bind(r,39927))).pl;break;case"pt":t=(await r.e(5330).then(r.bind(r,95330))).pt;break;case"ro":t=(await r.e(8431).then(r.bind(r,48431))).ro;break;case"rs":t=(await r.e(3151).then(r.bind(r,23151))).sr;break;case"rs-Latin":t=(await r.e(4057).then(r.bind(r,14057))).srLatn;break;case"ru":t=(await r.e(1563).then(r.bind(r,31563))).ru;break;case"sk":t=(await r.e(6043).then(r.bind(r,96043))).sk;break;case"sl-SI":t=(await r.e(3577).then(r.bind(r,73577))).sl;break;case"sv":t=(await r.e(851).then(r.bind(r,20851))).sv;break;case"ta":t=(await r.e(2349).then(r.bind(r,2349))).ta;break;case"th":t=(await r.e(8066).then(r.bind(r,18066))).th;break;case"tr":t=(await r.e(8046).then(r.bind(r,38046))).tr;break;case"uk":t=(await r.e(501).then(r.bind(r,20501))).uk;break;case"vi":t=(await r.e(2967).then(r.bind(r,32967))).vi;break;case"zh-CN":t=(await r.e(8274).then(r.bind(r,98274))).zhCN;break;case"zh-TW":t=(await r.e(2704).then(r.bind(r,52704))).zhTW}return t?.default?t.default:t}},16924:(e,t,r)=>{"use strict";
24Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772),i=r(54797),l=r(11930),o=r(24950),a=r(73274);t.default={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===i.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,n._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){let{gen:t,data:r,schema:s,parentSchema:u,it:c}=e,{oneOf:d}=u;if(!c.opts.discriminator)throw Error("discriminator: requires discriminator option");let f=s.propertyName;if("string"!=typeof f)throw Error("discriminator: requires propertyName");if(s.mapping)throw Error("discriminator: mapping is not supported");if(!d)throw Error("discriminator: requires oneOf keyword");let h=t.let("valid",!1),p=t.const("tag",(0,n._)`${r}${(0,n.getProperty)(f)}`);t.if((0,n._)`typeof ${p} == "string"`,()=>(function(){let r=function(){var e;let t={},r=i(u),n=!0;for(let t=0;t<d.length;t++){let u=d[t];if((null==u?void 0:u.$ref)&&!(0,a.schemaHasRulesButRef)(u,c.self.RULES)){let e=u.$ref;if((u=l.resolveRef.call(c.self,c.schemaEnv.root,c.baseId,e))instanceof l.SchemaEnv&&(u=u.schema),void 0===u)throw new o.default(c.opts.uriResolver,c.baseId,e)}let h=null==(e=null==u?void 0:u.properties)?void 0:e[f];if("object"!=typeof h)throw Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${f}"`);n=n&&(r||i(u)),function(e,t){if(e.const)s(e.const,t);else if(e.enum)for(let r of e.enum)s(r,t);else throw Error(`discriminator: "properties/${f}" must have "const" or "enum"`)}(h,t)}if(!n)throw Error(`discriminator: "${f}" must be required`);return t;function i({required:e}){return Array.isArray(e)&&e.includes(f)}function s(e,r){if("string"!=typeof e||e in t)throw Error(`discriminator: "${f}" values must be unique strings`);t[e]=r}}();for(let i in t.if(!1),r)t.elseIf((0,n._)`${p} === ${i}`),t.assign(h,function(r){let i=t.name("valid"),l=e.subschema({keyword:"oneOf",schemaProp:r},i);return e.mergeEvaluated(l,n.Name),i}(r[i]));t.else(),e.error(!1,{discrError:i.DiscrError.Mapping,tag:p,tagName:f}),t.endIf()})(),()=>e.error(!1,{discrError:i.DiscrError.Tag,tag:p,tagName:f})),e.ok(h)}}},17311:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});let n=e=>e?e.or&&!e.and?{or:e.or.map(e=>e.and?e:{and:[e]})}:e.and&&!e.or?{or:[{and:e.and}]}:e.or||e.and?e:{or:[{and:[e]}]}:{}},17324:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(85331),i=r(81708),l=r(73274),o=r(3965);t.default={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:a,data:s,it:u}=e;"all"===u.opts.removeAdditional&&void 0===a.additionalProperties&&o.default.code(new n.KeywordCxt(u,o.default,"additionalProperties"));let c=(0,i.allSchemaProperties)(r);for(let e of c)u.definedProperties.add(e);u.opts.unevaluated&&c.length&&!0!==u.props&&(u.props=l.mergeEvaluated.props(t,(0,l.toHash)(c),u.props));let d=c.filter(e=>!(0,l.alwaysValidSchema)(u,r[e]));if(0===d.length)return;let f=t.name("valid");for(let n of d){var h;(h=n,u.opts.useDefaults&&!u.compositeRule&&void 0!==r[h].default)?p(n):(t.if((0,i.propertyInData)(t,s,n,u.opts.ownProperties)),p(n),u.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f)}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}}},17819:(e,t,r)=>{"use strict";r.d(t,{q:()=>f});var n=r(88849);let i=Object.prototype.hasOwnProperty,l=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,comma:!1,decodeDotInKeys:!1,decoder:n.D4,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s=function(e,t){let r,s={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,c=t.parameterLimit===1/0?void 0:t.parameterLimit,d=u.split(t.delimiter,c);for(r=0;r<d.length;++r){let e,u,c=d[r],f=c.indexOf("]="),h=-1===f?c.indexOf("="):f+1;-1===h?(e=t.decoder(c,o.decoder,"key"),u=t.strictNullHandling?null:""):(e=t.decoder(c.slice(0,h),o.decoder,"key"),u=n.F7(a(c.slice(h+1),t),function(e){return t.decoder(e,o.decoder,"value")})),c.indexOf("[]=")>-1&&(u=l(u)?[u]:u),t.comma&&l(u)&&u.length>t.arrayLimit&&(u=n.kg([],u,t.arrayLimit,t.plainObjects));let p=i.call(s,e);p&&"combine"===t.duplicates?s[e]=n.kg(s[e],u,t.arrayLimit,t.plainObjects):p&&"last"!==t.duplicates||(s[e]=u)}return s},u=function(e,t,r,i){let l=i?t:a(t,r);for(let t=e.length-1;t>=0;--t){let i,o=e[t];if("[]"===o&&r.parseArrays)i=n.Rj(l)?l:r.allowEmptyArrays&&(""===l||r.strictNullHandling&&null===l)?[]:n.kg([],l,r.arrayLimit,r.plainObjects);else{i=r.plainObjects?Object.create(null):{};let e="["===o.charAt(0)&&"]"===o.charAt(o.length-1)?o.slice(1,-1):o,t=r.decodeDotInKeys?e.replace(/%2E/g,"."):e,n=parseInt(t,10);r.parseArrays||""!==t?!isNaN(n)&&o!==t&&String(n)===t&&n>=0&&r.parseArrays&&n<=r.arrayLimit?(i=[])[n]=l:"__proto__"!==t&&(i[t]=l):i={0:l}}l=i}return l},c=function(e,t,r,n){if(!e)return;let l=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(l),s=a?l.slice(0,a.index):l,c=[];if(s){if(!r.plainObjects&&i.call(Object.prototype,s)&&!r.allowPrototypes)return;c.push(s)}let d=0;for(;r.depth>0&&null!==(a=o.exec(l))&&d<r.depth;){if(d+=1,!r.plainObjects&&i.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+l.slice(a.index)+"]"),u(c,t,r,n)},d=function(e){if(!e)return o;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");
24if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");let t=void 0===e.duplicates?o.duplicates:e.duplicates;if("combine"!==t&&"first"!==t&&"last"!==t)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||o.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,comma:"boolean"==typeof e.comma?e.comma:o.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:o.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.gd(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,duplicates:t,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}};function f(e,t){let r=d(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};let i="string"==typeof e?s(e,r):e,l=r.plainObjects?Object.create(null):{},o=Object.keys(i);for(let t=0;t<o.length;++t){let a=o[t],s=c(a,i[a],r,"string"==typeof e);l=n.h1(l,s,r)}return!0===r.allowSparse?l:n.oE(l)}},18940:(e,t,r)=>{"use strict";r.d(t,{VersionPillLabel:()=>f});var n=r(19749),i=r(95155),l=r(92825),o=r(41412),a=r(63344),s=r(78234),u=r(12115);let c="version-pill-label",d=(e,t)=>(0,i.jsx)(l.Pill,{pillStyle:t,size:"small",children:e}),f=e=>{let t,r=(0,n.c)(14),{currentlyPublishedVersion:f,disableDate:h,doc:p,labelFirst:m,labelOverride:y,labelStyle:v,labelSuffix:b,latestDraftVersion:_}=e,w=void 0!==h&&h,x=void 0!==m&&m,S=void 0===v?"pill":v,{config:C}=(0,o.c)(),{admin:k,localization:T}=C,{dateFormat:N}=k,{i18n:E,t:P}=(0,a.d)(),{code:O}=(0,l.useLocale)();if(r[0]!==O||r[1]!==f||r[2]!==N||r[3]!==w||r[4]!==p||r[5]!==E||r[6]!==x||r[7]!==y||r[8]!==S||r[9]!==b||r[10]!==_||r[11]!==T||r[12]!==P){var $;let{label:e,pillStyle:n}=function({currentLocale:e,currentlyPublishedVersion:t,latestDraftVersion:r,t:n,version:i}){let l=i.version._status;if("draft"===l){if(t?.updatedAt>r?.updatedAt)return{name:"draft",label:n("version:draft"),pillStyle:"light"};let e=i.id===r?.id;return{name:e?"currentDraft":"draft",label:n(e?"version:currentDraft":"version:draft"),pillStyle:"light"}}if("published"===l&&i.publishedLocale&&e!==i.publishedLocale)return{name:"currentDraft",label:n("version:currentDraft"),pillStyle:"light"};let o=t&&i.id===t.id;return{name:o?"currentlyPublished":"previouslyPublished",label:n(o?"version:currentlyPublished":"version:previouslyPublished"),pillStyle:o?"success":"light"}}({currentLocale:O,currentlyPublishedVersion:f,latestDraftVersion:_,t:P,version:p}),o=(0,i.jsxs)("span",{children:[y||e,b]}),a=!w&&p.updatedAt,h=a?(0,s.Yq)({date:p.updatedAt,i18n:E,pattern:N}):null,m=Array.isArray(p.publishedLocale)?p.publishedLocale[0]:p.publishedLocale,v=T&&(null==T?void 0:T.locales)?T.locales.find(e=>e.code===m):null,C=v?(null==v||null==($=v.label)?void 0:$[null==E?void 0:E.language])||(null==v?void 0:v.label):null;t=(0,i.jsxs)("div",{className:c,children:[x?(0,i.jsxs)(u.Fragment,{children:["pill"===S?d(o,n):(0,i.jsx)("span",{className:"".concat(c,"-text"),children:o}),a&&(0,i.jsx)("span",{className:"".concat(c,"-date"),children:h})]}):(0,i.jsxs)(u.Fragment,{children:[a&&(0,i.jsx)("span",{className:"".concat(c,"-date"),children:h}),"pill"===S?d(o,n):(0,i.jsx)("span",{className:"".concat(c,"-text"),children:o})]}),C&&(0,i.jsx)(l.Pill,{size:"small",children:C})]}),r[0]=O,r[1]=f,r[2]=N,r[3]=w,r[4]=p,r[5]=E,r[6]=x,r[7]=y,r[8]=S,r[9]=b,r[10]=_,r[11]=T,r[12]=P,r[13]=t}else t=r[13];return t}},19749:(e,t,r)=>{"use strict";e.exports=r(4873)},19958:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"/_next/static/media/payload-favicon.7c819288.svg",height:1024,width:1024,blurWidth:0,blurHeight:0}},20385:(e,t,r)=>{"use strict";r.d(t,{I:()=>l,a:()=>i});var n=r(12115);let i=(0,n.createContext)({selectedLocales:[]}),l=()=>(0,n.use)(i)},20419:(e,t,r)=>{"use strict";
24Object.defineProperty(t,"__esModule",{value:!0});let n=r(97208),i=r(88515),l=r(66183),o=r(79975),a=r(21116),s=r(90600),u=r(58208),c=r(3965),d=r(17324),f=r(92532),h=r(90234),p=r(56336),m=r(16490),y=r(27445),v=r(79558),b=r(76931);t.default=function(e=!1){let t=[h.default,p.default,m.default,y.default,v.default,b.default,u.default,c.default,s.default,d.default,f.default];return e?t.push(i.default,o.default):t.push(n.default,l.default),t.push(a.default),t}},21116:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772),i=r(73274);t.default={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?(0,n.str)`must contain at least ${e} valid item(s)`:(0,n.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?(0,n._)`{minContains: ${e}}`:(0,n._)`{minContains: ${e}, maxContains: ${t}}`},code(e){let t,r,{gen:l,schema:o,parentSchema:a,data:s,it:u}=e,{minContains:c,maxContains:d}=a;u.opts.next?(t=void 0===c?1:c,r=d):t=1;let f=l.const("len",(0,n._)`${s}.length`);if(e.setParams({min:t,max:r}),void 0===r&&0===t)return void(0,i.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==r&&t>r){(0,i.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,i.alwaysValidSchema)(u,o)){let i=(0,n._)`${f} >= ${t}`;void 0!==r&&(i=(0,n._)`${i} && ${f} <= ${r}`),e.pass(i);return}u.items=!0;let h=l.name("valid");function p(){let e=l.name("_valid"),i=l.let("count",0);m(e,()=>l.if(e,()=>{var e;return e=i,void(l.code((0,n._)`${e}++`),void 0===r?l.if((0,n._)`${e} >= ${t}`,()=>l.assign(h,!0).break()):(l.if((0,n._)`${e} > ${r}`,()=>l.assign(h,!1).break()),1===t?l.assign(h,!0):l.if((0,n._)`${e} >= ${t}`,()=>l.assign(h,!0))))}))}function m(t,r){l.forRange("i",0,f,n=>{e.subschema({keyword:"contains",dataProp:n,dataPropType:i.Type.Num,compositeRule:!0},t),r()})}void 0===r&&1===t?m(h,()=>l.if(h,()=>l.break())):0===t?(l.let(h,!0),void 0!==r&&l.if((0,n._)`${s}.length > 0`,p)):(l.let(h,!1),p()),e.result(h,()=>e.reset())}}},21526:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;let n=r(79772),i=r(73274);t.getSubschema=function(e,{keyword:t,schemaProp:r,schema:l,schemaPath:o,errSchemaPath:a,topSchemaRef:s}){if(void 0!==t&&void 0!==l)throw Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){let l=e.schema[t];return void 0===r?{schema:l,schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:l[r],schemaPath:(0,n._)`${e.schemaPath}${(0,n.getProperty)(t)}${(0,n.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,i.escapeFragment)(r)}`}}if(void 0!==l){if(void 0===o||void 0===a||void 0===s)throw Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:l,schemaPath:o,topSchemaRef:s,errSchemaPath:a}}throw Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:r,dataPropType:l,data:o,dataTypes:a,propertyName:s}){if(void 0!==o&&void 0!==r)throw Error('both "data" and "dataProp" passed, only one allowed');let{gen:u}=t;if(void 0!==r){let{errorPath:o,dataPathArr:a,opts:s}=t;c(u.let("data",(0,n._)`${t.data}${(0,n.getProperty)(r)}`,!0)),e.errorPath=(0,n.str)`${o}${(0,i.getErrorPath)(r,l,s.jsPropertySyntax)}`,e.parentDataProperty=(0,n._)`${r}`,e.dataPathArr=[...a,e.parentDataProperty]}function c(r){e.data=r,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,r]}void 0!==o&&(c(o instanceof n.Name?o:u.let("data",o,!0)),void 0!==s&&(e.propertyName=s)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:l}){void 0!==n&&(e.compositeRule=n),void 0!==i&&(e.createErrors=i),void 0!==l&&(e.allErrors=l),e.jtdDiscriminator=t,e.jtdMetadata=r}},22199:(e,t,r)=>{"use strict";r.d(t,{Button:()=>v});var n=r(95155),i=r(12115);r(78463);let l=({ariaLabel:e,className:t,direction:r,size:i})=>(0,n.jsx)("svg",{"aria-label":e,className:["icon icon--chevron",t,i&&`icon--size-${i}
24`].filter(Boolean).join(" "),height:"100%",style:{transform:"left"===r?"rotate(90deg)":"right"===r?"rotate(-90deg)":"up"===r?"rotate(180deg)":void 0},viewBox:"0 0 20 20",width:"100%",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M14 8L10 12L6 8",strokeLinecap:"square"})});r(53537),r(78201),r(58013),r(22774),r(47496);var o=r(52256),a=r(47650);let s=e=>{let t=(0,i.useRef)(e);return(0,i.useInsertionEffect)(()=>{t.current=e},[e]),(0,i.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return(0,t.current)(...r)},[])};r(45650),r(4057);let u="popup-button",c=e=>{let{active:t,button:r,buttonType:i,className:l,disabled:o,noBackground:a,setActive:s,size:c}=e,d=[u,l,"".concat(u,"--").concat(i),!a&&"".concat(u,"--background"),c&&"".concat(u,"--size-").concat(c),o&&"".concat(u,"--disabled")].filter(Boolean).join(" "),f=()=>{s(!t,!1)},h=e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),s(!t,!0))};return"none"===i?null:"custom"===i?(0,n.jsx)("div",{className:d,onClick:f,onKeyDown:h,role:"button",tabIndex:0,children:r}):(0,n.jsx)("button",{className:d,disabled:o,onClick:f,onKeyDown:h,tabIndex:0,type:"button",children:r})},d="popup",f=["a[href]","button:not(:disabled)",'input:not(:disabled):not([type="hidden"])',"select:not(:disabled)","textarea:not(:disabled)","[tabindex]",'[contenteditable]:not([contenteditable="false"])',"audio[controls]","video[controls]","summary"].map(e=>"".concat(e,':not([tabindex="-1"])')).join(", "),h=e=>{let{id:t,button:r,buttonClassName:l,buttonSize:o,buttonType:u="default",caret:h=!0,children:p,className:m,disabled:y,forceOpen:v,horizontalAlign:b="left",initActive:_=!1,noBackground:w,onToggleClose:x,onToggleOpen:S,portalClassName:C,render:k,showOnHover:T=!1,showScrollbar:N=!1,size:E="medium",verticalAlign:P="bottom"}=e,O=(0,i.useRef)(null),$=(0,i.useRef)(null),A=(0,i.useRef)(!1),[M,j]=(0,i.useState)(!1),[D,I]=(0,i.useState)(_),[F,R]=(0,i.useState)("top"===P);(0,i.useEffect)(()=>{j(!0)},[]);let L=(0,i.useCallback)(function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?(A.current=t,null==S||S(!0)):null==x||x(),I(e)},[x,S]),B=s(()=>{let e,t=$.current,r=O.current;if(!t||!r)return;let n=t.getBoundingClientRect(),i=r.getBoundingClientRect(),l="top"===P;"bottom"===P?(e=n.bottom+window.scrollY+10,n.bottom+i.height+10>window.innerHeight&&(e=n.top+window.scrollY-i.height-10,l=!0)):(e=n.top+window.scrollY-i.height-10,n.top-i.height-10<0&&(e=n.bottom+window.scrollY+10,l=!1)),R(l);let o="right"===b?n.right-i.width:"center"===b?n.left+n.width/2-i.width/2:n.left;o=Math.max(10,Math.min(o,window.innerWidth-i.width-10));let a=Math.max(12,Math.min(n.left+n.width/2-o,i.width-12)),s="".concat(Math.round(e),"px"),u="".concat(Math.round(o+window.scrollX),"px"),c="".concat(Math.round(a),"px");r.style.top!==s&&(r.style.top=s),r.style.left!==u&&(r.style.left=u),r.style.getPropertyValue("--caret-left")!==c&&r.style.setProperty("--caret-left",c)}),z=s(e=>{var t,r;let n=!(null==(t=O.current)?void 0:t.contains(e.target)),i=!(null==(r=$.current)?void 0:r.contains(e.target));n&&i&&L(!1)}),K=s(e=>{let t=O.current;if(t&&D){if("Escape"===e.key){var r,n;e.preventDefault(),L(!1),null==(n=$.current)||null==(r=n.querySelector('button, [tabindex="0"]'))||r.focus();return}if("Tab"===e.key||"ArrowDown"===e.key||"ArrowUp"===e.key){let r,n=Array.from(t.querySelectorAll(f));if(0===n.length)return;e.preventDefault();let i=n.findIndex(e=>e===document.activeElement),l="ArrowUp"===e.key||"Tab"===e.key&&e.shiftKey;r=-1===i?l?n.length-1:0:l?0===i?n.length-1:i-1:i===n.length-1?0:i+1,n[r].focus()}}}),U=s(e=>{var t;let r=e.target;if(r.closest("[data-popup-prevent-close]"))return;let n=r.closest('button, a[href], [role="button"], [role="menuitem"]');n&&(null==(t=O.current)?void 0:t.contains(n))&&L(!1)});(0,i.useEffect)(()=>{if(!D)return;let e=O.current;if(e)return B(),A.current&&requestAnimationFrame(()=>{let t=e.querySelector(f);null==t||t.focus()}),window.addEventListener("resize",B),window.addEventListener("scroll",B,{capture:!0,passive:!0}),document.addEventListener("mousedown",z),document.addEventListener("keydown",K),e.addEventListener("click",U),()=>{window.removeEventListener("resize",B),window.removeEventListener("scroll",B,{capture:!0}),document.removeEventListener("mousedown",z),document.removeEventListener("keydown",K),e.removeEventListener("click",U)}},[D]),(0,i.useEffect)(()=>{void 0!==v&&L(v)},[v,L]);let W=(0,n.jsx)(c,{active:D,button:r,buttonType:u,className:l,disabled:y,noBackgroun
24d:w,setActive:L,size:o});return(0,n.jsxs)("div",{className:[d,m].filter(Boolean).join(" "),id:t,children:[(0,n.jsx)("div",{className:"".concat(d,"__trigger-wrap"),ref:$,children:T?(0,n.jsx)("div",{className:"".concat(d,"__on-hover-watch"),onMouseEnter:()=>L(!0),onMouseLeave:()=>L(!1),role:"button",tabIndex:0,children:W}):W}),M?(0,a.createPortal)((0,n.jsxs)("div",{className:D?["".concat(d,"__content"),"".concat(d,"--size-").concat(E),F?"".concat(d,"--v-top"):"".concat(d,"--v-bottom"),C].filter(Boolean).join(" "):"".concat(d,"__hidden-content"),"data-popup-id":t||void 0,ref:O,children:[(0,n.jsxs)("div",{className:"".concat(d,"__scroll-container").concat(N?" ".concat(d,"__scroll-container--show-scrollbar"):""),children:[null==k?void 0:k({close:()=>L(!1)}),p]}),h&&(0,n.jsx)("div",{className:"".concat(d,"__caret")})]}),document.body):null]})};r(87144);var p=r(41774);let m={chevron:l,edit:({className:e})=>(0,n.jsx)("svg",{className:[e,"icon icon--edit"].filter(Boolean).join(" "),viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M9.68531 4.62938H5.2634C4.92833 4.62938 4.60698 4.76248 4.37004 4.99942C4.13311 5.23635 4 5.5577 4 5.89278V14.7366C4 15.0717 4.13311 15.393 4.37004 15.63C4.60698 15.8669 4.92833 16 5.2634 16H14.1072C14.4423 16 14.7636 15.8669 15.0006 15.63C15.2375 15.393 15.3706 15.0717 15.3706 14.7366V10.3147M13.7124 4.39249C13.9637 4.14118 14.3046 4 14.66 4C15.0154 4 15.3562 4.14118 15.6075 4.39249C15.8588 4.6438 16 4.98464 16 5.34004C16 5.69544 15.8588 6.03629 15.6075 6.28759L9.91399 11.9817C9.76399 12.1316 9.57868 12.2413 9.37515 12.3008L7.56027 12.8314C7.50591 12.8472 7.44829 12.8482 7.39344 12.8341C7.33859 12.8201 7.28853 12.7915 7.24849 12.7515C7.20845 12.7115 7.17991 12.6614 7.16586 12.6066C7.15181 12.5517 7.15276 12.4941 7.16861 12.4397L7.69924 10.6249C7.75896 10.4215 7.86888 10.2364 8.01888 10.0866L13.7124 4.39249Z",strokeLinecap:"square"})}),link:()=>(0,n.jsx)("svg",{"aria-hidden":"true",className:"graphic link icon icon--link",fill:"none",focu
24sable:"false",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M7.99999 13.3333H6.66666C5.78261 13.3333 4.93476 12.9821 4.30964 12.357C3.68452 11.7319 3.33333 10.884 3.33333 9.99999C3.33333 9.11593 3.68452 8.26809 4.30964 7.64297C4.93476 7.01785 5.78261 6.66666 6.66666 6.66666H7.99999M12 6.66666H13.3333C14.2174 6.66666 15.0652 7.01785 15.6904 7.64297C16.3155 8.26809 16.6667 9.11593 16.6667 9.99999C16.6667 10.884 16.3155 11.7319 15.6904 12.357C15.0652 12.9821 14.2174 13.3333 13.3333 13.3333H12M7.33333 9.99999H12.6667",strokeLinecap:"square"})}),plus:()=>(0,n.jsx)("svg",{className:"icon icon--plus",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M5.33333 9.99998H14.6667M9.99999 5.33331V14.6666",strokeLinecap:"square"})}),swap:()=>(0,n.jsx)("svg",{className:"icon icon--swap",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M7.33334 4L4.66667 6.66667M4.66667 6.66667L7.33334 9.33333M4.66667 6.66667H15.3333M12.6667 16L15.3333 13.3333M15.3333 13.3333L12.6667 10.6667M15.3333 13.3333H4.66667",strokeLinecap:"square"})}),x:({className:e})=>(0,n.jsx)("svg",{className:[e,"icon icon--x"].filter(Boolean).join(" "),height:20,viewBox:"0 0 20 20",width:20,xmlns:"http://www.w3.org/2000/svg",children:(0,n.jsx)("path",{className:"stroke",d:"M14 6L6 14M6 6L14 14",strokeLinecap:"square"})})},y=e=>{let{children:t,icon:r,showTooltip:l,tooltip:o}=e,a=m[r];return(0,n.jsxs)(i.Fragment,{children:[o&&(0,n.jsx)(p.m,{className:"".concat("btn","__tooltip"),show:l,children:o}),(0,n.jsxs)("span",{className:"".concat("btn","__content"),children:[t&&(0,n.jsx)("span",{className:"".concat("btn","__label"),children:t}),r&&(0,n.jsxs)("span",{className:"".concat("btn","__icon"),children:[(0,i.isValidElement)(r)&&r,a&&(0,n.jsx)(a,{})]})]})]})},v=e=>{let t,{id:r,type:a="button","aria-label":s,buttonStyle:u="primary",children:c,className:d,disabled:f,el:p="button",enableSubMenu:m,extraButtonProps:v={},icon:b,iconPosition:_="right",iconStyle:w="without-border",margin:x=!0,newTab:S,onClick:C,onMouseDown:k,ref:T,round:N,size:E="medium",SubMenuPopupContent:P,to:O,tooltip:$,url:A}=e,[M,j]=i.useState(!1),D=["btn",d&&d,b&&"".concat("btn","--icon"),w&&"".concat("btn","--icon-style-").concat(w),b&&!c&&"".concat("btn","--icon-only"),E&&"".concat("btn","--size-").concat(E),b&&_&&"".concat("btn","--icon-position-").concat(_),$&&"".concat("btn","--has-tooltip"),!P&&"".concat("btn","--withoutPopup"),!x&&"".concat("btn","--no-margin")].filter(Boolean).join(" "),I=[u&&"".concat("btn","--style-").concat(u),f&&"".concat("btn","--disabled"),N&&"".concat("btn","--round"),P?"".concat("btn","--withPopup"):"".concat("btn","--withoutPopup")].filter(Boolean).join(" "),F={id:r,type:a,"aria-disabled":f,"aria-label":s,className:P?D:[D,I].join(" "),disabled:f,onClick:f?void 0:function(e){j(!1),"submit"!==a&&C&&e.preventDefault(),C&&C(e)},onMouseDown:f?void 0:k,onPointerEnter:$?()=>j(!0):void 0,onPointerLeave:$?()=>j(!1):void 0,rel:S?"noopener noreferrer":void 0,target:S?"_blank":void 0,title:s,...v};switch(p){case"anchor":t=(0,n.jsx)("a",{...F,href:f?void 0:A,ref:T,children:(0,n.jsx)(y,{icon:b,showTooltip:M,tooltip:$,children:c})});break;case"link":f&&(t=(0,n.jsx)("div",{...F,children:(0,n.jsx)(y,{icon:b,showTooltip:M,tooltip:$,children:c})})),t=(0,n.jsx)(o.N,{...F,href:O||A,prefetch:!1,children:(0,n.jsx)(y,{icon:b,showTooltip:M,tooltip:$,children:c})});break;default:t=(0,n.jsx)(p,{ref:T,...F,children:(0,n.jsx)(y,{icon:b,showTooltip:M,tooltip:$,children:c})})}return P?(0,n.jsxs)("div",{className:I,children:[t,(0,n.jsx)(h,{button:(0,n.jsx)(l,{}),buttonSize:E,className:f&&!m?"".concat("btn","--popup-disabled"):"",disabled:f&&!m,horizontalAlign:"right",id:"".concat(r,"-popup"),noBackground:!0,render:e=>{let{close:t}=e;return P({close:()=>t()})},size:"large",verticalAlign:"bottom"})]}):t}},22774:()=>{},23851:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;let n=r(91955),i=r(97825),l=r(16924),o=r(2426),a=["/properties"],s="http://json-schema.org/draft-07/schema";class u extends n.default{_addVocabularies(){super._addVocabularies(),i.default.forEach(e
24=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(l.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let e=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(e,s,!1),this.refs["http://json-schema.org/schema"]=s}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv=u,e.exports=t=u,e.exports.Ajv=u,Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var c=r(85331);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=r(79772);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var f=r(74455);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var h=r(24950);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})},23999:(e,t,r)=>{"use strict";r.d(t,{Cd:()=>y,I2:()=>f,MT:()=>o,Vh:()=>s,Z7:()=>h,aO:()=>u,eE:()=>l,jY:()=>m,pz:()=>p,sd:()=>i,uT:()=>d,vs:()=>a,zj:()=>c});var n=r(49509);function i(e){return"group"===e.type||"array"===e.type||"row"===e.type||"collapsible"===e.type}function l(e){return"array"===e.type}function o(e){return"blocks"===e.type}function a(e){return"object"==typeof e}function s(e){return Array.isArray(e)&&"object"==typeof e?.[0]}function u(e){return"ui"===e.type}function c(e){return"admin"in e&&"position"in e.admin&&"sidebar"===e.admin.position}function d(e){return"name"in e&&"id"===e.name}function f(e){return"hidden"in e&&e.hidden||"admin"in e&&"disabled"in e.admin&&e.admin.disabled}function h(e){return"name"in e&&!u(e)}function p(e){return"name"in e}function m(e){return"name"in e}function y({field:e,parentIsLocalized:t}){return"localized"in e&&e.localized&&(!t||"true"===n.env.NEXT_PUBLIC_PAYLOAD_COMPATIBILITY_allowLocalizedWithinLocalized)}},24648:e=>{"use strict";var t=e.exports=function(e,r,n){"function"==typeof r&&(n=r,r={});var i="function"==typeof(n=r.cb||n)?n:n.pre||function(){};!function e(r,n,i,l,o,a,s,u,c,d){if(l&&"object"==typeof l&&!Array.isArray(l)){for(var f in n(l,o,a,s,u,c,d),l){var h=l[f];if(Array.isArray(h)){if(f in t.arrayKeywords)for(var p=0;p<h.length;p++)e(r,n,i,h[p],o+"/"+f+"/"+p,a,o,f,l,p)}else if(f in t.propsKeywords){if(h&&"object"==typeof h)for(var m in h)e(r,n,i,h[m],o+"/"+f+"/"+m.replace(/~/g,"~0").replace(/\//g,"~1"),a,o,f,l,m)}else(f in t.keywords||r.allKeys&&!(f in t.skipKeywords))&&e(r,n,i,h,o+"/"+f,a,o,f,l)}i(l,o,a,s,u,c,d)}}(r,i,n.post||function(){},e,"",e)};t.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},t.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},t.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},t.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0}},24950:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(4186);
24class i extends Error{constructor(e,t,r,i){super(i||`can't resolve reference ${r} from id ${t}`),this.missingRef=(0,n.resolveUrl)(e,t,r),this.missingSchema=(0,n.normalizeId)((0,n.getFullPath)(e,this.missingRef))}}t.default=i},25703:(e,t,r)=>{"use strict";r.d(t,{_P:()=>l,my:()=>n,w4:()=>i});let n=6048e5,i=864e5,l=Symbol.for("constructDateFrom")},27175:()=>{},27181:(e,t,r)=>{"use strict";r.d(t,{Select:()=>c});var n=r(19749),i=r(95155),l=r(84365),o=r(63344),a=r(92825);r(12115);let s=(e,t,r)=>r&&Array.isArray(e)?e.map(e=>t.find(t=>("string"==typeof t?t:t.value)===e)||String(e)):t.find(t=>("string"==typeof t?t:t.value)===e)||String(e),u=(e,t)=>{if(Array.isArray(e))return e.map(e=>{if("string"==typeof e)return e;let r=(0,l.s)(e.label,t);return"string"==typeof r?r:e.value}).join(", ");if("string"==typeof e)return e;let r=(0,l.s)(e.label,t);return"string"==typeof r?r:e.value},c=e=>{let t,r=(0,n.c)(7),{comparisonValue:l,field:c,locale:d,nestingLevel:f,versionValue:h}=e,{i18n:p}=(0,o.d)(),m="options"in c&&c.options,y=void 0!==l?u(s("string"==typeof l?l:JSON.stringify(l),m,c.hasMany),p):"",v=void 0!==h?u(s("string"==typeof h?h:JSON.stringify(h),m,c.hasMany),p):"",b="<p>"+(0,a.escapeDiffHTML)(y)+"</p>",_="<p>"+(0,a.escapeDiffHTML)(v)+"</p>";if(r[0]!==c.label||r[1]!==p||r[2]!==d||r[3]!==f||r[4]!==b||r[5]!==_){let{From:e,To:n}=(0,a.getHTMLDiffComponents)({fromHTML:b,postProcess:a.unescapeDiffHTML,toHTML:_,tokenizeByCharacter:!0});t=(0,i.jsx)(a.FieldDiffContainer,{className:"select-diff",From:e,i18n:p,label:{label:c.label,locale:d},nestingLevel:f,To:n}),r[0]=c.label,r[1]=p,r[2]=d,r[3]=f,r[4]=b,r[5]=_,r[6]=t}else t=r[6];return t}},27270:(e,t,r)=>{"use strict";r.r(t),r.d(t,{EditView:()=>l});var n=r(95155),i=r(92825);r(12115);let l=e=>(0,n.jsx)(i.DefaultEditView,{...e})},27445:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(73274);t.default={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:i}=e;if(!Array.isArray(r))throw Error("ajv implementation error");let l=t.name("valid");r.forEach((t,r)=>{if((0,n.alwaysValidSchema)(i,t))return;let o=e.subschema({keyword:"allOf",schemaProp:r},l);e.ok(l),e.mergeEvaluated(o)})}}},28565:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(13163),i=r(36702),l=r(93810),o=r(12015),a=r(60007),s=r(29586),u=r(12618),c=r(54344),d=r(1150),f=r(84930);t.default=[n.default,i.default,l.default,o.default,a.default,s.default,u.default,c.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default]},28951:(e,t,r)=>{"use strict";r.d(t,{a:()=>u});var n=r(19749),i=r(95155),l=r(94271),o=r(92825),a=r(32532),s=r(12115),u=e=>{let t,r,u=(0,n.c)(21),[c]=(0,l.DF)(),[d,f]=(0,s.useState)(null),[h,p]=(0,s.use
24State)(!1),[m,y,v]=(0,o.useDocumentDrawer)(e),{closeDrawer:b,drawerSlug:_}=v,{modalState:w}=(0,o.useModal)(),x;u[0]!==c?(x=()=>{c.read(()=>{f((0,a.vJq)()??(0,a.S1w)())}),p(!0)},u[0]=c,u[1]=x):x=u[1];let S=x,C;u[2]!==c||u[3]!==d?(C=()=>{d&&c.update(()=>{(0,a.n1P)(d.clone())},{discrete:!0,skipTransforms:!0})},u[2]=c,u[3]=d,u[4]=C):C=u[4];let k=C,T;u[5]!==b?(T=()=>{b()},u[5]=b,u[6]=T):T=u[6];let N=T,E,P;return u[7]!==_||u[8]!==w||u[9]!==k||u[10]!==h?(E=()=>{if(!h)return;let e=w[_];e&&!e?.isOpen&&(p(!1),setTimeout(()=>{k()},1))},P=[w,_,k,h],u[7]=_,u[8]=w,u[9]=k,u[10]=h,u[11]=E,u[12]=P):(E=u[11],P=u[12]),(0,s.useEffect)(E,P),u[13]!==y||u[14]!==S?(t=e=>(0,i.jsx)(y,{...e,onClick:S}),u[13]=y,u[14]=S,u[15]=t):t=u[15],u[16]!==m||u[17]!==N||u[18]!==_||u[19]!==t?(r={closeDocumentDrawer:N,DocumentDrawer:m,documentDrawerSlug:_,DocumentDrawerToggler:t},u[16]=m,u[17]=N,u[18]=_,u[19]=t,u[20]=r):r=u[20],r}},29586:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(81708),i=r(79772),l=r(73274);t.default={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>(0,i.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,i._)`{missingProperty: ${e}}`},code(e){let{gen:t,schema:r,schemaCode:o,data:a,$data:s,it:u}=e,{opts:c}=u;if(!s&&0===r.length)return;let d=r.length>=c.loopRequired;if(u.allErrors?function(){if(d||s)e.block$data(i.nil,f);else for(let t of r)(0,n.checkReportMissingProp)(e,t)}():function(){let l=t.let("missing");if(d||s){let r=t.let("valid",!0);e.block$data(r,()=>{var s,u;return s=l,u=r,void(e.setParams({missingProperty:s}),t.forOf(s,o,()=>{t.assign(u,(0,n.propertyInData)(t,a,s,c.ownProperties)),t.if((0,i.not)(u),()=>{e.error(),t.break()})},i.nil))}),e.ok(r)}else t.if((0,n.checkMissingProp)(e,r,l)),(0,n.reportMissingProp)(e,l),t.else()}(),c.strictRequired){let t=e.parentSchema.properties,{definedProperties:n}=e.it;for(let e of r)if((null==t?void 0:t[e])===void 0&&!n.has(e)){let t=u.schemaEnv.baseId+u.errSchemaPath,r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,l.checkStrictMode)(u,r,u.opts.strictRequired)}}function f(){t.forOf("prop",o,r=>{e.setParams({missingProperty:r}),t.if((0,n.noPropertyInData)(t,a,r,c.ownProperties),()=>e.error())})}}}},29710:(e,t,r)=>{"use strict";r.d(t,{L:()=>function e(t=[],r){let{i18n:l,keepPresentationalFields:o,labelPrefix:a,moveSubFieldsToTop:s=!1,pathPrefix:u}="boolean"==typeof r?{keepPresentationalFields:r}:r??{};return t.reduce((t,c)=>{if("group"===c.type&&"fields"in c)if(s){let r="name"in c&&"string"==typeof c.name&&!!c.name,i="name"in c?c.name:void 0,d="label"in c&&c.label&&l?(0,n.s)(c.label,l):void 0,f=a?`${a} > ${d??i}`:d??i,h="name"in c&&c.name?u?`${u}.${c.name}`:c.name:u;t.push(c,...e(c.fields,{i18n:l,keepPresentationalFields:o,labelPrefix:r?f:a,moveSubFieldsToTop:s,pathPrefix:r?h:u}))}else(0,i.Z7)(c)?t.push(c):t.push(...e(c.fields,r));else if("tabs"===c.type&&"tabs"in c)return[...t,...c.tabs.reduce((t,c)=>{if(!(0,i.pz)(c))return[...t,...e(c.fields,r)];if(!s)return[...t,{...c,type:"tab"}];{let r="label"in c&&c.label&&l?(0,n.s)(c.label,l):void 0,i=a?`${a} > ${r??c.name}`:r??c.name,d=c.name?u?`${u}.${c.name}`:c.name:u;return[...t,...e(c.fields,{i18n:l,keepPresentationalFields:o,labelPrefix:i,moveSubFieldsToTop:s,pathPrefix:d})]}},[])];else if((0,i.sd)(c)&&["collapsible","row"].includes(c.type))t.push(...e(c.fields,r));else if((0,i.Z7)(c)||o&&(0,i.aO)(c)){if("id"===c.name&&void 0!==a)return t;let e="label"in c&&c.label&&l?(0,n.s)(c.label,l):void 0,r="name"in c?c.name:void 0,i=void 0!==u||void 0!==a;t.push({...c,...s&&i&&{accessor:u&&r?`${u}.${r}`:r??"",labelWithPrefix:a?`${a} > ${e??r}`:e??r}})}return t},[])}});var n=r(84365),i=r(23999)},30195:(e,t,r)=>{"use strict";function n(e){return null!=e&&("string"!=typeof e||""!==e.trim())&&!Number.isNaN(Number(e))}r.d(t,{E:()=>n})},30889:(e,t,r)=>{"use strict";r.d(t,{AX:()=>C,FJ:()=>h});var n=r(32532),i=r(92749),l=r(61721);let o=new Set(["http:","https:","mailto:","sms:","tel:"]);class a extends n.fGB{__url;__target;__rel;__title;static getType(){return"link"}static clone(e){return new a(e.__url,{rel:e.__rel,target:e.__target,title:e.__title},e.__key)}constructor(e="",t={},r){super(r);let{target:n=null,rel:i=null,title:l=null}=t;this.__url=e,this.__target=n,this.__rel=i,this.__title=l}createDOM(e){let t=document.createElement("a");return this.updateLinkDOM(null,t,e),(0,n.ZB7)(t,e.theme.link),t}updateLinkDOM(e,t,r){if((0,n.nYP)(t))for(let r of(e&&e.__url===this.__url||(t.href=this.sanitizeUrl(this.__url)),["target","rel","title"])){let n=`__${r}`,i=this[n];e&&e[n]===i||(i?t[r]=i:t.removeAttribute(r))}}updateDOM(e,t,r){return this.updateLinkDOM(e,t,r),!1}static importDOM(){return{a:e=>({conversion:d,priority:1})}}static importJSON(e){return f().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setURL(e.url).setRel(e.rel||null).setTarget(e.target||null).setTitle(e.title||null)}sanitizeUrl(e){e=x(e);try{let t=new URL(x(e));if(!o.has(t.protocol))return"about:blank"}catch(e){}return e}exportJSON(){return{...super.exportJSON(),rel:this.getRel(),target:this.getTarget(),title:this.getTitle(),url:this.getURL()}}getURL(){return this.getLatest().__url}setURL(e){let t=this.getWritable();return t.__url=e,t}getTarget(){return this.getLatest().__target}setTarget(e){let t=this.getWritable();return t.__target=e,t}getRel(){return this.getLatest().__rel}setRel(e){let t=this.getWritable();return t.__rel=e,t}getTitle(){return this.getLatest().__title}setTitle(e){let t=this.getWritable();return t.__title=e,t}insertNewAfter(e,t=!0){let r=f(this.__url,{rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,t),r}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}canBeEmpty(){return!1}isInline(){return!0}extractWithChild(e,t,r){if(!(0,n.I2P)(t))return!1;let i=t.anchor.getNode(),l=t.focus.getNode();return this.isParentOf(i)&&this.isParentOf(l)&&t.getTextContent().length>0}isEmailURI(){return this.__url.startsWith("mailto:")}isWebSiteURI(){return this.__url.startsWith("https://")||this.__url.startsWith("http://")}}function s(e){let t=(0,n.Ave)(e,"next");return[t,t.getFlipped()]}function u(e,t){for(let r of t)if(r.origin.isAttached()){let t=(0,n.lSZ)(r);return void(0,n.wp6)(e,t)}}function c(e){let t=(0,n.vJq)(),r=null,l=null;for(let o of((0,n.I2P)(t)&&(r=s(t.anchor),l=s(t.focus)),(0,n.uwZ)(e,"next"))){let t=
24o.origin;if((0,n.ff4)(t)&&!t.isInline()){let r=t.getChildren();if(r.length>0){let i=(0,n.CHU)(e);i.append(...r),t.append(i)}(0,i.rd)(t,(0,n.NG9)(o),{$shouldSplit:()=>!1})}}if(e.isEmpty()){let t=e.getParent();e.remove(),t&&t.isEmpty()&&t.remove()}(0,n.I2P)(t)&&(u(t.anchor,r),u(t.focus,l),(0,n.CaD)(t))}function d(e){let t=null;if((0,n.nYP)(e)){let r=e.textContent;(null!==r&&""!==r||e.children.length>0)&&(t=f(e.getAttribute("href")||"",{rel:e.getAttribute("rel"),target:e.getAttribute("target"),title:e.getAttribute("title")}))}return{node:t}}function f(e="",t){return(0,n.pTq)(new a(e,t))}function h(e){return e instanceof a}class p extends a{__isUnlinked;constructor(e="",t={},r){super(e,t,r),this.__isUnlinked=void 0!==t.isUnlinked&&null!==t.isUnlinked&&t.isUnlinked}static getType(){return"autolink"}static clone(e){return new p(e.__url,{isUnlinked:e.__isUnlinked,rel:e.__rel,target:e.__target,title:e.__title},e.__key)}getIsUnlinked(){return this.__isUnlinked}setIsUnlinked(e){let t=this.getWritable();return t.__isUnlinked=e,t}createDOM(e){return this.__isUnlinked?document.createElement("span"):super.createDOM(e)}updateDOM(e,t,r){return super.updateDOM(e,t,r)||e.__isUnlinked!==this.__isUnlinked}static importJSON(e){return m().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setIsUnlinked(e.isUnlinked||!1)}static importDOM(){return null}exportJSON(){return{...super.exportJSON(),isUnlinked:this.__isUnlinked}}insertNewAfter(e,t=!0){let r=m(this.__url,{isUnlinked:this.__isUnlinked,rel:this.__rel,target:this.__target,title:this.__title});return this.insertAfter(r,t),r}}function m(e="",t){return(0,n.pTq)(new p(e,t))}function y(e){return e instanceof p}let v=(0,n.guI)("TOGGLE_LINK_COMMAND");function b(e,t){if("element"===e.type){let r=e.getNode();return(0,n.ff4)(r)||function(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let e of(n.append("code",252),t))n.append("v",e);throw r.search=n.toString(),Error(`Minified Lexical error #${252}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(252),r.getChildren()[e.offset+t]||null}return null}function _(e,t={}){let r;if(e&&"object"==typeof e){let{url:n,...i}=e;r=n,t={...i,...t}}else r=e;let{target:i,title:l}=t,o=void 0===t.rel?"noreferrer":t.rel,a=(0,n.vJq)();if(null===a||!(0,n.I2P)(a)&&!(0,n.RTZ)(a))return;if((0,n.RTZ)(a)){let e=a.getNodes();if(0===e.length)return;return void e.forEach(e=>{if(null===r){let t=(0,n.BtT)(e,e=>!y(e)&&h(e));t&&(t.insertBefore(e),0===t.getChildren().length&&t.remove())}else{let t=(0,n.BtT)(e,e=>!y(e)&&h(e));if(t)t.setURL(r),void 0!==i&&t.setTarget(i),void 0!==o&&t.setRel(o);else{let t=f(r,{rel:o,target:i});e.insertBefore(t),t.append(e)}}})}if(a.isCollapsed()&&null===r)for(let e of a.getNodes()){let t=(0,n.BtT)(e,e=>!y(e)&&h(e));
24return void(null!==t&&(t.getChildren().forEach(e=>{t.insertBefore(e)}),t.remove()))}let s=a.extract();if(null===r){let e=new Set;return void s.forEach(t=>{let r=(0,n.BtT)(t,e=>!y(e)&&h(e));if(null!==r){let t=r.getKey();if(e.has(t))return;!function(e,t){let r=new Set(t.filter(t=>e.isParentOf(t)).map(e=>e.getKey())),i=e.getChildren(),l=i=>r.has(i.getKey())||(0,n.ff4)(i)&&t.some(t=>e.isParentOf(t)&&i.isParentOf(t)),o=i.filter(l);if(o.length===i.length)return i.forEach(t=>e.insertBefore(t)),e.remove();let a=i.findIndex(l),s=i.findLastIndex(l),u=s===i.length-1;if(0===a)o.forEach(t=>e.insertBefore(t));else if(u)for(let t=o.length-1;t>=0;t--)e.insertAfter(o[t]);else{for(let t=o.length-1;t>=0;t--)e.insertAfter(o[t]);let t=i.slice(s+1);if(t.length>0){let r=f(e.getURL(),{rel:e.getRel(),target:e.getTarget(),title:e.getTitle()});o[o.length-1].insertAfter(r),t.forEach(e=>r.append(e))}}}(r,s),e.add(t)}})}let u=new Set,c=e=>{u.has(e.getKey())||(u.add(e.getKey()),e.setURL(r),void 0!==i&&e.setTarget(i),void 0!==o&&e.setRel(o),void 0!==l&&e.setTitle(l))};if(1===s.length){let e=s[0],t=(0,n.BtT)(e,h);if(null!==t)return c(t)}!function(e){let t=(0,n.vJq)();if(!(0,n.I2P)(t))return e();let r=(0,n.CaD)(t),i=r.isBackward(),l=b(r.anchor,i?-1:0),o=b(r.focus,i?0:-1);if(e(),l||o){let e=(0,n.vJq)();if((0,n.I2P)(e)){let t=e.clone();if(l){let e=l.getParent();e&&t.anchor.set(e.getKey(),l.getIndexWithinParent()+ +!!i,"element")}if(o){let e=o.getParent();e&&t.focus.set(e.getKey(),o.getIndexWithinParent()+ +!i,"element")}(0,n.n1P)((0,n.CaD)(t))}}}(()=>{let e=null;for(let t of s){if(!t.isAttached())continue;let a=(0,n.BtT)(t,h);if(a){c(a);continue}if((0,n.ff4)(t)){if(!t.isInline())continue;if(h(t)){if(!(y(t)||null!==e&&e.getParentOrThrow().isParentOf(t))){c(t),e=t;continue}for(let e of t.getChildren())t.insertBefore(e);t.remove();continue}}let s=t.getPreviousSibling();h(s)&&s.is(e)?s.append(t):(e=f(r,{rel:o,target:i,title:l}),t.insertAfter(e),e.append(t))}})}let w=/^\+?[0-9\s()-]{5,}$/;function x(e){return e.match(/^[a-z][a-z0-9+.-]*:/i)||e.match(/^[/#.]/)?e:e.includes("@")?`mailto:${e}`:w.test(e)?`tel:${e}`:`https://${e}`}let S=(0,n.vE9)({build:(e,t,r)=>(0,l.v)(t),config:{attributes:void 0,validateUrl:void 0},mergeConfig(e,t){let r=(0,n.Tc1)(e,t);return e.attributes&&(r.attributes=(0,n.Tc1)(e.attributes,r.attributes)),r},name:"@lexical/link/Link",nodes:()=>[a],register:(e,t,r)=>(function(e,t){return(0,n.Sdt)(e.registerNodeTransform(a,c),(0,l.QZ)(()=>e.registerCommand(v,e=>{let r=t.validateUrl.peek(),n=t.attributes.peek();if(null===e)return _(null),!0;if("string"==typeof e)return!(void 0!==r&&!r(e))&&(_(e,n),!0);{let{url:t,target:r,rel:i,title:l}=e;return _(t,{...n,rel:i,target:r,title:l}),!0}},n.AcJ)),(0,l.QZ)(()=>{let r=t.validateUrl.value;if(!r)return;let l=t.attributes.value;return e.registerCommand(n.waI,t=>{let o=(0,n.vJq)();if(!(0,n.I2P)(o)||o.isCollapsed()||!(0,i.xj)(t,ClipboardEvent)||null===t.clipboardData)return!1;let a=t.clipboardData.getData("text");return!!r(a)&&!o.getNodes().some(e=>(0,n.ff4)(e))&&(e.dispatchCommand(v,{...l,url:a}),t.preventDefault(),!0)},n.AcJ)}))})(e,r.getOutput())});function C(e,t,r={}){let i=r=>{let i=r.target;if(!(0,n.vAA)(i))return;let l=(0,n.scG)(i);if(null===l)return;let o=null,a=null;if(l.update(()=>{let e=(0,n.xL4)(i);if(null!==e){let r=(0,n.BtT)(e,n.ff4);if(!t.disabled.peek())if(h(r))o=r.sanitizeUrl(r.getURL()),a=r.getTarget();else{let e=function(e,t){let r=e;for(;null!=r;){if(t(r))return r;r=r.parentNode}return null}(i,n.nYP);null!==e&&(o=e.href,a=e.target)}}}),null===o||""===o)return;let s=e.getEditorState().read(n.vJq);if((0,n.I2P)(s)&&!s.isCollapsed())return void r.preventDefault();let u="auxclick"===r.type&&1===r.button;window.open(o,t.newTab.peek()||u||r.metaKey||r.ctrlKey||"_blank"===a?"_blank":"_self"),r.preventDefault()},l=e=>{1===e.button&&i(e)};return e.registerRootListener((e,t)=>{null!==t&&(t.removeEventListener("click",i),t.removeEventListener("mouseup",l)),null!==e&&(e.addEventListener("click",i,r),e.addEventListener("mouseup",l,r))})}function k(e,t){for(let r=0;r<t.length;r++){let n=t[r](e);if(n)return n}return null}(0,n.vE9)({build:(e,t,r)=>(0,l.v)(t),config:(0,n.lVE)({disabled:!1,newTab:!1}),dependencies:[S],name:"@lexical/link/ClickableLink",register:(e,t,r)=>C(e,r.getOutput())});let T=/[.,;\s]/;function N(e){return T.test(e)}function E(e){return N(e[e.length-1])}function P(e){let t=e.getPreviousSibling();return(0,n.ff4)(t)&&(t=t.getLastDescendant()),null===t||(0,n.wH$)(t)||(0,n.kFe)(t)&&E(t.getTextContent())}function O(e){let t=e.getNextSibling();return(0,n.ff4)(t)&&(t=t.getFirstDescendant()),null===t||(0,n.wH$)(t)||(0,n.kFe)(t)&&N(t.getTextContent()[0])}function $(e,t,r){let i=e.getChildren(),l=i.length;for(let t=0;t<l;t++){let l=i[t];if(!(0,n.kFe)(l)||!l.isSimpleText())return A(e),void r(null,e.getURL())}let o=e.getTextContent(),a=k(o,t);
24if(null===a||a.text!==o||!P(e)||!O(e))return A(e),void r(null,e.getURL());let s=e.getURL();if(s!==a.url&&(e.setURL(a.url),r(a.url,s)),a.attributes){let t=e.getRel();t!==a.attributes.rel&&(e.setRel(a.attributes.rel||null),r(a.attributes.rel||null,t));let n=e.getTarget();n!==a.attributes.target&&(e.setTarget(a.attributes.target||null),r(a.attributes.target||null,n))}}function A(e){let t=e.getChildren();for(let r=t.length-1;r>=0;r--)e.insertAfter(t[r]);return e.remove(),t.map(e=>e.getLatest())}let M={changeHandlers:[],excludeParents:[],matchers:[]};(0,n.vE9)({config:M,dependencies:[S],mergeConfig(e,t){let r=(0,n.Tc1)(e,t);for(let n of["matchers","changeHandlers","excludeParents"]){let i=t[n];Array.isArray(i)&&(r[n]=[...e[n],...i])}return r},name:"@lexical/link/AutoLink",nodes:[p],register:function(e,t=M){let{matchers:r,changeHandlers:i,excludeParents:l}=t,o=(e,t)=>{for(let r of i)r(e,t)};return(0,n.Sdt)(e.registerNodeTransform(n.Ey8,e=>{let t=e.getParentOrThrow(),i=e.getPreviousSibling();y(t)&&!t.getIsUnlinked()?$(t,r,o):h(t)||l.some(e=>e(t))||(e.isSimpleText()&&(N(e.getTextContent()[0])||!y(i))&&function(e,t,r){for(let t of e){let e=t.getParent();if(y(e)&&!e.getIsUnlinked())return}let i=[...e],l=i.map(e=>e.getTextContent()).join(""),o,a=l,s=0;for(;(o=k(a,t))&&null!==o;){var u,c,d;let e=o.index,t=e+o.length;if(u=s+e,c=s+t,d=i,(u>0?N(l[u-1]):P(d[0]))&&(c<l.length?N(l[c]):O(d[d.length-1]))){let[l,,u,c]=function(e,t,r){let n=[],i=[],l=[],o=0,a=0,s=[...e];for(;s.length>0;){let e=s[0],u=e.getTextContent().length,c=a;a+u<=t?(n.push(e),o+=u):c>=r?l.push(e):i.push(e),a+=u,s.shift()}return[o,n,i,l]}(i,s+e,s+t),d=!1;for(let e of u){let t=e.getParent();if(y(t)&&!t.getIsUnlinked()){d=!0;break}}if(d){s+=t,a=a.substring(t);continue}let f=function(e,t,r,i){let l=m(i.url,i.attributes);if(1===e.length){let o,a=e[0];0===t?[o,a]=a.splitText(r):[,o,a]=a.splitText(t,r);let s=(0,n.sTu)(i.text);return s.setFormat(o.getFormat()),s.setDetail(o.getDetail()),s.setStyle(o.getStyle()),l.append(s),o.replace(l),a}if(e.length>1){let i,o=e[0],a,s=o.getTextContent().length;0===t?a=o:[,a]=o.splitText(t);let u=[];for(let t=1;t<e.length;t++){let n=e[t],l=n.getTextContent().length,o=s;if(o<r)if(s+l<=r)u.push(n);else{let[e,t]=n.splitText(r-o);u.push(e),i=t}s+=l}let c=(0,n.vJq)(),d=c?c.getNodes().find(n.kFe):void 0,f=(0,n.sTu)(a.getTextContent());return f.setFormat(a.getFormat()),f.setDetail(a.getDetail()),f.setStyle(a.getStyle()),l.append(f,...u),d&&d===a&&((0,n.I2P)(c)?f.select(c.anchor.offset,c.focus.offset):(0,n.RTZ)(c)&&f.select(0,f.getTextContent().length)),a.replace(l),i}}(u,s+e-l,s+t-l,o);i=f?[f,...c]:c,r(o.url,null),s=0}else s+=t;a=a.substring(t)}}(function(e){let t=[e],r=e.getNextSibling();for(;null!==r&&(0,n.kFe)(r)&&r.isSimpleText()&&(t.push(r),!/[\s]/.test(r.getTextContent()));)r=r.getNextSibling();return t}(e),r,o),!function(e,t,r){let n=e.getParent(),i=e.getPreviousSibling(),l=e.getNextSibling(),o=e.getTextContent();if(!y(n)||n.getIsUnlinked()){if(y(i)&&!i.getIsUnlinked()&&i.is(e.getPreviousSibling())&&e.getParent()===i.getParent()){if(!N(o[0]))return A(i),r(null,i.getURL());if(i.isEmailURI()?/^\.[a-zA-Z]{2,}/.test(o):/^\.[a-zA-Z0-9]{1,}/.test(o)){let n=i.getTextContent()+o,l=k(n,t);null!==l&&l.text===n&&(i.append(e),$(i,t,r),r(null,i.getURL()))}}!y(l)||l.getIsUnlinked()||E(o)||l.is(e.getNextSibling())&&e.getParent()===l.getParent()&&(A(l),r(null,l.getURL()))}}(e,r,o))}),e.registerCommand(v,e=>{let t=(0,n.vJq)();return null===e&&!!(0,n.I2P)(t)&&(t.extract().forEach(e=>{let t=e.getParent();y(t)&&(t.setIsUnlinked(!t.getIsUnlinked()),t.markDirty())}),!1)},n.AcJ))}})},31233:(e,t,r)=>{"use strict";r.d(t,{_:()=>n});let n=(e,t)=>e.size===t.size&&[...e].every(e=>t.has(e))},32532:(e,t,r)=>{"use strict";function n(e,...t){let r=new URL("https://lexical.dev/docs/error"),i=new URLSearchParams;for(let r of(i.append("code",e),t))i.append("v",r);throw r.search=i.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function i(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);r.search=n.toString(),console.warn(`Minified Lexical warning #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}r.d(t,{$7r:()=>td,$c$:()=>t5,$ey:()=>ez,$iu:()=>lD,A7V:()=>nP,AX0:()=>eY,AcJ:()=>nD,Ave:()=>l$,B$P:()=>iE,BtT:()=>lt,Bts:()=>lT,CHU:()=>iB,CaD:()=>Y,Chh:()=>
24R,Cku:()=>rA,Csq:()=>lz,Cyw:()=>nx,Ey8:()=>ru,FEN:()=>eF,FtC:()=>lU,FyW:()=>n3,GMe:()=>ns,GRK:()=>t6,GYG:()=>lZ,GcU:()=>r8,Gew:()=>iR,H2A:()=>r0,HEf:()=>lQ,HYn:()=>to,Huu:()=>e1,I2H:()=>tf,I2P:()=>rE,I8X:()=>F,IlV:()=>lp,IqF:()=>iL,JAT:()=>ij,JM3:()=>eH,JjG:()=>nI,Jvg:()=>nJ,K8K:()=>iY,KfJ:()=>tc,Kp7:()=>nw,LYZ:()=>nH,LZn:()=>w,MZu:()=>r_,MvL:()=>eP,NG9:()=>lI,NiT:()=>ia,O0w:()=>lH,OBE:()=>rW,OQi:()=>t3,OSq:()=>iq,OXk:()=>e4,OpE:()=>lc,P6U:()=>lb,PiT:()=>e9,Q$N:()=>e3,RTZ:()=>rO,RTo:()=>e0,Rb_:()=>nQ,S1w:()=>rV,SKc:()=>ta,Sdt:()=>l0,Sr4:()=>e8,T40:()=>t1,TJt:()=>lk,Tc1:()=>lY,TgX:()=>tt,U5P:()=>i4,UDz:()=>eX,V30:()=>eq,VSO:()=>tl,WKo:()=>re,WWb:()=>tu,WgU:()=>nF,WuB:()=>eI,XI_:()=>t4,XKQ:()=>eR,YW5:()=>e7,Z$U:()=>nV,ZB7:()=>lX,ZKf:()=>eJ,_On:()=>iZ,a9V:()=>iX,bM3:()=>eL,bMH:()=>t0,bSg:()=>nM,bbF:()=>eQ,cmH:()=>ld,d8p:()=>e$,da8:()=>nR,dxY:()=>i7,e1k:()=>iC,erb:()=>l_,ev7:()=>rw,fD3:()=>nO,fGB:()=>nv,fUS:()=>te,ff4:()=>nb,fwY:()=>t2,gCZ:()=>e2,guI:()=>eE,hVZ:()=>nC,haT:()=>nS,hi0:()=>eK,i0_:()=>i0,ieJ:()=>nB,jG6:()=>n5,jZM:()=>nj,k1Q:()=>lq,kBm:()=>tG,kFe:()=>rv,lJ7:()=>nA,lSZ:()=>lL,lVE:()=>lG,mB:()=>eW,mB$:()=>n1,mWO:()=>lS,n0X:()=>tQ,n1P:()=>iu,nYP:()=>iV,nsf:()=>ie,oqR:()=>eO,pGK:()=>lB,pJU:()=>it,pTq:()=>iz,pd8:()=>i9,peL:()=>iJ,phO:()=>le,rN:()=>lu,rUs:()=>rU,riq:()=>tr,sTu:()=>ry,sWS:()=>lC,sby:()=>iH,scG:()=>nY,sik:()=>e6,sne:()=>t9,t5V:()=>ts,u5G:()=>ti,uTE:()=>rK,urt:()=>I,uwZ:()=>lv,v0B:()=>nN,vAA:()=>iG,vE9:()=>lV,vJq:()=>rq,viC:()=>eU,w$Z:()=>e5,w3H:()=>iQ,wH$:()=>rt,waI:()=>eB,wp6:()=>lA,xKE:()=>t7,xL4:()=>ii,xQ8:()=>lM,y68:()=>rB,z8s:()=>rC});let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,o=l&&"documentMode"in document?document.documentMode:null,a=l&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),s=l&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent),u=!(!l||!("InputEvent"in window)||o)&&"getTargetRanges"in new window.InputEvent("input"),c=l&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),d=l&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,f=l&&/Android/.test(navigator.userAgent),h=l&&/^(?=.*Chrome).*/i.test(navigator.userAgent),p=l&&f&&h,m=l&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&a&&!h,y=c||d||m?"\xa0":"â",v=s?"\xa0":y,b="Ö-ß¿ï¬-﷽ﹰ-ﻼ",_="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-ʸÌ-Öà -á¿¿ââ°-ï¬ï¸-﹯﻽-ï¿¿",w=(RegExp("^[^"+_+"]*["+b+"]"),RegExp("^[^"+b+"]*["+_+"]"),{bold:1,capitalize:1024,code:16,highlight:128,italic:2,lowercase:256,strikethrough:4,subscript:32,superscript:64,underline:8,uppercase:512}),x={directionless:1,unmergeable:2},S={center:2,end:6,justify:4,left:1,right:3,start:5},C={2:"center",6:"end",4:"justify",1:"left",3:"right",5:"start"},k={normal:0,segmented:2,token:1},T={0:"normal",2:"segmented",1:"token"},N="$config",E=!1,P=0;function O(e){P=e.timeStamp}function $(e,t,r){let n="BR"===e.nodeName,i=t.__lexicalLineBreak;return i&&(e===i||n&&e.previousSibling===i)||n&&void 0!==ir(e,r)}function A(e,t,r){E=!0;let n=performance.now()-P>100;try{np(e,()=>{let i=rq()||e.getEditorState().read(()=>{let e=rq();return null!==e?e.clone():null}),l=new Map,o=e.getRootElement(),a=e._editorState,u=e._blockCursorElement,c=!1,d="";for(let r=0;r<t.length;r++){let f=t[r],h=f.type,p=f.target,m=function(e,t,r,n){var i;for(let l=e;l&&(i=l,!0!==i.__lexicalUnmanaged);l=iA(l)){let e=ir(l,t);if(void 0!==e){let t=ie(e,r);if(t)return nx(t)||!iH(l)?void 0:[l,t]}else if(l===n)return[n,is(r)]}}(p,e,a,o);if(!m)continue;let[y,v]=m;if("characterData"===h)n&&rv(v)&&n0(p)&&function(e,t,r){if(rE(e)){let t=e.anchor.getNode();if(t.is(r)&&e.format!==t.getFormat())return!1}return n0(t)&&r.isAttached()}(i,p,v)&&function(e,t,r){let n=iJ(iF(r)),i=null,l=null;null!==n&&n.anchorNode===e&&(i=n.anchorOffset,l=n.focusOffset);let o=e.nodeValue;null!==o&&iy(t,o,i,l,!1)}(p,v,e);else if("childList"===h){c=!0;let t=f.addedNodes;for(let r=0;r<t.length;r++){let n=t[r],i=it(n),l=n.parentNode;if(null!=l&&n!==u&&null===i&&!$(n,l,e)){if(s){let e=(iH(n)?n.innerText:null)||n.nodeValue;e&&(d+=e)}l.removeChild(n)}}let r=f.removedNodes,n=r.length;if(n>0){let t=0;for(let i=0;i<n;i++){let n=r[i];($(n,p,e)||u===n)&&(p.appendChild(n),t++)}n!==t&&l.set(y,v)}}}if(l.size>0)for(let[t,r]of l)r.reconcileObservedMutation(t,e);let f=r.takeRecords();if(f.length>0){for(let t=0;t<f.length;t++){let r=f[t],n=r.addedNodes,i=r.target;for(let t=0;t<n.length;t++){let r=n[t],l=r.parentNode;null==l||"BR"!==r.nodeName||$(r,i,e)||l.removeChild(r)}}r.takeRecords()}null!==i&&(c&&iu(i),s&&iP(e)&&i.insertRawText(d))})}finally{E=!1}}function M(e){let t=e._observer;null!==t&&A(e,t.takeRecords(),t)}function j(e){0===P&&iF(e).addEventListener("textInput",O,!0),e._observer=new MutationObserver((t,r)=>{A(e,t,r)})}class D{key;parse;unparse;isEqual;defaultValue;constructor(e,t){this.key=e,this.parse=t.parse.bind(t),this.unparse=(t.unparse||U).bind(t),this.isEqual=(t.isEqual||Object.is).bind(t),this.defaultValue=this.parse(void 0)}}function I(e,t){return new D(e,t)}function F(e,t,r="latest"){let n=("latest"===r?e.getLatest():e).__state;return n?n.getValue(t):t.defaultValue}function R(e,t,r){let n;if(ne(),"function"==typeof r){let i=e.getLatest(),l=F(i,t);if(n=r(l),t.isEqual(l,n))return i}else n=r;let i=e.getWritable();return B(i).updateFromKnown(t,n),i}class L{node;knownState;unknownState;sharedNodeState;size;constructor(e,t,r,n=new Map,i){this.node=e,this.sharedNodeState=t,this.unknownState=r,this.knownState=n;let{sharedConfigMap:l}=this.sharedNodeState,o=void 0!==i?i:function(e,t,r){let n=r.size;if(t)for(let i in t){let t=e.get(i);t&&r.has(t)||n++}return n}(l,r,n);this.size=o}getValue(e){let t=this.knownState.get(e);if(void 0!==t)return t;this.sharedNodeState.sharedConfigMap.set(e.key,e);let r=e.defaultValue;if(this.unknownState&&e.key in this.unknownState){let t=this.unknownState[e.key];void 0!==t&&(r=e.parse(t)),this.updateFromKnown(e,r)}return r}getInternalState(){return[this.unknownState,this.knownState]}toJSON(){let e={...this.unknownState},t={};for(let[t,r]of this.knownState)t.isEqual(r,t.defaultValue)?delete e[t.key]:e[t.key]=t.unparse(r);for(let r of this.sharedNodeState.flatKeys)r in e&&(t[r]=e[r],delete e[r]);return K(e)&&(t.$=e),t}getWritable(e){if(this.node===e)return this;let{sharedNodeState:t,unknownState:r}=this,n=new Map(this.knownState);return new L(e,t,function(e,t,r){let n;if(r)for(let[i,l]of Object.entries(r)){let r=e.get(i);r?t.has(r)||t.set(r,r.parse(l)):(n=n||{})[i]=l}return n}(t.sharedConfigMap,n,r),n,this.size)}updateFromKnown(e,t){let r=e.key;this.sharedNodeState.sharedConfigMap.set(r,e);let{knownState:n,unknownState:i}=this;n.has(e)||i&&r in i||(i&&(delete i[r],this.unknownState=K(i)),this.size++),n.set(e,t)}updateFromUnknown(e,t){let r=this.sharedNodeState.sharedConfigMap.get(e);r?this.updateFromKnown(r,r.parse(t)):(this.unknownState=this.unknownState||{},e in this.unknownState||this.size++,this.unknownState[e]=t)}updateFromJSON(e){let{knownState:t}=this;for(let e of t.keys())t.set(e,e.defaultValue);if(this.size=t.size,this.unknownState=void 0,e)for(let[t,r]of Object.entries(e))this.updateFromUnknown(t,r)}}function B(e){let t=e.getWritable(),r=t.__state?t.__state.getWritable(t):new L(t,z(t));return t.__state=r,r}function z(e){return e.__state?e.__state.sharedNodeState:nW(i0(),e.getType()).sharedNodeState}function K(e){if(e)for(let t in e)return e}function U(e){return e}function W(e,t,r){for(let[n,i]of t.knownState){if(e.has(n.key))continue;e.add(n.key);let t=r?r.getValue(n):n.defaultValue;
24if(t!==i&&!n.isEqual(t,i))return!0}return!1}function J(e,t,r){let{unknownState:n}=t,i=r?r.unknownState:void 0;if(n){for(let[t,r]of Object.entries(n))if(!e.has(t)&&(e.add(t),r!==(i?i[t]:void 0)))return!0}return!1}function q(e,t){let r=e.__state;return r&&r.node===e?r.getWritable(t):r}function V(e,t){let r=e.__mode,n=e.__format,i=e.__style,l=t.__mode,o=t.__format,a=t.__style,s=e.__state,u=t.__state;return(null===r||r===l)&&(null===n||n===o)&&(null===i||i===a)&&(null===e.__state||s===u||function(e,t){if(e===t)return!0;if(e&&t&&e.size!==t.size)return!1;let r=new Set;return!(e&&W(r,e,t)||t&&W(r,t,e)||e&&J(r,e,t)||t&&J(r,t,e))}(s,u))}function H(e,t){let r=e.mergeWithSibling(t),n=nn()._normalizedNodes;return n.add(e.__key),n.add(t.__key),r}function G(e){let t,r,n=e;if(""!==n.__text||!n.isSimpleText()||n.isUnmergeable()){for(;null!==(t=n.getPreviousSibling())&&rv(t)&&t.isSimpleText()&&!t.isUnmergeable();){if(""!==t.__text){V(t,n)&&(n=H(t,n));break}t.remove()}for(;null!==(r=n.getNextSibling())&&rv(r)&&r.isSimpleText()&&!r.isUnmergeable();){if(""!==r.__text){V(n,r)&&(n=H(n,r));break}r.remove()}}else n.remove()}function Y(e){return Z(e.anchor),Z(e.focus),e}function Z(e){for(;"element"===e.type;){let t,r,n=e.getNode(),i=e.offset;if(i===n.getChildrenSize()?(t=n.getChildAtIndex(i-1),r=!0):(t=n.getChildAtIndex(i),r=!1),rv(t)){e.set(t.__key,r?t.getTextContentSize():0,"text",!0);break}if(!nb(t))break;e.set(t.__key,r?t.getChildrenSize():0,"element",!0)}}let X,Q,ee,et,er,en,ei,el,eo,ea,es="",eu=null,ec=null,ed=!1,ef=!1;function eh(e,t){let r=ei.get(e);if(null!==t){let r=eN(e);r.parentNode===t&&t.removeChild(r)}if(el.has(e)||Q._keyToDOMMap.delete(e),nb(r)){let e=eS(r,ei);eg(e,0,e.length-1,null)}void 0!==r&&iT(ea,ee,et,r,"destroyed")}function eg(e,t,r,n){for(let i=t;i<=r;++i){let t=e[i];void 0!==t&&eh(t,n)}}function ep(e,t){e.setProperty("text-align",t)}function em(e,t){let r=X.theme.indent;if("string"==typeof r){let n=e.classList.contains(r);t>0&&!n?e.classList.add(r):t<1&&n&&e.classList.remove(r)}if(0===t)return void e.style.setProperty("padding-inline-start","");let n=getComputedStyle(Q._rootElement||e).getPropertyValue("--lexical-indent-base-value")||"40px";e.style.setProperty("padding-inline-start",`calc(${t} * ${n})`)}function ey(e,t){let r=e.style;0===t?ep(r,""):1===t?ep(r,"left"):2===t?ep(r,"center"):3===t?ep(r,"right"):4===t?ep(r,"justify"):5===t?ep(r,"start"):6===t&&ep(r,"end")}function ev(e,t){let r=function(e){let t=e.__dir;if(null!==t)return t;if(nC(e))return null;let r=e.getParentOrThrow();return nC(r)&&null===r.__dir?"auto":null}(t);null!==r?e.dir=r:e.removeAttribute("dir")}function eb(e,t){let r=el.get(e);void 0===r&&n(60);let i=r.createDOM(X,Q);if(function(e,t,r){let n=r._keyToDOMMap;t[`__lexicalKey_${r._key}`]=e,n.set(e,t)}(e,i,Q),rv(r)?i.setAttribute("data-lexical-text","true"):nx(r)&&i.setAttribute("data-lexical-decorator","true"),nb(r)){let e=r.__indent,t=r.__size;ev(i,r),0!==e&&em(i,e),0!==t&&e_(eS(r,el),r,0,t-1,r.getDOMSlot(i));let n=r.__format;0!==n&&ey(i,n),r.isInline()||ex(null,r,i)}else{let t=r.getTextContent();if(nx(r)){let t=r.decorate(Q,X);null!==t&&eC(e,t),i.contentEditable="false"}es+=t}return null!==t&&t.insertChild(i),iT(ea,ee,et,r,"created"),i}function e_(e,t,r,n,i){let l=es;es="";let o=r;for(;o<=n;++o){eb(e[o],i);let t=el.get(e[o]);null!==t&&rv(t)?null===eu&&(eu=t.getFormat(),ec=t.getStyle()):nb(t)&&o<n&&!t.isInline()&&(es+="\n\n")}i.element.__lexicalTextContent=es,es=l+es}function ew(e,t){if(e){let r=e.__last;if(r){let e=t.get(r);if(e)return rt(e)?"line-break":nx(e)&&e.isInline()?"decorator":null}return"empty"}return null}function ex(e,t,r){let n=ew(e,ei),i=ew(t,el);n!==i&&t.getDOMSlot(r).setManagedLineBreak(i)}function eS(e,t){let r=[],i=e.__first;for(;null!==i;){let e=t.get(i);void 0===e&&n(101),r.push(i),i=e.__next}return r}function eC(e,t){let r=Q._pendingDecorators,n=Q._decorators;if(null===r){if(n[e]===t)return;r=il(Q)}r[e]=t}function ek(e){let t=e.nextSibling;return null!==t&&t===Q._blockCursorElement&&(t=t.nextSibling),t}function eT(e,t){let r=new Set;for(let n=t;n<e.length;n++)r.add(e[n]);return r}function eN(e){let t=eo.get(e);return void 0===t&&n(75,e),t}function eE(e){return{type:e}}let eP=eE("SELECTION_CHANGE_COMMAND"),eO=eE("SELECTION_INSERT_CLIPBOARD_NODES_COMMAND"),e$=eE("CLICK_COMMAND"),eA=eE("BEFORE_INPUT_COMMAND"),eM=eE("INPUT_COMMAND"),ej=eE("COMPOSITION_START_COMMAND"),eD=eE("COMPOSITION_END_COMMAND"),eI=eE("DELETE_CHARACTER_COMMAND"),eF=eE("INSERT_LINE_BREAK_COMMAND"),eR=eE("INSERT_PARAGRAPH_COMMAND"),eL=eE("CONTROLLED_TEXT_INSERTION_COMMAND"),eB=eE("PASTE_COMMAND"),ez=eE("REMOVE_TEXT_COMMAND"),eK=eE("DELETE_WORD_COMMAND"),eU=eE("DELETE_LINE_COMMAND"),eW=eE("FORMAT_TEXT_COMMAND"),eJ=eE("UNDO_COMMAND"),eq=eE("REDO_COMMAND"),eV=eE("KEYDOWN_COMMAND"),eH=eE("KEY_ARROW_RIGHT_COMMAND"),eG=eE("MOVE_TO_END"),eY=eE("KEY_ARROW_LEFT_COMMAND"),eZ=eE("MOVE_TO_START"),eX=eE("KEY_ARROW_UP_COMMAND"),eQ=eE("KEY_ARROW_DOWN_COMMAND"),e0=eE("KEY_ENTER_COMMAND"),e1=eE("KEY_SPACE_COMMAND"),e2=eE("KEY_BACKSPACE_COMMAND"),e3=eE("KEY_ESCAPE_COMMAND"),e5=eE("KEY_DELETE_COMMAND"),e4=eE("KEY_TAB_COMMAND"),e7=eE("INSERT_TAB_COMMAND"),e9=eE("INDENT_CONTENT_COMMAND"),e6=eE("OUTDENT_CONTENT_COMMAND"),e8=eE("DROP_COMMAND"),te=eE("FORMAT_ELEMENT_COMMAND"),tt=eE("DRAGSTART_COMMAND"),tr=eE("DRAGOVER_COMMAND"),tn=eE("DRAGEND_COMMAND"),ti=eE("COPY_COMMAND"),tl=eE("CUT_COMMAND"),to=eE("SELECT_ALL_COMMAND"),ta=eE("CLEAR_EDITOR_COMMAND"),ts=eE("CLEAR_HISTORY_COMMAND"),tu=eE("CAN_REDO_COMMAND"),tc=eE("CAN_UNDO_COMMAND"),td=eE("FOCUS_COMMAND"),tf=eE("BLUR_COMMAND"),th=eE("KEY_MODIFIER_COMMAND"),tg=Object.freeze({}),tp=[["keydown",function(e,t){tm=e.timeStamp,ty=e.key,t.isComposing()||iO(t,eV,e)}],["pointerdown",function(e,t){let r=e.target,n=e.pointerType;iG(r)&&"touch"!==n&&"pen"!==n&&0===e.button&&np(t,()=>{nx(ii(r))||(tS=!0)})}],["compositionstart",function(e,t){iO(t,ej,e)}],["compositionend",function(e,t){s?tk=!0:!d&&(c||m)?(tT=!0,tN=e.data):iO(t,eD,e)}],["input",function(e,t){e.stopPropagation(),np(t,()=>{t.dispatchCommand(eM,e)},{event:e}),tb=null}],["click",function(e,t){np(t,()=>{let r=rq(),n=iJ(iF(t)),i=rV();if(n){if(rE(r)){let t=r.anchor,l=t.getNode();if("element"===t.type&&0===t.offset&&r.isCollapsed()&&!nC(l)&&1===ia().getChildrenSize()&&l.getTopLevelElementOrThrow().isEmpty()&&null!==i&&r.is(i))n.removeAllRanges(),r.dirty=!0;else if(3===e.detail&&!r.isCollapsed()&&l!==r.focus.getNode()){let e=lt(l,e=>nb(e)&&!e.isInline());nb(e)&&e.select(0)}}else if("touch"===e.pointerType||"pen"===e.pointerType){let r=n.anchorNode;(iH(r)||n0(r))&&iu(rJ(i,n,t,e))}}iO(t,e$,e)})}],["cut",tg],["copy",tg],["dragstart",tg],["dragover",tg],["dragend",tg],["paste",tg],["focus",tg],["blur",tg],["drop",tg]];u&&tp.push(["beforeinput",(e,t)=>(function(e,t){let r=e.inputType;"deleteCompositionText"===r||s&&iP(t)||"insertCompositionText"!==r&&iO(t,eA,e)})(e,t)]);let tm=0,ty=null,tv=0,tb=null,t_=new WeakMap,tw=new WeakMap,tx=!1,tS=!1,tC=!1,tk=!1,tT=!1,tN="",tE=null,tP=[0,"",0,"root",0];function tO(e,t,r,n,i){let l=e.anchor,o=e.focus,a=l.getNode(),s=nn(),c=iJ(iF(s)),d=null!==c?c.anchorNode:null,f=l.key,h=s.getElementByKey(f),p=r.length;return f!==o.key||!rv(a)||(!i&&(!u||tv<n+50)||a.isDirty()&&p<2||id(r))&&l.offset!==o.offset&&!a.isComposing()||nQ(a)||a.isDirty()&&p>1||(i||!u)&&null!==h&&!a.isComposing()&&d!==n2(h)||null!==c&&null!==t&&(!t.collapsed||t.startContainer!==c.anch
24orNode||t.startOffset!==c.anchorOffset)||!a.isComposing()&&(a.getFormat()!==e.format||a.getStyle()!==e.style)||function(e,t){if(t.isSegmented())return!0;if(!e.isCollapsed())return!1;let r=e.anchor.offset,n=t.getParentOrThrow(),i=nX(t);return 0===r?!t.canInsertTextBefore()||!n.canInsertTextBefore()&&!t.isComposing()||i||function(e){let t=e.getPreviousSibling();return(rv(t)||nb(t)&&t.isInline())&&!t.canInsertTextAfter()}(t):r===t.getTextContentSize()&&(!t.canInsertTextAfter()||!n.canInsertTextAfter()&&!t.isComposing()||i)}(e,a)}function t$(e,t){return n0(e)&&null!==e.nodeValue&&0!==t&&t!==e.nodeValue.length}function tA(e,t,r){let{anchorNode:i,anchorOffset:l,focusNode:o,focusOffset:a}=e;tx&&(tx=!1,t$(i,l)&&t$(o,a)&&!tE)||np(t,()=>{if(!r)return void iu(null);if(!nH(t,i,o))return;let s=rq();if(tE&&rE(s)&&s.isCollapsed()){let e=s.anchor,t=tE.anchor;(e.key===t.key&&e.offset===t.offset+1||1===e.offset&&t.getNode().is(e.getNode().getPreviousSibling()))&&iu(s=tE.clone())}if(tE=null,rE(s)){let r=s.anchor,i=r.getNode();if(s.isCollapsed()){"Range"===e.type&&e.anchorNode===e.focusNode&&(s.dirty=!0);let l=iF(t).event,o=l?l.timeStamp:performance.now(),[a,c,d,f,h]=tP,p=ia(),m=!1===t.isComposing()&&""===p.getTextContent();if(o<h+200&&r.offset===d&&r.key===f)tM(s,a,c);else if("text"===r.type)rv(i)||n(141),tj(s,i);else if("element"===r.type&&!m){var u;nb(i)||n(259);let e=r.getNode();e.isEmpty()?tM(s,(u=e).getTextFormat(),u.getTextStyle()):tM(s,0,"")}}else{let e=r.key,t=s.focus.key,n=s.getNodes(),i=n.length,o=s.isBackward(),u=o?a:l,c=o?l:a,d=o?t:e,f=o?e:t,h=2047,p=!1;for(let e=0;e<i;e++){let t=n[e],r=t.getTextContentSize();if(rv(t)&&0!==r&&(0!==e||t.__key!==d||u!==r)&&(e!==i-1||t.__key!==f||0!==c)&&(p=!0,0==(h&=t.getFormat())))break}s.format=p?h:0}}iO(t,eP,void 0)})}function tM(e,t,r){e.format===t&&e.style===r||(e.format=t,e.style=r,e.dirty=!0)}function tj(e,t){tM(e,t.getFormat(),t.getStyle())}function tD(e){if(!e.getTargetRanges)return null;let t=e.getTargetRanges();return 0===t.length?null:t[0]}function tI(e){var t;let r=e.inputType,i=tD(e),l=nn(),o=rq();if("deleteContentBackward"===r){if(null===o){let e=rV();if(!rE(e))return!0;iu(e.clone())}if(rE(o)){let r=o.anchor.key===o.focus.key;if(t=e.timeStamp,"MediaLast"===ty&&t<tm+30&&l.isComposing()&&r){if(n6(null),tm=0,setTimeout(()=>{np(l,()=>{n6(null)})},30),rE(o)){let e=o.anchor.getNode();e.markDirty(),rv(e)||n(142),tj(o,e)}}else{n6(null),e.preventDefault();let t=o.anchor.getNode(),n=t.getTextContent(),i=t.canInsertTextAfter(),a=0===o.anchor.offset&&o.focus.offset===n.length,s=p&&r&&!a&&i;if(s&&o.isCollapsed()&&(s=!nx(iE(o.anchor,!0))),!s){iO(l,eI,!0);let e=rq();p&&rE(e)&&e.isCollapsed()&&(tE=e,setTimeout(()=>tE=null))}}return!0}}if(!rE(o))return!0;let a=e.data;null!==tb&&im(!1,l,tb),o.dirty&&null===tb||!o.isCollapsed()||nC(o.anchor.getNode())||null===i||o.applyDOMRange(i),tb=null;let s=o.anchor,u=o.focus,c=s.getNode(),f=u.getNode();if("insertText"===r||"insertTranspose"===r){if("\n"===a)e.preventDefault(),iO(l,eF,!1);else if("\n\n"===a)e.preventDefault(),iO(l,eR,void 0);else if(null==a&&e.dataTransfer){let t=e.dataTransfer.getData("text/plain");e.preventDefault(),o.insertRawText(t)}else null!=a&&tO(o,i,a,e.timeStamp,!0)?(e.preventDefault(),iO(l,eL,a)):tb=a;return tv=e.timeStamp,!0}switch(e.preventDefault(),r){case"insertFromYank":case"insertFromDrop":case"insertReplacementText":iO(l,eL,e);break;case"insertFromComposition":n6(null),iO(l,eL,e);break;case"insertLineBreak":n6(null),iO(l,eF,!1);break;case"insertParagraph":n6(null),tC&&!d?(tC=!1,iO(l,eF,!1)):iO(l,eR,void 0);break;case"insertFromPaste":case"insertFromPasteAsQuotation":iO(l,eB,e);break;case"deleteByComposition":(c!==f||nb(c)||nb(f)||!nX(c)||!nX(f))&&iO(l,ez,e);break;case"deleteByDrag":case"deleteByCut":iO(l,ez,e);break;case"deleteContent":iO(l,eI,!1);break;case"deleteWordBackward":iO(l,eK,!0);break;
24case"deleteWordForward":iO(l,eK,!1);break;case"deleteHardLineBackward":case"deleteSoftLineBackward":iO(l,eU,!0);break;case"deleteContentForward":case"deleteHardLineForward":case"deleteSoftLineForward":iO(l,eU,!1);break;case"formatStrikeThrough":iO(l,eW,"strikethrough");break;case"formatBold":iO(l,eW,"bold");break;case"formatItalic":iO(l,eW,"italic");break;case"formatUnderline":iO(l,eW,"underline");break;case"historyUndo":iO(l,eJ,void 0);break;case"historyRedo":iO(l,eq,void 0)}return!0}function tF(e){if(iH(e.target)&&nx(ii(e.target)))return!0;let t=nn(),r=rq(),n=e.data,i=tD(e);if(null!=n&&rE(r)&&tO(r,i,n,e.timeStamp,!1)){tk&&(tB(t,n),tk=!1);let i=r.anchor.getNode(),l=iJ(iF(t));if(null===l)return!0;let o=r.isBackward(),a=o?r.anchor.offset:r.focus.offset,c=o?r.focus.offset:r.anchor.offset;u&&!r.isCollapsed()&&rv(i)&&null!==l.anchorNode&&i.getTextContent().slice(0,a)+n+i.getTextContent().slice(a+c)===ip(l.anchorNode)||iO(t,eL,n);let d=n.length;s&&d>1&&"insertCompositionText"===e.inputType&&!t.isComposing()&&(r.anchor.offset-=d),p&&t.isComposing()&&(tm=0,n6(null))}else im(!1,t,null!==n?n:void 0),tk&&(tB(t,n||void 0),tk=!1);return ne(),M(nn()),!0}function tR(e){let t=nn(),r=rq();if(rE(r)&&!t.isComposing()){let n=r.anchor,i=r.anchor.getNode();n6(n.key),ij(t7),(e.timeStamp<tm+30||"element"===n.type||!r.isCollapsed()||i.getFormat()!==r.format||rv(i)&&i.getStyle()!==r.style)&&iO(t,eL,v)}return!0}function tL(e){return tB(nn(),e.data),ij(t9),!0}function tB(e,t){let r=e._compositionKey;if(n6(null),null!==r&&null!=t){if(""===t){let t=ie(r),n=n2(e.getElementByKey(r));if(null!==n&&null!==n.nodeValue&&rv(t)){let r=iJ(iF(e)),i=null,l=null;null!==r&&r.anchorNode===n&&(i=r.anchorOffset,l=r.focusOffset),iy(t,n.nodeValue,i,l,!0)}return}if("\n"===t[t.length-1]){let t=rq();if(rE(t)||rO(t)){if(rE(t)){let e=t.focus;t.anchor.set(e.key,e.offset,e.type)}return void iO(e,e0,null)}}}im(!0,e,t)}function tz(e){let t=nn();if(null==e.key)return!0;if(tT){if(iS(e))return np(t,()=>{tB(t,tN)}),tT=!1,tN="",!0;tT=!1,tN=""}if(i_(e,"ArrowRight",{shiftKey:"any"}))iO(t,eH,e);else if(i_(e,"ArrowRight",iw))iO(t,eG,e);else if(i_(e,"ArrowLeft",{shiftKey:"any"}))iO(t,eY,e);else if(i_(e,"ArrowLeft",iw))iO(t,eZ,e);else if(i_(e,"ArrowUp",{altKey:"any",shiftKey:"any"}))iO(t,eX,e);else if(i_(e,"ArrowDown",{altKey:"any",shiftKey:"any"}))iO(t,eQ,e);else if(i_(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any",shiftKey:!0}))tC=!0,iO(t,e0,e);else if(" "===e.key)iO(t,e1,e);else if(a&&i_(e,"o",{ctrlKey:!0}))e.preventDefault(),tC=!0,iO(t,eF,!0);else if(i_(e,"Enter",{altKey:"any",ctrlKey:"any",metaKey:"any"}))tC=!1,iO(t,e0,e);else if(i_(e,"Backspace",{shiftKey:"any"})||a&&i_(e,"h",{ctrlKey:!0}))iS(e)?iO(t,e2,e):(e.preventDefault(),iO(t,eI,!0));else if("Escape"===e.key)iO(t,e3,e);else if(i_(e,"Delete",{})||a&&i_(e,"d",{ctrlKey:!0}))"Delete"!==e.key?(e.preventDefault(),iO(t,eI,!1)):iO(t,e5,e);else if(i_(e,"Backspace",ix))e.preventDefault(),iO(t,eK,!0);else if(i_(e,"Delete",ix))e.preventDefault(),iO(t,eK,!1);else if(a&&i_(e,"Backspace",{metaKey:!0}))e.preventDefault(),iO(t,eU,!0);else if(a&&(i_(e,"Delete",{metaKey:!0})||i_(e,"k",{ctrlKey:!0})))e.preventDefault(),iO(t,eU,!1);else if(i_(e,"b",iw))e.preventDefault(),iO(t,eW,"bold");else if(i_(e,"u",iw))e.preventDefault(),iO(t,eW,"underline");else if(i_(e,"i",iw))e.preventDefault(),iO(t,eW,"italic");else if(i_(e,"Tab",{shiftKey:"any"}))iO(t,e4,e);else if(i_(e,"z",iw))e.preventDefault(),iO(t,eJ,void 0);else if(a?i_(e,"z",{metaKey:!0,shiftKey:!0}):i_(e,"y",{ctrlKey:!0})||i_(e,"z",{ctrlKey:!0,shiftKey:!0}))e.preventDefault(),iO(t,eq,void 0);else{let r=t._editorState._selection;null===r||rE(r)?i_(e,"a",iw)&&(e.preventDefault(),iO(t,to,e)):i_(e,"c",iw)?(e.preventDefault(),iO(t,ti,e)):i_(e,"x",iw)?(e.preventDefault(),iO(t,tl,e)):i_(e,"a",iw)&&(e.preventDefault(),iO(t,to,e))}return(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)&&t.dispatchCommand(th,e),!0}function tK(e){let t=e.__lexicalEventHandles;return void 0===t&&(e.__lexicalEventHandles=t=[]),t}let tU=new Map;function tW(e){let t=iq(e.target);if(null===t)return;let r=nY(t.anchorNode);if(null===r)return;tS&&(tS=!1,np(r,()=>{let n=rV(),i=t.anchorNode;(iH(i)||n0(i))&&iu(rJ(n,t,r,e))}));let n=ih(r),i=n[n.length-1],l=i._key,o=tU.get(l),a=o||i;a!==r&&tA(t,a,!1),tA(t,r,!0),r!==i?tU.set(l,r):o&&tU.delete(l)}function tJ(e){e._lexicalHandled=!0}function tq(e){return!0===e._lexicalHandled}let tV=()=>{};function tH(e,t,r){ne();let n=e.__key,i=e.getParent();if(null===i)return;let l=function(e){let t=rq();if(!rE(t)||!nb(e))return t;let{anchor:r,focus:n}=t,i=r.getNode(),l=n.getNode();return iD(i,e)&&r.set(e.__key,0,"element"),iD(l,e)&&n.set(e.__key,0,"element"),t}(e),o=!1;if(rE(l)&&t){let t=l.anchor,r=l.focus;t.key===n&&(rY(t,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0),r.key===n&&(rY(r,e,i,e.getPreviousSibling(),e.getNextSibling()),o=!0)}else rO(l)&&t&&e.isSelected()&&e.selectPrevious();if(rE(l)&&t&&!o){let t=e.getIndexWithinParent();n7(e),rH(l,i,t,-1)}else n7(e);r||iL(i)||i.canBeEmpty()||!i.isEmpty()||tH(i,t),t&&l&&nC(i)&&i.isEmpty()&&i.selectEnd()}function tG(e){return e}let tY=Symbol.for("ephemeral");function tZ(e){return e[tY]||!1}class tX{__type;__key;__parent;__prev;__next;__state;static getType(){let{ownNodeType:e}=i8(this);return void 0===e&&n(64,this.name),e}static clone(e){n(65,this.name)}$config(){return{}}config(e,t){let r=t.extends||Object.getPrototypeOf(this.constructor);return Object.assign(t,{extends:r,type:e}),{[e]:t}}afterCloneFrom(e){this.__key===e.__key?(this.__parent=e.__parent,this.__next=e.__next,this.__prev=e.__prev,this.__state=e.__state):e.__state&&(this.__state=e.__state.getWritable(this))}static importDOM;constructor(e){this.__type=this.constructor.getType(),this.__parent=null,this.__prev=null,this.__next=null,Object.defineProperty(this,"__state",{configurable:!0,enumerable:!1,value:void 0,writable:!0}),n4(this,e)}getType(){return this.__type}isInline(){n(137,this.constructor.name)}isAttached(){let e=this.__key;for(;null!==e;){if("root"===e)return!0;let t=ie(e);if(null===t)break;e=t.__parent}return!1}isSelected(e){let t=e||rq();if(null==t)return!1;let r=t.getNodes().some(e=>e.__key===this.__key);if(rv(this))return r;if(rE(t)&&"element"===t.anchor.type&&"element"===t.focus.type){if(t.isCollapsed())return!1;let e=this.getParent();if(nx(this)&&this.isInline()&&e){let r=t.isBackward()?t.focus:t.anchor;if(e.is(r.getNode())&&r.offset===e.getChildrenSize()&&this.is(e.getLastChild()))return!1}}return r}getKey(){return this.__key}getIndexWithinParent(){let e=this.getParent();if(null===e)return -1;let t=e.getFirstChild(),r=0;for(;null!==t;){if(this.is(t))return r;r++,t=t.getNextSibling()}return -1}getParent(){let e=this.getLatest().__parent;return null===e?null:ie(e)}getParentOrThrow(){let e=this.getParent();return null===e&&n(66,this.__key),e}getTopLevelElement(){let e=this;for(;null!==e;){let t=e.getParent();if(iL(t))return nb(e)||e===this&&nx(e)||n(194),e;e=t}return null}getTopLevelElementOrThrow(){let e=this.getTopLevelElement();return null===e&&n(67,this.__key),e}getParents(){let e=[],t=this.getParent();for(;null!==t;)e.push(t),t=t.getParent();return e}getParentKeys(){let e=[],t=this.getParent();for(;null!==t;)e.push(t.__key),t=t.getParent();return e}getPreviousSibling(){let e=this.getLatest().__prev;return null===e?null:ie(e)}getPreviousSiblings(){let e=[],t=this.getParent();if(null===t)return e;let r=t.getFirstChild();for(;null!==r&&!r.is(this);)e.push(r),r=r.getNextSibling();return e}getNextSibling(){let e=this.getLatest().__next;return null===e?null:ie(e)}getNextSiblings(){let e=[],t=this.getNextSibling();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getCommonAncestor(e){let t=nb(this)?this:this.getParent(),r=nb(e)?e:e.getParent(),n=t&&r?lO(t,r):null;return n?n.commonAncestor:null}is(e){return null!=e&&this.__key===e.__key}isBefore(e){let t=lO(this,e);return null!==t&&("descendant"===t.type||("branch"===t.type?-1===lE(t):("same"!==t.type&&"ancestor"!==t.type&&n(279),!1)))}isParentOf(e){let t=lO(this,e);return null!==t&&"ancestor"===t.type}getNodesBetween(e){let t=this.isBefore(e),r=[],i=new Set,l=this;for(;null!==l;){let o=l.__key;
24if(i.has(o)||(i.add(o),r.push(l)),l===e)break;let a=nb(l)?t?l.getFirstChild():l.getLastChild():null;if(null!==a){l=a;continue}let s=t?l.getNextSibling():l.getPreviousSibling();if(null!==s){l=s;continue}let u=l.getParentOrThrow();if(i.has(u.__key)||r.push(u),u===e)break;let c=null,d=u;do{if(null===d&&n(68),c=t?d.getNextSibling():d.getPreviousSibling(),null===(d=d.getParent()))break;null!==c||i.has(d.__key)||r.push(d)}while(null===c);l=c}return t||r.reverse(),r}isDirty(){let e=nn()._dirtyLeaves;return null!==e&&e.has(this.__key)}getLatest(){if(tZ(this))return this;let e=ie(this.__key);return null===e&&n(113),e}getWritable(){if(tZ(this))return this;ne();let e=nr(),t=nn(),r=e._nodeMap,n=this.__key,i=this.getLatest(),l=t._cloneNotNeeded,o=rq();if(null!==o&&o.setCachedNodes(null),l.has(n))return n9(i),i;let a=i5(i);return l.add(n),n9(a),r.set(n,a),a}getTextContent(){return""}getTextContentSize(){return this.getTextContent().length}createDOM(e,t){n(70)}updateDOM(e,t,r){n(71)}exportDOM(e){return{element:this.createDOM(e._config,e)}}exportJSON(){let e=this.__state?this.__state.toJSON():void 0;return{type:this.__type,version:1,...e}}static importJSON(e){n(18,this.name)}updateFromJSON(e){return function(e,t){let r=e.getWritable(),n=t.$,i=n;for(let e of z(r).flatKeys)e in t&&(void 0!==i&&i!==n||(i={...n}),i[e]=t[e]);return(r.__state||i)&&B(e).updateFromJSON(i),r}(this,e)}static transform(){return null}remove(e){tH(this,!0,e)}replace(e,t){ne();let r=rq();null!==r&&(r=r.clone()),iK(this,e);let i=this.getLatest(),l=this.__key,o=e.__key,a=e.getWritable(),s=this.getParentOrThrow().getWritable(),u=s.__size;n7(a);let c=i.getPreviousSibling(),d=i.getNextSibling(),f=i.__prev,h=i.__next,p=i.__parent;if((tH(i,!1,!0),null===c)?s.__first=o:c.getWritable().__next=o,(a.__prev=f,null===d)?s.__last=o:d.getWritable().__prev=o,a.__next=h,a.__parent=p,s.__size=u,t&&(nb(this)&&nb(a)||n(139),this.getChildren().forEac
24h(e=>{a.append(e)})),rE(r)){iu(r);let e=r.anchor,t=r.focus;e.key===l&&rT(e,a),t.key===l&&rT(t,a)}return n8()===l&&n6(o),a}insertAfter(e,t=!0){ne(),iK(this,e);let r=this.getWritable(),n=e.getWritable(),i=n.getParent(),l=rq(),o=!1,a=!1;if(null!==i){let t=e.getIndexWithinParent();if(n7(n),rE(l)){let e=i.__key,r=l.anchor,n=l.focus;o="element"===r.type&&r.key===e&&r.offset===t+1,a="element"===n.type&&n.key===e&&n.offset===t+1}}let s=this.getNextSibling(),u=this.getParentOrThrow().getWritable(),c=n.__key,d=r.__next;if(null===s?u.__last=c:s.getWritable().__prev=c,u.__size++,r.__next=c,n.__next=d,n.__prev=r.__key,n.__parent=r.__parent,t&&rE(l)){let e=this.getIndexWithinParent();rH(l,u,e+1);let t=u.__key;o&&l.anchor.set(t,e+2,"element"),a&&l.focus.set(t,e+2,"element")}return e}insertBefore(e,t=!0){ne(),iK(this,e);let r=this.getWritable(),n=e.getWritable(),i=n.__key;n7(n);let l=this.getPreviousSibling(),o=this.getParentOrThrow().getWritable(),a=r.__prev,s=this.getIndexWithinParent();null===l?o.__first=i:l.getWritable().__next=i,o.__size++,r.__prev=i,n.__prev=a,n.__next=r.__key,n.__parent=r.__parent;let u=rq();return t&&rE(u)&&rH(u,this.getParentOrThrow(),s),e}isParentRequired(){return!1}createParentElementNode(){return nA()}selectStart(){return this.selectPrevious()}selectEnd(){return this.selectNext(0,0)}selectPrevious(e,t){ne();let r=this.getPreviousSibling(),n=this.getParentOrThrow();if(null===r)return n.select(0,0);if(nb(r))return r.select();if(!rv(r)){let e=r.getIndexWithinParent()+1;return n.select(e,e)}return r.select(e,t)}selectNext(e,t){ne();let r=this.getNextSibling(),n=this.getParentOrThrow();if(null===r)return n.select();if(nb(r))return r.select(0,0);if(!rv(r)){let e=r.getIndexWithinParent();return n.select(e,e)}return r.select(e,t)}markDirty(){this.getWritable()}reconcileObservedMutation(e,t){this.markDirty()}}let tQ="historic",t0="history-push",t1="history-merge",t2="paste",t3="skip-scroll-into-view",t5="skip-dom-selection",t4="skip-selection-focus",t7="composition-start",t9="composition-end";class t6 extends tX{static getType(){return"linebreak"}static clone(e){return new t6(e.__key)}constructor(e){super(e)}getTextContent(){return"\n"}createDOM(){return document.createElement("br")}updateDOM(){return!1}isInline(){return!0}static importDOM(){return{br:e=>(function(e){let t=e.parentElement;if(null!==t&&iX(t)){let r=t.firstChild;if(r===e||r.nextSibling===e&&rr(r)){let r=t.lastChild;if(r===e||r.previousSibling===e&&rr(r))return!0}}return!1})(e)||function(e){let t=e.parentElement;if(null!==t&&iX(t)){let r=t.firstChild;if(r===e||r.nextSibling===e&&rr(r))return!1;let n=t.lastChild;if(n===e||n.previousSibling===e&&rr(n))return!0}return!1}(e)?null:{conversion:t8,priority:0}}}static importJSON(e){return re().updateFromJSON(e)}}function t8(e){return{node:re()}}function re(){return iz(new t6)}function rt(e){return e instanceof t6}function rr(e){return n0(e)&&/^( |\t|\r?\n)+$/.test(e.textContent||"")}function rn(e,t){return 16&t?"code":128&t?"mark":32&t?"sub":64&t?"sup":null}function ri(e,t){return 1&t?"strong":2&t?"em":"span"}function rl(e,t,r,n,i){let l=n.classList,o=ik(i,"base");void 0!==o&&l.add(...o);let a=!1,s=8&t&&4&t;for(let e in void 0!==(o=ik(i,"underlineStrikethrough"))&&(8&r&&4&r?(a=!0,s||l.add(...o)):s&&l.remove(...o)),w){let n=w[e];if(void 0!==(o=ik(i,e)))if(r&n){if(a&&("underline"===e||"strikethrough"===e)){t&n&&l.remove(...o);continue}(0==(t&n)||s&&"underline"===e||"strikethrough"===e)&&l.add(...o)}else t&n&&l.remove(...o)}}function ro(e,t,r){let n=t.firstChild,i=r.isComposing(),l=e+(i?y:"");if(null==n)t.textContent=l;else{let e=n.nodeValue;if(e!==l)if(i||s){let[t,r,i]=function(e,t){let r=e.length,n=t.length,i=0,l=0;for(;i<r&&i<n&&e[i]===t[i];)i++;for(;l+i<r&&l+i<n&&e[r-l-1]===t[n-l-1];)l++;return[i,r-i-l,t.slice(i,n-l)]}(e,l);0!==r&&n.deleteData(t,r),n.insertData(t,i)}else n.nodeValue=l}}function ra(e,t,r,n,i,l){ro(i,e,t);let o=l.theme.text;void 0!==o&&rl(0,0,n,e,o)}function rs(e,t){let r=document.createElement(t);return r.appendChild(e),r}class ru extends tX{__text;__format;__style;__mode;__detail;static getType(){return"text"}static clone(e){return new ru(e.__text,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__text=e.__text,this.__format=e.__format,this.__style=e.__style,this.__mode=e.__mode,this.__detail=e.__detail}constructor(e="",t){super(t),this.__text=e,this.__format=0,this.__style="",this.__mode=0,this.__detail=0}getFormat(){return this.getLatest().__format}getDetail(){return this.getLatest().__detail}getMode(){return T[this.getLatest().__mode]}getStyle(){return this.getLatest().__style}isToken(){return 1===this.getLatest().__mode}isComposing(){return this.__key===n8()}isSegmented(){return 2===this.getLatest().__mode}isDirectionless(){return!!(1&this.getLatest().__detail)}isUnmergeable(){return!!(2&this.getLatest().__detail)}hasFormat(e){let t=w[e];return 0!=(this.getFormat()&t)}isSimpleText(){return"text"===this.__type&&0===this.__mode}getTextContent(){return this.getLatest().__text}getFormatFlags(e,t){return n3(this.getLatest().__format,e,t)}canHaveFormat(){return!0}isInline(){return!0}createDOM(e,t){let r=this.__format,n=rn(0,r),i=ri(0,r),l=null===n?i:n,o=document.createElement(l),a=o;
24this.hasFormat("code")&&o.setAttribute("spellcheck","false"),null!==n&&(a=document.createElement(i),o.appendChild(a)),ra(a,this,0,r,this.__text,e);let s=this.__style;return""!==s&&(o.style.cssText=s),o}updateDOM(e,t,r){let i=this.__text,l=e.__format,o=this.__format,a=rn(0,l),s=rn(0,o),u=ri(0,l),c=ri(0,o);if((null===a?u:a)!==(null===s?c:s))return!0;if(a===s&&u!==c){let e=t.firstChild;null==e&&n(48);let l=document.createElement(c);return ra(l,this,0,o,i,r),t.replaceChild(l,e),!1}let d=t;null!==s&&null!==a&&null==(d=t.firstChild)&&n(49),ro(i,d,this);let f=r.theme.text;void 0!==f&&l!==o&&rl(0,l,o,d,f);let h=e.__style,p=this.__style;return h!==p&&(t.style.cssText=p),!1}static importDOM(){return{"#text":()=>({conversion:rh,priority:0}),b:()=>({conversion:rd,priority:0}),code:()=>({conversion:rm,priority:0}),em:()=>({conversion:rm,priority:0}),i:()=>({conversion:rm,priority:0}),mark:()=>({conversion:rm,priority:0}),s:()=>({conversion:rm,priority:0}),span:()=>({conversion:rc,priority:0}),strong:()=>({conversion:rm,priority:0}),sub:()=>({conversion:rm,priority:0}),sup:()=>({conversion:rm,priority:0}),u:()=>({conversion:rm,priority:0})}}static importJSON(e){return ry().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTextContent(e.text).setFormat(e.format).setDetail(e.detail).setMode(e.mode).setStyle(e.style)}
24exportDOM(e){let{element:t}=super.exportDOM(e);return iH(t)||n(132),t.style.whiteSpace="pre-wrap",this.hasFormat("lowercase")?t.style.textTransform="lowercase":this.hasFormat("uppercase")?t.style.textTransform="uppercase":this.hasFormat("capitalize")&&(t.style.textTransform="capitalize"),this.hasFormat("bold")&&(t=rs(t,"b")),this.hasFormat("italic")&&(t=rs(t,"i")),this.hasFormat("strikethrough")&&(t=rs(t,"s")),this.hasFormat("underline")&&(t=rs(t,"u")),{element:t}}exportJSON(){return{detail:this.getDetail(),format:this.getFormat(),mode:this.getMode(),style:this.getStyle(),text:this.getTextContent(),...super.exportJSON()}}selectionTransform(e,t){}setFormat(e){let t=this.getWritable();return t.__format="string"==typeof e?w[e]:e,t}setDetail(e){let t=this.getWritable();return t.__detail="string"==typeof e?x[e]:e,t}setStyle(e){let t=this.getWritable();return t.__style=e,t}toggleFormat(e){let t=n3(this.getFormat(),e,null);return this.setFormat(t)}toggleDirectionless(){let e=this.getWritable();return e.__detail^=1,e}toggleUnmergeable(){let e=this.getWritable();return e.__detail^=2,e}setMode(e){let t=k[e];if(this.__mode===t)return this;let r=this.getWritable();return r.__mode=t,r}setTextContent(e){if(this.__text===e)return this;let t=this.getWritable();return t.__text=e,t}select(e,t){ne();let r=e,n=t,i=rq(),l=this.getTextContent(),o=this.__key;if("string"==typeof l){let e=l.length;void 0===r&&(r=e),void 0===n&&(n=e)}else r=0,n=0;if(!rE(i))return rz(o,r,o,n,"text","text");{let e=n8();e!==i.anchor.key&&e!==i.focus.key||n6(o),i.setTextNodeRange(this,r,this,n)}return i}selectStart(){return this.select(0,0)}selectEnd(){let e=this.getTextContentSize();return this.select(e,e)}spliceText(e,t,r,n){let i=this.getWritable(),l=i.__text,o=r.length,a=e;a<0&&(a=o+a)<0&&(a=0);let s=rq();if(n&&rE(s)){let t=e+o;s.setTextNodeRange(i,t,i,t)}return i.__text=l.slice(0,a)+r+l.slice(a+t),i}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}splitText(...e){let t;ne();let r=this.getLatest(),n=r.getTextContent();if(""===n)return[];let i=r.__key,l=n8(),o=n.length;e.sort((e,t)=>e-t),e.push(o);let a=[],s=e.length;for(let t=0,r=0;t<o&&r<=s;r++){let i=e[r];i>t&&(a.push(n.slice(t,i)),t=i)}let u=a.length;if(1===u)return[r];let c=a[0],d=r.getParent(),f=r.getFormat(),h=r.getStyle(),p=r.__detail,m=!1,y=null,v=null,b=rq();if(rE(b)){let[e,t]=b.isBackward()?[b.focus,b.anchor]:[b.anchor,b.focus];"text"===e.type&&e.key===i&&(y=e),"text"===t.type&&t.key===i&&(v=t)}r.isSegmented()?((t=ry(c)).__format=f,t.__style=h,t.__detail=p,t.__state=q(r,t),m=!0):t=r.setTextContent(c);let _=[t];for(let e=1;e<u;e++){let t=ry(a[e]);t.__format=f,t.__style=h,t.__detail=p,t.__state=q(r,t);let n=t.__key;l===i&&n6(n),_.push(t)}let w=y?y.offset:null,x=v?v.offset:null,S=0;for(let e of _){if(!y&&!v)break;let t=S+e.getTextContentSize();if(null!==y&&null!==w&&w<=t&&w>=S&&(y.set(e.getKey(),w-S,"text"),w<t&&(y=null)),null!==v&&null!==x&&x<=t&&x>=S){v.set(e.getKey(),x-S,"text");break}S=t}if(null!==d){let e=this.getPreviousSibling(),t=this.getNextSibling();null!==e&&n9(e),null!==t&&n9(t);let r=d.getWritable(),n=this.getIndexWithinParent();m?(r.splice(n,0,_),this.remove()):r.splice(n,1,_),rE(b)&&rH(b,d,n,u-1)}return _}mergeWithSibling(e){let t=e===this.getPreviousSibling();t||e===this.getNextSibling()||n(50);let r=this.__key,i=e.__key,l=this.__text,o=l.length;n8()===i&&n6(r);let a=rq();if(rE(a)){let n=a.anchor,l=a.focus;null!==n&&n.key===i&&rZ(n,t,r,e,o),null!==l&&l.key===i&&rZ(l,t,r,e,o)}let s=e.__text,u=t?s+l:l+s;this.setTextContent(u);let c=this.getWritable();return e.remove(),c}isTextEntity(){return!1}}function rc(e){return{forChild:rb(e.style),node:null}}function rd(e){let t="normal"===e.style.fontWeight;return{forChild:rb(e.style,t?void 0:"bold"),node:null}}let rf=new WeakMap;function rh(e){null===e.parentElement&&n(129);let t=e.textContent||"";if(null!==function(e){let t,r=e.parentNode,n=[e];for(;null!==r&&void 0===(t=rf.get(r))&&!function(e){if(!iH(e))return!1;if("PRE"===e.nodeName)return!0;let t=e.style.whiteSpace;return"string"==typeof t&&t.startsWith("pre")}(r);)n.push(r),r=r.parentNode;let i=void 0===t?r:t;for(let e=0;e<n.length;e++)rf.set(n[e],i);return i}(e)){let e=t.split(/(\r?\n|\t)/),r=[],n=e.length;for(let t=0;t<n;t++){let n=e[t];"\n"===n||"\r\n"===n?r.push(re()):" "===n?r.push(rw()):""!==n&&r.push(ry(n))}return{node:r}}if(""===(t=t.replace(/\r/g,"").replace(/[ \t\n]+/g," ")))return{node:null};if(" "===t[0]){let r=e,n=!0;for(;null!==r&&null!==(r=rg(r,!1));){let e=r.textContent||"";if(e.length>
240){/[ \t\n]$/.test(e)&&(t=t.slice(1)),n=!1;break}}n&&(t=t.slice(1))}if(" "===t[t.length-1]){let r=e,n=!0;for(;null!==r&&null!==(r=rg(r,!0));)if((r.textContent||"").replace(/^( |\t|\r?\n)+/,"").length>0){n=!1;break}n&&(t=t.slice(0,t.length-1))}return""===t?{node:null}:{node:ry(t)}}function rg(e,t){let r=e;for(;;){let e;for(;null===(e=t?r.nextSibling:r.previousSibling);){let e=r.parentElement;if(null===e)return null;r=e}if(iH(r=e)){let e=r.style.display;if(""===e&&!iZ(r)||""!==e&&!e.startsWith("inline"))return null}let n=r;for(;null!==(n=t?r.firstChild:r.lastChild);)r=n;if(n0(r))return r;if("BR"===r.nodeName)return null}}let rp={code:"code",em:"italic",i:"italic",mark:"highlight",s:"strikethrough",strong:"bold",sub:"subscript",sup:"superscript",u:"underline"};function rm(e){let t=rp[e.nodeName.toLowerCase()];return void 0===t?{node:null}:{forChild:rb(e.style,t),node:null}}function ry(e=""){return iz(new ru(e))}function rv(e){return e instanceof ru}function rb(e,t){let r=e.fontWeight,n=e.textDecoration.split(" "),i="700"===r||"bold"===r,l=n.includes("line-through"),o="italic"===e.fontStyle,a=n.includes("underline"),s=e.verticalAlign;return e=>(rv(e)&&(i&&!e.hasFormat("bold")&&e.toggleFormat("bold"),l&&!e.hasFormat("strikethrough")&&e.toggleFormat("strikethrough"),o&&!e.hasFormat("italic")&&e.toggleFormat("italic"),a&&!e.hasFormat("underline")&&e.toggleFormat("underline"),"sub"!==s||e.hasFormat("subscript")||e.toggleFormat("subscript"),"super"!==s||e.hasFormat("superscript")||e.toggleFormat("superscript"),t&&!e.hasFormat(t)&&e.toggleFormat(t)),e)}class r_ extends ru{static getType(){return"tab"}static clone(e){return new r_(e.__key)}constructor(e){super(" ",e),this.__detail=2}static importDOM(){return null}createDOM(e){let t=super.createDOM(e),r=ik(e.theme,"tab");return void 0!==r&&t.classList.add(...r),t}static importJSON(e){return rw().updateFromJSON(e)}setTextContent(e){return" "!==e&&""!==e&&i(126),super.setTextContent(" ")}spliceText(e,t,r,i){return""===r&&0===t||" "===r&&1===t||n(286),this}setDetail(e){return 2!==e&&n(127),this}setMode(e){return"normal"!==e&&n(128),this}canInsertTextBefore(){return!1}canInsertTextAfter(){return!1}}function rw(){return iz(new r_)}function rx(e){return e instanceof r_}class rS{key;offset;type;_selection;constructor(e,t,r){this._selection=null,this.key=e,this.offset=t,this.type=r}is(e){return this.key===e.key&&this.offset===e.offset&&this.type===e.type}isBefore(e){return this.key===e.key?this.offset<e.offset:0>lN(lL(l$(this,"next")),lL(l$(e,"next")))}getNode(){let e=ie(this.key);return null===e&&n(20),e}set(e,t,r,n){let i=this._selection,l=this.key;n&&this.key===e&&this.offset===t&&this.type===r||(this.key=e,this.offset=t,this.type=r,r8()||(n8()===l&&n6(e),null!==i&&(i.setCachedNodes(null),i.dirty=!0)))}}function rC(e,t,r){return new rS(e,t,r)}function rk(e,t){let r=t.__key,n=e.offset,i="element";if(rv(t)){i="text";let e=t.getTextContentSize();n>e&&(n=e)}else if(!nb(t)){let e=t.getNextSibling();if(rv(e))r=e.__key,n=0,i="text";else{let e=t.getParent();e&&(r=e.__key,n=t.getIndexWithinParent()+1)}}e.set(r,n,i)}function rT(e,t){if(nb(t)){let r=t.getLastDescendant();nb(r)||rv(r)?rk(e,r):rk(e,t)}else rk(e,t)}class rN{_nodes;_cachedNodes;dirty;constructor(e){this._cachedNodes=null,this._nodes=e,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){if(!rO(e))return!1;let t=this._nodes,r=e._nodes;return t.size===r.size&&Array.from(t).every(e=>r.has(e))}isCollapsed(){return!1}isBackward(){return!1}getStartEndPoints(){return null}add(e){this.dirty=!0,this._nodes.add(e),this._cachedNodes=null}delete(e){this.dirty=!0,this._nodes.delete(e),this._cachedNodes=null}clear(){this.dirty=!0,this._nodes.clear(),this._cachedNodes=null}has(e){return this._nodes.has(e)}clone(){return new rN(new Set(this._nodes))}extract(){return this.getNodes()}insertRawText(e){}insertText(){}insertNodes(e){let t,r=this.getNodes(),n=r.length,i=r[n-1];if(rv(i))t=i.select();else{let e=i.getIndexWithinParent()+1;t=i.getParentOrThrow().select(e,e)}t.insertNodes(e);for(let e=0;e<n;e++)r[e].remove()}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=this._nodes,r=[];for(let e of t){let t=ie(e);null!==t&&r.push(t)}return r8()||(this._cachedNodes=r),r}getTextContent(){let e=this.getNodes(),t="";for(let r=0;r<e.length;r++)t+=e[r].getTextContent();return t}deleteNodes(){let e=this.getNodes();if((rq()||rV())===this&&e[0]){let t=lp(e[0],"next");lM(lk(t,t))}for(let t of e)t.remove()}}function rE(e){return e instanceof rP}class rP{format;style;anchor;focus;_cachedNodes;dirty;constructor(e,t,r,n){this.anchor=e,this.focus=t,e._selection=this,t._selection=this,this._cachedNodes=null,this.format=r,this.style=n,this.dirty=!1}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return!!rE(e)&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)&&this.format===e.format&&this.style===e.style}isCollapsed(){return this.anchor.is(this.focus)}getNodes(){let e=this._cachedNodes;if(null!==e)return e;let t=function(e){let t=[],[r,n]=e.getTextSlices();r&&t.push(r.caret.origin);let i=new Set,l=new Set;for(let r of e)if(ld(r)){let{origin:e}=r;
240===t.length?i.add(e):(l.add(e),t.push(e))}else{let{origin:e}=r;nb(e)&&l.has(e)||t.push(e)}if(n&&t.push(n.caret.origin),lc(e.focus)&&nb(e.focus.origin)&&null===e.focus.getNodeAtCaret())for(let r=lv(e.focus.origin,"previous");ld(r)&&i.has(r.origin)&&!r.origin.isEmpty()&&r.origin.is(t[t.length-1]);r=l_(r))i.delete(r.origin),t.pop();for(;t.length>1;){let e=t[t.length-1];if(!nb(e)||l.has(e)||e.isEmpty()||i.has(e))break;t.pop()}if(0===t.length&&e.isCollapsed()){let r=lL(e.anchor),n=lL(e.anchor.getFlipped()),i=e=>lu(e)?e.origin:e.getNodeAtCaret(),l=i(r)||i(n)||(e.anchor.getNodeAtCaret()?r.origin:n.origin);t.push(l)}return t}(lK(lD(this),"next"));return r8()||(this._cachedNodes=t),t}setTextNodeRange(e,t,r,n){this.anchor.set(e.__key,t,"text"),this.focus.set(r.__key,n,"text")}getTextContent(){let e=this.getNodes();if(0===e.length)return"";let t=e[0],r=e[e.length-1],n=this.anchor,i=this.focus,l=n.isBefore(i),[o,a]=rA(this),s="",u=!0;for(let c=0;c<e.length;c++){let d=e[c];if(nb(d)&&!d.isInline())u||(s+="\n"),u=!d.isEmpty();else if(u=!1,rv(d)){let e=d.getTextContent();d===t?d===r?"element"===n.type&&"element"===i.type&&i.offset!==n.offset||(e=o<a?e.slice(o,a):e.slice(a,o)):e=l?e.slice(o):e.slice(a):d===r&&(e=l?e.slice(0,a):e.slice(0,o)),s+=e}else!nx(d)&&!rt(d)||d===r&&this.isCollapsed()||(s+=d.getTextContent())}return s}applyDOMRange(e){let t=nn(),r=t.getEditorState()._selection,n=rL(e.startContainer,e.startOffset,e.endContainer,e.endOffset,t,r);if(null===n)return;let[i,l]=n;this.anchor.set(i.key,i.offset,i.type,!0),this.focus.set(l.key,l.offset,l.type,!0),Y(this)}clone(){let e=this.anchor,t=this.focus;return new rP(rC(e.key,e.offset,e.type),rC(t.key,t.offset,t.type),this.format,this.style)}toggleFormat(e){this.format=n3(this.format,e,null),this.dirty=!0}setFormat(e){this.format=e,this.dirty=!0}setStyle(e){this.style=e,this.dirty=!0}hasFormat(e){let t=w[e];return 0!=(this.format&t)}insertRawText(e){let t=e.split(/(\r?\n|\t)/),r=[],n=t.length;for(let e=0;e<n;e++){let n=t[e];"\n"===n||"\r\n"===n?r.push(re()):" "===n?r.push(rw()):r.push(ry(n))}this.insertNodes(r)}insertText(e){let t=this.anchor,r=this.focus,i=this.format,l=this.style,o=t,a=r;!this.isCollapsed()&&r.isBefore(t)&&(o=r,a=t),"element"===o.type&&function(e,t,r,n){let i=e.getNode(),l=i.getChildAtIndex(e.offset),o=ry();if(o.setFormat(r),o.setStyle(n),nM(l))l.splice(0,0,[o]);else{let e=nC(i)?nA().append(o):o;null===l?i.append(e):l.insertBefore(e)}e.is(t)&&t.set(o.__key,0,"text"),e.set(o.__key,0,"text")}(o,a,i,l),"element"===a.type&&lA(a,lL(l$(a,"next")));let s=o.offset,u=a.offset,c=this.getNodes(),d=c.length,f=c[0];rv(f)||n(26);let h=f.getTextContent().length,p=f.getParentOrThrow(),m=c[d-1];if(1===d&&"element"===a.type&&(u=h,a.set(o.key,u,"text")),this.isCollapsed()&&s===h&&(nQ(f)||!f.canInsertTextAfter()||!p.canInsertTextAfter()&&null===f.getNextSibling())){let t=f.getNextSibling();if(rv(t)&&t.canInsertTextBefore()&&!nQ(t)||((t=ry()).setFormat(i),t.setStyle(l),p.canInsertTextAfter()?f.insertAfter(t):p.insertAfter(t)),t.select(0,0),f=t,""!==e)return void this.insertText(e)}else if(this.isCollapsed()&&0===s&&(nQ(f)||!f.canInsertTextBefore()||!p.canInsertTextBefore()&&null===f.getPreviousSibling())){let t=f.getPreviousSibling();if(rv(t)&&!nQ(t)||((t=ry()).setFormat(i),p.canInsertTextBefore()?f.insertBefore(t):p.insertBefore(t)),t.select(),f=t,""!==e)return void this.insertText(e)}else if(f.isSegmented()&&s!==h){let e=ry(f.getTextContent());e.setFormat(i),f.replace(e),f=e}else if(!this.isCollapsed()&&""!==e){let t=m.getParent();if(!p.canInsertTextBefore()||!p.canInsertTextAfter()||nb(t)&&(!t.canInsertTextBefore()||!t.canInsertTextAfter()))return this.insertText(""),rR(this.anchor,this.focus),void this.insertText(e)}if(1===d){if(nX(f)){let t=ry(e);return t.select(),void f.replace(t)}let t=f.getFormat(),r=f.getStyle();if(s!==u||t===i&&r===l){if(rx(f)){let t=ry(e);return t.setFormat(i),t.setStyle(l),t.select(),void f.replace(t)}}else{if(""!==f.getTextContent()){let t=ry(e);if(t.setFormat(i),t.setStyle(l),t.select(),0===s)f.insertBefore(t,!1);else{let[e]=f.splitText(s);e.insertAfter(t,!1)}return void(t.isComposing()&&"text"===this.anchor.type&&(this.anchor.offset-=e.length))}f.setFormat(i),f.setStyle(l)}let n=u-s;""===(f=f.spliceText(s,n,e,!0)).getTextContent()?f.remove():"text"===this.anchor.type&&(this.format=t,this.style=r,f.isComposing()&&(this.anchor.offset-=e.length))}else{let t=new Set([...f.getParentKeys(),...m.getParentKeys()]),r=nb(f)?f:f.getParentOrThrow(),n=nb(m)?m:m.getParentOrThrow(),i=m;if(!r.is(n)&&n.isInline())do i=n,n=n.getParentOrThrow();while(n.isInline());if("text"===a.type&&(0!==u||""===m.getTextContent())||"element"===a.type&&m.getIndexWithinParent()<u)if(rv(m)&&!nX(m)&&u!==m.getTextContentSize()){if(m.isSegmented()){let e=ry(m.getTextContent());m.replace(e),m=e}nC(a.getNode())||"text"!==a.type||(m=m.spliceText(0,u,"")),t.add(m.__key)}else{let e=m.getParentOrThrow();e.canBeEmpty()||1!==e.getChildrenSize()?m.remove():e.remove()}else t.add(m.__key);let l=n.getChildren(),o=new Set(c),p=r.is(n),y=r.isInline()&&null===f.getNextSibling()?r:f;for(let e=l.length-1;e>=0;e--){let t=l[e];if(t.is(f)||nb(t)&&t.isParentOf(f))break;t.isAttached()&&(!o.has(t)||t.is(i)?p||y.insertAfter(t,!1):t.remove())}if(!p){let e=n,r=null;for(;null!==e;){let n=e.getChildren(),i=n.length;(0===i||n[i-1].is(r))&&(t.delete(e.__key),r=e),e=e.getParent()}}if(nX(f))if(s===h)f.select();else{let t=ry(e);t.select(),f.replace(t)}else""===(f=f.spliceText(s,h-s,e,!0)).getTextContent()?f.remove():"text"===this.anchor.type&&(this.format=f.getFormat(),this.style=f.getStyle(),f.isComposing()&&(this.anchor.offset-=e.length));for(let e=1;e<d;e++){let r=c[e],n=r.__key;t.has(n)||r.remove()}}}removeText(){let e=rq()===this;lj(this,function(e,t="removeEmptySlices"){let r,i;if(e.isCollapsed())return e;let l="root",o="next",a=t,s=lK(e,o),u=lF(s.anchor,l),c=lF(s.focus.getFlipped(),l),d=new Set,f=[];for(let e of s.iterNodeCarets(l))if(ld(e))d.add(e.origin.getKey());else if(lc(e)){let{origin:t}=e;nb(t)&&!d.has(t.getKey())||f.push(t)}for(let e of f)e.remove();for(let e of s.getTextSlices()){if(!e)continue;let{origin:t}=e.caret,r=t.getTextContentSize(),n=lI(lp(t,o)),i=t.getMode();if(Math.abs(e.distance)===r&&"removeEmptySlices"===a||"token"===i&&0!==e.distance)n.remove();else if(0!==e.distance){a="removeEmptySlices";let t=e.removeTextSlice(),r=e.caret.origin;if("segmented"===i){let e=t.origin,r=ry(e.getTextContent()).setStyle(e.getStyle()).setFormat(e.getFormat());n.replaceOrInsert(r),t=lm(r,o,t.offset)}r.is(u[0].origin)&&(u[0]=t),r.is(c[0].origin)&&(c[0]=t.getFlipped())}}for(let e of u)if(lR(e)){r=lL(e);break}for(let e of c)if(lR(e)){i=lL(e);break}let h=function(e,t,r){let n;if(!e||!t)return null;let i=e.getParentAtCaret(),l=t.getParentAtCaret();if(!i||!l)return null;let o=i.getParents().reverse();o.push(i);let a=l.getParents().reverse();a.push(l);let s=Math.min(o.length,a.length);for(n=0;n<s&&o[n]===a[n];n++);let u=(e,t)=>
24{let r;for(let i=n;i<e.length;i++){let n=e[i];if(iL(n))return;!r&&t(n)&&(r=n)}return r},c=u(o,iQ),d=c&&u(a,e=>r.has(e.getKey())&&iQ(e));return c&&d?[c,d]:null}(r,i,d);if(h){let[e,t]=h;lv(e,"previous").splice(0,t.getChildren());let r=t.getParent();for(t.remove(!0);r&&r.isEmpty();){let e=r;r=r.getParent(),e.remove(!0)}}let p=[r,i,...u,...c].find(lR);if(p)return lC(lz(lL(p),e.direction));n(269,JSON.stringify(u.map(e=>e.origin.__key)))}(lD(this))),e&&rq()!==this&&iu(this)}formatText(e,t=null){if(this.isCollapsed())return this.toggleFormat(e),void n6(null);let r=this.getNodes(),n=[];for(let e of r)rv(e)&&n.push(e);let i=t=>{r.forEach(r=>{if(nb(r)){let n=r.getFormatFlags(e,t);r.setTextFormat(n)}})},l=n.length;if(0===l)return this.toggleFormat(e),n6(null),void i(t);let o=this.anchor,a=this.focus,s=this.isBackward(),u=s?a:o,c=s?o:a,d=0,f=n[0],h="element"===u.type?0:u.offset;if("text"===u.type&&h===f.getTextContentSize()&&(d=1,f=n[1],h=0),null==f)return;let p=f.getFormatFlags(e,t);i(p);let m=l-1,y=n[m],v="text"===c.type?c.offset:y.getTextContentSize();if(f.is(y)){if(h===v)return;if(nQ(f)||0===h&&v===f.getTextContentSize())f.setFormat(p);else{let e=f.splitText(h,v),t=0===h?e[0]:e[1];t.setFormat(p),"text"===u.type&&u.set(t.__key,0,"text"),"text"===c.type&&c.set(t.__key,v-h,"text")}return void(this.format=p)}0===h||nQ(f)||([,f]=f.splitText(h),h=0),f.setFormat(p);let b=y.getFormatFlags(e,p);v>0&&(v===y.getTextContentSize()||nQ(y)||([y]=y.splitText(v)),y.setFormat(b));for(let t=d+1;t<m;t++){let r=n[t],i=r.getFormatFlags(e,b);r.setFormat(i)}"text"===u.type&&u.set(f.__key,h,"text"),"text"===c.type&&c.set(y.__key,v,"text"),this.format=p|b}insertNodes(e){var t;if(0===e.length)return;if(this.isCollapsed()||this.removeText(),"root"===this.anchor.key){this.insertParagraph();let t=rq();return rE(t)||n(134),t.insertNodes(e)}let r=(this.isBackward()?this.focus:this.anchor).getNode(),i=lt(r,iQ),l=e[e.length-1];if(nb(i)&&"__language"in i){if("__language"in e[0])this.insertText(e[0].getTextContent());else{let t=r1(this);i.splice(t,0,e),l.selectEnd()}return}if(!e.some(e=>(nb(e)||nx(e))&&!e.isInline())){nb(i)||n(211,r.constructor.name,r.getType());let t=r1(this);return i.splice(t,0,e),void l.selectEnd()}let o=function(e){let t=nA(),r=null;for(let n=0;n<e.length;n++){let i=e[n],l=rt(i);if(l||nx(i)&&i.isInline()||nb(i)&&i.isInline()||rv(i)||i.isParentRequired()){if(null===r&&(r=i.createParentElementNode(),t.append(r),l))continue;null!==r&&r.append(i)}else t.append(i),r=null}return t}(e),a=o.getLastDescendant(),s=o.getChildren(),u=nb(i)&&i.isEmpty()?null:this.insertParagraph(),c=s[s.length-1],d=s[0];nb(t=d)&&iQ(t)&&!t.isEmpty()&&nb(i)&&(!i.isEmpty()||i.canMergeWhenEmpty())&&(nb(i)||n(211,r.constructor.name,r.getType()),i.append(...d.getChildren()),d=s[1]),d&&(null===i&&n(212,r.constructor.name,r.getType()),function(e,t){let r=t.getParentOrThrow().getLastChild(),i=t,l=[t];for(;i!==r;)i.getNextSibling()||n(140),l.push(i=i.getNextSibling());let o=e;for(let e of l)o=o.insertAfter(e)}(i,d));let f=lt(a,iQ);u&&nb(f)&&(u.canMergeWhenEmpty()||iQ(c))&&(f.append(...u.getChildren()),u.remove()),nb(i)&&i.isEmpty()&&i.remove(),a.selectEnd();let h=nb(i)?i.getLastChild():null;rt(h)&&f!==i&&h.remove()}insertParagraph(){if("root"===this.anchor.key){let e=nA();return ia().splice(this.anchor.offset,0,[e]),e.select(),e}let e=r1(this),t=lt(this.anchor.getNode(),iQ);nb(t)||n(213);let r=t.getChildAtIndex(e),i=r?[r,...r.getNextSiblings()]:[],l=t.insertNewAfter(this,!1);return l?(l.append(...i),l.selectStart(),l):null}insertLineBreak(e){let t=re();if(this.insertNodes([t]),e){let e=t.getParentOrThrow(),r=t.getIndexWithinParent();e.select(r,r)}}extract(){let e=[...this.getNodes()],t=e.length,r=e[0],n=e[t-1],[i,l]=rA(this),o=this.isBackward(),[a,s]=o?[this.focus,this.anchor]:[this.anchor,this.focus],[u,c]=o?[l,i]:[i,l];if(0===t)return[];if(1===t){if(rv(r)&&!this.isCollapsed()){let e=r.splitText(u,c),t=0===u?e[0]:e[1];return t?(a.set(t.getKey(),0,"text"),s.set(t.getKey(),t.getTextContentSize(),"text"),[t]):[]}return[r]}if(rv(r)&&(u===r.getTextContentSize()?e.shift():0!==u&&([,r]=r.splitText(u),e[0]=r,a.set(r.getKey(),0,"text"))),rv(n)){let t=n.getTextContent().length;0===c?e.pop():c!==t&&([n]=n.splitText(c),e[e.length-1]=n,s.set(n.getKey(),n.getTextContentSize(),"text"))}return e}modify(e,t,r){var n;if(r2(this,e,t,r))return;let i="move"===e,l=nn(),o=iJ(iF(l));if(!o)return;let a=l._blockCursorElement,s=l._rootElement,u=this.focus.getNode();if(null===s||null===a||!nb(u)||u.isInline()||u.canBeEmpty()||iW(a,l,s),this.dirty){let e=i$(l,this.anchor.key),t=i$(l,this.focus.key);"text"===this.anchor.type&&(e=n2(e)),"text"===this.focus.type&&(t=n2(t)),e&&t&&rX(o,e,this.anchor.offset,t,this.focus.offset)}if(n=t?"backward":"forward",o.modify(e,n,r),o.rangeCount>0){let e=o.getRangeAt(0),r=this.anchor.getNode(),n=nC(r)?r:function(e){let t=e.getParentOrThrow();for(;null!==t&&!iL(t);)t=t.getParentOrThrow();return t}(r);if(this.applyDOMRange(e),this.dirty=!0,!i){let r=this.getNodes(),i=[],l=!1;for(let e=0;e<r.length;e++){let t=r[e];iD(t,n)?i.push(t):l=!0}if(l&&i.length>0)if(t){let e=i[0];nb(e)?e.selectStart():e.getParentOrThrow().selectStart()}else{let e=i[i.length-1];nb(e)?e.selectEnd():e.getParentOrThrow().selectEnd()}
24o.anchorNode===e.startContainer&&o.anchorOffset===e.startOffset||function(e){let t=e.focus,r=e.anchor,n=r.key,i=r.offset,l=r.type;r.set(t.key,t.offset,t.type,!0),t.set(n,i,l,!0)}(this)}}"lineboundary"===r&&r2(this,e,t,r,"decorators")}forwardDeletion(e,t,r){if(!r&&("element"===e.type&&nb(t)&&e.offset===t.getChildrenSize()||"text"===e.type&&e.offset===t.getTextContentSize())){let e=t.getParent(),r=t.getNextSibling()||(null===e?null:e.getNextSibling());if(nb(r)&&r.isShadowRoot())return!0}return!1}deleteCharacter(e){let t=this.isCollapsed();if(this.isCollapsed()){let t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;let n=lS(l$(t,e?"previous":"next"));if(n.getTextSlices().every(e=>null===e||0===e.distance)){let e={type:"initial"};for(let t of n.iterNodeCarets("shadowRoot"))if(ld(t))if(t.origin.isInline());else{if(t.origin.isShadowRoot()){if("merge-block"===e.type)break;if(nb(n.anchor.origin)&&n.anchor.origin.isEmpty()){let e=lL(t);lj(this,lk(e,e)),n.anchor.origin.remove()}return}"merge-next-block"!==e.type&&"merge-block"!==e.type||(e={block:e.block,caret:t,type:"merge-block"})}else{if("merge-block"===e.type)break;if(lc(t)){if(nb(t.origin)){if(t.origin.isInline()){if(!t.origin.isParentOf(n.anchor.origin))break}else e={block:t.origin,type:"merge-next-block"};continue}if(nx(t.origin)){if(t.origin.isIsolated());else if("merge-next-block"===e.type&&(t.origin.isKeyboardSelectable()||!t.origin.isInline())&&nb(n.anchor.origin)&&n.anchor.origin.isEmpty()){n.anchor.origin.remove();let e=rU();e.add(t.origin.getKey()),iu(e)}else t.origin.remove();return}break}}if("merge-block"===e.type){let{caret:t,block:r}=e;return lj(this,lk(!t.origin.isEmpty()&&r.isEmpty()?lI(lp(r,t.direction)):n.anchor,t)),this.removeText()}}let i=this.focus;if(this.modify("extend",e,"character"),this.isCollapsed()){if(e&&0===t.offset&&rM(this,t.getNode()))return}else{let n="text"===i.type?i.getNode():null;if(r="text"===t.type?t.getNode():null,null!==n&&n.isSegmented()){let t=i.offset,l=n.getTextContentSize();if(n.is(r)||e&&t!==l||!e&&0!==t)return void rD(n,e,t)}else if(null!==r&&r.isSegmented()){let i=t.offset,l=r.getTextContentSize();if(r.is(n)||e&&0!==i||!e&&i!==l)return void rD(r,e,i)}!function(e,t){let r=e.anchor,n=e.focus,i=r.getNode();if(i===n.getNode()&&"text"===r.type&&"text"===n.type){var l;let e=r.offset,o=n.offset,a=e<o,s=a?e:o,u=a?o:e,c=u-1;s===c||id(l=i.getTextContent().slice(s,u))||rj(l)||(t?n.set(n.key,c,n.type):r.set(r.key,c,r.type))}}(this,e)}}if(this.removeText(),e&&!t&&this.isCollapsed()&&"element"===this.anchor.type&&0===this.anchor.offset){let e=this.anchor.getNode();e.isEmpty()&&nC(e.getParent())&&null===e.getPreviousSibling()&&rM(this,e)}}deleteLine(e){this.isCollapsed()&&this.modify("extend",e,"lineboundary"),this.isCollapsed()?this.deleteCharacter(e):this.removeText()}deleteWord(e){if(this.isCollapsed()){let t=this.anchor,r=t.getNode();if(this.forwardDeletion(t,r,e))return;this.modify("extend",e,"word")}this.removeText()}isBackward(){return this.focus.isBefore(this.anchor)}getStartEndPoints(){return[this.anchor,this.focus]}}function rO(e){return e instanceof rN}function r$(e){let t=e.offset;if("text"===e.type)return t;let r=e.getNode();return t===r.getChildrenSize()?r.getTextContent().length:0}function rA(e){let t=e.getStartEndPoints();if(null===t)return[0,0];let[r,n]=t;return"element"===r.type&&"element"===n.type&&r.key===n.key&&r.offset===n.offset?[0,0]:[r$(r),r$(n)]}function rM(e,t){for(let r=t;r;r=r.getParent()){if(nb(r)){if(r.collapseAtStart(e))return!0;if(iL(r))break}if(r.getPreviousSibling())break}return!1}let rj=(()=>{try{let e=RegExp("\\p{Emoji}","u"),t=e.test.bind(e);if(t("â¤ï¸")&&t("#ï¸â£")&&t("\uD83D\uDC4D"))return t}catch(e){}return()=>!1})();function rD(e,t,r){let n=e.getTextContent().split(/(?=\s)/g),i=n.length,l=0,o=0;for(let e=0;e<i;e++){let a=e===i-1;if(o=l,l+=n[e].length,t&&l===r||l>r||a){n.splice(e,1),a&&(o=void 0);break}}let a=n.join("").trim();""===a?e.remove():(e.setTextContent(a),e.select(o,o))}function rI(e,t,r,i){let l,o=t;if(iH(e)){let a=!1,s=e.childNodes,u=s.length,c=i._blockCursorElement;o===u&&(a=!0,o=u-1);let d=s[o],f=!1;if(d===c)d=s[o+1],f=!0;else if(null!==c){let r=c.parentNode;e===r&&t>Array.prototype.indexOf.call(r.children,c)&&o--}
24if(rv(l=ic(d)))o=ly(l,a?"next":"previous");else{let s=ic(e);if(null===s)return null;if(nb(s)){let u=i.getElementByKey(s.getKey());null===u&&n(214);let c=s.getDOMSlot(u);[s,o]=c.resolveChildIndex(s,u,e,t),nb(s)||n(215),a&&o>=s.getChildrenSize()&&(o=Math.max(0,s.getChildrenSize()-1));let d=s.getChildAtIndex(o);if(nb(d)&&function(e,t,r){let n=e.getParent();return null===r||null===n||!n.canBeEmpty()||n!==r.getNode()}(d,0,r)){let e=a?d.getLastDescendant():d.getFirstDescendant();s=null===e||nb(d=e)?d:d.getParentOrThrow(),o=0}rv(d)?(l=d,s=null,o=ly(d,a?"next":"previous")):d!==s&&a&&!f&&(nb(s)||n(216),o=Math.min(s.getChildrenSize(),o+1))}else{let r=s.getIndexWithinParent();o=0===t&&nx(s)&&ic(e)===s?r:r+1,s=s.getParentOrThrow()}if(nb(s))return rC(s.__key,o,"element")}}else l=ic(e);return rv(l)?rC(l.__key,ly(l,o,"clamp"),"text"):null}function rF(e,t,r){let n=e.offset,i=e.getNode();if(0===n){let n=i.getPreviousSibling(),l=i.getParent();if(t){if((r||!t)&&null===n&&nb(l)&&l.isInline()){let t=l.getPreviousSibling();rv(t)&&e.set(t.__key,t.getTextContent().length,"text")}}else nb(n)&&!r&&n.isInline()?e.set(n.__key,n.getChildrenSize(),"element"):rv(n)&&e.set(n.__key,n.getTextContent().length,"text")}else if(n===i.getTextContent().length){let n=i.getNextSibling(),l=i.getParent();if(t&&nb(n)&&n.isInline())e.set(n.__key,0,"element");else if((r||t)&&null===n&&nb(l)&&l.isInline()&&!l.canInsertTextAfter()){let t=l.getNextSibling();rv(t)&&e.set(t.__key,0,"text")}}}function rR(e,t,r){if("text"===e.type&&"text"===t.type){let r=e.isBefore(t),n=e.is(t);rF(e,r,n),rF(t,!r,n),n&&t.set(e.key,e.offset,e.type)}}function rL(e,t,r,n,i,l){if(null===e||null===r||!nH(i,e,r))return null;let o=rI(e,t,rE(l)?l.anchor:null,i);if(null===o)return null;let a=rI(r,n,rE(l)?l.focus:null,i);if(null===a)return null;if("element"===o.type&&"element"===a.type){let t=ic(e),n=ic(r);if(nx(t)&&nx(n))return null}return rR(o,a),[o,a]}function rB(e){return nb(e)&&!e.isInline()}function rz(e,t,r,n,i,l){let o=nr(),a=new rP(rC(e,t,i),rC(r,n,l),0,"");return a.dirty=!0,o._selection=a,a}function rK(){return new rP(rC("root",0,"element"),rC("root",0,"element"),0,"")}function rU(){return new rN(new Set)}function rW(e,t){return rJ(null,e,t,null)}function rJ(e,t,r,n){let i,l,o,a,s=r._window;if(null===s)return null;let u=n||s.event,c=u?u.type:void 0,d="selectionchange"===c,f=!E&&(d||"beforeinput"===c||"compositionstart"===c||"compositionend"===c||"click"===c&&u&&3===u.detail||"drop"===c||void 0===c);if(rE(e)&&!f)return e.clone();if(null===t)return null;if(i=t.anchorNode,l=t.focusNode,o=t.anchorOffset,a=t.focusOffset,(d||void 0===c)&&rE(e)&&!nH(r,i,l))return e.clone();let h=rL(i,o,l,a,r,e);if(null===h)return null;let[p,m]=h,y=0,v="";if(rE(e)){let t=e.anchor;if(p.key===t.key)y=e.format,v=e.style;else{let e=p.getNode();rv(e)?(y=e.getFormat(),v=e.getStyle()):nb(e)&&(y=e.getTextFormat(),v=e.getTextStyle())}}return new rP(p,m,y,v)}function rq(){return nr()._selection}function rV(){return nn()._editorState._selection}function rH(e,t,r,n=1){let i=e.anchor,l=e.focus,o=i.getNode(),a=l.getNode();if(!t.is(o)&&!t.is(a))return;let s=t.__key;if(e.isCollapsed()){let t=i.offset;if(r<=t&&n>0||r<t&&n<0){let r=Math.max(0,t+n);i.set(s,r,"element"),l.set(s,r,"element"),rG(e)}}else{let o=e.isBackward(),a=o?l:i,u=a.getNode(),c=o?i:l,d=c.getNode();if(t.is(u)){let e=a.offset;(r<=e&&n>0||r<e&&n<0)&&a.set(s,Math.max(0,e+n),"element")}if(t.is(d)){let e=c.offset;(r<=e&&n>0||r<e&&n<0)&&c.set(s,Math.max(0,e+n),"element")}}rG(e)}function rG(e){let t=e.anchor,r=t.offset,n=e.focus,i=n.offset,l=t.getNode(),o=n.getNode();if(e.isCollapsed()){if(!nb(l))return;let e=l.getChildrenSize(),i=r>=e,o=i?l.getChildAtIndex(e-1):l.getChildAtIndex(r);if(rv(o)){let e=0;i&&(e=o.getTextContentSize()),t.set(o.__key,e,"text"),n.set(o.__key,e,"text")}return}if(nb(l)){let e=l.getChildrenSize(),n=r>=e,i=n?l.getChildAtIndex(e-1):l.getChildAtIndex(r);if(rv(i)){let e=0;n&&(e=i.getTextContentSize()),t.set(i.__key,e,"text")}}if(nb(o)){let e=o.getChildrenSize(),t=i>=e,r=t?o.getChildAtIndex(e-1):o.getChildAtIndex(i);if(rv(r)){let e=0;t&&(e=r.getTextContentSize()),n.set(r.__key,e,"text")}}}function rY(e,t,r,n,i){let l=null,o=0,a=null;null!==n?(l=n.__key,rv(n)?(o=n.getTextContentSize(),a="text"):nb(n)&&(o=n.getChildrenSize(),a="element")):null!==i&&(l=i.__key,rv(i)?a="text":nb(i)&&(a="element")),null!==l&&null!==a?e.set(l,o,a):(-1===(o=t.getIndexWithinParent())&&(o=r.getChildrenSize()),e.set(r.__key,o,"element"))}function rZ(e,t,r,n,i){"text"===e.type?e.set(r,e.offset+(t?0:i),"text"):e.offset>n.getIndexWithinParent()&&e.set(e.key,e.offset-1,"element")}function rX(e,t,r,n,i){try{e.setBaseAndExtent(t,r,n,i)}catch(e){}}function rQ(e,t,r){let n=i$(e,t.getKey());if(nb(t)){let e=t.getDOMSlot(n);return[e.element,r+e.getFirstChildOffset()]}return[n,r]}function r0(e){let t=rq()||rV();
24null===t&&(t=ia().selectEnd()),t.insertNodes(e)}function r1(e){let t=e;e.isCollapsed()||t.removeText();let r=rq();rE(r)&&(t=r),rE(t)||n(161);let i=t.anchor,l=i.getNode(),o=i.offset;for(;!iQ(l);){let e=l;if([l,o]=function(e,t){let r=e.getParent();if(!r){let e=nA();return ia().append(e),e.select(),[ia(),0]}if(rv(e)){let n=e.splitText(t);if(0===n.length)return[r,e.getIndexWithinParent()];let i=+(0!==t);return[r,n[0].getIndexWithinParent()+i]}if(!nb(e)||0===t)return[r,e.getIndexWithinParent()];let n=e.getChildAtIndex(t);if(n){let r=new rP(rC(e.__key,t,"element"),rC(e.__key,t,"element"),0,""),i=e.insertNewAfter(r);i&&i.append(n,...n.getNextSiblings())}return[r,e.getIndexWithinParent()+1]}(l,o),e.is(l))break}return o}function r2(e,t,r,n,i="decorators-and-blocks"){if("move"===t&&"character"===n&&!e.isCollapsed()){let[t,n]=r===e.isBackward()?[e.focus,e.anchor]:[e.anchor,e.focus];return n.set(t.key,t.offset,t.type),!0}let l=l$(e.focus,r?"previous":"next"),o="lineboundary"===n,a="move"===t,s=l,u="decorators-and-blocks"===i;if(!lB(s)){for(let e of s){u=!1;let{origin:t}=e;if(!nx(t)||t.isIsolated()||(s=e,!o||!t.isInline()))break}if(u)for(let e of lS(l).iterNodeCarets("extend"===t?"shadowRoot":"root")){if(ld(e))e.origin.isInline()||(s=e);else{if(nb(e.origin))continue;nx(e.origin)&&!e.origin.isInline()&&(s=e)}break}}if(s===l)return!1;if(a&&!o&&nx(s.origin)&&s.origin.isKeyboardSelectable()){let e=rU();return e.add(s.origin.getKey()),iu(e),!0}return s=lL(s),a&&lA(e.anchor,s),lA(e.focus,s),u||!o}let r3=null,r5=null,r4=!1,r7=!1,r9=0,r6={characterData:!0,childList:!0,subtree:!0};function r8(){return r4||null!==r3&&r3._readOnly}function ne(){r4&&n(13)}function nt(){r9>99&&n(14)}function nr(){return null===r3&&n(195,ni()),r3}function nn(){return null===r5&&n(196,ni()),r5}function ni(){let e=0,t=new Set,r=nz.version;if("undefined"!=typeof window)for(let n of document.querySelectorAll("[contenteditable]")){let i=nZ(n);if(nG(i))e++;else if(i){let e=String(i.constructor.version||"<0.17.1");e===r&&(e+=" (separately built, likely a bundler configuration issue)"),t.add(e)}}let n=` Detected on the page: ${e} compatible editor(s) with version ${r}`;return t.size&&(n+=` and incompatible editors with versions ${Array.from(t).join(", ")}`),n}function nl(e,t,r){let n=t.__type,i=nW(e,n),l=r.get(n);void 0===l&&(l=Array.from(i.transforms),r.set(n,l));let o=l.length;for(let e=0;e<o&&(l[e](t),t.isAttached());e++);}function no(e,t){return void 0!==e&&e.__key!==t&&e.isAttached()}function na(e,t){if(!t)return;let r=e._updateTags,n=t;for(let e of(Array.isArray(t)||(n=[t]),n))r.add(e)}function ns(e){return nu(e,nn()._nodes)}function nu(e,t){let r=e.type,i=t.get(r);void 0===i&&n(17,r);let l=i.klass;e.type!==l.getType()&&n(18,l.name);let o=l.importJSON(e),a=e.children;if(nb(o)&&Array.isArray(a))for(let e=0;e<a.length;e++){let r=nu(a[e],t);o.append(r)}return o}function nc(e,t,r){let n=r3,i=r4,l=r5;r3=t,r4=!0,r5=e;try{return r()}finally{r3=n,r4=i,r5=l}}function nd(e,t){let r=e._pendingEditorState,i=e._rootElement,l=e._headless||null===i;if(null===r)return;let o=e._editorState,a=o._selection,u=r._selection,c=0!==e._dirtyType,d=r3,f=r4,h=r5,p=e._updating,m=e._observer,y=null;if(e._pendingEditorState=null,e._editorState=r,!l&&c&&null!==m){r5=e,r3=r,r4=!1,e._updating=!0;try{let t=e._dirtyType,i=e._dirtyElements,l=e._dirtyLeaves;m.disconnect(),y=function(e,t,r,i,l,o){es="",ed=2===i,Q=r,X=r._config,ee=r._nodes,et=Q._listeners.mutation,er=l,en=o,ei=e._nodeMap,el=t._nodeMap,ef=t._readOnly,eo=new Map(r._keyToDOMMap);let a=new Map;return ea=a,function e(t,r){let i=ei.get(t),l=el.get(t);void 0!==i&&void 0!==l||n(61);let o=ed||en.has(t)||er.has(t),a=i$(Q,t);if(i===l&&!o){let e;if(nb(i)){let t=a.__lexicalTextContent;"string"==typeof t?e=t:a.__lexicalTextContent=e=i.getTextContent()}else e=i.getTextContent();return es+=e,a}if(i!==l&&o&&iT(ea,ee,et,l,"updated"),l.updateDOM(i,a,X)){let e=eb(t,null);return null===r&&n(62),r.replaceChild(e,a),eh(t,null),e}if(nb(i)){nb(l)||n(334,t);let r=l.__indent;(ed||r!==i.__indent)&&em(a,r);let s=l.__format;if((ed||s!==i.__format)&&ey(a,s),o)(function(t,r,i){eu=null,ec=null,function(t,r,i){let l=es,o=t.__size,a=r.__size;es="";let s=i.element;
24if(1===o&&1===a){let n=t.__first,i=r.__first;if(n===i)e(n,s);else{let e=eN(n),t=eb(i,null);try{s.replaceChild(t,e)}catch(r){if("object"==typeof r&&null!=r)throw Error(`${r.toString()} Parent: ${s.tagName}, new child: {tag: ${t.tagName} key: ${i}}, old child: {tag: ${e.tagName}, key: ${n}}.`);throw r}eh(n,null)}let l=el.get(i);rv(l)&&null===eu&&(eu=l.getFormat(),ec=l.getStyle())}else{let l=eS(t,ei),u=eS(r,el);if(l.length!==o&&n(227),u.length!==a&&n(228),0===o)0!==a&&e_(u,0,0,a-1,i);else if(0===a){if(0!==o){let e=null==i.after&&null==i.before&&null==i.element.__lexicalLineBreak;eg(l,0,o-1,e?null:s),e&&(s.textContent="")}}else!function(t,r,n,i,l,o){let a=i-1,s=l-1,u,c,d=o.getFirstChild(),f=0,h=0;for(;f<=a&&h<=s;){let t=r[f],i=n[h];if(t===i)d=ek(e(i,o.element)),f++,h++;else{if(void 0===c&&(c=eT(n,h)),void 0===u)u=eT(r,f);else if(!u.has(t)){f++;continue}if(!c.has(t)){d=ek(eN(t)),eh(t,o.element),f++,u.delete(t);continue}if(u.has(i)){let t=i$(Q,i);t!==d&&o.withBefore(d).insertChild(t),d=ek(e(i,o.element)),f++,h++}else eb(i,o.withBefore(d)),h++}let l=el.get(i);null!==l&&rv(l)?null===eu&&(eu=l.getFormat(),ec=l.getStyle()):nb(l)&&h<=s&&!l.isInline()&&(es+="\n\n")}let p=f>a,m=h>s;if(p&&!m){let e=n[s+1],t=void 0===e?null:Q.getElementByKey(e);e_(n,0,h,s,o.withBefore(t))}else m&&!p&&eg(r,f,a,o.element)}(0,l,u,o,a,i)}s.__lexicalTextContent=es,es=l+es}(t,r,r.getDOMSlot(i)),null==eu||eu===r.__textFormat||ef||r.setTextFormat(eu),null==ec||ec===r.__textStyle||ef||r.setTextStyle(ec)})(i,l,a),nC(l)||l.isInline()||ex(i,l,a);else{let e,t=a.__lexicalTextContent;"string"==typeof t?e=t:a.__lexicalTextContent=e=i.getTextContent(),es+=e}if((ed||l.__dir!==i.__dir)&&(ev(a,l),nC(l)&&!ed))for(let e of l.getChildren())nb(e)&&ev(i$(Q,e.getKey()),e)}else{let e=l.getTextContent();if(nx(l)){let e=l.decorate(Q,X);null!==e&&eC(t,e)}es+=e}if(!ef&&nC(l)&&l.__cachedText!==es){let e=l.getWritable();e.__cachedText=es,l=e}return a}("root",null),Q=void 0,ee=void 0,er=void 0,en=void 0,ei=void 0,el=void 0,X=void 0,eo=void 0,ea=void 0,a}(o,r,e,t,i,l)}catch(t){if(t instanceof Error&&e._onError(t),r7)throw t;return nL(e,null,i,r),j(e),e._dirtyType=2,r7=!0,nd(e,o),void(r7=!1)}finally{m.observe(i,r6),e._updating=p,r3=d,r4=f,r5=h}}r._readOnly||(r._readOnly=!0);let v=e._dirtyLeaves,b=e._dirtyElements,_=e._normalizedNodes,w=e._updateTags,x=e._deferred;c&&(e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements=new Map,e._normalizedNodes=new Set,e._updateTags=new Set),function(e,t){let r,n=e._decorators,i=e._pendingDecorators||n,l=t._nodeMap;for(r in i)l.has(r)||(i===n&&(i=il(e)),delete i[r])}(e,r);let S=l?null:iJ(iF(e));if(e._editable&&null!==S&&(c||null===u||u.dirty||!u.is(a))&&null!==i&&!w.has(t5)){r5=e,r3=r;try{if(null!==m&&m.disconnect(),c||null===u||u.dirty){let t=e._blockCursorElement;null!==t&&iW(t,e,i),function(e,t,r,n,i,l,o){var a;
24let u=n.anchorNode,c=n.focusNode,d=n.anchorOffset,f=n.focusOffset,h=document.activeElement;if(i.has("collaboration")&&h!==l||null!==h&&nV(h))return;if(!rE(t))return null!==e&&nH(r,u,c)&&n.removeAllRanges();let p=t.anchor,m=t.focus,y=p.getNode(),v=m.getNode(),[b,_]=rQ(r,y,p.offset),[w,x]=rQ(r,v,m.offset),S=t.format,C=t.style,k=t.isCollapsed(),T=b,N=w,E=!1;if("text"===p.type?(T=n2(b),E=y.getFormat()!==S||y.getStyle()!==C):rE(e)&&"text"===e.anchor.type&&(E=!0),"text"===m.type&&(N=n2(w)),null!==T&&null!==N&&(k&&(null===e||E||rE(e)&&(e.format!==S||e.style!==C))&&(a=p.key,tP=[S,C,_,a,performance.now()]),d!==_||f!==x||u!==T||c!==N||"Range"===n.type&&k||(null!==h&&l.contains(h)||i.has(t4)||l.focus({preventScroll:!0}),"element"===p.type))){if(rX(n,T,_,N,x),!s||!t.isCollapsed()||null===l||i.has(t4)||null!==document.activeElement&&l.contains(document.activeElement)||l.focus({preventScroll:!0}),!i.has(t3)&&t.isCollapsed()&&null!==l&&l===document.activeElement){let e=rE(t)&&"element"===t.anchor.type?T.childNodes[_]||null:n.rangeCount>0?n.getRangeAt(0):null;if(null!==e){let t;if(e instanceof Text){let r=document.createRange();r.selectNode(e),t=r.getBoundingClientRect()}else t=e.getBoundingClientRect();!function(e,t,r){let n=iM(r),i=iI(n);if(null===n||null===i)return;let{top:l,bottom:o}=t,a=0,s=0,u=r;for(;null!==u;){let t=u===n.body;if(t)a=0,s=iF(e).innerHeight;else{let e=u.getBoundingClientRect();a=e.top,s=e.bottom}let r=0;if(l<a?r=-(a-l):o>s&&(r=o-s),0!==r)if(t)i.scrollBy(0,r);else{let e=u.scrollTop;u.scrollTop+=r;let t=u.scrollTop-e;l-=t,o-=t}if(t)break;u=iA(u)}}(r,t,l)}}tx=!0}}(a,u,e,S,w,i)}!function(e,t,r){let n=e._blockCursorElement;if(rE(r)&&r.isCollapsed()&&"element"===r.anchor.type&&t.contains(document.activeElement)){let i=r.anchor,l=i.getNode(),o=i.offset,a=!1,s=null;if(o===l.getChildrenSize())iU(l.getChildAtIndex(o-1))&&(a=!0);else{let t=l.getChildAtIndex(o);if(null!==t&&iU(t)){let r=t.getPreviousSibling();(null===r||iU(r))&&(a=!0,s=e.getElementByKey(t.__key))}}if(a){let r=e.getElementByKey(l.__key);return null===n&&(e._blockCursorElement=n=function(e){let t=e.theme,r=document.createElement("div");r.contentEditable="false",r.setAttribute("data-lexical-cursor","true");let n=t.blockCursor;return void 0!==n&&("string"==typeof n&&(n=t.blockCursor=lZ(n)),void 0!==n&&r.classList.add(...n)),r}(e._config)),t.style.caretColor="transparent",null===s?r.appendChild(n):r.insertBefore(n,s)}}null!==n&&iW(n,e,t)}(e,i,u)}finally{null!==m&&m.observe(i,r6),r5=h,r3=d}}null!==y&&function(e,t,r,n,i){let l=Array.from(e._listeners.mutation),o=l.length;for(let e=0;e<o;e++){let[o,a]=l[e];for(let e of a){let l=t.get(e);void 0!==l&&o(l,{dirtyLeaves:n,prevEditorState:i,updateTags:r})}}}(e,y,w,v,o),rE(u)||null===u||null!==a&&a.is(u)||e.dispatchCommand(eP,void 0);let C=e._pendingDecorators;null!==C&&(e._decorators=C,e._pendingDecorators=null,nf("decorator",e,!0,C)),function(e,t,r){let n=io(t),i=io(r);n!==i&&nf("textcontent",e,!0,i)}(e,t||o,r),nf("update",e,!0,{dirtyElements:b,dirtyLeaves:v,editorState:r,mutatedNodes:y,normalizedNodes:_,prevEditorState:t||o,tags:w}),function(e,t){if(e._deferred=[],0!==t.length){let r=e._updating;e._updating=!0;try{for(let e=0;e<t.length;e++)t[e]()}finally{e._updating=r}}}(e,x),function(e){let t=e._updates;if(0!==t.length){let r=t.shift();if(r){let[t,n]=r;ng(e,t,n)}}}(e)}function nf(e,t,r,...n){let i=t._updating;t._updating=r;try{let r=Array.from(t._listeners[e]);for(let e=0;e<r.length;e++)r[e].apply(null,n)}finally{t._updating=i}}function nh(e,t){let r=e._updates,i=t||!1;for(;0!==r.length;){let t=r.shift();if(t){let r,[l,o]=t,a=e._pendingEditorState;void 0!==o&&(r=o.onUpdate,o.skipTransforms&&(i=!0),o.discrete&&(null===a&&n(191),a._flushSync=!0),r&&e._deferred.push(r),na(e,o.tag)),null==a?ng(e,l,o):l()}}return i}function ng(e,t,r){let i=e._updateTags,l,o=!1,a=!1;void 0!==r&&(l=r.onUpdate,na(e,r.tag),o=r.skipTransforms||!1,a=r.discrete||!1),l&&e._deferred.push(l);let s=e._editorState,u=e._pendingEditorState,c=!1;(null===u||u._readOnly)&&(u=e._pendingEditorState=nk(u||s),c=!0),u._flushSync=a;let d=r3,f=r4,h=r5,p=e._updating;r3=u,r4=!1,e._updating=!0,r5=e;let m=e._headless||null===e.getRootElement();nK=null;try{c&&(m?null!==s._selection&&(u._selection=s._selection.clone()):u._selection=function(e,t){let r=e.getEditorState()._selection,n=iJ(iF(e));return rE(r)||null==r?rJ(r,n,e,t):r.clone()}(e,r&&r.event||null));let i=e._compositionKey;t(),o=nh(e,o),function(e,t){let r=t.getEditorState()._selection,n=e._selection;if(rE(n)){let e,t=n.anchor,i=n.focus;if("text"===t.type&&(e=t.getNode()).selectionTransform(r,n),"text"===i.type){let t=i.getNode();e!==t&&t.selectionTransform(r,n)}}}(u,e),0!==e._dirtyType&&(o?function(e,t){let r=t._dirtyLeaves,n=e._nodeMap;for(let e of r){let t=n.get(e);rv(t)&&t.isAttached()&&t.isSimpleText()&&!t.isUnmergeable()&&G(t)}}(u,e):function(e,t){let r=t._dirtyLeaves,n=t._dirtyElements,i=e._nodeMap,l=n8(),o=new Map,a=r,s=a.size,u=n,c=u.size;
24for(;s>0||c>0;){if(s>0){for(let e of(t._dirtyLeaves=new Set,a)){let n=i.get(e);rv(n)&&n.isAttached()&&n.isSimpleText()&&!n.isUnmergeable()&&G(n),void 0!==n&&no(n,l)&&nl(t,n,o),r.add(e)}if((s=(a=t._dirtyLeaves).size)>0){r9++;continue}}for(let e of(t._dirtyLeaves=new Set,t._dirtyElements=new Map,u.delete("root")&&u.set("root",!0),u)){let r=e[0],a=e[1];if(n.set(r,a),!a)continue;let s=i.get(r);void 0!==s&&no(s,l)&&nl(t,s,o)}s=(a=t._dirtyLeaves).size,c=(u=t._dirtyElements).size,r9++}t._dirtyLeaves=r,t._dirtyElements=n}(u,e),nh(e),function(e,t,r,n){let i=e._nodeMap,l=t._nodeMap,o=[];for(let[e]of n){let t=l.get(e);void 0!==t&&(t.isAttached()||(nb(t)&&function e(t,r,n,i,l,o){let a=t.getFirstChild();for(;null!==a;){let t=a.__key;a.__parent===r&&(nb(a)&&e(a,t,n,i,l,o),n.has(t)||o.delete(t),l.push(t)),a=a.getNextSibling()}}(t,e,i,l,o,n),i.has(e)||n.delete(e),o.push(e)))}for(let e of o)l.delete(e);for(let e of r){let t=l.get(e);void 0===t||t.isAttached()||(i.has(e)||r.delete(e),l.delete(e))}}(s,u,e._dirtyLeaves,e._dirtyElements)),i!==e._compositionKey&&(u._flushSync=!0);let l=u._selection;if(rE(l)){let e=u._nodeMap,t=l.anchor.key,r=l.focus.key;void 0!==e.get(t)&&void 0!==e.get(r)||n(19)}else rO(l)&&0===l._nodes.size&&(u._selection=null)}catch(t){return t instanceof Error&&e._onError(t),e._pendingEditorState=s,e._dirtyType=2,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),void nd(e)}finally{r3=d,r4=f,r5=h,e._updating=p,r9=0}0!==e._dirtyType||e._deferred.length>0||function(e,t){let r=t.getEditorState()._selection,n=e._selection;if(null!==n){if(n.dirty||!n.is(r))return!0}else if(null!==r)return!0;return!1}(u,e)?u._flushSync?(u._flushSync=!1,nd(e)):c&&nq(()=>{nd(e)}):(u._flushSync=!1,c&&(i.clear(),e._deferred=[],e._pendingEditorState=null))}function np(e,t,r){r5===e&&void 0===r?t():ng(e,t,r)}class nm{element;before;after;constructor(e,t,r){this.element=e,this.before=t||null,this.after=r||null}withBefore(e){return new nm(this.element,e,this.after)}withAfter(e){return new nm(this.element,this.before,e)}withElement(e){return this.element===e?this:new nm(e,this.before,this.after)}insertChild(e){let t=this.before||this.getManagedLineBreak();return null!==t&&t.parentElement!==this.element&&n(222),this.element.insertBefore(e,t),this}removeChild(e){return e.parentElement!==this.element&&n(223),this.element.removeChild(e),this}replaceChild(e,t){return t.parentElement!==this.element&&n(224),this.element.replaceChild(e,t),this}getFirstChild(){let e=this.after?this.after.nextSibling:this.element.firstChild;return e===this.before||e===this.getManagedLineBreak()?null:e}getManagedLineBreak(){return this.element.__lexicalLineBreak||null}setManagedLineBreak(e){null===e?this.removeManagedLineBreak():this.insertManagedLineBreak("decorator"===e&&(m||d||c))}removeManagedLineBreak(){let e=this.getManagedLineBreak();if(e){let t=this.element,r="IMG"===e.nodeName?e.nextSibling:null;r&&t.removeChild(r),t.removeChild(e),t.__lexicalLineBreak=void 0}}insertManagedLineBreak(e){let t=this.getManagedLineBreak();if(t){if(e===("IMG"===t.nodeName))return;this.removeManagedLineBreak()}let r=this.element,n=this.before,i=document.createElement("br");if(r.insertBefore(i,n),e){let e=document.createElement("img");e.setAttribute("data-lexical-linebreak","true"),e.style.cssText="display: inline !important; border: 0px !important; margin: 0px !important;",e.alt="",r.insertBefore(e,i),r.__lexicalLineBreak=e}else r.__lexicalLineBreak=i}getFirstChildOffset(){let e=0;for(let t=this.after;null!==t;t=t.previousSibling)e++;return e}resolveChildIndex(e,t,r,n){if(r===this.element){let t=this.getFirstChildOffset();return[e,Math.min(t+e.getChildrenSize(),Math.max(t,n))]}let i=ny(t,r);i.push(n);let l=ny(t,this.element),o=e.getIndexWithinParent();for(let e=0;e<l.length;e++){let t=i[e],r=l[e];if(void 0===t||t<r)break;if(t>r){o+=1;break}}return[e.getParentOrThrow(),o]}}function ny(e,t){let r=[],i=t;for(;i!==e&&null!==i;i=i.parentNode){let e=0;for(let t=i.previousSibling;null!==t;t=t.previousSibling)e++;r.push(e)}return i!==e&&n(225),r.reverse()}class nv extends tX{__first;__last;__size;__format;__style;__indent;__dir;__textFormat;__textStyle;constructor(e){super(e),this.__first=null,this.__last=null,this.__size=0,this.__format=0,this.__style="",this.__indent=0,this.__dir=null,this.__textFormat=0,this.__textStyle=""}afterCloneFrom(e){super.afterCloneFrom(e),this.__key===e.__key&&(this.__first=e.__first,this.__last=e.__last,this.__size=e.__size),this.__indent=e.__indent,this.__format=e.__format,this.__style=e.__style,this.__dir=e.__dir,this.__textFormat=e.__textFormat,this.__textStyle=e.__textStyle}getFormat(){return this.getLatest().__format}getFormatType(){return C[this.getFormat()]||""}getStyle(){return this.getLatest().__style}getIndent(){return this.getLatest().__indent}getChildren(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t),t=t.getNextSibling();return e}getChildrenKeys(){let e=[],t=this.getFirstChild();for(;null!==t;)e.push(t.__key),t=t.getNextSibling();return e}getChildrenSize(){return this.getLatest().__size}isEmpty(){return 0===this.getChildrenSize()}isDirty(){let e=nn()._dirtyElements;return null!==e&&e.has(this.__key)}isLastChild(){let e=this.getLatest(),t=this.getParentOrThrow().getLastChild();return null!==t&&t.is(e)}getAllTextNodes(){let e=[],t=this.getFirstChild();for(;null!==t;){if(rv(t)&&e.push(t),nb(t)){let r=t.getAllTextNodes();e.push(...r)}t=t.getNextSibling()}return e}getFirstDescendant(){let e=this.getFirstChild();for(;nb(e);){let t=e.getFirstChild();if(null===t)break;e=t}return e}getLastDescendant(){let e=this.getLastChild();for(;nb(e);){let t=e.getLastChild();if(null===t)break;e=t}return e}getDescendantByIndex(e){let t=this.getChildren(),r=t.length;if(e>=r){let e=t[r-1];return nb(e)&&e.getLastDescendant()||e||null}let n=t[e];return nb(n)&&n.getFirstDescendant()||n||null}getFirstChild(){let e=this.getLatest().__first;return null===e?null:ie(e)}getFirstChildOrThrow(){let e=this.getFirstChild();return null===e&&n(45,this.__key),e}getLastChild(){let e=this.getLatest().__last;return null===e?null:ie(e)}getLastChildOrThrow(){let e=this.getLastChild();return null===e&&n(96,this.__key),e}getChildAtIndex(e){let t,r,n=this.getChildrenSize();if(e<n/2){for(t=this.getFirstChild(),r=0;null!==t&&r<=e;){if(r===e)return t;t=t.getNextSibling(),r++}return null}for(t=this.getLastChild(),r=n-1;null!==t&&r>=e;){if(r===e)return t;t=t.getPreviousSibling(),r--}return null}getTextContent(){let e="",t=this.getChildren(),r=t.length;for(let n=0;n<r;n++){let i=t[n];e+=i.getTextContent(),nb(i)&&n!==r-1&&!i.isInline()&&(e+="\n\n")}return e}getTextContentSize(){let e=0,t=this.getChildren(),r=t.length;for(let n=0;n<r;n++){let i=t[n];e+=i.getTextContentSize(),nb(i)&&n!==r-1&&!i.isInline()&&(e+=2)}return e}getDirection(){return this.getLatest().__dir}getTextFormat(){return this.getLatest().__textFormat}hasFormat(e){if(""!==e){let t=S[e];return 0!=(this.getFormat()&t)}return!1}hasTextFormat(e){let t=w[e];return 0!=(this.getTextFormat()&t)}getFormatFlags(e,t){return n3(this.getLatest().__textFormat,e,t)}getTextStyle(){return this.getLatest().__textStyle}select(e,t){ne();let r=rq(),n=e,i=t,l=this.getChildrenSize();if(!this.canBeEmpty()){if(0===e&&0===t){let e=this.getFirstChild();if(rv(e)||nb(e))return e.select(0,0)}else if((void 0===e||e===l)&&(void 0===t||t===l)){let e=this.getLastChild();if(rv(e)||nb(e))return e.select()}}void 0===n&&(n=l),void 0===i&&(i=l);let o=this.__key;return rE(r)?(r.anchor.set(o,n,"element"),r.focus.set(o,i,"element"),r.dirty=!0,r):rz(o,n,o,i,"element","element")}selectStart(){let e=this.getFirstDescendant();return e?e.selectStart():this.select()}selectEnd(){let e=this.getLastDescendant();return e?e.selectEnd():this.select()}clear(){let e=this.getWritable();
24return this.getChildren().forEach(e=>e.remove()),e}append(...e){return this.splice(this.getChildrenSize(),0,e)}setDirection(e){let t=this.getWritable();return t.__dir=e,t}setFormat(e){return this.getWritable().__format=""!==e?S[e]:0,this}setStyle(e){return this.getWritable().__style=e||"",this}setTextFormat(e){let t=this.getWritable();return t.__textFormat=e,t}setTextStyle(e){let t=this.getWritable();return t.__textStyle=e,t}setIndent(e){return this.getWritable().__indent=e,this}splice(e,t,r){tZ(this)&&n(324,this.__key,this.__type);let i=this.getChildrenSize(),l=this.getWritable();e+t<=i||n(226,String(e),String(t),String(i));let o=l.__key,a=[],s=[],u=this.getChildAtIndex(e+t),c=null,d=i-t+r.length;if(0!==e)if(e===i)c=this.getLastChild();else{let t=this.getChildAtIndex(e);null!==t&&(c=t.getPreviousSibling())}if(t>0){let e=null===c?this.getFirstChild():c.getNextSibling();for(let r=0;r<t;r++){null===e&&n(100);let t=e.getNextSibling(),r=e.__key;n7(e.getWritable()),s.push(r),e=t}}let f=c;for(let e of r){null!==f&&e.is(f)&&(c=f=f.getPreviousSibling());let t=e.getWritable();t.__parent===o&&d--,n7(t);let r=e.__key;if(null===f)l.__first=r,t.__prev=null;else{let e=f.getWritable();e.__next=r,t.__prev=e.__key}e.__key===o&&n(76),t.__parent=o,a.push(r),f=e}if(e+t===i)null!==f&&(f.getWritable().__next=null,l.__last=f.__key);else if(null!==u){let e=u.getWritable();if(null!==f){let t=f.getWritable();e.__prev=f.__key,t.__next=u.__key}else e.__prev=null}if(l.__size=d,s.length){let e=rq();if(rE(e)){let t=new Set(s),r=new Set(a),{anchor:n,focus:i}=e;n_(n,t,r)&&rY(n,n.getNode(),this,c,u),n_(i,t,r)&&rY(i,i.getNode(),this,c,u),0!==d||this.canBeEmpty()||iL(this)||this.remove()}}return l}getDOMSlot(e){return new nm(e)}exportDOM(e){let{element:t}=super.exportDOM(e);if(iH(t)){let e=this.getIndent();e>0&&(t.style.paddingInlineStart=40*e+"px");let r=this.getDirection();r&&(t.dir=r)}return{element:t}}exportJSON(){let e={children:[],direction:this.getDirection(),format:this.getFormatType(),indent:this.getIndent(),...super.exportJSON()},t=this.getTextFormat(),r=this.getTextStyle();return 0===t&&""===r||iL(this)||this.getChildren().some(rv)||(0!==t&&(e.textFormat=t),""!==r&&(e.textStyle=r)),e}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format).setIndent(e.indent).setDirection(e.direction).setTextFormat(e.textFormat||0).setTextStyle(e.textStyle||"")}insertNewAfter(e,t){return null}canIndent(){return!0}collapseAtStart(e){return!1}excludeFromCopy(e){return!1}canReplaceWith(e){return!0}canInsertAfter(e){return!0}canBeEmpty(){return!0}canInsertTextBefore(){return!0}canInsertTextAfter(){return!0}isInline(){return!1}isShadowRoot(){return!1}canMergeWith(e){return!1}extractWithChild(e,t,r){return!1}canMergeWhenEmpty(){return!1}reconcileObservedMutation(e,t){let r=this.getDOMSlot(e),n=r.getFirstChild();for(let e=this.getFirstChild();e;e=e.getNextSibling()){let i=t.getElementByKey(e.getKey());null!==i&&(null==n?(r.insertChild(i),n=i):n!==i&&r.replaceChild(i,n),n=n.nextSibling)}}}function nb(e){return e instanceof nv}function n_(e,t,r){let n=e.getNode();for(;n;){let e=n.__key;if(t.has(e)&&!r.has(e))return!0;n=n.getParent()}return!1}class nw extends tX{decorate(e,t){return null}isIsolated(){return!1}isInline(){return!0}isKeyboardSelectable(){return!0}}function nx(e){return e instanceof nw}class nS extends nv{__cachedText;static getType(){return"root"}static clone(){return new nS}constructor(){super("root"),this.__cachedText=null}getTopLevelElementOrThrow(){n(51)}getTextContent(){let e=this.__cachedText;return(r8()||0===nn()._dirtyType)&&null!==e?e:super.getTextContent()}remove(){n(52)}replace(e){n(53)}insertBefore(e){n(54)}insertAfter(e){n(55)}updateDOM(e,t){return!1}splice(e,t,r){for(let e of r)nb(e)||nx(e)||n(282);return super.splice(e,t,r)}static importJSON(e){return ia().updateFromJSON(e)}collapseAtStart(){return!0}}function nC(e){return e instanceof nS}function nk(e){return new nE(new Map(e._nodeMap))}function nT(){return new nE(new Map([["root",new nS]]))}function nN(e){return e instanceof nE}class nE{_nodeMap;_selection;_flushSync;_readOnly;constructor(e,t){this._nodeMap=e,this._selection=t||null,this._flushSync=!1,this._readOnly=!1}isEmpty(){return 1===this._nodeMap.size&&null===this._selection}read(e,t){return nc(t&&t.editor||null,this,e)}clone(e){let t=new nE(this._nodeMap,void 0===e?this._selection:e);return t._readOnly=!0,t}toJSON(){return nc(null,this,()=>({root:function e(t){let r=t.exportJSON(),i=t.constructor;if(r.type!==i.getType()&&n(130,i.name),nb(t)){let l=r.children;Array.isArray(l)||n(59,i.name);let o=t.getChildren();for(let t=0;t<o.length;t++){let r=e(o[t]);l.push(r)}}return r}(ia())}))}}class nP extends nv{static getType(){return"artificial"}createDOM(e){return document.createElement("div")}}class nO extends nv{static getType(){return"paragraph"}static clone(e){return new nO(e.__key)}createDOM(e){let t=document.createElement("p"),r=ik(e.theme,"paragraph");return void 0!==r&&t.classList.add(...r),t}updateDOM(e,t,r){return!1}static importDOM(){return{p:e=>({conversion:n$,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if(iH(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e)}return{element:t}}static importJSON(e){return nA().updateFromJSON(e)}exportJSON(){let e=super.exportJSON();if(void 0===e.textFormat||void 0===e.textStyle){let t=this.getChildren().find(rv);t?(e.textFormat=t.getFormat(),e.textStyle=t.getStyle()):(e.textFormat=this.getTextFormat(),e.textStyle=this.getTextStyle())}return e}insertNewAfter(e,t){let r=nA();r.setTextFormat(e.format),r.setTextStyle(e.style);let n=this.getDirection();return r.setDirection(n),r.setFormat(this.getFormatType()),r.setStyle(this.getStyle()),this.insertAfter(r,t),r}collapseAtStart(){let e=this.getChildren();if(0===e.length||rv(e[0])&&""===e[0].getTextContent().trim()){if(null!==this.getNextSibling())return this.selectNext(),this.remove(),!0;if(null!==this.getPreviousSibling())return this.selectPrevious(),this.remove(),!0}return!1}}function n$(e){let t=nA();if(e.style&&(t.setFormat(e.style.textAlign),i7(e,t)),""===t.getFormatType()){let r=e.getAttribute("align");r&&r&&r in S&&t.setFormat(r)}return{node:t}}function nA(){return iz(new nO)}function nM(e){return e instanceof nO}let nj=0,nD=1,nI=2,nF=3,nR=4;function nL(e,t,r,n){let i=e._keyToDOMMap;i.clear(),e._editorState=nT(),e._pendingEditorState=n,e._compositionKey=null,e._dirtyType=0,e._cloneNotNeeded.clear(),e._dirtyLeaves=new Set,e._dirtyElements.clear(),e._normalizedNodes=new Set,e._updateTags=new Set,e._updates=[],e._blockCursorElement=null;let l=e._observer;null!==l&&(l.disconnect(),e._observer=null),null!==t&&(t.textContent=""),null!==r&&(r.textContent="",i.set("root",r))}function nB(e){let t,r=e||{},n=r5,i=r.theme||{},l=void 0===e?n:r.parentEditor||null,o=r.disableEvents||!1,a=nT(),s=r.namespace||(null!==l?l._config.namespace:ig()),u=r.editorState,c=[nS,ru,t6,r_,nO,nP,...r.nodes||[]],{onError:d,html:f}=r,h=void 0===r.editable||r.editable;if(void 0===e&&null!==n)t=n._nodes;else{t=new Map;for(let e=0;e<c.length;e++){let r=c[e],n=null,i=null;if("function"!=typeof r){let e=r;r=e.replace,n=e.with,i=e.withKlass||null}i8(r);let l=r.getType(),o=function(e){let t=new Set,r=new Set,n=e;for(;n;){let{ownNodeConfig:e}=i8(n),i=n.transform;if(!r.has(i)){r.add(i);let e=n.transform();e&&t.add(e)}if(e){let r=e.$transform;r&&t.add(r),n=e.extends}else{let e=Object.getPrototypeOf(n);n=e.prototype instanceof tX&&e!==tX?e:void 0}}return t}(r);t.set(l,{exportDOM:f&&f.export?f.export.get(r):void 0,klass:r,replace:n,replaceWithKlass:i,sharedNodeState:function(e){let t=new Map,r=new Set;for(let n="function"==typeof e?e:e.replace;n.prototype&&void 0!==n.prototype.getType;n=Object.getPrototypeOf(n)){let{ownNodeConfig:e}=i8(n);if(e&&e.stateConfigs)for(let n of e.stateConfigs){let e;"stateConfig"in n?(e=n.stateConfig,n.flat&&r.add(e.key)):e=n,t.set(e.key,e)}}return{flatKeys:r,sharedConfigMap:t}}(c[e]),transforms:o})}}let p=new nz(a,l,t,{disableEvents:o,namespace:s,theme:i},d||console.error,function(e,t){let r=new Map,n=new Set,i=e=>{Object.keys(e).forEach(t=>{let n=r.get(t);void 0===n&&(n=[],r.set(t,n)),n.push(e[t])})};
24return e.forEach(e=>{let t=e.klass.importDOM;if(null==t||n.has(t))return;n.add(t);let r=t.call(e.klass);null!==r&&i(r)}),t&&i(t),r}(t,f?f.import:void 0),h,e);return void 0!==u&&(p._pendingEditorState=u,p._dirtyType=2),p.registerCommand(eA,tI,nj),p.registerCommand(eM,tF,nj),p.registerCommand(ej,tR,nj),p.registerCommand(eD,tL,nj),p.registerCommand(eV,tz,nj),p}class nz{static version;_headless;_parentEditor;_rootElement;_editorState;_pendingEditorState;_compositionKey;_deferred;_keyToDOMMap;_updates;_updating;_listeners;_commands;_nodes;_decorators;_pendingDecorators;_config;_dirtyType;_cloneNotNeeded;_dirtyLeaves;_dirtyElements;_normalizedNodes;_updateTags;_observer;_key;_onError;_htmlConversions;_window;_editable;_blockCursorElement;_createEditorArgs;constructor(e,t,r,n,i,l,o,a){this._createEditorArgs=a,this._parentEditor=t,this._rootElement=null,this._editorState=e,this._pendingEditorState=null,this._compositionKey=null,this._deferred=[],this._keyToDOMMap=new Map,this._updates=[],this._updating=!1,this._listeners={decorator:new Set,editable:new Set,mutation:new Map,root:new Set,textcontent:new Set,update:new Set},this._commands=new Map,this._config=n,this._nodes=r,this._decorators={},this._pendingDecorators=null,this._dirtyType=0,this._cloneNotNeeded=new Set,this._dirtyLeaves=new Set,this._dirtyElements=new Map,this._normalizedNodes=new Set,this._updateTags=new Set,this._observer=null,this._key=ig(),this._onError=i,this._htmlConversions=l,this._editable=o,this._headless=null!==t&&t._headless,this._window=null,this._blockCursorElement=null}isComposing(){return null!=this._compositionKey}registerUpdateListener(e){let t=this._listeners.update;return t.add(e),()=>{t.delete(e)}}registerEditableListener(e){let t=this._listeners.editable;return t.add(e),()=>{t.delete(e)}}registerDecoratorListener(e){let t=this._listeners.decorator;return t.add(e),()=>{t.delete(e)}}registerTextContentListener(e){let t=this._listeners.textcontent;return t.add(e),()=>{t.delete(e)}}registerRootListener(e){let t=this._listeners.root;return e(this._rootElement,null),t.add(e),()=>{e(null,this._rootElement),t.delete(e)}}registerCommand(e,t,r){void 0===r&&n(35);let i=this._commands;i.has(e)||i.set(e,[new Set,new Set,new Set,new Set,new Set]);let l=i.get(e);void 0===l&&n(36,String(e));let o=l[r];return o.add(t),()=>{o.delete(t),l.every(e=>0===e.size)&&i.delete(e)}}registerMutationListener(e,t,r){let n=this.resolveRegisteredNodeAfterReplacements(this.getRegisteredNode(e)).klass,i=this._listeners.mutation,l=i.get(t);void 0===l&&(l=new Set,i.set(t,l)),l.add(n);let o=r&&r.skipInitialization;return void 0!==o&&o||this.initializeMutationListener(t,n),()=>{l.delete(n),0===l.size&&i.delete(t)}}getRegisteredNode(e){let t=this._nodes.get(e.getType());return void 0===t&&n(37,e.name),t}resolveRegisteredNodeAfterReplacements(e){for(;e.replaceWithKlass;)e=this.getRegisteredNode(e.replaceWithKlass);return e}initializeMutationListener(e,t){let r=this._editorState,n=i3(r).get(t.getType());if(!n)return;let i=new Map;for(let e of n.keys())i.set(e,"created");i.size>0&&e(i,{dirtyLeaves:new Set,prevEditorState:r,updateTags:new Set(["registerMutationListener"])})}registerNodeTransformToKlass(e,t){let r=this.getRegisteredNode(e);return r.transforms.add(t),r}registerNodeTransform(e,t){let r=this.registerNodeTransformToKlass(e,t),n=[r],i=r.replaceWithKlass;if(null!=i){let e=this.registerNodeTransformToKlass(i,t);n.push(e)}return function(e,t){let r=i3(e.getEditorState()),n=[];for(let e of t){let t=r.get(e);t&&n.push(t)}0!==n.length&&e.update(()=>{for(let e of n)for(let t of e.keys()){let e=ie(t);e&&e.markDirty()}},null===e._pendingEditorState?{tag:t1}:void 0)}(this,n.map(e=>e.klass.getType())),()=>{n.forEach(e=>e.transforms.delete(t))}}hasNode(e){return this._nodes.has(e.getType())}hasNodes(e){return e.every(this.hasNode.bind(this))}dispatchCommand(e,t){return iO(this,e,t)}getDecorators(){return this._decorators}getRootElement(){return this._rootElement}getKey(){return this._key}setRootElement(e){let t=this._rootElement;if(e!==t){let r=ik(this._config.theme,"root"),i=this._pendingEditorState||this._editorState;if(this._rootElement=e,nL(this,t,e,i),null!==t&&(this._config.disableEvents||function(e){let t=t_.get(e);if(void 0===t)return tV();let r=tw.get(t);if(void 0===r)return tV();let i=r-1;i>=0||n(164),t_.delete(e),tw.set(t,i),0===i&&t.removeEventListener("selectionchange",tW);let l=nZ(e);nG(l)?(!function(e){if(null!==e._parentEditor){let t=ih(e),r=t[t.length-1]._key;tU.get(r)===e&&tU.delete(r)}else tU.delete(e._key)}(l),e.__lexicalEditor=null):l&&n(198);let o=tK(e);for(let e=0;e<o.length;e++)o[e]();e.__lexicalEventHandles=[]}(t),null!=r&&t.classList.remove(...r)),null!==e){let t=iI(e),n=e.style;n.userSelect="text",n.whiteSpace="pre-wrap",n.wordBreak="break-word",e.setAttribute("data-lexical-editor","true"),this._window=t,this._dirtyType=2,j(this),this._updateTags.add(t1),nd(this),this._config.disableEvents||function(e,t){let r=e.ownerDocument;t_.set(e,r);let n=tw.get(r)??0;n<1&&r.addEventListener("selectionchange",tW),tw.set(r,n+1),e.__lexicalEditor=t;let i=tK(e);for(let r=0;r<tp.length;r++){let[n,l]=tp[r],o="function"==typeof l?e=>{tq(e)||(tJ(e),(t.isEditable()||"click"===n)&&l(e,t))}:e=>{if(tq(e))return;tJ(e);let r=t.isEditable();switch(n){case"cut":return r&&iO(t,tl,e);case"copy":return iO(t,ti,e);case"paste":return r&&iO(t,eB,e);case"dragstart":return r&&iO(t,tt,e);case"dragover":return r&&iO(t,tr,e);case"dragend":return r&&iO(t,tn,e);case"focus":return r&&iO(t,td,e);case"blur":return r&&iO(t,tf,e);case"drop":return r&&iO(t,e8,e)}};e.addEventListener(n,o),i.push(()=>{e.removeEventListener(n,o)})}}(e,this),null!=r&&e.classList.add(...r)}else this._window=null,this._updateTags.add(t1),nd(this);nf("root",this,!1,e,t)}}getElementByKey(e){return this._keyToDOMMap.get(e)||null}getEditorState(){return this._editorState}setEditorState(e,t){e.isEmpty()&&n(38);let r=e;r._readOnly&&((r=nk(e))._selection=e._selection?e._selection.clone():null),M(this);
24let i=this._pendingEditorState,l=this._updateTags,o=void 0!==t?t.tag:null;null===i||i.isEmpty()||(null!=o&&l.add(o),nd(this)),this._pendingEditorState=r,this._dirtyType=2,this._dirtyElements.set("root",!1),this._compositionKey=null,null!=o&&l.add(o),this._updating||nd(this)}parseEditorState(e,t){return function(e,t,r){let n=nT(),i=r3,l=r4,o=r5,a=t._dirtyElements,s=t._dirtyLeaves,u=t._cloneNotNeeded,c=t._dirtyType;t._dirtyElements=new Map,t._dirtyLeaves=new Set,t._cloneNotNeeded=new Set,t._dirtyType=0,r3=n,r4=!1,r5=t,nK=null;try{let i=t._nodes;nu(e.root,i),r&&r(),n._readOnly=!0}catch(e){e instanceof Error&&t._onError(e)}finally{t._dirtyElements=a,t._dirtyLeaves=s,t._cloneNotNeeded=u,t._dirtyType=c,r3=i,r4=l,r5=o}return n}("string"==typeof e?JSON.parse(e):e,this,t)}read(e){return nd(this),this.getEditorState().read(e,{editor:this})}update(e,t){this._updating?this._updates.push([e,t]):ng(this,e,t)}focus(e,t={}){let r=this._rootElement;null!==r&&(r.setAttribute("autocapitalize","off"),np(this,()=>{var n;let i=rq(),l=ia();null!==i?i.dirty||iu(i.clone()):0!==l.getChildrenSize()&&("rootStart"===t.defaultSelection?l.selectStart():l.selectEnd()),ij("focus"),n=()=>{r.removeAttribute("autocapitalize"),e&&e()},ne(),nn()._deferred.push(n)}),null===this._pendingEditorState&&r.removeAttribute("autocapitalize"))}blur(){let e=this._rootElement;null!==e&&e.blur();let t=iJ(this._window);null!==t&&t.removeAllRanges()}isEditable(){return this._editable}setEditable(e){this._editable!==e&&(this._editable=e,nf("editable",this,!0,e))}toJSON(){return{editorState:this._editorState.toJSON()}}}nz.version="0.41.0+prod.esm";let nK=null,nU=1;function nW(e,t){let r=nJ(e,t);return void 0===r&&n(30,t),r}function nJ(e,t){return e._nodes.get(t)}let nq="function"==typeof queueMicrotask?queueMicrotask:e=>{Promise.resolve().then(e)};function nV(e){let t=document.activeElement;if(!iH(t))return!1;let r=t.nodeName;return nx(ii(e))&&("INPUT"===r||"TEXTAREA"===r||"true"===t.contentEditable&&null==nZ(t))}function nH(e,t,r){let n=e.getRootElement();try{return null!==n&&n.contains(t)&&n.contains(r)&&null!==t&&!nV(t)&&nY(t)===e}catch(e){return!1}}function nG(e){return e instanceof nz}function nY(e){let t=e;for(;null!=t;){let e=nZ(t);if(nG(e))return e;t=iA(t)}return null}function nZ(e){return e?e.__lexicalEditor:null}function nX(e){return rx(e)||e.isToken()}function nQ(e){return nX(e)||e.isSegmented()}
24function n0(e){return iG(e)&&3===e.nodeType}function n1(e){return iG(e)&&9===e.nodeType}function n2(e){let t=e;for(;null!=t;){if(n0(t))return t;t=t.firstChild}return null}function n3(e,t,r){let n=w[t];if(null!==r&&(e&n)==(r&n))return e;let i=e^n;return"subscript"===t?i&=~w.superscript:"superscript"===t?i&=~w.subscript:"lowercase"===t?(i&=~w.uppercase,i&=~w.capitalize):"uppercase"===t?(i&=~w.lowercase,i&=~w.capitalize):"capitalize"===t&&(i&=~w.lowercase,i&=~w.uppercase),i}function n5(e){return rv(e)||rt(e)||nx(e)}function n4(e,t){let r=function(){let e=nK;return nK=null,e}();if(null!=(t=t||r&&r.__key))return void(e.__key=t);ne(),nt();let n=nn(),i=nr(),l=""+nU++;i._nodeMap.set(l,e),nb(e)?n._dirtyElements.set(l,!0):n._dirtyLeaves.add(l),n._cloneNotNeeded.add(l),n._dirtyType=1,e.__key=l}function n7(e){let t=e.getParent();if(null!==t){let r=e.getWritable(),n=t.getWritable(),i=e.getPreviousSibling(),l=e.getNextSibling(),o=null!==l?l.__key:null,a=null!==i?i.__key:null,s=null!==i?i.getWritable():null,u=null!==l?l.getWritable():null;null===i&&(n.__first=o),null===l&&(n.__last=a),null!==s&&(s.__next=o),null!==u&&(u.__prev=a),r.__prev=null,r.__next=null,r.__parent=null,n.__size--}}function n9(e){nt(),tZ(e)&&n(323,e.__key,e.__type);let t=e.getLatest(),r=t.__parent,i=nr(),l=nn(),o=i._nodeMap,a=l._dirtyElements;null!==r&&function(e,t,r){let n=e;for(;null!==n;){if(r.has(n))return;let e=t.get(n);if(void 0===e)break;r.set(n,!1),n=e.__parent}}(r,o,a);let s=t.__key;l._dirtyType=1,nb(e)?a.set(s,!0):l._dirtyLeaves.add(s)}function n6(e){ne();let t=nn(),r=t._compositionKey;if(e!==r){if(t._compositionKey=e,null!==r){let e=ie(r);null!==e&&e.getWritable()}if(null!==e){let t=ie(e);null!==t&&t.getWritable()}}}function n8(){return r8()?null:nn()._compositionKey}function ie(e,t){let r=(t||nr())._nodeMap.get(e);return void 0===r?null:r}function it(e,t){let r=ir(e,nn());return void 0!==r?ie(r,t):null}function ir(e,t){return e[`__lexicalKey_${t._key}`]}function ii(e,t){let r=e;for(;null!=r;){let e=it(r,t);if(null!==e)return e;r=iA(r)}return null}function il(e){let t=Object.assign({},e._decorators);return e._pendingDecorators=t,t}function io(e){return e.read(()=>ia().getTextContent())}function ia(){return is(nr())}function is(e){return e._nodeMap.get("root")}function iu(e){ne();let t=nr();null!==e&&(e.dirty=!0,e.setCachedNodes(null)),t._selection=e}function ic(e){let t=nn(),r=function(e,t){let r=e;for(;null!=r;){let e=ir(r,t);if(void 0!==e)return e;r=iA(r)}return null}(e,t);return null===r?e===t.getRootElement()?ie("root"):null:ie(r)}function id(e){return/[\uD800-\uDBFF][\uDC00-\uDFFF]/g.test(e)}function ih(e){let t=[],r=e;for(;null!==r;)t.push(r),r=r._parentEditor;return t}function ig(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substring(0,5)}function ip(e){return n0(e)?e.nodeValue:null}function im(e,t,r){let n=iJ(iF(t));if(null===n)return;let i=n.anchorNode,{anchorOffset:l,focusOffset:o}=n;if(null!==i){let t=ip(i),n=ii(i);if(null!==t&&rv(n)){if((t===y||t===v)&&r){let e=r.length;t=r,l=e,o=e}null!==t&&iy(n,t,l,o,e)}}}function iy(e,t,r,n,i){let l=e;if(l.isAttached()&&(i||!l.isDirty())){let o=l.isComposing(),a=t;if((o||i)&&(t.endsWith(y)&&(a=t.slice(0,-y.length)),i)){let e;for(;-1!==(e=a.indexOf(v));)a=a.slice(0,e)+a.slice(e+v.length),null!==r&&r>e&&(r=Math.max(e,r-v.length)),null!==n&&n>e&&(n=Math.max(e,n-v.length))}let s=l.getTextContent();if(i||a!==s){if(""===a){if(n6(null),c||d||m)l.remove();else{let e=nn();setTimeout(()=>{e.update(()=>{l.isAttached()&&l.remove()})},20)}return}let t=l.getParent(),i=rV(),s=l.getTextContentSize(),u=n8(),f=l.getKey();if(l.isToken()||null!==u&&f===u&&!o||rE(i)&&(null!==t&&!t.canInsertTextBefore()&&0===i.anchor.offset||i.anchor.key===e.__key&&0===i.anchor.offset&&!l.canInsertTextBefore()&&!o||i.focus.key===e.__key&&i.focus.offset===s&&!l.canInsertTextAfter()&&!o))return void l.markDirty();let h=rq();if(!rE(h)||null===r||null===n)return void iv(l,a,h);if(h.setTextNodeRange(l,r,l,n),l.isSegmented()){let e=ry(l.getTextContent());l.replace(e),l=e}iv(l,a,h)}}}function iv(e,t,r){if(e.setTextContent(t),rE(r)){let t=e.getKey();for(let n of["anchor","focus"]){let i=r[n];"text"===i.type&&i.key===t&&(i.offset=ly(e,i.offset,"clamp"))}}}function ib(e,t,r){let n=t[r]||!1;return"any"===n||n===e[r]}function i_(e,t,r){if(!(ib(e,r,"altKey")&&ib(e,r,"ctrlKey")&&ib(e,r,"shiftKey")&&ib(e,r,"metaKey")))return!1;if(e.key.toLowerCase()===t.toLowerCase())return!0;
24if(t.length>1||1===e.key.length&&127>=e.key.charCodeAt(0))return!1;let n="Key"+t.toUpperCase();return e.code===n}let iw={ctrlKey:!a,metaKey:a},ix={altKey:a,ctrlKey:!a};function iS(e){return"Backspace"===e.key}function iC(e){let t=ia();if(rE(e)){let t=e.anchor,r=e.focus,n=t.getNode().getTopLevelElementOrThrow().getParentOrThrow();return t.set(n.getKey(),0,"element"),r.set(n.getKey(),n.getChildrenSize(),"element"),Y(e),e}{let e=t.select(0,t.getChildrenSize());return iu(Y(e)),e}}function ik(e,t){void 0===e.__lexicalClassNameCache&&(e.__lexicalClassNameCache={});let r=e.__lexicalClassNameCache,n=r[t];if(void 0!==n)return n;let i=e[t];if("string"==typeof i){let e=lZ(i);return r[t]=e,e}return i}function iT(e,t,r,i,l){if(0===r.size)return;let o=i.__type,a=i.__key,s=t.get(o);void 0===s&&n(33,o);let u=s.klass,c=e.get(u);void 0===c&&(c=new Map,e.set(u,c));let d=c.get(a),f="destroyed"===d&&"created"===l;(void 0===d||f)&&c.set(a,f?"updated":l)}function iN(e,t,r){let n=e.getParent(),i=r,l=e;return null!==n&&(t&&0===r?(i=l.getIndexWithinParent(),l=n):t||r!==l.getChildrenSize()||(i=l.getIndexWithinParent()+1,l=n)),l.getChildAtIndex(t?i-1:i)}function iE(e,t){let r=e.offset;if("element"===e.type)return iN(e.getNode(),t,r);{let n=e.getNode();if(t&&0===r||!t&&r===n.getTextContentSize()){let e=t?n.getPreviousSibling():n.getNextSibling();return null===e?iN(n.getParentOrThrow(),t,n.getIndexWithinParent()+ +!t):e}}return null}function iP(e){let t=iF(e).event,r=t&&t.inputType;return"insertFromPaste"===r||"insertFromPasteAsQuotation"===r}function iO(e,t,r){return function(e,t,r){let n=ih(e);for(let i=4;i>=0;i--)for(let l=0;l<n.length;l++){let o=n[l],a=o._commands.get(t);if(void 0!==a){let t=a[i];if(void 0!==t){let n=Array.from(t),i=n.length,l=!1;if(np(o,()=>{for(let t=0;t<i;t++)if(n[t](r,e))return void(l=!0)}),l)return l}}}return!1}(e,t,r)}function i$(e,t){let r=e._keyToDOMMap.get(t);return void 0===r&&n(75,t),r}function iA(e){let t=e.assignedSlot||e.parentElement;return iY(t)?t.host:t}function iM(e){return n1(e)?e:iH(e)?e.ownerDocument:null}function ij(e){ne(),nn()._updateTags.add(e)}function iD(e,t){let r=e.getParent();for(;null!==r;){if(r.is(t))return!0;r=r.getParent()}return!1}function iI(e){let t=iM(e);return t?t.defaultView:null}function iF(e){let t=e._window;return null===t&&n(78),t}function iR(e){return nb(e)&&e.isInline()||nx(e)&&e.isInline()}function iL(e){return nC(e)||nb(e)&&e.isShadowRoot()}function iB(e){let t=e.constructor.clone(e);return n4(t,null),t.afterCloneFrom(e),t}function iz(e){let t=nn(),r=e.getType(),i=nJ(t,r);void 0===i&&n(200,e.constructor.name,r);let{replace:l,replaceWithKlass:o}=i;if(null!==l){let t=l(e),i=t.constructor;return null!==o?t instanceof o||n(201,o.name,o.getType(),i.name,i.getType(),e.constructor.name,r):t instanceof e.constructor&&i!==e.constructor||n(202,i.name,i.getType(),e.constructor.name,r),t.__key===e.__key&&n(203,e.constructor.name,r,i.name,i.getType()),t}return e}function iK(e,t){!nC(e.getParent())||nb(t)||nx(t)||n(99)}function iU(e){return(nx(e)||nb(e)&&!e.canBeEmpty())&&!e.isInline()}function iW(e,t,r){r.style.removeProperty("caret-color"),t._blockCursorElement=null;let n=e.parentElement;null!==n&&n.removeChild(e)}function iJ(e){return l?(e||window).getSelection():null}function iq(e){let t=iI(e);return t?t.getSelection():null}function iV(e){return iH(e)&&"A"===e.tagName}function iH(e){return iG(e)&&1===e.nodeType}function iG(e){return"object"==typeof e&&null!==e&&"nodeType"in e&&"number"==typeof e.nodeType}function iY(e){return iG(e)&&11===e.nodeType}function iZ(e){let t=RegExp(/^(a|abbr|acronym|b|cite|code|del|em|i|ins|kbd|label|mark|output|q|ruby|s|samp|span|strong|sub|sup|time|u|tt|var|#text)$/,"i");return null!==e.nodeName.match(t)}function iX(e){let t=RegExp(/^(address|article|aside|blockquote|canvas|dd|div|dl|dt|fieldset|figcaption|figure|footer|form|h1|h2|h3|h4|h5|h6|header|hr|li|main|nav|noscript|ol|p|pre|section|table|td|tfoot|ul|video)$/,"i");return null!==e.nodeName.match(t)}function iQ(e){if(nx(e)&&!e.isInline())return!0;if(!nb(e)||iL(e))return!1;let t=e.getFirstChild(),r=null===t||rt(t)||rv(t)||t.isInline();return!e.isInline()&&!1!==e.canBeEmpty()&&r}function i0(){return nn()}
24let i1=new WeakMap,i2=new Map;function i3(e){if(!e._readOnly&&e.isEmpty())return i2;e._readOnly||n(192);let t=i1.get(e);return t||(t=function(e){let t=new Map;for(let[r,n]of e._nodeMap){let e=n.__type,i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(r,n)}return t}(e),i1.set(e,t)),t}function i5(e){let t=e.constructor.clone(e);return t.afterCloneFrom(e),t}function i4(e){var t;return(t=i5(e))[tY]=!0,t}function i7(e,t){let r=Math.round((parseInt(e.style.paddingInlineStart,10)||0)/40);t.setIndent(r)}function i9(e){e.__lexicalUnmanaged=!0}function i6(e,t){return Object.prototype.hasOwnProperty.call(e,t)&&e[t]!==tX[t]}function i8(e){let t=N in e.prototype?e.prototype[N]():void 0,r=function(e){if(!(e===tX||e.prototype instanceof tX)){let t="<unknown>",r="<unknown>";try{t=e.getType()}catch(e){}try{nz.version&&(r=JSON.parse(nz.version))}catch(e){}n(290,e.name,t,r)}return e===nw||e===nv||e===tX}(e),i=!r&&i6(e,"getType")?e.getType():void 0,l,o=i;if(t)if(i)l=t[i];else for(let[e,r]of Object.entries(t))o=e,l=r;if(!r&&o&&(i6(e,"getType")||(e.getType=()=>o),i6(e,"clone")||(e.clone=t=>(nK=t,new e)),i6(e,"importJSON")||(e.importJSON=l&&l.$importJSON||(t=>(new e).updateFromJSON(t))),!i6(e,"importDOM")&&l)){let{importDOM:t}=l;t&&(e.importDOM=()=>t)}return{ownNodeConfig:l,ownNodeType:o}}function le(e){let t=i0();return ne(),new(t.resolveRegisteredNodeAfterReplacements(t.getRegisteredNode(e))).klass}let lt=(e,t)=>{let r=e;for(;null!=r&&!nC(r);){if(t(r))return r;r=r.getParent()}return null},lr={next:"previous",previous:"next"};class ln{origin;constructor(e){this.origin=e}[Symbol.iterator](){return lT({hasNext:lc,initial:this.getAdjacentCaret(),map:e=>e,step:e=>e.getAdjacentCaret()})}getAdjacentCaret(){return lp(this.getNodeAtCaret(),this.direction)}getSiblingCaret(){return lp(this.origin,this.direction)}remove(){let e=this.getNodeAtCaret();return e&&e.remove(),this}replaceOrInsert(e,t){let r=this.getNodeAtCaret();return e.is(this.origin)||e.is(r)||(null===r?this.insert(e):r.replace(e,t)),this}splice(e,t,r="next"){let i=r===this.direction?t:Array.from(t).reverse(),l=this,o=this.getParentAtCaret(),a=new Map;for(let t=l.getAdjacentCaret();null!==t&&a.size<e;t=t.getAdjacentCaret()){let e=t.origin.getWritable();a.set(e.getKey(),e)}for(let e of i){if(a.size>0){let t=l.getNodeAtCaret();if(t)if(a.delete(t.getKey()),a.delete(e.getKey()),t.is(e)||l.origin.is(e));else{let r=e.getParent();r&&r.is(o)&&e.remove(),t.replace(e)}else null===t&&n(263,Array.from(a).join(" "))}else l.insert(e);l=lp(e,this.direction)}for(let e of a.values())e.remove();return this}}class li extends ln{type="child";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:lv(e,this.direction)}getParentCaret(e="root"){return lp(lo(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=lr[this.direction];return lp(this.getNodeAtCaret(),e)||lv(this.origin,e)}getParentAtCaret(){return this.origin}getChildCaret(){return this}isSameNodeCaret(e){return e instanceof li&&this.direction===e.direction&&this.origin.is(e.origin)}isSamePointCaret(e){return this.isSameNodeCaret(e)}}let ll={root:nC,shadowRoot:iL};function lo(e,t="root"){return ll[t](e)?null:e}class la extends ln{type="sibling";getLatest(){let e=this.origin.getLatest();return e===this.origin?this:lp(e,this.direction)}getSiblingCaret(){return this}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return nb(this.origin)?lv(this.origin,this.direction):null}getParentCaret(e="root"){return lp(lo(this.getParentAtCaret(),e),this.direction)}getFlipped(){let e=lr[this.direction];return lp(this.getNodeAtCaret(),e)||lv(this.origin.getParentOrThrow(),e)}isSamePointCaret(e){return e instanceof la&&this.direction===e.direction&&this.origin.is(e.origin)}isSameNodeCaret(e){return(e instanceof la||e instanceof ls)&&this.direction===e.direction&&this.origin.is(e.origin)}}class ls extends ln{type="text";offset;constructor(e,t){super(e),this.offset=t}getLatest(){let e=this.origin.getLatest();return e===this.origin?this:lm(e,this.direction,this.offset)}getParentAtCaret(){return this.origin.getParent()}getChildCaret(){return null}getParentCaret(e="root"){return lp(lo(this.getParentAtCaret(),e),this.direction)}getFlipped(){return lm(this.origin,lr[this.direction],this.offset)}isSamePointCaret(e){return e instanceof ls&&this.direction===e.direction&&this.origin.is(e.origin)&&this.offset===e.offset}isSameNodeCaret(e){return(e instanceof la||e instanceof ls)&&this.direction===e.direction&&this.origin.is(e.origin)}getSiblingCaret(){return lp(this.origin,this.direction)}}function lu(e){return e instanceof ls}function lc(e){return e instanceof la}function ld(e){return e instanceof li}let lf={next:class extends ls{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends ls{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},lh={next:class extends la{direction="next";getNodeAtCaret(){return this.origin.getNextSibling()}insert(e){return this.origin.insertAfter(e),this}},previous:class extends la{direction="previous";getNodeAtCaret(){return this.origin.getPreviousSibling()}insert(e){return this.origin.insertBefore(e),this}}},lg={next:class extends li{direction="next";getNodeAtCaret(){return this.origin.getFirstChild()}insert(e){return this.origin.splice(0,0,[e]),this}},previous:class extends li{direction="previous";getNodeAtCaret(){return this.origin.getLastChild()}insert(e){return this.origin.splice(this.origin.getChildrenSize(),0,[e]),this}}};function lp(e,t){return e?new lh[t](e):null}function lm(e,t,r){return e?new lf[t](e,ly(e,r)):null}function ly(e,t,r="error"){let n=e.getTextContentSize(),l="next"===t?n:"previous"===t?0:t;return(l<0||l>
24n)&&("clamp"!==r&&i(284,String(t),String(n),e.getKey()),l=l<0?0:n),l}function lv(e,t){return nb(e)?new lg[t](e):null}function lb(e){return e&&e.getChildCaret()||e}function l_(e){return e&&lb(e.getAdjacentCaret())}class lw{type="node-caret-range";direction;anchor;focus;constructor(e,t,r){this.anchor=e,this.focus=t,this.direction=r}getLatest(){let e=this.anchor.getLatest(),t=this.focus.getLatest();return e===this.anchor&&t===this.focus?this:new lw(e,t,this.direction)}isCollapsed(){return this.anchor.isSamePointCaret(this.focus)}getTextSlices(){let e=e=>{let t=this[e].getLatest();return lu(t)?function(e,t){let{direction:r,origin:n}=e;return new lx(e,ly(n,"focus"===t?lr[r]:r)-e.offset)}(t,e):null},t=e("anchor"),r=e("focus");if(t&&r){let{caret:e}=t,{caret:n}=r;if(e.isSameNodeCaret(n))return[new lx(e,n.offset-e.offset),null]}return[t,r]}iterNodeCarets(e="root"){let t=lu(this.anchor)?this.anchor.getSiblingCaret():this.anchor.getLatest(),r=this.focus.getLatest(),n=lu(r),i=t=>t.isSameNodeCaret(r)?null:l_(t)||t.getParentCaret(e);return lT({hasNext:e=>null!==e&&!(n&&r.isSameNodeCaret(e)),initial:t.isSameNodeCaret(r)?null:i(t),map:e=>e,step:i})}[Symbol.iterator](){return this.iterNodeCarets("root")}}class lx{type="slice";caret;distance;constructor(e,t){this.caret=e,this.distance=t}getSliceIndices(){let{distance:e,caret:{offset:t}}=this,r=t+e;return r<t?[r,t]:[t,r]}getTextContent(){let[e,t]=this.getSliceIndices();return this.caret.origin.getTextContent().slice(e,t)}getTextContentSize(){return Math.abs(this.distance)}removeTextSlice(){let{caret:{origin:e,direction:t}}=this,[r,n]=this.getSliceIndices(),i=e.getTextContent();return lm(e.setTextContent(i.slice(0,r)+i.slice(n)),t,r)}}function lS(e){return lk(e,lp(ia(),e.direction))}function lC(e){return lk(e,e)}function lk(e,t){return e.direction!==t.direction&&n(265),new lw(e,t,e.direction)}function lT(e){let{initial:t,hasNext:r,step:n,map:i}=e,l=t;return{[Symbol.iterator](){return this},next(){if(!r(l))return{done:!0,value:void 0};let e={done:!1,value:i(l)};return l=n(l),e}}}function lN(e,t){let r=lO(e.origin,t.origin);switch(null===r&&n(275,e.origin.getKey(),t.origin.getKey()),r.type){case"same":{let r="text"===e.type,n="text"===t.type;return r&&n?Math.sign(e.offset-t.offset):e.type===t.type?0:r?-1:n?1:"child"===e.type?-1:1}case"ancestor":return"child"===e.type?-1:1;case"descendant":return"child"===t.type?1:-1;case"branch":return lE(r)}}function lE(e){let{a:t,b:r}=e,n=t.__key,i=r.__key,l=t,o=r;for(;l&&o;l=l.getNextSibling(),o=o.getNextSibling()){if(l.__key===i)return -1;if(o.__key===n)return 1}return null===l?1:-1}function lP(e){return nb(e)?[e.getLatest(),null]:[e.getParent(),e.getLatest()]}function lO(e,t){if(e.is(t))return{commonAncestor:e,type:"same"};let r=new Map;for(let[t,n]=lP(e);t;n=t,t=t.getParent())r.set(t,n);for(let[i,l]=lP(t);i;l=i,i=i.getParent()){let o=r.get(i);if(void 0!==o)return null===o?(i.is(e)||n(276),{commonAncestor:i,type:"ancestor"}):null===l?(i.is(t)||n(277),{commonAncestor:i,type:"descendant"}):((nb(o)||o.is(e))&&(nb(l)||l.is(t))&&i.is(o.getParent())&&i.is(l.getParent())||n(278),{a:o,b:l,commonAncestor:i,type:"branch"})}return null}function l$(e,t){let{type:r,key:i,offset:l}=e,o=function(e){let t=ie(e);return null===t&&n(63,e),t}(e.key);return"text"===r?(rv(o)||n(266,o.getType(),i),lm(o,t,l)):(nb(o)||n(267,o.getType(),i),function(e,t,r){let n=lv(e,"next");for(let e=0;e<t;e++){let e=n.getAdjacentCaret();if(null===e)break;n=e}return lz(n,r)}(o,e.offset,t))}function lA(e,t){let{origin:r,direction:i}=t,l="next"===i;lu(t)?e.set(r.getKey(),t.offset,"text"):lc(t)?rv(r)?e.set(r.getKey(),ly(r,i),"text"):e.set(r.getParentOrThrow().getKey(),r.getIndexWithinParent()+ +!!l,"element"):(ld(t)&&nb(r)||n(268),e.set(r.getKey(),l?0:r.getChildrenSize(),"element"))}function lM(e){let t=rq(),r=rE(t)?t:rK();return lj(r,e),iu(r),r}function lj(e,t){lA(e.anchor,t.anchor),lA(e.focus,t.focus)}function lD(e){let{anchor:t,focus:r}=e,n=l$(t,"next"),i=l$(r,"next"),l=0>=lN(n,i)?"next":"previous";return lk(lz(n,l),lz(i,l))}function lI(e){let{direction:t,origin:r}=e,n=lp(r,lr[t]).getNodeAtCaret();return n?lp(n,t):lv(r.getParentOrThrow(),t)}function lF(e,t="root"){let r=[e];for(let n=ld(e)?e.getParentCaret(t):e.getSiblingCaret();null!==n;n=n.getParentCaret(t))r.push(lI(n));return r}function lR(e){return!!e&&e.origin.isAttached()}function lL(e){let t=function(e){let t=e;for(;ld(t);){let e=l_(t);if(!ld(e))break;t=e}return t}(e.getLatest()),{direction:r}=t;if(rv(t.origin))return lu(t)?t:lm(t.origin,r,r);let n=t.getAdjacentCaret();return lc(n)&&rv(n.origin)?lm(n.origin,r,lr[r]):t}function lB(e){return lu(e)&&e.offset!==ly(e.origin,e.direction)}function lz(e,t){return e.direction===t?e:e.getFlipped()}
24function lK(e,t){return e.direction===t?e:lk(lz(e.focus,t),lz(e.anchor,t))}function lU(e,t="root"){let r=0,n=e,i=l_(n);for(;null===i;){if(r--,!(i=n.getParentCaret(t)))return null;i=l_(n=i)}return i&&[i,r]}function lW(e){let{origin:t,offset:r,direction:i}=e;if(r===ly(t,i))return e.getSiblingCaret();if(r===ly(t,lr[i]))return lI(e.getSiblingCaret());let[l]=t.splitText(r);return rv(l)||n(281),lz(lp(l,"next"),i)}function lJ(e,t){return!0}function lq(e,{$copyElementNode:t=iB,$splitTextPointCaretNext:r=lW,rootMode:n="shadowRoot",$shouldSplit:i=lJ}={}){if(lu(e))return r(e);let l=e.getParentCaret(n);if(l){let{origin:r}=l;if(ld(e)&&(!r.canBeEmpty()||!i(r,"first")))return lI(l);let n=function(e){let t=[];for(let r=e.getAdjacentCaret();r;r=r.getAdjacentCaret())t.push(r.origin);return t}(e);(n.length>0||r.canBeEmpty()&&i(r,"last"))&&l.insert(t(r).splice(0,0,n))}return l}function lV(e){return e}function lH(...e){return e}function lG(e){return e}function lY(e,t){if(!t||e===t)return e;for(let r in t)if(e[r]!==t[r])return{...e,...t};return e}function lZ(...e){let t=[];for(let r of e)if(r&&"string"==typeof r)for(let[e]of r.matchAll(/\S+/g))t.push(e);return t}function lX(e,...t){let r=lZ(...t);r.length>0&&e.classList.add(...r)}function lQ(e,...t){let r=lZ(...t);r.length>0&&e.classList.remove(...r)}function l0(...e){return()=>{for(let t=e.length-1;t>=0;t--)e[t]();e.length=0}}},33081:e=>{"use strict";var t=function(e){var t,n,i;return!!(t=e)&&"object"==typeof t&&(n=e,"[object RegExp]"!==(i=Object.prototype.toString.call(n))&&"[object Date]"!==i&&n.$$typeof!==r)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?a(Array.isArray(e)?[]:{},e,t):e}function i(e,t,r){return e.concat(t).map(function(e){return n(e,r)})}function l(e){return Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[])}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,r,s){(s=s||{}).arrayMerge=s.arrayMerge||i,s.isMergeableObject=s.isMergeableObject||t,s.cloneUnlessOtherwiseSpecified=n;var u,c,d=Array.isArray(r);return d!==Array.isArray(e)?n(r,s):d?s.arrayMerge(e,r,s):(c={},(u=s).isMergeableObject(e)&&l(e).forEach(function(t){c[t]=n(e[t],u)}),l(r).forEach(function(t){o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))||(o(e,t)&&u.isMergeableObject(r[t])?c[t]=(function(e,t){if(!t.customMerge)return a;var r=t.customMerge(e);return"function"==typeof r?r:a})(t,u)(e[t],r[t],u):c[t]=n(r[t],u))}),c)}a.all=function(e,t){if(!Array.isArray(e))throw Error("first argument should be an array");return e.reduce(function(e,r){return a(e,r,t)},{})},e.exports=a},33811:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(61721),i=r(94271),l=r(12115);function o({maxIndent:e,$canIndent:t}){let[r]=(0,i.DF)();return(0,l.useEffect)(()=>(0,n.MM)(r,e,t),[r,e,t]),null}},34564:(e,t,r)=>{"use strict";r.d(t,{y:()=>a});var n=r(95155),i=r(63344),l=r(12115),o=r(45280);let a=e=>{let{maxLength:t=0,minLength:r=0,text:a}=e,[s,u]=(0,l.useState)({backgroundColor:"",color:""}),[c,d]=(0,l.useState)(""),[f,h]=(0,l.useState)(0),{t:p}=(0,i.d)();(0,l.useEffect)(()=>{let e=(null==a?void 0:a.length)||0;if(0===e)d(p("plugin-seo:missing")),u({backgroundColor:"red",color:"white"}),h(0);else{let n=(e-r)/(t-r);if(n<0){let t=e/r;t>.9?(d(p("plugin-seo:almostThere")),u({backgroundColor:"orange",color:"white"})):(d(p("plugin-seo:tooShort")),u({backgroundColor:"orangered",color:"white"})),h(t)}n>=0&&n<=1&&(d(p("plugin-seo:good")),u({backgroundColor:"green",color:"white"}),h(n)),n>1&&(d(p("plugin-seo:tooLong")),u({backgroundColor:"red",color:"white"}),h(1))}},[r,t,a,p]);let m=(null==a?void 0:a.length)||0,y=t-m,v=r-m;return(0,n.jsxs)("div",{style:{alignItems:"center",display:"flex",width:"100%"},children:[(0,n.jsx)(o.a,{backgroundColor:s.backgroundColor,color:s.color,label:c}),(0,n.jsx)("div",{style:{flexShrink:0,lineHeight:1,marginRight:"10px",whiteSpace:"nowrap"},children:(0,n.jsxs)("small",{children:[p("plugin-seo:characterCount",{current:(null==a?void 0:a.length)||0,maxLength:t,minLength:r}),(0===m||v>0)&&(0,n.jsx)(l.Fragment,{children:p("plugin-seo:charactersToGo",{characters:v})}),v<=0&&y>=0&&(0,n.jsx)(l.Fragment,{children:p("plugin-seo:charactersLeftOver",{characters:y})}),y<0&&(0,n.jsx)(l.Fragment,{children:p("plugin-seo:charactersTooMany",{characters:-1*y})})]})}),(0,n.jsx)("div",{style:{backgroundColor:"#F3F3F3",height:"2px",position:"relative",width:"100%"},children:(0,n.jsx)("div",{style:{backgroundColor:s.backgroundColor,height:"100%",left:0,position:"absolute",top:0,width:"".concat(100*f,"%")}})})]})}},35524:(e,t,r)=>{"use strict";r.d(t,{x:()=>n});let n={BROWSE_BY_FOLDER:"browse-by-folder",DASHBOARD_LAYOUT:"dashboard-layout",NAV:"nav"}},35695:(e,t,r)=>{"use strict";var n=r(18999);r.o(n,"useParams")&&r.d(t,{useParams:function(){return n.useParams}}),r.o(n,"usePathname")&&r.d(t,{usePathname:function(){return n.usePathname}}),r.o(n,"useRouter")&&r.d(t,{useRouter:function(){return n.useRouter}}),r.o(n,"useSearchParams")&&r.d(t,{useSearchParams:function(){return n.useSearchParams}})},36148:(e,t)=>
24{"use strict";function r(e){let t,r=e.length,n=0,i=0;for(;i<r;)n++,(t=e.charCodeAt(i++))>=55296&&t<=56319&&i<r&&(64512&(t=e.charCodeAt(i)))==56320&&i++;return n}Object.defineProperty(t,"__esModule",{value:!0}),t.default=r,r.code='require("ajv/dist/runtime/ucs2length").default'},36277:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(70893),i=r(94271),l=r(12115);function o({disableTakeFocusOnClick:e=!1}){let[t]=(0,i.DF)();return(0,l.useEffect)(()=>(0,n.GO)(t,{disableTakeFocusOnClick:e}),[t,e]),null}},36702:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772);t.default={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>(0,n.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,n._)`{multipleOf: ${e}}`},code(e){let{gen:t,data:r,schemaCode:i,it:l}=e,o=l.opts.multipleOfPrecision,a=t.let("res"),s=o?(0,n._)`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:(0,n._)`${a} !== parseInt(${a})`;e.fail$data((0,n._)`(${i} === 0 || (${a} = ${r}/${i}, ${s}))`)}}},36793:(e,t,r)=>{"use strict";let{normalizeIPv6:n,removeDotSegments:i,recomposeAuthority:l,normalizePercentEncoding:o,normalizePathEncoding:a,escapePreservingEscapes:s,reescapeHostDelimiters:u,isIPv4:c,nonSimpleDomain:d}=r(40652),{SCHEMES:f,getSchemeHandler:h}=r(96189);function p(e,t,r,n){let l={};return n||(e=b(m(e,r),r),t=b(m(t,r),r)),!(r=r||{}).tolerant&&t.scheme?(l.scheme=t.scheme,l.userinfo=t.userinfo,l.host=t.host,l.port=t.port,l.path=i(t.path||""),l.query=t.query):(void 0!==t.userinfo||void 0!==t.host||void 0!==t.port?(l.userinfo=t.userinfo,l.host=t.host,l.port=t.port,l.path=i(t.path||""),l.query=t.query):(t.path?("/"===t.path[0]?l.path=i(t.path):(void 0===e.userinfo&&void 0===e.host&&void 0===e.port||e.path?e.path?l.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:l.path=t.path:l.path="/"+t.path,l.path=i(l.path)),l.query=t.query):(l.path=e.path,void 0!==t.query?l.query=t.query:l.query=e.query),l.userinfo=e.userinfo,l.host=e.host,l.port=e.port),l.scheme=e.scheme),l.fragment=t.fragment,l}function m(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),a=[],u=h(n.scheme||r.scheme);u&&u.serialize&&u.serialize(r,n),void 0!==r.path&&(n.skipEscape?r.path=o(r.path):(r.path=s(r.path),void 0!==r.scheme&&(r.path=r.path.split("%3A").join(":")))),"suffix"!==n.reference&&r.scheme&&a.push(r.scheme,":");let c=l(r);if(void 0!==c&&("suffix"!==n.reference&&a.push("//"),a.push(c),r.path&&"/"!==r.path[0]&&a.push("/")),void 0!==r.path){let e=r.path;n.absolutePath||u&&u.absolutePath||(e=i(e)),void 0===c&&"/"===e[0]&&"/"===e[1]&&(e="/%2F"+e.slice(2)),a.push(e)}return void 0!==r.query&&a.push("?",r.query),void 0!==r.fragment&&a.push("#",r.fragment),a.join("")}let y=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function v(e,t){let r=Object.assign({},t),i={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},l=!1,o=!1;"suffix"===r.reference&&(e=r.scheme?r.scheme+":"+e:"//"+e);let s=e.match(y);if(s){i.scheme=s[1],i.userinfo=s[3],i.host=s[4],i.port=parseInt(s[5],10),i.path=s[6]||"",i.query=s[7],i.fragment=s[8],isNaN(i.port)&&(i.port=s[5]);let t=void 0!==s[2]&&i.path&&"/"!==i.path[0]?'URI path must start with "/" when authority is present.':"number"==typeof i.port&&(i.port<0||i.port>65535)?"URI port is malformed.":void 0;if(void 0!==t&&(i.error=i.error||t,l=!0),i.host)if(!1===c(i.host)){let e=n(i.host);i.host=e.host.toLowerCase(),o=e.isIPV6}else o=!0;void 0!==i.scheme||void 0!==i.userinfo||void 0!==i.host||void 0!==i.port||void 0!==i.query||i.path?void 0===i.scheme?i.reference="relative":void 0===i.fragment?i.reference="absolute":i.reference="uri":i.reference="same-document",r.reference&&"suffix"!==r.reference&&r.reference!==i.reference&&(i.error=i.error||"URI is not a "+r.reference+" reference.");let f=h(r.scheme||i.scheme);if(!r.unicodeSupport&&(!f||!f.unicodeSupport)&&i.host&&(r.domainHost||f&&f.domainHost)&&!1===o&&d(i.host))try{i.host=new URL("http://"+i.host).hostname}catch(e){i.error=i.error||"Host's domain name can not be converted to ASCII: "+e}if((!f||f&&!f.skipNormalize)&&(-1!==e.indexOf("%")&&(void 0!==i.scheme&&(i.scheme=unescape(i.scheme)),void 0!==i.host&&(i.host=u(unescape(i.host),o))),i.path&&(i.path=a(i.path)),i.fragment))try{i.fragment=encodeURI(decodeURIComponent(i.fragment))}catch{i.error=i.error||"URI malformed"}f&&f.parse&&f.parse(i,r)}else i.error=i.error||"URI can not be parsed.";return{parsed:i,malformedAuthorityOrPort:l}}function b(e,t){return v(e,t).parsed}function _(e,t){let{parsed:r,malformedAuthorityOrPort:n}=v(e,t);return{normalized:n?e:m(r,t),malformedAuthorityOrPort:n}}function w(e,t){if("string"==typeof e){let{normalized:r,malformedAuthorityOrPort:n}=_(e,t);return n?void 0:r}if("object"==typeof e)return m(e,t)}let x={SCHEMES:f,normalize:function(e,t){return"string"==typeof e?e=_(e,t).normalized:"object"==typeof e&&(e=b(m(e,t),t)),e}
24,resolve:function(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=p(b(e,n),b(t,n),n,!0);return n.skipEscape=!0,m(i,n)},resolveComponent:p,equal:function(e,t,r){let n=w(e,r),i=w(t,r);return void 0!==n&&void 0!==i&&n.toLowerCase()===i.toLowerCase()},serialize:m,parse:b};e.exports=x,e.exports.default=x,e.exports.fastUri=x},38265:(e,t,r)=>{"use strict";function n(e){return(t,r)=>{let n;if("formatting"===((null==r?void 0:r.context)?String(r.context):"standalone")&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):t;n=e.formattingValues[i]||e.formattingValues[t]}else{let t=e.defaultWidth,i=(null==r?void 0:r.width)?String(r.width):e.defaultWidth;n=e.values[i]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}r.d(t,{o:()=>n})},39997:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;let r=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&r.has(e)},t.getRules=function(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},40402:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"/_next/static/media/payload-favicon-dark.c322d81c.png",height:32,width:32,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEVMaXEyMjIzMzM1NTU2NjYzMzMzMzMzMzMyMjIzMzM1NTUyMjIzMzMrTeFiAAAADXRSTlMAg8EpEmvzdo/kIEOg8UAOkgAAAAlwSFlzAAAuIwAALiMBeKU/dgAAADZJREFUeJw1y7kBwDAIBME9PglQ//U68uQDuJkDESvVDbIOTB9k1ssTemRyxekB3yFuSZXw9w8kbAD/5SnsMwAAAABJRU5ErkJggg==",blurWidth:8,blurHeight:8}},40652:e=>{"use strict";let t=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),r=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),l=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function o(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(48!==(r=e[n].charCodeAt(0))){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(!((r=e[n].charCodeAt(0))>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}let a=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function s(e){return e.length=0,!0}function u(e,t,r){if(e.length){let n=o(e);if(""===n)return r.error=!0,!1;t.push(n),e.length=0}return!0}function c(e){if(2>function(e,t){let r=0;for(let t=0;t<e.length;t++)":"===e[t]&&r++;return r}(e,":"))return{host:e,isIPV6:!1};let t=function(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],l=!1,a=!1,c=u;for(let o=0;o<e.length;o++){let u=e[o];if("["!==u&&"]"!==u)if(":"===u){if(!0===l&&(a=!0),!c(i,n,r))break;if(++t>7){r.error=!0;break}o>0&&":"===e[o-1]&&(l=!0),n.push(":");continue}else if("%"===u){if(!c(i,n,r))break;c=s}else{i.push(u);continue}}return i.length&&(c===s?r.zone=i.join(""):a?n.push(i.join("")):n.push(o(i))),r.address=n.join(""),r}(e);if(t.error)return{host:e,isIPV6:!1};{let e=t.address,r=t.address;return t.zone&&(e+="%"+t.zone,r+="%25"+t.zone),{host:e,isIPV6:!0,escapedHost:r}}}let d={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},f=/[@/?#:]/g,h=/[@/?#]/g;function p(e,t){let r=t?h:f;return r.lastIndex=0,e.replace(r,e=>d[e])}e.exports={nonSimpleDomain:a,recomposeAuthority:function(e){let t=[];if(void 0!==e.userinfo&&(t.push(e.userinfo),t.push("@")),void 0!==e.host){let n=unescape(e.host);if(!r(n)){let e=c(n);n=!0===e.isIPV6?`[${e.escapedHost}]`:p(n,!1)}t.push(n)}return("number"==typeof e.port||"string"==typeof e.port)&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0},reescapeHostDelimiters:p,normalizePercentEncoding:function(e,t=!1){if(-1===e.indexOf("%"))return e;let r="";for(let l=0;l<e.length;l++){if("%"===e[l]&&l+2<e.length){let o=e.slice(l+1,l+3);
24if(n(o)){let e=o.toUpperCase(),n=String.fromCharCode(parseInt(e,16));t&&i(n)?r+=n:r+="%"+e,l+=2;continue}}r+=e[l]}return r},normalizePathEncoding:function(e){let t="";for(let r=0;r<e.length;r++){if("%"===e[r]&&r+2<e.length){let l=e.slice(r+1,r+3);if(n(l)){let e=l.toUpperCase(),n=String.fromCharCode(parseInt(e,16));"."!==n&&i(n)?t+=n:t+="%"+e,r+=2;continue}}l(e[r])?t+=e[r]:t+=escape(e[r])}return t},escapePreservingEscapes:function(e){let t="";for(let r=0;r<e.length;r++){if("%"===e[r]&&r+2<e.length){let i=e.slice(r+1,r+3);if(n(i)){t+="%"+i.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t},removeDotSegments:function(e){let t=e,r=[],n=-1,i=0;for(;i=t.length;){if(1===i)if("."===t)break;else if("/"===t){r.push("/");break}else{r.push(t);break}if(2===i){if("."===t[0]){if("."===t[1])break;else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&("."===t[1]||"/"===t[1])){r.push("/");break}}else if(3===i&&"/.."===t){0!==r.length&&r.pop(),r.push("/");break}if("."===t[0]){if("."===t[1]){if("/"===t[2]){t=t.slice(3);continue}}else if("/"===t[1]){t=t.slice(2);continue}}else if("/"===t[0]&&"."===t[1]){if("/"===t[2]){t=t.slice(2);continue}else if("."===t[2]&&"/"===t[3]){t=t.slice(3),0!==r.length&&r.pop();continue}}if(-1===(n=t.indexOf("/",1))){r.push(t);break}r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")},isIPv4:r,isUUID:t,normalizeIPv6:c,stringArrayToHexStripped:o}},40811:(e,t,r)=>{"use strict";r.d(t,{p:()=>l});var n=r(89349),i=r(67491);function l({folderFieldName:e,isUpload:t,relationTo:r,useAsTitle:l,value:o}){let a={id:o?.id,_folderOrDocumentTitle:String(l&&o?.[l]||o.id),createdAt:o?.createdAt,folderID:o?.[e],folderType:o?.folderType||[],updatedAt:o?.updatedAt};return t&&(a.filename=o.filename,a.mimeType=o.mimeType,a.url=o.thumbnailURL||((0,n.w)(o.mimeType)?(0,i.k)({sizes:o.sizes,targetSizeMax:520,targetSizeMin:300,url:o.url,width:o.width}):void 0)),{itemKey:`${r}-${o.id}`,relationTo:r,value:a}}},40983:(e,t,r)=>{"use strict";r.d(t,{Bi:()=>s,lW:()=>d,xg:()=>p});var n=r(69717),i=r(61731),l=r(92749),o=r(32532);function a(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function s(e,t,r){let l=e.getData("application/x-lexical-editor");if(l)try{let e=JSON.parse(l);if(e.namespace===r._config.namespace&&Array.isArray(e.nodes))return u(r,function(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r],l=(0,o.GMe)(n);(0,o.kFe)(l)&&(0,i.Xg)(l),t.push(l)}return t}(e.nodes),t)}catch(e){console.error(e)}let a=e.getData("text/html"),s=e.getData("text/plain");if(a&&s!==a)try{let e=(new DOMParser).parseFromString(window.trustedTypes&&window.trustedTypes.createPolicy?window.trustedTypes.createPolicy("lexical",{createHTML:e=>e}).createHTML(a):a,"text/html");return u(r,(0,n.d)(r,e),t)}catch(e){console.error(e)}let c=s||e.getData("text/uri-list");if(null!=c)if((0,o.I2P)(t)){let e=c.split(/(\r?\n|\t)/);""===e[e.length-1]&&e.pop();for(let t=0;t<e.length;t++){let r=(0,o.vJq)();if((0,o.I2P)(r)){let n=e[t];"\n"===n||"\r\n"===n?r.insertParagraph():" "===n?r.insertNodes([(0,o.ev7)()]):r.insertText(n)}}}else t.insertRawText(c)}function u(e,t,r){e.dispatchCommand(o.oqR,{nodes:t,selection:r})||(r.insertNodes(t),function(e){if((0,o.I2P)(e)&&e.isCollapsed()){let t=e.anchor,r=null,n=(0,o.Ave)(t,"previous");if(n)if((0,o.rN)(n))r=n.origin;else for(let e of(0,o.TJt)(n,(0,o.uwZ)((0,o.NiT)(),"next").getFlipped())){if((0,o.kFe)(e.origin)){r=e.origin;break}if((0,o.ff4)(e.origin)&&!e.origin.isInline())break}if(r&&(0,o.kFe)(r)){let t=r.getFormat(),n=r.getStyle();e.format===t&&e.style===n||(e.format=t,e.style=n,e.dirty=!0)}}}(r))}let c=null;async function d(e,t,r){if(null!==c)return!1;if(null!==t)return new Promise((n,i)=>{e.update(()=>{n(f(e,t,r))})});let n=e.getRootElement(),i=e._window||window,a=i.document,s=(0,o.peL)(i);if(null===n||null===s)return!1;let u=a.createElement("span");u.style.cssText="position: fixed; top: -1000px;",u.append(a.createTextNode("#")),n.append(u);let d=new Range;return d.setStart(u,0),d.setEnd(u,1),s.removeAllRanges(),s.addRange(d),new Promise((t,n)=>{let s=e.registerCommand(o.u5G,n=>((0,l.xj)(n,ClipboardEvent)&&(s(),null!==c&&(i.clearTimeout(c),c=null),t(f(e,n,r))),!0),o.da8);c=i.setTimeout(()=>{s(),c=null,t(!1)},50),a.execCommand("copy"),u.remove()})}function f(e,t,r){if(void 0===r){let t=(0,o.peL)(e._window),n=(0,o.vJq)();if(!n||n.isCollapsed()||!t)return!1;let i=t.anchorNode,l=t.focusNode;if(null!==i&&null!==l&&!(0,o.LYZ)(e,i,l))return!1;r=p(n)}t.preventDefault();let n=t.clipboardData;return null!==n&&(function(e,t){for(let[r]of h)void 0===t[r]&&e.setData(r,"");for(let r in t){let n=t[r];void 0!==n&&e.setData(r,n)}}(n,r),!0)}let h=[["text/html",function(e,t=(0,o.vJq)()){return null==t&&a(166),(0,o.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?"":(0,n.g)(e,t)}],["application/x-lexical-editor",function(e,t=(0,o.vJq)()){return null==t&&a(166),(0,o.I2P)(t)&&t.isCollapsed()||0===t.getNodes().length?null:JSON.stringify(function(e,t){let r=[],n=(0,o.NiT)().getChildren();for(let l=0;l<n.length;l++)!function e(t,r,n,l=[]){let s=null===r||n.isSelected(r),u=(0,o.ff4)(n)&&n.excludeFromCopy("html"),c=n;null!==r&&(0,o.kFe)(c)&&(c=(0,i.SD)(r,c,"clone"));let d=(0,o.ff4)(c)?c.getChildren():[],f=function(e){let t=e.exportJSON(),r=e.constructor;return t.type!==r.getType()&&a(58,r.name),(0,o.ff4)(e)&&(Array.isArray(t.children)||a(59,r.name)),t}(c);(0,o.kFe)(c)&&0===c.getTextContentSize()&&(s=!1);for(let i=0;i<d.length;i++){let l=d[i],a=e(t,r,l,f.children);!s&&(0,o.ff4)(n)&&a&&n.extractWithChild(l,r,"clone")&&(s=!0)}if(s&&!u)l.push(f);else if(Array.isArray(f.children))for(let e=0;e<f.children.length;e++){let t=f.children[e];l.push(t)}return s}(e,t,n[l],r);return{namespace:e._config.namespace,nodes:r}}(e,t))}]];function p(e=(0,o.vJq)()){let t={"text/plain":e?e.getTextContent():""};if(e){let r=(0,o.i0_)();for(let[n,i]of h){let l=i(r,e);null!==l&&(t[n]=l)}}return t}},41394:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});let n=e=>{let t=e.split(" ");return RegExp(t.reduce((e,r,n)=>{let i=r.replace(/[\\^$*+?.()|[\]{}]/g,"\\$&");return`${e}(?=.*(?:(?:[^\\p{L}\\p{N}])|^).*${i}.*(?=[^\\p{L}\\p{N}]|$))${n+1===t.length?".+":""}`},""),"i")}},41412:(e,t,r)=>{"use strict";r.d(t,{a:()=>W,b:()=>q,c:()=>V,d:()=>H,e:()=>ee,f:()=>er,g:()=>en,h:()=>Z,i:()=>X,j:()=>Q,k:()=>ei,l:()=>ea}
24);var n=r(12115);r(47650);var i=r(19749),l=r(95155);function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function s(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function u(e){return function t(){for(var r=this,n=arguments.length,i=Array(n),l=0;l<n;l++)i[l]=arguments[l];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,n=Array(e),l=0;l<e;l++)n[l]=arguments[l];return t.apply(r,[].concat(i,n))}}}function c(e){return({}).toString.call(e).includes("Object")}function d(e){return"function"==typeof e}var f=u(function(e,t){throw Error(e[t]||e.default)})({initialIsRequired:"initial state is required",initialType:"initial state should be an object",initialContent:"initial state shouldn't be an empty object",handlerType:"handler should be an object or a function",handlersType:"all handlers should be a functions",selectorType:"selector should be a function",changeType:"provided value of changes should be an object",changeField:'it seams you want to change a field in the state which is not specified in the "initial" state',default:"an unknown error accured in `state-local` package"}),h={changes:function(e,t){return c(t)||f("changeType"),Object.keys(t).some(function(t){return!Object.prototype.hasOwnProperty.call(e,t)})&&f("changeField"),t},selector:function(e){d(e)||f("selectorType")},handler:function(e){d(e)||c(e)||f("handlerType"),c(e)&&Object.values(e).some(function(e){return!d(e)})&&f("handlersType")},initial:function(e){e||f("initialIsRequired"),c(e)||f("initialType"),Object.keys(e).length||f("initialContent")}};function p(e,t){return d(t)?t(e.current):t}function m(e,t){return e.current=s(s({},e.current),t),t}function y(e,t,r){return d(t)?t(e.current):Object.keys(r).forEach(function(r){var n;return null==(n=t[r])?void 0:n.call(t,e.current[r])}),r}var v={configIsRequired:"the configuration object is required",configType:"the configuration object should be an object",default:"an unknown error accured in `@monaco-editor/loader` package",deprecation:"Deprecation warning!\n You are using deprecated way of configuration.\n\n Instead of using\n monaco.config({ urls: { monacoBase: '...' } })\n use\n monaco.config({ paths: { vs: '...' } })\n\n For more please check the link https://github.com/suren-atoyan/monaco-loader#config\n "},b=(function(e){return function t(){for(var r=this,n=arguments.length,i=Array(n),l=0;l<n;l++)i[l]=arguments[l];return i.length>=e.length?e.apply(this,i):function(){for(var e=arguments.length,n=Array(e),l=0;l<e;l++)n[l]=arguments[l];return t.apply(r,[].concat(i,n))}}})(function(e,t){throw Error(e[t]||e.default)})(v),_=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}},w={type:"cancelation",msg:"operation is manually canceled"};function x(e){var t=!1,r=new Promise(function(r,n){e.then(function(e){return t?n(w):r(e)}),e.catch(n)});return r.cancel=function(){return t=!0},r}var S=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,l,o,a=[],s=!0,u=!1;try{l=(r=r.call(e)).next,!0;for(;!(s=(n=l.call(r)).done)&&(a.push(n.value),a.length!==t);s=!0);}catch(e){u=!0,i=e}finally{try{if(!s&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}(e,2)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}
24(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(({create:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h.initial(e),h.handler(t);var r={current:e},n=u(y)(r,t),i=u(m)(r),l=u(h.changes)(e),o=u(p)(r);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return h.selector(e),e(r.current)},function(e){(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduceRight(function(e,t){return t(e)},e)}})(n,i,l,o)(e)}]}}).create({config:{paths:{vs:"https://cdn.jsdelivr.net/npm/[email protected]/min/vs"}},isInitialized:!1,resolve:null,reject:null,monaco:null}),2),C=S[0],k=S[1];function T(e){return document.body.appendChild(e)}function N(e){var t,r,n=C(function(e){return{config:e.config,reject:e.reject}}),i=(t="".concat(n.config.paths.vs,"/loader.js"),r=document.createElement("script"),t&&(r.src=t),r);return i.onload=function(){return e()},i.onerror=n.reject,i}function E(){var e=C(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 r=t.m||t;P(r),e.resolve(r)},function(t){e.reject(t)})}function P(e){C().monaco||k({monaco:e})}var O=new Promise(function(e,t){return k({resolve:e,reject:t})}),$={init:function(){var e=C(function(e){return{monaco:e.monaco,isInitialized:e.isInitialized,resolve:e.resolve}});if(!e.isInitialized){if(k({isInitialized:!0}),e.monaco)return e.resolve(e.monaco),x(O);if(window.monaco&&window.monaco.editor)return P(window.monaco),e.resolve(window.monaco),x(O);_(T,N)(E)}return x(O)}},A={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},M={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},j=function(e){let{children:t}=e;return n.createElement("div",{style:M.container},t)},D=(0,n.memo)(function(e){let{width:t,height:r,isEditorReady:i,loading:l,_ref:o,className:a,wrapperProps:s}=e;return n.createElement("section",{style:{...A.wrapper,width:t,height:r},...s},!i&&n.createElement(j,null,l),n.createElement("div",{ref:o,style:{...A.fullWidth,...!i&&A.hide},className:a}))}),I=function(e){(0,n.useEffect)(e,[])},F=function(e,t){let r=!(arguments.length>2)||void 0===arguments[2]||arguments[2],i=(0,n.useRef)(!0);(0,n.useEffect)(i.current||!r?()=>{i.current=!1}:e,t)};function R(){}function L(e,t,r,n){var i,l,o,a,s,u;return i=e,l=n,i.editor.getModel(B(i,l))||(o=e,a=t,s=r,u=n,o.editor.createModel(a,s,u?B(o,u):void 0))}function B(e,t){return e.Uri.parse(t)}var z=function(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current},K=new Map,U=(0,n.memo)(function(e){let{defaultValue:t,defaultLanguage:r,defaultPath:i,value:l,language:o,path:a,theme:s="light",line:u,loading:c="Loading...",options:d={},overrideServices:f={},saveViewState:h=!0,keepCurrentModel:p=!1,width:m="100%",height:y="100%",className:v,wrapperProps:b={},beforeMount:_=R,onMount:w=R,onChange:x,onValidate:S=R}=e,[C,k]=(0,n.useState)(!1),[T,N]=(0,n.useState)(!0),E=(0,n.useRef)(null),P=(0,n.useRef)(null),O=(0,n.useRef)(null),A=(0,n.useRef)(w),M=(0,n.useRef)(_),j=(0,n.useRef)(),B=(0,n.useRef)(l),U=z(a),W=(0,n.useRef)(!1),J=(0,n.useRef)(!1);I(()=>{let e=$.init();return e.then(e=>(E.current=e)&&N(!1)).catch(e=>(null==e?void 0:e.type)!=="cancelation"&&console.error("Monaco initialization: error:",e)),()=>{var t,r;return P.current?void(null==(t=j.current)||t.dispose(),p?h&&K.set(a,P.current.saveViewState()):null==(r=P.current.getModel())||r.dispose(),P.current.dispose()):e.cancel()}}),F(()=>{var e,n,s,u;let c=L(E.current,t||l||"",r||o||"",a||i||"");c!==(null==(e=P.current)?void 0:e.getModel())&&(h&&K.set(U,null==(n=P.current)?void 0:n.saveViewState()),null==(s=P.current)||s.setModel(c),h&&(null==(u=P.current)||u.restoreViewState(K.get(a))))},[a],C),F(()=>{var e;null==(e=P.current)||e.updateOptions(d)},[d],C),F(()=>{P.current&&void 0!==l&&(P.current.getOption(E.current.editor.EditorOption.readOnly)?P.current.setValue(l):l!==P.current.getValue()&&(J.current=!0,P.current.executeEdits("",[{range:P.current.getModel().getFullModelRange(),text:l,forceMoveMarkers:!0}]),P.current.pushUndoStop(),J.current=!1))},[l],C),F(()=>{var e,t;let r=null==(e=P.current)?void 0:e.getModel();r&&o&&(null==(t=E.current)||t.editor.setModelLanguage(r,o))},[o],C),F(()=>{var e;void 0!==u&&(null==(e=P.current)||e.revealLine(u))},[u],C),F(()=>{var e;null==(e=E.current)||e.editor.setTheme(s)},[s],C);let q=(0,n.useCallback)(()=>
24{if(!(!O.current||!E.current)&&!W.current){var e;M.current(E.current);let n=a||i,c=L(E.current,l||t||"",r||o||"",n||"");P.current=null==(e=E.current)?void 0:e.editor.create(O.current,{model:c,automaticLayout:!0,...d},f),h&&P.current.restoreViewState(K.get(n)),E.current.editor.setTheme(s),void 0!==u&&P.current.revealLine(u),k(!0),W.current=!0}},[t,r,i,l,o,a,d,f,h,s,u]);return(0,n.useEffect)(()=>{C&&A.current(P.current,E.current)},[C]),(0,n.useEffect)(()=>{T||C||q()},[T,C,q]),B.current=l,(0,n.useEffect)(()=>{var e,t;C&&x&&(null==(e=j.current)||e.dispose(),j.current=null==(t=P.current)?void 0:t.onDidChangeModelContent(e=>{J.current||x(P.current.getValue(),e)}))},[C,x]),(0,n.useEffect)(()=>{if(C){let e=E.current.editor.onDidChangeMarkers(e=>{var t;let r=null==(t=P.current.getModel())?void 0:t.uri;if(r&&e.find(e=>e.path===r.path)){let e=E.current.editor.getModelMarkers({resource:r});null==S||S(e)}});return()=>{null==e||e.dispose()}}return()=>{}},[C,S]),n.createElement(D,{width:m,height:y,isEditorReady:C,loading:c,_ref:O,className:v,wrapperProps:b})});function W(e,t){let r=(0,i.c)(5),[l,o]=(0,n.useState)(e),a=(0,n.useRef)(!0),s,u;r[0]!==e?(s=()=>{if(a.current){a.current=!1;return}o(e)},u=[e],r[0]=e,r[1]=s,r[2]=u):(s=r[1],u=r[2]),(0,n.useEffect)(s,u);let c=null!=l?l:t,d;return r[3]!==c?(d=[c,o],r[3]=c,r[4]=d):d=r[4],d}var J=(0,n.createContext)(void 0),q=e=>{let{children:t,config:r}=e,[i,o]=W(r),{collectionsBySlug:a,globalsBySlug:s}=(0,n.useMemo)(()=>{let e={},t={};for(let t of i.collections)e[t.slug]=t;for(let e of i.globals)t[e.slug]=e;return{collectionsBySlug:e,globalsBySlug:t}},[i]),u=(0,n.useCallback)(e=>{var t,r;return"collectionSlug"in e&&e.collectionSlug?null!=(t=a[e.collectionSlug])?t:null:"globalSlug"in e&&e.globalSlug&&null!=(r=s[e.globalSlug])?r:null},[a,s]),c=(0,n.useMemo)(()=>({config:i,getEntityConfig:u,setConfig:o}),[i,u,o]);return(0,l.jsx)(J,{value:c,children:t})},V=()=>(0,n.use)(J),H=e=>{let t=(0,i.c)(7),{children:r,config:o}=e,{config:a,setConfig:s}=V(),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,n.useEffect)(u,c),a!==o&&a.unauthenticated!==o.unauthenticated){let e;return t[4]!==r||t[5]!==o?(e=(0,l.jsx)(q,{config:o,children:r}),t[4]=r,t[5]=o,t[6]=e):e=t[6],e}return r},G=(0,n.createContext)({autoMode:!0,setTheme:()=>null,theme:"light"});function Y(e,t,r){let n=new Date;n.setTime(n.getTime()+24*r*36e5);let i="expires="+n.toUTCString();document.cookie=e+"="+t+";"+i+";path=/"}var Z="light",X=e=>{let t,r=(0,i.c)(11),{children:o,theme:a}=e,{config:s}=V(),u=s.admin.theme,c="".concat(s.cookiePrefix||"payload","-theme"),[d,f]=(0,n.useState)(a||Z),[h,p]=(0,n.useState)(),m,y;r[0]!==c||r[1]!==u?(m=()=>{if("all"!==u)return;let{theme:e,themeFromCookies:t}=(e=>{var t;let r,n=null==(t=window.document.cookie.split("; ").find(t=>t.startsWith("".concat(e,"="))))?void 0:t.split("=")[1];return r="light"===n||"dark"===n?n:window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",document.documentElement.setAttribute("data-theme",r),{theme:r,themeFromCookies:n}})(c);f(e),p(!t)},y=[u,c],r[0]=c,r[1]=u,r[2]=m,r[3]=y):(m=r[2],y=r[3]),(0,n.useEffect)(m,y),r[4]!==c?(t=e=>{if("light"===e||"dark"===e)f(e),p(!1),Y(c,e,365),document.documentElement.setAttribute("data-theme",e);else if("auto"===e){Y(c,e,-1);let t=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";document.documentElement.setAttribute("data-theme",t),p(!0),f(t)}},r[4]=c,r[5]=t):t=r[5];let v=t,b;return r[6]!==h||r[7]!==o||r[8]!==v||r[9]!==d?(b=(0,l.jsx)(G,{value:{autoMode:h,setTheme:v,theme:d},children:o}),r[6]=h,r[7]=o,r[8]=v,r[9]=d,r[10]=b):b=r[10],b},Q=()=>(0,n.use)(G),ee=(e,t)=>{let r,l=(0,i.c)(9),o=void 0!==t&&t,[a,s]=n.useState(!1),u=n.useRef(void 0),c;l[0]!==e?(c=()=>(s(!1),clearTimeout(u.current),u.current=setTimeout(()=>{s(!0)},e),()=>{clearTimeout(u.current)}),l[0]=e,l[1]=c):c=l[1];let d=c,f,h;return l[2]!==d||l[3]!==o?(f=()=>{o&&d()},h=[d,o],l[2]=d,l[3]=o,l[4]=f,l[5]=h):(f=l[4],h=l[5]),n.useEffect(f,h),l[6]!==a||l[7]!==d?(r=[a,d],l[6]=a,l[7]=d,l[8]=r):r=l[8],r},et="shimmer-effect",er=e=>{let{animationDelay:t="0ms",className:r,disableInlineStyles:n=!1,height:i="60px",transparent:o,width:a="100%",...s}=e;return(0,l.jsx)("div",{...s,className:[et,o&&"".concat(et,"--trans
24parent"),r].filter(Boolean).join(" "),style:{...(null==s?void 0:s.style)||{},height:!n&&("number"==typeof i?"".concat(i,"px"):i),width:!n&&("number"==typeof a?"".concat(a,"px"):a)},children:(0,l.jsx)("div",{className:"shimmer-effect__shine",style:{animationDelay:t}})})},en=e=>{let t,r,n=(0,i.c)(9),{className:o,count:a,height:s,renderDelay:u,shimmerDelay:c,shimmerItemClassName:d,width:f}=e,h=void 0===c?25:c,p="number"==typeof h?"".concat(h,"ms"):h,[m]=ee(void 0===u?500:u,!0);return m?(n[0]!==a?(t=[...Array(a)],n[0]=a,n[1]=t):t=n[1],n[2]!==o||n[3]!==s||n[4]!==p||n[5]!==d||n[6]!==t||n[7]!==f?(r=(0,l.jsx)("div",{className:o,children:t.map((e,t)=>(0,l.jsx)("div",{className:d,children:(0,l.jsx)(er,{animationDelay:"calc(".concat(t," * ").concat(p,")"),height:s,width:f})},t))}),n[2]=o,n[3]=s,n[4]=p,n[5]=d,n[6]=t,n[7]=f,n[8]=r):r=n[8],r):null},ei={insertSpaces:!1,tabSize:4,trimAutoWhitespace:!1},el={hideCursorInOverviewRuler:!0,minimap:{enabled:!1},overviewRulerBorder:!1,readOnly:!1,scrollbar:{alwaysConsumeMouseWheel:!1},scrollBeyondLastLine:!1,wordWrap:"on"},eo="default"in U?U.default:U,ea=e=>{var t;let r=(0,i.c)(10),{className:o,maxHeight:a,minHeight:s,options:u,readOnly:c,recalculatedHeightAt:d,value:f,...h}=e,p=null!=s?s:56,m=n.useRef(d),{insertSpaces:y,tabSize:v,trimAutoWhitespace:b,..._}=u||{},w=(null==u?void 0:u.padding)?(u.padding.top||0)+((null==(t=u.padding)?void 0:t.bottom)||0):0,[x,S]=(0,n.useState)(p),{theme:C}=Q(),k=(null==h?void 0:h.defaultLanguage)?"language--".concat(h.defaultLanguage):"",T=c&&"read-only",N;r[0]!==o||r[1]!==k||r[2]!==T?(N=["code-editor",o,k,T].filter(Boolean),r[0]=o,r[1]=k,r[2]=T,r[3]=N):N=r[3];let E=N.join(" "),P,O;return r[4]!==p||r[5]!==w||r[6]!==d||r[7]!==f?(P=()=>{d&&d>m.current&&(S(f?Math.max(p,18*f.split("\n").length+2+w):p),m.current=d)},O=[f,p,w,d],r[4]=p,r[5]=w,r[6]=d,r[7]=f,r[8]=P,r[9]=O):(P=r[8],O=r[9]),n.useEffect(P,O),(0,l.jsx)(eo,{className:E,height:a?Math.min(x,a):x,loading:(0,l.jsx)(er,{height:x}),options:{...el,..._,readOnly:!!c,detectIndentation:!1,insertSpaces:void 0,tabSize:void 0,trimAutoWhitespace:void 0},theme:"dark"===C?"vs-dark":"vs",value:f,...h,onChange:(e,t)=>
24{var r;null==(r=h.onChange)||r.call(h,e,t),S(e?Math.max(p,18*e.split("\n").length+2+w):p)},onMount:(e,t)=>{var r;null==(r=h.onMount)||r.call(h,e,t);let n=e.getModel();n&&n.updateOptions({insertSpaces:null!=y?y:ei.insertSpaces,tabSize:null!=v?v:ei.tabSize,trimAutoWhitespace:null!=b?b:ei.trimAutoWhitespace}),S(Math.max(p,18*e.getValue().split("\n").length+2+w))}})}},41747:(e,t,r)=>{"use strict";r.d(t,{B9:()=>u,Ej:()=>ez,FY:()=>eP,GA:()=>L,HA:()=>e$,Hv:()=>j,JW:()=>A,Ln:()=>H,NL:()=>D,Ng:()=>p,RN:()=>_,SZ:()=>ee,TX:()=>ej,Xx:()=>h,Ze:()=>E,be:()=>U,cl:()=>Y,cn:()=>ea,hi:()=>eO,hx:()=>b,np:()=>f,nq:()=>eB,o5:()=>s,pA:()=>N,pK:()=>eM,py:()=>y,sJ:()=>T,tV:()=>K,ur:()=>R,xT:()=>eK,xp:()=>eo,zC:()=>O,zp:()=>C});var n=r(32532),i=r(92749),l=r(61721),o=r(40983);let a=/^(\d+(?:\.\d+)?)px$/,s={BOTH:3,COLUMN:2,NO_STATUS:0,ROW:1};class u extends n.fGB{__colSpan;__rowSpan;__headerState;__width;__backgroundColor;__verticalAlign;static getType(){return"tablecell"}static clone(e){return new u(e.__headerState,e.__colSpan,e.__width,e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__rowSpan=e.__rowSpan,this.__backgroundColor=e.__backgroundColor,this.__verticalAlign=e.__verticalAlign}static importDOM(){return{td:e=>({conversion:d,priority:0}),th:e=>({conversion:d,priority:0})}}static importJSON(e){return f().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeaderStyles(e.headerState).setColSpan(e.colSpan||1).setRowSpan(e.rowSpan||1).setWidth(e.width||void 0).setBackgroundColor(e.backgroundColor||null).setVerticalAlign(e.verticalAlign||void 0)}constructor(e=s.NO_STATUS,t=1,r,n){super(n),this.__colSpan=t,this.__rowSpan=1,this.__headerState=e,this.__width=r,this.__backgroundColor=null,this.__verticalAlign=void 0}createDOM(e){let t=document.createElement(this.getTag());return this.__width&&(t.style.width=`${this.__width}px`),this.__colSpan>1&&(t.colSpan=this.__colSpan),this.__rowSpan>1&&(t.rowSpan=this.__rowSpan),null!==this.__backgroundColor&&(t.style.backgroundColor=this.__backgroundColor),c(this.__verticalAlign)&&(t.style.verticalAlign=this.__verticalAlign),(0,n.ZB7)(t,e.theme.tableCell,this.hasHeader()&&e.theme.tableCellHeader),t}exportDOM(e){let t=super.exportDOM(e);if((0,n.sby)(t.element)){let e=t.element;e.setAttribute("data-temporary-table-cell-lexical-key",this.getKey()),e.style.border="1px solid black",this.__colSpan>1&&(e.colSpan=this.__colSpan),this.__rowSpan>1&&(e.rowSpan=this.__rowSpan),e.style.width=`${this.getWidth()||75}px`,e.style.verticalAlign=this.getVerticalAlign()||"top",e.style.textAlign="start",null===this.__backgroundColor&&this.hasHeader()&&(e.style.backgroundColor="#f2f3f5")}return t}exportJSON(){return{...super.exportJSON(),...c(this.__verticalAlign)&&{verticalAlign:this.__verticalAlign},backgroundColor:this.getBackgroundColor(),colSpan:this.__colSpan,headerState:this.__headerState,rowSpan:this.__rowSpan,width:this.getWidth()}}getColSpan(){return this.getLatest().__colSpan}setColSpan(e){let t=this.getWritable();return t.__colSpan=e,t}getRowSpan(){return this.getLatest().__rowSpan}setRowSpan(e){let t=this.getWritable();return t.__rowSpan=e,t}getTag(){return this.hasHeader()?"th":"td"}setHeaderStyles(e,t=s.BOTH){let r=this.getWritable();return r.__headerState=e&t|r.__headerState&~t,r}getHeaderStyles(){return this.getLatest().__headerState}setWidth(e){let t=this.getWritable();return t.__width=e,t}getWidth(){return this.getLatest().__width}getBackgroundColor(){return this.getLatest().__backgroundColor}setBackgroundColor(e){let t=this.getWritable();return t.__backgroundColor=e,t}getVerticalAlign(){return this.getLatest().__verticalAlign}setVerticalAlign(e){let t=this.getWritable();return t.__verticalAlign=e||void 0,t}toggleHeaderStyle(e){let t=this.getWritable();return(t.__headerState&e)===e?t.__headerState-=e:t.__headerState+=e,t}hasHeaderState(e){return(this.getHeaderStyles()&e)===e}hasHeader(){return this.getLatest().__headerState!==s.NO_STATUS}updateDOM(e){return e.__headerState!==this.__headerState||e.__width!==this.__width||e.__colSpan!==this.__colSpan||e.__rowSpan!==this.__rowSpan||e.__backgroundColor!==this.__backgroundColor||e.__verticalAlign!==this.__verticalAlign}isShadowRoot(){return!0}collapseAtStart(){return!0}canBeEmpty(){return!1}canIndent(){return!1}}function c(e){return"middle"===e||"bottom"===e}function d(e){let t,r=e.nodeName.toLowerCase();a.test(e.style.width)&&(t=parseFloat(e.style.width));let i=s.NO_STATUS;"th"===r&&(i="col"===e.getAttribute("scope")?s.COLUMN:s.ROW);let l=f(i,e.colSpan,t);l.__rowSpan=e.rowSpan;let o=e.style.backgroundColor;""!==o&&(l.__backgroundColor=o);let u=e.style.verticalAlign;c(u)&&(l.__verticalAlign=u);let d=e.style,h=(d&&d.textDecoration||"").split(" "),p="700"===d.fontWeight||"bold"===d.fontWeight,m=h.includes("line-through"),y="italic"===d.fontStyle,v=h.includes("underline");return{after:e=>{let t=[],r=null,i=()=>
24{if(r){let e=r.getFirstChild();(0,n.wH$)(e)&&1===r.getChildrenSize()&&e.remove()}};for(let l of e)(0,n.Gew)(l)||(0,n.kFe)(l)||(0,n.wH$)(l)?((0,n.kFe)(l)&&(p&&l.toggleFormat("bold"),m&&l.toggleFormat("strikethrough"),y&&l.toggleFormat("italic"),v&&l.toggleFormat("underline")),r?r.append(l):(r=(0,n.lJ7)().append(l),t.push(r))):(t.push(l),i(),r=null);return i(),0===t.length&&t.push((0,n.lJ7)()),t},node:l}}function f(e=s.NO_STATUS,t=1,r){return(0,n.pTq)(new u(e,t,r))}function h(e){return e instanceof u}let p=(0,n.guI)("INSERT_TABLE_COMMAND");function m(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}class y extends n.fGB{__height;static getType(){return"tablerow"}static clone(e){return new y(e.__height,e.__key)}static importDOM(){return{tr:e=>({conversion:v,priority:0})}}static importJSON(e){return b().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setHeight(e.height)}constructor(e,t){super(t),this.__height=e}exportJSON(){let e=this.getHeight();return{...super.exportJSON(),...void 0===e?void 0:{height:e}}}createDOM(e){let t=document.createElement("tr");return this.__height&&(t.style.height=`${this.__height}px`),(0,n.ZB7)(t,e.theme.tableRow),t}extractWithChild(e,t,r){return"html"===r}isShadowRoot(){return!0}setHeight(e){let t=this.getWritable();return t.__height=e,t}getHeight(){return this.getLatest().__height}updateDOM(e){return e.__height!==this.__height}canBeEmpty(){return!1}canIndent(){return!1}}function v(e){let t;return a.test(e.style.height)&&(t=parseFloat(e.style.height)),{after:e=>(0,i.cE)(e,h),node:b(t)}}function b(e){return(0,n.pTq)(new y(e))}function _(e){return e instanceof y}let w="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,x=w&&"documentMode"in document?document.documentMode:null,S=w&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);function C(e){let t=(0,n.BtT)(e,e=>h(e));return h(t)?t:null}function k(e){let t=(0,n.BtT)(e,e=>_(e));if(_(t))return t;throw Error("Expected table cell to be inside of table row.")}function T(e){let t=(0,n.BtT)(e,e=>ej(e));if(ej(t))return t;throw Error("Expected table cell to be inside of table.")}function N(e){let t=k(e);return T(t).getChildren().findIndex(e=>e.is(t))}function E(e){return k(e).getChildren().findIndex(t=>t.is(e))}w&&"InputEvent"in window&&!x&&new window.InputEvent("input");let P=(e,t)=>e===s.BOTH||e===t?t:s.NO_STATUS;function O(e=!0){let t=(0,n.vJq)();(0,n.I2P)(t)||H(t)||m(188);let r=t.anchor.getNode(),i=t.focus.getNode(),[l]=U(r),[o,,a]=U(i),[,s,u]=z(a,o,l),{startRow:c}=u,{startRow:d}=s;return e?$(c+l.__rowSpan>d+o.__rowSpan?l:o,!0):$(d<c?o:l,!1)}function $(e,t=!0){let[,,r]=U(e),[i,l]=z(r,e,e),o=i[0].length,{startRow:a}=l,u=null;if(t){let t=a+e.__rowSpan-1,l=i[t],c=b();for(let e=0;e<o;e++){let{cell:r,startRow:i}=l[e];if(i+r.__rowSpan-1<=t){let t=P(l[e].cell.__headerState,s.COLUMN);c.append(f(t).append((0,n.lJ7)()))}else r.setRowSpan(r.__rowSpan+1)}let d=r.getChildAtIndex(t);_(d)||m(256),d.insertAfter(c),u=c}else{let e=i[a],t=b();for(let r=0;r<o;r++){let{cell:i,startRow:l}=e[r];if(l===a){let i=P(e[r].cell.__headerState,s.COLUMN);t.append(f(i).append((0,n.lJ7)()))}else i.setRowSpan(i.__rowSpan+1)}let l=r.getChildAtIndex(a);_(l)||m(257),l.insertBefore(t),u=t}return u}function A(e=!0){let t=(0,n.vJq)();(0,n.I2P)(t)||H(t)||m(188);let r=t.anchor.getNode(),i=t.focus.getNode(),[l]=U(r),[o,,a]=U(i),[,s,u]=z(a,o,l),{startColumn:c}=u,{startColumn:d}=s;return e?M(c+l.__colSpan>d+o.__colSpan?l:o,!0):M(d<c?o:l,!1)}function M(e,t=!0,r=!0){let[,,i]=U(e),[l,o]=z(i,e,e),a=l.length,{startColumn:u}=o,c=t?u+e.__colSpan-1:u-1,d=i.getFirstChild();_(d)||m(120);let h=null;function p(e=s.NO_STATUS){let t=f(e).append((0,n.lJ7)());return null===h&&(h=t),t}let y=d;t:for(let e=0;e<a;e++){if(0!==e){let e=y.getNextSibling();_(e)||m(121),y=e}let t=l[e],r=P(t[c<0?0:c].cell.__headerState,s.ROW);if(c<0){F(y,p(r));continue}let{cell:n,startColumn:i,startRow:o}=t[c];if(i+n.__colSpan-1<=c){let i=n,l=o,a=c;for(;l!==e&&i.__rowSpan>1;){if(!((a-=n.__colSpan)>=0)){y.append(p(r));continue t}{let{cell:e,startRow:r}=t[a];i=e,l=r}}i.insertAfter(p(r))}else n.setColSpan(n.__colSpan+1)}null!==h&&r&&I(h);let v=i.getColWidths();if(v){let e=[...v],t=c<0?0:c,r=e[t];e.splice(t,0,r),i.setColWidths(e)}return h}function j(){let e=(0,n.vJq)();(0,n.I2P)(e)||H(e)||m(188);let[t,r]=e.isBackward()?[e.focus.getNode(),e.anchor.getNode()]:[e.anchor.getNode(),e.focus.getNode()],[i,,l]=U(t),[o]=U(r),[a,s,u]=z(l,i,o),{startRow:c}=s,{startRow:d}=u,f=d+o.__rowSpan-1;if(a.length===f-c+1)return void l.remove();let h=a[0].length,p=a[f+1],y=l.getChildAtIndex(f+1);for(let e=f;e>=c;e--){for(let t=h-1;t>=0;t--){let{cell:r,startRow:n,startColumn:i}=a[e][t];if(i===t){if(n<c||n+r.__rowSpan-1>f){let e=Math.max(n,c),t=Math.min(r.__rowSpan+n-1,f),i=e<=t?t-e+1:0;r.setRowSpan(r.__rowSpan-i)}if(n>=c&&n+r.__rowSpan-1>f&&e===f){null===y&&m(122);let n=null;for(let r=0;r<t;r++){let t=p[r],i=t.cell;t.startRow===e+1&&(n=i),i.__colSpan>1&&(r+=i.__colSpan-1)}null===n?F(y,r):n.insertAfter(r)}}}let t=l.getChildAtIndex(e);_(t)||m(206,String(e)),t.remove()}if(void 0!==p){let{cell:e}=p[0];I(e)}else{let{cell:e}=a[c-1][0];I(e)}}function D(){let e=(0,n.vJq)();(0,n.I2P)(e)||H(e)||m(188);let t=e.anchor.getNode(),r=e.focus.getNode(),[i,,l]=U(t),[o]=U(r),[a,s,u]=z(l,i,o),{startColumn:c}
24=s,{startRow:d,startColumn:f}=u,h=Math.min(c,f),p=Math.max(c+i.__colSpan-1,f+o.__colSpan-1),y=p-h+1;if(a[0].length===p-h+1)return l.selectPrevious(),void l.remove();let v=a.length;for(let e=0;e<v;e++)for(let t=h;t<=p;t++){let{cell:r,startColumn:n}=a[e][t];if(n<h){if(t===h){let e=h-n;r.setColSpan(r.__colSpan-Math.min(y,r.__colSpan-e))}}else if(n+r.__colSpan-1>p){if(t===p){let e=p-n+1;r.setColSpan(r.__colSpan-e)}}else r.remove()}let b=a[d],_=c>f?b[c+i.__colSpan]:b[f+o.__colSpan];if(void 0!==_){let{cell:e}=_;I(e)}else{let{cell:e}=f<c?b[f-1]:b[c-1];I(e)}let w=l.getColWidths();if(w){let e=[...w];e.splice(h,y),l.setColWidths(e)}}function I(e){let t=e.getFirstDescendant();null==t?e.selectStart():t.getParentOrThrow().selectStart()}function F(e,t){let r=e.getFirstChild();null!==r?r.insertBefore(t):e.append(t)}function R(e){if(0===e.length)return null;let[t]=K(T(e[0]),null,null),r=1/0,i=-1/0,l=1/0,o=-1/0,a=new Set;for(let n of t)for(let t of n){if(!t||!t.cell)continue;let n=t.cell.getKey();if(!a.has(n)&&e.some(e=>e.is(t.cell))){a.add(n);let e=t.startRow,s=t.startColumn,u=t.cell.__rowSpan||1,c=t.cell.__colSpan||1;r=Math.min(r,e),i=Math.max(i,e+u-1),l=Math.min(l,s),o=Math.max(o,s+c-1)}}if(r===1/0||l===1/0)return null;let s=i-r+1,u=o-l+1,c=t[r][l];if(!c.cell)return null;let d=c.cell;d.setColSpan(u),d.setRowSpan(s);let f=new Set([d.getKey()]);for(let e=r;e<=i;e++)for(let r=l;r<=o;r++){let i=t[e][r];if(!i.cell)continue;let l=i.cell,o=l.getKey();f.has(o)||(f.add(o),function(e){if(1!==e.getChildrenSize())return!1;let t=e.getFirstChildOrThrow();return!(!(0,n.bSg)(t)||!t.isEmpty())}(l)||d.append(...l.getChildren()),l.remove())}return 0===d.getChildrenSize()&&d.append((0,n.lJ7)()),d}function L(){let e=(0,n.vJq)();(0,n.I2P)(e)||H(e)||m(188);let t=e.anchor.getNode(),r=(0,n.BtT)(t,h);return h(r)||m(148),B(r)}function B(e){let[t,r,i]=U(e),l=t.__colSpan,o=t.__rowSpan;if(1===l&&1===o)return;let[a,u]=z(i,t,t),{startColumn:c,startRow:d}=u,h=t.__headerState&s.COLUMN,p=Array.from({length:l},(e,t)=>{let r=h;for(let e=0;0!==r&&e<a.length;e++)r&=a[e][t+c].cell.__headerState;return r}),y=t.__headerState&s.ROW,v=Array.from({length:o},(e,t)=>{let r=y;for(let e=0;0!==r&&e<a[0].length;e++)r&=a[t+d][e].cell.__headerState;return r});if(l>1){for(let e=1;e<l;e++)t.insertAfter(f(p[e]|v[0]).append((0,n.lJ7)()));t.setColSpan(1)}if(o>1){let e;for(let t=1;t<o;t++){let i=d+t,o=a[i];_(e=(e||r).getNextSibling())||m(125);let s=null;for(let e=0;e<c;e++){let t=o[e],r=t.cell;t.startRow===i&&(s=r),r.__colSpan>1&&(e+=r.__colSpan-1)}if(null===s)for(let r=l-1;r>=0;r--)F(e,f(p[r]|v[t]).append((0,n.lJ7)()));else for(let e=l-1;e>=0;e--)s.insertAfter(f(p[e]|v[t]).append((0,n.lJ7)()))}t.setRowSpan(1)}}function z(e,t,r){let[n,i,l]=K(e,t,r);return null===i&&m(207),null===l&&m(208),[n,i,l]}function K(e,t,r){let n=[],i=null,l=null;function o(e){let t=n[e];return void 0===t&&(n[e]=t=[]),t}let a=e.getChildren();for(let e=0;e<a.length;e++){let n=a[e];_(n)||m(209);let s=o(e);for(let u=n.getFirstChild(),c=0;null!=u;u=u.getNextSibling()){for(h(u)||m(147);void 0!==s[c];)c++;let n={cell:u,startColumn:c,startRow:e},{__rowSpan:d,__colSpan:f}=u;for(let t=0;t<d&&!(e+t>=a.length);t++){let r=o(e+t);for(let e=0;e<f;e++)r[c+e]=n}null!==t&&null===i&&t.is(u)&&(i=n),null!==r&&null===l&&r.is(u)&&(l=n)}}return[n,i,l]}function U(e){let t;if(e instanceof u)t=e;else if("__type"in e){let r=(0,n.BtT)(e,h);h(r)||m(148),t=r}else{let r=(0,n.BtT)(e.getNode(),h);h(r)||m(148),t=r}let r=t.getParent();_(r)||m(149);let i=r.getParent();return ej(i)||m(210),[t,r,i]}function W(e,t,r){let n,i=Math.min(t.startColumn,r.startColumn),l=Math.min(t.startRow,r.startRow),o=Math.max(t.startColumn+t.cell.__colSpan-1,r.startColumn+r.cell.__colSpan-1),a=Math.max(t.startRow+t.cell.__rowSpan-1,r.startRow+r.cell.__rowSpan-1);do{n=!1;for(let t=0;t<e.length;t++)for(let r=0;r<e[0].length;r++){let s=e[t][r];if(!s)continue;let u=s.startColumn+s.cell.__colSpan-1,c=s.startRow+s.cell.__rowSpan-1,d=s.startColumn<=o&&u>=i,f=s.startRow<=a&&c>=l;if(d&&f){let e=Math.min(i,s.startColumn),t=Math.max(o,u),r=Math.min(l,s.startRow),d=Math.max(a,c);e===i&&t===o&&r===l&&d===a||(i=e,o=t,l=r,a=d,n=!0)}}}while(n);return{maxColumn:o,maxRow:a,minColumn:i,minRow:l}}function J(e){let[t,,r]=U(e),n=r.getChildren(),i=n.length,l=n[0].getChildren().length,o=Array(i);for(let e=0;e<i;e++)o[e]=Array(l);for(let e=0;e<i;e++){let r=n[e].getChildren(),i=0;for(let n=0;n<r.length;n++){for(;o[e][i];)i++;let l=r[n],a=l.__rowSpan||1,s=l.__colSpan||1;for(let t=0;t<a;t++)for(let r=0;r<s;r++)o[e+t][i+r]=l;if(t===l)return{colSpan:s,columnIndex:i,rowIndex:e,rowSpan:a};i+=s}}return null}function q(e){let[[t,r,i,l],[o,a,s,u]]=["anchor","focus"].map(t=>{let r=e[t].getNode(),i=(0,n.BtT)(r,h);h(i)||m(238,t,r.getKey(),r.getType());let l=i.getParent();_(l)||m(239,t);let o=l.getParent();return ej(o)||m(240,t),[r,i,l,o]});return l.is(u)||m(241),{anchorCell:r,anchorNode:t,anchorRow:i,anch
24orTable:l,focusCell:a,focusNode:o,focusRow:s,focusTable:u}}class V{tableKey;anchor;focus;_cachedNodes;dirty;constructor(e,t,r){this.anchor=t,this.focus=r,t._selection=this,r._selection=this,this._cachedNodes=null,this.dirty=!1,this.tableKey=e}getStartEndPoints(){return[this.anchor,this.focus]}isValid(){if("root"===this.tableKey||"root"===this.anchor.key||"element"!==this.anchor.type||"root"===this.focus.key||"element"!==this.focus.type)return!1;let e=(0,n.nsf)(this.tableKey),t=(0,n.nsf)(this.anchor.key),r=(0,n.nsf)(this.focus.key);return null!==e&&null!==t&&null!==r}isBackward(){return this.focus.isBefore(this.anchor)}getCachedNodes(){return this._cachedNodes}setCachedNodes(e){this._cachedNodes=e}is(e){return H(e)&&this.tableKey===e.tableKey&&this.anchor.is(e.anchor)&&this.focus.is(e.focus)}set(e,t,r){this.dirty=this.dirty||e!==this.tableKey||t!==this.anchor.key||r!==this.focus.key,this.tableKey=e,this.anchor.key=t,this.focus.key=r,this._cachedNodes=null}clone(){return new V(this.tableKey,(0,n.z8s)(this.anchor.key,this.anchor.offset,this.anchor.type),(0,n.z8s)(this.focus.key,this.focus.offset,this.focus.type))}isCollapsed(){return!1}extract(){return this.getNodes()}insertRawText(e){}insertText(){}hasFormat(e){let t=0;this.getNodes().filter(h).forEach(e=>{let r=e.getFirstChild();(0,n.bSg)(r)&&(t|=r.getTextFormat())});let r=n.LZn[e];return 0!=(t&r)}insertNodes(e){let t=this.focus.getNode();(0,n.ff4)(t)||m(151),(0,n.CaD)(t.select(0,t.getChildrenSize())).insertNodes(e)}getShape(){let{anchorCell:e,focusCell:t}=q(this),r=J(e);null===r&&m(153);let n=J(t);null===n&&m(155);let i=Math.min(r.columnIndex,n.columnIndex),l=Math.max(r.columnIndex+r.colSpan-1,n.columnIndex+n.colSpan-1),o=Math.min(r.rowIndex,n.rowIndex),a=Math.max(r.rowIndex+r.rowSpan-1,n.rowIndex+n.rowSpan-1);return{fromX:Math.min(i,l),fromY:Math.min(o,a),toX:Math.max(i,l),toY:Math.max(o,a)}}getNodes(){if(!this.isValid())return[];let e=this._cachedNodes;if(null!==e)return e;let{anchorTable:t,anchorCell:r,focusCell:i}=q(this),l=i.getParents()[1];if(l!==t){if(t.isParentOf(i)){let e=l.getParent();null==e&&m(159),this.set(this.tableKey,i.getKey(),e.getKey())}else{let e=t.getParent();null==e&&m(158),this.set(this.tableKey,e.getKey(),i.getKey())}return this.getNodes()}let[o,a,s]=z(t,r,i),{minColumn:u,maxColumn:c,minRow:d,maxRow:f}=W(o,a,s),h=new Map([[t.getKey(),t]]),p=null;for(let e=d;e<=f;e++)for(let t=u;t<=c;t++){let{cell:r}=o[e][t],i=r.getParent();_(i)||m(160),i!==p&&(h.set(i.getKey(),i),p=i),h.has(r.getKey())||function(e,t){let r=[[e]];for(let e=r.at(-1);void 0!==e&&r.length>0;e=r.at(-1)){let i=e.pop();void 0===i?r.pop():!1!==t(i)&&(0,n.ff4)(i)&&r.push(i.getChildren())}}(r,e=>{h.set(e.getKey(),e)})}let y=Array.from(h.values());return(0,n.GcU)()||(this._cachedNodes=y),y}getTextContent(){let e=this.getNodes().filter(e=>h(e)),t="";for(let r=0;r<e.length;r++){let n=e[r],i=n.__parent,l=(e[r+1]||{}).__parent;t+=n.getTextContent()+(l!==i?"\n":" ")}return t}}function H(e){return e instanceof V}function G(e,t,r){e.getKey(),t.getKey(),r.getKey();let i=(0,n.vJq)(),l=H(i)?i.clone():new V("root",(0,n.z8s)("root",0,"element"),(0,n.z8s)("root",0,"element"));return l.set(e.getKey(),t.getKey(),r.getKey()),l}function Y(e,t=(0,n.i0_)()){let r=(0,n.nsf)(e);ej(r)||m(231,e);let i=ee(r,t.getElementByKey(e));return null===i&&m(232,e),{tableElement:i,tableNode:r}}class Z{focusX;focusY;listenersToRemove;table;isHighlightingCells;anchorX;anchorY;tableNodeKey;anchorCell;focusCell;anchorCellNodeKey;focusCellNodeKey;editor;tableSelection;hasHijackedSelectionStyles;isSelecting;pointerType;shouldCheckSelection;abortController;listenerOptions;nextFocus;constructor(e,t){this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.listenersToRemove=new Set,this.tableNodeKey=t,this.editor=e,this.table={columns:0,domRows:[],rows:0},this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.isSelecting=!1,this.pointerType=null,this.shouldCheckSelection=!1,this.abortController=new AbortController,this.listenerOptions={signal:this.abortController.signal},this.nextFocus=null,this.trackTable()}getTable(){return this.table}removeListeners(){this.abortController.abort("removeListeners"),Array.from(this.listenersToRemove).forEach(e
24=>e()),this.listenersToRemove.clear()}$lookup(){return Y(this.tableNodeKey,this.editor)}trackTable(){let e=new MutationObserver(e=>{this.editor.getEditorState().read(()=>{let t=!1;for(let r=0;r<e.length;r++){let n=e[r].target.nodeName;if("TABLE"===n||"TBODY"===n||"THEAD"===n||"TR"===n){t=!0;break}}if(!t)return;let{tableNode:r,tableElement:n}=this.$lookup();this.table=eu(r,n)},{editor:this.editor})});this.editor.getEditorState().read(()=>{let{tableNode:t,tableElement:r}=this.$lookup();this.table=eu(t,r),e.observe(r,{attributes:!0,childList:!0,subtree:!0})},{editor:this.editor})}$clearHighlight(){let e=this.editor;this.isHighlightingCells=!1,this.anchorX=-1,this.anchorY=-1,this.focusX=-1,this.focusY=-1,this.tableSelection=null,this.anchorCellNodeKey=null,this.focusCellNodeKey=null,this.anchorCell=null,this.focusCell=null,this.hasHijackedSelectionStyles=!1,this.$enableHighlightStyle();let{tableNode:t,tableElement:r}=this.$lookup();ec(e,eu(t,r),null),null!==(0,n.vJq)()&&((0,n.n1P)(null),e.dispatchCommand(n.MvL,void 0))}$enableHighlightStyle(){let e=this.editor,{tableElement:t}=this.$lookup();(0,n.HEf)(t,e._config.theme.tableSelection),t.classList.remove("disable-selection"),this.hasHijackedSelectionStyles=!1}$disableHighlightStyle(){let{tableElement:e}=this.$lookup();(0,n.ZB7)(e,this.editor._config.theme.tableSelection),this.hasHijackedSelectionStyles=!0}$updateTableTableSelection(e){if(null!==e){e.tableKey!==this.tableNodeKey&&m(233,e.tableKey,this.tableNodeKey);let t=this.editor;this.tableSelection=e,this.isHighlightingCells=!0,this.$disableHighlightStyle(),this.updateDOMSelection(),ec(t,this.table,this.tableSelection)}else this.$clearHighlight()}setShouldCheckSelection(){this.shouldCheckSelection=!0}getAndClearShouldCheckSelection(){return!!this.shouldCheckSelection&&(this.shouldCheckSelection=!1,!0)}setNextFocus(e){this.nextFocus=e}getAndClearNextFocus(){let{nextFocus:e}=this;return null!==e&&(this.nextFocus=null),e}updateDOMSelection(){if(null!==this.anchorCell&&null!==this.focusCell){let e=(0,n.peL)(this.editor._window);e&&e.rangeCount>0&&e.removeAllRanges()}}$setFocusCellForSelection(e,t=!1){let r=this.editor,{tableNode:i}=this.$lookup(),l=e.x,o=e.y;if(this.focusCell=e,!this.isHighlightingCells&&(t||this.anchorX!==l||this.anchorY!==o||null!=this.tableSelection&&null!=this.anchorCellNodeKey)&&(this.isHighlightingCells=!0,this.$disableHighlightStyle()),-1!==this.focusX&&-1!==this.focusY&&l===this.focusX&&o===this.focusY)return!1;if(this.focusX=l,this.focusY=o,this.isHighlightingCells){let a=eT(i,e.elem);if(null!=this.tableSelection&&null!=this.anchorCellNodeKey){let e=a;if(null===e&&t&&(e=i.getCellNodeFromCords(l,o,this.table)),null!==e){let t=this.$getAnchorTableCellOrThrow();return this.focusCellNodeKey=e.getKey(),this.tableSelection=G(i,t,e),(0,n.n1P)(this.tableSelection),r.dispatchCommand(n.MvL,void 0),ec(r,this.table,this.tableSelection),!0}}}return!1}$getAnchorTableCell(){return this.anchorCellNodeKey?(0,n.nsf)(this.anchorCellNodeKey):null}$getAnchorTableCellOrThrow(){let e=this.$getAnchorTableCell();return null===e&&m(234),e}$getFocusTableCell(){return this.focusCellNodeKey?(0,n.nsf)(this.focusCellNodeKey):null}$getFocusTableCellOrThrow(){let e=this.$getFocusTableCell();return null===e&&m(235),e}$setAnchorCellForSelection(e){this.isHighlightingCells=!1,this.anchorCell=e,this.anchorX=e.x,this.anchorY=e.y,this.focusX=-1,this.focusY=-1,this.focusCell=null,this.focusCellNodeKey=null;let{tableNode:t}=this.$lookup(),r=eT(t,e.elem);if(null!==r){let e=r.getKey();null!=this.tableSelection?(this.tableSelection=this.tableSelection.clone(),this.tableSelection.set(t.getKey(),e,e)):this.tableSelection=G(t,r,r),this.anchorCellNodeKey=e}}$formatCells(e){let t=(0,n.vJq)();H(t)||m(236);let r=(0,n.uTE)(),i=r.anchor,l=r.focus,o=t.getNodes().filter(h);o.length>0||m(237);let a=o[0].getFirstChild(),s=(0,n.bSg)(a)?a.getFormatFlags(e,null):null;o.forEach(t=>{i.set(t.getKey(),0,"element"),l.set(t.getKey(),t.getChildrenSize(),"element"),r.formatText(e,s)}),(0,n.n1P)(t),this.editor.dispatchCommand(n.MvL,void 0)}$clearText(){let{editor:e}=this,t=(0,n.nsf)(this.tableNodeKey);if(!ej(t))throw Error("Expected TableNode.");let r=(0,n.vJq)();H(r)||m(253);let i=r.getNodes().filter(h),l=t.getFirstChild(),o=t.getLastChild();if(i.length>0&&null!==l&&null!==o&&_(l)&&_(o)&&i[0]===l.getFirstChild()&&i[i.length-1]===o.getLastChild()){t.selectPrevious();let r=t.getParent();return t.remove(),void((0,n.hVZ)(r)&&r.isEmpty()&&e.dispatchCommand(n.XKQ,void 0))}
24i.forEach(e=>{if((0,n.ff4)(e)){let t=(0,n.lJ7)(),r=(0,n.sTu)();t.append(r),e.append(t),e.getChildren().forEach(e=>{e!==t&&e.remove()})}}),ec(e,this.table,null),(0,n.n1P)(null),e.dispatchCommand(n.MvL,void 0)}}let X="__lexicalTableSelection";function Q(e){return(0,n.sby)(e)&&"TABLE"===e.nodeName}function ee(e,t){if(!t)return t;let r=Q(t)?t:e.getDOMSlot(t).element;return"TABLE"!==r.nodeName&&m(245,t.nodeName),r}function et(e){return e._window}function er(e,t){for(let r=t,n=null;null!==r;r=r.getParent()){if(e.is(r))return n;h(r)&&(n=r)}return null}let en=[[n.bbF,"down"],[n.UDz,"up"],[n.AX0,"backward"],[n.JM3,"forward"]],ei=[n.hi0,n.viC,n.WuB],el=[n.gCZ,n.w$Z];function eo(e){return e[X]||null}function ea(e){let t=e;for(;null!=t;){let e=t.nodeName;if("TD"===e||"TH"===e){let e=t._cell;return void 0===e?null:e}t=t.parentNode}return null}function es(e,t){if(!e.contains(t))return null;let r=null;for(let n=t;null!=n;n=n.parentNode){if(n===e)return r;let t=n.nodeName;"TD"!==t&&"TH"!==t||(r=n._cell||null)}return null}function eu(e,t){let r=[],n={columns:0,domRows:r,rows:0},i=ee(e,t).querySelector("tr"),l=0,o=0;for(r.length=0;null!=i;){let e=i.nodeName;if("TD"===e||"TH"===e){let e={elem:i,hasBackgroundColor:""!==i.style.backgroundColor,highlighted:!1,x:l,y:o};i._cell=e;let t=r[o];void 0===t&&(t=r[o]=[]),t[l]=e}else{let e=i.firstChild;if(null!=e){i=e;continue}}let t=i.nextSibling;if(null!=t){l++,i=t;continue}let n=i.parentNode;if(null!=n){let e=n.nextSibling;if(null==e)break;o++,l=0,i=e}}return n.columns=l+1,n.rows=o+1,n}function ec(e,t,r){let n=new Set(r?r.getNodes():[]);ed(t,(t,r)=>{let i=t.elem;n.has(r)?(t.highlighted=!0,ev(e,t)):(t.highlighted=!1,eb(e,t),i.getAttribute("style")||i.removeAttribute("style"))})}function ed(e,t){let{domRows:r}=e;for(let e=0;e<r.length;e++){let i=r[e];if(i)for(let r=0;r<i.length;r++){let l=i[r];if(!l)continue;let o=(0,n.xL4)(l.elem);null!==o&&t(l,o,{x:r,y:e})}}}function ef(e,t){t.$disableHighlightStyle(),ed(t.table,t=>{t.highlighted=!0,ev(e,t)})}function eh(e,t){let r,n;if(t.startColumn===e.minColumn)r="minColumn";else{if(t.startColumn+t.cell.__colSpan-1!==e.maxColumn)return null;r="maxColumn"}if(t.startRow===e.minRow)n="minRow";else{if(t.startRow+t.cell.__rowSpan-1!==e.maxRow)return null;n="maxRow"}return[r,n]}function eg([e,t]){return["minColumn"===e?"maxColumn":"minColumn","minRow"===t?"maxRow":"minRow"]}function ep(e,t,[r,n]){let i=t[n],l=e[i];void 0===l&&m(250,n,String(i));let o=t[r],a=l[o];return void 0===a&&m(250,r,String(o)),a}function em(e,t){if((0,n.I2P)(e)||H(e)){let r=t.isParentOf(e.anchor.getNode()),n=t.isParentOf(e.focus.getNode());return r&&n}return!1}function ey(e,t){t?e.selectStart():e.selectEnd()}function ev(e,t){let r=t.elem,i=e._config.theme;h((0,n.xL4)(r))||m(131),(0,n.ZB7)(r,i.tableCellSelected)}function eb(e,t){let r=t.elem;h((0,n.xL4)(r))||m(131);let i=e._config.theme;(0,n.HEf)(r,i.tableCellSelected)}function e_(e){let t=(0,n.BtT)(e,h);return h(t)?t:null}function ew(e){let t=(0,n.BtT)(e,ej);return ej(t)?t:null}function ex(e){e.preventDefault(),e.stopImmediatePropagation(),e.stopPropagation()}function eS(e,t,r){let i=(0,n.lJ7)();"first"===e?t.insertBefore(i):t.insertAfter(i),i.append(...r||[]),i.selectEnd()}function eC(e,t,r){let i=r.getParent();if(!i)return;let l=(0,n.peL)(et(e));if(!l)return;let o=l.anchorNode,a=e.getElementByKey(i.getKey()),s=ee(r,e.getElementByKey(r.getKey()));if(!o||!a||!s||!a.contains(o)||s.contains(o))return;let u=(0,n.BtT)(t.anchor.getNode(),e=>h(e));if(!u)return;let c=(0,n.BtT)(u,e=>ej(e));if(!ej(c)||!c.is(r))return;let[d,f]=z(r,u,u),p=d[0][0],m=d[d.length-1][d[0].length-1],{startRow:y,startColumn:v}=f,b=y===p.startRow&&v===p.startColumn,_=y===m.startRow&&v===m.startColumn;return b?"first":_?"last":void 0}function ek(e,t){let{tableNode:r}=e.$lookup(),n=r.getCordsFromCellNode(t,e.table);return r.getDOMCellFromCordsOrThrow(n.x,n.y,e.table)}function eT(e,t,r){return er(e,(0,n.xL4)(t,r))}function eN(e,t,r){if(!t.theme.tableAlignment)return;let i=[],l=[];for(let e of["center","right"]){let n=t.theme.tableAlignment[e];n&&(e===r?l:i).push(n)}(0,n.HEf)(e,...i),(0,n.ZB7)(e,...l)}let eE=new WeakSet;function eP(e=(0,n.i0_)()){return eE.has(e)}function eO(e,t){t?eE.add(e):eE.delete(e)}class e$ extends n.fGB{__rowStriping;__frozenColumnCount;__frozenRowCount;__colWidths;static getType(){return"table"}getColWidths(){return this.getLatest().__colWidths}setColWidths(e){let t=this.getWritable();return t.__colWidths=e,t}static clone(e){return new e$(e.__key)}afterCloneFrom(e){super.afterCloneFrom(e),this.__colWidths=e.__colWidths,this.__rowStriping=e.__rowStriping,this.__frozenColumnCount=e.__frozenColumnCount,this.__frozenRowCount=e.__frozenRowCount}static importDOM(){return{table:e=>({conversion:eA,priority:1})}}static importJSON(e){return eM().updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setRowStriping(e.rowStriping||!1).setFrozenColumns(e.frozenColumnCount||0).setFrozenRows(e.frozenRowCount||0).setColWidths(e.colWidths)}constructor(e){super(e),this.__rowStriping=!1,this.__frozenColumnCount=0,this.__frozenRowCount=0,this.__colWidths=void 0}exportJSON(){return{...super.exportJSON(),colWidths:this.getColWidths(),frozenColumnCount:this.__frozenColumnCount?this.__frozenColumnCount:void 0,frozenRowCount:this.__frozenRowCount?this.__frozenRowCount:void 0,rowStriping:this.__rowStriping?this.__rowStriping:void 0}}extractWithChild(e,t,r){return"html"===r}getDOMSlot(e){let t=Q(e)?e:e.querySelector("table");return Q(t)||m(229),super.getDOMSlot(e).withElement(t).withAfter(t.querySelector("colgroup"))}createDOM(e,t){let r=document.createElement("table");this.__style&&(r.style.cssText=this.__style);let i=document.createElement("colgroup");if(r.appendChild(i),(0,n.pd8)(i),(0,n.ZB7)(r,e.theme.table),this.updateTableElement(null,r,e),eP(t)){let t=document.createElement("div"),i=e.theme.tableScrollableWrapper;return i?(0,n.ZB7)(t,i):t.style.cssText="overflow-x: auto;",t.appendChild(r),this.updateTableWrapper(null,t,r,e),t}return r}
24updateTableWrapper(e,t,r,i){this.__frozenColumnCount!==(e?e.__frozenColumnCount:0)&&(this.__frozenColumnCount>0?((0,n.ZB7)(t,i.theme.tableFrozenColumn),r.setAttribute("data-lexical-frozen-column","true")):((0,n.HEf)(t,i.theme.tableFrozenColumn),r.removeAttribute("data-lexical-frozen-column"))),this.__frozenRowCount!==(e?e.__frozenRowCount:0)&&(this.__frozenRowCount>0?((0,n.ZB7)(t,i.theme.tableFrozenRow),r.setAttribute("data-lexical-frozen-row","true")):((0,n.HEf)(t,i.theme.tableFrozenRow),r.removeAttribute("data-lexical-frozen-row")))}updateTableElement(e,t,r){this.__style!==(e?e.__style:"")&&(t.style.cssText=this.__style),this.__rowStriping!==(!!e&&e.__rowStriping)&&(this.__rowStriping?((0,n.ZB7)(t,r.theme.tableRowStriping),t.setAttribute("data-lexical-row-striping","true")):((0,n.HEf)(t,r.theme.tableRowStriping),t.removeAttribute("data-lexical-row-striping"))),function(e,t,r,n){let i=e.querySelector("colgroup");if(!i)return;let l=[];for(let e=0;e<r;e++){let t=document.createElement("col"),r=n&&n[e];r&&(t.style.width=`${r}px`),l.push(t)}i.replaceChildren(...l)}(t,0,this.getColumnCount(),this.getColWidths()),eN(t,r,this.getFormatType())}updateDOM(e,t,r){let i=this.getDOMSlot(t).element;return t===i===eP()||((0,n.sby)(t)&&"DIV"===t.nodeName&&this.updateTableWrapper(e,t,i,r),this.updateTableElement(e,i,r),!1)}exportDOM(e){let t=super.exportDOM(e),{element:r}=t;return{after:r=>{if(t.after&&(r=t.after(r)),!Q(r)&&(0,n.sby)(r)&&(r=r.querySelector("table")),!Q(r))return null;eN(r,e._config,this.getFormatType());let[i]=K(this,null,null),l=new Map;for(let e of i)for(let t of e){let e=t.cell.getKey();l.has(e)||l.set(e,{colSpan:t.cell.getColSpan(),startColumn:t.startColumn})}let o=new Set;for(let e of r.querySelectorAll(":scope > tr > [data-temporary-table-cell-lexical-key]")){let t=e.getAttribute("data-temporary-table-cell-lexical-key");if(t){let r=l.get(t);if(e.removeAttribute("data-temporary-table-cell-lexical-key"),r){l.delete(t);for(let e=0;e<r.colSpan;e++)o.add(e+r.startColumn)}}}let a=r.querySelector(":scope > colgroup");if(a){let e=Array.from(r.querySelectorAll(":scope > colgroup > col")).filter((e,t)=>o.has(t));a.replaceChildren(...e)}let s=r.querySelectorAll(":scope > tr");if(s.length>0){let e=document.createElement("tbody");for(let t of s)e.appendChild(t);r.append(e)}return r},element:!Q(r)&&(0,n.sby)(r)?r.querySelector("table"):r}}canBeEmpty(){return!1}isShadowRoot(){return!0}getCordsFromCellNode(e,t){let{rows:r,domRows:n}=t;for(let t=0;t<r;t++){let r=n[t];if(null!=r)for(let n=0;n<r.length;n++){let i=r[n];if(null==i)continue;let{elem:l}=i,o=eT(this,l);if(null!==o&&e.is(o))return{x:n,y:t}}}throw Error("Cell not found in table.")}getDOMCellFromCords(e,t,r){let{domRows:n}=r,i=n[t];if(null==i)return null;let l=i[e<i.length?e:i.length-1];return null==l?null:l}getDOMCellFromCordsOrThrow(e,t,r){let n=this.getDOMCellFromCords(e,t,r);if(!n)throw Error("Cell not found at cords.");return n}getCellNodeFromCords(e,t,r){let i=this.getDOMCellFromCords(e,t,r);if(null==i)return null;let l=(0,n.xL4)(i.elem);return h(l)?l:null}getCellNodeFromCordsOrThrow(e,t,r){let n=this.getCellNodeFromCords(e,t,r);if(!n)throw Error("Node at cords not TableCellNode.");return n}getRowStriping(){return!!this.getLatest().__rowStriping}setRowStriping(e){let t=this.getWritable();return t.__rowStriping=e,t}setFrozenColumns(e){let t=this.getWritable();return t.__frozenColumnCount=e,t}getFrozenColumns(){return this.getLatest().__frozenColumnCount}setFrozenRows(e){let t=this.getWritable();return t.__frozenRowCount=e,t}getFrozenRows(){return this.getLatest().__frozenRowCount}canSelectBefore(){return!0}canIndent(){return!1}getColumnCount(){let e=this.getFirstChild();if(!e)return 0;let t=0;
24return e.getChildren().forEach(e=>{h(e)&&(t+=e.getColSpan())}),t}}function eA(e){let t=eM();e.hasAttribute("data-lexical-row-striping")&&t.setRowStriping(!0),e.hasAttribute("data-lexical-frozen-column")&&t.setFrozenColumns(1),e.hasAttribute("data-lexical-frozen-row")&&t.setFrozenRows(1);let r=e.querySelector(":scope > colgroup");if(r){let e=[];for(let t of r.querySelectorAll(":scope > col")){let r=t.style.width||"";if(!a.test(r)&&(r=t.getAttribute("width")||"",!/^\d+$/.test(r))){e=void 0;break}e.push(parseFloat(r))}e&&t.setColWidths(e)}return{after:e=>(0,i.cE)(e,_),node:t}}function eM(){return(0,n.pTq)(new e$)}function ej(e){return e instanceof e$}function eD(e){_(e.getParent())?e.isEmpty()&&e.append((0,n.lJ7)()):e.remove()}function eI(e){ej(e.getParent())?(0,i.vF)(e,h):e.remove()}function eF(e){(0,i.vF)(e,_);let[t]=K(e,null,null),r=t.reduce((e,t)=>Math.max(e,t.length),0),l=e.getChildren();for(let e=0;e<t.length;++e){let i=l[e];if(!i)continue;_(i)||m(254,i.constructor.name,i.getType());let o=t[e].reduce((e,t)=>t?1+e:e,0);if(o!==r)for(let e=o;e<r;++e){let e=f();e.append((0,n.lJ7)()),i.append(e)}}let o=e.getColWidths(),a=e.getColumnCount();if(o&&o.length!==a){let t;if(a<o.length)t=o.slice(0,a);else if(o.length>0){let e=o[o.length-1];t=[...o,...Array(a-o.length).fill(e)]}e.setColWidths(t)}}function eR(e){if(e.detail<3||!(0,n.vAA)(e.target))return!1;let t=(0,n.xL4)(e.target);if(null===t)return!1;let r=(0,n.BtT)(t,e=>(0,n.ff4)(e)&&!e.isInline());return null!==r&&!!h(r.getParent())&&(r.select(0),!0)}function eL(){let e=(0,n.vJq)();if(!(0,n.I2P)(e))return!1;let t=ew(e.anchor.getNode());if(null===t)return!1;let r=(0,n.NiT)();if(!r.is(t.getParent())||1!==r.getChildrenSize())return!1;let[i]=K(t,null,null);if(0===i.length||0===i[0].length)return!1;let l=i[0][0];if(!l||!l.cell)return!1;let o=i[i.length-1],a=o[o.length-1];if(!a||!a.cell)return!1;let s=G(t,l.cell,a.cell);return(0,n.n1P)(s),!0}function eB(e){return e.registerNodeTransform(u,e=>{if(e.getColSpan()>1||e.getRowSpan()>1){let[,,t]=U(e),[r]=z(t,e,e),n=r.length,l=r[0].length,o=t.getFirstChild();_(o)||m(175);let a=[];for(let e=0;e<n;e++){0!==e&&(_(o=o.getNextSibling())||m(175));let t=null;for(let n=0;n<l;n++){let l=r[e][n],s=l.cell;if(l.startRow===e&&l.startColumn===n)t=s,a.push(s);else if(s.getColSpan()>1||s.getRowSpan()>1){h(s)||m(176);let e=f(s.__headerState);null!==t?t.insertAfter(e):(0,i.K2)(o,e)}}}for(let e of a)e.setColSpan(1),e.setRowSpan(1)}})}function ez(e,t=!0){let r=new Map,l=(l,a,s)=>{let u=ee(l,s),c=function(e,t,r,l){let a=r.getRootElement(),s=et(r);null!==a&&null!==s||m(246);let u=new Z(r,e.getKey()),c=ee(e,t);null!==eo(c)&&m(205),c[X]=u,u.listenersToRemove.add(()=>{eo(c)===u&&delete c[X]});let d=t=>{if(u.pointerType=t.pointerType,0!==t.button||!(0,n.vAA)(t.target)||!s)return;let i=ea(t.target);null!==i&&r.update(()=>{let r=(0,n.S1w)();if(S&&t.shiftKey&&em(r,e)&&((0,n.I2P)(r)||H(r))){let n=r.anchor.getNode(),l=er(e,r.anchor.getNode());
24l?(u.$setAnchorCellForSelection(ek(u,l)),u.$setFocusCellForSelection(i),ex(t)):(e.isBefore(n)?e.selectStart():e.selectEnd()).anchor.set(r.anchor.key,r.anchor.offset,r.anchor.type)}else"touch"!==t.pointerType&&u.$setAnchorCellForSelection(i)}),(e=>{if(u.isSelecting)return;u.isSelecting=!0,null!==e&&null===u.anchorCell&&r.update(()=>{u.$setAnchorCellForSelection(e)});let t=()=>{u.isSelecting=!1,s.removeEventListener("pointerup",t),s.removeEventListener("pointermove",i)},i=e=>{if(1&~e.buttons&&u.isSelecting)return u.isSelecting=!1,s.removeEventListener("pointerup",t),void s.removeEventListener("pointermove",i);if(!(0,n.vAA)(e.target))return;let l=null,o=!(S||c.contains(e.target));if(o)l=es(c,e.target);else for(let t of document.elementsFromPoint(e.clientX,e.clientY))if(l=es(c,t))break;if(l){let e=l;null===u.anchorCell&&r.update(()=>{u.$setAnchorCellForSelection(e)}),null!==u.focusCell&&l.elem===u.focusCell.elem||(u.setNextFocus({focusCell:l,override:o}),r.dispatchCommand(n.MvL,void 0))}};s.addEventListener("pointerup",t,u.listenerOptions),s.addEventListener("pointermove",i,u.listenerOptions)})(i)};c.addEventListener("pointerdown",d,u.listenerOptions),u.listenersToRemove.add(()=>{c.removeEventListener("pointerdown",d)});let f=e=>{e.detail>=3&&(0,n.vAA)(e.target)&&null!==ea(e.target)&&e.preventDefault()};c.addEventListener("mousedown",f,u.listenerOptions),u.listenersToRemove.add(()=>{c.removeEventListener("mousedown",f)});let p=e=>{let t=e.target;0===e.button&&(0,n.vAA)(t)&&r.update(()=>{let e=(0,n.vJq)();H(e)&&e.tableKey===u.tableNodeKey&&a.contains(t)&&u.$clearHighlight()})};for(let[t,i]of(s.addEventListener("pointerdown",p,u.listenerOptions),u.listenersToRemove.add(()=>{s.removeEventListener("pointerdown",p)}),en))u.listenersToRemove.add(r.registerCommand(t,t=>(function e(t,r,i,l,o){if(("up"===i||"down"===i)&&function(e){let t=e.getRootElement();return!!t&&t.hasAttribute("aria-controls")&&"typeahead-menu"===t.getAttribute("aria-controls")}(t))return!1;let a=(0,n.vJq)();if(!em(a,l)){if((0,n.I2P)(a)){if("backward"===i){if(a.focus.offset>0)return!1;let e=function(e){for(let t=e,r=e;null!==r;t=r,r=r.getParent())if((0,n.ff4)(r)){if(r!==t&&r.getFirstChild()!==t)return null;if(!r.isInline())return r}return null}(a.focus.getNode());if(!e)return!1;let t=e.getPreviousSibling();return!!ej(t)&&(ex(r),r.shiftKey?a.focus.set(t.getParentOrThrow().getKey(),t.getIndexWithinParent(),"element"):t.selectEnd(),!0)}if(r.shiftKey&&("up"===i||"down"===i)){let e=a.focus.getNode();if(!a.isCollapsed()&&("up"===i&&!a.isBackward()||"down"===i&&a.isBackward())){let t=(0,n.BtT)(e,e=>ej(e));if(h(t)&&(t=(0,n.BtT)(t,ej)),t!==l||!t)return!1;let o="down"===i?t.getNextSibling():t.getPreviousSibling();if(!o)return!1;let s=0;"up"===i&&(0,n.ff4)(o)&&(s=o.getChildrenSize());let u=o;"up"===i&&(0,n.ff4)(o)&&(u=o.getLastChild()||o,s=(0,n.kFe)(u)?u.getTextContentSize():0);let c=a.clone();return c.focus.set(u.getKey(),s,(0,n.kFe)(u)?"text":"element"),(0,n.n1P)(c),ex(r),!0}if((0,n.IqF)(e)){let e="up"===i?a.getNodes()[a.getNodes().length-1]:a.getNodes()[0];if(e&&null!==er(l,e)){let e=l.getFirstDescendant(),t=l.getLastDescendant();if(!e||!t)return!1;let[r]=U(e),[n]=U(t),i=l.getCordsFromCellNode(r,o.table),a=l.getCordsFromCellNode(n,o.table),s=l.getDOMCellFromCordsOrThrow(i.x,i.y,o.table),u=l.getDOMCellFromCordsOrThrow(a.x,a.y,o.table);return o.$setAnchorCellForSelection(s),o.$setFocusCellForSelection(u,!0),!0}return!1}{let t=(0,n.BtT)(e,e=>(0,n.ff4)(e)&&!e.isInline());if(h(t)&&(t=(0,n.BtT)(t,ej)),!t)return!1;let l="down"===i?t.getNextSibling():t.getPreviousSibling();if(ej(l)&&o.tableNodeKey===l.getKey()){let e=l.getFirstDescendant(),t=l.getLastDescendant();if(!e||!t)return!1;let[o]=U(e),[s]=U(t),u=a.clone();return u.focus.set(("up"===i?o:s).getKey(),"up"===i?0:s.getChildrenSize(),"element"),ex(r),(0,n.n1P)(u),!0}}}}return"down"===i&&eP(t)&&o.setShouldCheckSelection(),!1}if((0,n.I2P)(a)){if("backward"===i||"forward"===i)return function(e,t,r,i,l,o,a){let s=(0,n.Ave)(r.focus,l?"previous":"next");if((0,n.pGK)(s))return!1;let u=s;for(let e of(0,n.mWO)(s).iterNodeCarets("shadowRoot")){if(!(0,n.OpE)(e)||!(0,n.ff4)(e.origin))return!1;u=e}let c=u.getParentAtCaret();if(!h(c))return!1;let d=function(e){for(let t of(0,n.mWO)(e).iterNodeCarets("root")){let{origin:r}=t;if(h(r)){if((0,n.cmH)(t))return(0,n.uwZ)(r,e.direction)}else if(!_(r))break}return null}((0,n.IlV)(c,u.direction)),f=(0,n.BtT)(c,ej);if(!f||!f.is(o))return!1;let p=e.getElementByKey(c.getKey()),y=ea(p);if(!p||!y)return!1;if(a.table=function(e,t){let r=e.getElementByKey(t.getKey());return null===r&&m(230),eu(t,r)}(e,f),d)if("extend"===i){let t=ea(e.getElementByKey(d.origin.getKey()));if(!t)return!1;
24a.$setAnchorCellForSelection(y),a.$setFocusCellForSelection(t,!0)}else{let e=(0,n.lSZ)(d);(0,n.wp6)(r.anchor,e),(0,n.wp6)(r.focus,e)}else if("extend"===i)a.$setAnchorCellForSelection(y),a.$setFocusCellForSelection(y,!0);else{let e=function(e){let t=(0,n.erb)(e);return(0,n.cmH)(t)?(0,n.lSZ)(t):e}((0,n.IlV)(f,s.direction));(0,n.wp6)(r.anchor,e),(0,n.wp6)(r.focus,e)}return ex(t),!0}(t,r,a,r.shiftKey?"extend":"move","backward"===i,l,o);if(a.isCollapsed()){let s,{anchor:u,focus:c}=a,d=(0,n.BtT)(u.getNode(),h),f=(0,n.BtT)(c.getNode(),h);if(!h(d)||!d.is(f))return!1;let p=ew(d);if(p!==l&&null!=p){let n=ee(p,t.getElementByKey(p.getKey()));if(null!=n)return o.table=eu(p,n),e(t,r,i,p,o)}let m=t.getElementByKey(d.__key),y=t.getElementByKey(u.key);if(null==y||null==m)return!1;if("element"===u.type)s=y.getBoundingClientRect();else{let e=(0,n.peL)(et(t));if(null===e||0===e.rangeCount)return!1;s=e.getRangeAt(0).getBoundingClientRect()}let v="up"===i?d.getFirstChild():d.getLastChild();if(null==v)return!1;let b=t.getElementByKey(v.__key);if(null==b)return!1;let _=b.getBoundingClientRect();if("up"===i?_.top>s.top-s.height:s.bottom+s.height>_.bottom){ex(r);let e=l.getCordsFromCellNode(d,o.table);if(!r.shiftKey)return((e,t,r,n,i)=>{let l="forward"===i;switch(i){case"backward":case"forward":return r!==(l?e.table.columns-1:0)?ey(t.getCellNodeFromCordsOrThrow(r+(l?1:-1),n,e.table),l):n!==(l?e.table.rows-1:0)?ey(t.getCellNodeFromCordsOrThrow(l?0:e.table.columns-1,n+(l?1:-1),e.table),l):l?t.selectNext():t.selectPrevious(),!0;case"up":return 0!==n?ey(t.getCellNodeFromCordsOrThrow(r,n-1,e.table),!1):t.selectPrevious(),!0;case"down":return n!==e.table.rows-1?ey(t.getCellNodeFromCordsOrThrow(r,n+1,e.table),!0):t.selectNext(),!0;default:return!1}})(o,l,e.x,e.y,i);{let t=l.getDOMCellFromCordsOrThrow(e.x,e.y,o.table);o.$setAnchorCellForSelection(t),o.$setFocusCellForSelection(t,!0)}return!0}}}else if(H(a)){let{anchor:e,focus:s}=a,u=(0,n.BtT)(e.getNode(),h),c=(0,n.BtT)(s.getNode(),h),[d]=a.getNodes();ej(d)||m(251);let f=ee(d,t.getElementByKey(d.getKey()));if(!h(u)||!h(c)||!ej(d)||null==f)return!1;o.$updateTableTableSelection(a);let p=eu(d,f),y=l.getCordsFromCellNode(u,p),v=l.getDOMCellFromCordsOrThrow(y.x,y.y,p);if(o.$setAnchorCellForSelection(v),ex(r),r.shiftKey){let[e,t,r]=z(l,u,c);return function(e,t,r,n,i){let l=W(t,r,n),{topSpan:o,leftSpan:a,bottomSpan:s,rightSpan:u}=function(e,t){let{minColumn:r,maxColumn:n,minRow:i,maxRow:l}=t,o=1,a=1,s=1,u=1,c=e[i],d=e[l];for(let e=r;e<=n;e++)o=Math.max(o,c[e].cell.__rowSpan),u=Math.max(u,d[e].cell.__rowSpan);for(let t=i;t<=l;t++)a=Math.max(a,e[t][r].cell.__colSpan),s=Math.max(s,e[t][n].cell.__colSpan);return{bottomSpan:u,leftSpan:a,rightSpan:s,topSpan:o}}(t,l),[c,d]=eg(function(e,t){let r=eh(e,t);return null===r&&m(249,t.cell.getKey()),r}(l,r)),f=l[c],h=l[d];"forward"===i?f+="maxColumn"===c?1:a:"backward"===i?f-="minColumn"===c?1:u:"down"===i?h+="maxRow"===d?1:o:"up"===i&&(h-="minRow"===d?1:s);let p=t[h];if(void 0===p)return!1;let y=p[f];if(void 0===y)return!1;let[v,b]=function(e,t,r){let n=W(e,t,r),i=eh(n,t);if(i)return[ep(e,n,i),ep(e,n,eg(i))];let l=eh(n,r);if(l)return[ep(e,n,eg(l)),ep(e,n,l)];let o=["minColumn","minRow"];return[ep(e,n,o),ep(e,n,eg(o))]}(t,r,y),_=ek(e,v.cell),w=ek(e,b.cell);return e.$setAnchorCellForSelection(_),e.$setFocusCellForSelection(w,!0),!0}(o,e,t,r,i)}return c.selectEnd(),!0}return!1})(r,t,i,e,u),n.WgU));u.listenersToRemove.add(r.registerCommand(n.Q$N,t=>{let r=(0,n.vJq)();if(H(r)){let n=er(e,r.focus.getNode());if(null!==n)return ex(t),n.selectEnd(),!0}return!1},n.WgU));let y=t=>()=>{let r=(0,n.vJq)();if(!em(r,e))return!1;if(H(r))return u.$clearText(),!0;if((0,n.I2P)(r)){if(!h(er(e,r.anchor.getNode())))return!1;let i=r.anchor.getNode(),l=r.focus.getNode(),o=e.isParentOf(i),a=e.isParentOf(l);if(o&&!a||a&&!o)return u.$clearText(),!0;let s=(0,n.BtT)(r.anchor.getNode(),e=>(0,n.ff4)(e)),c=s&&(0,n.BtT)(s,e=>(0,n.ff4)(e)&&h(e.getParent()));if(!(0,n.ff4)(c)||!(0,n.ff4)(s))return!1;if(t===n.viC&&null===c.getPreviousSibling())return!0}return!1};for(let e of ei)u.listenersToRemove.add(r.registerCommand(e,y(e),n.WgU));let v=t=>{let r=(0,n.vJq)();if(!H(r)&&!(0,n.I2P)(r))return!1;let i=e.isParentOf(r.anchor.getNode());if(i!==e.isParentOf(r.focus.getNode())){let t=i?"focus":"anchor",{key:n,offset:l,type:o}=r[t];return e[r[i?"anchor":"focus"].isBefore(r[t])?"selectPrevious":"selectNext"]()[t].set(n,l,o),!1}return!!em(r,e)&&!!H(r)&&(t&&(t.preventDefault(),t.stopPropagation()),u.$clearText(),!0)};for(let e of el)u.listenersToRemove.add(r.registerCommand(e,v,n.WgU));return u.listenersToRemove.add(r.registerCommand(n.VSO,e=>{let t=(0,n.vJq)();if(t){if(!H(t)&&!(0,n.I2P)(t))return!1;(0,o.lW)(r,(0,i.xj)(e,ClipboardEvent)?e:null,(0,o.xg)(t));let l=v(e);return(0,n.I2P)(t)?(t.removeText(),!0):l}return!1},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.mB,t=>{let r=(0,n.vJq)();if(!em(r,e))return!1;if(H(r))return u.$formatCells(t),!0;if((0,n.I2P)(r)){let e=(0,n.BtT)(r.anchor.getNode(),e=>h(e));h(e)}return!1},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.fUS,t=>{let r=(0,n.vJq)();if(!H(r)||!em(r,e))return!1;let i=r.anchor.getNode(),l=r.focus.getNode();if(!h(i)||!h(l))return!1;if(function(e,t){if(H(e)){let r=e.anchor.getNode(),n=e.focus.getNode();if(t&&r&&n){let[e]=z(t,r,n);return r.getKey()===e[0][0].cell.getKey()&&n.getKey()===e[e.length-1].at(-1).cell.getKey()}}return!1}(r,e))return e.setFormat(t),!0;let[o,a,s]=z(e,i,l),u=Math.max(a.startRow+a.cell.__rowSpan-1,s.startRow+s.cell.__rowSpan-1),c=Math.max(a.startColumn+a.cell.__colSpan-1,s.startColumn+s.cell.__colSpan-1),d=Math.min(a.startRow,s.startRow),f=Math.min(a.startColumn,s.startColumn),p=new Set;for(let e=d;e<=u;e++)for(let r=f;r<=c;r++){let i=o[e][r].cell;if(p.has(i))continue;p.add(i),i.setFormat(t);let l=i.getChildren();for(let e=0;e<l.length;e++){let r=l[e];(0,n.ff4)(r)&&!r.isInline()&&r.setFormat(t)}}return!0},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.bM3,t=>{let i=(0,n.vJq)();if(!em(i,e))return!1;if(H(i))return u.$clearHighlight(),!1;if((0,n.I2P)(i)){let l=(0,n.BtT)(i.anchor.getNode(),e=>h(e));if(!h(l))return!1;if("string"==typeof t){let l=eC(r,i,e);if(l)return eS(l,e,[(0,n.sTu)(t)]),!0}}return!1},n.WgU)),l&&u.listenersToRemove.add(r.registerCommand(n.OXk,t=>{let r=(0,n.vJq)();if(!(0,n.I2P)(r)||!r.isCollapsed()||!em(r,e))return!1;let i=e_(r.anchor.getNode());return!(null===i||!e.is(ew(i)))&&(ex(t),function(e,t){let r="next"===t?"getNextSibling":"getPreviousSibling",i="next"===t?"getFirstChild":"getLastChild",l=e[r]();if((0,n.ff4)(l))return l.selectEnd();let o=(0,n.BtT)(e,_);null===o&&m(247);for(let e=o[r]();_(e);e=e[r]()){let t=e[i]();if((0,n.ff4)(t))return t.selectEnd()}let a=(0,n.BtT)(o,ej);null===a&&m(248),"next"===t?a.selectNext():a.selectPrevious()}(i,t.shiftKey?"previous":"next"),!0)}
24,n.WgU)),u.listenersToRemove.add(r.registerCommand(n.$7r,t=>e.isSelected(),n.WgU)),u.listenersToRemove.add(r.registerCommand(n.MvL,()=>{let t=(0,n.vJq)(),i=(0,n.S1w)(),l=u.getAndClearNextFocus();if(null!==l){let{focusCell:e}=l;if(H(t)&&t.tableKey===u.tableNodeKey)return(e.x!==u.focusX||e.y!==u.focusY)&&(u.$setFocusCellForSelection(e),!0);if(e!==u.anchorCell&&null!==u.anchorCell&&null!==u.anchorCellNodeKey&&null!==u.tableSelection)return u.$setFocusCellForSelection(e,!0),!0}if(u.getAndClearShouldCheckSelection()&&(0,n.I2P)(i)&&(0,n.I2P)(t)&&t.isCollapsed()){let r=t.anchor.getNode(),i=e.getFirstChild(),l=e_(r);if(null!==l&&_(i)){let t=i.getFirstChild();if(h(t)&&e.is((0,n.BtT)(l,r=>r.is(e)||r.is(t))))return t.selectStart(),!0}}if((0,n.I2P)(t)){let{anchor:l,focus:o}=t,a=l.getNode(),s=o.getNode(),c=e_(a),d=e_(s),f=!(!c||!e.is(ew(c))),h=!(!d||!e.is(ew(d))),p=t.isBackward();if(f!==h){let i=t.clone();if(h){let[t]=z(e,d,d),r=t[0][0].cell,n=t[t.length-1].at(-1).cell;i.focus.set(p?r.getKey():n.getKey(),p?0:n.getChildrenSize(),"element")}else if(f){let[t]=z(e,c,c),r=t[0][0].cell,n=t[t.length-1].at(-1).cell;i.anchor.set(p?n.getKey():r.getKey(),p?n.getChildrenSize():0,"element")}(0,n.n1P)(i),ef(r,u)}
24else if(f&&h&&(c.is(d)||(u.$setAnchorCellForSelection(ek(u,c)),u.$setFocusCellForSelection(ek(u,d),!0)),"touch"===u.pointerType&&u.isSelecting&&t.isCollapsed()&&(0,n.I2P)(i)&&i.isCollapsed())){let e=e_(i.anchor.getNode());e&&!e.is(d)&&(u.$setAnchorCellForSelection(ek(u,e)),u.$setFocusCellForSelection(ek(u,d),!0),u.pointerType=null)}}else if(t&&H(t)&&t.is(i)&&t.tableKey===e.getKey()){let i=(0,n.peL)(s);if(i&&i.anchorNode&&i.focusNode){let l=(0,n.xL4)(i.focusNode),o=l&&!e.isParentOf(l),a=(0,n.xL4)(i.anchorNode),s=a&&e.isParentOf(a);if(o&&s&&i.rangeCount>0){let l=(0,n.OBE)(i,r);l&&(l.anchor.set(e.getKey(),t.isBackward()?e.getChildrenSize():0,"element"),i.removeAllRanges(),(0,n.n1P)(l))}}}return t&&!t.is(i)&&(H(t)||H(i))&&u.tableSelection&&!u.tableSelection.is(i)?H(t)&&t.tableKey===u.tableNodeKey?u.$updateTableTableSelection(t):!H(t)&&H(i)&&i.tableKey===u.tableNodeKey&&u.$updateTableTableSelection(null):u.hasHijackedSelectionStyles&&!e.isSelected()?(u.$enableHighlightStyle(),ed(u.table,e=>{let t=e.elem;e.highlighted=!1,eb(r,e),t.getAttribute("style")||t.removeAttribute("style")})):!u.hasHijackedSelectionStyles&&e.isSelected()&&ef(r,u),!1},n.WgU)),u.listenersToRemove.add(r.registerCommand(n.XKQ,()=>{let t=(0,n.vJq)();if(!(0,n.I2P)(t)||!t.isCollapsed()||!em(t,e))return!1;let i=eC(r,t,e);return!!i&&(eS(i,e),!0)},n.WgU)),u}(l,u,e,t);r.set(a,[c,u])},a=e.registerMutationListener(e$,t=>{e.getEditorState().read(()=>{for(let[e,n]of t){let t=r.get(e);if("created"===n||"updated"===n){let{tableNode:n,tableElement:i}=Y(e);void 0===t?l(n,e,i):i!==t[1]&&(t[0].removeListeners(),r.delete(e),l(n,e,i))}else"destroyed"===n&&void 0!==t&&(t[0].removeListeners(),r.delete(e))}},{editor:e})},{skipInitialization:!1});return()=>{for(let[,[e]]of(a(),r))e.removeListeners()}}function eK(e,t){e.hasNodes([e$])||m(255);let{hasNestedTables:r=(0,l.vP)(!1),hasFitNestedTables:o=(0,l.vP)(!1)}=t??{};return(0,n.Sdt)(e.registerCommand(p,e=>(function({rows:e,columns:t,includeHeaders:r},l){let o=(0,n.vJq)()||(0,n.S1w)();if(!o||!(0,n.I2P)(o)||!l&&ew(o.anchor.getNode()))return!1;let a=function(e,t,r=!0){let i=eM();for(let l=0;l<e;l++){let e=b();for(let i=0;i<t;i++){let t=s.NO_STATUS;"object"==typeof r?(0===l&&r.rows&&(t|=s.ROW),0===i&&r.columns&&(t|=s.COLUMN)):r&&(0===l&&(t|=s.ROW),0===i&&(t|=s.COLUMN));let o=f(t),a=(0,n.lJ7)();a.append((0,n.sTu)()),o.append(a),e.append(o)}i.append(e)}return i}(Number(e),Number(t),r);(0,i.Pe)(a);let u=a.getFirstDescendant();return(0,n.kFe)(u)&&u.select(),!0})(e,r.peek()),n.jZM),e.registerCommand(n.oqR,(t,l)=>e===l&&function(e,t,r){let{nodes:l,selection:o}=e;if(!l.some(e=>ej(e)||(0,i.Ie)(e).some(e=>ej(e.node))))return!1;let s=H(o),u=(0,n.I2P)(o);return!!(u&&null!==(0,n.BtT)(o.anchor.getNode(),e=>h(e))&&null!==(0,n.BtT)(o.focus.getNode(),e=>h(e))||s)&&(1===l.length&&ej(l[0])?function(e,t){let r=t.getStartEndPoints(),i=H(t);if(null===r)return!1;let[l,o]=r,[a,s,u]=U(l),c=(0,n.BtT)(o.getNode(),e=>h(e));if(!(h(a)&&h(c)&&_(s)&&ej(u)))return!1;let[d,f,p]=z(u,a,c),[m]=K(e,null,null),y=d.length,v=y>0?d[0].length:0,b=f.startRow,w=f.startColumn,x=m.length,S=x>0?m[0].length:0;if(i){let e=W(d,f,p),t=e.maxRow-e.minRow+1,r=e.maxColumn-e.minColumn+1;b=e.minRow,w=e.minColumn,x=Math.min(x,t),S=Math.min(S,r)}let C=!1,k=Math.min(y,b+x)-1,T=Math.min(v,w+S)-1,N=new Set;for(let e=b;e<=k;e++)for(let t=w;t<=T;t++){let r=d[e][t];N.has(r.cell.getKey())||1===r.cell.__rowSpan&&1===r.cell.__colSpan||(B(r.cell),N.add(r.cell.getKey()),C=!0)}let[E]=K(u.getWritable(),null,null),P=x-y+b;for(let e=0;e<P;e++)$(E[y-1][0].cell);let O=S-v+w;for(let e=0;e<O;e++)M(E[0][v-1].cell,!0,!1);[E]=K(u.getWritable(),null,null);for(let e=b;e<b+x;e++)for(let t=w;t<w+S;t++){let r=e-b,i=t-w,l=m[r][i];if(l.startRow!==r||l.startColumn!==i)continue;let o=l.cell;if(1!==o.__rowSpan||1!==o.__colSpan){let r=[],n=Math.min(e+o.__rowSpan,b+x)-1,i=Math.min(t+o.__colSpan,w+S)-1;for(let l=e;l<=n;l++)for(let e=t;e<=i;e++){let t=E[l][e];r.push(t.cell)}R(r),C=!0}let{cell:a}=E[e][t],s=o.getBackgroundColor();null!=s&&a.setBackgroundColor(s);let u=a.getChildren();
24o.getChildren().forEach(e=>{(0,n.kFe)(e)&&(0,n.lJ7)().append(e),a.append(e)}),u.forEach(e=>e.remove())}if(i&&C){let[e]=K(u.getWritable(),null,null);e[f.startRow][f.startColumn].cell.selectEnd()}return!0}(l[0],o):!(u&&t.peek())||function(e,t,r){let i=H(t)&&!t.focus.getNode().is(t.anchor.getNode()),l=(0,n.I2P)(t)&&h(t.anchor.getNode())&&!t.anchor.getNode().is(t.focus.getNode());if(i||l)return!0;if(!r)return!1;let o=t.focus.getNode(),s=(0,n.BtT)(o,h);if(!s)return!1;let u=eU(s);if(void 0===u)return!1;let c=function(e){let t=(0,n.i0_)().getElementByKey(e.getKey());if(null===t)return 0;let r=window.getComputedStyle(t),i=r.getPropertyValue("padding-left")||"0px",l=r.getPropertyValue("padding-right")||"0px",o=r.getPropertyValue("border-left-width")||"0px",s=r.getPropertyValue("padding-right-width")||"0px";if(!(a.test(i)&&a.test(l)&&a.test(o)&&a.test(s)))return 0;let u=parseFloat(i),c=parseFloat(l);return u+c+parseFloat(o)+parseFloat(s)}(s);for(let t of e.filter(ej))!function e(t,r,n){let i=t.getColWidths();if(!i)return t;let l=r-n,o=i.reduce((e,t)=>e+t,0);if(o<=l)return t;let a=l/o;for(let r of(t.setColWidths(i.map(e=>e*a)),t.getChildren().filter(_)))for(let t of r.getChildren().filter(h)){let r=eU(t);if(void 0!==r)for(let i of t.getChildren().filter(ej))e(i,r,n)}}(t,u,c);return!1}(l,o,r.peek()))}(t,r,o),n.jZM),e.registerCommand(n.HYn,eL,n.AcJ),e.registerCommand(n.d8p,eR,n.jZM),e.registerNodeTransform(e$,eF),e.registerNodeTransform(y,eI),e.registerNodeTransform(u,eD))}function eU(e){let t=T(e),r=J(e),n=t.getColWidths();if(!r||!n)return;let{columnIndex:i,colSpan:l}=r,o=0;for(let e=i;e<i+l;e++)o+=n[e];return o}(0,n.vE9)({build:(e,t,r)=>
24(0,l.v)(t),config:(0,n.lVE)({hasCellBackgroundColor:!0,hasCellMerge:!0,hasFitNestedTables:!1,hasHorizontalScroll:!0,hasNestedTables:!1,hasTabHandler:!0}),name:"@lexical/table/Table",nodes:()=>[e$,y,u],register(e,t,r){let i=r.getOutput();return(0,n.Sdt)((0,l.QZ)(()=>{let t=i.hasHorizontalScroll.value;eP(e)!==t&&(eO(e,t),e.registerNodeTransform(e$,()=>{})())}),eK(e,i),(0,l.QZ)(()=>ez(e,i.hasTabHandler.value)),(0,l.QZ)(()=>i.hasCellMerge.value?void 0:eB(e)),(0,l.QZ)(()=>i.hasCellBackgroundColor.value?void 0:e.registerNodeTransform(u,e=>{null!==e.getBackgroundColor()&&e.setBackgroundColor(null)})))}})},41774:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(95155),i=r(12115),l=r(19749);r(27175);let o=e=>{let{alignCaret:t="center",boundingRef:r,children:o,className:a,delay:s=350,position:u,show:c=!0,staticPositioning:d=!1}=e,[f,h]=i.useState(c),[p,m]=i.useState("top"),[y,v]=((e,t)=>{let r,n,o,a=(0,l.c)(8),{root:s,rootMargin:u,threshold:c}=void 0===e?{}:e,[d,f]=(0,i.useState)(),[h,p]=(0,i.useState)(null),m=(0,i.useRef)("undefined"!=typeof window&&"IntersectionObserver"in window&&!t?new window.IntersectionObserver(e=>{let[t]=e;return f(t)},{root:void 0===s?null:s,rootMargin:void 0===u?"0px":u,threshold:void 0===c?0:c}):null);return a[0]!==t||a[1]!==h?(r=()=>{if(t)return;let{current:e}=m;return e.disconnect(),h&&e.observe(h),()=>e.disconnect()},n=[h,t],a[0]=t,a[1]=h,a[2]=r,a[3]=n):(r=a[2],n=a[3]),(0,i.useEffect)(r,n),a[4]!==d||a[5]!==h||a[6]!==p?(o=[p,d,h],a[4]=d,a[5]=h,a[6]=p,a[7]=o):o=a[7],o})({root:(null==r?void 0:r.current)||null,rootMargin:"-145px 0px 0px 100px",threshold:0},d);return(0,i.useEffect)(()=>{let e;return s&&c?e=setTimeout(()=>{h(c)},s):h(c),()=>{e&&clearTimeout(e)}},[c,s]),(0,i.useEffect)(()=>{d||m((null==v?void 0:v.isIntersecting)?"top":"bottom")},[v,d]),(0,n.jsxs)(i.Fragment,{children:[!d&&(0,n.jsx)("aside",{"aria-hidden":"true",className:["tooltip",a,"tooltip--caret-".concat(t),"tooltip--position-top"].filter(
24Boolean).join(" "),ref:y,style:{opacity:"0"},children:(0,n.jsx)("div",{className:"tooltip-content",children:o})}),(0,n.jsx)("aside",{className:["tooltip",a,f&&"tooltip--show","tooltip--caret-".concat(t),"tooltip--position-".concat(u||p)].filter(Boolean).join(" "),title:(e=>"string"==typeof e?e:"")(o),children:(0,n.jsx)("div",{className:"tooltip-content",children:o})})]})}},42202:(e,t,r)=>{"use strict";r.d(t,{NotFoundClient:()=>c});var n=r(19749),i=r(95155),l=r(92825),o=r(63344),a=r(41412),s=r(12115);let u="not-found",c=e=>{let t,r,c,d,f=(0,n.c)(10),{marginTop:h}=e,p=void 0===h?"large":h,{setStepNav:m}=(0,l.useStepNav)(),{t:y}=(0,o.d)(),{config:v}=(0,a.c)(),{routes:b}=v,{admin:_}=b;f[0]!==m||f[1]!==y?(t=()=>{m([{label:y("general:notFound")}])},r=[m,y],f[0]=m,f[1]=y,f[2]=t,f[3]=r):(t=f[2],r=f[3]),(0,s.useEffect)(t,r);let w=p&&"".concat(u,"--margin-top-").concat(p);f[4]!==w?(c=[u,w].filter(Boolean),f[4]=w,f[5]=c):c=f[5];let x=c.join(" ");return f[6]!==_||f[7]!==y||f[8]!==x?(d=(0,i.jsx)("div",{className:x,children:(0,i.jsxs)(l.Gutter,{className:"".concat(u,"__wrap"),children:[(0,i.jsxs)("div",{className:"".concat(u,"__content"),children:[(0,i.jsx)("h1",{children:y("general:nothingFound")}),(0,i.jsx)("p",{children:y("general:sorryNotFound")})]}),(0,i.jsx)(l.Button,{className:"".concat(u,"__button"),el:"link",size:"large",to:_,children:y("general:backToDashboard")})]})}),f[6]=_,f[7]=y,f[8]=x,f[9]=d):d=f[9],d}},42309:(e,t,r)=>{"use strict";r.d(t,{t:()=>l});var n=r(16565);let i=["authentication:account","authentication:accountOfCurrentUser","authentication:accountVerified","authentication:alreadyActivated","authentication:alreadyLoggedIn","authentication:apiKey","authentication:authenticated","authentication:backToLogin","authentication:beginCreateFirstUser","authentication:changePassword","authentication:checkYourEmailForPasswordReset","authentication:confirmGeneration","authentication:confirmPassword","authentication:createFirstUser","authentication:emailNotValid","authentication:usernameNotValid","authentication:emailOrUsername","authentication:emailSent","authentication:emailVerified","authentication:enableAPIKey","authentication:failedToUnlock","authentication:forceUnlock","authentication:forgotPassword","authentication:forgotPasswordEmailInstructions","authentication:forgotPasswordUsernameInstructions","authentication:forgotPasswordQuestion","authentication:generate","authentication:generateNewAPIKey","authentication:generatingNewAPIKeyWillInvalidate","authentication:logBackIn","authentication:loggedOutInactivity","authentication:loggedOutSuccessfully","authentication:loggingOut","authentication:login","authentication:logOut","authentication:loggedIn","authentication:loggedInChangePassword","authentication:logout","authentication:logoutUser","authentication:logoutSuccessful","authentication:newAPIKeyGenerated","authentication:newPassword","authentication:passed","authentication:passwordResetSuccessfully","authentication:resetPassword","authentication:stayLoggedIn","authentication:successfullyRegisteredFirstUser","authentication:successfullyUnlocked","authentication:username","authentication:unableToVerify","authentication:tokenRefreshSuccessful","authentication:verified","authentication:verifiedSuccessfully","authentication:verify","authentication:verifyUser","authentication:youAreInactive","dashboard:addWidget","dashboard:deleteWidget","dashboard:searchWidgets","dashboard:editDashboard","dashboard:editingDashboard","dashboard:resetLayout","dashboard:addButton","dashboard:discardConfirmLabel","dashboard:discardMessage","dashboard:discardTitle","dashboard:no
24Items","error:autosaving","error:correctInvalidFields","error:deletingTitle","error:documentNotFound","error:emailOrPasswordIncorrect","error:usernameOrPasswordIncorrect","error:loadingDocument","error:insufficientClipboardPermissions","error:invalidClipboardData","error:invalidRequestArgs","error:invalidFileType","error:logoutFailed","error:noMatchedField","error:notAllowedToAccessPage","error:notAllowedToPerformAction","error:previewing","error:unableToCopy","error:unableToDeleteCount","error:unableToReindexCollection","error:unableToUpdateCount","error:unauthorized","error:unauthorizedAdmin","error:unknown","error:unspecific","error:unverifiedEmail","error:userEmailAlreadyRegistered","error:usernameAlreadyRegistered","error:tokenNotProvided","error:unPublishingDocument","error:revertingDocument","error:problemUploadingFile","error:restoringTitle","error:failedToSaveLayout","error:failedToResetLayout","fields:addLabel","fields:addLink","fields:addNew","fields:addNewLabel","fields:addRelationship","fields:addUpload","fields:block","fields:blocks","fields:blockType","fields:chooseBetweenCustomTextOrDocument","fields:customURL","fields:chooseDocumentToLink","fields:openInNewTab","fields:enterURL","fields:internalLink","fields:chooseFromExisting","fields:linkType","fields:textToDisplay","fields:searchForLanguage","fields:collapseAll","fields:editLink","fields:editRelationship","fields:itemsAndMore","fields:labelRelationship","fields:latitude","fields:linkedTo","fields:longitude","fields:passwordsDoNotMatch","fields:removeRelationship","fields:removeUpload","fields:saveChanges","fields:searchForBlock","fields:selectFieldsToEdit","fields:showAll","fields:swapRelationship","fields:swapUpload","fields:toggleBlock","fields:uploadNewLabel","folder:byFolder","folder:browseByFolder","folder:deleteFolder","folder:folders","folder:folderTypeDescription","folder:folderName","folder:itemsMovedToFolder","folder:itemsMovedToRoot","folder:itemHasBeenMoved","folder:itemHasBeenMovedToRoot","folder:moveFolder","folder:movingFromFolder","folder:moveItemsToFolderConfirmation","folder:moveItemsToRootConfirmation","folder:moveItemToFolderConfirmation","folder:moveItemToRootConfirmation","folder:noFolder","folder:newFolder","folder:renameFolder","folder:searchByNameInFolder","folder:selectFolderForItem","general:all","general:aboutToDeleteCount","general:aboutToDelete","general:aboutToPermanentlyDelete","general:aboutToPermanentlyDeleteTrash","general:aboutToRestore","general:aboutToRestoreAsDraft","general:aboutToRestoreAsDraftCount","general:aboutToRestoreCount","general:aboutToTrash","general:aboutToTrashCount","general:addBelow","general:addFilter","general:adminTheme","general:allCollections","general:and","general:anotherUser","general:anotherUserTakenOver","general:applyChanges","general:ascending","general:automatic","general:backToDashboard","general:cancel","general:changesNotSaved","general:close","general:collapse","general:collections","general:confirmMove","general:yes","general:no","general:columns","general:columnToSort","general:confirm","general:confirmCopy","general:confirmDeletion","general:confirmDuplication","general:confirmReindex","general:confirmReindexAll","general:confirmReindexDescription","general:confirmReindexDescriptionAll","general:confirmRestoration","general:copied","general:clear","general:clearAll","general:copy","general:copyField","general:copyRow","general:copyWarning","general:copying","general:create","general:created","general:createdAt","general:createNew","general:createNewLabel","general:creating","general:creatingNewLabel","general:currentlyEditing","general:custom","general:dark","general:dashboard","general:delete","general:deleted","general:deletedAt","general:deletePermanently","general:deleteLabel","general:deletedSuccessfully","general:deletedCountSuccessfully","general:deleting","general:descending","general:depth","general:deselectAllRows","general:document","general:documentIsTrashed","general:documentLocked","general:documentModified","general:documentOutOfDate","general:documents","general:duplicate","general:duplicateWithoutSaving","general:edit","general:editAll","general:editing","general:editingLabel","general:editingTakenOver","general:editLabel","general:editedSince","general:email","general:emailAddress","general:emptyTrash","general:emptyTrashLabel","general:enterAValue","general:error","general:errors","general:fallbackToDefaultLocale","general:false","general:filters","general:filterWhere","general:globals","general:goBack","general:groupByLabel","general:isEditing","general:item","general:items","general:language","general:lastModified","general:layout","general:leaveAnyway","general:leaveWithoutSaving","general:light","general:livePreview","general:lock","general:exitLivePreview","general:loading","general:locale","general:locales","general:menu","general:moreOptions","general:move","general:moveConfirm","general:moveCount","general:moveDown","general:moveUp","general:moving","general:movingCount","general:name","general:next","general:newLabel","general:noDateSelected","general:noFiltersSet","general:noLabel","general:none","general:noOptions","general:noResults","general:noResultsDescription","general:noResultsFound","general:notFound","general:nothingFound","general:noTrashResults","general:noUpcomingEventsScheduled","general:noValue","general:of","general:open","general:openInNewWindow","general:only","general:or","general:order","general:overwriteExistingData","general:pageNotFound","general:password","general:pasteField","general:pasteRow","general:payloadSettings","general:permanentlyDelete","general:permanentlyDeletedCountSuccessfully","general:perPage","general:previous","general:reindex","general:reindexingAll","general:reloadDocument","general:remove","general:rename","general:reset","general:resetPreferences","general:resetPreferencesDescription","general:resettingPreferences","general:restore","general:restoreAsPublished","general:restoredCountSuccessfully","general:restoring","general:row","general:rows","general:save","general:saveChanges","general:schedulePublishFor","general:saving","general:searchBy","general:select","general:selectAll","general:selectAllRows","general:selectedCount","general:selectLabel","general:selectValue","general:showAllLabel","general:sorryNotFound","general:sort","general:sortByLabelDirection","general:stayOnThisPage","general:submissionSuccessful","general:submit","general:submitting","general:success","general:successfullyCreated","general:successfullyDuplicated","general:successfullyReindexed","general:takeOver","general:thisLanguage","general:time","general:timezone","general:titleDeleted","general:titleTrashed","general:titleRestored","general:trash","general:trashedCountSuccessfully","general:import","general:export","general:allLocales","general:true","general:upcomingEvents","general:users","general:user","general:username","general:unauthorized","general:unlock","general:unsavedChanges","general:unsavedChangesDuplicate","general:untitled","general:updatedAt","general:updatedLabelSuccessfully","general:updatedCountSuccessfully","general:updateForEveryone","general:updatedSuccessfully","general:updating","general:value","general:viewing","general:viewReadOnly","general:uploading","general:uploadingBulk","general:welcome","localization:localeToPublish","localization:copyToLocale","localization:copyFromTo","localization:selectedLocales","localization:selectLocaleToCopy","localization:selectLocaleToDuplicate","localization:cannotCopySameLocale","localization:copyFrom","localization:copyTo","operators:equals","operators:exists","operators:isNotIn","operators:isIn","operators:contains","operators:isLike","operators:isNotLike","operators:isNotEqualTo","operators:near","operators:isGreaterThan","operators:isLessThan","operators:isGreaterThanOrEqualTo","operators:isLessThanOrEqualTo","operators:within","operators:intersects","upload:addFile","upload:addFiles","upload:bulkUpload","upload:crop","upload:cropToolDescription","upload:dragAndDrop","upload:editImage","upload:fileToUpload","upload:filesToUpload","upload:focalPoint","upload:focalPointDescription","upload:height","upload:pasteURL","upload:previewSizes","upload:selectCollectionToBrowse","upload:selectFile","upload:setCropArea","upload:setFocalPoint","upload:sizesFor","upload:sizes","upload:width","upload:fileName","upload:fileSize","upload:noFile","upload:download","validation:emailAddress","validation:enterNumber","validation:fieldHasNo","validation:greaterThanMax","validation:invalidInput","validation:invalidSelection","validation:invalidSelections","validation:latitudeOutOfBounds","validation:lessThanMin","validation:limitReached","validation:longitudeOutOfBounds","validation:invalidBlock","validation:invalidBlocks","validation:longerThanMin","validation:notValidDate","validation:required","validation:requiresAtLeast","validation:requiresNoMoreThan","validation:requiresTwoNumbers","validation:shorterThanMax","validation:trueOrFalse","validation:timezoneRequired","validation:username","validation:validUploadID","version:aboutToPublishSelection","version:aboutToRestore","ver
24sion:aboutToRestoreGlobal","version:aboutToRevertToPublished","version:aboutToUnpublish","version:aboutToUnpublishIn","version:aboutToUnpublishSelection","version:autosave","version:autosavedSuccessfully","version:autosavedVersion","version:versionAgo","version:moreVersions","version:changed","version:changedFieldsCount","version:confirmRevertToSaved","version:compareVersions","version:comparingAgainst","version:currentlyViewing","version:confirmPublish","version:confirmUnpublish","version:confirmVersionRestoration","version:currentDraft","version:currentPublishedVersion","version:currentlyPublished","version:draft","version:draftHasPublishedVersion","version:draftSavedSuccessfully","version:lastSavedAgo","version:modifiedOnly","version:noFurtherVersionsFound","version:noLabelGroup","version:noRowsFound","version:noRowsSelected","version:preview","version:previouslyDraft","version:previouslyPublished","version:previousVersion","version:problemRestoringVersion","version:publish","version:publishAllLocales","version:publishChanges","version:published","version:publishIn","version:publishing","version:restoreAsDraft","version:restoredSuccessfully","version:restoreThisVersion","version:restoring","version:reverting","version:revertUnsuccessful","version:revertToPublished","version:saveDraft","version:scheduledSuccessfully","version:schedulePublish","version:selectLocales","version:selectVersionToCompare","version:showLocales","version:specificVersion","version:status","version:type","version:unpublish","version:unpublished","version:unpublishIn","version:unpublishing","version:unpublishedSuccessfully","version:versionID","version:version","version:versions","version:viewingVersion","version:viewingVersionGlobal","version:viewingVersions","version:viewingVersionsGlobal"];function l({key:e,translations:t,vars:r}){let n=(({count:e,key:t,translations:r})=>{let n=t.split(":"),i="",l=n.reduce((t,r,l)=>{if("string"==typeof t)return t;"number"==typeof e&&(0===e&&`${r}_zero`in t?i="_zero":1===e&&`${r}_one`in t?i="_one":2===e&&`${r}_two`in t?i="_two":e>5&&`${r}_many`in t?i="_many":e>2&&e<=5&&`${r}_few`in t?i="_few":`${r}_other`in t&&(i="_other"));let o=r;if(l===n.length-1&&i&&(o=`${r}${i}`),t&&o in t)return t[o]},r);return l||console.log("key not found:",t),l||t})({count:"number"==typeof r?.count?r.count:void 0,key:e,translations:t});return r&&(n=(({translationString:e,vars:t})=>e.split(/(\{\{.*?\}\})/).map(e=>{if(!(e.startsWith("{{")&&e.endsWith("}}")))return e;{let r=t[e.substring(2,e.length-2).trim()];return null!=r?r:e}}).join(""))({translationString:n,vars:r})),n||(n=e),n}!(async({config:e,context:t,language:r=e.fallbackLanguage})=>{if(!r||!e.supportedLanguages?.[r])throw Error(`Language ${r} not supported`);let o=((e,t)=>"client"===t?function e(t){let r={};return Object.keys(t).sort().forEach(n=>{"object"==typeof t[n]?r[n]=e(t[n]):r[n]=t[n]}),r}(function e(t,r="",n){let i={};for(let[l,o]of Object.entries(t)){if("$schema"===l){i[l]=o;continue}if("object"==typeof o){let t=e(o,l,n);Object.keys(t).length>0&&(i[l]=t)}else for(let e of n){let[t,n]=e.split(":");r===t&&(l===n?i[n]=o:["zero","one","two","few","many","other"].forEach(e=>{l===`${n}_${e}`&&(i[`${n}_${e}`]=o)}))}}return i}(e.translations,"",i)):e.translations)(e.supportedLanguages?.[r],t),{t:a,translations:s}=(e=>{let{config:t,language:r,translations:n}=e,i=r&&t?.translations?.[r]?function e(t,r){let n={...t};for(let i in r)"__proto__"!==i&&"constructor"!==i&&"prototype"!==i&&Object.prototype.hasOwnProperty.call(r,i)&&("object"==typeof r[i]&&!Array.isArray(r[i])&&t[i]?n[i]=e(t[i],r[i]):n[i]=r[i]);return n}(n,t.translations[r]):n;return{t:(e,t)=>l({key:e,translations:i,vars:t}),translations:i}})({config:e,language:r||e.fallbackLanguage,translations:o}),u=e.supportedLanguages[r]?.dateFNSKey||"en-US";return{dateFNS:await (0,n.p)(u),dateFNSKey:u,fallbackLanguage:e.fallbackLanguage,language:r||e.fallbackLanguage,t:a,translations:s}})},42625:(e,t,r)=>{"use strict";r.d(t,{DocumentTabLink:()=>s});var n=r(19749),i=r(95155),l=r(92825),o=r(35695),a=r(6001);r(12115);let s=e=>{let t,r,s=(0,n.c)(13),{adminRoute:u,ariaLabel:c,baseClass:d,children:f,href:h,isActive:p,newTab:m}=e,y=(0,o.usePathname)(),v=(0,o.useParams)(),b=(0,o.useSearchParams)().get("locale"),[_,w,x,S]=v.segments||[],C="collections"===_,k="/".concat(C?"collections":"globals","/").concat(w);s[0]!==u||s[1]!==k?(t=(0,a.Q)({adminRoute:u,path:k}
24),s[0]=u,s[1]=k,s[2]=t):t=s[2];let T=t;C&&("trash"===x&&S?T+="/trash/".concat(S):x&&(T+="/".concat(x)));let N="".concat(T).concat(h),E="".concat(N).concat(b?"?locale=".concat(b):"");if(s[3]!==c||s[4]!==d||s[5]!==f||s[6]!==T||s[7]!==N||s[8]!==E||s[9]!==p||s[10]!==m||s[11]!==y){let e=N===T&&y===T||N!==T&&y.startsWith(N)||p;r=(0,i.jsx)(l.Button,{"aria-label":c,buttonStyle:"tab",className:[d,e&&"".concat(d,"--active")].filter(Boolean).join(" "),disabled:e,el:e&&N===y?"div":"link",margin:!1,newTab:m,size:"medium",to:e&&N===y?void 0:E,children:f}),s[3]=c,s[4]=d,s[5]=f,s[6]=T,s[7]=N,s[8]=E,s[9]=p,s[10]=m,s[11]=y,s[12]=r}else r=s[12];return r}},43030:(e,t,r)=>{"use strict";r.d(t,{x4:()=>l});let{isPlural:n,singular:i}=r(45646),l=(e,t=!1)=>{let r=(e||"").trim().split(/[\s-]/),n=[];return r.forEach(e=>{if(""!==e){let t=e.split(/(?=[A-Z])/).join(" ");n.push((e=>e.charAt(0).toUpperCase()+e.slice(1))(t))}}),t?n.join("").replace(/\s/g,""):n.join(" ")}},43961:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=(e,t)=>{let r=(t=t||{}).delimiter||".",i=t.overwrite||!1,l=t.recursive||!1,o={};if(function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}(e)||"[object Object]"!==Object.prototype.toString.call(e))return e;let a=e=>{let r=Number(e);return isNaN(r)||-1!==e.indexOf(".")||t.object?e:r};return Object.keys(e).sort((e,t)=>e.length-t.length).forEach(s=>{let u=s.split(r),c=a(u.shift()),d=a(u[0]),f=o;for(;void 0!==d;){if("__proto__"===c)return;let e=Object.prototype.toString.call(f[c]),r="[object Object]"===e||"[object Array]"===e;if(!i&&!r&&void 0!==f[c])return;(!i||r)&&(i||null!=f[c])||(f[c]="number"!=typeof d||t.object?{}:[]),f=f[c],u.length>0&&(c=a(u.shift()),d=a(u[0]))}f[c]=l?n(e[s],t):e[s]}),o}},45024:(e,t,r)=>{"use strict";r.d(t,{p:()=>p});var n=r(95155),i=r(41412),l=r(63344),o=r(92825),a=r(78234),s=r(6001),u=r(12115),c=r(56962),d=r(34564);let{maxLength:f,minLength:h}=c.N.description,p=e=>{let{field:{label:t,localized:r,maxLength:c,minLength:p,required:m},hasGenerateDescriptionFn:y,readOnly:v}=e,{config:{routes:{api:b}}}=(0,i.c)(),{t:_}=(0,l.d)(),w=(0,o.useLocale)(),{getData:x}=(0,o.useForm)(),S=(0,o.useDocumentInfo)(),{title:C}=(0,o.useDocumentTitle)(),k=c||f,T=p||h,{customComponents:{AfterInput:N,BeforeInput:E,Label:P}={},errorMessage:O,path:$,setValue:A,showError:M,value:j}=(0,o.useField)(),D=(0,u.useCallback)(async()=>{var e;if(!y)return;let t=(0,s.Q)({apiRoute:b,path:"/plugin-seo/generate-description"}),r=await fetch(t,{body:JSON.stringify({id:S.id,collectionSlug:S.collectionSlug,doc:x(),docPermissions:S.docPermissions,globalSlug:S.globalSlug,hasPublishPermission:S.hasPublishPermission,hasSavePermission:S.hasSavePermission,initialData:S.initialData,initialState:(0,a.qg)(null!=(e=S.initialState)?e:{}),locale:"object"==typeof w?null==w?void 0:w.code:w,title:C}),credentials:"include",headers:{"Content-Type":"application/json"},method:"POST"}),{result:n}=await r.json();A(n||"")},[y,b,S.id,S.collectionSlug,S.docPermissions,S.globalSlug,S.hasPublishPermission,S.hasSavePermission,S.initialData,S.initialState,x,w,A,C]);return(0,n.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,n.jsxs)("div",{style:{marginBottom:"5px",position:"relative"},children:[(0,n.jsxs)("div",{className:"plugin-seo__field",children:[null!=P?P:(0,n.jsx)(o.FieldLabel,{label:t,localized:r,path:$,required:m}),y&&(0,n.jsxs)(u.Fragment,{children:["\xa0 â \xa0",(0,n.jsx)("button",{disabled:v,onClick:()=>{D()},style:{background:"none",backgroundColor:"transparent",border:"none",color:"currentcolor",cursor:"pointer",padding:0,textDecoration:"underline"},type:"button",children:_("plugin-seo:autoGenerate")})]})]}),(0,n.jsxs)("div",{style:{color:"#9A9A9A"},children:[_("plugin-seo:lengthTipDescription",{maxLength:k,minLength:T}),(0,n.jsx)("a",{href:"https://developers.google.com/search/docs/advanced/appearance/snippet#meta-descriptions",rel:"noopener noreferrer",target:"_blank",children:_("plugin-seo:bestPractices")})]})]}),(0,n.jsx)("div",{style:{marginBottom:"10px",position:"relative"},children:(0,n.jsx)(o.TextareaInput,{AfterInput:N,BeforeInput:E,Error:O,onChange:A,path:$,readOnly:v,required:m,showError:M,style:{marginBottom:0},value:j})}),(0,n.jsx)("div",{style:{alignItems:"center",display:"flex",width:"100%"},children:(0,n.jsx)(d.y,{maxLength:k,minLength:T,text:j})})]})}},45064:(e,t,r)=>{"use strict";r.d(t,{d:()=>l});var n=r(14994),i=r(43961);let l=(e,t)=>
24{let r;if(!e)return null;if(-1===t.indexOf("."))return(0,n.r)(e,!0);let l={},o=t.split(".");return r=Number.isNaN(Number(o[o.length-1]))?t.substring(0,t.lastIndexOf(".")+1):`${t}.`,Object.keys(e).forEach(t=>{e[t]?.disableFormData||0!==t.indexOf(r)||(l[t.replace(r,"")]=e[t]?.value)}),(0,i.s)(l)}},45280:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(95155);r(12115);let i=e=>{let{backgroundColor:t,color:r,label:i}=e;return(0,n.jsx)("div",{style:{backgroundColor:t,borderRadius:"2px",color:r,flexShrink:0,lineHeight:1,marginRight:"10px",padding:"4px 6px",whiteSpace:"nowrap"},children:(0,n.jsx)("small",{children:i})})}},45646:function(e){e.exports=function(){var e=[],t=[],r={},n={},i={};function l(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function o(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function a(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var i=n.length;i--;){var l=n[i];if(l[0].test(t))return function(e,t){return e.replace(t[0],function(r,n){var i,l,a=(i=t[1],l=arguments,i.replace(/\$(\d{1,2})/g,function(e,t){return l[t]||""}));return""===r?o(e[n-1],a):o(r,a)})}(t,l)}return t}function s(e,t,r){return function(n){var i=n.toLowerCase();return t.hasOwnProperty(i)?o(n,i):e.hasOwnProperty(i)?o(n,e[i]):a(i,n,r)}}function u(e,t,r,n){return function(n){var i=n.toLowerCase();return!!t.hasOwnProperty(i)||!e.hasOwnProperty(i)&&a(i,i,r)===i}}function c(e,t,r){var n=1===t?c.singular(e):c.plural(e);return(r?t+" ":"")+n}return c.plural=s(i,n,e),c.isPlural=u(i,n,e),c.singular=s(n,i,t),c.isSingular=u(n,i,t),c.addPluralRule=function(t,r){e.push([l(t),r])},c.addSingularRule=function(e,r){t.push([l(e),r])},c.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}c.addPluralRule(e,"$0"),c.addSingularRule(e,"$0")},c.addIrregularRule=function(e,t){t=t.toLowerCase(),i[e=e.toLowerCase()]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return c.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return c.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEac
24h(function(e){return c.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(c.addUncountableRule),c}()},45650:()=>{},46037:(e,t,r)=>{"use strict";r.d(t,{g:()=>a});var n=r(61721),i=r(30889),l=r(94271),o=r(12115);function a({newTab:e=!0,disabled:t=!1}){let[r]=(0,l.DF)();return(0,o.useEffect)(()=>(0,i.AX)(r,(0,n.v)({disabled:t,newTab:e})),[r,e,t]),null}},46205:(e,t,r)=>{"use strict";r.d(t,{A:()=>y});var n=r(88849),i=r(6652);let l=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},a=Array.isArray,s=Array.prototype.push,u=function(e,t){s.apply(e,a(t)?t:[t])},c=Date.prototype.toISOString,d=i.Ay,f={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:n.lF,encodeValuesOnly:!1,format:d,formatter:i._J[d],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},h={},p=function(e,t,r,i,l,o,s,c,d,m,y,v,b,_,w,x,S){var C;let k,T=e,N=S,E=0,P=!1;for(;void 0!==(N=N.get(h))&&!P;){let t=N.get(e);if(E+=1,void 0!==t)if(t===E)throw RangeError("Cyclic object value");else P=!0;void 0===N.get(h)&&(E=0)}if("function"==typeof m?T=m(t,T):T instanceof Date?T=b(T):"comma"===r&&a(T)&&(T=n.F7(T,function(e){return e instanceof Date?b(e):e})),null===T){if(o)return d&&!x?d(t,f.encoder,"key",_):t;T=""}if("string"==typeof(C=T)||"number"==typeof C||"boolean"==typeof C||"symbol"==typeof C||"bigint"==typeof C||n.Pe(T))return d?[w(x?t:d(t,f.encoder,"key",_))+"="+w(d(T,f.encoder,"value",_))]:[w(t)+"="+w(String(T))];let O=[];if(void 0===T)return O;if("comma"===r&&a(T))x&&d&&(T=n.F7(T,d)),k=[{value:T.length>0?T.join(",")||null:void 0}];else if(a(m))k=m;else{let e=Object.keys(T);k=y?e.sort(y):e}let $=c?t.replace(/\./g,"%2E"):t,A=i&&a(T)&&1===T.length?$+"[]":$;if(l&&a(T)&&0===T.length)return A+"[]";for(let t=0;t<k.length;++t){let n=k[t],f="object"==typeof n&&void 0!==n.value?n.value:T[n];if(s&&null===f)continue;let C=v&&c?n.replace(/\./g,"%2E"):n,N=a(T)?"function"==typeof r?r(A,C):A:A+(v?"."+C:"["+C+"]");S.set(e,E);let P=new WeakMap;P.set(h,S),u(O,p(f,N,r,i,l,o,s,c,"comma"===r&&x&&a(T)?null:d,m,y,v,b,_,w,x,P))}return O},m=function(e){let t;if(!e)return f;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");let r=i.Ay;if(void 0!==e.format){if(!l.call(i._J,e.format))throw TypeError("Unknown format option provided.");r=e.format}let n=i._J[r],s=f.filter;if(("function"==typeof e.filter||a(e.filter))&&(s=e.filter),t=e.arrayFormat in o?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":f.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");let u=void 0===e.allowDots?!0===e.encodeDotInKeys||f.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:u,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:f.allowEmptyArrays,arrayFormat:t,commaRoundTrip:e.commaRoundTrip,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:f.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};function y(e,t){let r,n=e,i=m(t);"function"==typeof i.filter?n=(0,i.filter)("",n):a(i.filter)&&(r=i.filter);let l=[];
24if("object"!=typeof n||null===n)return"";let s=o[i.arrayFormat],c="comma"===s&&i.commaRoundTrip;r||(r=Object.keys(n)),i.sort&&r.sort(i.sort);let d=new WeakMap;for(let e=0;e<r.length;++e){let t=r[e];i.skipNulls&&null===n[t]||u(l,p(n[t],t,s,c,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,d))}let f=l.join(i.delimiter),h=!0===i.addQueryPrefix?"?":"";return f.length>0?h+f:""}},46383:(e,t,r)=>{"use strict";r.d(t,{a:()=>n});var n=(0,r(32532).guI)("INSERT_RELATIONSHIP_WITH_DRAWER_COMMAND")},46502:(e,t,r)=>{"use strict";function n(e,t="and"){if(0===e.length)return{};let r=e.reduce((e,r)=>(r&&"object"==typeof r&&Object.keys(r).length>0&&(t in r?e[t]=[...e[t],...r[t]]:e[t]?.push(r)),e),{[t]:[]});return r[t]?.length===0?{}:r}r.d(t,{h:()=>n})},47075:(e,t,r)=>{"use strict";r.d(t,{NavHamburger:()=>o});var n=r(19749),i=r(95155),l=r(92825);r(12115);let o=()=>{let e,t=(0,n.c)(2),{navOpen:r}=(0,l.useNav)();return t[0]!==r?(e=(0,i.jsx)(l.Hamburger,{closeIcon:"collapse",isActive:r}),t[0]=r,t[1]=e):e=t[1],e}},47134:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={keyword:"id",code(){throw Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}}},47496:()=>{},48493:(e,t,r)=>{"use strict";r.d(t,{C5:()=>s,Rp:()=>u,wJ:()=>a,Qq:()=>o,Xh:()=>c}),r(23851);var n=r(1585);r(30195);let i="default"in n?n.default:n,l="default"in n?n.default:n,o=(e,{hasMany:t,maxLength:r,maxRows:n,minLength:i,minRows:l,req:{payload:{config:o},t:a},required:s})=>{let u;if(!s&&null==e)return!0;if(!0===t){let t=d(e,{maxRows:n,minRows:l,required:s,t:a});if("string"==typeof t)return t}for(let t of("number"==typeof o?.defaultMaxTextLength&&(u=o.defaultMaxTextLength),"number"==typeof r&&(u=r),Array.isArray(e)?e:[e])){let e=t?.length||0;if("number"==typeof u&&e>u)return a("validation:shorterThanMax",{label:a("general:value"),maxLength:u,stringValue:t});if("number"==typeof i&&e<i)return a("validation:longerThanMin",{label:a("general:value"),minLength:i,stringValue:t})}return!(s&&(!e||("string"==typeof e||Array.isArray(e))&&0===e.length))||a("validation:required")},a=(e,{maxLength:t,minLength:r=3,req:{payload:{config:n},t:i},required:l})=>{let o;return("number"==typeof n?.defaultMaxTextLength&&(o=n.defaultMaxTextLength),"number"==typeof t&&(o=t),e&&o&&e.length>o)?i("validation:shorterThanMax",{maxLength:o}):e&&r&&e.length<r?i("validation:longerThanMin",{minLength:r}):!l||!!e||i("validation:required")},s=(e,{req:{t},required:r,siblingData:n})=>r&&!e?t("validation:required"):!e||e===n.password||t("fields:passwordsDoNotMatch"),u=(e,{collectionSlug:t,req:{payload:{collections:r,config:n},t:i},required:l,siblingData:o})=>{if(t){let l=r?.[t]?.config??n.collections.find(({slug:e})=>e===t);if(l.auth.loginWithUsername&&!l.auth.loginWithUsername?.requireUsername&&!l.auth.loginWithUsername?.requireEmail&&!e&&!o?.username)return i("validation:required")}return(!e||!!/^(?!.*\.\.)[\w!#$%&'*+/=?^`{|}~-](?:[\w!#$%&'*+/=?^`{|}~.-]*[\w!#$%&'*+/=?^`{|}~-])?@[a-z0-9](?:[a-z0-9-]*[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]*[a-z0-9])?)*\.[a-z]{2,}$/i.test(e))&&(!!e||!l)||i("validation:emailAddress")},c=(e,{collectionSlug:t,req:{payload:{collections:r,config:n},t:i},required:l,siblingData:o})=>{let a;if(t){let l=r?.[t]?.config??n.collections.find(({slug:e})=>e===t);if(l.auth.loginWithUsername&&!l.auth.loginWithUsername?.requireUsername&&!l.auth.loginWithUsername?.requireEmail&&!e&&!o?.email)return i("validation:required")}return("number"==typeof n?.defaultMaxTextLength&&(a=n.defaultMaxTextLength),e&&a&&e.length>a)?i("validation:shorterThanMax",{maxLength:a}):!!e||!l||i("validation:required")},d=(e,t)=>{let{maxRows:r,minRows:n,required:i,t:l}=t,o=Array.isArray(e)?e.length:e||0;return!i&&0===o||(n&&o<n?l("validation:requiresAtLeast",{count:n,label:l("general:rows")}):r&&o>r?l("validation:requiresNoMoreThan",{count:r,label:l("general:rows")}):!i||!!o||l("validation:requiresAtLeast",{count:1,label:l("general:row")}))}},48643:(e,t,r)=>{"use strict";r.d(t,{a:()=>s,b:()=>u});var n=r(95155),i=r(94271),l=r(92825),o=r(12115),a=(0,o.createContext)({editorConfig:null,fieldProps:null,uuid:null}),s=({children:e,editorConfig:t,editorContainerRef:r,fieldProps:s,parentContext:u})=>{let[c]=(0,i.DF)(),[d]=(0,o.useState)(()=>Math.random().toString(36).substring(2,12)+Math.random().toString(36).substring(2,12)),f=(0,o.useRef)(new Map),[h,p]=(0,o.useState)(null),m=(0,o.useRef)(new Set),[y,v]=(0,o.useState)(),b=(0,l.useEditDepth)(),_=(0,o.useMemo)(()=>({blurEditor:e=>{m.current.clear()},childrenEditors:f,createdInlineBlock:y,editDepth:b,editor:c,editorConfig:t,editorContainerRef:r,fieldProps:s,focusedEditor:h,focusEditor:e=>{let t=e.uuid;m.current.has(t)||(m.current.add(t),p(e),u?.uuid&&u.focusEditor(e),f.current.forEach(t=>{t.focusEditor(e)}),m.current.clear())},parentEditor:u,registerChild:(e,t)=>{if(!f.current.has(e)){let r=new Map(f.current);r.set(e,t),f.current=r}},setCreatedInlineBlock:v,unregisterChild:e=>{if(f.current.has(e)){let t=new Map(f.current);t.delete(e),f.current=t}},uuid:d}),[y,v,c,f,t,r,b,s,h,u,d]);return(0,n.jsx)(a,{value:_,children:e})},u=()=>{let e=(0,o.use)(a);if(void 0===e)throw Error("useEditorConfigContext must be used within an EditorConfigProvider");return e}},49947:(e,t,r)=>{"use strict";r.d(t,{$:()=>m});
24var n=r(19749),i=r(95155),l=r(63344),o=r(41412),a=r(92825),s=r(23999),u=r(12115);function c(e,t){return JSON.stringify(e)!==JSON.stringify(t)}var d=r(6722);function f({config:e,fields:t,locales:r,parentIsLocalized:n,valueFrom:i,valueTo:l}){let o=0;return t.forEach(t=>{if("name"in t&&"id"===t.name)return;let a=t.type;switch(a){case"array":case"blocks":if(r&&(0,s.Cd)({field:t,parentIsLocalized:n}))r.forEach(a=>{let s=i?.[t.name]?.[a]??[],u=l?.[t.name]?.[a]??[];o+=h({config:e,field:t,locales:r,parentIsLocalized:n||t.localized,valueFromRows:s,valueToRows:u})});else{let a=i?.[t.name]??[],s=l?.[t.name]??[];o+=h({config:e,field:t,locales:r,parentIsLocalized:n||t.localized,valueFromRows:a,valueToRows:s})}break;case"checkbox":case"code":case"date":case"email":case"join":case"json":case"number":case"point":case"radio":case"relationship":case"richText":case"select":case"text":case"textarea":case"upload":r&&(0,s.Cd)({field:t,parentIsLocalized:n})?r.forEach(e=>{c(l?.[t.name]?.[e],i?.[t.name]?.[e])&&o++}):c(l?.[t.name],i?.[t.name])&&o++;break;case"collapsible":case"row":o+=f({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i,valueTo:l});break;case"group":(0,s.jY)(t)?r&&(0,s.Cd)({field:t,parentIsLocalized:n})?r.forEach(a=>{o+=f({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i?.[t.name]?.[a],valueTo:l?.[t.name]?.[a]})}):o+=f({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i?.[t.name],valueTo:l?.[t.name]}):o+=f({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i,valueTo:l});break;case"tabs":t.tabs.forEach(t=>{"name"in t&&r&&t.localized?r.forEach(a=>{o+=f({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i?.[t.name]?.[a],valueTo:l?.[t.name]?.[a]})}):"name"in t?o+=f({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i?.[t.name],valueTo:l?.[t.name]}):o+=f({config:e,fields:t.fields,locales:r,parentIsLocalized:n||t.localized,valueFrom:i,valueTo:l})});break;case"ui":break;default:throw Error(`Unexpected field.type in countChangedFields : ${String(a)}`)}}),o}function h({config:e,field:t,locales:r,parentIsLocalized:n,valueFromRows:i=[],valueToRows:l=[]}){let o=0,a=0;for(;i[a]||l[a];){let s=i?.[a]||{},u=l?.[a]||{},{fields:c}=(0,d.G)({baseVersionField:{type:"text",fields:[],path:"",schemaPath:""},config:e,field:t,row:a,valueFromRow:s,valueToRow:u});o+=f({config:e,fields:c,locales:r,parentIsLocalized:n||t.localized,valueFrom:s,valueTo:u}),a++}return o}let p="diff-collapser",m=e=>{let t,r=(0,n.c)(19),{children:c,field:d,fields:m,hideGutter:y,initCollapsed:v,isIterable:b,Label:_,locales:w,parentIsLocalized:x,valueFrom:S,valueTo:C}=e,k=void 0!==y&&y,T=void 0!==b&&b,{t:N}=(0,l.d)(),[E,P]=(0,u.useState)(void 0!==v&&v),{config:O}=(0,o.c)();if(r[0]!==_||r[1]!==c||r[2]!==O||r[3]!==d||r[4]!==m||r[5]!==k||r[6]!==E||r[7]!==T||r[8]!==w||r[9]!==x||r[10]!==N||r[11]!==S||r[12]!==C){let e,n,l;if(T){if(!(0,s.eE)(d)&&!(0,s.MT)(d))throw Error("DiffCollapser: field must be an array or blocks field when isIterable is true");let t=null!=S?S:[],r=null!=C?C:[];if(!Array.isArray(t)||!Array.isArray(r))throw Error("DiffCollapser: valueFrom and valueTro must be arrays when isIterable is true");e=h({config:O,field:d,locales:w,parentIsLocalized:x,valueFromRows:t,valueToRows:r})}else e=f({config:O,fields:m,locales:w,parentIsLocalized:x,valueFrom:S,valueTo:C});let o=E&&"".concat(p,"__content--is-collapsed"),u=k&&"".concat(p,"__content--hide-gutter");r[14]!==o||r[15]!==u?(n=["".concat(p,"__content"),o,u].filter(Boolean),r[14]=o,r[15]=u,r[16]=n):n=r[16];let y=n.join(" ");r[17]!==E?(l=()=>P(!E),r[17]=E,r[18]=l):l=r[18],t=(0,i.jsxs)("div",{className:p,children:[(0,i.jsxs)(a.FieldDiffLabel,{children:[(0,i.jsxs)("button",{"aria-label":E?"Expand":"Collapse",className:"".concat(p,"__toggle-button"),onClick:l,type:"button",children:[(0,i.jsx)("div",{className:"".concat(p,"__label"),children:_}),(0,i.jsx)(a.ChevronIcon,{direction:E?"right":"down",size:"small"})]}),e>0&&E&&(0,i.jsx)("span",{className:"".concat(p,"__field-change-count"),children:N("version:changedFieldsCount",{count:e})})]}),(0,i.jsx)("div",{className:y,children:c})]}),r[0]=_,r[1]=c,r[2]=O,r[3]=d,r[4]=m,r[5]=k,r[6]=E,r[7]=T,r[8]=w,r[9]=x,r[10]=N,r[11]=S,r[12]=C,r[13]=t}else t=r[13];return t}},50301:(e,t,r)=>{"use strict";
24Object.defineProperty(t,"__esModule",{value:!0}),t.default=[r(73264).default]},51270:(e,t)=>{"use strict";function r(e,t){return t.rules.some(t=>n(e,t))}function n(e,t){var r;return void 0!==e[t.keyword]||(null==(r=t.definition.implements)?void 0:r.some(t=>void 0!==e[t]))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},n){let i=t.RULES.types[n];return i&&!0!==i&&r(e,i)},t.shouldUseGroup=r,t.shouldUseRule=n},51593:(e,t,r)=>{"use strict";r.d(t,{DateDiffComponent:()=>c});var n=r(19749),i=r(95155),l=r(63344),o=r(41412),a=r(92825),s=r(78234);r(12115);let u="date-diff",c=e=>{let t,r=(0,n.c)(7),{comparisonValue:c,field:d,locale:f,nestingLevel:h,versionValue:p}=e,{i18n:m}=(0,l.d)(),{config:y}=(0,o.c)(),{admin:v}=y,{dateFormat:b}=v,_=c?(0,s.Yq)({date:"string"==typeof c?new Date(c):c,i18n:m,pattern:b}):"",w=p?(0,s.Yq)({date:"string"==typeof p?new Date(p):p,i18n:m,pattern:b}):"",x=(0,a.escapeDiffHTML)(_),S=(0,a.escapeDiffHTML)(w),C='<div class="'.concat(u,'" data-enable-match="true" data-date="').concat(x,'"><p>')+x+"</p></div>",k='<div class="'.concat(u,'" data-enable-match="true" data-date="').concat(S,'"><p>')+S+"</p></div>";if(r[0]!==d.label||r[1]!==m||r[2]!==f||r[3]!==h||r[4]!==C||r[5]!==k){let{From:e,To:n}=(0,a.getHTMLDiffComponents)({fromHTML:C,postProcess:a.unescapeDiffHTML,toHTML:k,tokenizeByCharacter:!1});t=(0,i.jsx)(a.FieldDiffContainer,{className:u,From:e,i18n:m,label:{label:d.label,locale:f},nestingLevel:h,To:n}),r[0]=d.label,r[1]=m,r[2]=f,r[3]=h,r[4]=C,r[5]=k,r[6]=t}else t=r[6];return t}},51616:e=>{"use strict";e.exports=function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(l=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,l[i]))return!1;for(i=n;0!=i--;){var n,i,l,o=l[i];if(!e(t[o],r[o]))return!1}return!0}return t!=t&&r!=r}},52143:(e,t,r)=>{"use strict";function n(e){return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}r.d(t,{k:()=>n})},52256:(e,t,r)=>{"use strict";r.d(t,{N:()=>d});var n=r(95155),i=r(6874),l=r(35695),o=r(12115);r(19749);let a=o.createContext({isTransitioning:!1,startRouteTransition:e=>{"function"==typeof e&&e()},transitionProgress:0}),s=/https?|ftp|gopher|file/;function u(e){return"string"!=typeof e&&("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}let c="default"in i?i.default:i,d=e=>{let{children:t,href:r,onClick:i,preventDefault:d=!0,ref:f,replace:h,scroll:p,...m}=e,y=(0,l.useRouter)(),{startRouteTransition:v}=o.use(a);return(0,n.jsx)(c,{href:r,onClick:e=>{if(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e))return;i&&i(e),d&&e.preventDefault();let t="string"==typeof r?r:function(e){let{auth:t}=e,{hostname:r}=e,n=e.protocol||"",i=e.pathname||"",l=e.hash||"",o=e.query||"",a=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?a=t+e.host:r&&(a=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(a+=":"+e.port)),o&&"object"==typeof o&&(o=String(function(e){let t=new URLSearchParams;return Object.entries(e).forEach(([e,r])=>{Array.isArray(r)?r.forEach(r=>t.append(e,u(r))):t.set(e,u(r))}),t}(o)));let c=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||s.test(n))&&!1!==a?(a="//"+(a||""),i&&"/"!==i[0]&&(i="/"+i)):a||(a=""),l&&"#"!==l[0]&&(l="#"+l),c&&"?"!==c[0]&&(c="?"+c),i=i.replace(/[?#]/g,encodeURIComponent),c=c.replace("#","%23"),`${n}${a}${i}${c}${l}`}(r);v(()=>{h?y.replace(t,{scroll:p}):y.push(t,{scroll:p})})},ref:f,...m,children:t})}},53034:(e,t,r)=>{"use strict";r.d(t,{Y:()=>i,d:()=>l});let n=e=>0===Object.keys(e).length,i=(e,t)=>n(t)?e:n(e)?t:("and"in e&&e.and?e.and.push(t):("or"in e,e={and:[e,t]}),e),l=({collectionConfig:e,search:t,where:r={}})=>{if(t){let l={...r||{}},o=(e.admin.listSearchableFields||[e.admin?.useAsTitle||"id"]).map(e=>({[e]:{like:t}}));o.length>0&&(l=i(l,{or:o})),n(l)||(r=l)}return r}},53537:()=>{},53745:(e,t,r)=>{"use strict";
24Object.defineProperty(t,"__esModule",{value:!0});let n=r(47134),i=r(65972);t.default=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",n.default,i.default]},53921:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class n extends r{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=n;class i extends r{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return""===e||'""'===e}get str(){var e;return null!=(e=this._str)?e:this._str=this._items.reduce((e,t)=>`${e}${t}`,"")}get names(){var e;return null!=(e=this._names)?e:this._names=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}}function l(e,...t){let r=[e[0]],n=0;for(;n<t.length;)s(r,t[n]),r.push(e[++n]);return new i(r)}t._Code=i,t.nil=new i(""),t._=l;let o=new i("+");function a(e,...t){let r=[u(e[0])],l=0;for(;l<t.length;)r.push(o),s(r,t[l]),r.push(o,u(e[++l]));return function(e){let t=1;for(;t<e.length-1;){if(e[t]===o){var r,i;let l=(r=e[t-1],'""'===(i=e[t+1])?r:'""'===r?i:"string"==typeof r?i instanceof n||'"'!==r[r.length-1]?void 0:"string"!=typeof i?`${r.slice(0,-1)}${i}"`:'"'===i[0]?r.slice(0,-1)+i.slice(1):void 0:"string"!=typeof i||'"'!==i[0]||r instanceof n?void 0:`"${r}${i.slice(1)}`);if(void 0!==l){e.splice(t-1,3,l);continue}e[t++]="+"}t++}}(r),new i(r)}function s(e,t){var r;t instanceof i?e.push(...t._items):t instanceof n?e.push(t):e.push("number"==typeof(r=t)||"boolean"==typeof r||null===r?r:u(Array.isArray(r)?r.join(","):r))}function u(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}t.str=a,t.addCodeArg=s,t.strConcat=function(e,t){return t.emptyStr()?e:e.emptyStr()?t:a`${e}${t}`},t.stringify=function(e){return new i(u(e))},t.safeStringify=u,t.getProperty=function(e){return"string"==typeof e&&t.IDENTIFIER.test(e)?new i(`.${e}`):l`[${e}]`},t.getEsmExportName=function(e){if("string"==typeof e&&t.IDENTIFIER.test(e))return new i(`${e}`);throw Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)},t.regexpCode=function(e){return new i(e.toString())}},54344:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(62889),i=r(79772),l=r(73274),o=r(99155);t.default={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>(0,i.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,i._)`{i: ${e}, j: ${t}}`},code(e){let{gen:t,data:r,$data:a,schema:s,parentSchema:u,schemaCode:c,it:d}=e;if(!a&&!s)return;let f=t.let("valid"),h=u.items?(0,n.getSchemaTypes)(u.items):[];e.block$data(f,function(){let a=t.let("i",(0,i._)`${r}.length`),s=t.let("j");e.setParams({i:a,j:s}),t.assign(f,!0),t.if((0,i._)`${a} > 1`,()=>(h.length>0&&!h.some(e=>"object"===e||"array"===e)?function(l,o){let a=t.name("item"),s=(0,n.checkDataTypes)(h,a,d.opts.strictNumbers,n.DataType.Wrong),u=t.const("indices",(0,i._)`{}`);t.for((0,i._)`;${l}--;`,()=>{t.let(a,(0,i._)`${r}[${l}]`),t.if(s,(0,i._)`continue`),h.length>1&&t.if((0,i._)`typeof ${a} == "string"`,(0,i._)`${a} += "_"`),t.if((0,i._)`typeof ${u}[${a}] == "number"`,()=>{t.assign(o,(0,i._)`${u}[${a}]`),e.error(),t.assign(f,!1).break()}).code((0,i._)`${u}[${a}] = ${l}`)})}:function(n,a){let s=(0,l.useFunc)(t,o.default),u=t.name("outer");t.label(u).for((0,i._)`;${n}--;`,()=>t.for((0,i._)`${a} = ${n}; ${a}--;`,()=>t.if((0,i._)`${s}(${r}[${n}], ${r}[${a}])`,()=>{e.error(),t.assign(f,!1).break(u)})))})(a,s))},(0,i._)`${c} === false`),e.ok(f)}}},54394:(e,t,r)=>{"use strict";r.d(t,{r:()=>n});let n=e=>"string"==typeof e||"number"==typeof e?e:e.id},54534:()=>{},54576:(e,t,r)=>{"use strict";r.d(t,{D:()=>l,d:()=>i});var n=r(32532);class i extends n.Kp7{__format;constructor(e,t){super(t),this.__format=e||""}exportJSON(){return{...super.exportJSON(),format:this.__format||""}}updateFromJSON(e){return super.updateFromJSON(e).setFormat(e.format||"")}canIndent(){return!1}createDOM(){return document.createElement("div")}updateDOM(){return!1}setFormat(e){let t=this.getWritable();return t.__format=e,t}
24isInline(){return!1}}function l(e){return e instanceof i}},54797:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r||(t.DiscrError=r={}))},55559:(e,t,r)=>{"use strict";r.d(t,{CreatedAtCell:()=>u});var n=r(95155),i=r(41412),l=r(63344),o=r(92825),a=r(78234),s=r(6001);r(12115);let u=e=>{let t,{collectionSlug:r,docID:u,globalSlug:c,isTrashed:d,rowData:f}=e,{id:h,updatedAt:p}=void 0===f?{}:f,{config:m}=(0,i.c)(),{admin:y,routes:v}=m,{dateFormat:b}=y,{admin:_}=v,{i18n:w}=(0,l.d)();return r&&(t=(0,s.Q)({adminRoute:_,path:"/collections/".concat(r,"/").concat(d?"trash/":"").concat(u,"/versions/").concat(h)})),c&&(t=(0,s.Q)({adminRoute:_,path:"/globals/".concat(c,"/versions/").concat(h)})),(0,n.jsx)(o.Link,{href:t,prefetch:!1,children:(0,a.Yq)({date:p,i18n:w,pattern:b})})}},56336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:r(81708).validateUnion,error:{message:"must match a schema in anyOf"}}},56717:(e,t,r)=>{"use strict";r.d(t,{Collapsible:()=>c});var n=r(19749),i=r(95155),l=r(84365),o=r(63344);r(12115);var a=r(20385),s=r(49947),u=r(79615);let c=e=>{var t;let r,c=(0,n.c)(8),{baseVersionField:d,comparisonValue:f,field:h,parentIsLocalized:p,versionValue:m}=e,{i18n:y}=(0,o.d)(),{selectedLocales:v}=(0,a.I)();return(null==(t=d.fields)?void 0:t.length)?(c[0]!==d.fields||c[1]!==h||c[2]!==y||c[3]!==p||c[4]!==v||c[5]!==f||c[6]!==m?(r=(0,i.jsx)("div",{className:"collapsible-diff",children:(0,i.jsx)(s.$,{fields:h.fields,Label:"label"in h&&h.label&&"function"!=typeof h.label&&(0,i.jsx)("span",{children:(0,l.s)(h.label,y)}),locales:v,parentIsLocalized:p||h.localized,valueFrom:f,valueTo:m,children:(0,i.jsx)(u.RenderVersionFieldsToDiff,{versionFields:d.fields})})}),c[0]=d.fields,c[1]=h,c[2]=y,c[3]=p,c[4]=v,c[5]=f,c[6]=m,c[7]=r):r=c[7],r):null}},56962:(e,t,r)=>{"use strict";r.d(t,{N:()=>n});let n={description:{maxLength:150,minLength:100},title:{maxLength:60,minLength:50}}},58013:()=>{},58208:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772),i=r(73274);t.default={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>(0,n._)`{propertyName: ${e.propertyName}}`}
24,code(e){let{gen:t,schema:r,data:l,it:o}=e;if((0,i.alwaysValidSchema)(o,r))return;let a=t.name("valid");t.forIn("key",l,r=>{e.setParams({propertyName:r}),e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:!0},a),t.if((0,n.not)(a),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(a)}}},58405:(e,t,r)=>{"use strict";r.d(t,{ShouldRenderTabs:()=>i});var n=r(92825);let i=e=>{let{children:t}=e,{id:r,collectionSlug:i,globalSlug:l}=(0,n.useDocumentInfo)();return i&&("create"!==r?r:null)||l?t:null}},58647:(e,t,r)=>{"use strict";r.d(t,{a:()=>a});var n=r(94271),i=r(12115);let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function o(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function a(){let[e]=(0,n.DF)(),t=(0,i.useMemo)(()=>o(e),[e,o]),[r,a]=(0,i.useState)(()=>t.initialValueFn()),s=(0,i.useRef)(r);return l(()=>{let{initialValueFn:e,subscribe:r}=t,n=e();return s.current!==n&&(s.current=n,a(n)),r(e=>{s.current=e,a(e)})},[t,o]),r}},58908:(e,t,r)=>{"use strict";r.d(t,{Banner:()=>a});var n=r(95155),i=r(12115);r(5718);var l=r(52256);let o="banner",a=e=>{let{type:t="default",alignIcon:r="right",children:a,className:s,icon:u,onClick:c,to:d}=e,f=[o,"".concat(o,"--type-").concat(t),s&&s,d&&"".concat(o,"--has-link"),(d||c)&&"".concat(o,"--has-action"),u&&"".concat(o,"--has-icon"),u&&"".concat(o,"--align-icon-").concat(r)].filter(Boolean).join(" "),h="div";return c&&!d&&(h="button"),d&&(h=l.N),(0,n.jsxs)(h,{className:f,href:d||null,onClick:c,children:[u&&"left"===r&&(0,n.jsx)(i.Fragment,{children:u}),(0,n.jsx)("span",{className:"".concat(o,"__content"),children:a}),u&&"right"===r&&(0,n.jsx)(i.Fragment,{children:u})]})}},59020:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(43961);let i=(e,t)=>{let r=t.substring(0,t.lastIndexOf(".")+1),i=t.split(".").pop(),l={};Object.keys(e).forEach(n=>{!e[n]?.disableFormData&&(0===n.indexOf(`${t}.`)||n===t)&&(l[n.replace(r,"")]=e[n]?.value,e[n]?.rows&&0===e[n].rows.length&&(l[n.replace(r,"")]=[]))});let o=(0,n.s)(l);return o?.[i]}},60007:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772);t.default={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxProperties"===e?"more":"fewer"} than ${t} properties`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:i}=e,l="maxProperties"===t?n.operators.GT:n.operators.LT;e.fail$data((0,n._)`Object.keys(${r}).length ${l} ${i}`)}}},61183:(e,t,r)=>{"use strict";r.d(t,{x:()=>i});var n=r(7239);function i(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let l=n.w.bind(null,e||r.find(e=>"object"==typeof e));return r.map(l)}},61721:(e,t,r)=>{"use strict";let n,i;r.d(t,{MM:()=>X,QZ:()=>T,iZ:()=>W,v:()=>N,vA:()=>u,vP:()=>y,xT:()=>J});var l=r(32532),o=r(92749);let a=Symbol.for("preact-signals");function s(){if(d>1)return void d--;let e,t=!1;for(;void 0!==i;){let r=i;for(i=void 0,f++;void 0!==r;){let n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&v(r))try{r.c()}catch(r){t||(e=r,t=!0)}r=n}}if(f=0,d--,t)throw e}function u(e){if(d>0)return e();d++;try{return e()}finally{s()}}function c(e){let t=n;n=void 0;try{return e()}finally{n=t}}let d=0,f=0,h=0;function p(e){if(void 0===n)return;let t=e.n;return void 0===t||t.t!==n?(t={i:0,S:e,p:n.s,n:void 0,t:n,e:void 0,x:void 0,r:t},void 0!==n.s&&(n.s.n=t),n.s=t,e.n=t,32&n.f&&e.S(t),t):-1===t.i?(t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=n.s,t.n=void 0,n.s.n=t,n.s=t),t):void 0}function m(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function y(e,t){return new m(e,t)}function v(e){for(let t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function b(e){for(let t=e.s;void 0!==t;t=t.n){let r=t.S.n;if(void 0!==r&&(t.r=r),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function _(e){let t,r=e.s;for(;void 0!==r;){let e=r.p;-1===r.i?(r.S.U(r),void 0!==e&&(e.n=r.n),void 0!==r.n&&(r.n.p=e)):t=r,r.S.n=r.r,void 0!==r.r&&(r.r=void 0),r=e}e.s=t}function w(e,t){m.call(this,void 0),this.x=e,this.s=void 0,this.g=h-1,this.f=4,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function x(e){let t=e.u;if(e.u=void 0,"function"==typeof t){d++;let r=n;n=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,S(e),t}finally{n=r,s()}}}function S(e){for(let t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,x(e)}function C(e){if(n!==this)throw Error("Out-of-order effect");_(this),n=e,this.f&=-2,8&this.f&&S(this),s()}function k(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=null==t?void 0:t.name}function T(e,t){let r=new k(e,t);try{r.c()}catch(e){throw r.d(),e}let n=r.d.bind(r);return n[Symbol.dispose]=n,n}function N(e,t={}){let r={};for(let n in e){let i=t[n],l=y(void 0===i?e[n]:i);r[n]=l}return r}function E(){let e=(0,l.NiT)(),t=(0,l.vJq)(),r=(0,l.lJ7)();e.clear(),e.append(r),null!==t&&r.select(),(0,l.I2P)(t)&&(t.format=0)}m.prototype.brand=a,m.prototype.h=function(){return!0},m.prototype.S=function(e){let t=this.t;t!==e&&void 0===e.e&&(e.x=t,this.t=e,void 0!==t?t.e=e:c(()=>{var e;null==(e=this.W)||e.call(this)}))},m.prototype.U=function(e){if(void 0!==this.t){let t=e.e,r=e.x;void 0!==t&&(t.x=r,e.e=void 0),void 0!==r&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&c(()=>{var e;null==(e=this.Z)||e.call(this)}))}},m.prototype.subscribe=function(e){return T(()=>{let t=this.value,r=n;n=void 0;try{e(t)}finally{n=r}},{name:"sub"})},m.prototype.valueOf=function(){return this.value},m.prototype.toString=function(){return this.value+""},m.prototype.toJSON=function(){return this.value},m.prototype.peek=function(){let e=n;n=void 0;try{return this.value}finally{n=e}},Object.defineProperty(m.prototype,"value",{get(){let e=p(this);return void 0!==e&&(e.i=this.i),this.v},set(e){if(e!==this.v){if(f>100)throw Error("Cycle detected");this.v=e,this.i++,h++,d++;try{for(let e=this.t;void 0!==e;e=e.x)e.t.N()}finally{s()}}}}),w.prototype=new m,w.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f)||(this.f&=-5,this.g===h))return!0;
24if(this.g=h,this.f|=1,this.i>0&&!v(this))return this.f&=-2,!0;let e=n;try{b(this),n=this;let e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return n=e,_(this),this.f&=-2,!0},w.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(let e=this.s;void 0!==e;e=e.n)e.S.S(e)}m.prototype.S.call(this,e)},w.prototype.U=function(e){if(void 0!==this.t&&(m.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(let e=this.s;void 0!==e;e=e.n)e.S.U(e)}},w.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(let e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(w.prototype,"value",{get(){if(1&this.f)throw Error("Cycle detected");let e=p(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),k.prototype.c=function(){let e=this.S();try{if(8&this.f||void 0===this.x)return;let e=this.x();"function"==typeof e&&(this.u=e)}finally{e()}},k.prototype.S=function(){if(1&this.f)throw Error("Cycle detected");this.f|=1,this.f&=-9,x(this),b(this),d++;let e=n;return n=this,C.bind(this,e)},k.prototype.N=function(){2&this.f||(this.f|=2,this.o=i,i=this)},k.prototype.d=function(){this.f|=8,1&this.f||S(this)},k.prototype.dispose=function(){this.d()},(0,l.vE9)({build:(e,t,r)=>N(t),config:(0,l.lVE)({defaultSelection:"rootEnd",disabled:!1}),name:"@lexical/extension/AutoFocus",register(e,t,r){let n=r.getOutput();return T(()=>n.disabled.value?void 0:e.registerRootListener(t=>{e.focus(()=>{let e=document.activeElement;null===t||null!==e&&t.contains(e)||t.focus({preventScroll:!0})},{defaultSelection:n.defaultSelection.peek()})}))}}),(0,l.vE9)({build:(e,t,r)=>N(t),config:(0,l.lVE)({$onClear:E}),name:"@lexical/extension/ClearEditor",register(e,t,r){let{$onClear:n}=r.getOutput();return T(()=>(function(e,t=E){return e.registerCommand(l.SKc,r=>(e.update(t),!0),l.jZM)})(e,n.value))}});let P=(0,l.urt)("format",{parse:e=>"number"==typeof e?e:0});class O extends l.Kp7{$config(){return this.config("decorator-text",{extends:l.Kp7,stateConfigs:[{flat:!0,stateConfig:P}]})}getFormat(){return(0,l.I8X)(this,P)}getFormatFlags(e,t){return(0,l.FyW)(this.getFormat(),e,t)}hasFormat(e){let t=l.LZn[e];return 0!=(this.getFormat()&t)}setFormat(e){return(0,l.Chh)(this,P,e)}toggleFormat(e){let t=this.getFormat(),r=(0,l.FyW)(t,e,null);return this.setFormat(r)}isInline(){return!0}createDOM(){return document.createElement("span")}updateDOM(){return!1}}function $(e,t){let r;return y(e(),{unwatched(){r&&(r(),r=void 0)},watched(){this.value=e(),r=t(this)}})}(0,l.vE9)({name:"@lexical/extension/DecoratorText",nodes:()=>[O],register:(e,t,r)=>e.registerCommand(l.mB,e=>{let t=(0,l.vJq)();if((0,l.RTZ)(t)||(0,l.I2P)(t))for(let r of t.getNodes())r instanceof O&&r.toggleFormat(e);return!1},l.AcJ)});let A=(0,l.vE9)({build:e=>$(()=>e.getEditorState(),t=>e.registerUpdateListener(e=>{t.value=e.editorState})),name:"@lexical/extension/EditorState"});function M(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let j=new Set;class D{builder;configs;_dependency;_peerNameSet;extension;state;_signal;constructor(e,t){this.builder=e,this.extension=t,this.configs=new Set,this.state={id:0}}mergeConfigs(){let e=this.extension.config||{},t=this.extension.mergeConfig?this.extension.mergeConfig.bind(this.extension):l.Tc1;for(let r of this.configs)e=t(e,r);return e}init(e){let t,r=this.state;2===r.id||M(306,String(r.id));let n={getDependency:this.getInitDependency.bind(this),getDirectDependentNames:this.getDirectDependentNames.bind(this),getPeer:this.getInitPeer.bind(this),getPeerNameSet:this.getPeerNameSet.bind(this)},i={...n,getDependency:this.getDependency.bind(this),getInitResult:this.getInitResult.bind(this),getPeer:this.getPeer.bind(this)},l=Object.assign(r,{config:this.mergeConfigs(),id:3,registerState:n});this.state=l,this.extension.init&&(t=this.extension.init(e,l.config,n)),this.state=Object.assign(l,{id:4,initResult:t,registerState:i})}build(e){let t,r=this.state;4!==r.id&&M(307,String(r.id),String(5)),this.extension.build&&(t=this.extension.build(e,r.config,r.registerState));let n={...r.registerState,getOutput:()=>t,getSignal:this.getSignal.bind(this)};this.state=Object.assign(r,{id:5,output:t,registerState:n})}register(e,t){this._signal=t;let r=this.state;5!==r.id&&M(308,String(r.id),String(5));let n=this.extension.register&&this.extension.register(e,r.config,r.registerState);return this.state=Object.assign(r,{id:6}),()=>{let e=this.state;7!==e.id&&M(309,String(r.id),String(7)),this.state=Object.assign(e,{id:5}),n&&n()}}afterRegistration(e){let t,r=this.state;return 6!==r.id&&M(310,String(r.id),String(6)),this.extension.afterRegistration&&(t=this.extension.afterRegistration(e,r.config,r.registerState)),this.state=Object.assign(r,{id:7}),t}getSignal(){return void 0===this._signal&&M(311),this._signal}getInitResult(){void 0===this.extension.init&&M(312,this.extension.name);let e=this.state;return e.id>=4||M(313,String(e.id),String(4)),e.initResult}getInitPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionInitDependency():void 0}getExtensionInitDependency(){let e=this.state;return e.id>=3||M(314,String(e.id),String(3)),{config:e.config}}getPeer(e){let t=this.builder.extensionNameMap.get(e);return t?t.getExtensionDependency():void 0}getInitDependency(e){let t=this.builder.getExtensionRep(e);return void 0===t&&M(315,this.extension.name,e.name),t.getExtensionInitDependency()}getDependency(e){let t=this.builder.getExtensionRep(e);return void 0===t&&M(315,this.extension.name,e.name),t.getExtensionDependency()}getState(){let e=this.state;return e.id>=7||M(316,String(e.id),String(7)),e}getDirectDependentNames(){return this.builder.incomingEdges.get(this.extension.name)||j}getPeerNameSet(){let e=this._peerNameSet;
24return e||(e=new Set((this.extension.peerDependencies||[]).map(([e])=>e)),this._peerNameSet=e),e}getExtensionDependency(){if(!this._dependency){let e=this.state;e.id>=5||M(317,this.extension.name),this._dependency={config:e.config,init:e.initResult,output:e.output}}return this._dependency}}let I={tag:l.T40};function F(){let e=(0,l.NiT)();e.isEmpty()&&e.append((0,l.lJ7)())}let R=(0,l.vE9)({config:(0,l.lVE)({setOptions:I,updateOptions:I}),init:({$initialEditorState:e=F})=>({$initialEditorState:e,initialized:!1}),afterRegistration(e,{updateOptions:t,setOptions:r},n){let i=n.getInitResult();if(!i.initialized){i.initialized=!0;let{$initialEditorState:n}=i;if((0,l.v0B)(n))e.setEditorState(n,r);else if("function"==typeof n)e.update(()=>{n(e)},t);else if(n&&("string"==typeof n||"object"==typeof n)){let t=e.parseEditorState(n);e.setEditorState(t,r)}}return()=>{}},name:"@lexical/extension/InitialState",nodes:[l.haT,l.Ey8,l.GRK,l.MZu,l.fD3]}),L=Symbol.for("@lexical/extension/LexicalBuilder");function B(){}function z(e){throw e}function K(e){return Array.isArray(e)?e:[e]}let U="0.41.0+prod.esm";class W{roots;extensionNameMap;outgoingConfigEdges;incomingEdges;conflicts;_sortedExtensionReps;PACKAGE_VERSION;constructor(e){for(let t of(this.outgoingConfigEdges=new Map,this.incomingEdges=new Map,this.extensionNameMap=new Map,this.conflicts=new Map,this.PACKAGE_VERSION=U,this.roots=e,e))this.addExtension(t)}static fromExtensions(e){let t=[K(R)];for(let r of e)t.push(K(r));return new W(t)}static maybeFromEditor(e){let t=e[L];return t&&(t.PACKAGE_VERSION!==U&&M(292,t.PACKAGE_VERSION,U),t instanceof W||M(293)),t}static fromEditor(e){let t=W.maybeFromEditor(e);return void 0===t&&M(294),t}constructEditor(){let{$initialEditorState:e,onError:t,...r}=this.buildCreateEditorArgs(),n=Object.assign((0,l.ieJ)({...r,...t?{onError:e=>{t(e,n)}}:{}}),{[L]:this});for(let e of this.sortedExtensionReps())e.build(n);return n}buildEditor(){let e=B;function t(){try{e()}finally{e=B}}let r=Object.assign(this.constructEditor(),{dispose:t,[Symbol.dispose]:t});
24return e=(0,l.Sdt)(this.registerEditor(r),()=>r.setRootElement(null)),r}hasExtensionByName(e){return this.extensionNameMap.has(e)}getExtensionRep(e){let t=this.extensionNameMap.get(e.name);if(t)return t.extension!==e&&M(295,e.name),t}addEdge(e,t,r){let n=this.outgoingConfigEdges.get(e);n?n.set(t,r):this.outgoingConfigEdges.set(e,new Map([[t,r]]));let i=this.incomingEdges.get(t);i?i.add(e):this.incomingEdges.set(t,new Set([e]))}addExtension(e){void 0!==this._sortedExtensionReps&&M(296);let[t]=K(e);"string"!=typeof t.name&&M(297,typeof t.name);let r=this.extensionNameMap.get(t.name);if(void 0!==r&&r.extension!==t&&M(298,t.name),!r){r=new D(this,t),this.extensionNameMap.set(t.name,r);let e=this.conflicts.get(t.name);for(let r of("string"==typeof e&&M(299,t.name,e),t.conflictsWith||[]))this.extensionNameMap.has(r)&&M(299,t.name,r),this.conflicts.set(r,t.name);for(let e of t.dependencies||[]){let r=K(e);this.addEdge(t.name,r[0].name,r.slice(1)),this.addExtension(r)}for(let[e,r]of t.peerDependencies||[])this.addEdge(t.name,e,r?[r]:[])}}sortedExtensionReps(){if(this._sortedExtensionReps)return this._sortedExtensionReps;let e=[],t=(r,n)=>{var i,l;let o=r.state;if(2===o.id)return;let a=r.extension.name;0===o.id||M(300,a,n||"[unknown]"),0===(i=o).id||M(304,String(i.id),String(0)),r.state=o=Object.assign(i,{id:1});let s=this.outgoingConfigEdges.get(a);if(s)for(let e of s.keys()){let r=this.extensionNameMap.get(e);r&&t(r,a)}1===(l=o).id||M(305,String(l.id),String(1)),r.state=o=Object.assign(l,{id:2}),e.push(r)};for(let e of this.extensionNameMap.values())0===e.state.id&&t(e);for(let t of e)for(let[e,r]of this.outgoingConfigEdges.get(t.extension.name)||[])if(r.length>0){let t=this.extensionNameMap.get(e);if(t)for(let e of r)t.configs.add(e)}for(let[e,...t]of this.roots)if(t.length>0){let r=this.extensionNameMap.get(e.name);for(let n of(void 0===r&&M(301,e.name),t))r.configs.add(n)}return this._sortedExtensionReps=e,this._sortedExtensionReps}registerEditor(e){let t=this.sortedExtensionReps(),r=new AbortController,n=[()=>r.abort()],i=r.signal;for(let r of t){let t=r.register(e,i);t&&n.push(t)}for(let r of t){let t=r.afterRegistration(e);t&&n.push(t)}return(0,l.Sdt)(...n)}buildCreateEditorArgs(){let e={},t=new Set,r=new Map,n=new Map,i={},l={},o=this.sortedExtensionReps();for(let a of o){let{extension:o}=a;if(void 0!==o.onError&&(e.onError=o.onError),void 0!==o.disableEvents&&(e.disableEvents=o.disableEvents),void 0!==o.parentEditor&&(e.parentEditor=o.parentEditor),void 0!==o.editable&&(e.editable=o.editable),void 0!==o.namespace&&(e.namespace=o.namespace),void 0!==o.$initialEditorState&&(e.$initialEditorState=o.$initialEditorState),o.nodes){for(let e of("function"==typeof o.nodes?o.nodes():o.nodes)||[]){if("function"!=typeof e){let t=r.get(e.replace);t&&M(302,o.name,e.replace.name,t.extension.name),r.set(e.replace,a)}t.add(e)}}if(o.html){if(o.html.export)for(let[e,t]of o.html.export.entries())n.set(e,t);o.html.import&&Object.assign(i,o.html.import)}o.theme&&function e(t,r){if(t&&r&&!Array.isArray(r)&&"object"==typeof t&&"object"==typeof r){for(let n in r)t[n]=e(t[n],r[n]);return t}return r}(l,o.theme)}Object.keys(l).length>0&&(e.theme=l),t.size&&(e.nodes=[...t]);let a=Object.keys(i).length>0,s=n.size>0;for(let t of((a||s)&&(e.html={},a&&(e.html.import=i),s&&(e.html.export=n)),o))t.init(e);return e.onError||(e.onError=z),e}}function J(e,t){let r=W.fromEditor(e).extensionNameMap.get(t);return r?r.getExtensionDependency():void 0}let q=new Set,V=(0,l.vE9)({build(e,t,r){let n=r.getDependency(A).output,i=y({watchedNodeKeys:new Map}),o=$(()=>{},()=>T(()=>{let e=o.peek(),{watchedNodeKeys:t}=i.value,r,a=!1;n.value.read(()=>{if((0,l.vJq)())for(let[n,i]of t.entries()){if(0===i.size){t.delete(n);continue}let o=(0,l.nsf)(n),s=o&&o.isSelected()||!1;a=a||s!==(!!e&&e.has(n)),s&&(r=r||new Set).add(n)}}),!a&&r&&e&&r.size===e.size||(o.value=r)}));
24return{watchNodeKey:function(e){let t=new w(()=>(o.value||q).has(e),void 0),{watchedNodeKeys:r}=i.peek(),n=r.get(e),l=void 0!==n;return(n=n||new Set).add(t),l||(r.set(e,n),i.value={watchedNodeKeys:r}),t}}},dependencies:[A],name:"@lexical/extension/NodeSelection"});(0,l.guI)("INSERT_HORIZONTAL_RULE_COMMAND");class H extends l.Kp7{static getType(){return"horizontalrule"}static clone(e){return new H(e.__key)}static importJSON(e){return Y().updateFromJSON(e)}static importDOM(){return{hr:()=>({conversion:G,priority:0})}}exportDOM(){return{element:document.createElement("hr")}}createDOM(e){let t=document.createElement("hr");return(0,l.ZB7)(t,e.theme.hr),t}getTextContent(){return"\n"}isInline(){return!1}updateDOM(){return!1}}function G(){return{node:Y()}}function Y(){return(0,l.phO)(H)}function Z(e){return e.canBeEmpty()}function X(e,t,r=Z){return(0,l.Sdt)(e.registerCommand(l.OXk,t=>{let r=(0,l.vJq)();if(!(0,l.I2P)(r))return!1;t.preventDefault();let n=!function(e){if(e.getNodes().filter(e=>(0,l.y68)(e)&&e.canIndent()).length>0)return!0;let t=e.anchor,r=e.focus,n=r.isBefore(t)?r:t,i=n.getNode(),a=(0,o.mB)(i);if(a.canIndent()){let e=a.getKey(),t=(0,l.uTE)();if(t.anchor.set(e,0,"element"),t.focus.set(e,0,"element"),(t=(0,l.CaD)(t)).anchor.is(n))return!0}return!1}(r)?l.YW5:t.shiftKey?l.sik:l.PiT;return e.dispatchCommand(n,void 0)},l.jZM),e.registerCommand(l.PiT,()=>{let e="number"==typeof t?t:t?t.peek():null,n=(0,l.vJq)();if(!(0,l.I2P)(n))return!1;let i="function"==typeof r?r:r.peek();return(0,o.Jy)(t=>{if(i(t)){let r=t.getIndent()+1;(!e||r<e)&&t.setIndent(r)}})},l.da8))}(0,l.vE9)({dependencies:[A,V],name:"@lexical/extension/HorizontalRule",nodes:()=>[H],register(e,t,r){let{watchNodeKey:n}=r.getDependency(V).output,i=y({nodeSelections:new Map}),o=e._config.theme.hrSelected??"selected";return(0,l.Sdt)(e.registerCommand(l.d8p,e=>{if((0,l.vAA)(e.target)){let t=(0,l.pJU)(e.target);if(t instanceof H)return function(e,t=!1){let r,n=(0,l.vJq)(),i=e.isSelected(),o=e.getKey();t&&(0,l.RTZ)(n)?r=n:(r=(0,l.rUs)(),(0,l.n1P)(r)),i?r.delete(o):r.add(o)}(t,e.shiftKey),!0}return!1},l.AcJ),e.registerMutationListener(H,(t,r)=>{u(()=>{let r=!1,{nodeSelections:l}=i.peek();for(let[i,o]of t.entries())if("destroyed"===o)l.delete(i),r=!0;else{let t=l.get(i),o=e.getElementByKey(i);t?t.domNode.value=o:(r=!0,l.set(i,{domNode:y(o),selectedSignal:n(i)}))}r&&(i.value={nodeSelections:l})})}),T(()=>{let e=[];for(let{domNode:t,selectedSignal:r}of i.value.nodeSelections.values())e.push(T(()=>{let e=t.value;e&&(r.value?(0,l.ZB7)(e,o):(0,l.HEf)(e,o))}));return(0,l.Sdt)(...e)}))}}),(0,l.vE9)({build:(e,t,r)=>N(t),config:(0,l.lVE)({$canIndent:Z,disabled:!1,maxIndent:null}),name:"@lexical/extension/TabIndentation",register(e,t,r){let{disabled:n,maxIndent:i,$canIndent:l}=r.getOutput();return T(()=>{if(!n.value)return X(e,i,l)})}})},61731:(e,t,r)=>{"use strict";r.d(t,{Cb:()=>b,Nx:()=>d,Rk:()=>w,SD:()=>c,Vs:()=>h,Wh:()=>o,Xg:()=>f,dt:()=>u,zI:()=>m});var n=r(32532);let i=new Map;function l(e){let t={};if(!e)return t;for(let r of e.split(";"))if(""!==r){let[e,n]=r.split(/:([^]+)/);e&&n&&(t[e.trim()]=n.trim())}return t}function o(e){let t=i.get(e);return void 0===t&&(t=l(e),i.set(e,t)),t}function a(e){let t=(0,n.i0_)().getElementByKey(e.getKey());if(null===t)return null;let r=t.ownerDocument.defaultView;return null===r?null:r.getComputedStyle(t)}function s(e){return a((0,n.hVZ)(e)?e:e.getParentOrThrow())}function u(e){let t=s(e);return null!==t&&"rtl"===t.direction}function c(e,t,r="self"){let i=e.getStartEndPoints();if(t.isSelected(e)&&!(0,n.Rb_)(t)&&null!==i){let[l,o]=i,a=e.isBackward(),s=l.getNode(),u=o.getNode(),c=t.is(s),d=t.is(u);if(c||d){let[i,l]=(0,n.Cku)(e),o=s.is(u),c=t.is(a?u:s),d=t.is(a?s:u),f,h=0;o?(h=i>l?l:i,f=i>l?i:l):c?(h=a?l:i,f=void 0):d&&(h=0,f=a?i:l);let p=t.__text.slice(h,f);p!==t.__text&&("clone"===r&&(t=(0,n.U5P)(t)),t.__text=p)}}return t}function d(e){if("text"===e.type)return e.offset===e.getNode().getTextContentSize();let t=e.getNode();return(0,n.ff4)(t)||function(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let e of(n.append("code",177),t))n.append("v",e);throw r.search=n.toString(),Error(`Minified Lexical error #${177}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(177),e.offset===t.getChildrenSize()}function f(e){let t=e.getStyle(),r=l(t);i.set(t,r)}function h(e){let t=(0,n.vJq)();if(!t)return;let r=new Map,i=e=>r.get(e.getKey())||[0,e.getTextContentSize()];if((0,n.I2P)(t))for(let e of(0,n.$iu)(t).getTextSlices())e&&r.set(e.caret.origin.getKey(),e.getSliceIndices());for(let r of t.getNodes()){if(!(0,n.kFe)(r)||!r.canHaveFormat())continue;let[t,l]=i(r);l!==t&&e((0,n.Rb_)(r)||0===t&&l===r.getTextContentSize()?r:r.splitText(t,l)[
24+(0!==t)])}(0,n.I2P)(t)&&"text"===t.anchor.type&&"text"===t.focus.type&&t.anchor.key===t.focus.key&&function(e){if(e.isBackward()){let{anchor:t,focus:r}=e,{key:n,offset:i,type:l}=t;t.set(r.key,r.offset,r.type),r.set(n,i,l)}}(t)}function p(e,t){let r=e.getFormatType(),n=e.getIndent();r!==t.getFormatType()&&t.setFormat(r),n!==t.getIndent()&&t.setIndent(n)}function m(e,t,r=p){if(null===e)return;let i=e.getStartEndPoints(),l=new Map,o=null;if(i){let[e,t]=i;(o=(0,n.uTE)()).anchor.set(e.key,e.offset,e.type),o.focus.set(t.key,t.offset,t.type);let r=(0,n.BtT)(e.getNode(),n.w3H),a=(0,n.BtT)(t.getNode(),n.w3H);(0,n.ff4)(r)&&l.set(r.getKey(),r),(0,n.ff4)(a)&&l.set(a.getKey(),a)}for(let t of e.getNodes())if((0,n.ff4)(t)&&(0,n.w3H)(t))l.set(t.getKey(),t);else if(null===i){let e=(0,n.BtT)(t,n.w3H);(0,n.ff4)(e)&&l.set(e.getKey(),e)}for(let[e,n]of l){let i=t();r(n,i),n.replace(i,!0),o&&(e===o.anchor.key&&o.anchor.set(i.getKey(),o.anchor.offset,o.anchor.type),e===o.focus.key&&o.focus.set(i.getKey(),o.focus.offset,o.focus.type))}o&&e.is((0,n.vJq)())&&(0,n.n1P)(o)}function y(e){let t=v(e);return null!==t&&"vertical-rl"===t.writingMode}function v(e){let t=e.anchor.getNode();return(0,n.ff4)(t)?a(t):s(t)}function b(e,t){let r=y(e)?!t:t;_(e)&&(r=!r);let i=(0,n.Ave)(e.focus,r?"previous":"next");if((0,n.pGK)(i))return!1;for(let e of(0,n.mWO)(i)){if((0,n.cmH)(e))return!e.origin.isInline();if(!(0,n.ff4)(e.origin)){if((0,n.Cyw)(e.origin))return!0;break}}return!1}function _(e){let t=v(e);return null!==t&&"rtl"===t.direction}function w(e,t,r){let n,i=_(e);n=y(e)||i?!r:r,e.modify(t?"extend":"move",n,"character")}},61974:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772);t.default={data:new n.Name("data"),valCxt:new n.Name("valCxt"),instancePath:new n.Name("instancePath"),parentData:new n.Name("parentData"),parentDataProperty:new n.Name("parentDataProperty"),rootData:new n.Name("rootData"),dynamicAnchors:new n.Name("dynamicAnchors"),vErrors:new n.Name("vErrors"),errors:new n.Name("errors"),this:new n.Name("this"),self:new n.Name("self"),scope:new n.Name("scope"),json:new n.Name("json"),jsonPos:new n.Name("jsonPos"),jsonLen:new n.Name("jsonLen"),jsonPart:new n.Name("jsonPart")}},62002:(e,t,r)=>{"use strict";r.d(t,{Pi:()=>N,ZI:()=>$,dJ:()=>b,fi:()=>T,gA:()=>E,jL:()=>x,jd:()=>w,xi:()=>_});var n=r(40983),i=r(2097),l=r(61731),o=r(32532),a=r(92749);function s(e,t){if(void 0!==document.caretRangeFromPoint){let r=document.caretRangeFromPoint(e,t);return null===r?null:{node:r.startContainer,offset:r.startOffset}}if("undefined"!==document.caretPositionFromPoint){let r=document.caretPositionFromPoint(e,t);return null===r?null:{node:r.offsetNode,offset:r.offset}}return null}let u="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,c=u&&"documentMode"in document?document.documentMode:null,d=u&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),f=!(!u||!("InputEvent"in window)||c)&&"getTargetRanges"in new window.InputEvent("input"),h=u&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),p=u&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,m=u&&/^(?=.*Chrome).*/i.test(navigator.userAgent),y=u&&/AppleWebKit\/[\d.]+/.test(navigator.userAgent)&&d&&!m,v=(0,o.guI)("DRAG_DROP_PASTE_FILE");class b extends o.fGB{static getType(){return"quote"}static clone(e){return new b(e.__key)}createDOM(e){let t=document.createElement("blockquote");return(0,o.ZB7)(t,e.theme.quote),t}updateDOM(e,t){return!1}static importDOM(){return{blockquote:e=>({conversion:k,priority:0})}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,o.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let r=this.getDirection();r&&(t.dir=r)}return{element:t}}static importJSON(e){return _().updateFromJSON(e)}insertNewAfter(e,t){let r=(0,o.lJ7)(),n=this.getDirection();return r.setDirection(n),this.insertAfter(r,t),r}collapseAtStart(){let e=(0,o.lJ7)();
24return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}canMergeWhenEmpty(){return!0}}function _(){return(0,o.pTq)(new b)}function w(e){return e instanceof b}class x extends o.fGB{__tag;static getType(){return"heading"}static clone(e){return new x(e.__tag,e.__key)}constructor(e,t){super(t),this.__tag=e}getTag(){return this.__tag}setTag(e){let t=this.getWritable();return this.__tag=e,t}createDOM(e){let t=this.__tag,r=document.createElement(t),n=e.theme.heading;if(void 0!==n){let e=n[t];(0,o.ZB7)(r,e)}return r}updateDOM(e,t,r){return e.__tag!==this.__tag}static importDOM(){return{h1:e=>({conversion:C,priority:0}),h2:e=>({conversion:C,priority:0}),h3:e=>({conversion:C,priority:0}),h4:e=>({conversion:C,priority:0}),h5:e=>({conversion:C,priority:0}),h6:e=>({conversion:C,priority:0}),p:e=>{let t=e.firstChild;return null!==t&&S(t)?{conversion:()=>({node:null}),priority:3}:null},span:e=>S(e)?{conversion:e=>({node:T("h1")}),priority:3}:null}}exportDOM(e){let{element:t}=super.exportDOM(e);if((0,o.sby)(t)){this.isEmpty()&&t.append(document.createElement("br"));let e=this.getFormatType();e&&(t.style.textAlign=e);let r=this.getDirection();r&&(t.dir=r)}return{element:t}}static importJSON(e){return T(e.tag).updateFromJSON(e)}updateFromJSON(e){return super.updateFromJSON(e).setTag(e.tag)}exportJSON(){return{...super.exportJSON(),tag:this.getTag()}}insertNewAfter(e,t=!0){let r=e?e.anchor.offset:0,n=this.getLastDescendant(),i=n&&(!e||e.anchor.key!==n.getKey()||r!==n.getTextContentSize())&&e?T(this.getTag()):(0,o.lJ7)(),l=this.getDirection();if(i.setDirection(l),this.insertAfter(i,t),0===r&&!this.isEmpty()&&e){let e=(0,o.lJ7)();e.select(),this.replace(e,!0)}return i}collapseAtStart(){let e=this.isEmpty()?(0,o.lJ7)():T(this.getTag());
24return this.getChildren().forEach(t=>e.append(t)),this.replace(e),!0}extractWithChild(){return!0}}function S(e){return"span"===e.nodeName.toLowerCase()&&"26pt"===e.style.fontSize}function C(e){let t=e.nodeName.toLowerCase(),r=null;return"h1"!==t&&"h2"!==t&&"h3"!==t&&"h4"!==t&&"h5"!==t&&"h6"!==t||(r=T(t),null!==e.style&&((0,o.dxY)(e,r),r.setFormat(e.style.textAlign))),{node:r}}function k(e){let t=_();return null!==e.style&&(t.setFormat(e.style.textAlign),(0,o.dxY)(e,t)),{node:t}}function T(e="h1"){return(0,o.pTq)(new x(e))}function N(e){return e instanceof x}function E(e){let t=null;if((0,a.xj)(e,DragEvent)?t=e.dataTransfer:(0,a.xj)(e,ClipboardEvent)&&(t=e.clipboardData),null===t)return[!1,[],!1];let r=t.types,n=r.includes("Files"),i=r.includes("text/html")||r.includes("text/plain");return[n,Array.from(t.files),i]}function P(e){let t=(0,o.xL4)(e);return(0,o.Cyw)(t)}function O(e){for(let t of["lowercase","uppercase","capitalize"])e.hasFormat(t)&&e.toggleFormat(t)}function $(e){return(0,o.Sdt)(e.registerCommand(o.d8p,e=>{let t=(0,o.vJq)();return!!(0,o.RTZ)(t)&&(t.clear(),!0)},o.jZM),e.registerCommand(o.WuB,e=>{let t=(0,o.vJq)();return(0,o.I2P)(t)?(t.deleteCharacter(e),!0):!!(0,o.RTZ)(t)&&(t.deleteNodes(),!0)},o.jZM),e.registerCommand(o.hi0,e=>{let t=(0,o.vJq)();return!!(0,o.I2P)(t)&&(t.deleteWord(e),!0)},o.jZM),e.registerCommand(o.viC,e=>{let t=(0,o.vJq)();return!!(0,o.I2P)(t)&&(t.deleteLine(e),!0)},o.jZM),e.registerCommand(o.bM3,t=>{let r=(0,o.vJq)();if("string"==typeof t)null!==r&&r.insertText(t);else{if(null===r)return!1;let i=t.dataTransfer;if(null!=i)(0,n.Bi)(i,r,e);else if((0,o.I2P)(r)){let e=t.data;return e&&r.insertText(e),!0}}return!0},o.jZM),e.registerCommand(o.$ey,()=>{let e=(0,o.vJq)();return!!(0,o.I2P)(e)&&(e.removeText(),!0)},o.jZM),e.registerCommand(o.mB,e=>{let t=(0,o.vJq)();return!!(0,o.I2P)(t)&&(t.formatText(e),!0)},o.jZM),e.registerCommand(o.fUS,e=>{let t=(0,o.vJq)();if(!(0,o.I2P)(t)&&!(0,o.RTZ)(t))return!1;for(let r of t.getNodes()){let t=(0,o.BtT)(r,e=>(0,o.ff4)(e)&&!e.isInline());null!==t&&t.setFormat(e)}return!0},o.jZM),e.registerCommand(o.FEN,e=>{let t=(0,o.vJq)();return!!(0,o.I2P)(t)&&(t.insertLineBreak(e),!0)},o.jZM),e.registerCommand(o.XKQ,()=>{let e=(0,o.vJq)();return!!(0,o.I2P)(e)&&(e.insertParagraph(),!0)},o.jZM),e.registerCommand(o.YW5,()=>{let e=(0,o.ev7)(),t=(0,o.vJq)();return(0,o.I2P)(t)&&(e.setFormat(t.format),e.setStyle(t.style)),(0,o.H2A)([e]),!0},o.jZM),e.registerCommand(o.PiT,()=>(0,a.Jy)(e=>{let t=e.getIndent();e.setIndent(t+1)}),o.jZM),e.registerCommand(o.sik,()=>(0,a.Jy)(e=>{let t=e.getIndent();t>0&&e.setIndent(Math.max(0,t-1))}),o.jZM),e.registerCommand(o.UDz,e=>{let t=(0,o.vJq)();if((0,o.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectPrevious(),!0}else if((0,o.I2P)(t)){let r=(0,o.B$P)(t.focus,!0);if(!e.shiftKey&&(0,o.Cyw)(r)&&!r.isIsolated()&&!r.isInline())return r.selectPrevious(),e.preventDefault(),!0}return!1},o.jZM),e.registerCommand(o.bbF,e=>{let t=(0,o.vJq)();if((0,o.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),r[0].selectNext(0,0),!0}else if((0,o.I2P)(t)){if(function(e){let t=e.focus;return"root"===t.key&&t.offset===(0,o.NiT)().getChildrenSize()}(t))return e.preventDefault(),!0;let r=(0,o.B$P)(t.focus,!1);if(!e.shiftKey&&(0,o.Cyw)(r)&&!r.isIsolated()&&!r.isInline())return r.selectNext(),e.preventDefault(),!0}return!1},o.jZM),e.registerCommand(o.AX0,e=>{let t=(0,o.vJq)();if((0,o.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),(0,l.dt)(r[0])?r[0].selectNext(0,0):r[0].selectPrevious(),!0}if(!(0,o.I2P)(t))return!1;if((0,l.Cb)(t,!0)){let r=e.shiftKey;return e.preventDefault(),(0,l.Rk)(t,r,!0),!0}return!1},o.jZM),e.registerCommand(o.JM3,e=>{let t=(0,o.vJq)();if((0,o.RTZ)(t)){let r=t.getNodes();if(r.length>0)return e.preventDefault(),(0,l.dt)(r[0])?r[0].selectPrevious():r[0].selectNext(0,0),!0}if(!(0,o.I2P)(t))return!1;let r=e.shiftKey;return!!(0,l.Cb)(t,!1)&&(e.preventDefault(),(0,l.Rk)(t,r,!1),!0)},o.jZM),e.registerCommand(o.gCZ,t=>{if(P(t.target))return!1;let r=(0,o.vJq)();if((0,o.I2P)(r)){if(function(e){if(!e.isCollapsed())return!1;let{anchor:t}=e;if(0!==t.offset)return!1;let r=t.getNode();if((0,o.hVZ)(r))return!1;let n=(0,a.mB)(r);return n.getIndent()>0&&(n.is(r)||r.is(n.getFirstDescendant()))}(r))return t.preventDefault(),e.dispatchCommand(o.sik,void 0);if(p&&"ko-KR"===navigator.language)return!1}else if(!(0,o.RTZ)(r))return!1;return t.preventDefault(),e.dispatchCommand(o.WuB,!0)},o.jZM),e.registerCommand(o.w$Z,t=>{if(P(t.target))return!1;let r=(0,o.vJq)();return!(!(0,o.I2P)(r)&&!(0,o.RTZ)(r))&&(t.preventDefault(),e.dispatchCommand(o.WuB,!1))},o.jZM),e.registerCommand(o.RTo,t=>{let r=(0,o.vJq)();if(!(0,o.I2P)(r))return!1;if(O(r),null!==t){if((p||h||y)&&f)return!1;if(t.preventDefault(),t.shiftKey)return e.dispatchCommand(o.FEN,!1)}return e.dispatchCommand(o.XKQ,void 0)},o.jZM),e.registerCommand(o.Q$N,()=>{let t=(0,o.vJq)();return!!(0,o.I2P)(t)&&(e.blur(),!0)},o.jZM),e.registerCommand(o.Sr4,t=>{let[,r]=E(t);if(r.length>0){let n=s(t.clientX,t.clientY);if(null!==n){let{offset:t,node:i}=n,l=(0,o.xL4)(i);if(null!==l){let e=(0,o.uTE)();if((0,o.kFe)(l))e.anchor.set(l.getKey(),t,"text"),e.focus.set(l.getKey(),t,"text");else{let t=l.getParentOrThrow().getKey(),r=l.getIndexWithinParent()+1;e.anchor.set(t,r,"element"),e.focus.set(t,r,"element")}let r=(0,o.CaD)(e);(0,o.n1P)(r)}e.dispatchCommand(v,r)}return t.preventDefault(),!0}let n=(0,o.vJq)();return!!(0,o.I2P)(n)},o.jZM),e.registerCommand(o.TgX,e=>{let[t]=E(e),r=(0,o.vJq)();return!(t&&!(0,o.I2P)(r))},o.jZM),e.registerCommand(o.riq,e=>{let[t]=E(e),r=(0,o.vJq)();if(t&&!(0,o.I2P)(r))return!1;let n=s(e.clientX,e.clientY);if(null!==n){let t=(0,o.xL4)(n.node);(0,o.Cyw)(t)&&e.preventDefault()}return!0},o.jZM),e.registerCommand(o.HYn,()=>((0,o.e1k)(),!0),o.jZM),e.registerCommand(o.u5G,t=>((0,n.lW)(e,(0,a.xj)(t,ClipboardEvent)?t:null),!0),o.jZM),e.registerCommand(o.VSO,t=>((async function(e,t){await (0,n.lW)(t,(0,a.xj)(e,ClipboardEvent)?e:null),t.update(()=>{let e=(0,o.vJq)();
24(0,o.I2P)(e)?e.removeText():(0,o.RTZ)(e)&&e.getNodes().forEach(e=>e.remove())})})(t,e),!0),o.jZM),e.registerCommand(o.waI,t=>{let[,r,i]=E(t);return r.length>0&&!i?(e.dispatchCommand(v,r),!0):!((0,o.vAA)(t.target)&&(0,o.Z$U)(t.target))&&null!==(0,o.vJq)()&&(t.preventDefault(),e.update(()=>{let r=(0,o.vJq)(),i=(0,a.xj)(t,InputEvent)||(0,a.xj)(t,KeyboardEvent)?null:t.clipboardData;null!=i&&null!==r&&(0,n.Bi)(i,r,e)},{tag:o.fwY}),!0)},o.jZM),e.registerCommand(o.Huu,e=>{let t=(0,o.vJq)();return(0,o.I2P)(t)&&O(t),!1},o.jZM),e.registerCommand(o.OXk,e=>{let t=(0,o.vJq)();return(0,o.I2P)(t)&&O(t),!1},o.jZM))}(0,o.vE9)({conflictsWith:["@lexical/plain-text"],dependencies:[i.P],name:"@lexical/rich-text",nodes:()=>[x,b],register:$})},62889:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;let i=r(39997),l=r(51270),o=r(7525),a=r(79772),s=r(73274);function u(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(i.isJSONType))return t;throw Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(n||(t.DataType=n={})),t.getSchemaTypes=function(e){let t=u(e.type);if(t.includes("null")){if(!1===e.nullable)throw Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=u,t.coerceAndCheckDataType=function(e,t){var r,i;let{gen:o,data:s,opts:u}=e,d=(r=t,(i=u.coerceTypes)?r.filter(e=>c.has(e)||"array"===i&&"array"===e):[]),h=t.length>0&&!(0===d.length&&1===t.length&&(0,l.schemaHasRulesForType)(e,t[0]));if(h){let r=f(t,s,u.strictNumbers,n.Wrong);o.if(r,()=>{d.length?function(e,t,r){let{gen:n,data:i,opts:l}=e,o=n.let("dataType",(0,a._)`typeof ${i}`),s=n.let("coerced",(0,a._)`undefined`);for(let e of("array"===l.coerceTypes&&n.if((0,a._)`${o} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,a._)`${i}[0]`).assign(o,(0,a._)`typeof ${i}`).if(f(t,i,l.strictNumbers),()=>n.assign(s,i))),n.if((0,a._)`${s} !== undefined`),r))(c.has(e)||"array"===e&&"array"===l.coerceTypes)&&function(e){switch(e){case"string":n.elseIf((0,a._)`${o} == "number" || ${o} == "boolean"`).assign(s,(0,a._)`"" + ${i}`).elseIf((0,a._)`${i} === null`).assign(s,(0,a._)`""`);return;case"number":n.elseIf((0,a._)`${o} == "boolean" || ${i} === null 25 || (${o} == "string" && ${i} && ${i} == +${i})`).assign(s,(0,a._)`+${i}`);return;case"integer":n.elseIf((0,a._)`${o} === "boolean" || ${i} === null 26 || (${o} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(s,(0,a._)`+${i}`);return;case"boolean":n.elseIf((0,a._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(s,!1).elseIf((0,a._)`${i} === "true" || ${i} === 1`).assign(s,!0);return;case"null":n.elseIf((0,a._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(s,null);return;case"array":n.elseIf((0,a._)`${o} === "string" || ${o} === "number" 27 || ${o} === "boolean" || ${i} === null`).assign(s,(0,a._)`[${i}]`)}}(e);n.else(),p(e),n.endIf(),n.if((0,a._)`${s} !== undefined`,()=>{n.assign(i,s),function({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,a._)`${t} !== undefined`,()=>e.assign((0,a._)`${t}[${r}]`,n))}(e,s)})}(e,t,d):p(e)})}return h};let c=new Set(["string","number","integer","boolean","null"]);function d(e,t,r,i=n.Correct){let l,o=i===n.Correct?a.operators.EQ:a.operators.NEQ;switch(e){case"null":return(0,a._)`${t} ${o} null`;case"array":l=(0,a._)`Array.isArray(${t})`;break;case"object":l=(0,a._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":l=s((0,a._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":l=s();break;default:return(0,a._)`typeof ${t} ${o} ${e}`}return i===n.Correct?l:(0,a.not)(l);function s(e=a.nil){return(0,a.and)((0,a._)`typeof ${t} == "number"`,e,r?(0,a._)`isFinite(${t})`:a.nil)}}function f(e,t,r,n){let i;if(1===e.length)return d(e[0],t,r,n);let l=(0,s.toHash)(e);if(l.array&&l.object){let e=(0,a._)`typeof ${t} != "object"`;i=l.null?e:(0,a._)`!${t} || ${e}`,delete l.null,delete l.array,delete l.object}else i=a.nil;for(let e in l.number&&delete l.integer,l)i=(0,a.and)(i,d(e,t,r,n));return i}t.checkDataType=d,t.checkDataTypes=f;let h={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?(0,a._)`{type: ${e}}`:(0,a._)`{type: ${t}}`};function p(e){let t=function(e){let{gen:t,data:r,schema:n}=e,i=(0,s.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}(e);(0,o.reportError)(t,h)}t.reportTypeError=p},64337:(e,t,r)=>{"use strict";r.d(t,{A:()=>a});
27var n=r(61721),i=r(94271),l=r(41747),o=r(12115);function a({hasCellMerge:e=!0,hasCellBackgroundColor:t=!0,hasTabHandler:r=!0,hasHorizontalScroll:n=!1,hasNestedTables:a=!1,hasFitNestedTables:u=!1}){let[c]=(0,i.DF)();(0,o.useEffect)(()=>{(0,l.FY)(c)!==n&&((0,l.hi)(c,n),c.registerNodeTransform(l.HA,()=>{})())},[c,n]);let d=s(a),f=s(u);return(0,o.useEffect)(()=>(0,l.xT)(c,{hasFitNestedTables:f,hasNestedTables:d}),[c,d,f]),(0,o.useEffect)(()=>(0,l.Ej)(c,r),[c,r]),(0,o.useEffect)(()=>{if(!e)return(0,l.nq)(c)},[c,e]),(0,o.useEffect)(()=>{if(!t)return c.registerNodeTransform(l.B9,e=>{null!==e.getBackgroundColor()&&e.setBackgroundColor(null)})},[c,t,e]),null}function s(e){let[t]=(0,o.useState)(()=>(0,n.vP)(e));return t.peek()!==e&&(t.value=e),t}},64508:(e,t,r)=>{"use strict";r.d(t,{F:()=>p});var n=r(95155),i=r(63344),l=r(41412),o=r(92825),a=r(78234),s=r(6001),u=r(12115),c=r(56962),d=r(34564);r(5034);let{maxLength:f,minLength:h}=c.N.title,p=e=>{let{field:{label:t,localized:r,maxLength:c,minLength:p,required:m},hasGenerateTitleFn:y,readOnly:v}=e,{t:b}=(0,i.d)(),{config:{routes:{api:_}}}=(0,l.c)(),{customComponents:{AfterInput:w,BeforeInput:x,Label:S}={},errorMessage:C,path:k,setValue:T,showError:N,value:E}=(0,o.useField)(),P=(0,o.useLocale)(),{getData:O}=(0,o.useForm)(),$=(0,o.useDocumentInfo)(),{title:A}=(0,o.useDocumentTitle)(),M=p||h,j=c||f,D=(0,u.useCallback)(async()=>{var e;if(!y)return;let t=(0,s.Q)({apiRoute:_,path:"/plugin-seo/generate-title"}),r=await fetch(t,{body:JSON.stringify({id:$.id,collectionSlug:$.collectionSlug,doc:O(),docPermissions:$.docPermissions,globalSlug:$.globalSlug,hasPublishPermission:$.hasPublishPermission,hasSavePermission:$.hasSavePermission,initialData:$.initialData,initialState:(0,a.qg)(null!=(e=$.initialState)?e:{}),locale:"object"==typeof P?null==P?void 0:P.code:P,title:A}),credentials:"include",headers:{"Content-Type":"application/json"},method:"POST"}),{result:n}=await r.json();T(n||"")},[y,_,$.id,$.collectionSlug,$.docPermissions,$.globalSlug,$.hasPublishPermission,$.hasSavePermission,$.initialData,$.initialState,O,P,T,A]);return(0,n.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,n.jsxs)("div",{style:{marginBottom:"5px",position:"relative"},children:[(0,n.jsxs)("div",{className:"plugin-seo__field",children:[null!=S?S:(0,n.jsx)(o.FieldLabel,{label:t,localized:r,path:k,required:m}),y&&(0,n.jsxs)(u.Fragment,{children:["\xa0 â \xa0",(0,n.jsx)("button",{disabled:v,onClick:()=>{D()},style:{background:"none",backgroundColor:"transparent",border:"none",color:"currentcolor",cursor:"pointer",padding:0,textDecoration:"underline"},type:"button",children:b("plugin-seo:autoGenerate")})]})]}),(0,n.jsxs)("div",{style:{color:"#9A9A9A"},children:[b("plugin-seo:lengthTipTitle",{maxLength:j,minLength:M}),(0,n.jsx)("a",{href:"https://developers.google.com/search/docs/advanced/appearance/title-link#page-titles",rel:"noopener noreferrer",target:"_blank",children:b("plugin-seo:bestPractices")}),"."]})]}),(0,n.jsx)("div",{style:{marginBottom:"10px",position:"relative"},children:(0,n.jsx)(o.TextInput,{AfterInput:w,BeforeInput:x,Error:C,onChange:T,path:k,readOnly:v,required:m,showError:N,style:{marginBottom:0},value:E})}),(0,n.jsx)("div",{style:{alignItems:"center",display:"flex",width:"100%"},children:(0,n.jsx)(d.y,{maxLength:j,minLength:M,text:E})})]})}},64914:(e,t,r)=>{"use strict";r.d(t,{P:()=>n});let n=({collectionPermissions:e,field:t,operation:r,parentName:n,permissions:i})=>{let l=!0===i||i?.[r]===!0||i?.[n]===!0||"name"in t&&"object"==typeof i&&i?.[t.name]&&(!0===i[t.name]||r in i[t.name]&&i[t.name][r]),o=null==i||!0===i||("name"in t?i[t.name]:i),a=!0===i||i?.read===!0||i?.[n]===!0||"name"in t&&"object"==typeof i&&i?.[t.name]&&(!0===i[t.name]||"read"in i[t.name]&&i[t.name].read);if(!(!0===i||"object"==typeof i&&null!==i&&Object.keys(i).length>0)&&e){let t=!!e.read,n=!1;return"create"===r&&"create"in e?n=!!e.create:"update"===r&&(n=!!e.update),{operation:n,permissions:{read:t},read:t}}return{operation:!!l,permissions:o,read:!!a}}},65580:(e,t,r)=>{"use strict";r.d(t,{Card:()=>o});var n=r(95155);r(12115);var i=r(22199);r(79446);let l="card",o=e=>{let{id:t,actions:r,buttonAriaLabel:o,href:a,onClick:s,title:u,titleAs:c}
27=e,d=[l,t,(s||a)&&"".concat(l,"--has-onclick")].filter(Boolean).join(" ");return(0,n.jsxs)("div",{className:d,id:t,children:[(0,n.jsx)(null!=c?c:"div",{className:"".concat(l,"__title"),children:u}),r&&(0,n.jsx)("div",{className:"".concat(l,"__actions"),children:r}),(s||a)&&(0,n.jsx)(i.Button,{"aria-label":o,buttonStyle:"none",className:"".concat(l,"__click"),el:"link",onClick:s,to:a})]})}},65703:(e,t,r)=>{"use strict";r.d(t,{ag:()=>u,s8:()=>o,wA:()=>a,gD:()=>i,jq:()=>l,_N:()=>s});let n={autosaveInterval:2e3},i=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts),l=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.localizeStatus),o=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.autosave),a=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.validate),s=e=>!!(e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.schedulePublish),u=e=>{let t=n.autosaveInterval;return e?.versions&&"object"==typeof e.versions&&e.versions.drafts&&"object"==typeof e.versions.drafts&&e.versions.drafts.autosave&&"object"==typeof e.versions.drafts.autosave&&(t=e.versions.drafts.autosave.interval??n.autosaveInterval),t}},65972:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;let n=r(24950),i=r(81708),l=r(79772),o=r(61974),a=r(11930),s=r(73274);function u(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,l._)`${r.scopeValue("wrapper",{ref:t})}.validate`}function c(e,t,r,n){let{gen:a,it:u}=e,{allErrors:c,schemaEnv:d,opts:f}=u,h=f.passContext?o.default.this:l.nil;function p(e){let t=(0,l._)`${e}.errors`;a.assign(o.default.vErrors,(0,l._)`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`),a.assign(o.default.errors,(0,l._)`${o.default.vErrors}.length`)}function m(e){var t;if(!u.opts.unevaluated)return;let n=null==(t=null==r?void 0:r.validate)?void 0:t.evaluated;if(!0!==u.props)if(n&&!n.dynamicProps)void 0!==n.props&&(u.props=s.mergeEvaluated.props(a,n.props,u.props));else{let t=a.var("props",(0,l._)`${e}.evaluated.props`);u.props=s.mergeEvaluated.props(a,t,u.props,l.Name)}if(!0!==u.items)if(n&&!n.dynamicItems)void 0!==n.items&&(u.items=s.mergeEvaluated.items(a,n.items,u.items));else{let t=a.var("items",(0,l._)`${e}.evaluated.items`);u.items=s.mergeEvaluated.items(a,t,u.items,l.Name)}}n?function(){if(!d.$async)throw Error("async schema referenced by sync schema");let r=a.let("valid");a.try(()=>{a.code((0,l._)`await ${(0,i.callValidateCode)(e,t,h)}`),m(t),c||a.assign(r,!0)},e=>{a.if((0,l._)`!(${e} instanceof ${u.ValidationError})`,()=>a.throw(e)),p(e),c||a.assign(r,!1)}),e.ok(r)}():e.result((0,i.callValidateCode)(e,t,h),()=>m(t),()=>p(t))}t.getValidate=u,t.callRef=c,t.default={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:i}=e,{baseId:o,schemaEnv:s,validateName:d,opts:f,self:h}=i,{root:p}=s;if(("#"===r||"#/"===r)&&o===p.baseId){if(s===p)return c(e,d,s,s.$async);let r=t.scopeValue("root",{ref:p});return c(e,(0,l._)`${r}.validate`,p,p.$async)}let m=a.resolveRef.call(h,p,o,r);if(void 0===m)throw new n.default(i.opts.uriResolver,o,r);return m instanceof a.SchemaEnv?function(t){let r=u(e,t);c(e,r,t,t.$async)}(m):function(n){let i=t.scopeValue("schema",!0===f.code.source?{ref:n,code:(0,l.stringify)(n)}:{ref:n}),o=t.name("valid"),a=e.subschema({schema:n,dataTypes:[],schemaPath:l.nil,topSchemaRef:i,errSchemaPath:r},o);e.mergeEvaluated(a),e.ok(o)}(m)}}},66183:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;let n=r(79772),i=r(73274),l=r(81708);function o(e,t,r=e.schema){let{gen:l,parentSchema:a,data:s,keyword:u,it:c}=e;(function(e){let{opts:n,errSchemaPath:l}=c,o=r.length,a=o===e.minItems&&(o===e.maxItems||!1===e[t]);if(n.strictTuples&&!a){let e=`"${u}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${l}"`;
27(0,i.checkStrictMode)(c,e,n.strictTuples)}})(a),c.opts.unevaluated&&r.length&&!0!==c.items&&(c.items=i.mergeEvaluated.items(l,r.length,c.items));let d=l.name("valid"),f=l.const("len",(0,n._)`${s}.length`);r.forEach((t,r)=>{(0,i.alwaysValidSchema)(c,t)||(l.if((0,n._)`${f} > ${r}`,()=>e.subschema({keyword:u,schemaProp:r,dataProp:r},d)),e.ok(d))})}t.validateTuple=o,t.default={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return o(e,"additionalItems",t);r.items=!0,(0,i.alwaysValidSchema)(r,t)||e.ok((0,l.validateArray)(e))}}},66534:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;let n=r(7525),i=r(79772),l=r(61974),o={message:"boolean schema is false"};function a(e,t){let{gen:r,data:i}=e;(0,n.reportError)({gen:r,keyword:"false schema",data:i,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e},o,void 0,t)}t.topBoolOrEmptySchema=function(e){let{gen:t,schema:r,validateName:n}=e;!1===r?a(e,!1):"object"==typeof r&&!0===r.$async?t.return(l.default.data):(t.assign((0,i._)`${n}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){let{gen:r,schema:n}=e;!1===n?(r.var(t,!1),a(e)):r.var(t,!0)}},66609:(e,t,r)=>{"use strict";r.d(t,{D:()=>i});var n=r(32532);function i(e){let t=(0,n.ieJ)(e);return t._headless=!0,["registerDecoratorListener","registerRootListener","registerMutationListener","getRootElement","setRootElement","getElementByKey","focus","blur"].forEach(e=>{t[e]=()=>{throw Error(`${e} is not supported in headless mode`)}}),t}},66858:(e,t,r)=>{"use strict";r.d(t,{Group:()=>d});var n=r(19749),i=r(95155),l=r(84365),o=r(63344);r(12115);var a=r(20385),s=r(49947),u=r(79615);let c="group-diff",d=e=>{let t,r=(0,n.c)(9),{baseVersionField:d,comparisonValue:f,field:h,locale:p,parentIsLocalized:m,versionValue:y}=e,{i18n:v}=(0,o.d)(),{selectedLocales:b}=(0,a.I)();return r[0]!==d.fields||r[1]!==h||r[2]!==v||r[3]!==p||r[4]!==m||r[5]!==b||r[6]!==f||r[7]!==y?(t=(0,i.jsx)("div",{className:c,children:(0,i.jsx)(s.$,{fields:h.fields,Label:"label"in h&&h.label&&"function"!=typeof h.label?(0,i.jsxs)("span",{children:[p&&(0,i.jsx)("span",{className:"".concat(c,"__locale-label"),children:p}),(0,l.s)(h.label,v)]}):(0,i.jsxs)("span",{className:"".concat(c,"__locale-label ").concat(c,"__locale-label--no-label"),children:["<",v.t("version:noLabelGroup"),">"]}),locales:b,parentIsLocalized:m||h.localized,valueFrom:f,valueTo:y,children:(0,i.jsx)(u.RenderVersionFieldsToDiff,{versionFields:d.fields})})}),r[0]=d.fields,r[1]=h,r[2]=v,r[3]=p,r[4]=m,r[5]=b,r[6]=f,r[7]=y,r[8]=t):t=r[8],t}},66943:(e,t,r)=>{"use strict";function n(e){return function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;let i=n[0],l=t.match(e.parsePattern);if(!l)return null;let o=e.valueCallback?e.valueCallback(l[0]):l[0];return{value:o=r.valueCallback?r.valueCallback(o):o,rest:t.slice(i.length)}}}r.d(t,{K:()=>n})},67144:(e,t,r)=>{"use strict";r.d(t,{d:()=>n});let n=(e,t)=>0===t.length||t.map(e=>e.replace("*","")).some(t=>e.startsWith(t))},67491:(e,t,r)=>{"use strict";r.d(t,{k:()=>n});let n=({sizes:e,targetSizeMax:t=180,targetSizeMin:r=40,thumbnailURL:n,url:i,width:l})=>n||e&&Object.values(e).reduce((e,n)=>!n.width||n.width<r?e:n.width>=r&&n.width<=t?!e.width||n.width<e.width||e.width<r||e.width>t?n:e:!e.width||!e.original&&e.width<r&&n.width>e.width||e.width>t&&n.width<e.width?n:e,{original:!0,url:i,width:l}).url||i},68539:(e,t,r)=>{"use strict";r.d(t,{DefaultVersionView:()=>T});var n=r(95155),i=r(41412),l=r(92825),o=r(63344),a=r(35695),s=r(12115),u=r(84365),c=r(78234),d=r(6001);let f="restore-version",h="restore-version",p=e=>{var t;let{className:r,collectionConfig:p,globalConfig:m,label:y,originalDocID:v,status:b,versionDateFormatted:_,versionID:w}=e,{config:{routes:{admin:x,api:S}}}=(0,i.c)(),{toggleModal:C}=(0,l.useModal)(),k=(0,a.useRouter)(),{i18n:T,t:N}=(0,o.d)(),[E,P]=(0,s.useState)(!1),{startRouteTransition:O}=(0,l.useRouteTransition)(),$=N(m?"version:aboutToRestoreGlobal":"version:aboutToRestore",{label:(0,u.s)(y,T),versionDate:_}),A="draft"!==b&&(null==p||null==(t=p.versions)?void 0:t.drafts),M=(0,s.useCallback)(async()=>{let e,t=(0,d.Q)({apiRoute:S,path:""});p&&(t="".concat(t,"/").concat(p.slug,"/versions/").concat(w,"?draft=").concat(E),e=(0,d.Q)({adminRoute:x,path:"/collections/".concat(p.slug,"/").concat(v)})),m&&(t="".concat(t,"/globals/").concat(m.slug,"/versions/").concat(w,"?draft=").concat(E),e=(0,d.Q)({adminRoute:x,path:"/globals/".concat(m.slug)}));let r=await c.zG.post(t,{headers:{"Accept-Language":T.language}}
27);if(200===r.status){let t=await r.json();return l.toast.success(t.message),O(()=>k.push(e))}l.toast.error(N("version:problemRestoringVersion"))},[S,p,m,T.language,w,E,x,v,O,k,N]);return(0,n.jsxs)(s.Fragment,{children:[(0,n.jsx)("div",{className:[f,r].filter(Boolean).join(" "),children:(0,n.jsx)(l.Button,{buttonStyle:"primary",className:[A&&"".concat(f,"__restore-as-draft-button")].filter(Boolean).join(" "),onClick:()=>C(h),size:"xsmall",SubMenuPopupContent:A?()=>(0,n.jsx)(l.PopupList.ButtonGroup,{children:(0,n.jsx)(l.PopupList.Button,{onClick:()=>[P(!0),C(h)],children:N("version:restoreAsDraft")})}):null,children:N("version:restoreThisVersion")})}),(0,n.jsx)(l.ConfirmationModal,{body:$,confirmingLabel:N("version:restoring"),heading:N("version:confirmVersionRestoration"),modalSlug:h,onConfirm:M})]})};var m=r(19749);let y=e=>{let{collectionSlug:t,docID:r,drawerSlug:i,globalSlug:u}=e,{isTrashed:c}=(0,l.useDocumentInfo)(),{closeModal:d}=(0,l.useModal)(),f=(0,a.useSearchParams)(),h=(0,s.useRef)(f),{renderDocument:p}=(0,l.useServerFunctions)(),[m,y]=(0,s.useState)(void 0),[v,b]=(0,s.useState)(!0),_=(0,s.useRef)(!1),{t:w}=(0,o.d)(),x=(0,s.useCallback)(e=>{(async()=>{b(!0);try{let r=!!u,n=null!=t?t:u,l=await p({collectionSlug:n,docID:e,drawerSlug:i,paramsOverride:{segments:[r?"globals":"collections",n,...c?["trash"]:[],r?void 0:String(e),"versions"].filter(Boolean)},redirectAfterDelete:!1,redirectAfterDuplicate:!1,searchParams:Object.fromEntries(f.entries()),versions:{disableGutter:!0,useVersionDrawerCreatedAtCell:!0}});(null==l?void 0:l.Document)&&(y(l.Document),b(!1))}catch(e){l.toast.error((null==e?void 0:e.message)||w("error:unspecific")),d(i)}})()},[d,t,i,u,c,p,f,w]);return((0,s.useEffect)(()=>{_.current&&h.current===f||(h.current=f,x(r),_.current=!0)},[r,x,f]),v)?(0,n.jsx)(l.LoadingOverlay,{}):m},v=e=>{let t,r=(0,m.c)(6),{collectionSlug:i,docID:a,drawerSlug:s,globalSlug:u}=e,{t:c}=(0,o.d)();return r[0]!==i||r[1]!==a||r[2]!==s||r[3]!==u||r[4]!==c?(t=(0,n.jsx)(l.Drawer,{className:"version-drawer",gutter:!0,slug:s,title:c("version:selectVersionToCompare"),children:(0,n.jsx)(y,{collectionSlug:i,docID:a,drawerSlug:s,globalSlug:u})}),r[0]=i,r[1]=a,r[2]=s,r[3]=u,r[4]=c,r[5]=t):t=r[5],t},b="compare-version",_=(0,s.memo)(e=>{let{collectionSlug:t,docID:r,globalSlug:i,onChange:a,versionFromID:u,versionFromOptions:c}=e,{t:d}=(0,o.d)(),{Drawer:f,openDrawer:h}=(e=>{let t,r,i,o,a,u,c,d,f=(0,m.c)(29),{collectionSlug:h,docID:p,globalSlug:y}=e,b=(0,l.useEditDepth)(),_=(0,s.useId)(),{closeModal:w,modalState:x,openModal:S,toggleModal:C}=(0,l.useModal)(),[k,T]=(0,s.useState)(!1);f[0]!==b||f[1]!==_?(t=(e=>{let{depth:t,uuid:r}=e;return"version-drawer_".concat(t,"_").concat(r)})({depth:b,uuid:_}),f[0]=b,f[1]=_,f[2]=t):t=f[2];let N=t;f[3]!==N||f[4]!==x?(r=()=>{var e;T(!!(null==(e=x[N])?void 0:e.isOpen))},i=[x,N],f[3]=N,f[4]=x,f[5]=r,f[6]=i):(r=f[5],i=f[6]),(0,s.useEffect)(r,i),f[7]!==N||f[8]!==C?(o=()=>{C(N)},f[7]=N,f[8]=C,f[9]=o):o=f[9];let E=o;f[10]!==w||f[11]!==N?(a=()=>{w(N)},f[10]=w,f[11]=N,f[12]=a):a=f[12];let P=a;f[13]!==N||f[14]!==S?(u=()=>{S(N)},f[13]=N,f[14]=S,f[15]=u):u=f[15];let O=u;f[16]!==h||f[17]!==p||f[18]!==N||f[19]!==y?(c=()=>(0,n.jsx)(v,{collectionSlug:h,docID:p,drawerSlug:N,globalSlug:y}),f[16]=h,f[17]=p,f[18]=N,f[19]=y,f[20]=c):c=f[20];let $=c;return f[21]!==$||f[22]!==P||f[23]!==b||f[24]!==N||f[25]!==k||f[26]!==O||f[27]!==E?(d={closeDrawer:P,Drawer:$,drawerDepth:b,drawerSlug:N,isDrawerOpen:k,openDrawer:O,toggleDrawer:E},f[21]=$,f[22]=P,f[23]=b,f[24]=N,f[25]=k,f[26]=O,f[27]=E,f[28]=d):d=f[28],d})({collectionSlug:t,docID:r,globalSlug:i}),p=(0,s.useMemo)(()=>[...c,{label:(0,n.jsx)("span",{className:"".concat(b,"-moreVersions"),children:d("version:moreVersions")}),value:"more"}],[d,c]),y=(0,s.useMemo)(()=>c.find(e=>e.value===u),[c,u]),_=(0,s.useCallback)(e=>{if("more"===e.value)return void h();a(e)},[a,h]);return(0,n.jsxs)("div",{className:[l.fieldBaseClass,b].filter(Boolean).join(" "),children:[(0,n.jsx)(l.ReactSelect,{isClearable:!1,isSearchable:!1,onChange:_,options:p,placeholder:d("version:selectVersionToCompare"),value:y}),(0,n.jsx)(f,{})]})}),w="select-version-locales",x=e=>{let{locales:t,localeSelectorOpen:r,onChange:i}=e;return(0,n.jsx)(l.AnimateHeight,{className:w,height:r?"auto":0,id:"".concat(w,"-locales"),children:(0,n.jsx)(l.PillSelector,{onClick:e=>{let{pill:r}=e;i({locales:t.map(e=>e.name===r.name?{...e,selected:!r.selected}:e)})},pills:t})})};var S=r(20385);let C=e=>{let t,r,n=(0,m.c)(24),{id:a,collectionConfig:c,globalConfig:f,isTrashed:h,versionToCreatedAtFormatted:p,versionToID:y}=e,{config:v}=(0,i.c)(),{setStepNav:b}=(0,l.useStepNav)(),{i18n:_,t:w}=(0,o.d)(),x=(0,l.useLocale)(),{title:S}=(0,l.useDocumentTitle)();return n[0]!==c||n[1]!==v||n[2]!==f||n[3]!==_||n[4]!==a||n[5]!==h||n[6]!==b||n[7]!==w||n[8]!==S||n[9]!==p?(t=()=>{let{routes:e}=v,{admin:t}=e;if(c){var r;let e=c.slug,n=null==(r=c.labels)?void 0:r.plural,i=h?"/collections/".concat(e,"/trash/").concat(a):"/collections/".concat(e,"/").concat(a),l=[{label:(0,u.s)(n,_),url:(0,d.Q)({adminRoute:t,path:"/collections/".concat(e)})}];h&&l.push({label:w("general:trash"),url:(0,d.Q)({adminRoute:t,path:"/collections/".concat(e,"/trash")})}),l.push({label:S,url:(0,d.Q)({adminRoute:t,path:i})},{label:w("version:versions"),url:(0,d.Q)({adminRoute:t,path:"".concat(i,"/versions")})},{label:p,url:void 0}),b(l);return}if(f){let e=f.slug;b([{label:f.label,url:(0,d.Q)({adminRoute:t,path:"/globals/".concat(e)})},{label:w("version:versions"),url:(0,d.Q)({adminRoute:t,path:"/globals/".concat(e,"/versions")})},{label:p}])}},n[0]=c,n[1]=v,n[2]=f,n[3]=_,n[4]=a,n[5]=h,n[6]=b,n[7]=w,n[8]=S,n[9]=p,n[10]=t):t=n[10],n[11]!==c||n[12]!==v||n[13]!==f||n[14]!==_||n[15]!==a||n[16]!==h||n[17]!==x||n[18]!==b||n[19]!==w||n[20]!==S||n[21]!==p||n[22]!==y?(r=[v,b,a,h,x,w,_,c,f,S,p,y],n[11]=c,n[12]=v,n[13]=f,n[14]=_,n[15]=a,n[16]=h,n[17]=x,n[18]=b,n[19]=w,n[20]=S,n[21]=p,n[22]=y,n[23]=r):r=n[23],(0,s.useEffect)(t,r),null},k="view-version",T=e=>{let{canUpdate:t,modifiedOnly:r,RenderedDiff:u,selectedLocales:c,versionFromCreatedAt:d,versionFromID:f,versionFromOptions:h,versionToCreatedAt:m,versionToCreatedAtFormatted:y,VersionToCreatedAtLabel:v,versionToID:b,versionToStatus:w}=e,{config:T,getEntityConfig:N}
27=(0,i.c)(),{code:E}=(0,l.useLocale)(),{i18n:P,t:O}=(0,o.d)(),[$,A]=(0,s.useState)([]),[M,j]=s.useState(!1);(0,s.useEffect)(()=>{T.localization&&A(T.localization.locales.map(e=>{let t=e.label;return"string"!=typeof e.label&&e.label[E]&&(t=e.label[E]),{name:e.code,Label:t,selected:c.includes(e.code)}}))},[E,T.localization,c]);let{id:D,collectionSlug:I,globalSlug:F,isTrashed:R}=(0,l.useDocumentInfo)(),{startRouteTransition:L}=(0,l.useRouteTransition)(),{collectionConfig:B,globalConfig:z}=(0,s.useMemo)(()=>({collectionConfig:N({collectionSlug:I}),globalConfig:N({globalSlug:F})}),[I,F,N]),K=(0,a.useRouter)(),U=(0,a.usePathname)(),W=(0,a.useSearchParams)(),[J,q]=(0,s.useState)(r),V=(0,s.useCallback)(e=>{let t=new URLSearchParams(Array.from(W.entries()));if((null==e?void 0:e.versionFromID)&&t.set("versionFrom",null==e?void 0:e.versionFromID),null==e?void 0:e.selectedLocales)if(e.selectedLocales.length){let r=[];for(let t of e.selectedLocales)t.selected&&r.push(t.name);t.set("localeCodes",JSON.stringify(r))}else t.delete("localeCodes");(null==e?void 0:e.modifiedOnly)===!1?t.set("modifiedOnly","false"):(null==e?void 0:e.modifiedOnly)===!0&&t.delete("modifiedOnly");let r=t.toString(),n=r?"?".concat(r):"";L(()=>K.push("".concat(U).concat(n)))},[U,K,W,L]),H=(0,s.useCallback)(e=>{let t=e.target.checked;q(t),V({modifiedOnly:t})},[V]),G=(0,s.useCallback)(e=>{let{locales:t}=e;A(t),V({selectedLocales:t})},[V]),Y=(0,s.useCallback)(e=>{V({versionFromID:e.value})},[V]),{localization:Z}=T,X=(0,s.useMemo)(()=>O("version:versionAgo",{distance:(0,l.formatTimeToNow)({date:m,i18n:P})}),[m,P,O]),Q=(0,s.useMemo)(()=>d?O("version:versionAgo",{distance:(0,l.formatTimeToNow)({date:d,i18n:P})}):void 0,[d,P,O]);return(0,n.jsxs)("main",{className:k,children:[(0,n.jsxs)(l.Gutter,{className:"".concat(k,"-controls-top"),children:[(0,n.jsxs)("div",{className:"".concat(k,"-controls-top__wrapper"),children:[(0,n.jsx)("h2",{children:P.t("version:compareVersions")}),(0,n.jsxs)("div",{className:"".concat(k,"-controls-top__wrapper-actions"),children:[(0,n.jsx)("span",{className:"".concat(k,"__modifiedCheckBox"),children:(0,n.jsx)(l.CheckboxInput,{checked:J,id:"modifiedOnly",label:P.t("version:modifiedOnly"),onToggle:H})}),Z&&(0,n.jsxs)(l.Pill,{"aria-controls":"".concat(k,"-locales"),"aria-expanded":M,className:"".concat(k,"__toggle-locales"),icon:(0,n.jsx)(l.ChevronIcon,{direction:M?"up":"down"}),onClick:()=>j(e=>!e),pillStyle:"light",size:"small",children:[(0,n.jsxs)("span",{className:"".concat(k,"__toggle-locales-label"),children:[O("general:locales"),":"," "]}),(0,n.jsx)("span",{className:"".concat(k,"__toggle-locales-list"),children:$.filter(e=>e.selected).map(e=>e.name).join(", ")})]})]})]}),Z&&(0,n.jsx)(x,{locales:$,localeSelectorOpen:M,onChange:G})]}),(0,n.jsx)(l.Gutter,{className:"".concat(k,"-controls-bottom"),children:(0,n.jsxs)("div",{className:"".concat(k,"-controls-bottom__wrapper"),children:[(0,n.jsxs)("div",{className:"".concat(k,"__version-from"),children:[(0,n.jsxs)("div",{className:"".concat(k,"__version-from-labels"),children:[(0,n.jsx)("span",{children:O("version:comparingAgainst")}),Q&&(0,n.jsx)("span",{className:"".concat(k,"__time-elapsed"),children:Q})]}),(0,n.jsx)(_,{collectionSlug:I,docID:D,globalSlug:F,onChange:Y,versionFromID:f,versionFromOptions:h})]}),(0,n.jsxs)("div",{className:"".concat(k,"__version-to"),children:[(0,n.jsxs)("div",{className:"".concat(k,"__version-to-labels"),children:[(0,n.jsx)("span",{children:O("version:currentlyViewing")}),(0,n.jsx)("span",{className:"".concat(k,"__time-elapsed"),children:X})]}),(0,n.jsxs)("div",{className:"".concat(k,"__version-to-version"),children:[v,t&&!R&&(0,n.jsx)(p,{className:"".concat(k,"__restore"),collectionConfig:B,globalConfig:z,label:(null==B?void 0:B.labels.singular)||(null==z?void 0:z.label),originalDocID:D,status:w,versionDateFormatted:y,versionID:b})]})]})]})}),(0,n.jsx)(C,{collectionConfig:B,globalConfig:z,id:D,isTrashed:R,versionToCreatedAtFormatted:y,versionToID:b}),(0,n.jsx)(l.Gutter,{className:"".concat(k,"__diff-wrap"),children:(0,n.jsx)(S.a,{value:{selectedLocales:$.map(e=>e.name)}
27,children:m&&u})})]})}},69717:(e,t,r)=>{"use strict";r.d(t,{d:()=>l,g:()=>o});var n=r(61731),i=r(32532);function l(e,t){let r=(0,i.mB$)(t)?t.body.childNodes:t.childNodes,n=[],l=[];for(let t of r)if(!a.has(t.nodeName)){let r=function e(t,r,n,l,o=new Map,s){let u=[];if(a.has(t.nodeName))return u;let c=null,d=function(e,t){let{nodeName:r}=e,n=t._htmlConversions.get(r.toLowerCase()),i=null;if(void 0!==n)for(let t of n){let r=t(e);null!==r&&(null===i||(i.priority||0)<=(r.priority||0))&&(i=r)}return null!==i?i.conversion:null}(t,r),f=d?d(t):null,h=null;if(null!==f){h=f.after;let e=f.node;if(null!==(c=Array.isArray(e)?e[e.length-1]:e)){for(let[,e]of o)if(!(c=e(c,s)))break;c&&u.push(...Array.isArray(e)?e:[c])}null!=f.forChild&&o.set(t.nodeName,f.forChild)}let p=t.childNodes,m=[],y=(null==c||!(0,i.IqF)(c))&&(null!=c&&(0,i.y68)(c)||l);for(let t=0;t<p.length;t++)m.push(...e(p[t],r,n,y,new Map(o),c));return null!=h&&(m=h(m)),(0,i.a9V)(t)&&(m=function(e,t,r){let n=e.style.textAlign,l=[],o=[];for(let e=0;e<t.length;e++){let a=t[e];if((0,i.y68)(a))n&&!a.getFormat()&&a.setFormat(n),l.push(a);else if(o.push(a),e===t.length-1||e<t.length-1&&(0,i.y68)(t[e+1])){let e=r();e.setFormat(n),e.append(...o),l.push(e),o=[]}}return l}(t,m,y?()=>{let e=new i.A7V;return n.push(e),e}:i.lJ7)),null==c?m.length>0?u=u.concat(m):(0,i.a9V)(t)&&null!=t.nextSibling&&null!=t.previousSibling&&(0,i._On)(t.nextSibling)&&(0,i._On)(t.previousSibling)&&(u=u.concat((0,i.WKo)())):(0,i.ff4)(c)&&c.append(...m),u}(t,e,l,!1);null!==r&&(n=n.concat(r))}return function(e){for(let t of e)t.getNextSibling()instanceof i.A7V&&t.insertAfter((0,i.WKo)());for(let t of e){for(let e of t.getChildren())t.insertBefore(e);t.remove()}}(l),n}function o(e,t){if("undefined"==typeof document||"undefined"==typeof window&&void 0===global.window)throw Error("To use $generateHtmlFromNodes in headless mode please initialize a headless browser implementation such as JSDom before calling this function.");let r=document.createElement("div"),l=(0,i.NiT)().getChildren();for(let o=0;o<l.length;o++)!function e(t,r,l,o=null){let a=null===o||r.isSelected(o),s=(0,i.ff4)(r)&&r.excludeFromCopy("html"),u=r;null!==o&&(0,i.kFe)(r)&&(u=(0,n.SD)(o,r,"clone"));let c=(0,i.ff4)(u)?u.getChildren():[],d=(0,i.Jvg)(t,u.getType()),{element:f,after:h}=d&&void 0!==d.exportDOM?d.exportDOM(t,u):u.exportDOM(t);if(!f)return!1;let p=document.createDocumentFragment();for(let n=0;n<c.length;n++){let l=c[n],s=e(t,l,p,o);!a&&(0,i.ff4)(r)&&s&&r.extractWithChild(l,o,"html")&&(a=!0)}if(a&&!s){if(((0,i.sby)(f)||(0,i.K8K)(f))&&f.append(p),l.append(f),h){let e=h.call(u,f);e&&((0,i.K8K)(f)?f.replaceChildren(e):f.replaceWith(e))}}else l.append(p);return a}(e,l[o],r,t);return r.innerHTML}let a=new Set(["STYLE","SCRIPT"])},70247:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;let n=r(79772),i=r(73274);function l(e,t,r){let{gen:l,compositeRule:o,data:a,opts:s}=e;if(void 0===r)return;let u=(0,n._)`${a}${(0,n.getProperty)(t)}`;if(o)return void(0,i.checkStrictMode)(e,`default is ignored for: ${u}`);let c=(0,n._)`${u} === undefined`;"empty"===s.useDefaults&&(c=(0,n._)`${c} || ${u} === null || ${u} === ""`),l.if(c,(0,n._)`${u} = ${(0,n.stringify)(r)}`)}t.assignDefaults=function(e,t){let{properties:r,items:n}=e.schema;if("object"===t&&r)for(let t in r)l(e,t,r[t].default);else"array"===t&&Array.isArray(n)&&n.forEach((t,r)=>l(e,r,t.default))}},70893:(e,t,r)=>{"use strict";r.d(t,{DE:()=>P,GO:()=>A,HY:()=>O,Js:()=>z,Mz:()=>S,YW:()=>b,cz:()=>B,i:()=>x,mJ:()=>$,q7:()=>F,v5:()=>C,x:()=>R});var n=r(61721),i=r(92749),l=r(32532),o=r(61731);function a(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}function s(e){let t=1,r=e.getParent();for(;null!=r;){if(S(r)){let e=r.getParent();if(O(e)){t++,r=e.getParent();continue}a(40)}break}return t}function u(e){let t=e.getParent();O(t)||a(40);let r=t;for(;null!==r;)O(r=r.getParent())&&(t=r);return t}function c(e){return S(e)&&O(e.getFirstChild())}function d(e){return x().append(e)}function f(e,t){return S(e)&&(0===t.length||1===t.length&&e.is(t[0])&&0===e.getChildrenSize())}function h(e){let t=(0,l.vJq)();if(null!==t){let r=t.getNodes();if((0,l.I2P)(t)){let n=t.getStartEndPoints();null===n&&a(143);let[i]=n,o=i.getNode(),s=o.getParent();
27if((0,l.IqF)(o)){let e=o.getFirstChild();if(e)r=e.selectStart().getNodes();else{let e=(0,l.lJ7)();o.append(e),r=e.select().getNodes()}}else if(f(o,r)){let t=P(e);if((0,l.IqF)(s)){o.replace(t);let e=x();(0,l.ff4)(o)&&(e.setFormat(o.getFormatType()),e.setIndent(o.getIndent())),t.append(e)}else if(S(o)){let e=o.getParentOrThrow();p(t,e.getChildren()),e.replace(t)}return}}let n=new Set;for(let t=0;t<r.length;t++){let i=r[t];if((0,l.ff4)(i)&&i.isEmpty()&&!S(i)&&!n.has(i.getKey())){m(i,e);continue}let o=(0,l.jG6)(i)?i.getParent():S(i)&&i.isEmpty()?i:null;for(;null!=o;){let t=o.getKey();if(O(o)){if(!n.has(t)){let r=P(e);p(r,o.getChildren()),o.replace(r),n.add(t)}break}{let r=o.getParent();if((0,l.IqF)(r)&&!n.has(t)){n.add(t),m(o,e);break}o=r}}}}}function p(e,t){e.splice(e.getChildrenSize(),0,t)}function m(e,t){let r;if(O(e))return e;let n=e.getPreviousSibling(),i=e.getNextSibling(),o=x();if(p(o,e.getChildren()),O(n)&&t===n.getListType())n.append(o),O(i)&&t===i.getListType()&&(p(n,i.getChildren()),i.remove()),r=n;else if(O(i)&&t===i.getListType())i.getFirstChildOrThrow().insertBefore(o),r=i;else{let n=P(t);n.append(o),e.replace(n),r=n}o.setFormat(e.getFormatType()),o.setIndent(e.getIndent());let a=(0,l.vJq)();return(0,l.I2P)(a)&&(r.getKey()===a.anchor.key&&a.anchor.set(o.getKey(),a.anchor.offset,"element"),r.getKey()===a.focus.key&&a.focus.set(o.getKey(),a.focus.offset,"element")),e.remove(),r}function y(e,t){let r=e.getLastChild(),n=t.getFirstChild();r&&n&&c(r)&&c(n)&&(y(r.getFirstChild(),n.getFirstChild()),n.remove());let i=t.getChildren();i.length>0&&e.append(...i),t.remove()}function v(e){let t="check"!==e.getListType(),r=e.getStart();for(let n of e.getChildren())S(n)&&(n.getValue()!==r&&n.setValue(r),t&&null!=n.getLatest().__checked&&n.setChecked(void 0),O(n.getFirstChild())||r++)}class b extends l.fGB{__value;__checked;$config(){return this.config("listitem",{$transform:e=>{if(null==e.__checked)return;let t=e.getParent();O(t)&&"check"!==t.getListType()&&null!=e.getChecked()&&e.setChecked(void 0)},extends:l.fGB,importDOM:(0,l.kBm)({li:()=>({conversion:_,priority:0})})})}constructor(e=1,t,r){super(r),this.__value=void 0===e?1:e,this.__checked=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__value=e.__value,this.__checked=e.__checked}createDOM(e){let t=document.createElement("li");return this.updateListItemDOM(null,t,e),t}updateListItemDOM(e,t,r){!function(e,t,r){let n=t.getParent();!O(n)||"check"!==n.getListType()||O(t.getFirstChild())?(e.removeAttribute("role"),e.removeAttribute("tabIndex"),e.removeAttribute("aria-checked")):(e.setAttribute("role","checkbox"),e.setAttribute("tabIndex","-1"),r&&t.__checked===r.__checked||e.setAttribute("aria-checked",t.getChecked()?"true":"false"))}(t,this,e),t.value=this.__value,function(e,t,r){let n,i=[],o=[],a=t.list,s=a?a.listitem:void 0;if(a&&a.nested&&(n=a.nested.listitem),void 0!==s&&i.push(...(0,l.GYG)(s)),a){let e=r.getParent(),t=O(e)&&"check"===e.getListType(),n=r.getChecked();t&&!n||o.push(a.listitemUnchecked),t&&n||o.push(a.listitemChecked),t&&i.push(n?a.listitemChecked:a.listitemUnchecked)}if(void 0!==n){let e=(0,l.GYG)(n);r.getChildren().some(e=>O(e))?i.push(...e):o.push(...e)}o.length>0&&(0,l.HEf)(e,...o),i.length>0&&(0,l.ZB7)(e,...i)}(t,r.theme,this);let n=e?e.__style:"",i=this.__style;n!==i&&(""===i?t.removeAttribute("style"):t.style.cssText=i),function(e,t,r){let n=(0,o.Wh)(t.__textStyle);for(let t in n)e.style.setProperty(`--listitem-marker-${t}`,n[t]);if(r)for(let t in(0,o.Wh)(r.__textStyle))t in n||e.style.removeProperty(`--listitem-marker-${t}`)}(t,this,e)}updateDOM(e,t,r){return this.updateListItemDOM(e,t,r),!1}updateFromJSON(e){return super.updateFromJSON(e).setValue(e.value).setChecked(e.checked)}exportDOM(e){let t=this.createDOM(e._config),r=this.getFormatType();r&&(t.style.textAlign=r);let n=this.getDirection();return n&&(t.dir=n),{element:t}}exportJSON(){return{...super.exportJSON(),checked:this.getChecked(),value:this.getValue()}}append(...e){for(let t=0;t<e.length;t++){let r=e[t];if((0,l.ff4)(r)&&this.canMergeWith(r)){let e=r.getChildren();this.append(...e),r.remove()}else super.append(r)}return this}replace(e,t){if(S(e))return super.replace(e);this.setIndent(0);let r=this.getParentOrThrow();if(!O(r))return e;if(r.__first===this.getKey())r.insertBefore(e);else if(r.__last===this.getKey())r.insertAfter(e);else{let t=P(r.getListType()),n=this.getNextSibling();for(;n;){let e=n;n=n.getNextSibling(),t.append(e)}r.insertAfter(e),e.insertAfter(t)}
27return t&&((0,l.ff4)(e)||a(139),this.getChildren().forEach(t=>{e.append(t)})),this.remove(),0===r.getChildrenSize()&&r.remove(),e}insertAfter(e,t=!0){let r=this.getParentOrThrow();if(O(r)||a(39),S(e))return super.insertAfter(e,t);let n=this.getNextSiblings();if(r.insertAfter(e,t),0!==n.length){let i=P(r.getListType());n.forEach(e=>i.append(e)),e.insertAfter(i,t)}return e}remove(e){let t=this.getPreviousSibling(),r=this.getNextSibling();super.remove(e),t&&r&&c(t)&&c(r)&&(y(t.getFirstChild(),r.getFirstChild()),r.remove())}insertNewAfter(e,t=!0){let r=x().updateFromJSON(this.exportJSON()).setChecked(!this.getChecked()&&void 0);return this.insertAfter(r,t),r}collapseAtStart(e){let t=(0,l.lJ7)();this.getChildren().forEach(e=>t.append(e));let r=this.getParentOrThrow(),n=r.getParentOrThrow(),i=S(n);if(1===r.getChildrenSize())if(i)r.remove(),n.select();else{r.insertBefore(t),r.remove();let n=e.anchor,i=e.focus,l=t.getKey();"element"===n.type&&n.getNode().is(this)&&n.set(l,n.offset,"element"),"element"===i.type&&i.getNode().is(this)&&i.set(l,i.offset,"element")}else r.insertBefore(t),this.remove();return!0}getValue(){return this.getLatest().__value}setValue(e){let t=this.getWritable();return t.__value=e,t}getChecked(){let e,t=this.getLatest(),r=this.getParent();return O(r)&&(e=r.getListType()),"check"===e?!!t.__checked:void 0}setChecked(e){let t=this.getWritable();return t.__checked=e,t}toggleChecked(){let e=this.getWritable();return e.setChecked(!e.__checked)}getIndent(){let e=this.getParent();if(null===e||!this.isAttached())return this.getLatest().__indent;let t=e.getParentOrThrow(),r=0;for(;S(t);)t=t.getParentOrThrow().getParentOrThrow(),r++;return r}setIndent(e){"number"!=typeof e&&a(117),(e=Math.floor(e))>=0||a(199);let t=this.getIndent();for(;t!==e;)t<e?(function(e){let t=new Set;if(c(e)||t.has(e.getKey()))return;let r=e.getParent(),n=e.getNextSibling(),i=e.getPreviousSibling();if(c(n)&&c(i)){let r=i.getFirstChild();if(O(r)){r.append(e);let i=n.getFirstChild();O(i)&&(p(r,i.getChildren()),n.remove(),t.add(n.getKey()))}}else if(c(n)){let t=n.getFirstChild();if(O(t)){let r=t.getFirstChild();null!==r&&r.insertBefore(e)}}else if(c(i)){let t=i.getFirstChild();O(t)&&t.append(e)}else if(O(r)){let t=x().setTextFormat(e.getTextFormat()).setTextStyle(e.getTextStyle()),l=P(r.getListType()).setTextFormat(r.getTextFormat()).setTextStyle(r.getTextStyle());t.append(l),l.append(e),i?i.insertAfter(t):n?n.insertBefore(t):r.append(t)}}(this),t++):(function(e){if(c(e))return;let t=e.getParent(),r=t?t.getParent():void 0;if(O(r?r.getParent():void 0)&&S(r)&&O(t)){let n=t?t.getFirstChild():void 0,i=t?t.getLastChild():void 0;if(e.is(n))r.insertBefore(e),t.isEmpty()&&r.remove();else if(e.is(i))r.insertAfter(e),t.isEmpty()&&r.remove();else{let n=t.getListType(),i=x(),l=P(n);
27i.append(l),e.getPreviousSiblings().forEach(e=>l.append(e));let o=x(),a=P(n);o.append(a),p(a,e.getNextSiblings()),r.insertBefore(i),r.insertAfter(o),r.replace(e)}}}(this),t--);return this}canInsertAfter(e){return S(e)}canReplaceWith(e){return S(e)}canMergeWith(e){return S(e)||(0,l.bSg)(e)}extractWithChild(e,t){if(!(0,l.I2P)(t))return!1;let r=t.anchor.getNode(),n=t.focus.getNode();return this.isParentOf(r)&&this.isParentOf(n)&&this.getTextContent().length===t.getTextContent().length}isParentRequired(){return!0}createParentElementNode(){return P("bullet")}canMergeWhenEmpty(){return!0}}function _(e){if(e.classList.contains("task-list-item")){for(let t of e.children)if("INPUT"===t.tagName)return w(t)}if(e.classList.contains("joplin-checkbox")){for(let t of e.children)if(t.classList.contains("checkbox-wrapper")&&t.children.length>0&&"INPUT"===t.children[0].tagName)return w(t.children[0])}let t=e.getAttribute("aria-checked");return{node:x("true"===t||"false"!==t&&void 0)}}function w(e){return"checkbox"!==e.getAttribute("type")?{node:null}:{node:x(e.hasAttribute("checked"))}}function x(e){return(0,l.pTq)(new b(void 0,e))}function S(e){return e instanceof b}class C extends l.fGB{__tag;__start;__listType;$config(){return this.config("list",{$transform:e=>{!function(e){let t=e.getNextSibling();O(t)&&e.getListType()===t.getListType()&&y(e,t)}(e),v(e)},extends:l.fGB,importDOM:(0,l.kBm)({ol:()=>({conversion:N,priority:0}),ul:()=>({conversion:N,priority:0})})})}constructor(e="number",t=1,r){super(r);let n=E[e]||e;this.__listType=n,this.__tag="number"===n?"ol":"ul",this.__start=t}afterCloneFrom(e){super.afterCloneFrom(e),this.__listType=e.__listType,this.__tag=e.__tag,this.__start=e.__start}getTag(){return this.getLatest().__tag}setListType(e){let t=this.getWritable();return t.__listType=e,t.__tag="number"===e?"ol":"ul",t}getListType(){return this.getLatest().__listType}getStart(){return this.getLatest().__start}setStart(e){let t=this.getWritable();return t.__start=e,t}createDOM(e,t){let r=this.__tag,n=document.createElement(r);return 1!==this.__start&&n.setAttribute("start",String(this.__start)),n.__lexicalListType=this.__listType,k(n,e.theme,this),n}updateDOM(e,t,r){return e.__tag!==this.__tag||e.__listType!==this.__listType||(k(t,r.theme,this),e.__start!==this.__start&&t.setAttribute("start",String(this.__start)),!1)}updateFromJSON(e){return super.updateFromJSON(e).setListType(e.listType).setStart(e.start)}exportDOM(e){let t=this.createDOM(e._config,e);return(0,l.sby)(t)&&(1!==this.__start&&t.setAttribute("start",String(this.__start)),"check"===this.__listType&&t.setAttribute("__lexicalListType","check")),{element:t}}exportJSON(){return{...super.exportJSON(),listType:this.getListType(),start:this.getStart(),tag:this.getTag()}}canBeEmpty(){return!1}canIndent(){return!1}splice(e,t,r){let n=r;for(let e=0;e<r.length;e++){let t=r[e];S(t)||(n===r&&(n=[...r]),n[e]=x().append(!(0,l.ff4)(t)||O(t)||t.isInline()?t:(0,l.sTu)(t.getTextContent())))}return super.splice(e,t,n)}extractWithChild(e){return S(e)}}function k(e,t,r){let n=[],i=[],o=t.list;if(void 0!==o){let e,t=o[`${r.__tag}Depth`]||[],a=s(r)-1,u=a%t.length,c=t[u],d=o[r.__tag],f=o.nested,h=o.checklist;if(void 0!==f&&f.list&&(e=f.list),void 0!==d&&n.push(d),void 0!==h&&"check"===r.__listType&&n.push(h),void 0!==c){n.push(...(0,l.GYG)(c));for(let e=0;e<t.length;e++)e!==u&&i.push(r.__tag+e)}if(void 0!==e){let t=(0,l.GYG)(e);a>1?n.push(...t):i.push(...t)}}i.length>0&&(0,l.HEf)(e,...i),n.length>0&&(0,l.ZB7)(e,...n)}function T(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];if(S(n)){t.push(n);let e=n.getChildren();e.length>1&&e.forEach(e=>{O(e)&&t.push(d(e))})}else t.push(d(n))}return t}function N(e){let t=e.nodeName.toLowerCase(),r=null;return"ol"===t?r=P("number",e.start):"ul"===t&&(r=!function(e){if("check"===e.getAttribute("__lexicallisttype")||e.classList.contains("contains-task-list")||"1"===e.getAttribute("data-is-checklist"))return!0;for(let t of e.childNodes)if((0,l.sby)(t)&&t.hasAttribute("aria-checked"))return!0;return!1}(e)?P("bullet"):P("check")),{after:T,node:r}}let E={ol:"number",ul:"bullet"};function P(e="number",t=1){return(0,l.pTq)(new C(e,t))}function O(e){return e instanceof C}let $=(0,l.guI)("INSERT_CHECK_LIST_COMMAND");function A(e,t){let r=t&&t.disableTakeFocusOnClick||!1,n=e=>{M(e,()=>{if((0,l.sby)(e.target)){let t=e.target,n=(0,l.scG)(t);null!=n&&n.isEditable()&&n.update(()=>{let e=(0,l.xL4)(t);S(e)&&(r?((0,l.JAT)(l.XI_),(0,l.JAT)(l.$c$)):t.focus(),e.toggleChecked())})}})},i=e=>{M(e,()=>{e.preventDefault(),r&&e.stopPropagation()})};return(0,l.Sdt)(e.registerCommand($,()=>(h("check"),!0),l.AcJ),e.registerCommand(l.bbF,t=>D(t,e,!1),l.AcJ),e.registerCommand(l.UDz,t=>D(t,e,!0),l.AcJ),e.registerCommand(l.Q$N,()=>{if(null!=j()){let t=e.getRootElement();return null!=t&&t.focus(),!0}return!1},l.AcJ),e.registerCommand(l.Huu,t=>{let r=j();return!(null==r||!e.isEditable())&&(e.update(()=>{let e=(0,l.xL4)(r);S(e)&&(t.preventDefault(),e.toggleChecked())}),!0)},l.AcJ),e.registerCommand(l.AX0,t=>e.getEditorState().read(()=>{let r=(0,l.vJq)();if((0,l.I2P)(r)&&r.isCollapsed()){let{anchor:n}=r,i="element"===n.type;if(i||0===n.offset){let r=n.getNode(),o=(0,l.BtT)(r,e=>(0,l.ff4)(e)&&!e.isInline());if(S(o)){let n=o.getParent();if(O(n)&&"check"===n.getListType()&&(i||o.getFirstDescendant()===r)){let r=e.getElementByKey(o.__key);
27if(null!=r&&document.activeElement!==r)return r.focus(),t.preventDefault(),!0}}}}return!1}),l.AcJ),e.registerRootListener((e,t)=>{null!==e&&(e.addEventListener("click",n),e.addEventListener("pointerdown",i,{capture:!0}),e.addEventListener("mousedown",i,{capture:!0}),e.addEventListener("touchstart",i,{capture:!0,passive:!1})),null!==t&&(t.removeEventListener("click",n),t.removeEventListener("pointerdown",i,{capture:!0}),t.removeEventListener("mousedown",i,{capture:!0}),t.removeEventListener("touchstart",i,{capture:!0}))}))}function M(e,t){let r=e.target;if(!(0,l.sby)(r))return;let n=r.firstChild;if((0,l.sby)(n)&&("UL"===n.tagName||"OL"===n.tagName))return;let o=r.parentNode;if(!o||"check"!==o.__lexicalListType)return;let a=null,s=null;if("clientX"in e)a=e.clientX;else if("touches"in e){let t=e.touches;t.length>0&&(a=t[0].clientX,s="touch")}if(null==a)return;let u=r.getBoundingClientRect(),c=a/(0,i.OV)(r),d=parseFloat((window.getComputedStyle?window.getComputedStyle(r,"::before"):{width:"0px"}).width),f=32*("touch"===s||"touch"===e.pointerType);("rtl"===r.dir?c<u.right+f&&c>u.right-d-f:c>u.left-f&&c<u.left+d+f)&&t()}function j(){let e=document.activeElement;return(0,l.sby)(e)&&"LI"===e.tagName&&null!=e.parentNode&&"check"===e.parentNode.__lexicalListType?e:null}function D(e,t,r){let n=j();return null!=n&&t.update(()=>{let i=(0,l.xL4)(n);if(!S(i))return;let o=function(e,t){let r=t?e.getPreviousSibling():e.getNextSibling(),n=e;for(;null==r&&S(n);)null!=(n=n.getParentOrThrow().getParent())&&(r=t?n.getPreviousSibling():n.getNextSibling());for(;S(r);){let e=t?r.getLastChild():r.getFirstChild();if(!O(e))return r;r=t?e.getLastChild():e.getFirstChild()}return null}(i,r);if(null!=o){o.selectStart();let r=t.getElementByKey(o.__key);null!=r&&(e.preventDefault(),setTimeout(()=>{r.focus()},0))}}),!1}let I=(0,l.guI)("UPDATE_LIST_START_COMMAND"),F=(0,l.guI)("INSERT_UNORDERED_LIST_COMMAND"),R=(0,l.guI)("INSERT_ORDERED_LIST_COMMAND"),L=(0,l.guI)("REMOVE_LIST_COMMAND");function B(e,t){return(0,l.Sdt)(e.registerCommand(R,()=>(h("number"),!0),l.AcJ),e.registerCommand(I,e=>{let{listNodeKey:t,newStart:r}=e,n=(0,l.nsf)(t);return!!O(n)&&("number"===n.getListType()&&(n.setStart(r),v(n)),!0)},l.AcJ),e.registerCommand(F,()=>(h("bullet"),!0),l.AcJ),e.registerCommand(L,()=>((function(){let e=(0,l.vJq)();if((0,l.I2P)(e)){let t=new Set,r=e.getNodes(),n=e.anchor.getNode();if(f(n,r))t.add(u(n));else for(let e=0;e<r.length;e++){let n=r[e];if((0,l.jG6)(n)){let e=(0,i.eu)(n,b);null!=e&&t.add(u(e))}}for(let r of t){let t=r;for(let n of function e(t){let r=[],n=t.getChildren().filter(S);for(let t=0;t<n.length;t++){let i=n[t],l=i.getFirstChild();O(l)?r=r.concat(e(l)):r.push(i)}return r}(r)){let r=(0,l.lJ7)().setTextStyle(e.style).setTextFormat(e.format);p(r,n.getChildren()),t.insertAfter(r),t=r,n.__key===e.anchor.key&&(0,l.wp6)(e.anchor,(0,l.lSZ)((0,l.uwZ)(r,"next"))),n.__key===e.focus.key&&(0,l.wp6)(e.focus,(0,l.lSZ)((0,l.uwZ)(r,"next"))),n.remove()}r.remove()}}})(),!0),l.AcJ),e.registerCommand(l.XKQ,()=>(function(e=!1){let t,r=(0,l.vJq)();if(!(0,l.I2P)(r)||!r.isCollapsed())return!1;let n=r.anchor.getNode(),i=null;if(S(n)&&0===n.getChildrenSize())i=n;else if((0,l.kFe)(n)){let e=n.getParent();S(e)&&e.getChildren().every(e=>(0,l.kFe)(e)&&""===e.getTextContent().trim())&&(i=e)}if(null===i)return!1;let o=u(i),s=i.getParent();O(s)||a(40);let c=s.getParent();if((0,l.IqF)(c))t=(0,l.lJ7)(),o.insertAfter(t);else{if(!S(c))return!1;t=x(),c.insertAfter(t)}t.setTextStyle(r.style).setTextFormat(r.format).select();let d=i.getNextSiblings();if(d.length>0){var f;let r=e?(f=i,s.getStart()+f.getIndexWithinParent()):1,n=P(s.getListType(),r);if(S(t)){let e=x();e.append(n),t.insertAfter(e)}else t.insertAfter(n);n.append(...d)}return function(e){let t=e;for(;null==t.getNextSibling()&&null==t.getPreviousSibling();){let e=t.getParent();if(null==e||!S(e)&&!O(e))break;t=e}t.remove()}(i),!0})(!!(t&&t.restoreNumbering)),l.AcJ),e.registerNodeTransform(b,e=>{let t=e.getFirstChild();if(t){if((0,l.kFe)(t)){let r=t.getStyle(),n=t.getFormat();e.getTextStyle()!==r&&e.setTextStyle(r),e.getTextFormat()!==n&&e.setTextFormat(n)}}else{let t=(0,l.vJq)();(0,l.I2P)(t)&&(t.style!==e.getTextStyle()||t.format!==e.getTextFormat())&&t.isCollapsed()&&e.is(t.anchor.getNode())&&e.setTextStyle(t.style).setTextFormat(t.format)}}),e.registerNodeTransform(l.Ey8,e=>{let t=e.getParent();if(S(t)&&e.is(t.getFirstChild())){let r=e.getStyle(),n=e.getFormat();r===t.getTextStyle()&&n===t.getTextFormat()||t.setTextStyle(r).setTextFormat(n)}}))}function z(e){let t=e=>{let t=e.getParent();if(O(e.getFirstChild())||!O(t))return;let r=(0,l.BtT)(e,e=>S(e)&&O(e.getParent())&&S(e.getPreviousSibling()));if(null===r&&e.getIndent()>0)e.setIndent(0);else if(S(r)){let n=r.getPreviousSibling();if(S(n)){let r=(function(e){let t=e,r=t.getFirstChild();for(;O(r);){let e=r.getLastChild();if(!S(e))break;r=(t=e).getFirstChild()}return t})(n).getParent();if(O(r)){let n=s(r);n+1<s(t)&&e.setIndent(n)}}}};return e.registerNodeTransform(C,e=>{let r=[e];for(;r.length>0;){let e=r.shift();if(O(e)){for(let n of e.getChildren())if(S(n)){t(n);let e=n.getFirstChild();O(e)&&r.push(e)}}}})}let K=(0,l.vE9)({build:(e,t,r)=>(0,n.v)(t),config:(0,l.lVE)({hasStrictIndent:!1,shouldPreserveNumbering:!1}),name:"@lexical/list/List",nodes:()=>[C,b],register(e,t,r){let i=r.getOutput();return(0,l.Sdt)((0,n.QZ)(()=>B(e,{restoreNumbering:i.shouldPreserveNumbering.value})),(0,n.QZ)(()=>i.hasStrictIndent.value?z(e):void 0))}});(0,l.vE9)({config:(0,l.lVE)({disableTakeFocusOnClick:!1}),dependencies:[K],name:"@lexical/list/CheckList",register:A})},72823:(e,t,r)=>{"use strict";r.d(t,{DefaultNavClient:()=>h});
27var n=r(19749),i=r(95155),l=r(84365),o=r(41412),a=r(63344),s=r(92825),u=r(78234),c=r(35695),d=r(6001),f=r(12115);let h=e=>{let t,r=(0,n.c)(13),{groups:h,navPreferences:p}=e,m=(0,c.usePathname)(),{config:y}=(0,o.c)(),{admin:v,folders:b,routes:_}=y,{routes:w}=v,{browseByFolder:x}=w,{admin:S}=_,{i18n:C}=(0,a.d)();if(r[0]!==S||r[1]!==b||r[2]!==x||r[3]!==h||r[4]!==C||r[5]!==(null==p?void 0:p.groups)||r[6]!==m){let e,n=(0,d.Q)({adminRoute:S,path:x}),o=m.startsWith(n);r[8]!==S||r[9]!==C||r[10]!==(null==p?void 0:p.groups)||r[11]!==m?(e=(e,t)=>{var r,n;let{entities:o,label:a}=e;return(0,i.jsx)(s.NavGroup,{isOpen:null==p||null==(n=p.groups)||null==(r=n[a])?void 0:r.open,label:a,children:o.map((e,t)=>{let r,n,{slug:o,type:a,label:c}=e;a===u.ck.collection&&(r=(0,d.Q)({adminRoute:S,path:"/collections/".concat(o)}),n="nav-".concat(o)),a===u.ck.global&&(r=(0,d.Q)({adminRoute:S,path:"/globals/".concat(o)}),n="nav-global-".concat(o));let f=m.startsWith(r)&&["/",void 0].includes(m[r.length]),h=(0,i.jsxs)(i.Fragment,{children:[f&&(0,i.jsx)("div",{className:"".concat("nav","__link-indicator")}),(0,i.jsx)("span",{className:"".concat("nav","__link-label"),children:(0,l.s)(c,C)})]});return m===r?(0,i.jsx)("div",{className:"".concat("nav","__link"),id:n,children:h},t):(0,i.jsx)(s.Link,{className:"".concat("nav","__link"),href:r,id:n,prefetch:!1,children:h},t)})},t)},r[8]=S,r[9]=C,r[10]=null==p?void 0:p.groups,r[11]=m,r[12]=e):e=r[12],t=(0,i.jsxs)(f.Fragment,{children:[b&&b.browseByFolder&&(0,i.jsx)(s.BrowseByFolderButton,{active:o}),h.map(e)]}),r[0]=S,r[1]=b,r[2]=x,r[3]=h,r[4]=C,r[5]=null==p?void 0:p.groups,r[6]=m,r[7]=t}else t=r[7];return t}},73264:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772);t.default={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,n.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,n._)`{format: ${e}}`},code(e,t){let{gen:r,data:i,$data:l,schema:o,schemaCode:a,it:s}=e,{opts:u,errSchemaPath:c,schemaEnv:d,self:f}=s;u.validateFormats&&(l?function(){let l=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),o=r.const("fDef",(0,n._)`${l}[${a}]`),s=r.let("fType"),c=r.let("format");r.if((0,n._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,()=>r.assign(s,(0,n._)`${o}.type || "string"`).assign(c,(0,n._)`${o}.validate`),()=>r.assign(s,(0,n._)`"string"`).assign(c,o)),e.fail$data((0,n.or)(!1===u.strictSchema?n.nil:(0,n._)`${a} && !${c}`,function(){let e=d.$async?(0,n._)`(${o}.async ? await ${c}(${i}) : ${c}(${i}))`:(0,n._)`${c}(${i})`,r=(0,n._)`(typeof ${c} == "function" ? ${e} : ${c}.test(${i}))`;return(0,n._)`${c} && ${c} !== true && ${s} === ${t} && !${r}`}()))}():function(){let l=f.formats[o];if(!l){if(!1===u.strictSchema)return f.logger.warn(a());throw Error(a());function a(){return`unknown format "${o}" ignored in schema at path "${c}"`}}if(!0===l)return;let[s,h,p]=function(e){let t=e instanceof RegExp?(0,n.regexpCode)(e):u.code.formats?(0,n._)`${u.code.formats}${(0,n.getProperty)(o)}`:void 0,i=r.scopeValue("formats",{key:o,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,i]:[e.type||"string",e.validate,(0,n._)`${i}.validate`]}(l);s===t&&e.pass(function(){if("object"==typeof l&&!(l instanceof RegExp)&&l.async){if(!d.$async)throw Error("async format in sync schema");return(0,n._)`await ${p}(${i})`}return"function"==typeof h?(0,n._)`${p}(${i})`:(0,n._)`${p}.test(${i})`}())}())}}},73274:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;let i=r(79772),l=r(53921);function o(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||"boolean"==typeof t)return;let i=n.RULES.keywords;for(let r in t)i[r]||p(e,`unknown keyword: "${r}"`)}function a(e,t){if("boolean"==typeof e)return!e;for(let r in e)if(t[r])return!0;return!1}function s(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function u(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function c({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(l,o,a,s)=>{let u=void 0===a?o:a instanceof i.Name?(o instanceof i.Name?e(l,o,a):t(l,o,a),a):o instanceof i.Name?(t(l,a,o),o):r(o,a);return s!==i.Name||u instanceof i.Name?u:n(l,u)}}function d(e,t){if(!0===t)return e.var("props",!0);let r=e.var("props",(0,i._)`{}`);return void 0!==t&&f(e,r,t),r}function f(e,t,r){Object.keys(r).forEach(r=>e.assign((0,i._)`${t}${(0,i.getProperty)(r)}`,!0))}t.toHash=function(e){let t={};for(let r of e)t[r]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(o(e,t),!a(t,e.self.RULES.all))},t.checkUnknownRules=o,t.schemaHasRules=a,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(let r in e)if("$ref"!==r&&t.all[r])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},r,n,l){if(!l){if("number"==typeof r||"boolean"==typeof r)return r;if("string"==typeof r)return(0,i._)`${r}`}return(0,i._)`${e}${t}${(0,i.getProperty)(n)}`},t.unescapeFragment=function(e){return u(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(s(e))},t.escapeJsonPointer=s,t.unescapeJsonPointer=u,t.eachItem=function(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)},t.mergeEvaluated={props:c({mergeNames:(e,t,r)=>e.if((0,i._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,i._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,i._)`${r} || {}`).code((0,i._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,i._)`${r} !== true`,()=>{!0===t?e.assign(r,!0):(e.assign(r,(0,i._)`${r} || {}`),f(e,r,t))}),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:d}),items:c({mergeNames:(e,t,r)=>e.if((0,i._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,i._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,i._)`${r} !== true`,()=>e.assign(r,!0===t||(0,i._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>
27e.var("items",t)})},t.evaluatedPropsToName=d,t.setEvaluated=f;let h={};function p(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,!0===r)throw Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:h[t.code]||(h[t.code]=new l._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(n||(t.Type=n={})),t.getErrorPath=function(e,t,r){if(e instanceof i.Name){let l=t===n.Num;return r?l?(0,i._)`"[" + ${e} + "]"`:(0,i._)`"['" + ${e} + "']"`:l?(0,i._)`"/" + ${e}`:(0,i._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,i.getProperty)(e).toString():"/"+s(e)},t.checkStrictMode=p},73412:(e,t,r)=>{"use strict";r.d(t,{a:()=>T,b:()=>N,c:()=>x,d:()=>S,e:()=>C});var n=r(93916),i=r(48643),l=r(95155),o=r(94271),a=r(58647),s=r(84365),u=r(63344),c=r(92825),d=r(41412),f=r(78234),h=r(32532),p=r(15526),m=r(14994),y=r(12115),v=r(85055),b=r(1585),_=class extends h.Kp7{__cacheBuster;__fields;constructor({cacheBuster:e,fields:t,key:r}){super(r),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,h.pTq)(new _({fields:{...t,id:t?.id||new b.default().toHexString()}}))}static isInline(){return!1}canIndent(){return!0}createDOM(e){let t=document.createElement("span");return(0,h.ZB7)(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 r=this.getWritable();r.__fields=e,t||r.__cacheBuster++}updateDOM(){return!1}},w=y.lazy(()=>r.e(8345).then(r.bind(r,68345)).then(e=>({default:e.InlineBlockComponent}))),x=class extends _{static clone(e){return super.clone(e)}static getType(){return super.getType()}static importJSON(e){return S(e.fields)}decorate(...[e,t,r,n]){return(0,l.jsx)(w,{cacheBuster:this.getCacheBuster(),className:t.theme.inlineBlock??"LexicalEditorTheme__inlineBlock",CustomBlock:r,CustomLabel:n,formData:this.getFields(),nodeKey:this.getKey()})}exportJSON(){return super.exportJSON()}};function S(e){return(0,h.pTq)(new x({fields:{...e,id:e?.id||new b.default().toHexString()}}))}function C(e){return e instanceof x}var k=(0,y.createContext)({initialState:!1}),T=()=>y.use(k),N=e=>{let{cacheBuster:t,className:r,CustomBlock:b,CustomLabel:_,formData:w,nodeKey:x}=e,[S]=(0,o.DF)(),N=(0,a.a)(),{i18n:E,t:P}=(0,u.d)(),{createdInlineBlock:O,fieldProps:{featureClientSchemaMap:$,initialLexicalFormState:A,schemaPath:M},setCreatedInlineBlock:j,uuid:D}=(0,i.b)(),{fields:I}=(0,c.useDocumentForm)(),{getFormState:F}=(0,c.useServerFunctions)(),R=(0,c.useEditDepth)(),L=(0,y.useRef)(!1),[B,z]=y.useState(()=>{let e=A?.[w.id]?.formState;return!!e&&Object.fromEntries(Object.entries(e).map(([e,t])=>[e,e in w?{...t,initialValue:w[e],value:w[e]}:t]))}),K=(0,y.useRef)(!1),U=(0,y.useRef)(t);(0,y.useEffect)(()=>{K.current?(U.current!==t&&z(!1),U.current=t):K.current=!0},[t]);let[W]=y.useState(()=>(0,v.A)()),[J,q]=y.useState(()=>{if(!_)return B?._components?.customComponents?.BlockLabel??void 0}),[V,H]=y.useState(()=>{if(!b)return B?._components?.customComponents?.Block??void 0}),G=(0,y.useMemo)(()=>b?(0,l.jsx)(b,{className:r,formData:w,isEditor:!0,isJSXConverter:!1,nodeKey:x,useInlineBlockComponentContext:T}):V,[b,r,w,x,V]),Y=(0,y.useMemo)(()=>_?(0,l.jsx)(_,{className:r,formData:w,isEditor:!0,isJSXConverter:!1,nodeKey:x,useInlineBlockComponentContext:T}):J,[_,r,w,x,J]),Z=(0,c.formatDrawerSlug)({slug:`lexical-inlineBlocks-create-${D}-${w.id}`,depth:R}),{toggleDrawer:X}=(0,n.a)(Z,!0),Q=(0,y.useRef)(null),{id:ee,collectionSlug:et,getDocPreferences:er,globalSlug:en}=(0,c.useDocumentInfo)(),{config:ei}=(0,d.c)(),el=`${M}
27.lexical_internal_feature.blocks.lexical_inline_blocks.${w.blockType}`,eo=$.blocks?.[el]?.[0],ea=eo.blockReferences?"string"==typeof eo?.blockReferences?.[0]?ei.blocksMap[eo?.blockReferences?.[0]]:eo?.blockReferences?.[0]:eo?.blocks?.[0],es=ea?.fields??[];(0,y.useEffect)(()=>{L.current||O?.getKey()!==x||(es.length>2&&X(),j?.(void 0),L.current=!0)},[es.length,O,x,j,X]);let eu=(0,y.useCallback)(()=>{S.update(()=>{(0,h.nsf)(x)?.remove()})},[S,x]),ec=ea?.labels?.singular?(0,s.s)(ea?.labels.singular,E):ea?.slug,ed=(0,y.useRef)(new AbortController),ef=`${M}.lexical_internal_feature.blocks.lexical_inline_blocks.${ea?.slug}.fields`;(0,y.useEffect)(()=>{let e=new AbortController;return w&&!B&&(async()=>{let{state:t}=await F({id:ee,collectionSlug:et,data:w,docPermissions:{fields:!0},docPreferences:await er(),documentFormState:(0,p.KS)(I,{excludeFiles:!0}),globalSlug:en,initialBlockData:w,initialBlockFormState:w,operation:"update",readOnly:!N,renderAllFields:!0,schemaPath:ef,signal:e.signal});if(t){let e=(0,m.r)((0,p.KS)(t,{excludeFiles:!0}),!0);S.update(()=>{let t=(0,h.nsf)(x);t&&C(t)&&(e.blockType=w.blockType,t.setFields(e,!0))},{tag:h.$c$}),z(t),_||q(t._components?.customComponents?.BlockLabel),b||H(t._components?.customComponents?.Block)}})(),()=>{(0,f.eS)(e)}},[F,S,x,N,_,b,ef,ee,w,B,et,en,er,I]);let eh=(0,y.useCallback)(async({formState:e,submit:t})=>{(0,f.eS)(ed.current);let r=new AbortController;ed.current=r;let{state:n}=await F({id:ee,collectionSlug:et,docPermissions:{fields:!0},docPreferences:await er(),documentFormState:(0,p.KS)(I,{excludeFiles:!0}),formState:e,globalSlug:en,initialBlockFormState:e,operation:"update",readOnly:!N,renderAllFields:!!t,schemaPath:ef,signal:r.signal});return n?(t&&(_||q(n._components?.customComponents?.BlockLabel),b||H(n._components?.customComponents?.Block)),n):e},[F,ee,et,er,I,en,N,ef,b,_]);(0,y.useEffect)(()=>()=>{B&&((e,t)=>Object.keys(t).some(r=>t[r]&&e[r]!==t[r].value))(w,B)&&z(!1),(0,f.eS)(ed.current)},[w,B]);let eg=(0,y.useCallback)((e,t)=>{t.blockType=w.blockType,S.update(()=>{let e=(0,h.nsf)(x);e&&C(e)&&e.setFields(t,!0)},{tag:h.$c$})},[S,x,w]),ep=(0,y.useMemo)(()=>()=>(0,l.jsx)(c.Button,{buttonStyle:"icon-label",className:`${r}__removeButton`,disabled:!N,icon:"x",onClick:e=>{e.preventDefault(),eu()},round:!0,size:"small",tooltip:P("lexical:blocks:inlineBlocks:remove",{label:ec})}),[r,ec,N,eu,P]),em=(0,y.useMemo)(()=>()=>(0,l.jsx)(c.Button,{buttonStyle:"icon-label",className:`${r}__editButton`,disabled:!N,el:"button",icon:"edit",onClick:()=>{X()},round:!0,size:"small",tooltip:P("lexical:blocks:inlineBlocks:edit",{label:ec})}),[r,ec,N,P,X]),ey=(0,y.useMemo)(()=>({children:e,className:t})=>(0,l.jsx)("div",{className:[`${r}__container`,r+"-"+w.blockType,t].filter(Boolean).join(" "),ref:Q,children:e}),[r,w.blockType]),ev=(0,y.useMemo)(()=>Y?()=>Y:()=>(0,l.jsx)("div",{children:ea?.labels?(0,s.s)(ea?.labels.singular,E):""}),[Y,ea?.labels,E]);return ea?(0,l.jsxs)(c.Form,{beforeSubmit:[async({formState:e})=>await eh({formState:e,submit:!0})],disableValidationOnSubmit:!0,el:"div",fields:ea?.fields,initialState:B||{},onChange:[eh],onSubmit:(e,t)=>{eg(e,t),X()},uuid:W,children:[(0,l.jsx)(c.EditDepthProvider,{children:(0,l.jsx)(c.Drawer,{className:"",slug:Z,title:P(`lexical:blocks:inlineBlocks:${w?.id?"edit":"create"}`,{label:ec??P("lexical:blocks:inlineBlocks:label")}),children:B?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(c.RenderFields,{fields:ea?.fields,forceRender:!0,parentIndexPath:"",parentPath:"",parentSchemaPath:ef,permissions:!0,readOnly:!N}),(0,l.jsx)(c.FormSubmit,{programmaticSubmit:!0,children:P("fields:saveChanges")})]}):null})}),G?(0,l.jsx)(k,{value:{EditButton:em,initialState:B,InlineBlockContainer:ey,Label:ev,nodeKey:x,RemoveButton:ep},children:G}):(0,l.jsxs)(ey,{children:[B?(0,l.jsx)(ev,{}):(0,l.jsx)(d.f,{height:"15px",width:"40px"}),N?(0,l.jsxs)("div",{className:`${r}__actions`,children:[(0,l.jsx)(em,{}),(0,l.jsx)(ep,{})]}):null]})]}):(0,l.jsxs)(ey,{className:`${r}-not-found`,children:[(0,l.jsxs)("span",{children:["Error: Block '",w.blockType,"' not found"]}),N?(0,l.jsx)("div",{className:`${r}__actions`,children:(0,l.jsx)(ep,{})}):null]})}},74455:(e,t)=>{"use strict";
27Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=r},74619:(e,t,r)=>{"use strict";async function n(e){return new Promise(t=>{setTimeout(t,e)})}r.d(t,{u:()=>n})},74647:(e,t,r)=>{"use strict";r.d(t,{SettingsMenuButton:()=>s});var n=r(19749),i=r(95155),l=r(63344),o=r(92825),a=r(12115);let s=e=>{let t,r=(0,n.c)(3),{settingsMenu:a}=e,{t:s}=(0,l.d)();return a&&0!==a.length?(r[0]!==a||r[1]!==s?(t=(0,i.jsx)(o.Popup,{button:(0,i.jsx)(o.GearIcon,{ariaLabel:s("general:menu")}),className:"settings-menu-button",horizontalAlign:"left",id:"settings-menu",size:"small",verticalAlign:"bottom",children:a.map(u)}),r[0]=a,r[1]=s,r[2]=t):t=r[2],t):null};function u(e,t){return(0,i.jsx)(a.Fragment,{children:e},"settings-menu-item-".concat(t))}},74765:(e,t,r)=>{"use strict";r.d(t,{Q:()=>a});var n=r(70893),i=r(94271),l=r(32532),o=r(12115);function a({hasStrictIndent:e=!1,shouldPreserveNumbering:t=!1}){let[r]=(0,i.DF)();return(0,o.useEffect)(()=>{if(!r.hasNodes([n.v5,n.YW]))throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor")},[r]),(0,o.useEffect)(()=>(0,l.Sdt)((0,n.cz)(r,{restoreNumbering:t}),e?(0,n.Js)(r):()=>{}),[r,e,t]),(0,o.useEffect)(()=>(0,n.cz)(r),[r]),null}},75004:(e,t,r)=>{"use strict";function n(e,t=0){if(0===e)return"0 bytes";let r=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/1024**r).toFixed(t<0?0:t))}${[" bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}`}r.d(t,{B:()=>n})},75143:(e,t,r)=>{"use strict";let n;r.d(t,{Mp:()=>eJ,Hd:()=>e7,vL:()=>a,uN:()=>ed,cA:()=>ev,IG:()=>e_,fp:()=>I,y$:()=>F,Sj:()=>W,Vy:()=>j,sl:()=>q,TT:()=>L,Qo:()=>R,fF:()=>eG,E5:()=>x,PM:()=>eH,zM:()=>eZ,MS:()=>N,FR:()=>E});var i,l,o,a,s,u,c,d,f,h,p=r(12115),m=r(47650),y=r(78266);let v={display:"none"};function b(e){let{id:t,value:r}=e;return p.createElement("div",{id:t,style:v},r)}function _(e){let{id:t,announcement:r,ariaLiveType:n="assertive"}=e;return p.createElement("div",{id:t,style:{position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"},role:"status","aria-live":n,"aria-atomic":!0},r)}let w=(0,p.createContext)(null);function x(e){let t=(0,p.useContext)(w);(0,p.useEffect)(()=>{if(!t)throw Error("useDndMonitor must be used within a children of <DndContext>");return t(e)},[e,t])}let S={draggable:"\n To pick up a draggable item, press the space bar.\n While dragging, use the arrow keys to move the item.\n Press space again to drop the item in its new position, or press escape to cancel.\n "},C={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was moved over droppable area "+r.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:r}=e;return r?"Draggable item "+t.id+" was dropped over droppable area "+r.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function k(e){let{announcements:t=C,container:r,hiddenTextDescribedById:n,screenReaderInstructions:i=S}=e,{announce:l,announcement:o}=function(){let[e,t]=(0,p.useState)("");return{announce:(0,p.useCallback)(e=>{null!=e&&t(e)},[]),announcement:e}}(),a=(0,y.YG)("DndLiveRegion"),[s,u]=(0,p.useState)(!1);if((0,p.useEffect)(()=>{u(!0)},[]),x((0,p.useMemo)(()=>({onDragStart(e){let{active:r}=e;l(t.onDragStart({active:r}))},onDragMove(e){let{active:r,over:n}=e;t.onDragMove&&l(t.onDragMove({active:r,over:n}))},onDragOver(e){let{active:r,over:n}=e;l(t.onDragOver({active:r,over:n}))},onDragEnd(e){let{active:r,over:n}=e;l(t.onDragEnd({active:r,over:n}))},onDragCancel(e){let{active:r,over:n}=e;l(t.onDragCancel({active:r,over:n}))}}),[l,t])),!s)return null;let c=p.createElement(p.Fragment,null,p.createElement(b,{id:n,value:i.draggable}),p.createElement(_,{id:a,announcement:o}));return r?(0,m.createPortal)(c,r):c}function T(){}function N(e,t){return(0,p.useMemo)(()=>({sensor:e,options:null!=t?t:{}}),[e,t])}function E(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,p.useMemo)(()=>[...t].filter(e=>null!=e),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(i||(i={}));let P=Object.freeze({x:0,y:0});function O(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function $(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return r-n}function A(e,t){let{data:{value:r}}=e,{data:{value:n}}=t;return n-r}function M(e){let{left:t,top:r,height:n,width:i}=e;return[{x:t,y:r},{x:t+i,y:r},{x:t,y:r+n},{x:t+i,y:r+n}]}function j(e,t){if(!e||0===e.length)return null;let[r]=e;return t?r[t]:r}function D(e,t,r){return void 0===t&&(t=e.left),void 0===r&&(r=e.top),{x:t+.5*e.width,y:r+.5*e.height}}let I=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=D(t,t.left,t.top),l=[];for(let e of n){let{id:t}=e,n=r.get(t);if(n){let r=O(D(n),i);l.push({id:t,data:{droppableContainer:e,value:r}})}}return l.sort($)},F=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=M(t),l=[];for(let e of n){let{id:t}=e,n=r.get(t);
27if(n){let r=M(n),o=Number((i.reduce((e,t,n)=>e+O(r[n],t),0)/4).toFixed(4));l.push({id:t,data:{droppableContainer:e,value:o}})}}return l.sort($)},R=e=>{let{collisionRect:t,droppableRects:r,droppableContainers:n}=e,i=[];for(let e of n){let{id:n}=e,l=r.get(n);if(l){let r=function(e,t){let r=Math.max(t.top,e.top),n=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),l=Math.min(t.top+t.height,e.top+e.height);if(n<i&&r<l){let o=t.width*t.height,a=e.width*e.height,s=(i-n)*(l-r);return Number((s/(o+a-s)).toFixed(4))}return 0}(l,t);r>0&&i.push({id:n,data:{droppableContainer:e,value:r}})}}return i.sort(A)},L=e=>{let{droppableContainers:t,droppableRects:r,pointerCoordinates:n}=e;if(!n)return[];let i=[];for(let e of t){let{id:t}=e,l=r.get(t);if(l&&function(e,t){let{top:r,left:n,bottom:i,right:l}=t;return r<=e.y&&e.y<=i&&n<=e.x&&e.x<=l}(n,l)){let r=Number((M(l).reduce((e,t)=>e+O(n,t),0)/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:r}})}}return i.sort($)};function B(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:P}let z=function(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((t,r)=>({...t,top:t.top+e*r.y,bottom:t.bottom+e*r.y,left:t.left+e*r.x,right:t.right+e*r.x}),{...t})}}(1);function K(e){if(e.startsWith("matrix3d(")){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}let U={ignoreTransform:!1};function W(e,t){void 0===t&&(t=U);let r=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:n}=(0,y.zk)(e).getComputedStyle(e);t&&(r=function(e,t,r){let n=K(t);if(!n)return e;let{scaleX:i,scaleY:l,x:o,y:a}=n,s=e.left-o-(1-i)*parseFloat(r),u=e.top-a-(1-l)*parseFloat(r.slice(r.indexOf(" ")+1)),c=i?e.width/i:e.width,d=l?e.height/l:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}(r,t,n))}let{top:n,left:i,width:l,height:o,bottom:a,right:s}=r;return{top:n,left:i,width:l,height:o,bottom:a,right:s}}function J(e){return W(e,{ignoreTransform:!0})}function q(e,t){let r=[];return e?function n(i){var l;if(null!=t&&r.length>=t||!i)return r;if((0,y.wz)(i)&&null!=i.scrollingElement&&!r.includes(i.scrollingElement))return r.push(i.scrollingElement),r;if(!(0,y.sb)(i)||(0,y.xZ)(i)||r.includes(i))return r;let o=(0,y.zk)(e).getComputedStyle(i);return(i!==e&&function(e,t){void 0===t&&(t=(0,y.zk)(e).getComputedStyle(e));let r=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(e=>{let n=t[e];return"string"==typeof n&&r.test(n)})}(i,o)&&r.push(i),void 0===(l=o)&&(l=(0,y.zk)(i).getComputedStyle(i)),"fixed"===l.position)?r:n(i.parentNode)}(e):r}function V(e){let[t]=q(e,1);return null!=t?t:null}function H(e){return y.Sw&&e?(0,y.l6)(e)?e:(0,y.Ll)(e)?(0,y.wz)(e)||e===(0,y.TW)(e).scrollingElement?window:(0,y.sb)(e)?e:null:null:null}function G(e){return(0,y.l6)(e)?e.scrollX:e.scrollLeft}function Y(e){return(0,y.l6)(e)?e.scrollY:e.scrollTop}function Z(e){return{x:G(e),y:Y(e)}}function X(e){return!!y.Sw&&!!e&&e===document.scrollingElement}function Q(e){let t={x:0,y:0},r=X(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},n={x:e.scrollWidth-r.width,y:e.scrollHeight-r.height},i=e.scrollTop<=t.y,l=e.scrollLeft<=t.x;return{isTop:i,isLeft:l,isBottom:e.scrollTop>=n.y,isRight:e.scrollLeft>=n.x,maxScroll:n,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(l||(l={}));let ee={x:.2,y:.2};function et(e){return e.reduce((e,t)=>(0,y.WQ)(e,Z(t)),P)}function er(e,t){if(void 0===t&&(t=W),!e)return;let{top:r,left:n,bottom:i,right:l}=t(e);V(e)&&(i<=0||l<=0||r>=window.innerHeight||n>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}let en=[["x",["left","right"],function(e){return e.reduce((e,t)=>e+G(t),0)}],["y",["top","bottom"],function(e){return e.reduce((e,t)=>e+Y(t),0)}]];class ei{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let r=q(t),n=et(r);for(let[t,i,l]of(this.rect={...e},this.width=e.width,this.height=e.height,en))for(let e of i)Object.defineProperty(this,e,{get:()=>{let i=l(r),o=n[t]-i;return this.rect[e]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}
27class el{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>{var t;return null==(t=this.target)?void 0:t.removeEventListener(...e)})},this.target=e}add(e,t,r){var n;null==(n=this.target)||n.addEventListener(e,t,r),this.listeners.push([e,t,r])}}function eo(e,t){let r=Math.abs(e.x),n=Math.abs(e.y);return"number"==typeof t?Math.sqrt(r**2+n**2)>t:"x"in t&&"y"in t?r>t.x&&n>t.y:"x"in t?r>t.x:"y"in t&&n>t.y}function ea(e){e.preventDefault()}function es(e){e.stopPropagation()}!function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"}(o||(o={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"}(a||(a={}));let eu={start:[a.Space,a.Enter],cancel:[a.Esc],end:[a.Space,a.Enter,a.Tab]},ec=(e,t)=>{let{currentCoordinates:r}=t;switch(e.code){case a.Right:return{...r,x:r.x+25};case a.Left:return{...r,x:r.x-25};case a.Down:return{...r,y:r.y+25};case a.Up:return{...r,y:r.y-25}}};class ed{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new el((0,y.TW)(t)),this.windowListeners=new el((0,y.zk)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(o.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,r=e.node.current;r&&er(r),t(P)}handleKeyDown(e){if((0,y.kx)(e)){let{active:t,context:r,options:n}=this.props,{keyboardCodes:i=eu,coordinateGetter:l=ec,scrollBehavior:o="smooth"}=n,{code:s}=e;if(i.end.includes(s))return void this.handleEnd(e);if(i.cancel.includes(s))return void this.handleCancel(e);let{collisionRect:u}=r.current,c=u?{x:u.left,y:u.top}:P;this.referenceCoordinates||(this.referenceCoordinates=c);let d=l(e,{active:t,context:r.current,currentCoordinates:c});if(d){let t=(0,y.Re)(d,c),n={x:0,y:0},{scrollableAncestors:i}=r.current;for(let r of i){let i=e.code,{isTop:l,isRight:s,isLeft:u,isBottom:c,maxScroll:f,minScroll:h}=Q(r),p=function(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:r,right:n,bottom:i}=e.getBoundingClientRect();return{top:t,left:r,right:n,bottom:i,width:e.clientWidth,height:e.clientHeight}}(r),m={x:Math.min(i===a.Right?p.right-p.width/2:p.right,Math.max(i===a.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(i===a.Down?p.bottom-p.height/2:p.bottom,Math.max(i===a.Down?p.top:p.top+p.height/2,d.y))},y=i===a.Right&&!s||i===a.Left&&!u,v=i===a.Down&&!c||i===a.Up&&!l;if(y&&m.x!==d.x){let e=r.scrollLeft+t.x,l=i===a.Right&&e<=f.x||i===a.Left&&e>=h.x;if(l&&!t.y)return void r.scrollTo({left:e,behavior:o});l?n.x=r.scrollLeft-e:n.x=i===a.Right?r.scrollLeft-f.x:r.scrollLeft-h.x,n.x&&r.scrollBy({left:-n.x,behavior:o});break}if(v&&m.y!==d.y){let e=r.scrollTop+t.y,l=i===a.Down&&e<=f.y||i===a.Up&&e>=h.y;if(l&&!t.x)return void r.scrollTo({top:e,behavior:o});l?n.y=r.scrollTop-e:n.y=i===a.Down?r.scrollTop-f.y:r.scrollTop-h.y,n.y&&r.scrollBy({top:-n.y,behavior:o});break}}this.handleMove(e,(0,y.WQ)((0,y.Re)(d,this.referenceCoordinates),n))}}}handleMove(e,t){let{onMove:r}=this.props;e.preventDefault(),r(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function ef(e){return!!(e&&"distance"in e)}function eh(e){return!!(e&&"delay"in e)}ed.activators=[{eventName:"onKeyDown",handler:(e,t,r)=>{let{keyboardCodes:n=eu,onActivation:i}=t,{active:l}=r,{code:o}=e.nativeEvent;if(n.start.includes(o)){let t=l.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==i||i({event:e.nativeEvent}),!0)}return!1}}];class eg{constructor(e,t,r){var n;void 0===r&&(r=function(e){let{EventTarget:t}=(0,y.zk)(e);return e instanceof t?e:(0,y.TW)(e)}(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:i}=e,{target:l}=i;this.props=e,this.events=t,this.document=(0,y.TW)(l),this.documentListeners=new el(this.document),this.listeners=new el(r),this.windowListeners=new el((0,y.zk)(l)),this.initialCoordinates=null!=(n=(0,y.e_)(i))?n:P,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:r}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(o.Resize,this.handleCancel),this.windowListeners.add(o.DragStart,ea),this.windowListeners.add(o.VisibilityChange,this.handleCancel),this.windowListeners.add(o.ContextMenu,ea),this.documentListeners.add(o.Keydown,this.handleKeydown),t){if(null!=r&&r({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(eh(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(ef(t))return void this.handlePending(t)}
27this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:r,onPending:n}=this.props;n(r,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(o.Click,es,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(o.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;let{activated:r,initialCoordinates:n,props:i}=this,{onMove:l,options:{activationConstraint:o}}=i;if(!n)return;let a=null!=(t=(0,y.e_)(e))?t:P,s=(0,y.Re)(n,a);if(!r&&o){if(ef(o)){if(null!=o.tolerance&&eo(s,o.tolerance))return this.handleCancel();if(eo(s,o.distance))return this.handleStart()}return eh(o)&&eo(s,o.tolerance)?this.handleCancel():void this.handlePending(o,s)}e.cancelable&&e.preventDefault(),l(a)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===a.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}let ep={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class em extends eg{constructor(e){let{event:t}=e;super(e,ep,(0,y.TW)(t.target))}}em.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return!!r.isPrimary&&0===r.button&&(null==n||n({event:r}),!0)}}];let ey={move:{name:"mousemove"},end:{name:"mouseup"}};!function(e){e[e.RightClick=2]="RightClick"}(s||(s={}));class ev extends eg{constructor(e){super(e,ey,(0,y.TW)(e.event.target))}}ev.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t;return r.button!==s.RightClick&&(null==n||n({event:r}),!0)}}];let eb={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class e_ extends eg{constructor(e){super(e,eb)}static setup(){return window.addEventListener(eb.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(eb.move.name,e)};function e(){}}}e_.activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:r}=e,{onActivation:n}=t,{touches:i}=r;return!(i.length>1)&&(null==n||n({event:r}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(u||(u={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(c||(c={}));let ew={x:{[l.Backward]:!1,[l.Forward]:!1},y:{[l.Backward]:!1,[l.Forward]:!1}};!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(d||(d={})),(f||(f={})).Optimized="optimized";let ex=new Map;function eS(e,t){return(0,y.KG)(r=>e?r||("function"==typeof t?t(e):e):null,[t,e])}function eC(e){let{callback:t,disabled:r}=e,n=(0,y._q)(t),i=(0,p.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.ResizeObserver)return;let{ResizeObserver:e}=window;return new e(n)},[r]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}function ek(e){return new ei(W(e),e)}function eT(e,t,r){void 0===t&&(t=ek);let[n,i]=(0,p.useState)(null);function l(){i(n=>{if(!e)return null;if(!1===e.isConnected){var i;return null!=(i=null!=n?n:r)?i:null}let l=t(e);return JSON.stringify(n)===JSON.stringify(l)?n:l})}let o=function(e){let{callback:t,disabled:r}=e,n=(0,y._q)(t),i=(0,p.useMemo)(()=>{if(r||"undefined"==typeof window||void 0===window.MutationObserver)return;let{MutationObserver:e}=window;return new e(n)},[n,r]);return(0,p.useEffect)(()=>()=>null==i?void 0:i.disconnect(),[i]),i}({callback(t){if(e)for(let r of t){let{type:t,target:n}=r;if("childList"===t&&n instanceof HTMLElement&&n.contains(e)){l();break}}}}),a=eC({callback:l});return(0,y.Es)(()=>{l(),e?(null==a||a.observe(e),null==o||o.observe(document.body,{childList:!0,subtree:!0})):(null==a||a.disconnect(),null==o||o.disconnect())},[e]),n}let eN=[];function eE(e,t){void 0===t&&(t=[]);let r=(0,p.useRef)(null);return(0,p.useEffect)(()=>{r.current=null},t),(0,p.useEffect)(()=>{let t=e!==P;t&&!r.current&&(r.current=e),!t&&r.current&&(r.current=null)},[e]),r.current?(0,y.Re)(e,r.current):P}function eP(e){return(0,p.useMemo)(()=>
27e?function(e){let t=e.innerWidth,r=e.innerHeight;return{top:0,left:0,right:t,bottom:r,width:t,height:r}}(e):null,[e])}let eO=[];function e$(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return(0,y.sb)(t)?t:e}let eA=[{sensor:em,options:{}},{sensor:ed,options:{}}],eM={current:{}},ej={draggable:{measure:J},droppable:{measure:J,strategy:d.WhileDragging,frequency:f.Optimized},dragOverlay:{measure:W}};class eD extends Map{get(e){var t;return null!=e&&null!=(t=super.get(e))?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){var t,r;return null!=(t=null==(r=this.get(e))?void 0:r.node.current)?t:void 0}}let eI={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new eD,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:T},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:ej,measureDroppableContainers:T,windowRect:null,measuringScheduled:!1},eF={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:T,draggableNodes:new Map,over:null,measureDroppableContainers:T},eR=(0,p.createContext)(eF),eL=(0,p.createContext)(eI);function eB(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new eD}}}function ez(e,t){switch(t.type){case i.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case i.DragMove:if(null==e.draggable.active)return e;return{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case i.DragEnd:case i.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case i.RegisterDroppable:{let{element:r}=t,{id:n}=r,i=new eD(e.droppable.containers);return i.set(n,r),{...e,droppable:{...e.droppable,containers:i}}}case i.SetDroppableDisabled:{let{id:r,key:n,disabled:i}=t,l=e.droppable.containers.get(r);if(!l||n!==l.key)return e;let o=new eD(e.droppable.containers);return o.set(r,{...l,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case i.UnregisterDroppable:{let{id:r,key:n}=t,i=e.droppable.containers.get(r);if(!i||n!==i.key)return e;let l=new eD(e.droppable.containers);return l.delete(r),{...e,droppable:{...e.droppable,containers:l}}}default:return e}}function eK(e){let{disabled:t}=e,{active:r,activatorEvent:n,draggableNodes:i}=(0,p.useContext)(eR),l=(0,y.ZC)(n),o=(0,y.ZC)(null==r?void 0:r.id);return(0,p.useEffect)(()=>{if(!t&&!n&&l&&null!=o){if(!(0,y.kx)(l)||document.activeElement===l.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:r}=e;(t.current||r.current)&&requestAnimationFrame(()=>{for(let e of[t.current,r.current]){if(!e)continue;let t=(0,y.ag)(e);if(t){t.focus();break}}})}},[n,t,i,o,l]),null}function eU(e,t){let{transform:r,...n}=t;return null!=e&&e.length?e.reduce((e,t)=>t({transform:e,...n}),r):r}let eW=(0,p.createContext)({...P,scaleX:1,scaleY:1});!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(h||(h={}));let eJ=(0,p.memo)(function(e){var t,r,n,o,a,s;let{id:f,accessibility:v,autoScroll:b=!0,children:_,sensors:x=eA,collisionDetection:S=R,measuring:C,modifiers:T,...N}=e,[E,O]=(0,p.useReducer)(ez,void 0,eB),[$,A]=function(){let[e]=(0,p.useState)(()=>new Set),t=(0,p.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,p.useCallback)(t=>{let{type:r,event:n}=t;e.forEach(e=>{var t;return null==(t=e[r])?void 0:t.call(e,n)})},[e]),t]}(),[M,D]=(0,p.useState)(h.Uninitialized),I=M===h.Initialized,{draggable:{active:F,nodes:L,translate:K},droppable:{containers:U}}=E,J=null!=F?L.get(F):null,G=(0,p.useRef)({initial:null,translated:null}),Y=(0,p.useMemo)(()=>{var e;return null!=F?{id:F,data:null!=(e=null==J?void 0:J.data)?e:eM,rect:G}:null},[F,J]),er=(0,p.useRef)(null),[en,el]=(0,p.useState)(null),[eo,ea]=(0,p.useState)(null),es=(0,y.YN)(N,Object.values(N)),eu=(0,y.YG)("DndDescribedBy",f),ec=(0,p.useMemo)(()=>U.getEnabled(),[U]),ed=(0,p.useMemo)(()=>({draggable:{...ej.draggable,...null==C?void 0:C.draggable},droppable:{...ej.droppable,...null==C?void 0:C.droppable},dragOverlay:{...ej.dragOverlay,...null==C?void 0:C.dragOverlay}}),[null==C?void 0:C.draggable,null==C?void 0:C.droppable,null==C?void 0:C.dragOverlay]),{droppableRects:ef,measureDroppableContainers:eh,measuringScheduled:eg}=function(e,t){let{dragging:r,dependencies:n,config:i}=t,[l,o]=(0,p.useState)(null),{frequency:a,measure:s,strategy:u}=i,c=(0,p.useRef)(e),f=function(){switch(u){case d.Always:return!1;case d.BeforeDragging:return r;default:return!r}}(),h=(0,y.YN)(f),m=(0,p.useCallback)(function(e){void 0===e&&(e=[]),h.current||o(t=>null===t?e:t.concat(e.filter(e=>!t.includes(e))))},[h]),v=(0,p.useRef)(null),b=(0,y.KG)(t=>{if(f&&!r)return ex;if(!t||t===ex||c.current!==e||null!=l){let t=new Map;for(let r of e){if(!r)continue;if(l&&l.length>0&&!l.includes(r.id)&&r.rect.current){t.set(r.id,r.rect.current);continue}let e=r.node.current,n=e?new ei(s(e),e):null;r.rect.current=n,n&&t.set(r.id,n)}return t}return t},[e,l,r,f,s]);return(0,p.useEffect)(()=>{c.current=e},[e]),(0,p.useEffect)(()=>{f||m()},[r,f]),(0,p.useEffect)(()=>{l&&l.length>0&&o(null)},[JSON.stringify(l)]),(0,p.useEffect)(()=>{f||"number"!=typeof a||null!==v.current||(v.current=setTimeout(()=>{m(),v.current=null},a))},[a,f,m,...n]),{droppableRects:b,measureDroppableContainers:m,measuringScheduled:null!=l}}(ec,{dragging:I,dependencies:[K.x,K.y],config:ed.droppable}),ep=function(e,t){let r=null!=t?e.get(t):void 0,n=r?r.node.current:null;return(0,y.KG)(e=>{var r;return null==t?null:null!=(r=null!=n?n:e)?r:null},[n,t])}(L,F),em=(0,p.useMemo)(()=>eo?(0,y.e_)(eo):null,[eo]),ey=function(){let e=(null==en?void 0:en.autoScrollEnabled)===!1,t="object"==typeof b?!1===b.enabled:!1===b,r=I&&!e&&!t;return"object"==typeof b?{...b,enabled:r}:{enabled:r}}(),ev=eS(ep,ed.draggable.measure);!function(e){let{activeNode:t,measure:r,initialRect:n,config:i=!0}=e,l=(0,p.useRef)(!1),{x:o,y:a}="boolean"==typeof i?{x:i,y:i}:i;(0,y.Es)(()=>
27{if(!o&&!a||!t){l.current=!1;return}if(l.current||!n)return;let e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;let i=B(r(e),n);if(o||(i.x=0),a||(i.y=0),l.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=V(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,a,n,r])}({activeNode:null!=F?L.get(F):null,config:ey.layoutShiftCompensation,initialRect:ev,measure:ed.draggable.measure});let eb=eT(ep,ed.draggable.measure,ev),e_=eT(ep?ep.parentElement:null),ek=(0,p.useRef)({activatorEvent:null,active:null,activeNode:ep,collisionRect:null,collisions:null,droppableRects:ef,draggableNodes:L,draggingNode:null,draggingNodeRect:null,droppableContainers:U,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),eD=U.getNodeFor(null==(t=ek.current.over)?void 0:t.id),eI=function(e){let{measure:t}=e,[r,n]=(0,p.useState)(null),i=eC({callback:(0,p.useCallback)(e=>{for(let{target:r}of e)if((0,y.sb)(r)){n(e=>{let n=t(r);return e?{...e,width:n.width,height:n.height}:n});break}},[t])}),l=(0,p.useCallback)(e=>{let r=e$(e);null==i||i.disconnect(),r&&(null==i||i.observe(r)),n(r?t(r):null)},[t,i]),[o,a]=(0,y.lk)(l);return(0,p.useMemo)(()=>({nodeRef:o,rect:r,setRef:a}),[r,o,a])}({measure:ed.dragOverlay.measure}),eF=null!=(r=eI.nodeRef.current)?r:ep,eJ=I?null!=(n=eI.rect)?n:eb:null,eq=!!(eI.nodeRef.current&&eI.rect),eV=function(e){let t=eS(e);return B(e,t)}(eq?null:eb),eH=eP(eF?(0,y.zk)(eF):null),eG=function(e){let t=(0,p.useRef)(e),r=(0,y.KG)(r=>e?r&&r!==eN&&e&&t.current&&e.parentNode===t.current.parentNode?r:q(e):eN,[e]);return(0,p.useEffect)(()=>{t.current=e},[e]),r}(I?null!=eD?eD:ep:null),eY=function(e,t){void 0===t&&(t=W);let[r]=e,n=eP(r?(0,y.zk)(r):null),[i,l]=(0,p.useState)(eO);function o(){l(()=>e.length?e.map(e=>X(e)?n:new ei(t(e),e)):eO)}let a=eC({callback:o});return(0,y.Es)(()=>{null==a||a.disconnect(),o(),e.forEach(e=>null==a?void 0:a.observe(e))},[e]),i}(eG),eZ=eU(T,{transform:{x:K.x-eV.x,y:K.y-eV.y,scaleX:1,scaleY:1},activatorEvent:eo,active:Y,activeNodeRect:eb,containerNodeRect:e_,draggingNodeRect:eJ,over:ek.current.over,overlayNodeRect:eI.rect,scrollableAncestors:eG,scrollableAncestorRects:eY,windowRect:eH}),eX=em?(0,y.WQ)(em,K):null,eQ=function(e){let[t,r]=(0,p.useState)(null),n=(0,p.useRef)(e),i=(0,p.useCallback)(e=>{let t=H(e.target);t&&r(e=>e?(e.set(t,Z(t)),new Map(e)):null)},[]);return(0,p.useEffect)(()=>{let t=n.current;if(e!==t){l(t);let o=e.map(e=>{let t=H(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,Z(t)]):null}).filter(e=>null!=e);r(o.length?new Map(o):null),n.current=e}return()=>{l(e),l(t)};function l(e){e.forEach(e=>{let t=H(e);null==t||t.removeEventListener("scroll",i)})}},[i,e]),(0,p.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>(0,y.WQ)(e,t),P):et(e):P,[e,t])}(eG),e0=eE(eQ),e1=eE(eQ,[eb]),e2=(0,y.WQ)(eZ,e0),e3=eJ?z(eJ,eZ):null,e5=Y&&e3?S({active:Y,collisionRect:e3,droppableRects:ef,droppableContainers:ec,pointerCoordinates:eX}):null,e4=j(e5,"id"),[e7,e9]=(0,p.useState)(null),e6=(a=eq?eZ:(0,y.WQ)(eZ,e1),s=null!=(o=null==e7?void 0:e7.rect)?o:null,{...a,scaleX:s&&eb?s.width/eb.width:1,scaleY:s&&eb?s.height/eb.height:1}),e8=(0,p.useRef)(null),te=(0,p.useCallback)((e,t)=>{let{sensor:r,options:n}=t;if(null==er.current)return;let l=L.get(er.current);if(!l)return;let o=e.nativeEvent,a=new r({active:er.current,activeNode:l,event:o,options:n,context:ek,onAbort(e){if(!L.get(e))return;let{onDragAbort:t}=es.current,r={id:e};null==t||t(r),$({type:"onDragAbort",event:r})},onPending(e,t,r,n){if(!L.get(e))return;let{onDragPending:i}=es.current,l={id:e,constraint:t,initialCoordinates:r,offset:n};null==i||i(l),$({type:"onDragPending",event:l})},onStart(e){let t=er.current;if(null==t)return;let r=L.get(t);if(!r)return;let{onDragStart:n}=es.current,l={activatorEvent:o,active:{id:t,data:r.data,rect:G}};(0,m.unstable_batchedUpdates)(()=>{null==n||n(l),D(h.Initializing),O({type:i.DragStart,initialCoordinates:e,active:t}),$({type:"onDragStart",event:l}),el(e8.current),ea(o)})},onMove(e){O({type:i.DragMove,coordinates:e})},onEnd:s(i.DragEnd),onCancel:s(i.DragCancel)});function s(e){return async function(){let{active:t,collisions:r,over:n,scrollAdjustedTranslate:l}=ek.current,a=null;if(t&&l){let{cancelDrop:s}=es.current;a={activatorEvent:o,active:t,collisions:r,delta:l,over:n},e===i.DragEnd&&"function"==typeof s&&await Promise.resolve(s(a))&&(e=i.DragCancel)}er.current=null,(0,m.unstable_batchedUpdates)(()=>{O({type:e}
27),D(h.Uninitialized),e9(null),el(null),ea(null),e8.current=null;let t=e===i.DragEnd?"onDragEnd":"onDragCancel";if(a){let e=es.current[t];null==e||e(a),$({type:t,event:a})}})}}e8.current=a},[L]),tt=(0,p.useCallback)((e,t)=>(r,n)=>{let i=r.nativeEvent,l=L.get(n);null!==er.current||!l||i.dndKit||i.defaultPrevented||!0===e(r,t.options,{active:l})&&(i.dndKit={capturedBy:t.sensor},er.current=n,te(r,t))},[L,te]),tr=(0,p.useMemo)(()=>x.reduce((e,t)=>{let{sensor:r}=t;return[...e,...r.activators.map(e=>({eventName:e.eventName,handler:tt(e.handler,t)}))]},[]),[x,tt]);(0,p.useEffect)(()=>{if(!y.Sw)return;let e=x.map(e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()});return()=>{for(let t of e)null==t||t()}},x.map(e=>{let{sensor:t}=e;return t})),(0,y.Es)(()=>{eb&&M===h.Initializing&&D(h.Initialized)},[eb,M]),(0,p.useEffect)(()=>{let{onDragMove:e}=es.current,{active:t,activatorEvent:r,collisions:n,over:i}=ek.current;if(!t||!r)return;let l={active:t,activatorEvent:r,collisions:n,delta:{x:e2.x,y:e2.y},over:i};(0,m.unstable_batchedUpdates)(()=>{null==e||e(l),$({type:"onDragMove",event:l})})},[e2.x,e2.y]),(0,p.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:r,droppableContainers:n,scrollAdjustedTranslate:i}=ek.current;if(!e||null==er.current||!t||!i)return;let{onDragOver:l}=es.current,o=n.get(e4),a=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,s={active:e,activatorEvent:t,collisions:r,delta:{x:i.x,y:i.y},over:a};(0,m.unstable_batchedUpdates)(()=>{e9(a),null==l||l(s),$({type:"onDragOver",event:s})})},[e4]),(0,y.Es)(()=>{ek.current={activatorEvent:eo,active:Y,activeNode:ep,collisionRect:e3,collisions:e5,droppableRects:ef,draggableNodes:L,draggingNode:eF,draggingNodeRect:eJ,droppableContainers:U,over:e7,scrollableAncestors:eG,scrollAdjustedTranslate:e2},G.current={initial:eJ,translated:e3}},[Y,ep,e5,e3,L,eF,eJ,ef,U,e7,eG,e2]),function(e){let{acceleration:t,activator:r=u.Pointer,canScroll:n,draggingRect:i,enabled:o,interval:a=5,order:s=c.TreeOrder,pointerCoordinates:d,scrollableAncestors:f,scrollableAncestorRects:h,delta:m,threshold:v}=e,b=function(e){let{delta:t,disabled:r}=e,n=(0,y.ZC)(t);return(0,y.KG)(e=>{if(r||!n||!e)return ew;let i={x:Math.sign(t.x-n.x),y:Math.sign(t.y-n.y)};return{x:{[l.Backward]:e.x[l.Backward]||-1===i.x,[l.Forward]:e.x[l.Forward]||1===i.x},y:{[l.Backward]:e.y[l.Backward]||-1===i.y,[l.Forward]:e.y[l.Forward]||1===i.y}}},[r,t,n])}({delta:m,disabled:!o}),[_,w]=(0,y.$$)(),x=(0,p.useRef)({x:0,y:0}),S=(0,p.useRef)({x:0,y:0}),C=(0,p.useMemo)(()=>{switch(r){case u.Pointer:return d?{top:d.y,bottom:d.y,left:d.x,right:d.x}:null;case u.DraggableRect:return i}},[r,i,d]),k=(0,p.useRef)(null),T=(0,p.useCallback)(()=>{let e=k.current;if(!e)return;let t=x.current.x*S.current.x,r=x.current.y*S.current.y;e.scrollBy(t,r)},[]),N=(0,p.useMemo)(()=>s===c.TreeOrder?[...f].reverse():f,[s,f]);(0,p.useEffect)(()=>{if(!o||!f.length||!C)return void w();for(let e of N){if((null==n?void 0:n(e))===!1)continue;let r=h[f.indexOf(e)];if(!r)continue;let{direction:i,speed:o}=function(e,t,r,n,i){let{top:o,left:a,right:s,bottom:u}=r;void 0===n&&(n=10),void 0===i&&(i=ee);let{isTop:c,isBottom:d,isLeft:f,isRight:h}=Q(e),p={x:0,y:0},m={x:0,y:0},y={height:t.height*i.y,width:t.width*i.x};return!c&&o<=t.top+y.height?(p.y=l.Backward,m.y=n*Math.abs((t.top+y.height-o)/y.height)):!d&&u>=t.bottom-y.height&&(p.y=l.Forward,m.y=n*Math.abs((t.bottom-y.height-u)/y.height)),!h&&s>=t.right-y.width?(p.x=l.Forward,m.x=n*Math.abs((t.right-y.width-s)/y.width)):!f&&a<=t.left+y.width&&(p.x=l.Backward,m.x=n*Math.abs((t.left+y.width-a)/y.width)),{direction:p,speed:m}}(e,r,C,t,v);for(let e of["x","y"])b[e][i[e]]||(o[e]=0,i[e]=0);if(o.x>0||o.y>0){w(),k.current=e,_(T,a),x.current=o,S.current=i;return}}x.current={x:0,y:0},S.current={x:0,y:0},w()},[t,T,n,w,o,a,JSON.stringify(C),JSON.stringify(b),_,f,N,h,JSON.stringify(v)])}({...ey,delta:K,draggingRect:e3,pointerCoordinates:eX,scrollableAncestors:eG,scrollableAncestorRects:eY});let tn=(0,p.useMemo)(()=>({active:Y,activeNode:ep,activeNodeRect:eb,activatorEvent:eo,collisions:e5,containerNodeRect:e_,dragOverlay:eI,draggableNodes:L,droppableContainers:U,droppableRects:ef,over:e7,measureDroppableContainers:eh,scrollableAncestors:eG,scrollableAncestorRects:eY,measuringConfiguration:ed,measuringScheduled:eg,windowRect:eH}),[Y,ep,eb,eo,e5,e_,eI,L,U,ef,e7,eh,eG,eY,ed,eg,eH]),ti=(0,p.useMemo)(()=>({activatorEvent:eo,activators:tr,active:Y,activeNodeRect:eb,ariaDescribedById:{draggable:eu},dispatch:O,draggableNodes:L,over:e7,measureDroppableContainers:eh}),[eo,tr,Y,eb,O,eu,L,e7,eh]);return p.createElement(w.Provider,{value:A},p.createElement(eR.Provider,{value:ti},p.createElement(eL.Provider,{value:tn},p.createElement(eW.Provider,{value:e6},_)),p.createElement(eK,{disabled:(null==v?void 0:v.restoreFocus)===!1})),p.createElement(k,{...v,hiddenTextDescribedById:eu}))}),eq=(0,p.createContext)(null),eV="button";function eH(e){let{id:t,data:r,disabled:n=!1,attributes:i}=e,l=(0,y.YG)("Draggable"),{activators:o,activatorEvent:a,active:s,activeNodeRect:u,ariaDescribedById:c,draggableNodes:d,over:f}=(0,p.useContext)(eR),{role:h=eV,roleDescription:m="draggable",tabIndex:v=0}=null!=i?i:{},b=(null==s?void 0:s.id)===t,_=(0,p.useContext)(b?eW:eq),[w,x]=(0,y.lk)(),[S,C]=(0,y.lk)(),k=(0,p.useMemo)(()=>o.reduce((e,r)=>{let{eventName:n,handler:i}=r;return e[n]=e=>{i(e,t)},e},{}),[o,t]),T=(0,y.YN)(r);return(0,y.Es)(()=>(d.set(t,{id:t,key:l,node:w,activatorNode:S,data:T}),()=>{let e=d.get(t);e&&e.key===l&&d.delete(t)}),[d,t]),{active:s,activatorEvent:a,activeNodeRect:u,attributes:(0,p.useMemo)(()=>({role:h,tabIndex:v,"aria-disabled":n,"aria-pressed":!!b&&h===eV||void 0,"aria-roledescription":m,"aria-describedby":c.draggable}),[n,h,v,b,m,c.draggable]),isDragging:b,listeners:n?void 0:k,node:w,over:f,setNodeRef:x,setActivatorNodeRef:C,transform:_}}function eG(){return(0,p.useContext)(eL)}let eY={timeout:25};function eZ(e){let{data:t,disabled:r=!1,id:n,resizeObserverConfig:l}=e,o=(0,y.YG)("Droppable"),{active:a,dispatch:s,over:u,measureDroppableContainers:c}=(0,p.useContext)(eR),d=(0,p.useRef)({disabled:r}),f=(0,p.useRef)(!1),h=(0,p.useRef)(null),m=(0,p.useRef)(null),{disabled:v,updateMeasurementsFor:b,timeout:_}={...eY,...l},w=(0,y.YN)(null!=b?b:n),x=eC({callback:(0,p.useCallback)(()=>
27{if(!f.current){f.current=!0;return}null!=m.current&&clearTimeout(m.current),m.current=setTimeout(()=>{c(Array.isArray(w.current)?w.current:[w.current]),m.current=null},_)},[_]),disabled:v||!a}),S=(0,p.useCallback)((e,t)=>{x&&(t&&(x.unobserve(t),f.current=!1),e&&x.observe(e))},[x]),[C,k]=(0,y.lk)(S),T=(0,y.YN)(t);return(0,p.useEffect)(()=>{x&&C.current&&(x.disconnect(),f.current=!1,x.observe(C.current))},[C,x]),(0,p.useEffect)(()=>(s({type:i.RegisterDroppable,element:{id:n,key:o,disabled:r,node:C,rect:h,data:T}}),()=>s({type:i.UnregisterDroppable,key:o,id:n})),[n]),(0,p.useEffect)(()=>{r!==d.current.disabled&&(s({type:i.SetDroppableDisabled,id:n,key:o,disabled:r}),d.current.disabled=r)},[n,o,r,s]),{active:a,rect:h,isOver:(null==u?void 0:u.id)===n,node:C,over:u,setNodeRef:k}}function eX(e){let{animation:t,children:r}=e,[n,i]=(0,p.useState)(null),[l,o]=(0,p.useState)(null),a=(0,y.ZC)(r);return r||n||!a||i(a),(0,y.Es)(()=>{if(!l)return;let e=null==n?void 0:n.key,r=null==n?void 0:n.props.id;if(null==e||null==r)return void i(null);Promise.resolve(t(r,l)).then(()=>{i(null)})},[t,n,l]),p.createElement(p.Fragment,null,r,n?(0,p.cloneElement)(n,{ref:o}):null)}let eQ={x:0,y:0,scaleX:1,scaleY:1};function e0(e){let{children:t}=e;return p.createElement(eR.Provider,{value:eF},p.createElement(eW.Provider,{value:eQ},t))}let e1={position:"fixed",touchAction:"none"},e2=e=>(0,y.kx)(e)?"transform 250ms ease":void 0,e3=(0,p.forwardRef)((e,t)=>{let{as:r,activatorEvent:n,adjustScale:i,children:l,className:o,rect:a,style:s,transform:u,transition:c=e2}=e;if(!a)return null;let d=i?u:{...u,scaleX:1,scaleY:1},f={...e1,width:a.width,height:a.height,top:a.top,left:a.left,transform:y.Ks.Transform.toString(d),transformOrigin:i&&n?function(e,t){let r=(0,y.e_)(e);if(!r)return"0 0";let n={x:(r.x-t.left)/t.width*100,y:(r.y-t.top)/t.height*100};return n.x+"% "+n.y+"%"}(n,a):void 0,transition:"function"==typeof c?c(n):c,...s};return p.createElement(r,{className:o,style:f,ref:t},l)}),e5={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:r}}=e;return[{transform:y.Ks.Transform.toString(t)},{transform:y.Ks.Transform.toString(r)}]},sideEffects:(n={styles:{active:{opacity:"0"}}},e=>{let{active:t,dragOverlay:r}=e,i={},{styles:l,className:o}=n;if(null!=l&&l.active)for(let[e,r]of Object.entries(l.active))void 0!==r&&(i[e]=t.node.style.getPropertyValue(e),t.node.style.setProperty(e,r));if(null!=l&&l.dragOverlay)for(let[e,t]of Object.entries(l.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=o&&o.active&&t.node.classList.add(o.active),null!=o&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(let[e,r]of Object.entries(i))t.node.style.setProperty(e,r);null!=o&&o.active&&t.node.classList.remove(o.active)}})},e4=0,e7=p.memo(e=>
27{let{adjustScale:t=!1,children:r,dropAnimation:n,style:i,transition:l,modifiers:o,wrapperElement:a="div",className:s,zIndex:u=999}=e,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggableNodes:m,droppableContainers:v,dragOverlay:b,over:_,measuringConfiguration:w,scrollableAncestors:x,scrollableAncestorRects:S,windowRect:C}=eG(),k=(0,p.useContext)(eW),T=function(e){return(0,p.useMemo)(()=>{if(null!=e)return++e4},[e])}(null==d?void 0:d.id),N=eU(o,{activatorEvent:c,active:d,activeNodeRect:f,containerNodeRect:h,draggingNodeRect:b.rect,over:_,overlayNodeRect:b.rect,scrollableAncestors:x,scrollableAncestorRects:S,transform:k,windowRect:C}),E=eS(f),P=function(e){let{config:t,draggableNodes:r,droppableContainers:n,measuringConfiguration:i}=e;return(0,y._q)((e,l)=>{if(null===t)return;let o=r.get(e);if(!o)return;let a=o.node.current;if(!a)return;let s=e$(l);if(!s)return;let{transform:u}=(0,y.zk)(l).getComputedStyle(l),c=K(u);if(!c)return;let d="function"==typeof t?t:function(e){let{duration:t,easing:r,sideEffects:n,keyframes:i}={...e5,...e};return e=>{let{active:l,dragOverlay:o,transform:a,...s}=e;if(!t)return;let u={x:o.rect.left-l.rect.left,y:o.rect.top-l.rect.top},c={scaleX:1!==a.scaleX?l.rect.width*a.scaleX/o.rect.width:1,scaleY:1!==a.scaleY?l.rect.height*a.scaleY/o.rect.height:1},d={x:a.x-u.x,y:a.y-u.y,...c},f=i({...s,active:l,dragOverlay:o,transform:{initial:a,final:d}}),[h]=f,p=f[f.length-1];if(JSON.stringify(h)===JSON.stringify(p))return;let m=null==n?void 0:n({active:l,dragOverlay:o,...s}),y=o.node.animate(f,{duration:t,easing:r,fill:"forwards"});return new Promise(e=>{y.onfinish=()=>{null==m||m(),e()}})}}(t);return er(a,i.draggable.measure),d({active:{id:e,data:o.data,node:a,rect:i.draggable.measure(a)},draggableNodes:r,dragOverlay:{node:l,rect:i.dragOverlay.measure(s)},droppableContainers:n,measuringConfiguration:i,transform:c})})}({config:n,draggableNodes:m,droppableContainers:v,measuringConfiguration:w}),O=E?b.setRef:void 0;return p.createElement(e0,null,p.createElement(eX,{animation:P},d&&T?p.createElement(e3,{key:T,id:d.id,ref:O,as:a,activatorEvent:c,adjustScale:t,className:s,transition:l,rect:E,style:{zIndex:u,...i},transform:N},r):null))})},76931:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(73274);t.default={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){void 0===t.if&&(0,n.checkStrictMode)(r,`"${e}" without "if" is ignored`)}}},77912:(e,t,r)=>{"use strict";r.d(t,{VersionsViewClient:()=>u});var n=r(19749),i=r(95155),l=r(92825),o=r(63344),a=r(35695),s=r(12115);let u=e=>{let t,r,u=(0,n.c)(13),{baseClass:c,columns:d,paginationLimits:f}=e,{data:h,handlePageChange:p,handlePerPageChange:m}=(0,l.useListQuery)(),y=(0,a.useSearchParams)();u[0]!==y?(t=y.get("limit"),u[0]=y,u[1]=t):t=u[1];let v=t,{i18n:b}=(0,o.d)(),_=(null==h?void 0:h.totalDocs)||0,w=!h;return u[2]!==c||u[3]!==d||u[4]!==h||u[5]!==p||u[6]!==m||u[7]!==b||u[8]!==v||u[9]!==f||u[10]!==w||u[11]!==_?(r=(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(l.LoadingOverlayToggle,{name:"versions",show:w}),0===_&&(0,i.jsx)("div",{className:"".concat(c,"__no-versions"),children:b.t("version:noFurtherVersionsFound")}),_>0&&(0,i.jsxs)(s.Fragment,{children:[(0,i.jsx)(l.Table,{columns:d,data:null==h?void 0:h.docs}),(0,i.jsxs)("div",{className:"".concat(c,"__page-controls"),children:[(0,i.jsx)(l.Pagination,{hasNextPage:h.hasNextPage,hasPrevPage:h.hasPrevPage,limit:h.limit,nextPage:h.nextPage,numberOfNeighbors:1,onChange:p,page:h.page,prevPage:h.prevPage,totalPages:h.totalPages}),(null==h?void 0:h.totalDocs)>0&&(0,i.jsxs)(s.Fragment,{children:[(0,i.jsxs)("div",{className:"".concat(c,"__page-info"),children:[h.page*h.limit-(h.limit-1),"-",h.totalPages>1&&h.totalPages!==h.page?h.limit*h.page:h.totalDocs," ",b.t("general:of")," ",h.totalDocs]}),(0,i.jsx)(l.PerPage,{handleChange:m,limit:v?Number(v):10,limits:f})]})]})]})]}),u[2]=c,u[3]=d,u[4]=h,u[5]=p,u[6]=m,u[7]=b,u[8]=v,u[9]=f,u[10]=w,u[11]=_,u[12]=r):r=u[12],r}},78201:()=>{},78234:(e,t,r)=>{"use strict";r.d(t,{ck:()=>ee,eS:()=>z,Yq:()=>Q,wN:()=>K,FR:()=>F,qg:()=>B,zG:()=>U}),r(95155),r(12115);
27var n=r(46205),i=r(7239),l=r(83039),o=r(95490),a=r(89447);function s(e){let t=(0,a.a)(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),e-r}var u=r(61183),c=r(25703);function d(e,t){let r=(0,a.a)(e,null==t?void 0:t.in);return r.setHours(0,0,0,0),r}var f=r(84423);function h(e,t){return(0,f.k)(e,{...t,weekStartsOn:1})}function p(e,t){let r=(0,a.a)(e,null==t?void 0:t.in),n=r.getFullYear(),l=(0,i.w)(r,0);l.setFullYear(n+1,0,4),l.setHours(0,0,0,0);let o=h(l),s=(0,i.w)(r,0);s.setFullYear(n,0,4),s.setHours(0,0,0,0);let u=h(s);return r.getTime()>=o.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function m(e,t){var r,n,l,s,u,c,d,h;let p=(0,a.a)(e,null==t?void 0:t.in),m=p.getFullYear(),y=(0,o.q)(),v=null!=(h=null!=(d=null!=(c=null!=(u=null==t?void 0:t.firstWeekContainsDate)?u:null==t||null==(n=t.locale)||null==(r=n.options)?void 0:r.firstWeekContainsDate)?c:y.firstWeekContainsDate)?d:null==(s=y.locale)||null==(l=s.options)?void 0:l.firstWeekContainsDate)?h:1,b=(0,i.w)((null==t?void 0:t.in)||e,0);b.setFullYear(m+1,0,v),b.setHours(0,0,0,0);let _=(0,f.k)(b,t),w=(0,i.w)((null==t?void 0:t.in)||e,0);w.setFullYear(m,0,v),w.setHours(0,0,0,0);let x=(0,f.k)(w,t);return+p>=+_?m+1:+p>=+x?m:m-1}function y(e,t){let r=Math.abs(e).toString().padStart(t,"0");return(e<0?"-":"")+r}let v={y(e,t){let r=e.getFullYear(),n=r>0?r:1-r;return y("yy"===t?n%100:n,t.length)},M(e,t){let r=e.getMonth();return"M"===t?String(r+1):y(r+1,2)},d:(e,t)=>y(e.getDate(),t.length),a(e,t){let r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>y(e.getHours()%12||12,t.length),H:(e,t)=>y(e.getHours(),t.length),m:(e,t)=>y(e.getMinutes(),t.length),s:(e,t)=>y(e.getSeconds(),t.length),S(e,t){let r=t.length;return y(Math.trunc(e.getMilliseconds()*Math.pow(10,r-3)),t.length)}},b={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},_={G:function(e,t,r){let n=+(e.getFullYear()>0);switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){let t=e.getFullYear();return r.ordinalNumber(t>0?t:1-t,{unit:"year"})}return v.y(e,t)},Y:function(e,t,r,n){let i=m(e,n),l=i>0?i:1-i;return"YY"===t?y(l%100,2):"Yo"===t?r.ordinalNumber(l,{unit:"year"}):y(l,t.length)},R:function(e,t){return y(p(e),t.length)},u:function(e,t){return y(e.getFullYear(),t.length)},Q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return y(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){let n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return y(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){let n=e.getMonth();switch(t){case"M":case"MM":return v.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){let n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return y(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){let l=function(e,t){let r=(0,a.a)(e,null==t?void 0:t.in);return Math.round(((0,f.k)(r,t)-function(e,t){var r,n,l,a,s,u,c,d;let h=(0,o.q)(),p=null!=(d=null!=(c=null!=(u=null!=(s=null==t?void 0:t.firstWeekContainsDate)?s:null==t||null==(n=t.locale)||null==(r=n.options)?void 0:r.firstWeekContainsDate)?u:h.firstWeekContainsDate)?c:null==(a=h.locale)||null==(l=a.options)?void 0:l.firstWeekContainsDate)?d:1,y=m(e,t),v=(0,i.w)((null==t?void 0:t.in)||e,0);return v.setFullYear(y,0,p),v.setHours(0,0,0,0),(0,f.k)(v,t)}(r,t))/c.my)+1}(e,n);return"wo"===t?r.ordinalNumber(l,{unit:"week"}):y(l,t.length)},I:function(e,t,r){let n=function(e,t){let r=(0,a.a)(e,void 0);return Math.round((h(r)-function(e,t){let r=p(e,void 0),n=(0,i.w)(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),h(n)}(r))/c.my)+1}(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):y(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):v.d(e,t)},D:function(e,t,r){let n=function(e,t){let r=(0,a.a)(e,void 0);return function(e,t,r){let[n,i]=(0,u.x)(void 0,e,t),l=d(n),o=d(i);return Math.round((l-s(l)-(o-s(o)))/c.w4)}(r,function(e,t){let r=(0,a.a)(e,void 0);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):y(n,t.length)},E:function(e,t,r){let n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){let i=e.getDay(),l=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return y(l,2);case"eo":return r.ordinalNumber(l,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){let i=e.getDay(),l=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return y(l,t.length);case"co":return r.ordinalNumber(l,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){let n=e.getDay(),i=0===n?7:n;switch(t){case"i":return String(i);case"ii":return y(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){let n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){let n,i=e.getHours();switch(n=12===i?b.noon:0===i?b.midnight:i/12>
27=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){let n,i=e.getHours();switch(n=i>=17?b.evening:i>=12?b.afternoon:i>=4?b.morning:b.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return v.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):v.H(e,t)},K:function(e,t,r){let n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):y(n,t.length)},k:function(e,t,r){let n=e.getHours();return(0===n&&(n=24),"ko"===t)?r.ordinalNumber(n,{unit:"hour"}):y(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):v.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):v.s(e,t)},S:function(e,t){return v.S(e,t)},X:function(e,t,r){let n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return x(n);case"XXXX":case"XX":return S(n);default:return S(n,":")}},x:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"x":return x(n);case"xxxx":case"xx":return S(n);default:return S(n,":")}},O:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+w(n,":");default:return"GMT"+S(n,":")}},z:function(e,t,r){let n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+w(n,":");default:return"GMT"+S(n,":")}},t:function(e,t,r){return y(Math.trunc(e/1e3),t.length)},T:function(e,t,r){return y(+e,t.length)}};function w(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),l=n%60;return 0===l?r+String(i):r+String(i)+t+y(l,2)}function x(e,t){return e%60==0?(e>0?"-":"+")+y(Math.abs(e)/60,2):S(e,t)}function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=Math.abs(e);return(e>0?"-":"+")+y(Math.trunc(r/60),2)+t+y(r%60,2)}let C=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},k=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},T={p:k,P:(e,t)=>{let r,n=e.match(/(P+)(p+)?/)||[],i=n[1],l=n[2];if(!l)return C(e,t);switch(i){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;default:r=t.dateTime({width:"full"})}return r.replace("{{date}}",C(i,t)).replace("{{time}}",k(l,t))}},N=/^D+$/,E=/^Y+$/,P=["D","DD","YY","YYYY"],O=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,$=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,A=/^'([^]*?)'?$/,M=/''/g,j=/[a-zA-Z]/;function D(e,t,r){var n,i,s,u,c,d,f,h,p,m,y,v,b,w,x,S,C,k;let D=(0,o.q)(),I=null!=(m=null!=(p=null==r?void 0:r.locale)?p:D.locale)?m:l.enUS,F=null!=(w=null!=(b=null!=(v=null!=(y=null==r?void 0:r.firstWeekContainsDate)?y:null==r||null==(i=r.locale)||null==(n=i.options)?void 0:n.firstWeekContainsDate)?v:D.firstWeekContainsDate)?b:null==(u=D.locale)||null==(s=u.options)?void 0:s.firstWeekContainsDate)?w:1,R=null!=(k=null!=(C=null!=(S=null!=(x=null==r?void 0:r.weekStartsOn)?x:null==r||null==(d=r.locale)||null==(c=d.options)?void 0:c.weekStartsOn)?S:D.weekStartsOn)?C:null==(h=D.locale)||null==(f=h.options)?void 0:f.weekStartsOn)?k:0,L=(0,a.a)(e,null==r?void 0:r.in);if(!(L instanceof Date||"object"==typeof L&&"[object Date]"===Object.prototype.toString.call(L))&&"number"!=typeof L||isNaN(+(0,a.a)(L)))throw RangeError("Invalid time value");let B=t.match($).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,T[t])(e,I.formatLong):e}).join("").match(O).map(e=>{if("''"===e)return{isToken:!1,value:"'"};let t=e[0];if("'"===t)return{isToken:!1,value:function(e){let t=e.match(A);return t?t[1].replace(M,"'"):e}(e)};if(_[t])return{isToken:!0,value:e};
27if(t.match(j))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});I.localize.preprocessor&&(B=I.localize.preprocessor(L,B));let z={firstWeekContainsDate:F,weekStartsOn:R,locale:I};return B.map(n=>{if(!n.isToken)return n.value;let i=n.value;return(!(null==r?void 0:r.useAdditionalWeekYearTokens)&&E.test(i)||!(null==r?void 0:r.useAdditionalDayOfYearTokens)&&N.test(i))&&function(e,t,r){let n=function(e,t,r){let n="Y"===e[0]?"years":"days of the month";return"Use `".concat(e.toLowerCase(),"` instead of `").concat(e,"` (in `").concat(t,"`) for formatting ").concat(n," to the input `").concat(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md")}(e,t,r);if(console.warn(n),P.includes(e))throw RangeError(n)}(i,t,String(e)),(0,_[i[0]])(L,i,I.localize,z)}).join("")}var I=({elements:e,translationString:t})=>g("span",{children:t.split(/(<[^>]+>.*?<\/[^>]+>)/g).map((t,r)=>{if(e&&t.startsWith("<")&&t.endsWith(">")){let n=t[1],i=e[n];if(i){let e=RegExp(`<${n}>(.*?)</${n}>`,"g");return g(i,{children:g(I,{translationString:t.replace(e,(e,t)=>t)})},r)}}return t})}),F=e=>({...e?.admin?.style||{},...e?.admin?.width?{"--field-width":e.admin.width}:{flex:"1 1 auto"},...e?.admin?.style?.flex?{flex:e.admin.style.flex}:{}}),R=["validate","customComponents"],L=e=>{let t={...e};for(let e of R)delete t[e];return t},B=e=>{let t={};for(let r in e)t[r]=L(e[r]);return t};function z(e){if(e)try{e.abort()}catch{}}function K(e){let t=new AbortController;if(e.current)try{e.current.abort()}catch{}return e.current=t,t}var U={delete:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(e,{...t,credentials:"include",headers:{...r},method:"delete"})},get:(e,t={headers:{}})=>{let r="";return t.params&&(r=n.A(t.params,{addQueryPrefix:!0})),fetch(`${e}${r}`,{credentials:"include",...t})},patch:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(e,{...t,credentials:"include",headers:{...r},method:"PATCH"})},post:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(`${e}`,{...t,credentials:"include",headers:{...r},method:"post"})},put:(e,t={headers:{}})=>{let r=t&&t.headers?{...t.headers}:{};return fetch(e,{...t,credentials:"include",headers:{...r},method:"put"})}},W={},J={};function q(e,t){try{let r=(W[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return r in J?J[r]:H(r,r.split(":"))}catch{if(e in J)return J[e];let t=e?.match(V);return t?H(e,t.slice(1)):NaN}}var V=/([+-]\d\d):?(\d\d)?/;function H(e,t){let r=+t[0],n=+(t[1]||0);return J[e]=r>0?60*r+n:60*r-n}var G=class e extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(q(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),X(this,NaN),Z(this)):this.setTime(Date.now())}static tz(t,...r){return r.length?new e(...r,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){return-q(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),Z(this),+this}[Symbol.for("constructDateFrom")](t){return new e(+new Date(t),this.timeZone)}},Y=/^(get|set)(?!UTC)/;function Z(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function X(e){let t=q(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);let n=-new Date(+e).getTimezoneOffset(),i=n- -new Date(+r).getTimezoneOffset(),l=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();i&&l&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+i);let o=n-t;o&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+o);let a=q(e.timeZone,e),s=-new Date(+e).getTimezoneOffset()-a-o;if(a!==t&&s){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+s);let t=a-q(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}
27Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!Y.test(e))return;let t=e.replace(Y,"$1UTC");G.prototype[t]&&(e.startsWith("get")?G.prototype[e]=function(){return this.internal[t]()}:(G.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),X(e),+this},G.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),Z(this),+this}))});var Q=({date:e,i18n:t,pattern:r,timezone:n})=>{let l=new G(new Date(e));if(n){let e=G.tz(n),o=function(e,t){var r,n;let l="function"==typeof(r=t)&&(null==(n=r.prototype)?void 0:n.constructor)===r?new t(0):(0,i.w)(t,0);return l.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),l.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),l}(l.withTimeZone(n),e);return t.dateFNS?D(o,r,{locale:t.dateFNS}):`${t.t("general:loading")}...`}return t.dateFNS?D(l,r,{locale:t.dateFNS}):`${t.t("general:loading")}...`},ee=function(e){return e.collection="collections",e.global="globals",e}({})},78266:(e,t,r)=>{"use strict";r.d(t,{$$:()=>p,Es:()=>f,KG:()=>y,Ks:()=>N,Ll:()=>o,Re:()=>C,Sw:()=>i,TW:()=>d,WQ:()=>S,YG:()=>w,YN:()=>m,ZC:()=>b,_q:()=>h,ag:()=>P,e_:()=>T,kx:()=>k,l6:()=>l,lk:()=>v,sb:()=>u,wz:()=>s,xZ:()=>c,zk:()=>a});var n=r(12115);let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function l(e){let t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function o(e){return"nodeType"in e}function a(e){var t,r;return e?l(e)?e:o(e)&&null!=(t=null==(r=e.ownerDocument)?void 0:r.defaultView)?t:window:window}function s(e){let{Document:t}=a(e);return e instanceof t}function u(e){return!l(e)&&e instanceof a(e).HTMLElement}function c(e){return e instanceof a(e).SVGElement}function d(e){return e?l(e)?e.document:o(e)?s(e)?e:u(e)||c(e)?e.ownerDocument:document:document:document}let f=i?n.useLayoutEffect:n.useEffect;function h(e){let t=(0,n.useRef)(e);return f(()=>{t.current=e}),(0,n.useCallback)(function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}function p(){let e=(0,n.useRef)(null);return[(0,n.useCallback)((t,r)=>{e.current=setInterval(t,r)},[]),(0,n.useCallback)(()=>{null!==e.current&&(clearInterval(e.current),e.current=null)},[])]}function m(e,t){void 0===t&&(t=[e]);let r=(0,n.useRef)(e);return f(()=>{r.current!==e&&(r.current=e)},t),r}function y(e,t){let r=(0,n.useRef)();return(0,n.useMemo)(()=>{let t=e(r.current);return r.current=t,t},[...t])}function v(e){let t=h(e),r=(0,n.useRef)(null),i=(0,n.useCallback)(e=>{e!==r.current&&(null==t||t(e,r.current)),r.current=e},[]);return[r,i]}function b(e){let t=(0,n.useRef)();return(0,n.useEffect)(()=>{t.current=e},[e]),t.current}let _={};function w(e,t){return(0,n.useMemo)(()=>{if(t)return t;let r=null==_[e]?0:_[e]+1;return _[e]=r,e+"-"+r},[e,t])}function x(e){return function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return n.reduce((t,r)=>{for(let[n,i]of Object.entries(r)){let r=t[n];null!=r&&(t[n]=r+e*i)}return t},{...t})}}let S=x(1),C=x(-1);function k(e){if(!e)return!1;let{KeyboardEvent:t}=a(e.target);return t&&e instanceof t}function T(e){if(function(e){if(!e)return!1;let{TouchEvent:t}=a(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:r}=e.touches[0];return{x:t,y:r}}else if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:r}=e.changedTouches[0];return{x:t,y:r}}}return"clientX"in e&&"clientY"in e?{x:e.clientX,y:e.clientY}:null}let N=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:r}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:r}=e;return"scaleX("+t+") scaleY("+r+")"}},Transform:{toString(e){if(e)return[N.Translate.toString(e),N.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:r,easing:n}=e;return t+" "+r+"ms "+n}}}),E="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function P(e){return e.matches(E)?e:e.querySelector(E)}},78463:()=>{},78910:()=>{},79016:(e,t,r)=>{"use strict";
27Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;let n=r(79772),i=r(61974),l=r(81708),o=r(7525);function a(e){let{gen:t,data:r,it:i}=e;t.if(i.parentData,()=>t.assign(r,(0,n._)`${i.parentData}[${i.parentDataProperty}]`))}function s(e,t,r){if(void 0===r)throw Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof r?{ref:r}:{ref:r,code:(0,n.stringify)(r)})}t.macroKeywordCode=function(e,t){let{gen:r,keyword:i,schema:l,parentSchema:o,it:a}=e,u=t.macro.call(a.self,l,o,a),c=s(r,i,u);!1!==a.opts.validateSchema&&a.self.validateSchema(u,!0);let d=r.name("valid");e.subschema({schema:u,schemaPath:n.nil,errSchemaPath:`${a.errSchemaPath}/${i}`,topSchemaRef:c,compositeRule:!0},d),e.pass(d,()=>e.error(!0))},t.funcKeywordCode=function(e,t){var r;let{gen:u,keyword:c,schema:d,parentSchema:f,$data:h,it:p}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw Error("async keyword in sync schema")}(p,t);let m=s(u,c,!h&&t.compile?t.compile.call(p.self,d,f,p):t.validate),y=u.let("valid");function v(r=t.async?(0,n._)`await `:n.nil){let o=p.opts.passContext?i.default.this:i.default.self,a=!("compile"in t&&!h||!1===t.schema);u.assign(y,(0,n._)`${r}${(0,l.callValidateCode)(e,m,o,a)}`,t.modifying)}function b(e){var r;u.if((0,n.not)(null!=(r=t.valid)?r:y),e)}e.block$data(y,function(){if(!1===t.errors)v(),t.modifying&&a(e),b(()=>e.error());else{let r=t.async?function(){let e=u.let("ruleErrs",null);return u.try(()=>v((0,n._)`await `),t=>u.assign(y,!1).if((0,n._)`${t} instanceof ${p.ValidationError}`,()=>u.assign(e,(0,n._)`${t}.errors`),()=>u.throw(t))),e}():function(){let e=(0,n._)`${m}.errors`;return u.assign(e,null),v(n.nil),e}();t.modifying&&a(e),b(()=>(function(e,t){let{gen:r}=e;r.if((0,n._)`Array.isArray(${t})`,()=>{r.assign(i.default.vErrors,(0,n._)`${i.default.vErrors} === null ? ${t} : ${i.default.vErrors}.concat(${t})`).assign(i.default.errors,(0,n._)`${i.default.vErrors}.length`),(0,o.extendErrors)(e)},()=>e.error())})(e,r))}}),e.ok(null!=(r=t.valid)?r:y)},t.validSchemaType=function(e,t,r=!1){return!t.length||t.some(t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||r&&void 0===e)},t.validateKeywordUsage=function({schema:e,opts:t,self:r,errSchemaPath:n},i,l){if(Array.isArray(i.keyword)?!i.keyword.includes(l):i.keyword!==l)throw Error("ajv implementation error");let o=i.dependencies;if(null==o?void 0:o.some(t=>!Object.prototype.hasOwnProperty.call(e,t)))throw Error(`parent schema must have dependencies of ${l}: ${o.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[l])){let e=`keyword "${l}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if("log"===t.validateSchema)r.logger.error(e);else throw Error(e)}}},79446:()=>{},79558:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772),i=r(73274);function l(e,t){let r=e.schema[t];return void 0!==r&&!(0,i.alwaysValidSchema)(e,r)}t.default={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>(0,n.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,n._)`{failingKeyword: ${e.ifClause}}`},code(e){let{gen:t,parentSchema:r,it:o}=e;void 0===r.then&&void 0===r.else&&(0,i.checkStrictMode)(o,'"if" without "then" and "else" is ignored');let a=l(o,"then"),s=l(o,"else");if(!a&&!s)return;let u=t.let("valid",!0),c=t.name("_valid");if(function(){let t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);e.mergeEvaluated(t)}(),e.reset(),a&&s){let r=t.let("ifClause");e.setParams({ifClause:r}),t.if(c,d("then",r),d("else",r))}else a?t.if(c,d("then")):t.if((0,n.not)(c),d("else"));function d(r,i){return()=>{let l=e.subschema({keyword:r},c);t.assign(u,c),e.mergeValidEvaluated(l,u),i?t.assign(i,(0,n._)`${r}`):e.setParams({ifClause:r})}}e.pass(u,()=>e.error(!0))}}},79615:(e,t,r)=>{"use strict";r.d(t,{RenderVersionFieldsToDiff:()=>s});var n=r(19749),i=r(95155),l=r(41412),o=r(12115);let a="render-field-diffs",s=e=>{let t,r,s,c=(0,n.c)(6),{parent:d,versionFields:f}
27=e,[h,p]=o.useState(!1);c[0]===Symbol.for("react.memo_cache_sentinel")?(t=()=>{p(!0)},r=[],c[0]=t,c[1]=r):(t=c[0],r=c[1]),(0,o.useEffect)(t,r);let m="".concat(a).concat(void 0!==d&&d?" ".concat(a,"--parent"):"");return c[2]!==h||c[3]!==m||c[4]!==f?(s=(0,i.jsx)("div",{className:m,children:h?null==f?void 0:f.map(u):(0,i.jsx)(o.Fragment,{children:(0,i.jsx)(l.f,{height:"8rem",width:"100%"})})}),c[2]=h,c[3]=m,c[4]=f,c[5]=s):s=c[5],s};function u(e,t){if(e.fieldByLocale){let r=[];for(let[n,l]of Object.entries(e.fieldByLocale))r.push((0,i.jsx)("div",{className:"".concat(a,"__locale"),"data-field-path":l.path,"data-locale":n,children:(0,i.jsx)("div",{className:"".concat(a,"__locale-value"),children:l.CustomComponent})},[n,t].join("-")));return(0,i.jsx)("div",{className:"".concat(a,"__field"),children:r},t)}return e.field?(0,i.jsx)("div",{className:"".concat(a,"__field field__").concat(e.field.type),"data-field-path":e.field.path,children:e.field.CustomComponent},t):null}},79772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;let n=r(53921),i=r(93524);var l=r(53921);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return l.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return l.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return l.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}});var o=r(93524);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),t.operators={GT:new n._Code(">"),GTE:new n._Code(">="),LT:new n._Code("<"),LTE:new n._Code("<="),EQ:new n._Code("==="),NEQ:new n._Code("!=="),NOT:new n._Code("!"),OR:new n._Code("||"),AND:new n._Code("&&"),ADD:new n._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class s extends a{constructor(e,t,r){super(),this.varKind=e,this.name=t,this.rhs=r}render({es5:e,_n:t}){let r=e?i.varKinds.var:this.varKind,n=void 0===this.rhs?"":` = ${this.rhs}`;return`${r} ${this.name}${n};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=M(this.rhs,e,t)),this}get names(){return this.rhs instanceof n._CodeOrName?this.rhs.names:{}}}class u extends a{constructor(e,t,r){super(),this.lhs=e,this.rhs=t,this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof n.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=M(this.rhs,e,t),this}get names(){return A(this.lhs instanceof n.Name?{}:{...this.lhs.names},this.rhs)}}class c extends u{constructor(e,t,r,n){super(e,r,n),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){let t=this.label?` ${this.label}`:"";return`break${t};`+e}}class h extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=M(this.code,e,t),this}get names(){return this.code instanceof n._CodeOrName?this.code.names:{}}}class m extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,r)=>t+r.render(e),"")}
27optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let r=e[t].optimizeNodes();Array.isArray(r)?e.splice(t,1,...r):r?e[t]=r:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:r}=this,n=r.length;for(;n--;){let i=r[n];i.optimizeNames(e,t)||(function(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}(e,i.names),r.splice(n,1))}return r.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>$(e,t.names),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class v extends m{}class b extends y{}b.kind="else";class _ extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){let e=t.optimizeNodes();t=this.else=Array.isArray(e)?new b(e):e}return t?!1===e?t instanceof _?t:t.nodes:this.nodes.length?this:new _(j(e),t instanceof _?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var r;if(this.else=null==(r=this.else)?void 0:r.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=M(this.condition,e,t),this}get names(){let e=super.names;return A(e,this.condition),this.else&&$(e,this.else.names),e}}_.kind="if";class w extends y{}w.kind="for";class x extends w{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=M(this.iteration,e,t),this}get names(){return $(super.names,this.iteration.names)}}class S extends w{constructor(e,t,r,n){super(),this.varKind=e,this.name=t,this.from=r,this.to=n}render(e){let t=e.es5?i.varKinds.var:this.varKind,{name:r,from:n,to:l}=this;return`for(${t} ${r}=${n}; ${r}<${l}; ${r}++)`+super.render(e)}get names(){let e=A(super.names,this.from);return A(e,this.to)}}class C extends w{constructor(e,t,r,n){super(),this.loop=e,this.varKind=t,this.name=r,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=M(this.iterable,e,t),this}get names(){return $(super.names,this.iterable.names)}}class k extends y{constructor(e,t,r){super(),this.name=e,this.args=t,this.async=r}render(e){let t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}k.kind="func";class T extends m{render(e){return"return "+super.render(e)}}T.kind="return";class N extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null==(e=this.catch)||e.optimizeNodes(),null==(t=this.finally)||t.optimizeNodes(),this}optimizeNames(e,t){var r,n;return super.optimizeNames(e,t),null==(r=this.catch)||r.optimizeNames(e,t),null==(n=this.finally)||n.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&$(e,this.catch.names),this.finally&&$(e,this.finally.names),e}}class E extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}E.kind="catch";class P extends y{render(e){return"finally"+super.render(e)}}P.kind="finally";class O{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new i.Scope({parent:e}),this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let r=this._extScope.value(e,t);return(this._values[r.prefix]||(this._values[r.prefix]=new Set)).add(r),r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,n){let i=this._scope.toName(t);return void 0!==r&&n&&(this._constants[i.str]=r),this._leafNode(new s(e,i,r)),i}const(e,t,r){return this._def(i.varKinds.const,e,t,r)}let(e,t,r){return this._def(i.varKinds.let,e,t,r)}var(e,t,r){return this._def(i.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new u(e,t,r))}add(e,r){return this._leafNode(new c(e,t.operators.ADD,r))}code(e){return"function"==typeof e?e():e!==n.nil&&this._leafNode(new p(e)),this}object(...e){let t=["{"];for(let[r,i]of e)t.length>1&&t.push(","),t.push(r),(r!==i||this.opts.es5)&&(t.push(":"),(0,n.addCodeArg)(t,i));return t.push("}"),new n._Code(t)}
27if(e,t,r){if(this._blockNode(new _(e)),t&&r)this.code(t).else().code(r).endIf();else if(t)this.code(t).endIf();else if(r)throw Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(_,b)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new x(e),t)}forRange(e,t,r,n,l=this.opts.es5?i.varKinds.var:i.varKinds.let){let o=this._scope.toName(e);return this._for(new S(l,o,t,r),()=>n(o))}forOf(e,t,r,l=i.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=t instanceof n.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,n._)`${e}.length`,t=>{this.var(o,(0,n._)`${e}[${t}]`),r(o)})}return this._for(new C("of",l,o,t),()=>r(o))}forIn(e,t,r,l=this.opts.es5?i.varKinds.var:i.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,n._)`Object.keys(${t})`,r);let o=this._scope.toName(e);return this._for(new C("in",l,o,t),()=>r(o))}endFor(){return this._endBlockNode(w)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){let t=new T;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw Error('CodeGen: "return" should have one node');return this._endBlockNode(T)}try(e,t,r){if(!t&&!r)throw Error('CodeGen: "try" without "catch" and "finally"');let n=new N;if(this._blockNode(n),this.code(e),t){let e=this.name("e");this._currNode=n.catch=new E(e),t(e)}return r&&(this._currNode=n.finally=new P,this.code(r)),this._endBlockNode(E,P)}throw(e){return this._leafNode(new h(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(void 0===t)throw Error("CodeGen: not in self-balancing block");let r=this._nodes.length-t;if(r<0||void 0!==e&&r!==e)throw Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=n.nil,r,i){return this._blockNode(new k(e,t,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let r=this._currNode;if(r instanceof e||t&&r instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof _))throw Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}}function $(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function A(e,t){return t instanceof n._CodeOrName?$(e,t.names):e}function M(e,t,r){var i;if(e instanceof n.Name)return l(e);if(!((i=e)instanceof n._Code&&i._items.some(e=>e instanceof n.Name&&1===t[e.str]&&void 0!==r[e.str])))return e;return new n._Code(e._items.reduce((e,t)=>(t instanceof n.Name&&(t=l(t)),t instanceof n._Code?e.push(...t._items):e.push(t),e),[]));function l(e){let n=r[e.str];return void 0===n||1!==t[e.str]?e:(delete t[e.str],n)}}function j(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:(0,n._)`!${R(e)}`}t.CodeGen=O,t.not=j;let D=F(t.operators.AND);t.and=function(...e){return e.reduce(D)};let I=F(t.operators.OR);function F(e){return(t,r)=>t===n.nil?r:r===n.nil?t:(0,n._)`${R(t)} ${e} ${R(r)}`}function R(e){return e instanceof n.Name?e:(0,n._)`(${e})`}t.or=function(...e){return e.reduce(I)}},79975:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772),i=r(73274),l=r(81708),o=r(97208);t.default={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`},code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:a}=r;n.items=!0,(0,i.alwaysValidSchema)(n,t)||(a?(0,o.validateAdditionalItems)(e,a):e.ok((0,l.validateArray)(e)))}}},81581:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>n});let n={src:"/_next/static/media/static-og-image.477255a8.png",height:480,width:640,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAMAAADJ2y/JAAAAD1BMVEX39/f///+urq7Hx8e6urr/rfEaAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAHUlEQVR4nGNghAIGEAYTjIwMTCwgEsRgRpO
27CKAYABUMAMfeXEyAAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6}},81708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;let n=r(79772),i=r(73274),l=r(61974),o=r(73274);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,n._)`Object.prototype.hasOwnProperty`})}function s(e,t,r){return(0,n._)`${a(e)}.call(${t}, ${r})`}function u(e,t,r,i){let l=(0,n._)`${t}${(0,n.getProperty)(r)} === undefined`;return i?(0,n.or)(l,(0,n.not)(s(e,t,r))):l}function c(e){return e?Object.keys(e).filter(e=>"__proto__"!==e):[]}t.checkReportMissingProp=function(e,t){let{gen:r,data:i,it:l}=e;r.if(u(r,i,t,l.opts.ownProperties),()=>{e.setParams({missingProperty:(0,n._)`${t}`},!0),e.error()})},t.checkMissingProp=function({gen:e,data:t,it:{opts:r}},i,l){return(0,n.or)(...i.map(i=>(0,n.and)(u(e,t,i,r.ownProperties),(0,n._)`${l} = ${i}`)))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=s,t.propertyInData=function(e,t,r,i){let l=(0,n._)`${t}${(0,n.getProperty)(r)} !== undefined`;return i?(0,n._)`${l} && ${s(e,t,r)}`:l},t.noPropertyInData=u,t.allSchemaProperties=c,t.schemaProperties=function(e,t){return c(t).filter(r=>!(0,i.alwaysValidSchema)(e,t[r]))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:r,topSchemaRef:i,schemaPath:o,errorPath:a},it:s},u,c,d){let f=d?(0,n._)`${e}, ${t}, ${i}${o}`:t,h=[[l.default.instancePath,(0,n.strConcat)(l.default.instancePath,a)],[l.default.parentData,s.parentData],[l.default.parentDataProperty,s.parentDataProperty],[l.default.rootData,l.default.rootData]];s.opts.dynamicRef&&h.push([l.default.dynamicAnchors,l.default.dynamicAnchors]);let p=(0,n._)`${f}, ${r.object(...h)}`;return c!==n.nil?(0,n._)`${u}.call(${c}, ${p})`:(0,n._)`${u}(${p})`};let d=(0,n._)`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},r){let i=t.unicodeRegExp?"u":"",{regExp:l}=t.code,a=l(r,i);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,n._)`${"new RegExp"===l.code?d:(0,o.useFunc)(e,l)}(${r}, ${i})`})},t.validateArray=function(e){let{gen:t,data:r,keyword:l,it:o}=e,a=t.name("valid");if(o.allErrors){let e=t.let("valid",!0);return s(()=>t.assign(e,!1)),e}return t.var(a,!0),s(()=>t.break()),a;function s(o){let s=t.const("len",(0,n._)`${r}.length`);t.forRange("i",0,s,r=>{e.subschema({keyword:l,dataProp:r,dataPropType:i.Type.Num},a),t.if((0,n.not)(a),o)})}},t.validateUnion=function(e){let{gen:t,schema:r,keyword:l,it:o}=e;if(!Array.isArray(r))throw Error("ajv implementation error");if(r.some(e=>(0,i.alwaysValidSchema)(o,e))&&!o.opts.unevaluated)return;let a=t.let("valid",!1),s=t.name("_valid");t.block(()=>r.forEach((r,i)=>{let o=e.subschema({keyword:l,schemaProp:i,compositeRule:!0},s);t.assign(a,(0,n._)`${a} || ${s}`),e.mergeValidEvaluated(o,s)||t.if((0,n.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}},83039:(e,t,r)=>{"use strict";r.r(t),r.d(t,{default:()=>d,enUS:()=>c});let n={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 i=r(52143);let l={date:(0,i.k)({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:(0,i.k)({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,i.k)({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},o={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=r(38265);let s={ordinalNumber:(e,t)=>{let r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:(0,a.o)({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:(0,a.o)({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:(0,a.o)({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.o)({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","Frid
27ay","Saturday"]},defaultWidth:"wide"}),dayPeriod:(0,a.o)({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 u=r(87291);let c={code:"en-US",formatDistance:(e,t,r)=>{let i,l=n[e];if(i="string"==typeof l?l:1===t?l.one:l.other.replace("{{count}}",t.toString()),null==r?void 0:r.addSuffix)if(r.comparison&&r.comparison>0)return"in "+i;else return i+" ago";return i},formatLong:l,formatRelative:(e,t,r,n)=>o[e],localize:s,match:{ordinalNumber:(0,r(66943).K)({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:(0,u.A)({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,u.A)({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,u.A)({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,u.A)({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,u.A)({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"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},d=c},84365:(e,t,r)=>{"use strict";r.d(t,{s:()=>n});let n=(e,t)=>{if("object"==typeof e&&!Object.prototype.hasOwnProperty.call(e,"$$typeof")){if(e[t.language])return e[t.language];let r=[];"string"==typeof t.fallbackLanguage?r=[t.fallbackLanguage]:Array.isArray(t.fallbackLanguage)&&(r=t.fallbackLanguage);let n=r.find(t=>e[t]);return n&&e[n]?e[n]:e[Object.keys(e)[0]]}return"function"==typeof e?e({i18n:t,t:t.t}):e}},84423:(e,t,r)=>{"use strict";r.d(t,{k:()=>l});var n=r(95490),i=r(89447);function l(e,t){var r,l,o,a,s,u,c,d;let f=(0,n.q)(),h=null!=(d=null!=(c=null!=(u=null!=(s=null==t?void 0:t.weekStartsOn)?s:null==t||null==(l=t.locale)||null==(r=l.options)?void 0:r.weekStartsOn)?u:f.weekStartsOn)?c:null==(a=f.locale)||null==(o=a.options)?void 0:o.weekStartsOn)?d:0,p=(0,i.a)(e,null==t?void 0:t.in),m=p.getDay();return p.setDate(p.getDate()-(7*(m<h)+m-h)),p.setHours(0,0,0,0),p}},84930:(e,t,r)=>{"use strict";
27Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772),i=r(73274),l=r(99155);t.default={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,n._)`{allowedValues: ${e}}`},code(e){let t,r,{gen:o,data:a,$data:s,schema:u,schemaCode:c,it:d}=e;if(!s&&0===u.length)throw Error("enum must have non-empty array");let f=u.length>=d.opts.loopEnum,h=()=>null!=t?t:t=(0,i.useFunc)(o,l.default);if(f||s)r=o.let("valid"),e.block$data(r,function(){o.assign(r,!1),o.forOf("v",c,e=>o.if((0,n._)`${h()}(${a}, ${e})`,()=>o.assign(r,!0).break()))});else{if(!Array.isArray(u))throw Error("ajv implementation error");let e=o.const("vSchema",c);r=(0,n.or)(...u.map((t,r)=>(function(e,t){let r=u[t];return"object"==typeof r&&null!==r?(0,n._)`${h()}(${a}, ${e}[${t}])`:(0,n._)`${a} === ${r}`})(e,r)))}e.pass(r)}}},85055:(e,t,r)=>{"use strict";let n;r.d(t,{A:()=>a});let i={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},l=new Uint8Array(16),o=[];for(let e=0;e<256;++e)o.push((e+256).toString(16).slice(1));let a=function(e,t,r){if(i.randomUUID&&!t&&!e)return i.randomUUID();var a=e,s=r;let u=(a=a||{}).random??a.rng?.()??function(){if(!n){if("undefined"==typeof crypto||!crypto.getRandomValues)throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");n=crypto.getRandomValues.bind(crypto)}return n(l)}();if(u.length<16)throw Error("Random bytes length must be >= 16");if(u[6]=15&u[6]|64,u[8]=63&u[8]|128,t){if((s=s||0)<0||s+16>t.length)throw RangeError(`UUID byte range ${s}:${s+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[s+e]=u[e];return t}return function(e,t=0){return(o[e[t+0]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[e[t+6]]+o[e[t+7]]+"-"+o[e[t+8]]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]).toLowerCase()}(u)}},85331:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;let n=r(66534),i=r(62889),l=r(51270),o=r(62889),a=r(70247),s=r(79016),u=r(21526),c=r(79772),d=r(61974),f=r(4186),h=r(73274),p=r(7525);function m({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},l){var o;i.code.es5?e.func(t,(0,c._)`${d.default.data}, ${d.default.valCxt}`,n.$async,()=>{var t,n;e.code((0,c._)`"use strict"; ${y(r,i)}`),t=e,n=i,t.if(d.default.valCxt,()=>{t.var(d.default.instancePath,(0,c._)`${d.default.valCxt}.${d.default.instancePath}`),t.var(d.default.parentData,(0,c._)`${d.default.valCxt}.${d.default.parentData}`),t.var(d.default.parentDataProperty,(0,c._)`${d.default.valCxt}.${d.default.parentDataProperty}`),t.var(d.default.rootData,(0,c._)`${d.default.valCxt}.${d.default.rootData}`),n.dynamicRef&&t.var(d.default.dynamicAnchors,(0,c._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)},()=>{t.var(d.default.instancePath,(0,c._)`""`),t.var(d.default.parentData,(0,c._)`undefined`),t.var(d.default.parentDataProperty,(0,c._)`undefined`),t.var(d.default.rootData,d.default.data),n.dynamicRef&&t.var(d.default.dynamicAnchors,(0,c._)`{}`)}),e.code(l)}):e.func(t,(0,c._)`${d.default.data}, ${(o=i,(0,c._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${o.dynamicRef?(0,c._)`, ${d.default.dynamicAnchors}={}`:c.nil}}={}`)}`,n.$async,()=>e.code(y(r,i)).code(l))}function y(e,t){let r="object"==typeof e&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,c._)`/*# sourceURL=${r} */`:c.nil}function v({schema:e,self:t}){if("boolean"==typeof e)return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function b(e){return"boolean"!=typeof e.schema}function _(e){(0,h.checkUnknownRules)(e),function(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}(e)}function w(e,t){if(e.opts.jtd)return S(e,[],!1,t);let r=(0,i.getSchemaTypes)(e.schema),n=(0,i.coerceAndCheckDataType)(e,r);S(e,r,!n,t)}function x({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let l=r.$comment;if(!0===i.$comment)e.code((0,c._)`${d.default.self}.logger.log(${l})`);else if("function"==typeof i.$comment){let r=(0,c.str)`${n}/$comment`,i=e.scopeValue("root",{ref:t.root});e.code((0,c._)`${d.default.self}.opts.$comment(${l}, ${r}, ${i}.schema)`)}}function S(e,t,r,n){var i,a,s,u;let{gen:f,schema:p,data:m,allErrors:y,opts:v,self:b}=e,{RULES:_}=b;if(p.$ref&&(v.ignoreKeywordsWithRef||!(0,h.schemaHasRulesButRef)(p,_)))return void f.block(()=>E(e,"$ref",_.all.$ref.definition));function w(i){(0,l.shouldUseGroup)(p,i)&&(i.type?(f.if((0,o.checkDataType)(i.type,m,v.strictNumbers)),C(e,i),1===t.length&&t[0]===i.type&&r&&(f.else(),(0,o.reportTypeError)(e)),f.endIf()):C(e,i),y||f.if((0,c._)`${d.default.errors} === ${n||0}`))}v.jtd||(i=e,a=t,!i.schemaEnv.meta&&i.opts.strictTypes&&(function(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(t=>{k(e.dataTypes,t)||T(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}),function(e,t){let r=[];for(let n of e.dataTypes)k(t,n)?r.push(n):t.includes("integer")&&"number"===n&&r.push("integer");e.dataTypes=r}(e,t)}}(i,a),i.opts.allowUnionTypes||(s=i,(u=a).length>1&&!(2===u.length&&u.includes("null"))&&T(s,"use allowUnionTypes to allow union type keyword")),function(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if("object"==typeof i&&(0,l.shouldUseRule)(e.schema,i)){let{type:r}=i.definition;r.length&&!r.some(e=>{var r,n;return r=t,n=e,r.includes(n)||"number"===n&&r.includes("integer")})&&T(e,`missing type "${r.join(",")}" for keyword "${n}"`)}}}(i,i.dataTypes))),f.block(()=>{for(let e of _.rules)w(e);w(_.post)})}function C(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,a.assignDefaults)(e,t.type),r.block(()=>{for(let r of t.rules)(0,l.shouldUseRule)(n,r)&&E(e,r.keyword,r.definition,t.type)})}function k(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function T(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}
27" (strictTypes)`,(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){if(b(e)&&(_(e),v(e)))return void function(e){let{schema:t,opts:r,gen:n}=e;m(e,()=>{r.$comment&&t.$comment&&x(e),function(e){let{schema:t,opts:r}=e;void 0!==t.default&&r.useDefaults&&r.strictSchema&&(0,h.checkStrictMode)(e,"default is ignored in the schema root")}(e),n.let(d.default.vErrors,null),n.let(d.default.errors,0),r.unevaluated&&function(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,c._)`${r}.evaluated`),t.if((0,c._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,c._)`${e.evaluated}.props`,(0,c._)`undefined`)),t.if((0,c._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,c._)`${e.evaluated}.items`,(0,c._)`undefined`))}(e),w(e),function(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:l}=e;r.$async?t.if((0,c._)`${d.default.errors} === 0`,()=>t.return(d.default.data),()=>t.throw((0,c._)`new ${i}(${d.default.vErrors})`)):(t.assign((0,c._)`${n}.errors`,d.default.vErrors),l.unevaluated&&function({gen:e,evaluated:t,props:r,items:n}){r instanceof c.Name&&e.assign((0,c._)`${t}.props`,r),n instanceof c.Name&&e.assign((0,c._)`${t}.items`,n)}(e),t.return((0,c._)`${d.default.errors} === 0`))}(e)})}(e);m(e,()=>(0,n.topBoolOrEmptySchema)(e))};class N{constructor(e,t,r){if((0,s.validateKeywordUsage)(e,t,r),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=r,this.data=e.data,this.schema=e.schema[r],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",$(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,s.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw Error(`${r} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",d.default.errors))}result(e,t,r){this.failResult((0,c.not)(e),t,r)}failResult(e,t,r){this.gen.if(e),r?r():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,c.not)(e),void 0,t)}fail(e){if(void 0===e){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:t}=this;this.fail((0,c._)`${t} !== undefined && (${(0,c.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t),this._error(e,r),this.setParams({});return}this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(void 0===this.errsCount)throw Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,r=c.nil){this.gen.block(()=>{this.check$data(e,r),t()})}check$data(e=c.nil,t=c.nil){if(!this.$data)return;let{gen:r,schemaCode:n,schemaType:i,def:l}=this;r.if((0,c.or)((0,c._)`${n} === undefined`,t)),e!==c.nil&&r.assign(e,!0),(i.length||l.validateSchema)&&(r.elseIf(this.invalid$data()),this.$dataError(),e!==c.nil&&r.assign(e,!1)),r.else()}invalid$data(){let{gen:e,schemaCode:t,schemaType:r,def:n,it:i}=this;return(0,c.or)(function(){if(r.length){if(!(t instanceof c.Name))throw Error("ajv implementation error");let e=Array.isArray(r)?r:[r];return(0,c._)`${(0,o.checkDataTypes)(e,t,i.opts.strictNumbers,o.DataType.Wrong)}`}return c.nil}(),function(){if(n.validateSchema){let r=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,c._)`!${r}(${t})`}return c.nil}())}subschema(e,t){let r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e),(0,u.extendSubschemaMode)(r,e);let i={...this.it,...r,items:void 0,props:void 0};return!function(e,t){if(b(e)&&(_(e),v(e))){var r=e,i=t;let{schema:n,gen:l,opts:o}=r;o.$comment&&n.$comment&&x(r),function(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(r),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw Error("async schema in sync schema")}(r);let a=l.const("_errs",d.default.errors);w(r,a),l.var(i,(0,c._)`${a} === ${d.default.errors}`);return}(0,n.boolOrEmptySchema)(e,t)}(i,t),i}mergeEvaluated(e,t){let{it:r,gen:n}=this;r.opts.unevaluated&&(!0!==r.props&&void 0!==e.props&&(r.props=h.mergeEvaluated.props(n,e.props,r.props,t)),!0!==r.items&&void 0!==e.items&&(r.items=h.mergeEvaluated.items(n,e.items,r.items,t)))}mergeValidEvaluated(e,t){let{it:r,gen:n}=this;if(r.opts.unevaluated&&(!0!==r.props||!0!==r.items))return n.if(t,()=>this.mergeEvaluated(e,c.Name)),!0}}function E(e,t,r,n){let i=new N(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,s.funcKeywordCode)(i,r):"macro"in r?(0,s.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,s.funcKeywordCode)(i,r)}t.KeywordCxt=N;let P=/^\/(?:[^~]|~0|~1)*$/,O=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,l;if(""===e)return d.default.rootData;if("/"===e[0]){if(!P.test(e))throw Error(`Invalid JSON-pointer: ${e}`);i=e,l=d.default.rootData}else{let o=O.exec(e);if(!o)throw Error(`Invalid JSON-pointer: ${e}`);let s=+o[1];if("#"===(i=o[2])){if(s>=t)throw Error(a("property/index",s));return n[t-s]}if(s>t)throw Error(a("data",s));if(l=r[t-s],!i)return l}let o=l;for(let e of i.split("/"))e&&(l=(0,c._)`${l}${(0,c.getProperty)((0,h.unescapeJsonPointer)(e))}`,o=(0,c._)`${o} && ${l}`);return o;function a(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=$},85513:(e,t,r)=>{"use strict";r.d(t,{Row:()=>l});var n=r(95155);r(12115);var i=r(79615);let l=e=>{let{baseVersionField:t}=e;return(0,n.jsx)("div",{className:"row-diff",children:(0,n.jsx)(i.RenderVersionFieldsToDiff,{versionFields:t.fields})})}},85849:(e,t,r)=>{"use strict";r.d(t,{VersionDrawerCreatedAtCell:()=>u});var n=r(95155),i=r(41412),l=r(92825),o=r(63344),a=r(78234),s=r(35695);let u=e=>{let{rowData:t}=e,{id:r,updatedAt:u}=void 0===t?{}:t,{config:c}=(0,i.c)(),{admin:d}=c,{dateFormat:f}=d,{closeAllModals:h}=(0,l.useModal)(),p=(0,s.useRouter)(),m=(0,s.usePathname)(),y=(0,s.use
27SearchParams)(),{startRouteTransition:v}=(0,l.useRouteTransition)(),{i18n:b}=(0,o.d)();return(0,n.jsx)("button",{className:"created-at-cell",onClick:()=>{h();let e=new URLSearchParams(Array.from(y.entries()));r&&e.set("versionFrom",String(r));let t=e.toString(),n=t?"?".concat(t):"";v(()=>p.push("".concat(m).concat(n)))},type:"button",children:(0,a.Yq)({date:u,i18n:b,pattern:f})})}},86124:(e,t,r)=>{"use strict";r.d(t,{Q:()=>d});var n=r(95155),i=r(41412),l=r(92825),o=r(63344),a=r(78234),s=r(6001),u=r(12115),c=r(45280);let d=e=>{let{field:{admin:{allowCreate:t}={},label:r,localized:d,relationTo:f,required:h},hasGenerateImageFn:p,readOnly:m}=e,{config:{routes:{api:y},serverURL:v},getEntityConfig:b}=(0,i.c)(),{customComponents:{Error:_,Label:w}={},filterOptions:x,path:S,setValue:C,showError:k,value:T}=(0,l.useField)(),{t:N}=(0,o.d)(),E=(0,l.useLocale)(),{getData:P}=(0,l.useForm)(),O=(0,l.useDocumentInfo)(),{title:$}=(0,l.useDocumentTitle)(),A=(0,u.useCallback)(async()=>{var e;if(!p)return;let t=(0,s.Q)({apiRoute:y,path:"/plugin-seo/generate-image"}),r=await fetch(t,{body:JSON.stringify({id:O.id,collectionSlug:O.collectionSlug,doc:P(),docPermissions:O.docPermissions,globalSlug:O.globalSlug,hasPublishPermission:O.hasPublishPermission,hasSavePermission:O.hasSavePermission,initialData:O.initialData,initialState:(0,a.qg)(null!=(e=O.initialState)?e:{}),locale:"object"==typeof E?null==E?void 0:E.code:E,title:$}),credentials:"include",headers:{"Content-Type":"application/json"},method:"POST"}),{result:n}=await r.json(),i=n;"object"==typeof n&&n&&"id"in n&&(i=n.id),C(i||"")},[p,y,O.id,O.collectionSlug,O.docPermissions,O.globalSlug,O.hasPublishPermission,O.hasSavePermission,O.initialData,O.initialState,P,E,C,$]),M=!!T,j=b({collectionSlug:f});return(0,n.jsxs)("div",{style:{marginBottom:"20px"},children:[(0,n.jsxs)("div",{style:{marginBottom:"5px",position:"relative"},children:[(0,n.jsxs)("div",{className:"plugin-seo__field",children:[(0,n.jsx)(l.RenderCustomComponent,{CustomComponent:w,Fallback:(0,n.jsx)(l.FieldLabel,{label:r,localized:d,path:S,required:h})}),p&&(0,n.jsxs)(u.Fragment,{children:["\xa0 â \xa0",(0,n.jsx)("button",{disabled:m,onClick:()=>{A()},style:{background:"none",backgroundColor:"transparent",border:"none",color:"currentcolor",cursor:"pointer",padding:0,textDecoration:"underline"},type:"button",children:N("plugin-seo:autoGenerate")})]})]}),p&&(0,n.jsx)("div",{style:{color:"#9A9A9A"},children:N("plugin-seo:imageAutoGenerationTip")})]}),(0,n.jsx)("div",{style:{marginBottom:"10px",position:"relative"},children:(0,n.jsx)(l.UploadInput,{allowCreate:!1!==t,api:y,collection:j,Error:_,filterOptions:x,onChange:e=>{if(null!==e)if("object"==typeof e){let{id:t}=e;C(t)}else C(e);else C(null)},path:S,readOnly:m,relationTo:f,required:h,serverURL:v,showError:k,style:{marginBottom:0},value:T})}),(0,n.jsx)("div",{style:{alignItems:"center",display:"flex",width:"100%"},children:(0,n.jsx)(c.a,{backgroundColor:M?"green":"red",color:"white",label:N(M?"plugin-seo:good":"plugin-seo:noImage")})})]})}},86200:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},87062:(e,t,r)=>{"use strict";r.d(t,{v:()=>n});let n=(e,t,r)=>{if(!t||!e)return r;let n=t.split(".").reduce((e,t)=>e?.[t],e);return void 0===n?r:n}},87144:()=>{},87291:(e,t,r)=>{"use strict";function n(e){return function(t){let r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=n.width,l=i&&e.matchPatterns[i]||e.matchPatterns[e.defaultMatchWidth],o=t.match(l);if(!o)return null;let a=o[0],s=i&&e.parsePatterns[i]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}(s,e=>e.test(a)):function(e,t){for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}(s,e=>e.test(a));return r=e.valueCallback?e.valueCallback(u):u,{value:r=n.valueCallback?n.valueCallback(r):r,rest:t.slice(a.length)}}}r.d(t,{A:()=>n})},88515:(e,t,r)=>{"use strict";
27Object.defineProperty(t,"__esModule",{value:!0});let n=r(66183);t.default={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n.validateTuple)(e,"items")}},88705:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(36793);n.code='require("ajv/dist/runtime/uri").default',t.default=n},88849:(e,t,r)=>{"use strict";r.d(t,{D4:()=>m,F7:()=>x,Pe:()=>_,Rj:()=>s,gd:()=>b,h1:()=>p,kg:()=>w,lF:()=>y,oE:()=>v});var n=r(6652);let i=Object.prototype.hasOwnProperty,l=Array.isArray,o=new WeakMap;var a=function(e,t){return o.set(e,t),e};function s(e){return o.has(e)}var u=function(e){return o.get(e)},c=function(e,t){o.set(e,t)};let d=function(){let e=[];for(let t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),f=function(e){for(;e.length>1;){let t=e.pop(),r=t.obj[t.prop];if(l(r)){let e=[];for(let t=0;t<r.length;++t)void 0!==r[t]&&e.push(r[t]);t.obj[t.prop]=e}}},h=function(e,t){let r=t&&t.plainObjects?Object.create(null):{};for(let t=0;t<e.length;++t)void 0!==e[t]&&(r[t]=e[t]);return r},p=function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(l(t))t.push(r);else if(!t||"object"!=typeof t)return[t,r];else if(s(t)){var o=u(t)+1;t[o]=r,c(t,o)}else(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0);return t}if(!t||"object"!=typeof t){if(s(r)){for(var d=Object.keys(r),f=n&&n.plainObjects?{__proto__:null,0:t}:{0:t},p=0;p<d.length;p++)f[parseInt(d[p],10)+1]=r[d[p]];return a(f,u(r)+1)}return[t].concat(r)}let m=t;return(l(t)&&!l(r)&&(m=h(t,n)),l(t)&&l(r))?(r.forEach(function(r,l){if(i.call(t,l)){let i=t[l];i&&"object"==typeof i&&r&&"object"==typeof r?t[l]=e(i,r,n):t.push(r)}else t[l]=r}),t):Object.keys(r).reduce(function(t,l){let o=r[l];return i.call(t,l)?t[l]=e(t[l],o,n):t[l]=o,t},m)},m=function(e){let t=e.replace(/\+/g," ");try{return decodeURIComponent(t)}catch(e){return t}},y=function(e,t,r,i){if(0===e.length)return e;let l=e;"symbol"==typeof e?l=Symbol.prototype.toString.call(e):"string"!=typeof e&&(l=String(e));let o="";for(let e=0;e<l.length;e+=1024){let t=l.length>=1024?l.slice(e,e+1024):l,r=[];for(let e=0;e<t.length;++e){let l=t.charCodeAt(e);if(45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||i===n.j1&&(40===l||41===l)){r[r.length]=t.charAt(e);continue}if(l<128){r[r.length]=d[l];continue}if(l<2048){r[r.length]=d[192|l>>6]+d[128|63&l];continue}if(l<55296||l>=57344){r[r.length]=d[224|l>>12]+d[128|l>>6&63]+d[128|63&l];continue}e+=1,l=65536+((1023&l)<<10|1023&t.charCodeAt(e)),r[r.length]=d[240|l>>18]+d[128|l>>12&63]+d[128|l>>6&63]+d[128|63&l]}o+=r.join("")}return o},v=function(e){let t=[{obj:{o:e},prop:"o"}],r=[];for(let e=0;e<t.length;++e){let n=t[e],i=n.obj[n.prop],l=Object.keys(i);for(let e=0;e<l.length;++e){let n=l[e],o=i[n];"object"==typeof o&&null!==o&&-1===r.indexOf(o)&&(t.push({obj:i,prop:n}),r.push(o))}}return f(t),e},b=function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},_=function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},w=function(e,t,r,n){if(s(e)){var i=u(e)+1;return e[i]=t,c(e,i),e}var l=[].concat(e,t);return l.length>r?a(h(l,{plainObjects:n}),l.length-1):l},x=function(e,t){if(l(e)){let r=[];for(let n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)}},88991:(e,t,r)=>{"use strict";r.d(t,{APIViewClient:()=>b});var n=r(95155),i=r(92825),l=r(63344),o=r(41412),a=r(35695),s=r(65703),u=r(6001),c=r(12115),d=r(19749);let f=e=>{let t,r=(0,d.c)(6),{localeOptions:o,onChange:a}=e,{t:s}=(0,l.d)();if(r[0]!==o||r[1]!==a||r[2]!==s){let e;r[4]!==a?(e=e=>a(e),r[4]=a,r[5]=e):e=r[5],t=(0,n.jsx)(i.SelectField,{field:{name:"locale",label:s("general:locale"),options:o},onChange:e,path:"locale"}),r[0]=o,r[1]=a,r[2]=s,r[3]=t}else t=r[3];return t},h={leftCurlyBracket:"{",leftSquareBracket:"[",rightCurlyBracket:"}",rightSquareBracket:"]"},p="query-inspector",m=e=>{let{type:t,comma:r=!1,position:i}=e,l="object"===t?h.rightCurlyBracket:h.rightSquareBracket,o="object"===t?h.leftCurlyBracket:h.leftSquareBracket;return(0,n.jsxs)("span",{className:"".concat(p,"__bracket ").concat(p,"__bracket--position-").concat(i),children:["end"===i?l:o,"end"===i&&r?",":null]})},y=e=>{let t,r=(0,d.c)(2),{isEmpty:l,object:o,objectKey:a,parentType:s,trailingComma:u}=e,f=void 0!==l&&l,h=void 0===s?"object":s,v=void 0!==u&&u,b=o?Object.keys(o):[],_=b.length,[w,x]=c.useState(!0),S="object"===h||"array"===h;return r[0]!==w?(t=()=>x(!w),r[0]=w,r[1]=t):t=r[1],(0,n.jsxs)("li",{className:S?"".concat(p,"__row-line--nested"):"",children:[(0,n.jsxs)("button",{"aria-label":"toggle",className:"".concat(p,"__list-toggle ").concat(f?"".concat(p,"__list-toggle--empty"):""),onClick:t,type:"button",children:[f?null:(0,n.jsx)(i.ChevronIcon,{className:"".concat(p,"__toggle-row-icon ").concat(p,"__toggle-row-icon--").concat(w?"open":"closed")}),(0,n.jsxs)("span",{children:[a&&'"'.concat(a,'": '),(0,n.jsx)(m,{position:"start",type:h}),f?(0,n.jsx)(m,{comma:v,position:"end",type:h}):null]})]}),(0,n.jsx)("ul",{className:"".concat(p,"__json-children ").concat(S?"".concat(p,"__json-children--nested"):""),children:w&&b.map((e,t)=>{let r,i=o[e],l=t===_-1;if(null===i?r="null":i instanceof Date?(r="date",i=i.toISOString()):r=Array.isArray(i)?"array":"object"==typeof i?"object":"number"==typeof i?"number":"boolean"==typeof i?"boolean":"string","object"===r||"array"===r)return(0,n.jsx)(y,{isEmpty:0===i.length||0===Object.keys(i).length,object:i,objectKey:"object"===h?e:void 0,parentType:r,trailingComma:!l},"".concat(e,"-").concat(t));if("date"===r||"string"===r||"null"===r||"number"===r||"boolean"===r){let o=!!("object"===h&&e),s=["".concat(p,"__row-line"),"".concat(p,"__value-type--").concat(r),"".concat(p,"__row-line--").concat(a?"nested":"top")].filter(
27Boolean).join(" ");return(0,n.jsxs)("li",{className:s,children:[o?(0,n.jsx)("span",{children:'"'.concat(e,'": ')}):null,(0,n.jsx)("span",{className:"".concat(p,"__value"),children:JSON.stringify(i)}),l?"":","]},"".concat(e,"-").concat(t))}})}),!f&&(0,n.jsx)("span",{className:S?"".concat(p,"__bracket--nested"):"",children:(0,n.jsx)(m,{comma:v,position:"end",type:h})})]})},v="query-inspector",b=()=>{var e,t;let r,{id:d,collectionSlug:h,globalSlug:p,initialData:m,isTrashed:b}=(0,i.useDocumentInfo)(),_=(0,a.useSearchParams)(),{i18n:w,t:x}=(0,l.d)(),{code:S}=(0,i.useLocale)(),{config:{defaultDepth:C,localization:k,routes:{api:T},serverURL:N},getEntityConfig:E}=(0,o.c)(),P=E({collectionSlug:h}),O=E({globalSlug:p}),$=k&&k.locales.map(e=>({label:e.label,value:e.code})),A=!1;P&&(A=(0,s.gD)(P),r="/".concat(h,"/").concat(d)),O&&(A=(0,s.gD)(O),r="/globals/".concat(p));let[M,j]=c.useState(m),[D,I]=c.useState("true"===_.get("draft")),[F,R]=c.useState((null==_?void 0:_.get("locale"))||S),[L,B]=c.useState(_.get("depth")||C.toString()),[z,K]=c.useState(!0),[U,W]=c.useState(!1),[J,q]=c.useState(N||"");c.useEffect(()=>{N||q(window.location.origin)},[N]);let V="string"==typeof(null==m?void 0:m.deletedAt),H=new URLSearchParams({depth:L,draft:String(D),locale:F,trash:V?"true":"false"}).toString(),G=(0,u.Q)({apiRoute:T,path:"".concat(r,"?").concat(H),serverURL:J});return c.useEffect(()=>{(async()=>{try{let e=await fetch(G,{credentials:z?"include":"omit",headers:{"Accept-Language":w.language},method:"GET"});try{let t=await e.json();j(t)}catch(e){i.toast.error("Error parsing response"),console.error(e)}}catch(e){i.toast.error("Error making request"),console.error(e)}})()},[w.language,G,z]),(0,n.jsxs)(i.Gutter,{className:[v,U&&"".concat(v,"--fullscreen")].filter(Boolean).join(" "),right:!1,children:[(0,n.jsx)(i.SetDocumentStepNav,{collectionSlug:h,globalLabel:null==O?void 0:O.label,globalSlug:p,id:d,isTrashed:b,pluralLabel:P?null==P||null==(e=P.labels)?void 0:e.plural:void 0,useAsTitle:P?null==P||null==(t=P.admin)?void 0:t.useAsTitle:void 0,view:"API"}),(0,n.jsxs)("div",{className:"".concat(v,"__configuration"),children:[(0,n.jsxs)("div",{className:"".concat(v,"__api-url"),children:[(0,n.jsxs)("span",{className:"".concat(v,"__label"),children:["API URL ",(0,n.jsx)(i.CopyToClipboard,{value:G})]}),(0,n.jsx)("a",{href:G,rel:"noopener noreferrer",target:"_blank",children:G})]}),(0,n.jsx)(i.Form,{initialState:{authenticated:{initialValue:z||!1,valid:!0,value:z||!1},depth:{initialValue:Number(L||0),valid:!0,value:Number(L||0)},draft:{initialValue:D||!1,valid:!0,value:D||!1},locale:{initialValue:F,valid:!0,value:F}},children:(0,n.jsxs)("div",{className:"".concat(v,"__form-fields"),children:[(0,n.jsxs)("div",{className:"".concat(v,"__filter-query-checkboxes"),children:[A&&(0,n.jsx)(i.CheckboxField,{field:{name:"draft",label:x("version:draft")},onChange:()=>I(!D),path:"draft"}),(0,n.jsx)(i.CheckboxField,{field:{name:"authenticated",label:x("authentication:authenticated")},onChange:()=>K(!z),path:"authenticated"})]}),$&&(0,n.jsx)(f,{localeOptions:$,onChange:R}),(0,n.jsx)(i.NumberField,{field:{name:"depth",admin:{step:1},label:x("general:depth"),max:10,min:0},onChange:e=>B(null==e?void 0:e.toString()),path:"depth"})]})})]}),(0,n.jsxs)("div",{className:"".concat(v,"__results-wrapper"),children:[(0,n.jsx)("div",{className:"".concat(v,"__toggle-fullscreen-button-container"),children:(0,n.jsx)("button",{"aria-label":"toggle fullscreen",className:"".concat(v,"__toggle-fullscreen-button"),onClick:()=>W(!U),type:"button",children:(0,n.jsx)(i.MinimizeMaximizeIcon,{isMinimized:!U})})}),(0,n.jsx)("div",{className:"".concat(v,"__results"),children:(0,n.jsx)(y,{object:M})})]})]})}},89349:(e,t,r)=>{"use strict";function n(e){return["image/jpeg","image/png","image/gif","image/svg+xml","image/webp","image/avif","image/jxl"].indexOf(e)>-1}r.d(t,{w:()=>n})},89447:(e,t,r)=>{"use strict";r.d(t,{a:()=>i});var n=r(7239);function i(e,t){return(0,n.w)(t||e,e)}},90234:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(73274);t.default={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:i}=e;if((0,n.alwaysValidSchema)(i,r))return void e.fail();let l=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},l),e.failResult(l,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}}},90600:(e,t,r)=>{"use strict";
27Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;let n=r(79772),i=r(73274),l=r(81708);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>(0,n.str)`must have ${1===t?"property":"properties"} ${r} when property ${e} is present`,params:({params:{property:e,depsCount:t,deps:r,missingProperty:i}})=>(0,n._)`{property: ${e}, 28 missingProperty: ${i}, 29 depsCount: ${t}, 30 deps: ${r}}`};let o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){let[t,r]=function({schema:e}){let t={},r={};for(let n in e)"__proto__"!==n&&((Array.isArray(e[n])?t:r)[n]=e[n]);return[t,r]}(e);a(e,t),s(e,r)}};function a(e,t=e.schema){let{gen:r,data:i,it:o}=e;if(0===Object.keys(t).length)return;let s=r.let("missing");for(let a in t){let u=t[a];if(0===u.length)continue;let c=(0,l.propertyInData)(r,i,a,o.opts.ownProperties);e.setParams({property:a,depsCount:u.length,deps:u.join(", ")}),o.allErrors?r.if(c,()=>{for(let t of u)(0,l.checkReportMissingProp)(e,t)}):(r.if((0,n._)`${c} && (${(0,l.checkMissingProp)(e,u,s)})`),(0,l.reportMissingProp)(e,s),r.else())}}function s(e,t=e.schema){let{gen:r,data:n,keyword:o,it:a}=e,u=r.name("valid");for(let s in t)(0,i.alwaysValidSchema)(a,t[s])||(r.if((0,l.propertyInData)(r,n,s,a.opts.ownProperties),()=>{let t=e.subschema({keyword:o,schemaProp:s},u);e.mergeValidEvaluated(t,u)},()=>r.var(u,!0)),e.ok(u))}t.validatePropertyDeps=a,t.validateSchemaDeps=s,t.default=o},91321:(e,t,r)=>{"use strict";r.d(t,{aG:()=>n});let n=["ar","fa","he"]},91955:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var n=r(85331);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return n.KeywordCxt}});var i=r(79772);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return i._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return i.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return i.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return i.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return i.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return i.CodeGen}});let l=r(74455),o=r(24950),a=r(39997),s=r(11930),u=r(79772),c=r(4186),d=r(62889),f=r(73274),h=r(96504),p=r(88705),m=(e,t)=>new RegExp(e,t);m.code="new RegExp";let y=["removeAdditional","useDefaults","coerceTypes"],v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),b={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated
30ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};class w{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...function(e){var t,r,n,i,l,o,a,s,u,c,d,f,h,y,v,b,_,w,x,S,C,k,T,N,E;let P=e.strict,O=null==(t=e.code)?void 0:t.optimize,$=!0===O||void 0===O?1:O||0,A=null!=(n=null==(r=e.code)?void 0:r.regExp)?n:m,M=null!=(i=e.uriResolver)?i:p.default;return{strictSchema:null==(o=null!=(l=e.strictSchema)?l:P)||o,strictNumbers:null==(s=null!=(a=e.strictNumbers)?a:P)||s,strictTypes:null!=(c=null!=(u=e.strictTypes)?u:P)?c:"log",strictTuples:null!=(f=null!=(d=e.strictTuples)?d:P)?f:"log",strictRequired:null!=(y=null!=(h=e.strictRequired)?h:P)&&y,code:e.code?{...e.code,optimize:$,regExp:A}:{optimize:$,regExp:A},loopRequired:null!=(v=e.loopRequired)?v:200,loopEnum:null!=(b=e.loopEnum)?b:200,meta:null==(_=e.meta)||_,messages:null==(w=e.messages)||w,inlineRefs:null==(x=e.inlineRefs)||x,schemaId:null!=(S=e.schemaId)?S:"$id",addUsedSchema:null==(C=e.addUsedSchema)||C,validateSchema:null==(k=e.validateSchema)||k,validateFormats:null==(T=e.validateFormats)||T,unicodeRegExp:null==(N=e.unicodeRegExp)||N,int32range:null==(E=e.int32range)||E,uriResolver:M}}(e)};let{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:t,lines:r}),this.logger=function(e){if(!1===e)return E;if(void 0===e)return console;if(e.log&&e.warn&&e.error)return e;throw Error("logger must implement log, warn and error methods")}(e.logger);let n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,a.getRules)(),x.call(this,b,e,"NOT SUPPORTED"),x.call(this,_,e,"DEPRECATED","warn"),this._metaOpts=N.call(this),e.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&T.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),C.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:t,schemaId:r}=this.opts,n=h;"id"===r&&((n={...h}).id=n.$id,delete n.$id),t&&e&&this.addMetaSchema(n,n[r],!1)}defaultMeta(){let{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let r;if("string"==typeof e){if(!(r=this.getSchema(e)))throw Error(`no schema with key or ref "${e}"`)}else r=this.compile(e);let n=r(t);return"$async"in r||(this.errors=r.errors),n}compile(e,t){let r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw Error("options.loadSchema should be a function");let{loadSchema:r}=this.opts;return n.call(this,e,t);async function n(e,t){await i.call(this,e.$schema);let r=this._addSchema(e,t);return r.validate||l.call(this,r)}async function i(e){e&&!this.getSchema(e)&&await n.call(this,{$ref:e},!0)}async function l(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;return a.call(this,t),await s.call(this,t.missingSchema),l.call(this,e)}}function a({missingSchema:e,missingRef:t}){if(this.refs[e])throw Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function s(e){let r=await u.call(this,e);this.refs[e]||await i.call(this,r.$schema),this.refs[e]||this.addSchema(r,e,t)}async function u(e){let t=this._loading[e];if(t)return t;try{return await (this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,n=this.opts.validateSchema){let i;
30if(Array.isArray(e)){for(let t of e)this.addSchema(t,void 0,r,n);return this}if("object"==typeof e){let{schemaId:t}=this.opts;if(void 0!==(i=e[t])&&"string"!=typeof i)throw Error(`schema ${t} must be string`)}return t=(0,c.normalizeId)(t||i),this._checkUnique(t),this.schemas[t]=this._addSchema(e,r,t,n,!0),this}addMetaSchema(e,t,r=this.opts.validateSchema){return this.addSchema(e,t,!0,r),this}validateSchema(e,t){let r;if("boolean"==typeof e)return!0;if(void 0!==(r=e.$schema)&&"string"!=typeof r)throw Error("$schema must be a string");if(!(r=r||this.opts.defaultMeta||this.defaultMeta()))return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(r,e);if(!n&&t){let e="schema is invalid: "+this.errorsText();if("log"===this.opts.validateSchema)this.logger.error(e);else throw Error(e)}return n}getSchema(e){let t;for(;"string"==typeof(t=S.call(this,e));)e=t;if(void 0===t){let{schemaId:r}=this.opts,n=new s.SchemaEnv({schema:{},schemaId:r});if(!(t=s.resolveSchema.call(this,n,e)))return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let t=S.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{this._cache.delete(e);let t=e[this.opts.schemaId];return t&&(t=(0,c.normalizeId)(t),delete this.schemas[t],delete this.refs[t]),this}default:throw Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if("string"==typeof e)r=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=r);else if("object"==typeof e&&void 0===t){if(Array.isArray(r=(t=e).keyword)&&!r.length)throw Error("addKeywords: keyword must be string or non-empty array")}else throw Error("invalid addKeywords parameters");if(O.call(this,r,t),!t)return(0,f.eachItem)(r,e=>$.call(this,e)),this;M.call(this,t);let n={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};return(0,f.eachItem)(r,0===n.type.length?e=>$.call(this,e,n):e=>n.type.forEach(t=>$.call(this,e,n,t))),this}getKeyword(e){let t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){let{RULES:t}=this;for(let r of(delete t.keywords[e],delete t.all[e],t.rules)){let t=r.rules.findIndex(t=>t.keyword===e);t>=0&&r.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){return e&&0!==e.length?e.map(e=>`${r}${e.instancePath} ${e.message}`).reduce((e,r)=>e+t+r):"No errors"}$dataMetaSchema(e,t){let r=this.RULES.all;for(let n of(e=JSON.parse(JSON.stringify(e)),t)){let t=n.split("/").slice(1),i=e;for(let e of t)i=i[e];for(let e in r){let t=r[e];if("object"!=typeof t)continue;let{$data:n}=t.definition,l=i[e];n&&l&&(i[e]=D(l))}}return e}_removeAllSchemas(e,t){for(let r in e){let n=e[r];(!t||t.test(r))&&("string"==typeof n?delete e[r]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[r]))}}_addSchema(e,t,r,n=this.opts.validateSchema,i=this.opts.addUsedSchema){let l,{schemaId:o}=this.opts;if("object"==typeof e)l=e[o];else if(this.opts.jtd)throw Error("schema must be object");else if("boolean"!=typeof e)throw Error("schema must be object or boolean");let a=this._cache.get(e);if(void 0!==a)return a;r=(0,c.normalizeId)(l||r);let u=c.getSchemaRefs.call(this,e,r);return a=new s.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:r,localRefs:u}),this._cache.set(a.schema,a),i&&!r.startsWith("#")&&(r&&this._checkUnique(r),this.refs[r]=a),n&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):s.compileSchema.call(this,e),!e.validate)throw Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let t=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,e)}finally{this.opts=t}}}function x(e,t,r,n="error"){for(let i in e)i in t&&this.logger[n](`${r}: option ${i}. ${e[i]}`)}
30function S(e){return e=(0,c.normalizeId)(e),this.schemas[e]||this.refs[e]}function C(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function k(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function T(e){if(Array.isArray(e))return void this.addVocabulary(e);for(let t in this.logger.warn("keywords option as map is deprecated, pass array"),e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function N(){let e={...this.opts};for(let t of y)delete e[t];return e}w.ValidationError=l.default,w.MissingRefError=o.default,t.default=w;let E={log(){},warn(){},error(){}},P=/^[a-z_$][a-z0-9_$:-]*$/i;function O(e,t){let{RULES:r}=this;if((0,f.eachItem)(e,e=>{if(r.keywords[e])throw Error(`Keyword ${e} is already defined`);if(!P.test(e))throw Error(`Keyword ${e} has invalid name`)}),t&&t.$data&&!("code"in t||"validate"in t))throw Error('$data keyword must have "code" or "validate" function')}function $(e,t,r){var n;let i=null==t?void 0:t.post;if(r&&i)throw Error('keyword with "post" flag cannot have "type"');let{RULES:l}=this,o=i?l.post:l.rules.find(({type:e})=>e===r);if(o||(o={type:r,rules:[]},l.rules.push(o)),l.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};t.before?A.call(this,o,a,t.before):o.rules.push(a),l.all[e]=a,null==(n=t.implements)||n.forEach(e=>this.addKeyword(e))}function A(e,t,r){let n=e.rules.findIndex(e=>e.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function M(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=D(t)),e.validateSchema=this.compile(t,!0))}let j={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function D(e){return{anyOf:[e,j]}}},92532:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(81708),i=r(79772),l=r(73274),o=r(73274);t.default={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:a,parentSchema:s,it:u}=e,{opts:c}=u,d=(0,n.allSchemaProperties)(r),f=d.filter(e=>(0,l.alwaysValidSchema)(u,r[e]));if(0===d.length||f.length===d.length&&(!u.opts.unevaluated||!0===u.props))return;let h=c.strictSchema&&!c.allowMatchingProperties&&s.properties,p=t.name("valid");!0===u.props||u.props instanceof i.Name||(u.props=(0,o.evaluatedPropsToName)(t,u.props));let{props:m}=u;for(let e of d)h&&function(e){for(let t in h)new RegExp(e).test(t)&&(0,l.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}(e),u.allErrors?y(e):(t.var(p,!0),y(e),t.if(p));function y(r){t.forIn("key",a,l=>{t.if((0,i._)`${(0,n.usePattern)(e,r)}.test(${l})`,()=>{let n=f.includes(r);n||e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:l,dataPropType:o.Type.Str},p),u.opts.unevaluated&&!0!==m?t.assign((0,i._)`${m}[${l}]`,!0):n||u.allErrors||t.if((0,i.not)(p),()=>t.break())})})}}}},92749:(e,t,r)=>{"use strict";r.d(t,{Ie:()=>s,Jy:()=>v,K2:()=>b,OV:()=>w,Pe:()=>h,YF:()=>u,cE:()=>S,cj:()=>m,eu:()=>d,mB:()=>f,rd:()=>p,vF:()=>x,xj:()=>y});var n=r(32532);function i(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let r of(n.append("code",e),t))n.append("v",r);throw r.search=n.toString(),Error(`Minified Lexical error #${e}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}let l="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement,o=l&&"documentMode"in document?document.documentMode:null,a=(l&&/Mac|iPod|iPhone|iPad/.test(navigator.platform),l&&/^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent));function s(e,t){return Array.from(u(e,t))}function u(e,t){return function(e,t,r){let i=(0,n.NiT)(),l=t||i,o=(0,n.ff4)(l)?(0,n.uwZ)(l,e):(0,n.IlV)(l,e),a=function(e){let t=-1;for(let r=e;null!==r;r=r.getParent())t++;return t}(l),s=r?(0,n.erb)((0,n.P6U)((0,n.IlV)(r,e)))||c(r,e):c(l,e),u=a;return(0,n.Bts)({hasNext:e=>null!==e,initial:o,map:e=>({depth:u,node:e.origin}),step:e=>{if(e.isSameNodeCaret(s))return null;(0,n.cmH)(e)&&u++;let t=(0,n.FtC)(e);return!t||t[0].isSameNodeCaret(s)?null:(u+=t[1],t[0])}})}("next",e,t)}function c(e,t){let r=(0,n.FtC)((0,n.IlV)(e,t));return r&&r[0]}function d(e,t){let r=e;for(;null!=r;){if(r instanceof t)return r;r=r.getParent()}return null}function f(e){let t=(0,n.BtT)(e,e=>(0,n.ff4)(e)&&!e.isInline());return(0,n.ff4)(t)||i(4,e.__key),t}function h(e){let t,r=(0,n.vJq)()||(0,n.S1w)();if((0,n.I2P)(r))t=(0,n.Ave)(r.focus,"next");else{if(null!=r){let e=r.getNodes(),i=e[e.length-1];i&&(t=(0,n.IlV)(i,"next"))}t=t||(0,n.uwZ)((0,n.NiT)(),"previous").getFlipped().insert((0,n.lJ7)())}let i=p(e,t),l=(0,n.erb)(i),o=(0,n.cmH)(l)?(0,n.lSZ)(l):i;return(0,n.xQ8)((0,n.sWS)(o)),e.getLatest()}function p(e,t,r){let l=(0,n.Csq)(t,"next");for(let e=l;e;e=(0,n.k1Q)(e,r))l=e;return(0,n.rN)(l)&&i(283),l.insert(e.isInline()?(0,n.lJ7)().append(e):e),(0,n.Csq)((0,n.IlV)(e.getLatest(),"next"),t.direction)}function m(e,t){let r=t();return e.replace(r),r.append(e),r}function y(e,t){return null!==e&&Object.getPrototypeOf(e).constructor.name===t.name}function v(e){let t=(0,n.vJq)();if(!(0,n.I2P)(t))return!1;let r=new Set,i=t.getNodes();for(let t=0;t<i.length;t++){let l=i[t],o=l.getKey();if(r.has(o))continue;let a=(0,n.BtT)(l,e=>(0,n.ff4)(e)&&!e.isInline());if(null===a)continue;let s=a.getKey();a.canIndent()&&!r.has(s)&&(r.add(s),e(a))}return r.size>0}function b(e,t){(0,n.uwZ)(e,"next").insert(t)}l&&"InputEvent"in window&&!o&&new window.InputEvent("input"),l&&/Version\/[\d.]+.*Safari/.test(navigator.userAgent),l&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&window.MSStream,l&&/Android/.test(navigator.userAgent),l&&/^(?=.*Chrome).*/i.test(navigator.userAgent),l&&/AppleWeb
30Kit\/[\d.]+/.test(navigator.userAgent);let _=!(a||!l)&&void 0;function w(e,t=!1){let r=1;if(function(){if(void 0===_){let e=document.createElement("div");e.style.cssText="position: absolute; opacity: 0; width: 100px; left: -1000px;",document.body.appendChild(e);let t=e.getBoundingClientRect();e.style.setProperty("zoom","2"),_=e.getBoundingClientRect().width===t.width,document.body.removeChild(e)}return _}()||t)for(;e;)r*=Number(window.getComputedStyle(e).getPropertyValue("zoom")),e=e.parentElement;return r}function x(e,t){return function e(t,r,i){let l=!1;for(let o of C(t))r(o)?null!==i&&i(o):(l=!0,(0,n.ff4)(o)&&e(o,r,i||(e=>o.insertAfter(e))),o.remove());return l}(e,t,null)}function S(e,t){let r=[],i=Array.from(e).reverse();for(let e=i.pop();void 0!==e;e=i.pop())if(t(e))r.push(e);else if((0,n.ff4)(e))for(let t of C(e))i.push(t);return r}function C(e){var t;return t=(0,n.uwZ)(e,"previous"),(0,n.Bts)({hasNext:n.OpE,initial:t.getAdjacentCaret(),map:e=>e.origin.getLatest(),step:e=>e.getAdjacentCaret()})}},92844:(e,t,r)=>{"use strict";r.d(t,{Locked:()=>d});var n=r(19749),i=r(95155),l=r(12115);r(9058);let o=({className:e})=>
30(0,i.jsxs)("svg",{className:["icon icon--lock",e].filter(Boolean).join(" "),fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{className:"stroke",d:"M7.5 9.5V7.5C7.5 6.83696 7.76339 6.20107 8.23223 5.73223C8.70107 5.26339 9.33696 5 10 5C10.663 5 11.2989 5.26339 11.7678 5.73223C12.2366 6.20107 12.5 6.83696 12.5 7.5V9.5",strokeLinecap:"round",strokeLinejoin:"round",strokeOpacity:"1"}),(0,i.jsx)("path",{className:"stroke",d:"M13.5 9.5H6.5C5.94772 9.5 5.5 9.94772 5.5 10.5V14C5.5 14.5523 5.94772 15 6.5 15H13.5C14.0523 15 14.5 14.5523 14.5 14V10.5C14.5 9.94772 14.0523 9.5 13.5 9.5Z",stopOpacity:"1",strokeLinecap:"round",strokeLinejoin:"round"})]});var a=r(83039);r(35695);let s=(0,l.createContext)({i18n:{dateFNS:a.enUS,dateFNSKey:"en-US",fallbackLanguage:"en",language:"en",t:e=>e,translations:{}},languageOptions:void 0,switchLanguage:void 0,t:e=>void 0});var u=r(41774);r(78910);let c="locked",d=e=>{var t;let r,a,d,f,h=(0,n.c)(8),{className:p,user:m}=e,[y,v]=(0,l.useState)(!1),{t:b}=(0,l.use)(s),_=(e=>e&&"object"==typeof e)(m)?null!=(t=m.email)?t:m.id:b("general:anotherUser");h[0]!==p?(r=[c,p].filter(Boolean),h[0]=p,h[1]=r):r=h[1];let w=r.join(" ");h[2]===Symbol.for("react.memo_cache_sentinel")?(a=()=>v(!0),d=()=>v(!1),h[2]=a,h[3]=d):(a=h[2],d=h[3]);let x="".concat(_," ").concat(b("general:isEditing"));return h[4]!==y||h[5]!==w||h[6]!==x?(f=(0,i.jsxs)("div",{className:w,onMouseEnter:a,onMouseLeave:d,role:"button",tabIndex:0,children:[(0,i.jsx)(u.m,{alignCaret:"left",className:"".concat(c,"__tooltip"),position:"top",show:y,children:x}),(0,i.jsx)(o,{})]}),h[4]=y,h[5]=w,h[6]=x,h[7]=f):f=h[7],f}},93253:(e,t,r)=>{"use strict";r.d(t,{IDCell:()=>l});var n=r(95155),i=r(12115);function l(e){let{id:t}=e;return(0,n.jsx)(i.Fragment,{children:t})}},93524:(e,t,r)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;let i=r(53921);class l extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(n||(t.UsedValueState=n={})),t.varKinds={const:new i.Name("const"),let:new i.Name("let"),var:new i.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof i.Name?e:this.name(e)}name(e){return new i.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if((null==(r=null==(t=this._parent)?void 0:t._prefixes)?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=o;class a extends i.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e,this.scopePath=(0,i._)`.${new i.Name(t)}[${r}]`}}t.ValueScopeName=a;let s=(0,i._)`\n`;class u extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?s:i.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var r;if(void 0===t.ref)throw Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:i}=n,l=null!=(r=t.key)?r:t.ref,o=this._values[i];if(o){let e=o.get(l);if(e)return e}else o=this._values[i]=new Map;o.set(l,n);let a=this._scope[i]||(this._scope[i]=[]),s=a.length;return a[s]=t.ref,n.setValue(t,{property:i,itemIndex:s}),n}getValue(e,t){let r=this._values[e];if(r)return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,t=>{if(void 0===t.scopePath)throw Error(`CodeGen: name "${t}" has no value`);return(0,i._)`${e}${t.scopePath}`})}scopeCode(e=this._values,t,r){return this._reduceValues(e,e=>{if(void 0===e.value)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,r)}_reduceValues(e,r,o={},a){let s=i.nil;for(let u in e){let c=e[u];if(!c)continue;let d=o[u]=o[u]||new Map;c.forEach(e=>{if(d.has(e))return;d.set(e,n.Started);let o=r(e);if(o){let r=this.opts.es5?t.varKinds.var:t.varKinds.const;s=(0,i._)`${s}${r} ${e} = ${o};${this.opts._n}`}else if(o=null==a?void 0:a(e))s=(0,i._)`${s}${o}${this.opts._n}`;else throw new l(e);d.set(e,n.Completed)})}return s}}t.ValueScope=u},93810:(e,t,r)=>{"use strict";
30Object.defineProperty(t,"__esModule",{value:!0});let n=r(79772),i=r(73274),l=r(36148);t.default={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message:({keyword:e,schemaCode:t})=>(0,n.str)`must NOT have ${"maxLength"===e?"more":"fewer"} than ${t} characters`,params:({schemaCode:e})=>(0,n._)`{limit: ${e}}`},code(e){let{keyword:t,data:r,schemaCode:o,it:a}=e,s="maxLength"===t?n.operators.GT:n.operators.LT,u=!1===a.opts.unicode?(0,n._)`${r}.length`:(0,n._)`${(0,i.useFunc)(e.gen,l.default)}(${r})`;e.fail$data((0,n._)`${u} ${s} ${o}`)}}},93916:(e,t,r)=>{"use strict";r.d(t,{a:()=>s});var n=r(19749),i=r(94271),l=r(92825),o=r(32532),a=r(12115),s=(e,t)=>{let r,s=(0,n.c)(24),[u]=(0,i.DF)(),[c,d]=(0,a.useState)(null),[f,h]=(0,a.useState)(!1),{closeModal:p,modalState:m,toggleModal:y}=(0,l.useModal)(),v;s[0]!==u?(v=()=>{u.read(()=>{d((0,o.vJq)()??(0,o.S1w)())})},s[0]=u,s[1]=v):v=s[1];let b=v,_;s[2]!==u||s[3]!==c?(_=()=>{c&&u.update(()=>{(0,o.n1P)(c.clone())},{discrete:!0,skipTransforms:!0})},s[2]=u,s[3]=c,s[4]=_):_=s[4];let w=_,x;s[5]!==p||s[6]!==e?(x=()=>{p(e)},s[5]=p,s[6]=e,s[7]=x):x=s[7];let S=x,C=m?.[e]?.isOpen,k;s[8]!==C||s[9]!==w||s[10]!==e||s[11]!==b||s[12]!==y?(k=()=>{C?w():b(),h(!0),y(e)},s[8]=C,s[9]=w,s[10]=e,s[11]=b,s[12]=y,s[13]=k):k=s[13];let T=k,N,E;return s[14]!==m||s[15]!==t||s[16]!==w||s[17]!==e||s[18]!==f?(N=()=>{if(!f)return;let r=m[e];r&&!r?.isOpen&&(h(!1),t?setTimeout(()=>{w()},0):w())},E=[m,e,w,f,t],s[14]=m,s[15]=t,s[16]=w,s[17]=e,s[18]=f,s[19]=N,s[20]=E):(N=s[19],E=s[20]),(0,a.useEffect)(N,E),s[21]!==S||s[22]!==T?(r={closeDrawer:S,toggleDrawer:T},s[21]=S,s[22]=T,s[23]=r):r=s[23],r}},93974:(e,t,r)=>{"use strict";r.d(t,{AutosaveCell:()=>s});var n=r(19749),i=r(95155),l=r(63344),o=r(92825);r(12115);var a=r(18940);let s=e=>{let t,r=(0,n.c)(5),{currentlyPublishedVersion:s,latestDraftVersion:u,rowData:c}=e,{t:d}=(0,l.d)();return r[0]!==s||r[1]!==u||r[2]!==c||r[3]!==d?(t=(0,i.jsxs)("div",{className:"".concat("autosave-cell","__items"),children:[(null==c?void 0:c.autosave)&&(0,i.jsx)(o.Pill,{size:"small",children:d("version:autosave")}),(0,i.jsx)(a.VersionPillLabel,{currentlyPublishedVersion:s,disableDate:!0,doc:c,labelFirst:!1,labelStyle:"pill",latestDraftVersion:u})]}),r[0]=s,r[1]=u,r[2]=c,r[3]=d,r[4]=t):t=r[4],t}},94271:(e,t,r)=>{"use strict";r.d(t,{DF:()=>o,Gu:()=>i,Mx:()=>l});var n=r(12115);let i=(0,n.createContext)(null);function l(e,t){let r=null;return null!=e&&(r=e[1]),{getTheme:function(){return null!=t?t:null!=r?r.getTheme():null}}}function o(){let e=(0,n.useContext)(i);return null==e&&function(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let e of(n.append("code",8),t))n.append("v",e);throw r.search=n.toString(),Error(`Minified Lexical error #${8}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(8),e}},94754:(e,t,r)=>{"use strict";r.d(t,{d:()=>I});var n=r(12115),i=r(675),l=r(16377),o=r(39827),a=r(1834),s=r(39531),u=r(97238),c=r(86296),d=r(81971),f=r(71807),h=r(93389),p=r(37713),m=r(78892),y=r(21909),v=r(71225),b=["x1","y1","x2","y2","key"],_=["offset"],w=["xAxisId","yAxisId"],x=["xAxisId","yAxisId"];function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach(function(t){var n,i,l;n=e,i=t,l=r[t],(i=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(i))in n?Object.defineProperty(n,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):n[i]=l}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEac
30h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function k(){return(k=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function T(e,t){if(null==e)return{};var r,n,i=function(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)r=l[n],-1===t.indexOf(r)&&({}).propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var N=e=>{var t=e.fill;if(!t||"none"===t)return null;var r=e.fillOpacity,i=e.x,l=e.y,o=e.width,a=e.height,s=e.ry;return n.createElement("rect",{x:i,y:l,ry:s,width:o,height:a,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function E(e){var t=e.option,r=e.lineItemProps;if(n.isValidElement(t))i=n.cloneElement(t,r);else if("function"==typeof t)i=t(r);else{var i,l,o=r.x1,a=r.y1,s=r.x2,u=r.y2,c=r.key,d=T(r,b),f=null!=(l=(0,p.uZ)(d))?l:{},h=(f.offset,T(f,_));i=n.createElement("line",k({},h,{x1:o,y1:a,x2:s,y2:u,fill:"none",key:c}))}return i}function P(e){var t=e.x,r=e.width,i=e.horizontal,l=void 0===i||i,o=e.horizontalPoints;if(!l||!o||!o.length)return null;e.xAxisId,e.yAxisId;var a=T(e,w),s=o.map((e,i)=>{var o=C(C({},a),{},{x1:t,y1:e,x2:t+r,y2:e,key:"line-".concat(i),index:i});return n.createElement(E,{key:"line-".concat(i),option:l,lineItemProps:o})});return n.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function O(e){var t=e.y,r=e.height,i=e.vertical,l=void 0===i||i,o=e.verticalPoints;if(!l||!o||!o.length)return null;e.xAxisId,e.yAxisId;var a=T(e,x),s=o.map((e,i)=>{var o=C(C({},a),{},{x1:e,y1:t,x2:e,y2:t+r,key:"line-".concat(i),index:i});return n.createElement(E,{option:l,lineItemProps:o,key:"line-".concat(i)})});return n.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function $(e){var t=e.horizontalFill,r=e.fillOpacity,i=e.x,l=e.y,o=e.width,a=e.height,s=e.horizontalPoints,u=e.horizontal;if(!(void 0===u||u)||!t||!t.length||null==s)return null;var c=s.map(e=>Math.round(e+l-l)).sort((e,t)=>e-t);l!==c[0]&&c.unshift(0);var d=c.map((e,s)=>{var u=c[s+1],d=null==u?l+a-e:u-e;if(d<=0)return null;var f=s%t.length;return n.createElement("rect",{key:"react-".concat(s),y:e,x:i,height:d,width:o,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function A(e){var t=e.vertical,r=e.verticalFill,i=e.fillOpacity,l=e.x,o=e.y,a=e.width,s=e.height,u=e.verticalPoints;if(!(void 0===t||t)||!r||!r.length)return null;var c=u.map(e=>Math.round(e+l-l)).sort((e,t)=>e-t);l!==c[0]&&c.unshift(0);var d=c.map((e,t)=>{var u=c[t+1],d=null==u?l+a-e:u-e;if(d<=0)return null;var f=t%r.length;return n.createElement("rect",{key:"react-".concat(t),x:e,y:o,width:d,height:s,stroke:"none",fill:r[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return n.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var M=(e,t)=>{var r=e.xAxis,n=e.width,i=e.height,l=e.offset;return(0,o.PW)((0,a.f)(C(C(C({},s.F),r),{},{ticks:(0,o.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),l.left,l.left+l.width,t)},j=(e,t)=>{var r=e.yAxis,n=e.width,i=e.height,l=e.offset;return(0,o.PW)((0,a.f)(C(C(C({},s.F),r),{},{ticks:(0,o.Rh)(r,!0),viewBox:{x:0,y:0,width:n,height:i}})),l.top,l.top+l.height,t)},D={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:v.I.grid};function I(e){var t=(0,u.yi)(),r=(0,u.rY)(),o=(0,u.W7)(),a=C(C({},(0,h.e)(e,D)),{},{x:(0,l.Et)(e.x)?e.x:o.left,y:(0,l.Et)(e.y)?e.y:o.top,width:(0,l.Et)(e.width)?e.width:o.width,height:(0,l.Et)(e.height)?e.height:o.height}),s=a.xAxisId,p=a.yAxisId,v=a.x,b=a.y,_=a.width,w=a.height,x=a.syncWithTicks,S=a.horizontalValues,T=a.verticalValues,E=(0,f.r)(),I=(0,d.G)(e=>(0,c.ZB)(e,"xAxis",s,E)),F=(0,d.G)(e=>(0,c.ZB)(e,"yAxis",p,E));if(!(0,m.F)(_)||!(0,m.F)(w)||!(0,l.Et)(v)||!(0,l.Et)(b))return null;var R=a.verticalCoordinatesGenerator||M,L=a.horizontalCoordinatesGenerator||j,B=a.horizontalPoints,z=a.verticalPoints;
30if((!B||!B.length)&&"function"==typeof L){var K=S&&S.length,U=L({yAxis:F?C(C({},F),{},{ticks:K?S:F.ticks}):void 0,width:null!=t?t:_,height:null!=r?r:w,offset:o},!!K||x);(0,i.R)(Array.isArray(U),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof U,"]")),Array.isArray(U)&&(B=U)}if((!z||!z.length)&&"function"==typeof R){var W=T&&T.length,J=R({xAxis:I?C(C({},I),{},{ticks:W?T:I.ticks}):void 0,width:null!=t?t:_,height:null!=r?r:w,offset:o},!!W||x);(0,i.R)(Array.isArray(J),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof J,"]")),Array.isArray(J)&&(z=J)}return n.createElement(y.g,{zIndex:a.zIndex},n.createElement("g",{className:"recharts-cartesian-grid"},n.createElement(N,{fill:a.fill,fillOpacity:a.fillOpacity,x:a.x,y:a.y,width:a.width,height:a.height,ry:a.ry}),n.createElement($,k({},a,{horizontalPoints:B})),n.createElement(A,k({},a,{verticalPoints:z})),n.createElement(P,k({},a,{offset:o,horizontalPoints:B,xAxis:I,yAxis:F})),n.createElement(O,k({},a,{offset:o,verticalPoints:z,xAxis:I,yAxis:F}))))}I.displayName="CartesianGrid"},95490:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});let n={};function i(){return n}},95546:(e,t,r)=>{"use strict";r.d(t,{F:()=>i,l:()=>n});let n=e=>{if(!e)return;let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(t){console.error("Error parsing columns",e,t)}if(t&&Array.isArray(t))return t.map(e=>{if("string"==typeof e){let t="-"!==e[0];return{accessor:t?e:e.slice(1),active:t}}return{accessor:e.accessor,active:e.active}})},i=e=>e?.map(e=>e.active?e.accessor:`-${e.accessor}`)},96189:(e,t,r)=>{"use strict";let{isUUID:n}=r(40652),i=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,l=["http","https","ws","wss","urn","urn:uuid"];function o(e){return!0===e.secure||!1!==e.secure&&!!e.scheme&&3===e.scheme.length&&("w"===e.scheme[0]||"W"===e.scheme[0])&&("s"===e.scheme[1]||"S"===e.scheme[1])&&("s"===e.scheme[2]||"S"===e.scheme[2])}function a(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function s(e){let t="https"===String(e.scheme).toLowerCase();return(e.port===(t?443:80)||""===e.port)&&(e.port=void 0),e.path||(e.path="/"),e}let u={scheme:"http",domainHost:!0,parse:a,serialize:s},c={scheme:"https",domainHost:u.domainHost,parse:a,serialize:s},d={scheme:"ws",domainHost:!0,parse:function(e){return e.secure=o(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e},serialize:function(e){if((e.port===(o(e)?443:80)||""===e.port)&&(e.port=void 0),"boolean"==typeof e.secure&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&"/"!==t?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}},f={scheme:"wss",domainHost:d.domainHost,parse:d.parse,serialize:d.serialize},h={http:u,https:c,ws:d,wss:f,urn:{scheme:"urn",parse:function(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(i);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=p(`${n}:${t.nid||e.nid}`);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e},serialize:function(e,t){if(void 0===e.nid)throw Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=p(`${r}:${t.nid||n}`);i&&(e=i.serialize(e,t));let l=e,o=e.nss;return l.path=`${n||t.nid}:${o}`,t.skipEscape=!0,l},skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:function(e,t){return e.uuid=e.nss,e.nss=void 0,t.tolerant||e.uuid&&n(e.uuid)||(e.error=e.error||"UUID is not valid."),e},serialize:function(e){return e.nss=(e.uuid||"").toLowerCase(),e},skipNormalize:!0}};function p(e){return e&&(h[e]||h[e.toLowerCase()])||void 0}Object.setPrototypeOf(h,null),e.exports={wsIsSecure:o,SCHEMES:h,isValidSchemeName:function(e){return -1!==l.indexOf(e)},getSchemeHandler:p}},96504:e=>{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},97208:(e,t,r)=>{"use strict";
30Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;let n=r(79772),i=r(73274);function l(e,t){let{gen:r,schema:l,data:o,keyword:a,it:s}=e;s.items=!0;let u=r.const("len",(0,n._)`${o}.length`);if(!1===l)e.setParams({len:t.length}),e.pass((0,n._)`${u} <= ${t.length}`);else if("object"==typeof l&&!(0,i.alwaysValidSchema)(s,l)){let l=r.var("valid",(0,n._)`${u} <= ${t.length}`);r.if((0,n.not)(l),()=>{var o;return o=l,void r.forRange("i",t.length,u,t=>{e.subschema({keyword:a,dataProp:t,dataPropType:i.Type.Num},o),s.allErrors||r.if((0,n.not)(o),()=>r.break())})}),e.ok(l)}}t.validateAdditionalItems=l,t.default={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,n.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,n._)`{limit: ${e}}`},code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n))return void(0,i.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');l(e,n)}}},97825:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(53745),i=r(28565),l=r(20419),o=r(50301),a=r(86200);t.default=[n.default,i.default,(0,l.default)(),o.default,a.metadataVocabulary,a.contentVocabulary]},98552:(e,t,r)=>{"use strict";r.d(t,{Wrapper:()=>o});var n=r(19749),i=r(95155),l=r(92825);r(12115);let o=e=>{let t,r,o=(0,n.c)(9),{baseClass:a,children:s,className:u}=e,{hydrated:c,navOpen:d,shouldAnimate:f}=(0,l.useNav)(),h=d&&"".concat(a,"--nav-open"),p=f&&"".concat(a,"--nav-animate"),m=c&&"".concat(a,"--nav-hydrated");o[0]!==a||o[1]!==u||o[2]!==h||o[3]!==p||o[4]!==m?(t=[a,u,h,p,m].filter(Boolean),o[0]=a,o[1]=u,o[2]=h,o[3]=p,o[4]=m,o[5]=t):t=o[5];let y=t.join(" ");return o[6]!==s||o[7]!==y?(r=(0,i.jsx)("div",{className:y,children:s}),o[6]=s,o[7]=y,o[8]=r):r=o[8],r}},98574:(e,t,r)=>{"use strict";r.d(t,{Text:()=>s});var n=r(19749),i=r(95155),l=r(92825),o=r(63344);function a(e){return"string"==typeof e?{tokenizeByCharacter:!0,value:(0,l.escapeDiffHTML)(e)}:"number"==typeof e?{tokenizeByCharacter:!0,value:String(e)}:"boolean"==typeof e?{tokenizeByCharacter:!1,value:String(e)}:e&&"object"==typeof e?{tokenizeByCharacter:!1,value:"<pre>".concat((0,l.escapeDiffHTML)(JSON.stringify(e,null,2)),"</pre>")}:{tokenizeByCharacter:!0,value:void 0}}r(12115);let s=e=>{let t,r=(0,n.c)(8),{comparisonValue:s,field:u,locale:c,nestingLevel:d,versionValue:f}=e,{i18n:h}=(0,o.d)(),p="";if(f==s&&(p='<span class="html-diff-no-value"><span>'),r[0]!==u.label||r[1]!==h||r[2]!==c||r[3]!==d||r[4]!==p||r[5]!==s||r[6]!==f){var m,y,v,b;let e=a(s),n=a(f),o=!0;(null==(m=e.value)?void 0:m.length)?o=e.tokenizeByCharacter:(null==(y=n.value)?void 0:y.length)&&(o=n.tokenizeByCharacter);let _=null!=(v=e.value)?v:p,w=null!=(b=n.value)?b:p,{From:x,To:S}=(0,l.getHTMLDiffComponents)({fromHTML:"<p>"+_+"</p>",postProcess:l.unescapeDiffHTML,toHTML:"<p>"+w+"</p>",tokenizeByCharacter:o});t=(0,i.jsx)(l.FieldDiffContainer,{className:"text-diff",From:x,i18n:h,label:{label:u.label,locale:c},nestingLevel:d,To:S}),r[0]=u.label,r[1]=h,r[2]=c,r[3]=d,r[4]=p,r[5]=s,r[6]=f,r[7]=t}else t=r[7];return t}},99155:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=r(51616);n.code='require("ajv/dist/runtime/equal").default',t.default=n},99664:(e,t,r)=>{"use strict";r.d(t,{FolderTableCellClient:()=>u});var n=r(95155),i=r(6001),l=r(12115),o=r(41412),a=r(63344),s=r(92825);let u=e=>{let{collectionSlug:t,data:r,docTitle:u,folderCollectionSlug:c,folderFieldName:d,viewType:f}=e,h=r.id,p=null==r?void 0:r[d],{config:m}=(0,o.c)(),{t:y}=(0,a.d)(),[v,b]=l.useState(()=>p?"".concat(y("general:loading"),"..."):y("folder:noFolder")),[_,w]=l.useState(p),x=l.useRef(!1),S=l.useCallback(async e=>{let{id:r,name:n}=e;try{await fetch((0,i.Q)({apiRoute:m.routes.api,path:"/".concat(t,"/").concat(h)}),{body:JSON.stringify({[d]:r}),credentials:"include",headers:{"Content-Type":"application/json"},method:"PATCH"}),w(r),b(n||y("folder:noFolder"))}catch(e){console.error("Error moving document to folder",e)}},[m.routes.api,t,h,d,y]);return(0,l.useEffect)(()=>{let e=async()=>{try{let e=await fetch((0,i.Q)({apiRoute:m.routes.api,path:"/".concat(c).concat(p?"/".concat(p):"")}),{credentials:"include",headers:{"Content-Type":"application/json"},method:"GET"}),t=await e.json();b((null==t?void 0:t.name)||y("folder:noFolder"))}catch(e){console.error("Error moving document to folder",e)}};x.current||(e(),x.current=!0)},[m.routes.api,c,p,y]),(0,n.jsx)(s.MoveDocToFolderButton,{buttonProps:{disabled:"trash"===f,size:"small"},collectionSlug:t,docData:r,docID:h,docTitle:u,folderCollectionSlug:c,folderFieldName:d,fromFolderID:_,fromFolderName:v,modalSlug:"move-doc-to-folder-cell--".concat(h),onConfirm:S,skipConfirmModal:!1})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.