(globalThis.webpackChunkverso=globalThis.webpackChunkverso||[]).push([[6292],{48182:(e,t,n)=>{"use strict";n.d(t,{Dx:()=>p,Ay:()=>c});const l="",r="root",a="text";var i;function s(e,t){let n=e.index-t.index;if(0!==n)return n;if(e.id===t.id)return e.type===i.SLICE_START?-1:1;if(e.type!==i.SLICE_START&&t.type===i.SLICE_START)return 1;if(e.type===i.SLICE_START&&t.type!==i.SLICE_START)return-1;let l=e.type===i.SLICE_START?-1:1,r=t.mark.start-e.mark.start;if(0!==r)return r*l;let a=e.mark.end-t.mark.end;return 0!==a?a*l:0}function o(e){var t,n,i,s,o,u,d,f,p,v,h,c,g,m;let y=(null!==(t=null==e?void 0:e.text)&&void 0!==t?t:"").split(l),k=null!==(n=null==e?void 0:e.blocks)&&void 0!==n?n:[],x=null!==(i=null==e?void 0:e.marks)&&void 0!==i?i:[],b=new Map;b.set(r,[]);let E=[],C=1;for(let e=0,t=k.length;e=C&&t.start<=i||t.end>=C&&t.end<=i)&&$.push(t)}if(0===$.length)null===(d=b.get(T))||void 0===d||d.push(...l);else{let e=[];for(let t=0,n=$.length;te-t));let t=C,n=0,a=[];for(let s=0,o=e.length;sMath.max(e.start,C)===t&&e.end>e.start)).sort(((e,t)=>t.end-e.end)),d=$.filter((e=>Math.min(e.end,i)===o));a.push(...u);let m=T;for(let e=0,t=a.length;ey-n?(null===(v=b.get(m))||void 0===v||v.push(e.slice(0,y-n)),l.unshift(e.slice(y-n)),n=y):(null===(h=b.get(m))||void 0===h||h.push(e),n+=e.length):(null===(c=b.get(m))||void 0===c||c.push(e),n++)}for(let e of d){let t=a.indexOf(e);-1===t?(null===(g=b.get(m))||void 0===g||g.push(e),b.set(e.id,[])):a.splice(t,1)}t=o}null===(m=b.get(T))||void 0===m||m.push(...l)}t.selfClosing||t.type===a||E.push(t),C=i+1}return b}!function(e){e[e.SLICE_START=0]="SLICE_START",e[e.SLICE_END=1]="SLICE_END"}(i||(i={}));var u=n(96540);const d={keyOf:e=>e.type,blocks:{},marks:{}},f=(0,u.createContext)(d);function p(e){return(0,u.createElement)(f.Consumer,{children(t){var n;return(0,u.createElement)(f.Provider,{value:{keyOf:null!==(n=e.value.keyOf)&&void 0!==n?n:t.keyOf,blocks:e.value.blocks?{...t.blocks,...e.value.blocks}:t.blocks,marks:e.value.marks?{...t.marks,...e.value.marks}:t.marks}},e.children)}})}p.displayName="ComponentProvider";const v=(0,u.createContext)(new Map);function h(e){let t=(0,u.useContext)(f);if(t===d)throw new Error("Component map is empty. Did you wrap your render call in ComponentProvider?");let n=(0,u.useMemo)((()=>{var n;let l=t.keyOf(e.value);return null!==(n="start"in e.value?t.marks[l]:t.blocks[l])&&void 0!==n?n:u.Fragment}),[e.map,e.value]),l=(0,u.useMemo)((()=>{var t;return null!==(t=e.map.get(e.value.id))&&void 0!==t?t:[]}),[e.map,e.value]),r=n?e.value.attributes:{};return e.value.selfClosing?(0,u.createElement)(u.Fragment,{},(0,u.createElement)(n,r),...l.map((t=>"string"==typeof t?t:(0,u.createElement)(h,{value:t,key:t.id,map:e.map})))):l.every((e=>"string"==typeof e))?(0,u.createElement)(n,r,l.join("")):l.length>0?(0,u.createElement)(n,{key:e.value.id,...r},...l.map((t=>"string"==typeof t?t:(0,u.createElement)(h,{value:t,key:t.id,map:e.map})))):(0,u.createElement)(n,{attributes:r})}function c(e){let[t,n]=(0,u.useMemo)((()=>{var t,n;let[r,u]=function(e){let t=[],n=[];for(let l=0,r=e.marks.length;le.type===i.SLICE_START));for(let i=0,s=n.length;i=r&&n.start<=i&&n.end>=r&&n.end<=i){let e=Math.max(n.start-r,0)+h,t=Math.min(n.end-r,i-r)+h,l=`${n.range[0]}${e}..${t}${n.range[n.range.length-1]}`;p.push({...n,id:`${s.id}-${n.id}`,range:l,start:e,end:t})}}if(s.mark.attributes.retain)continue;let c=!1;for(let e=0,t=d.length;e=t[0]&&r<=t[1]?(t[1]=Math.max(t[1],i),c=!0):i>=t[0]&&i<=t[1]&&(t[0]=Math.min(t[0],r),c=!0)}c||d.push([r,i])}r.set(s.id,{text:u,marks:p,blocks:f})}let p=d[0],v=p?e.text.slice(0,p[0]):"",h=p?p[1]:0;for(let t=0,n=d.length;t=r[0]&&e.end<=r[1]){t=!1;break}e.start>=r[0]&&e.start<=r[1]?n+=e.start-r[0]:e.start>r[1]&&(n+=r[1]-r[0]),e.end>=r[0]&&e.end<=r[1]?l+=e.end-r[0]:e.end>r[1]&&(l+=r[1]-r[0])}if(t){let t=e.start-n,r=e.end-l;c.push({...e,start:t,end:r,range:`${e.range[0]}${t}..${r}${e.range[e.range.length-1]}`})}}let g=[];for(let t=0,n=o.length;t=e[0]&&n+1<=e[1]);l&&e.blocks[t]&&g.push(e.blocks[t])}return[{text:v,marks:c,blocks:g},r]}({text:e.value.text,blocks:null!==(t=e.value.blocks)&&void 0!==t?t:[],marks:null!==(n=e.value.marks)&&void 0!==n?n:[]});return[o(r),u]}),[e.value]),d=(0,u.useMemo)((()=>{var e;return t.has(r)&&null!==(e=t.get(r))&&void 0!==e?e:[""]}),[t]);return(0,u.createElement)(v.Provider,{value:n},(0,u.createElement)(u.Fragment,{},d.map((e=>"string"==typeof e?e:(0,u.createElement)(h,{value:e,map:t,key:e.id})))))}h.displayName="Node",c.displayName="Text"},12323:(e,t,n)=>{"use strict";n.d(t,{J:()=>c});var l=n(35137),r=n(83969),a=n(36289),i=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,o=function(e){return 45===e.charCodeAt(1)},u=function(e){return null!=e&&"boolean"!=typeof e},d=(0,a.A)((function(e){return o(e)?e:e.replace(i,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(s,(function(e,t,n){return v={name:t,styles:n,next:v},t}))}return 1===r.A[e]||o(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return v={name:n.name,styles:n.styles,next:v},n.name;if(void 0!==n.styles){var l=n.next;if(void 0!==l)for(;void 0!==l;)v={name:l.name,styles:l.styles,next:v},l=l.next;return n.styles+";"}return function(e,t,n){var l="";if(Array.isArray(n))for(var r=0;r{e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},78659:(e,t,n)=>{var l=n(87133),r=n(99374);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=r(n))==n?n:0),void 0!==t&&(t=(t=r(t))==t?t:0),l(r(e),t,n)}}}]);