1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6055],{14138:(e,t,r)=>{r.d(t,{s:()=>c});var n=r(41867),o=r(89220),i=r(7620),s=r(54568);function a(e){let t=e.transform();return new Set(t?[t]:[])}let l=()=>{},u=()=>{};function c({initialEditor:e,children:t,initialNodes:r,initialTheme:c,skipCollabChecks:d,skipEditableListener:f}){let g=(0,i.useRef)(!1),p=(0,i.useContext)(o.Gu);null==p&&function(e,...t){let r=new URL("https://lexical.dev/docs/error"),n=new URLSearchParams;for(let e of(n.append("code",9),t))n.append("v",e);throw r.search=n.toString(),Error(`Minified Lexical error #${9}; visit ${r.toString()} for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`)}(9);let[h,{getTheme:m}]=p,b=(0,i.useMemo)(()=>{let t=c||m()||void 0,n=(0,o.Mx)(p,t);void 0!==t&&(e._config.theme=t),e._parentEditor=e._parentEditor||h;let i=e._createEditorArgs,s=i&&i.namespace;if(r)for(let t of(l(),s||(u(),e._config.namespace=h._config.namespace),r)){let r=null,n=null;if("function"!=typeof t){let e=t;t=e.replace,r=e.with,n=e.withKlass||null}let o=e._nodes.get(t.getType());e._nodes.set(t.getType(),{exportDOM:o?o.exportDOM:void 0,klass:t,replace:r,replaceWithKlass:n,transforms:a(t)})}else if(i&&i.nodes)s||(u(),e._config.namespace=h._config.namespace);else{let t=e._nodes=new Map(h._nodes);for(let[r,n]of(s||(e._config.namespace=h._config.namespace),t))e._nodes.set(r,{exportDOM:n.exportDOM,klass:n.klass,replace:n.replace,replaceWithKlass:n.replaceWithKlass,transforms:a(n.klass)})}return[e,n]},[]),{isCollabActive:y,yjsDocMap:w}=(0,n.k)(),v=d||g.current||w.has(e.getKey());return(0,i.useEffect)(()=>{v&&(g.current=!0)},[v]),(0,i.useEffect)(()=>{if(!f){let t=t=>e.setEditable(t);
1return t(h.isEditable()),h.registerEditableListener(t)}},[e,h,f]),(0,s.jsx)(o.Gu.Provider,{value:b,children:!y||v?t:null})}},14277:(e,t,r)=>{r.d(t,{$:()=>p});var n=r(89220),o=r(95224),i=r(12150),s=r(15062),a=r(7620),l=r(97509),u=r(54568),c=r(62147),d=r(4679);let f="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?a.useLayoutEffect:a.useEffect;function g(e){return e.getEditorState().read((0,i.yl)(e.isComposing()))}function p({contentEditable:e,placeholder:t=null,ErrorBoundary:r}){var o;let[i]=(0,n.DF)(),g=function(e,t){let[r,n]=(0,a.useState)(()=>e.getDecorators());return f(()=>e.registerDecoratorListener(e=>{(0,l.flushSync)(()=>{n(e)})}),[e]),(0,a.useEffect)(()=>{n(e.getDecorators())},[e]),(0,a.useMemo)(()=>{let n=[],o=Object.keys(r);for(let i=0;i<o.length;i++){let s=o[i],c=(0,u.jsx)(t,{onError:t=>e._onError(t),children:(0,u.jsx)(a.Suspense,{fallback:null,children:r[s]})}),d=e.getElementByKey(s);null!==d&&n.push((0,l.createPortal)(c,d,s))}return n},[t,r,e])}(i,r);return f(()=>(0,s.Sd)((0,d.ZI)(o),function(e){let t=window.location.origin,r=r=>{if(r.origin!==t)return;let n=e.getRootElement();if(document.activeElement!==n)return;let o=r.data;if("string"==typeof o){let t;try{t=JSON.parse(o)}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,o,i,s,a,l]=t;e.update(()=>{let e=(0,c.vJq)();if((0,c.I2P)(e)){let t=e.anchor,l=t.getNode(),u=0,d=0;if((0,c.kFe)(l)&&n>=0&&o>=0&&(u=n,d=n+o,e.setTextNodeRange(l,u,l,d)),u===d&&""===i||(e.insertRawText(i),l=t.getNode()),(0,c.kFe)(l)){u=s,d=s+a;let t=l.getTextContentSize();u=u>t?t:u,d=d>t?t:d,e.setTextNodeRange(l,u,l,d)}r.stopImmediatePropagation()}})}}}}};return window.addEventListener("message",r,!0),()=>{window.removeEventListener("message",r,!0)}}(o)),[o=i]),(0,u.jsxs)(u.Fragment,{children:[e,(0,u.jsx)(h,{content:t}),g]})}function h({content:e}){let[t]=(0,n.DF)(),r=function(e){let[t,r]=(0,a.useState)(()=>g(e));return f(()=>{function t(){r(g(e))}return t(),(0,s.Sd)(e.registerUpdateListener(()=>{t()}),e.registerEditableListener(()=>{t()}))},[e]),t}(t),i=(0,o.a)();return r?"function"==typeof e?e(i):e:null}},19788:(e,t,r)=>{r.d(t,{x:()=>i});var n=r(89220),o=r(7620);function i({defaultSelection:e}){let[t]=(0,n.DF)();return(0,o.useEffect)(()=>{t.focus(()=>{let e=document.activeElement,r=t.getRootElement();null===r||null!==e&&r.contains(e)||r.focus({preventScroll:!0})},{defaultSelection:e})},[e,t]),null}},41867:(e,t,r)=>{r.d(t,{k:()=>a});var n=r(7620);let o=[["Cat","rgb(125, 50, 0)"],["Dog","rgb(100, 0, 0)"],["Rabbit","rgb(150, 0, 0)"],["Frog","rgb(200, 0, 0)"],["Fox","rgb(200, 75, 0)"],["Hedgehog","rgb(0, 75, 0)"],["Pigeon","rgb(0, 125, 0)"],["Squirrel","rgb(75, 100, 0)"],["Bear","rgb(125, 100, 0)"],["Tiger","rgb(0, 0, 150)"],["Leopard","rgb(0, 0, 200)"],["Zebra","rgb(0, 0, 250)"],["Wolf","rgb(0, 100, 150)"],["Owl","rgb(0, 100, 100)"],["Gull","rgb(100, 0, 100)"],["Squid","rgb(150, 0, 150)"]],i=o[Math.floor(Math.random()*o.length)],s=(0,n.createContext)({clientID:0,color:i[1],isCollabActive:!1,name:i[0],yjsDocMap:new Map});function a(e,t){let r=(0,n.useContext)(s);return null!=e&&(r.name=e),null!=t&&(r.color=t),r}},57952:(e,t,r)=>{r.d(t,{w:()=>u});var n=r(54568),o=r(7620),i=r(15062),s=r(63038);function a(e,t,r){return Math.min(Math.max(e,t),r)}let l={east:1,north:8,south:2,west:4};function u(e){let{onResizeStart:t,onResizeEnd:r,buttonRef:u,imageRef:c,maxWidth:d,editor:f,showCaption:g,setShowCaption:p,captionsEnabled:h}=e,m=(0,o.useRef)(null),b=(0,o.useRef)({priority:"",value:"default"}),y=(0,o.useRef)({currentHeight:0,currentWidth:0,direction:0,isResizing:!1,ratio:0,startHeight:0,startWidth:0,startX:0,startY:0}),w=f.getRootElement(),v=d||(null!==w?w.getBoundingClientRect().width-20:100),x=null!==w?w.getBoundingClientRect().height-20:100,E=e=>{let t=e===l.east||e===l.west,r=e===l.north||e===l.south,n=e&l.north&&e&l.west||e&l.south&&e&l.east,o=t?"ew":r?"ns":n?"nwse":"nesw";null!==w&&w.style.setProperty("cursor","".concat(o,"-resize"),"important"),null!==document.body&&(document.body.style.setProperty("cursor","".concat(o,"-resize"),"important"),b.current.value=document.body.style.getPropertyValue("-webkit-user-select"),b.current.priority=document.body.style.getPropertyPriority("-webkit-user-select"),document.body.style.setProperty("-webkit-user-select","none","important"))},k=()=>{null!==w&&w.style.setProperty("cursor","text"),null!==document.body&&(document.body.style.setProperty("cursor","default"),document.body.style.setProperty("-webkit-user-select",b.current.value,b.current.priority))},_=(e,r)=>{if(!f.isEditable())return;let n=c.current,o=m.current;if(null!==n&&null!==o){e.preventDefault();let{width:s,height:a}=n.getBoundingClientRect(),l=(0,i.OV)(n),u=y.current;u.startWidth=s,u.startHeight=a,u.ratio=s/a,u.currentWidth=s,u.currentHeight=a,u.startX=e.clientX/l,u.startY=e.clientY/l,u.isResizing=!0,u.direction=r,E(r),t(),o.classList.add("touch-action-none"),n.style.height="".concat(a,"px"),n.style.width="".concat(s,"px"),document.addEventListener("pointermove",C),document.addEventListener("pointerup",S
1)}},C=e=>{let t=c.current,r=y.current,n=r.direction&(l.east|l.west),o=r.direction&(l.south|l.north);if(null!==t&&r.isResizing){let s=(0,i.OV)(t);if(n&&o){let n=Math.floor(r.startX-e.clientX/s);n=r.direction&l.east?-n:n;let o=a(r.startWidth+n,100,v),i=o/r.ratio;t.style.width="".concat(o,"px"),t.style.height="".concat(i,"px"),r.currentHeight=i,r.currentWidth=o}else if(o){let n=Math.floor(r.startY-e.clientY/s);n=r.direction&l.south?-n:n;let o=a(r.startHeight+n,100,x);t.style.height="".concat(o,"px"),r.currentHeight=o}else{let n=Math.floor(r.startX-e.clientX/s);n=r.direction&l.east?-n:n;let o=a(r.startWidth+n,100,v);t.style.width="".concat(o,"px"),r.currentWidth=o}}},S=()=>{let e=c.current,t=y.current,n=m.current;if(null!==e&&null!==n&&t.isResizing){let e=t.currentWidth,o=t.currentHeight;t.startWidth=0,t.startHeight=0,t.ratio=0,t.startX=0,t.startY=0,t.currentWidth=0,t.currentHeight=0,t.isResizing=!1,n.classList.remove("touch-action-none"),k(),r(e,o),document.removeEventListener("pointermove",C),document.removeEventListener("pointerup",S)}};return(0,n.jsxs)("div",{ref:m,children:[!g&&h&&(0,n.jsx)(s.$,{className:"image-caption-button absolute bottom-1 left-1/2 -translate-x-1/2",ref:u,variant:"outline",onClick:()=>{p(!g)},children:"Add Caption"}),(0,n.jsx)("div",{className:"image-resizer image-resizer-n absolute -top-2.5 left-1/2 h-3 w-3 -translate-x-1/2 cursor-ns-resize bg-primary",onPointerDown:e=>{_(e,l.north)}}),(0,n.jsx)("div",{className:"image-resizer image-resizer-ne absolute -right-2.5 -top-2.5 h-3 w-3 cursor-nesw-resize bg-primary",onPointerDown:e=>{_(e,l.north|l.east)}}),(0,n.jsx)("div",{className:"image-resizer image-resizer-e absolute -right-2.5 top-1/2 h-3 w-3 -translate-y-1/2 cursor-ew-resize bg-primary",onPointerDown:e=>{_(e,l.east)}}),(0,n.jsx)("div",{className:"image-resizer image-resizer-se absolute -bottom-2.5 -right-2.5 h-3 w-3 cursor-nwse-resize bg-primary",onPointerDown:e=>{_(e,l.south|l.east)}}),(0,n.jsx)("div",{className:"image-resizer image-resizer-s absolute -bottom-2.5 left-1/2 h-3 w-3 -translate-x-1/2 cursor-ns-resize bg-primary",onPointerDown:e=>{_(e,l.south)}}),(0,n.jsx)("div",{className:"image-resizer image-resizer-sw absolute -bottom-2.5 -left-2.5 h-3 w-3 cursor-nesw-resize bg-primary",onPointerDown:e=>{_(e,l.south|l.west)}}),(0,n.jsx)("div",{className:"image-resizer image-resizer-w absolute -left-2.5 top-1/2 h-3 w-3 -translate-y-1/2 cursor-ew-resize bg-primary",onPointerDown:e=>{_(e,l.west)}}),(0,n.jsx)("div",{className:"image-resizer image-resizer-nw absolute -left-2.5 -top-2.5 h-3 w-3 cursor-nwse-resize bg-primary",onPointerDown:e=>{_(e,l.north|l.west)}})]})}},76055:(e,t,r)=>{r.r(t),r.d(t,{RIGHT_CLICK_IMAGE_COMMAND:()=>x,default:()=>_});var n=r(54568),o=r(7620),i=r(19788),s=r(41867),a=r(89220),l=r(78261),u=r(15062),c=r(62147);function d(e){e.undoStack=[],e.redoStack=[],e.current=null}function f({delay:e,externalHistoryState:t}){let[r]=(0,a.DF)();return function(e,t,r=1e3){let n=(0,o.useMemo)(()=>t||{current:null,redoStack:[],undoStack:[]},[t]);(0,o.useEffect)(()=>(function(e,t,r){let n,o,i=(n=Date.now(),o=0,(t,i,s,a,l,u)=>{let d=Date.now();if(u.has("historic"))return o=0,n=d,2;let f=function(e,t,r,n,o){if(null===e||0===r.size&&0===n.size&&!o)return 0;let i=t._selection,s=e._selection;if(o)return 1;if(!((0,c.I2P)(i)&&(0,c.I2P)(s)&&s.isCollapsed()&&i.isCollapsed()))return 0;let a=function(e,t,r){let n=e._nodeMap,o=[];for(let e of t){let t=n.get(e);void 0!==t&&o.push(t)}for(let[e,t]of r){if(!t)continue;let r=n.get(e);void 0===r||(0,c.hVZ)(r)||o.push(r)}return o}(t,r,n);if(0===a.length)return 0;if(a.length>1){let r=t._nodeMap,n=r.get(i.anchor.key),o=r.get(s.anchor.key);return n&&o&&!e._nodeMap.has(n.__key)&&(0,c.kFe)(n)&&1===n.__text.length&&1===i.anchor.offset?2:0}let l=a[0],u=e._nodeMap.get(l.__key);if(!(0,c.kFe)(u)||!(0,c.kFe)(l)||u.__mode!==l.__mode)return 0;let d=u.__text,f=l.__text;if(d===f)return 0;let g=i.anchor,p=s.anchor;if(g.key!==p.key||"text"!==g.type)return 0;let h=g.offset,m=p.offset,b=f.length-d.length;return 1===b&&m===h-1?2:-1===b&&m===h+1?3:4*(-1===b&&m===h)}(t,i,a,l,e.isComposing()),g=(()=>{let g=null===s||s.editor===e,p=u.has("history-push");if(!p&&g&&u.has("history-merge"))return 0;if(null===t)return 1;let h=i._selection;return a.size>0||l.size>0?!1===p&&0!==f&&f===o&&d<n+r&&g||1===a.size&&function(e,t,r){let n=t._nodeMap.get(e),o=r._nodeMap.get(e),i=t._selection,s=r._selection;return!((0,c.I2P)(i)&&(0,c.I2P)(s)&&"element"===i.anchor.type&&"element"===i.focus.type&&"text"===s.anchor.type&&"text"===s.focus.type||!(0,c.kFe)(n)||
1!(0,c.kFe)(o)||n.__parent!==o.__parent)&&JSON.stringify(t.read(()=>n.exportJSON()))===JSON.stringify(r.read(()=>o.exportJSON()))}(Array.from(a)[0],t,i)?0:1:2*(null===h)})();return n=d,o=f,g});return(0,u.Sd)(e.registerCommand(c.ZKf,()=>((function(e,t){let r=t.redoStack,n=t.undoStack;if(0!==n.length){let o=t.current,i=n.pop();null!==o&&(r.push(o),e.dispatchCommand(c.WWb,!0)),0===n.length&&e.dispatchCommand(c.KfJ,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}})(e,t),!0),c.jZM),e.registerCommand(c.V30,()=>((function(e,t){let r=t.redoStack,n=t.undoStack;if(0!==r.length){let o=t.current;null!==o&&(n.push(o),e.dispatchCommand(c.KfJ,!0));let i=r.pop();0===r.length&&e.dispatchCommand(c.WWb,!1),t.current=i||null,i&&i.editor.setEditorState(i.editorState,{tag:"historic"})}})(e,t),!0),c.jZM),e.registerCommand(c.SKc,()=>(d(t),!1),c.jZM),e.registerCommand(c.t5V,()=>(d(t),e.dispatchCommand(c.WWb,!1),e.dispatchCommand(c.KfJ,!1),!0),c.jZM),e.registerUpdateListener(({editorState:r,prevEditorState:n,dirtyLeaves:o,dirtyElements:s,tags:a})=>{let l=t.current,u=t.redoStack,d=t.undoStack,f=null===l?null:l.editorState;if(null!==l&&r===f)return;let g=i(n,r,l,o,s,a);if(1===g)0!==u.length&&(t.redoStack=[],e.dispatchCommand(c.WWb,!1)),null!==l&&(d.push({...l}),e.dispatchCommand(c.KfJ,!0));else if(2===g)return;t.current={editor:e,editorState:r}}))})(e,n,r),[r,e,n])}(r,t,e),null}var g=r(14138),p=r(14277),h=r(95224),m=r(70198),b=r(11009),y=r(99194),w=r(57952);let v=new Set,x=(0,c.guI)("RIGHT_CLICK_IMAGE_COMMAND");function E(e){let{altText:t,className:r,imageRef:o,src:i,width:s,height:a,maxWidth:l,onError:u}=e;if(!v.has(i))throw new Promise(e=>{let t=new Image;t.src=i,t.onload=()=>{v.add(i),e(null)},t.onerror=()=>{v.add(i)}});return(0,n.jsx)("img",{className:r||void 0,src:i,alt:t,ref:o,style:{height:a,maxWidth:l,width:s},onError:u,draggable:"false"})}function k(){return(0,n.jsx)("img",{src:"",style:{height:200,opacity:.2,width:200},draggable:"false"})}function _(e){let{src:t,altText:r,nodeKey:d,width:v,height:_,maxWidth:C,resizable:S,showCaption:R,caption:j,captionsEnabled:z}=e,M=(0,o.useRef)(null),D=(0,o.useRef)(null),[N,P,L]=(0,m.Y)(d),[W,F]=(0,o.useState)(!1),{isCollabActive:J}=(0,s.k)(),[A]=(0,a.DF)(),[I,O]=(0,o.useState)(null),T=(0,o.useRef)(null),[K,H]=(0,o.useState)(!1),Z=(0,h.a)(),B=(0,o.useCallback)(e=>{let t=(0,c.vJq)();return N&&(0,c.RTZ)(t)&&(e.preventDefault(),A.update(()=>{t.getNodes().forEach(e=>{(0,b.Eh)(e)&&e.remove()})})),!1},[A,N]),V=(0,o.useCallback)(e=>{let t=(0,c.vJq)(),r=D.current;if(N&&(0,c.RTZ)(t)&&1===t.getNodes().length){if(R)return(0,c.n1P)(null),e.preventDefault(),j.focus(),!0;else if(null!==r&&r!==document.activeElement)return e.preventDefault(),r.focus(),!0}return!1},[j,N,R]),q=(0,o.useCallback)(e=>(T.current===j||D.current===e.target)&&((0,c.n1P)(null),A.update(()=>{P(!0);let e=A.getRootElement();null!==e&&e.focus()}),!0),[j,A,P]),X=(0,o.useCallback)(e=>!!W||e.target===M.current&&(e.shiftKey?P(!N):(L(),P(!0)),!0),[W,N,P,L]),G=(0,o.useCallback)(e=>{A.getEditorState().read(()=>{let t=(0,c.vJq)();"IMG"===e.target.tagName&&(0,c.I2P)(t)&&1===t.getNodes().length&&A.dispatchCommand(x,e)})},[A]);(0,o.useEffect)(()=>{let e=!0,t=A.getRootElement(),r=(0,u.Sd)(A.registerUpdateListener(t=>{let{editorState:r}=t;e&&O(r.read(()=>(0,c.vJq)()))}),A.registerCommand(c.MvL,(e,t)=>(T.current=t,!1),c.AcJ),A.registerCommand(c.d8p,X,c.AcJ),A.registerCommand(x,X,c.AcJ),A.registerCommand(c.TgX,e=>e.target===M.current&&(e.preventDefault(),!0),c.AcJ),A.registerCommand(c.w$Z,B,c.AcJ),A.registerCommand(c.gCZ,B,c.AcJ),A.registerCommand(c.RTo,V,c.AcJ),A.registerCommand(c.Q$N,q,c.AcJ));return null==t||t.addEventListener("contextmenu",G),()=>{e=!1,r(),null==t||t.removeEventListener("contextmenu",G)}},[L,A,W,N,d,B,V,q,X,G,P]);let Y=N&&(0,c.RTZ)(I)&&!W,$=(N||W)&&Z;return(0,n.jsx)(o.Suspense,{fallback:null,children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{draggable:Y,children:K?(0,n.jsx)(k,{}):(0,n.jsx)(E,{className:"max-w-full cursor-default ".concat($?"".concat((0,c.RTZ)(I)?"draggable cursor-grab active:cursor-grabbing":""," focused ring-2 ring-primary ring-offset-2"):null),src:t,altText:r,imageRef:M,width:v,height:_,maxWidth:C,onError:()=>H(!0)})}),R&&(0,n.jsx)("div",{className:"image-caption-container absolute bottom-1 left-0 right-0 m-0 block min-w-[100px] overflow-hidden border-t bg-white/90 p-0",children:(0,n.jsxs)(g.s,{initialEditor:j,initialNodes:[c.haT,c.Ey8,c.fD3],children:[(0,n.jsx)(i.x,{}),(0,n.jsx)(f,{}),(0,n.jsx)(p.$,{contentEditable:(0,n.jsx)(y.a,{className:"ImageNode__contentEditable user-select-text word-break-break-word relative block min-h-5 w-[calc(100%-20px)] cursor-text resize-none whitespace-pre-wrap border-0 p-2.5 text-sm caret-primary outline-none",placeholderClassName:"ImageNode__placeholder text-sm text-muted-foreground overflow-hidden absolute top-2.5 left-2.5 pointer-events-none text-ellipsis user-select-none whitespace-nowrap inline-block",placeholder:"Enter a caption..."}),ErrorBoundary:l.R})]})}),S&&(0,c.RTZ)(I)&&$&&(0,n.jsx)(w.w,{showCaption:R,setShowCaption:()=>{A.update(()=>{let e=(0,c.nsf)(d);(0,b.Eh)(e)&&e.setShowCaption(!0)})},editor:A,buttonRef:D,imageRef:M,maxWidth:C,onResizeStart:()=>{F(!0)},onResizeEnd:(e,t)=>{setTimeout(()=>{F(!1)},200),A.update(()=>{let r=(0,c.nsf)(d);(0,b.Eh)(r)&&r.setWidthAndHeight(e,t)})},captionsEnabled:!K&&z})]})})}},78261:(e,t,r)=>{r.d(t,{R:()=>l});var n=r(7620),o=r(54568);
1function i(e,t){return(i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var s={error:null},a=function(e){function t(){for(var t,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state=s,t.resetErrorBoundary=function(){for(var e,r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,n),t.reset()},t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var r=t.prototype;return r.reset=function(){this.setState(s)},r.componentDidCatch=function(e,t){var r,n;null==(r=(n=this.props).onError)||r.call(n,e,t)},r.componentDidUpdate=function(e,t){var r,n,o,i,s=this.state.error,a=this.props.resetKeys;null!==s&&null!==t.error&&(void 0===(o=e.resetKeys)&&(o=[]),void 0===(i=a)&&(i=[]),o.length!==i.length||o.some(function(e,t){return!Object.is(e,i[t])}))&&(null==(r=(n=this.props).onResetKeysChange)||r.call(n,e.resetKeys,a),this.reset())},r.render=function(){var e=this.state.error,t=this.props,r=t.fallbackRender,o=t.FallbackComponent,i=t.fallback;if(null!==e){var s={error:e,resetErrorBoundary:this.resetErrorBoundary};if(n.isValidElement(i))return i;if("function"==typeof r)return r(s);if(o)return n.createElement(o,s);throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(n.Component);function l({children:e,onError:t}){return(0,o.jsx)(a,{fallback:(0,o.jsx)("div",{style:{border:"1px solid #f00",color:"#f00",padding:"8px"},children:"An error was thrown."}),onError:t,children:e})}},95224:(e,t,r)=>{r.d(t,{a:()=>a});var n=r(89220),o=r(7620);let i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?o.useLayoutEffect:o.useEffect;function s(e){return{initialValueFn:()=>e.isEditable(),subscribe:t=>e.registerEditableListener(t)}}function a(){let[e]=(0,n.DF)(),t=(0,o.useMemo)(()=>s(e),[e,s]),[r,a]=(0,o.useState)(()=>t.initialValueFn()),l=(0,o.useRef)(r);return i(()=>{let{initialValueFn:e,subscribe:r}=t,n=e();return l.current!==n&&(l.current=n,a(n)),r(e=>{l.current=e,a(e)})},[t,s]),r}}}]);
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.