@yoopta/editor 4.6.2 → 4.6.3-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as o from"react";import r,{createContext as i,useContext as l,useRef as c,useLayoutEffect as a,useEffect as s,useMemo as d,useCallback as u,useState as f,memo as p,useReducer as h,forwardRef as g,createElement as v}from"react";import*as y from"react-dom";import{unstable_batchedUpdates as m,createPortal as b}from"react-dom";import{ReactEditor as w,useSelected as x,Slate as k,Editable as E,DefaultElement as O,withReact as C}from"slate-react";import{Editor as S,Transforms as D,Path as j,Range as B,Text as R,Element as _,Operation as A,createEditor as M,Point as T}from"slate";class N{constructor(e){this.plugin=e}get getPlugin(){return this.plugin}extend(e){const{renders:t,options:n}=e,o=Object.assign(Object.assign({},this.plugin.options),n),r=Object.assign({},this.plugin.elements);return t&&Object.keys(t).forEach((e=>{const n=r[e];n&&n.render&&(r[e].render=n=>t[e](n))})),new N(Object.assign(Object.assign({},this.plugin),{elements:r,options:o}))}}function L(e,t={}){const n=Object.keys(e.children),{at:o=e.selection}=t,r=n.find((t=>e.children[t].meta.order===(null==o?void 0:o[0])));return r?e.children[r]:null}const P={editor:{id:"",getBlock:()=>{},insertBlock:()=>{},insertBlocks:()=>{},updateBlock:()=>{},moveBlock:()=>{},splitBlock:()=>{},deleteBlock:()=>{},deleteBlocks:()=>{},toggleBlock:()=>{},focusBlock:()=>{},decreaseBlockDepth:()=>{},increaseBlockDepth:()=>{},duplicateBlock:()=>{},setBlockSelected:()=>{},selectedBlocks:[],setSelection:()=>{},applyChanges:()=>{},getEditorValue:()=>{},setEditorValue:()=>{},blocks:{},shortcuts:{},plugins:{},formats:{},selection:null,readOnly:!1,blockEditorsMap:{},children:{},emit:()=>{},on:()=>{},off:()=>{},once:()=>{},blur:()=>{},isFocused:()=>!1,focus:()=>{}}},I=i(P),F=({children:t,editorState:n})=>{const o=c(P);return o.current={editor:n.editor},e(I.Provider,Object.assign({value:o.current},{children:t}))},z=()=>{const e=l(I);if(!e)throw new Error("useYooptaEditor must be used within a YooptaEditorContext");return e.editor},U=e=>z().children[e],H=()=>z().isFocused(),$=()=>z().readOnly,V=e=>{var t;return null===(t=z().plugins[e])||void 0===t?void 0:t.options},W=({blockId:e,path:t})=>{var n;const o=z();if(!e&&!t)throw new Error("useBlockSelected must receive either blockId or path");let r;return e&&(r=o.children[e]),t&&(r=L(o,{at:t})),(null===(n=o.selection)||void 0===n?void 0:n[0])===(null==r?void 0:r.meta.order)};var K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Y={};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function o(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,o,i,l){if("function"!=typeof o)throw new TypeError("The listener must be a function");var c=new r(o,i||e,l),a=n?n+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],c]:e._events[a].push(c):(e._events[a]=c,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,o,r=[];if(0===this._eventsCount)return r;for(o in e=this._events)t.call(e,o)&&r.push(n?o.slice(1):o);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},c.prototype.listeners=function(e){var t=n?n+e:e,o=this._events[t];if(!o)return[];if(o.fn)return[o.fn];for(var r=0,i=o.length,l=new Array(i);r<i;r++)l[r]=o[r].fn;return l},c.prototype.listenerCount=function(e){var t=n?n+e:e,o=this._events[t];return o?o.fn?1:o.length:0},c.prototype.emit=function(e,t,o,r,i,l){var c=n?n+e:e;if(!this._events[c])return!1;var a,s,d=this._events[c],u=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),u){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,o),!0;case 4:return d.fn.call(d.context,t,o,r),!0;case 5:return d.fn.call(d.context,t,o,r,i),!0;case 6:return d.fn.call(d.context,t,o,r,i,l),!0}for(s=1,a=new Array(u-1);s<u;s++)a[s-1]=arguments[s];d.fn.apply(d.context,a)}else{var f,p=d.length;for(s=0;s<p;s++)switch(d[s].once&&this.removeListener(e,d[s].fn,void 0,!0),u){case 1:d[s].fn.call(d[s].context);break;case 2:d[s].fn.call(d[s].context,t);break;case 3:d[s].fn.call(d[s].context,t,o);break;case 4:d[s].fn.call(d[s].context,t,o,r);break;default:if(!a)for(f=1,a=new Array(u-1);f<u;f++)a[f-1]=arguments[f];d[s].fn.apply(d[s].context,a)}}return!0},c.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,o,r){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return l(this,i),this;var c=this._events[i];if(c.fn)c.fn!==t||r&&!c.once||o&&c.context!==o||l(this,i);else{for(var a=0,s=[],d=c.length;a<d;a++)(c[a].fn!==t||r&&!c[a].once||o&&c[a].context!==o)&&s.push(c[a]);s.length?this._events[i]=1===s.length?s[0]:s:l(this,i)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&l(this,t)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}({get exports(){return Y},set exports(e){Y=e}});var X=Y;function q(){let e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}const Z=()=>{var e,t;return"undefined"==typeof window||"function"!=typeof(null===(e=window.crypto)||void 0===e?void 0:e.randomUUID)?q():null===(t=window.crypto)||void 0===t?void 0:t.randomUUID()},G=e=>({id:Z(),type:(null==e?void 0:e.type)||"paragraph",children:(null==e?void 0:e.children)||[{text:""}],props:Object.assign({nodeType:"block"},null==e?void 0:e.props)}),J=e=>({id:(null==e?void 0:e.id)||Z(),value:(null==e?void 0:e.value)||[G()],type:(null==e?void 0:e.type)||"Paragraph",meta:Object.assign({order:0,depth:0},null==e?void 0:e.meta)});const Q="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ee(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function te(e){return"nodeType"in e}function ne(e){var t,n;return e?ee(e)?e:te(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function oe(e){const{Document:t}=ne(e);return e instanceof t}function re(e){return!ee(e)&&e instanceof ne(e).HTMLElement}function ie(e){return e instanceof ne(e).SVGElement}function le(e){return e?ee(e)?e.document:te(e)?oe(e)?e:re(e)||ie(e)?e.ownerDocument:document:document:document}const ce=Q?a:s;function ae(e){const t=c(e);return ce((()=>{t.current=e})),u((function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)}),[])}function se(e,t){void 0===t&&(t=[e]);const n=c(e);return ce((()=>{n.current!==e&&(n.current=e)}),t),n}function de(e,t){const n=c();return d((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function ue(e){const t=ae(e),n=c(null),o=u((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function fe(e){const t=c();return s((()=>{t.current=e}),[e]),t.current}let pe={};function he(e,t){return d((()=>{if(t)return t;const n=null==pe[e]?0:pe[e]+1;return pe[e]=n,e+"-"+n}),[e,t])}function ge(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce(((t,n)=>{const o=Object.entries(n);for(const[n,r]of o){const o=t[n];null!=o&&(t[n]=o+e*r)}return t}),{...t})}}const ve=ge(1),ye=ge(-1);function me(e){if(!e)return!1;const{KeyboardEvent:t}=ne(e.target);return t&&e instanceof t}function be(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=ne(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const we=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[we.Translate.toString(e),we.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),xe="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ke(e){return e.matches(xe)?e:e.querySelector(xe)}const Ee={display:"none"};function Oe(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:Ee},n)}function Ce(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",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":o,"aria-atomic":!0},n)}const Se=i(null);const De={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 "},je={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Be(e){let{announcements:t=je,container:n,hiddenTextDescribedById:o,screenReaderInstructions:i=De}=e;const{announce:c,announcement:a}=function(){const[e,t]=f("");return{announce:u((e=>{null!=e&&t(e)}),[]),announcement:e}}(),p=he("DndLiveRegion"),[h,g]=f(!1);if(s((()=>{g(!0)}),[]),function(e){const t=l(Se);s((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}(d((()=>({onDragStart(e){let{active:n}=e;c(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:o}=e;t.onDragMove&&c(t.onDragMove({active:n,over:o}))},onDragOver(e){let{active:n,over:o}=e;c(t.onDragOver({active:n,over:o}))},onDragEnd(e){let{active:n,over:o}=e;c(t.onDragEnd({active:n,over:o}))},onDragCancel(e){let{active:n,over:o}=e;c(t.onDragCancel({active:n,over:o}))}})),[c,t])),!h)return null;const v=r.createElement(r.Fragment,null,r.createElement(Oe,{id:o,value:i.draggable}),r.createElement(Ce,{id:p,announcement:a}));return n?b(v,n):v}var Re;function _e(){}function Ae(e,t){return d((()=>({sensor:e,options:null!=t?t:{}})),[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"}(Re||(Re={}));const Me=Object.freeze({x:0,y:0});function Te(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ne(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function Le(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Pe(e){let{left:t,top:n,height:o,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+o},{x:t+r,y:n+o}]}function Ie(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function Fe(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const ze=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=Fe(t,t.left,t.top),i=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=Te(Fe(o),r);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(Ne)};function Ue(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),l=r-o,c=i-n;if(o<r&&n<i){const n=t.width*t.height,o=e.width*e.height,r=l*c;return Number((r/(n+o-r)).toFixed(4))}return 0}const He=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const e of o){const{id:o}=e,i=n.get(o);if(i){const n=Ue(i,t);n>0&&r.push({id:o,data:{droppableContainer:e,value:n}})}}return r.sort(Le)};function $e(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Me}function Ve(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const We=Ve(1);const Ke={ignoreTransform:!1};function Ye(e,t){void 0===t&&(t=Ke);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=ne(e).getComputedStyle(e);t&&(n=function(e,t,n){const o=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!o)return e;const{scaleX:r,scaleY:i,x:l,y:c}=o,a=e.left-l-(1-r)*parseFloat(n),s=e.top-c-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:d,height:u,top:s,right:a+d,bottom:s+u,left:a}}(n,t,o))}const{top:o,left:r,width:i,height:l,bottom:c,right:a}=n;return{top:o,left:r,width:i,height:l,bottom:c,right:a}}function Xe(e){return Ye(e,{ignoreTransform:!0})}function qe(e,t){const n=[];return e?function o(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(oe(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!re(r)||ie(r))return n;if(n.includes(r))return n;const i=ne(e).getComputedStyle(r);return r!==e&&function(e,t){void 0===t&&(t=ne(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const o=t[e];return"string"==typeof o&&n.test(o)}))}(r,i)&&n.push(r),function(e,t){return void 0===t&&(t=ne(e).getComputedStyle(e)),"fixed"===t.position}(r,i)?n:o(r.parentNode)}(e):n}function Ze(e){const[t]=qe(e,1);return null!=t?t:null}function Ge(e){return Q&&e?ee(e)?e:te(e)?oe(e)||e===le(e).scrollingElement?window:re(e)?e:null:null:null}function Je(e){return ee(e)?e.scrollX:e.scrollLeft}function Qe(e){return ee(e)?e.scrollY:e.scrollTop}function et(e){return{x:Je(e),y:Qe(e)}}var tt;function nt(e){return!(!Q||!e)&&e===document.scrollingElement}function ot(e){const t={x:0,y:0},n=nt(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(tt||(tt={}));const rt={x:.2,y:.2};function it(e,t,n,o,r){let{top:i,left:l,right:c,bottom:a}=n;void 0===o&&(o=10),void 0===r&&(r=rt);const{isTop:s,isBottom:d,isLeft:u,isRight:f}=ot(e),p={x:0,y:0},h={x:0,y:0},g=t.height*r.y,v=t.width*r.x;return!s&&i<=t.top+g?(p.y=tt.Backward,h.y=o*Math.abs((t.top+g-i)/g)):!d&&a>=t.bottom-g&&(p.y=tt.Forward,h.y=o*Math.abs((t.bottom-g-a)/g)),!f&&c>=t.right-v?(p.x=tt.Forward,h.x=o*Math.abs((t.right-v-c)/v)):!u&&l<=t.left+v&&(p.x=tt.Backward,h.x=o*Math.abs((t.left+v-l)/v)),{direction:p,speed:h}}function lt(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function ct(e){return e.reduce(((e,t)=>ve(e,et(t))),Me)}const at=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Je(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Qe(t)),0)}]];class st{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;const n=qe(t),o=ct(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,r]of at)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=r(n),l=o[e]-t;return this.rect[i]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class dt{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,n){var o;null==(o=this.target)||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ut(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y}var ft,pt;function ht(e){e.preventDefault()}function gt(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"}(ft||(ft={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(pt||(pt={}));const vt={start:[pt.Space,pt.Enter],cancel:[pt.Esc],end:[pt.Space,pt.Enter]},yt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case pt.Right:return{...n,x:n.x+25};case pt.Left:return{...n,x:n.x-25};case pt.Down:return{...n,y:n.y+25};case pt.Up:return{...n,y:n.y-25}}};class mt{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new dt(le(t)),this.windowListeners=new dt(ne(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ft.Resize,this.handleCancel),this.windowListeners.add(ft.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ft.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=Ye),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);Ze(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(Me)}handleKeyDown(e){if(me(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:r=vt,coordinateGetter:i=yt,scrollBehavior:l="smooth"}=o,{code:c}=e;if(r.end.includes(c))return void this.handleEnd(e);if(r.cancel.includes(c))return void this.handleCancel(e);const{collisionRect:a}=n.current,s=a?{x:a.left,y:a.top}:Me;this.referenceCoordinates||(this.referenceCoordinates=s);const d=i(e,{active:t,context:n.current,currentCoordinates:s});if(d){const t=ye(d,s),o={x:0,y:0},{scrollableAncestors:r}=n.current;for(const n of r){const r=e.code,{isTop:i,isRight:c,isLeft:a,isBottom:s,maxScroll:u,minScroll:f}=ot(n),p=lt(n),h={x:Math.min(r===pt.Right?p.right-p.width/2:p.right,Math.max(r===pt.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(r===pt.Down?p.bottom-p.height/2:p.bottom,Math.max(r===pt.Down?p.top:p.top+p.height/2,d.y))},g=r===pt.Right&&!c||r===pt.Left&&!a,v=r===pt.Down&&!s||r===pt.Up&&!i;if(g&&h.x!==d.x){const e=n.scrollLeft+t.x,i=r===pt.Right&&e<=u.x||r===pt.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});o.x=i?n.scrollLeft-e:r===pt.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,o.x&&n.scrollBy({left:-o.x,behavior:l});break}if(v&&h.y!==d.y){const e=n.scrollTop+t.y,i=r===pt.Down&&e<=u.y||r===pt.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});o.y=i?n.scrollTop-e:r===pt.Down?n.scrollTop-u.y:n.scrollTop-f.y,o.y&&n.scrollBy({top:-o.y,behavior:l});break}}this.handleMove(e,ve(ye(d,this.referenceCoordinates),o))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function bt(e){return Boolean(e&&"distance"in e)}function wt(e){return Boolean(e&&"delay"in e)}mt.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=vt,onActivation:r}=t,{active:i}=n;const{code:l}=e.nativeEvent;if(o.start.includes(l)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==r||r({event:e.nativeEvent}),!0)}return!1}}];class xt{constructor(e,t,n){var o;void 0===n&&(n=function(e){const{EventTarget:t}=ne(e);return e instanceof t?e:le(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;const{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=le(i),this.documentListeners=new dt(this.document),this.listeners=new dt(n),this.windowListeners=new dt(ne(i)),this.initialCoordinates=null!=(o=be(r))?o:Me,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(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(ft.Resize,this.handleCancel),this.windowListeners.add(ft.DragStart,ht),this.windowListeners.add(ft.VisibilityChange,this.handleCancel),this.windowListeners.add(ft.ContextMenu,ht),this.documentListeners.add(ft.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(wt(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(bt(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ft.Click,gt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ft.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:r}=this,{onMove:i,options:{activationConstraint:l}}=r;if(!o)return;const c=null!=(t=be(e))?t:Me,a=ye(o,c);if(!n&&l){if(bt(l)){if(null!=l.tolerance&&ut(a,l.tolerance))return this.handleCancel();if(ut(a,l.distance))return this.handleStart()}return wt(l)&&ut(a,l.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(c)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===pt.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const kt={move:{name:"pointermove"},end:{name:"pointerup"}};class Et extends xt{constructor(e){const{event:t}=e,n=le(t.target);super(e,kt,n)}}Et.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||0!==n.button)&&(null==o||o({event:n}),!0)}}];const Ot={move:{name:"mousemove"},end:{name:"mouseup"}};var Ct;!function(e){e[e.RightClick=2]="RightClick"}(Ct||(Ct={}));(class extends xt{constructor(e){super(e,Ot,le(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==Ct.RightClick&&(null==o||o({event:n}),!0)}}];const St={move:{name:"touchmove"},end:{name:"touchend"}};var Dt,jt;function Bt(e){let{acceleration:t,activator:n=Dt.Pointer,canScroll:o,draggingRect:r,enabled:i,interval:l=5,order:a=jt.TreeOrder,pointerCoordinates:f,scrollableAncestors:p,scrollableAncestorRects:h,delta:g,threshold:v}=e;const y=function(e){let{delta:t,disabled:n}=e;const o=fe(t);return de((e=>{if(n||!o||!e)return Rt;const r={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[tt.Backward]:e.x[tt.Backward]||-1===r.x,[tt.Forward]:e.x[tt.Forward]||1===r.x},y:{[tt.Backward]:e.y[tt.Backward]||-1===r.y,[tt.Forward]:e.y[tt.Forward]||1===r.y}}}),[n,t,o])}({delta:g,disabled:!i}),[m,b]=function(){const e=c(null);return[u(((t,n)=>{e.current=setInterval(t,n)}),[]),u((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),w=c({x:0,y:0}),x=c({x:0,y:0}),k=d((()=>{switch(n){case Dt.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Dt.DraggableRect:return r}}),[n,r,f]),E=c(null),O=u((()=>{const e=E.current;if(!e)return;const t=w.current.x*x.current.x,n=w.current.y*x.current.y;e.scrollBy(t,n)}),[]),C=d((()=>a===jt.TreeOrder?[...p].reverse():p),[a,p]);s((()=>{if(i&&p.length&&k){for(const e of C){if(!1===(null==o?void 0:o(e)))continue;const n=p.indexOf(e),r=h[n];if(!r)continue;const{direction:i,speed:c}=it(e,r,k,t,v);for(const e of["x","y"])y[e][i[e]]||(c[e]=0,i[e]=0);if(c.x>0||c.y>0)return b(),E.current=e,m(O,l),w.current=c,void(x.current=i)}w.current={x:0,y:0},x.current={x:0,y:0},b()}else b()}),[t,O,o,b,i,l,JSON.stringify(k),JSON.stringify(y),m,p,C,h,JSON.stringify(v)])}(class extends xt{constructor(e){super(e,St)}static setup(){return window.addEventListener(St.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(St.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return!(r.length>1)&&(null==o||o({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Dt||(Dt={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(jt||(jt={}));const Rt={x:{[tt.Backward]:!1,[tt.Forward]:!1},y:{[tt.Backward]:!1,[tt.Forward]:!1}};var _t,At;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(_t||(_t={})),function(e){e.Optimized="optimized"}(At||(At={}));const Mt=new Map;function Tt(e,t){return de((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Nt(e){let{callback:t,disabled:n}=e;const o=ae(t),r=d((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return s((()=>()=>null==r?void 0:r.disconnect()),[r]),r}function Lt(e){return new st(Ye(e),e)}function Pt(e,t,n){void 0===t&&(t=Lt);const[o,r]=h((function(o){if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=o?o:n)?r:null;const i=t(e);if(JSON.stringify(o)===JSON.stringify(i))return o;return i}),null),i=function(e){let{callback:t,disabled:n}=e;const o=ae(t),r=d((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return s((()=>()=>null==r?void 0:r.disconnect()),[r]),r}({callback(t){if(e)for(const n of t){const{type:t,target:o}=n;if("childList"===t&&o instanceof HTMLElement&&o.contains(e)){r();break}}}}),l=Nt({callback:r});return ce((()=>{r(),e?(null==l||l.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==i||i.disconnect())}),[e]),o}const It=[];function Ft(e,t){void 0===t&&(t=[]);const n=c(null);return s((()=>{n.current=null}),t),s((()=>{const t=e!==Me;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?ye(e,n.current):Me}function zt(e){return d((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Ut=[];function Ht(e){let{measure:t}=e;const[n,o]=f(null),r=u((e=>{for(const{target:n}of e)if(re(n)){o((e=>{const o=t(n);return e?{...e,width:o.width,height:o.height}:o}));break}}),[t]),i=Nt({callback:r}),l=u((e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return re(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),o(n?t(n):null)}),[t,i]),[c,a]=ue(l);return d((()=>({nodeRef:c,rect:n,setRef:a})),[n,c,a])}const $t=[{sensor:Et,options:{}},{sensor:mt,options:{}}],Vt={current:{}},Wt={draggable:{measure:Xe},droppable:{measure:Xe,strategy:_t.WhileDragging,frequency:At.Optimized},dragOverlay:{measure:Ye}};class Kt 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,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Yt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Kt,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:_e},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Wt,measureDroppableContainers:_e,windowRect:null,measuringScheduled:!1},Xt=i({activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:_e,draggableNodes:new Map,over:null,measureDroppableContainers:_e}),qt=i(Yt);function Zt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Kt}}}function Gt(e,t){switch(t.type){case Re.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Re.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Re.DragEnd:case Re.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Re.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new Kt(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case Re.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const l=new Kt(e.droppable.containers);return l.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:l}}}case Re.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new Kt(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Jt(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=l(Xt),i=fe(o),c=fe(null==n?void 0:n.id);return s((()=>{if(!t&&!o&&i&&null!=c){if(!me(i))return;if(document.activeElement===i.target)return;const e=r.get(c);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=ke(e);if(t){t.focus();break}}}))}}),[o,t,r,c,i]),null}const Qt=i({...Me,scaleX:1,scaleY:1});var en;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(en||(en={}));const tn=p((function(e){var t,n,o,i;let{id:l,accessibility:a,autoScroll:p=!0,children:g,sensors:v=$t,collisionDetection:y=He,measuring:b,modifiers:w,...x}=e;const k=h(Gt,void 0,Zt),[E,O]=k,[C,S]=function(){const[e]=f((()=>new Set)),t=u((t=>(e.add(t),()=>e.delete(t))),[e]);return[u((t=>{let{type:n,event:o}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,o)}))}),[e]),t]}(),[D,j]=f(en.Uninitialized),B=D===en.Initialized,{draggable:{active:R,nodes:_,translate:A},droppable:{containers:M}}=E,T=R?_.get(R):null,N=c({initial:null,translated:null}),L=d((()=>{var e;return null!=R?{id:R,data:null!=(e=null==T?void 0:T.data)?e:Vt,rect:N}:null}),[R,T]),P=c(null),[I,F]=f(null),[z,U]=f(null),H=se(x,Object.values(x)),$=he("DndDescribedBy",l),V=d((()=>M.getEnabled()),[M]),W=d((()=>({draggable:{...Wt.draggable,...null==K?void 0:K.draggable},droppable:{...Wt.droppable,...null==K?void 0:K.droppable},dragOverlay:{...Wt.dragOverlay,...null==K?void 0:K.dragOverlay}})),[null==(K=b)?void 0:K.draggable,null==K?void 0:K.droppable,null==K?void 0:K.dragOverlay]);var K;const{droppableRects:Y,measureDroppableContainers:X,measuringScheduled:q}=function(e,t){let{dragging:n,dependencies:o,config:r}=t;const[i,l]=f(null),{frequency:a,measure:d,strategy:p}=r,h=c(e),g=function(){switch(p){case _t.Always:return!1;case _t.BeforeDragging:return n;default:return!n}}(),v=se(g),y=u((function(e){void 0===e&&(e=[]),v.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[v]),m=c(null),b=de((t=>{if(g&&!n)return Mt;if(!t||t===Mt||h.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new st(d(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t}),[e,i,n,g,d]);return s((()=>{h.current=e}),[e]),s((()=>{g||y()}),[n,g]),s((()=>{i&&i.length>0&&l(null)}),[JSON.stringify(i)]),s((()=>{g||"number"!=typeof a||null!==m.current||(m.current=setTimeout((()=>{y(),m.current=null}),a))}),[a,g,y,...o]),{droppableRects:b,measureDroppableContainers:y,measuringScheduled:null!=i}}(V,{dragging:B,dependencies:[A.x,A.y],config:W.droppable}),Z=function(e,t){const n=null!==t?e.get(t):void 0,o=n?n.node.current:null;return de((e=>{var n;return null===t?null:null!=(n=null!=o?o:e)?n:null}),[o,t])}(_,R),G=d((()=>z?be(z):null),[z]),J=function(){const e=!1===(null==I?void 0:I.autoScrollEnabled),t="object"==typeof p?!1===p.enabled:!1===p,n=B&&!e&&!t;if("object"==typeof p)return{...p,enabled:n};return{enabled:n}}(),ee=function(e,t){return Tt(e,t)}(Z,W.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const i=c(!1),{x:l,y:a}="boolean"==typeof r?{x:r,y:r}:r;ce((()=>{if(!l&&!a||!t)return void(i.current=!1);if(i.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=$e(n(e),o);if(l||(r.x=0),a||(r.y=0),i.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=Ze(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,a,o,n])}({activeNode:R?_.get(R):null,config:J.layoutShiftCompensation,initialRect:ee,measure:W.draggable.measure});const te=Pt(Z,W.draggable.measure,ee),oe=Pt(Z?Z.parentElement:null),re=c({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:M,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ie=M.getNodeFor(null==(t=re.current.over)?void 0:t.id),le=Ht({measure:W.dragOverlay.measure}),ae=null!=(n=le.nodeRef.current)?n:Z,ue=B?null!=(o=le.rect)?o:te:null,fe=Boolean(le.nodeRef.current&&le.rect),pe=$e(ge=fe?null:te,Tt(ge));var ge;const ye=zt(ae?ne(ae):null),me=function(e){const t=c(e),n=de((n=>e?n&&n!==It&&e&&t.current&&e.parentNode===t.current.parentNode?n:qe(e):It),[e]);return s((()=>{t.current=e}),[e]),n}(B?null!=ie?ie:Z:null),we=function(e,t){void 0===t&&(t=Ye);const[n]=e,o=zt(n?ne(n):null),[r,i]=h((function(){return e.length?e.map((e=>nt(e)?o:new st(t(e),e))):Ut}),Ut),l=Nt({callback:i});return e.length>0&&r===Ut&&i(),ce((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),i())}),[e]),r}(me),xe=function(e,t){let{transform:n,...o}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...o})),n):n}(w,{transform:{x:A.x-pe.x,y:A.y-pe.y,scaleX:1,scaleY:1},activatorEvent:z,active:L,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:ue,over:re.current.over,overlayNodeRect:le.rect,scrollableAncestors:me,scrollableAncestorRects:we,windowRect:ye}),ke=G?ve(G,A):null,Ee=function(e){const[t,n]=f(null),o=c(e),r=u((e=>{const t=Ge(e.target);t&&n((e=>e?(e.set(t,et(t)),new Map(e)):null))}),[]);return s((()=>{const t=o.current;if(e!==t){i(t);const l=e.map((e=>{const t=Ge(e);return t?(t.addEventListener("scroll",r,{passive:!0}),[t,et(t)]):null})).filter((e=>null!=e));n(l.length?new Map(l):null),o.current=e}return()=>{i(e),i(t)};function i(e){e.forEach((e=>{const t=Ge(e);null==t||t.removeEventListener("scroll",r)}))}}),[r,e]),d((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>ve(e,t)),Me):ct(e):Me),[e,t])}(me),Oe=Ft(Ee),Ce=Ft(Ee,[te]),De=ve(xe,Oe),je=ue?We(ue,xe):null,_e=L&&je?y({active:L,collisionRect:je,droppableRects:Y,droppableContainers:V,pointerCoordinates:ke}):null,Ae=Ie(_e,"id"),[Te,Ne]=f(null),Le=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(fe?xe:ve(xe,Ce),null!=(i=null==Te?void 0:Te.rect)?i:null,te),Pe=u(((e,t)=>{let{sensor:n,options:o}=t;if(null==P.current)return;const r=_.get(P.current);if(!r)return;const i=e.nativeEvent,l=new n({active:P.current,activeNode:r,event:i,options:o,context:re,onStart(e){const t=P.current;if(null==t)return;const n=_.get(t);if(!n)return;const{onDragStart:o}=H.current,r={active:{id:t,data:n.data,rect:N}};m((()=>{null==o||o(r),j(en.Initializing),O({type:Re.DragStart,initialCoordinates:e,active:t}),C({type:"onDragStart",event:r})}))},onMove(e){O({type:Re.DragMove,coordinates:e})},onEnd:c(Re.DragEnd),onCancel:c(Re.DragCancel)});function c(e){return async function(){const{active:t,collisions:n,over:o,scrollAdjustedTranslate:r}=re.current;let l=null;if(t&&r){const{cancelDrop:c}=H.current;if(l={activatorEvent:i,active:t,collisions:n,delta:r,over:o},e===Re.DragEnd&&"function"==typeof c){await Promise.resolve(c(l))&&(e=Re.DragCancel)}}P.current=null,m((()=>{O({type:e}),j(en.Uninitialized),Ne(null),F(null),U(null);const t=e===Re.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=H.current[t];null==e||e(l),C({type:t,event:l})}}))}}m((()=>{F(l),U(e.nativeEvent)}))}),[_]),Fe=u(((e,t)=>(n,o)=>{const r=n.nativeEvent,i=_.get(o);if(null!==P.current||!i||r.dndKit||r.defaultPrevented)return;const l={active:i};!0===e(n,t.options,l)&&(r.dndKit={capturedBy:t.sensor},P.current=o,Pe(n,t))}),[_,Pe]),ze=function(e,t){return d((()=>e.reduce(((e,n)=>{const{sensor:o}=n;return[...e,...o.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(v,Fe);!function(e){s((()=>{if(!Q)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(v),ce((()=>{te&&D===en.Initializing&&j(en.Initialized)}),[te,D]),s((()=>{const{onDragMove:e}=H.current,{active:t,activatorEvent:n,collisions:o,over:r}=re.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:o,delta:{x:De.x,y:De.y},over:r};m((()=>{null==e||e(i),C({type:"onDragMove",event:i})}))}),[De.x,De.y]),s((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:o,scrollAdjustedTranslate:r}=re.current;if(!e||null==P.current||!t||!r)return;const{onDragOver:i}=H.current,l=o.get(Ae),c=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,a={active:e,activatorEvent:t,collisions:n,delta:{x:r.x,y:r.y},over:c};m((()=>{Ne(c),null==i||i(a),C({type:"onDragOver",event:a})}))}),[Ae]),ce((()=>{re.current={activatorEvent:z,active:L,activeNode:Z,collisionRect:je,collisions:_e,droppableRects:Y,draggableNodes:_,draggingNode:ae,draggingNodeRect:ue,droppableContainers:M,over:Te,scrollableAncestors:me,scrollAdjustedTranslate:De},N.current={initial:ue,translated:je}}),[L,Z,_e,je,_,ae,ue,Y,M,Te,me,De]),Bt({...J,delta:A,draggingRect:je,pointerCoordinates:ke,scrollableAncestors:me,scrollableAncestorRects:we});const Ue=d((()=>({active:L,activeNode:Z,activeNodeRect:te,activatorEvent:z,collisions:_e,containerNodeRect:oe,dragOverlay:le,draggableNodes:_,droppableContainers:M,droppableRects:Y,over:Te,measureDroppableContainers:X,scrollableAncestors:me,scrollableAncestorRects:we,measuringConfiguration:W,measuringScheduled:q,windowRect:ye})),[L,Z,te,z,_e,oe,le,_,M,Y,Te,X,me,we,W,q,ye]),Ve=d((()=>({activatorEvent:z,activators:ze,active:L,activeNodeRect:te,ariaDescribedById:{draggable:$},dispatch:O,draggableNodes:_,over:Te,measureDroppableContainers:X})),[z,ze,L,te,O,$,_,Te,X]);return r.createElement(Se.Provider,{value:S},r.createElement(Xt.Provider,{value:Ve},r.createElement(qt.Provider,{value:Ue},r.createElement(Qt.Provider,{value:Le},g)),r.createElement(Jt,{disabled:!1===(null==a?void 0:a.restoreFocus)})),r.createElement(Be,{...a,hiddenTextDescribedById:$}))})),nn=i(null),on="button",rn="Droppable";function ln(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const i=he(rn),{activators:c,activatorEvent:a,active:s,activeNodeRect:u,ariaDescribedById:f,draggableNodes:p,over:h}=l(Xt),{role:g=on,roleDescription:v="draggable",tabIndex:y=0}=null!=r?r:{},m=(null==s?void 0:s.id)===t,b=l(m?Qt:nn),[w,x]=ue(),[k,E]=ue(),O=function(e,t){return d((()=>e.reduce(((e,n)=>{let{eventName:o,handler:r}=n;return e[o]=e=>{r(e,t)},e}),{})),[e,t])}(c,t),C=se(n);ce((()=>(p.set(t,{id:t,key:i,node:w,activatorNode:k,data:C}),()=>{const e=p.get(t);e&&e.key===i&&p.delete(t)})),[p,t]);return{active:s,activatorEvent:a,activeNodeRect:u,attributes:d((()=>({role:g,tabIndex:y,"aria-disabled":o,"aria-pressed":!(!m||g!==on)||void 0,"aria-roledescription":v,"aria-describedby":f.draggable})),[o,g,y,m,v,f.draggable]),isDragging:m,listeners:o?void 0:O,node:w,over:h,setNodeRef:x,setActivatorNodeRef:E,transform:b}}const cn="Droppable",an={timeout:25};function sn(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function dn(e,t){return e.reduce(((e,n,o)=>{const r=t.get(n);return r&&(e[o]=r),e}),Array(e.length))}function un(e){return null!==e&&e>=0}const fn=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=sn(t,o,n),l=t[r],c=i[r];return c&&l?{x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height}:null},pn={scaleX:1,scaleY:1},hn=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:r,rects:i,overIndex:l}=e;const c=null!=(t=i[n])?t:o;if(!c)return null;if(r===n){const e=i[l];return e?{x:0,y:n<l?e.top+e.height-(c.top+c.height):e.top-c.top,...pn}:null}const a=function(e,t,n){const o=e[t],r=e[t-1],i=e[t+1];if(!o)return 0;if(n<t)return r?o.top-(r.top+r.height):i?i.top-(o.top+o.height):0;return i?i.top-(o.top+o.height):r?o.top-(r.top+r.height):0}(i,r,n);return r>n&&r<=l?{x:0,y:-c.height-a,...pn}:r<n&&r>=l?{x:0,y:c.height+a,...pn}:{x:0,y:0,...pn}};const gn="Sortable",vn=r.createContext({activeIndex:-1,containerId:gn,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:fn,disabled:{draggable:!1,droppable:!1}});function yn(e){let{children:t,id:n,items:o,strategy:i=fn,disabled:a=!1}=e;const{active:u,dragOverlay:f,droppableRects:p,over:h,measureDroppableContainers:g}=l(qt),v=he(gn,n),y=Boolean(null!==f.rect),m=d((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),b=null!=u,w=u?m.indexOf(u.id):-1,x=h?m.indexOf(h.id):-1,k=c(m),E=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(m,k.current),O=-1!==x&&-1===w||E,C=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);ce((()=>{E&&b&&g(m)}),[E,m,b,g]),s((()=>{k.current=m}),[m]);const S=d((()=>({activeIndex:w,containerId:v,disabled:C,disableTransforms:O,items:m,overIndex:x,useDragOverlay:y,sortedRects:dn(m,p),strategy:i})),[w,v,C.draggable,C.droppable,O,m,x,p,y,i]);return r.createElement(vn.Provider,{value:S},t)}const mn=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return sn(n,o,r).indexOf(t)},bn=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:l,previousItems:c,previousContainerId:a,transition:s}=e;return!(!s||!o)&&((c===i||r!==l)&&(!!n||l!==r&&t===a))},wn={duration:200,easing:"ease"},xn="transform",kn=we.Transition.toString({property:xn,duration:0,easing:"linear"}),En={roleDescription:"sortable"};function On(e){let{animateLayoutChanges:t=bn,attributes:n,disabled:o,data:r,getNewIndex:i=mn,id:a,strategy:p,resizeObserverConfig:h,transition:g=wn}=e;const{items:v,containerId:y,activeIndex:m,disabled:b,disableTransforms:w,sortedRects:x,overIndex:k,useDragOverlay:E,strategy:O}=l(vn),C=function(e,t){var n,o;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable}}(o,b),S=v.indexOf(a),D=d((()=>({sortable:{containerId:y,index:S,items:v},...r})),[y,r,S,v]),j=d((()=>v.slice(v.indexOf(a))),[v,a]),{rect:B,node:R,isOver:_,setNodeRef:A}=function(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const i=he(cn),{active:a,dispatch:d,over:f,measureDroppableContainers:p}=l(Xt),h=c({disabled:n}),g=c(!1),v=c(null),y=c(null),{disabled:m,updateMeasurementsFor:b,timeout:w}={...an,...r},x=se(null!=b?b:o),k=Nt({callback:u((()=>{g.current?(null!=y.current&&clearTimeout(y.current),y.current=setTimeout((()=>{p(Array.isArray(x.current)?x.current:[x.current]),y.current=null}),w)):g.current=!0}),[w]),disabled:m||!a}),E=u(((e,t)=>{k&&(t&&(k.unobserve(t),g.current=!1),e&&k.observe(e))}),[k]),[O,C]=ue(E),S=se(t);return s((()=>{k&&O.current&&(k.disconnect(),g.current=!1,k.observe(O.current))}),[O,k]),ce((()=>(d({type:Re.RegisterDroppable,element:{id:o,key:i,disabled:n,node:O,rect:v,data:S}}),()=>d({type:Re.UnregisterDroppable,key:i,id:o}))),[o]),s((()=>{n!==h.current.disabled&&(d({type:Re.SetDroppableDisabled,id:o,key:i,disabled:n}),h.current.disabled=n)}),[o,i,n,d]),{active:a,rect:v,isOver:(null==f?void 0:f.id)===o,node:O,over:f,setNodeRef:C}}({id:a,data:D,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:j,...h}}),{active:M,activatorEvent:T,activeNodeRect:N,attributes:L,setNodeRef:P,listeners:I,isDragging:F,over:z,setActivatorNodeRef:U,transform:H}=ln({id:a,data:D,attributes:{...En,...n},disabled:C.draggable}),$=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d((()=>e=>{t.forEach((t=>t(e)))}),t)}(A,P),V=Boolean(M),W=V&&!w&&un(m)&&un(k),K=!E&&F,Y=K&&W?H:null,X=W?null!=Y?Y:(null!=p?p:O)({rects:x,activeNodeRect:N,activeIndex:m,overIndex:k,index:S}):null,q=un(m)&&un(k)?i({id:a,items:v,activeIndex:m,overIndex:k}):S,Z=null==M?void 0:M.id,G=c({activeId:Z,items:v,newIndex:q,containerId:y}),J=v!==G.current.items,Q=t({active:M,containerId:y,isDragging:F,isSorting:V,id:a,index:S,items:v,newIndex:G.current.newIndex,previousItems:G.current.items,previousContainerId:G.current.containerId,transition:g,wasDragging:null!=G.current.activeId}),ee=function(e){let{disabled:t,index:n,node:o,rect:r}=e;const[i,l]=f(null),a=c(n);return ce((()=>{if(!t&&n!==a.current&&o.current){const e=r.current;if(e){const t=Ye(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}n!==a.current&&(a.current=n)}),[t,n,o,r]),s((()=>{i&&l(null)}),[i]),i}({disabled:!Q,index:S,node:R,rect:B});return s((()=>{V&&G.current.newIndex!==q&&(G.current.newIndex=q),y!==G.current.containerId&&(G.current.containerId=y),v!==G.current.items&&(G.current.items=v)}),[V,q,y,v]),s((()=>{if(Z===G.current.activeId)return;if(Z&&!G.current.activeId)return void(G.current.activeId=Z);const e=setTimeout((()=>{G.current.activeId=Z}),50);return()=>clearTimeout(e)}),[Z]),{active:M,activeIndex:m,attributes:L,data:D,rect:B,index:S,newIndex:q,items:v,isOver:_,isSorting:V,isDragging:F,listeners:I,node:R,overIndex:k,over:z,setNodeRef:$,setActivatorNodeRef:U,setDroppableNodeRef:A,setDraggableNodeRef:P,transform:null!=ee?ee:X,transition:function(){if(ee||J&&G.current.newIndex===S)return kn;if(K&&!me(T)||!g)return;if(V||Q)return we.Transition.toString({...g,property:xn});return}()}}function Cn(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Sn=[pt.Down,pt.Right,pt.Up,pt.Left],Dn=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:i,over:l,scrollableAncestors:c}}=t;if(Sn.includes(e.code)){if(e.preventDefault(),!n||!o)return;const t=[];i.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const i=r.get(n.id);if(i)switch(e.code){case pt.Down:o.top<i.top&&t.push(n);break;case pt.Up:o.top>i.top&&t.push(n);break;case pt.Left:o.left>i.left&&t.push(n);break;case pt.Right:o.left<i.left&&t.push(n)}}));const a=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=Pe(t),i=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=Pe(o),l=r.reduce(((e,t,o)=>e+Te(n[o],t)),0),c=Number((l/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:c}})}}return i.sort(Ne)})({active:n,collisionRect:o,droppableRects:r,droppableContainers:t,pointerCoordinates:null});let s=Ie(a,"id");if(s===(null==l?void 0:l.id)&&a.length>1&&(s=a[1].id),null!=s){const e=i.get(n.id),t=i.get(s),l=t?r.get(t.id):null,a=null==t?void 0:t.node.current;if(a&&l&&e&&t){const n=qe(a).some(((e,t)=>c[t]!==e)),r=jn(e,t),i=function(e,t){if(!Cn(e)||!Cn(t))return!1;if(!jn(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),s=n||!r?{x:0,y:0}:{x:i?o.width-l.width:0,y:i?o.height-l.height:0},d={x:l.left,y:l.top};return s.x&&s.y?d:ye(d,s)}}}};function jn(e,t){return!(!Cn(e)||!Cn(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var Bn;function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rn.apply(this,arguments)}var _n,An=function(e){return o.createElement("svg",Rn({viewBox:"0 0 10 10",fill:"currentColor",style:{width:14,height:14,display:"block",flexShrink:0,backfaceVisibility:"hidden"}},e),Bn||(Bn=o.createElement("path",{d:"M3 2a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm4-8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"})))};function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mn.apply(this,arguments)}var Tn=function(e){return o.createElement("svg",Mn({viewBox:"0 0 16 16",fill:"currentColor",style:{width:16,height:16,display:"block",flexShrink:0,backfaceVisibility:"hidden"}},e),_n||(_n=o.createElement("path",{d:"M7.977 14.963c.407 0 .747-.324.747-.723V8.72h5.362c.399 0 .74-.34.74-.747a.746.746 0 0 0-.74-.738H8.724V1.706c0-.398-.34-.722-.747-.722a.732.732 0 0 0-.739.722v5.529h-5.37a.746.746 0 0 0-.74.738c0 .407.341.747.74.747h5.37v5.52c0 .399.332.723.739.723z"})))};function Nn(e,t={}){const n=Object.keys(e.children),{at:o=e.selection}=t,r=n.find((t=>e.children[t].meta.order===(null==o?void 0:o[0])));if(r)return e.blockEditorsMap[r]}function Ln(e){return Fn(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function In(e){var t;return null==(t=(Fn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Fn(e){return e instanceof Node||e instanceof Pn(e).Node}function zn(e){return e instanceof Element||e instanceof Pn(e).Element}function Un(e){return e instanceof HTMLElement||e instanceof Pn(e).HTMLElement}function Hn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot)}function $n(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Vn(e){return["table","td","th"].includes(Ln(e))}function Wn(e){const t=Kn(),n=Xn(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Kn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Yn(e){return["html","body","#document"].includes(Ln(e))}function Xn(e){return Pn(e).getComputedStyle(e)}function qn(e){return zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Zn(e){if("html"===Ln(e))return e;const t=e.assignedSlot||e.parentNode||Hn(e)&&e.host||In(e);return Hn(t)?t.host:t}function Gn(e){const t=Zn(e);return Yn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Un(t)&&$n(t)?t:Gn(t)}function Jn(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=Gn(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),l=Pn(r);return i?t.concat(l,l.visualViewport||[],$n(r)?r:[],l.frameElement&&n?Jn(l.frameElement):[]):t.concat(r,Jn(r,[],n))}const Qn=Math.min,eo=Math.max,to=Math.round,no=Math.floor,oo=e=>({x:e,y:e}),ro={left:"right",right:"left",bottom:"top",top:"bottom"},io={start:"end",end:"start"};function lo(e,t,n){return eo(e,Qn(t,n))}function co(e,t){return"function"==typeof e?e(t):e}function ao(e){return e.split("-")[0]}function so(e){return e.split("-")[1]}function uo(e){return"x"===e?"y":"x"}function fo(e){return"y"===e?"height":"width"}function po(e){return["top","bottom"].includes(ao(e))?"y":"x"}function ho(e){return uo(po(e))}function go(e){return e.replace(/start|end/g,(e=>io[e]))}function vo(e){return e.replace(/left|right|bottom|top/g,(e=>ro[e]))}function yo(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function mo(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function bo(e,t,n){let{reference:o,floating:r}=e;const i=po(t),l=ho(t),c=fo(l),a=ao(t),s="y"===i,d=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,f=o[c]/2-r[c]/2;let p;switch(a){case"top":p={x:d,y:o.y-r.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:u};break;case"left":p={x:o.x-r.width,y:u};break;default:p={x:o.x,y:o.y}}switch(so(t)){case"start":p[l]-=f*(n&&s?-1:1);break;case"end":p[l]+=f*(n&&s?-1:1)}return p}async function wo(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:c,strategy:a}=e,{boundary:s="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=co(t,e),h=yo(p),g=c[f?"floating"===u?"reference":"floating":u],v=mo(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:s,rootBoundary:d,strategy:a})),y="floating"===u?{...l.floating,x:o,y:r}:l.reference,m=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),b=await(null==i.isElement?void 0:i.isElement(m))&&await(null==i.getScale?void 0:i.getScale(m))||{x:1,y:1},w=mo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:m,strategy:a}):y);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}function xo(e){const t=Qn(...e.map((e=>e.left))),n=Qn(...e.map((e=>e.top)));return{x:t,y:n,width:eo(...e.map((e=>e.right)))-t,height:eo(...e.map((e=>e.bottom)))-n}}const ko=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:l,middlewareData:c}=t,a=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=ao(n),c=so(n),a="y"===po(n),s=["left","top"].includes(l)?-1:1,d=i&&a?-1:1,u=co(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return c&&"number"==typeof h&&(p="end"===c?-1*h:h),a?{x:p*d,y:f*s}:{x:f*s,y:p*d}}(t,e);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:l}}}}};function Eo(e){const t=Xn(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Un(e),i=r?e.offsetWidth:n,l=r?e.offsetHeight:o,c=to(n)!==i||to(o)!==l;return c&&(n=i,o=l),{width:n,height:o,$:c}}function Oo(e){return zn(e)?e:e.contextElement}function Co(e){const t=Oo(e);if(!Un(t))return oo(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Eo(t);let l=(i?to(n.width):n.width)/o,c=(i?to(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const So=oo(0);function Do(e){const t=Pn(e);return Kn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:So}function jo(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=Oo(e);let l=oo(1);t&&(o?zn(o)&&(l=Co(o)):l=Co(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Pn(e))&&t}(i,n,o)?Do(i):oo(0);let a=(r.left+c.x)/l.x,s=(r.top+c.y)/l.y,d=r.width/l.x,u=r.height/l.y;if(i){const e=Pn(i),t=o&&zn(o)?Pn(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=Co(r),t=r.getBoundingClientRect(),o=Xn(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;a*=e.x,s*=e.y,d*=e.x,u*=e.y,a+=i,s+=l,n=Pn(r),r=n.frameElement}}return mo({width:d,height:u,x:a,y:s})}const Bo=[":popover-open",":modal"];function Ro(e){return Bo.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function _o(e){return jo(In(e)).left+qn(e).scrollLeft}function Ao(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=Pn(e),o=In(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,c=0,a=0;if(r){i=r.width,l=r.height;const e=Kn();(!e||e&&"fixed"===t)&&(c=r.offsetLeft,a=r.offsetTop)}return{width:i,height:l,x:c,y:a}}(e,n);else if("document"===t)o=function(e){const t=In(e),n=qn(e),o=e.ownerDocument.body,r=eo(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=eo(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+_o(e);const c=-n.scrollTop;return"rtl"===Xn(o).direction&&(l+=eo(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:c}}(In(e));else if(zn(t))o=function(e,t){const n=jo(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Un(e)?Co(e):oo(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Do(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return mo(o)}function Mo(e,t){const n=Zn(e);return!(n===t||!zn(n)||Yn(n))&&("fixed"===Xn(n).position||Mo(n,t))}function To(e,t,n){const o=Un(t),r=In(t),i="fixed"===n,l=jo(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const a=oo(0);if(o||!o&&!i)if(("body"!==Ln(t)||$n(r))&&(c=qn(t)),o){const e=jo(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=_o(r));return{x:l.left+c.scrollLeft-a.x,y:l.top+c.scrollTop-a.y,width:l.width,height:l.height}}function No(e,t){return Un(e)&&"fixed"!==Xn(e).position?t?t(e):e.offsetParent:null}function Lo(e,t){const n=Pn(e);if(!Un(e)||Ro(e))return n;let o=No(e,t);for(;o&&Vn(o)&&"static"===Xn(o).position;)o=No(o,t);return o&&("html"===Ln(o)||"body"===Ln(o)&&"static"===Xn(o).position&&!Wn(o))?n:o||function(e){let t=Zn(e);for(;Un(t)&&!Yn(t);){if(Wn(t))return t;t=Zn(t)}return null}(e)||n}const Po={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,l=In(o),c=!!t&&Ro(t.floating);if(o===l||c&&i)return n;let a={scrollLeft:0,scrollTop:0},s=oo(1);const d=oo(0),u=Un(o);if((u||!u&&!i)&&(("body"!==Ln(o)||$n(l))&&(a=qn(o)),Un(o))){const e=jo(o);s=Co(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+d.x,y:n.y*s.y-a.scrollTop*s.y+d.y}},getDocumentElement:In,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=Jn(e,[],!1).filter((e=>zn(e)&&"body"!==Ln(e))),r=null;const i="fixed"===Xn(e).position;let l=i?Zn(e):e;for(;zn(l)&&!Yn(l);){const t=Xn(l),n=Wn(l);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||$n(l)&&!n&&Mo(e,l))?o=o.filter((e=>e!==l)):r=t,l=Zn(l)}return t.set(e,o),o}(t,this._c):[].concat(n),o],l=i[0],c=i.reduce(((e,n)=>{const o=Ao(t,n,r);return e.top=eo(o.top,e.top),e.right=Qn(o.right,e.right),e.bottom=Qn(o.bottom,e.bottom),e.left=eo(o.left,e.left),e}),Ao(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Lo,getElementRects:async function(e){const t=this.getOffsetParent||Lo,n=this.getDimensions;return{reference:To(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Eo(e);return{width:t,height:n}},getScale:Co,isElement:zn,isRTL:function(e){return"rtl"===Xn(e).direction}};function Io(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,s=Oo(e),d=r||i?[...s?Jn(s):[],...Jn(t)]:[];d.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=s&&c?function(e,t){let n,o=null;const r=In(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function l(c,a){void 0===c&&(c=!1),void 0===a&&(a=1),i();const{left:s,top:d,width:u,height:f}=e.getBoundingClientRect();if(c||t(),!u||!f)return;const p={rootMargin:-no(d)+"px "+-no(r.clientWidth-(s+u))+"px "+-no(r.clientHeight-(d+f))+"px "+-no(s)+"px",threshold:eo(0,Qn(1,a))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==a){if(!h)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(g,{...p,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,p)}o.observe(e)}(!0),i}(s,n):null;let f,p=-1,h=null;l&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===s&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),s&&!a&&h.observe(s),h.observe(t));let g=a?jo(e):null;return a&&function t(){const o=jo(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=h)||e.disconnect(),h=null,a&&cancelAnimationFrame(f)}}const Fo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=co(e,t),s={x:n,y:o},d=await wo(t,a),u=po(ao(r)),f=uo(u);let p=s[f],h=s[u];if(i){const e="y"===f?"bottom":"right";p=lo(p+d["y"===f?"top":"left"],p,p-d[e])}if(l){const e="y"===u?"bottom":"right";h=lo(h+d["y"===u?"top":"left"],h,h-d[e])}const g=c.fn({...t,[f]:p,[u]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}},zo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:l,initialPlacement:c,platform:a,elements:s}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...v}=co(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=ao(r),m=ao(c)===c,b=await(null==a.isRTL?void 0:a.isRTL(s.floating)),w=f||(m||!g?[vo(c)]:function(e){const t=vo(e);return[go(e),t,go(t)]}(c));f||"none"===h||w.push(...function(e,t,n,o){const r=so(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:l;default:return[]}}(ao(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(go)))),i}(c,g,h,b));const x=[c,...w],k=await wo(t,v),E=[];let O=(null==(o=i.flip)?void 0:o.overflows)||[];if(d&&E.push(k[y]),u){const e=function(e,t,n){void 0===n&&(n=!1);const o=so(e),r=ho(e),i=fo(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=vo(l)),[l,vo(l)]}(r,l,b);E.push(k[e[0]],k[e[1]])}if(O=[...O,{placement:r,overflows:E}],!E.every((e=>e<=0))){var C,S;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(S=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=O.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=c}if(r!==n)return{reset:{placement:n}}}return{}}}},Uo=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:r,platform:i,strategy:l}=t,{padding:c=2,x:a,y:s}=co(e,t),d=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(o.reference))||[]),u=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let o=null;for(let e=0;e<t.length;e++){const r=t[e];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((e=>mo(xo(e))))}(d),f=mo(xo(d)),p=yo(c);const h=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===u.length&&u[0].left>u[1].right&&null!=a&&null!=s)return u.find((e=>a>e.left-p.left&&a<e.right+p.right&&s>e.top-p.top&&s<e.bottom+p.bottom))||f;if(u.length>=2){if("y"===po(n)){const e=u[0],t=u[u.length-1],o="top"===ao(n),r=e.top,i=t.bottom,l=o?e.left:t.left,c=o?e.right:t.right;return{top:r,bottom:i,left:l,right:c,width:c-l,height:i-r,x:l,y:r}}const e="left"===ao(n),t=eo(...u.map((e=>e.right))),o=Qn(...u.map((e=>e.left))),r=u.filter((n=>e?n.left===o:n.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:o,right:t,width:t-o,height:l-i,x:o,y:i}}return f}},floating:o.floating,strategy:l});return r.reference.x!==h.reference.x||r.reference.y!==h.reference.y||r.reference.width!==h.reference.width||r.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Ho=(e,t,n)=>{const o=new Map,r={platform:Po,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,c=i.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=bo(s,o,a),f=o,p={},h=0;for(let n=0;n<c.length;n++){const{name:i,fn:g}=c[n],{x:v,y:y,data:m,reset:b}=await g({x:d,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});d=null!=v?v:d,u=null!=y?y:u,p={...p,[i]:{...p[i],...m}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(s=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):b.rects),({x:d,y:u}=bo(s,f,a))),n=-1)}return{x:d,y:u,placement:f,strategy:r,middlewareData:p}})(e,t,{...r,platform:i})};var $o="undefined"!=typeof document?a:s;function Vo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!=o--;)if(!Vo(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!=o--;){const n=r[o];if(("_owner"!==n||!e.$$typeof)&&!Vo(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Wo(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ko(e,t){const n=Wo(e);return Math.round(t*n)/n}function Yo(e){const t=o.useRef(e);return $o((()=>{t.current=e})),t}
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as n}from"react/jsx-runtime";import*as o from"react";import r,{createContext as i,useContext as l,useRef as c,useLayoutEffect as a,useEffect as s,useMemo as d,useCallback as u,useState as f,memo as p,useReducer as h,forwardRef as g,createElement as v}from"react";import*as y from"react-dom";import{unstable_batchedUpdates as m,createPortal as b}from"react-dom";import{ReactEditor as w,useSelected as x,Slate as k,Editable as E,DefaultElement as O,withReact as C}from"slate-react";import{Editor as S,Transforms as D,Path as j,Range as B,Text as R,Element as _,Operation as A,createEditor as M,Point as T}from"slate";class N{constructor(e){this.plugin=e}get getPlugin(){return this.plugin}extend(e){const{renders:t,options:n}=e,o=Object.assign(Object.assign({},this.plugin.options),n),r=Object.assign({},this.plugin.elements);return t&&Object.keys(t).forEach((e=>{const n=r[e];if(n&&n.render){const o=t[e];let r=n.render;n.render=e=>r(Object.assign(Object.assign({},e),{extendRender:o}))}})),new N(Object.assign(Object.assign({},this.plugin),{elements:r,options:o}))}}function L(e,t={}){const n=Object.keys(e.children),{at:o=e.selection}=t,r=n.find((t=>e.children[t].meta.order===(null==o?void 0:o[0])));return r?e.children[r]:null}const P={editor:{id:"",getBlock:()=>{},insertBlock:()=>{},insertBlocks:()=>{},updateBlock:()=>{},moveBlock:()=>{},splitBlock:()=>{},deleteBlock:()=>{},deleteBlocks:()=>{},toggleBlock:()=>{},focusBlock:()=>{},decreaseBlockDepth:()=>{},increaseBlockDepth:()=>{},duplicateBlock:()=>{},setBlockSelected:()=>{},selectedBlocks:[],setSelection:()=>{},applyChanges:()=>{},getEditorValue:()=>{},setEditorValue:()=>{},blocks:{},shortcuts:{},plugins:{},formats:{},selection:null,readOnly:!1,blockEditorsMap:{},children:{},emit:()=>{},on:()=>{},off:()=>{},once:()=>{},blur:()=>{},isFocused:()=>!1,focus:()=>{}}},I=i(P),F=({children:t,editorState:n})=>{const o=c(P);return o.current={editor:n.editor},e(I.Provider,Object.assign({value:o.current},{children:t}))},z=()=>{const e=l(I);if(!e)throw new Error("useYooptaEditor must be used within a YooptaEditorContext");return e.editor},U=e=>z().children[e],H=()=>z().isFocused(),$=()=>z().readOnly,V=e=>{var t;return null===(t=z().plugins[e])||void 0===t?void 0:t.options},W=({blockId:e,path:t})=>{var n;const o=z();if(!e&&!t)throw new Error("useBlockSelected must receive either blockId or path");let r;return e&&(r=o.children[e]),t&&(r=L(o,{at:t})),(null===(n=o.selection)||void 0===n?void 0:n[0])===(null==r?void 0:r.meta.order)};var K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Y={};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function o(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,o,i,l){if("function"!=typeof o)throw new TypeError("The listener must be a function");var c=new r(o,i||e,l),a=n?n+t:t;return e._events[a]?e._events[a].fn?e._events[a]=[e._events[a],c]:e._events[a].push(c):(e._events[a]=c,e._eventsCount++),e}function l(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,o,r=[];if(0===this._eventsCount)return r;for(o in e=this._events)t.call(e,o)&&r.push(n?o.slice(1):o);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},c.prototype.listeners=function(e){var t=n?n+e:e,o=this._events[t];if(!o)return[];if(o.fn)return[o.fn];for(var r=0,i=o.length,l=new Array(i);r<i;r++)l[r]=o[r].fn;return l},c.prototype.listenerCount=function(e){var t=n?n+e:e,o=this._events[t];return o?o.fn?1:o.length:0},c.prototype.emit=function(e,t,o,r,i,l){var c=n?n+e:e;if(!this._events[c])return!1;var a,s,d=this._events[c],u=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),u){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,o),!0;case 4:return d.fn.call(d.context,t,o,r),!0;case 5:return d.fn.call(d.context,t,o,r,i),!0;case 6:return d.fn.call(d.context,t,o,r,i,l),!0}for(s=1,a=new Array(u-1);s<u;s++)a[s-1]=arguments[s];d.fn.apply(d.context,a)}else{var f,p=d.length;for(s=0;s<p;s++)switch(d[s].once&&this.removeListener(e,d[s].fn,void 0,!0),u){case 1:d[s].fn.call(d[s].context);break;case 2:d[s].fn.call(d[s].context,t);break;case 3:d[s].fn.call(d[s].context,t,o);break;case 4:d[s].fn.call(d[s].context,t,o,r);break;default:if(!a)for(f=1,a=new Array(u-1);f<u;f++)a[f-1]=arguments[f];d[s].fn.apply(d[s].context,a)}}return!0},c.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,o,r){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return l(this,i),this;var c=this._events[i];if(c.fn)c.fn!==t||r&&!c.once||o&&c.context!==o||l(this,i);else{for(var a=0,s=[],d=c.length;a<d;a++)(c[a].fn!==t||r&&!c[a].once||o&&c[a].context!==o)&&s.push(c[a]);s.length?this._events[i]=1===s.length?s[0]:s:l(this,i)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&l(this,t)):(this._events=new o,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}({get exports(){return Y},set exports(e){Y=e}});var X=Y;function q(){let e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}const Z=()=>{var e,t;return"undefined"==typeof window||"function"!=typeof(null===(e=window.crypto)||void 0===e?void 0:e.randomUUID)?q():null===(t=window.crypto)||void 0===t?void 0:t.randomUUID()},G=e=>({id:Z(),type:(null==e?void 0:e.type)||"paragraph",children:(null==e?void 0:e.children)||[{text:""}],props:Object.assign({nodeType:"block"},null==e?void 0:e.props)}),J=e=>({id:(null==e?void 0:e.id)||Z(),value:(null==e?void 0:e.value)||[G()],type:(null==e?void 0:e.type)||"Paragraph",meta:Object.assign({order:0,depth:0},null==e?void 0:e.meta)});const Q="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function ee(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function te(e){return"nodeType"in e}function ne(e){var t,n;return e?ee(e)?e:te(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function oe(e){const{Document:t}=ne(e);return e instanceof t}function re(e){return!ee(e)&&e instanceof ne(e).HTMLElement}function ie(e){return e instanceof ne(e).SVGElement}function le(e){return e?ee(e)?e.document:te(e)?oe(e)?e:re(e)||ie(e)?e.ownerDocument:document:document:document}const ce=Q?a:s;function ae(e){const t=c(e);return ce((()=>{t.current=e})),u((function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return null==t.current?void 0:t.current(...n)}),[])}function se(e,t){void 0===t&&(t=[e]);const n=c(e);return ce((()=>{n.current!==e&&(n.current=e)}),t),n}function de(e,t){const n=c();return d((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function ue(e){const t=ae(e),n=c(null),o=u((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function fe(e){const t=c();return s((()=>{t.current=e}),[e]),t.current}let pe={};function he(e,t){return d((()=>{if(t)return t;const n=null==pe[e]?0:pe[e]+1;return pe[e]=n,e+"-"+n}),[e,t])}function ge(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce(((t,n)=>{const o=Object.entries(n);for(const[n,r]of o){const o=t[n];null!=o&&(t[n]=o+e*r)}return t}),{...t})}}const ve=ge(1),ye=ge(-1);function me(e){if(!e)return!1;const{KeyboardEvent:t}=ne(e.target);return t&&e instanceof t}function be(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=ne(e.target);return t&&e instanceof t}(e)){if(e.touches&&e.touches.length){const{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){const{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return function(e){return"clientX"in e&&"clientY"in e}(e)?{x:e.clientX,y:e.clientY}:null}const we=Object.freeze({Translate:{toString(e){if(!e)return;const{x:t,y:n}=e;return"translate3d("+(t?Math.round(t):0)+"px, "+(n?Math.round(n):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:t,scaleY:n}=e;return"scaleX("+t+") scaleY("+n+")"}},Transform:{toString(e){if(e)return[we.Translate.toString(e),we.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:o}=e;return t+" "+n+"ms "+o}}}),xe="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ke(e){return e.matches(xe)?e:e.querySelector(xe)}const Ee={display:"none"};function Oe(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:Ee},n)}function Ce(e){let{id:t,announcement:n,ariaLiveType:o="assertive"}=e;return r.createElement("div",{id:t,style:{position:"fixed",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":o,"aria-atomic":!0},n)}const Se=i(null);const De={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 "},je={onDragStart(e){let{active:t}=e;return"Picked up draggable item "+t.id+"."},onDragOver(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was moved over droppable area "+n.id+".":"Draggable item "+t.id+" is no longer over a droppable area."},onDragEnd(e){let{active:t,over:n}=e;return n?"Draggable item "+t.id+" was dropped over droppable area "+n.id:"Draggable item "+t.id+" was dropped."},onDragCancel(e){let{active:t}=e;return"Dragging was cancelled. Draggable item "+t.id+" was dropped."}};function Be(e){let{announcements:t=je,container:n,hiddenTextDescribedById:o,screenReaderInstructions:i=De}=e;const{announce:c,announcement:a}=function(){const[e,t]=f("");return{announce:u((e=>{null!=e&&t(e)}),[]),announcement:e}}(),p=he("DndLiveRegion"),[h,g]=f(!1);if(s((()=>{g(!0)}),[]),function(e){const t=l(Se);s((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}(d((()=>({onDragStart(e){let{active:n}=e;c(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:o}=e;t.onDragMove&&c(t.onDragMove({active:n,over:o}))},onDragOver(e){let{active:n,over:o}=e;c(t.onDragOver({active:n,over:o}))},onDragEnd(e){let{active:n,over:o}=e;c(t.onDragEnd({active:n,over:o}))},onDragCancel(e){let{active:n,over:o}=e;c(t.onDragCancel({active:n,over:o}))}})),[c,t])),!h)return null;const v=r.createElement(r.Fragment,null,r.createElement(Oe,{id:o,value:i.draggable}),r.createElement(Ce,{id:p,announcement:a}));return n?b(v,n):v}var Re;function _e(){}function Ae(e,t){return d((()=>({sensor:e,options:null!=t?t:{}})),[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"}(Re||(Re={}));const Me=Object.freeze({x:0,y:0});function Te(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Ne(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return n-o}function Le(e,t){let{data:{value:n}}=e,{data:{value:o}}=t;return o-n}function Pe(e){let{left:t,top:n,height:o,width:r}=e;return[{x:t,y:n},{x:t+r,y:n},{x:t,y:n+o},{x:t+r,y:n+o}]}function Ie(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function Fe(e,t,n){return void 0===t&&(t=e.left),void 0===n&&(n=e.top),{x:t+.5*e.width,y:n+.5*e.height}}const ze=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=Fe(t,t.left,t.top),i=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=Te(Fe(o),r);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(Ne)};function Ue(e,t){const n=Math.max(t.top,e.top),o=Math.max(t.left,e.left),r=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),l=r-o,c=i-n;if(o<r&&n<i){const n=t.width*t.height,o=e.width*e.height,r=l*c;return Number((r/(n+o-r)).toFixed(4))}return 0}const He=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=[];for(const e of o){const{id:o}=e,i=n.get(o);if(i){const n=Ue(i,t);n>0&&r.push({id:o,data:{droppableContainer:e,value:n}})}}return r.sort(Le)};function $e(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Me}function Ve(e){return function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return o.reduce(((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x})),{...t})}}const We=Ve(1);const Ke={ignoreTransform:!1};function Ye(e,t){void 0===t&&(t=Ke);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{transform:t,transformOrigin:o}=ne(e).getComputedStyle(e);t&&(n=function(e,t,n){const o=function(e){if(e.startsWith("matrix3d(")){const t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith("matrix(")){const t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}(t);if(!o)return e;const{scaleX:r,scaleY:i,x:l,y:c}=o,a=e.left-l-(1-r)*parseFloat(n),s=e.top-c-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),d=r?e.width/r:e.width,u=i?e.height/i:e.height;return{width:d,height:u,top:s,right:a+d,bottom:s+u,left:a}}(n,t,o))}const{top:o,left:r,width:i,height:l,bottom:c,right:a}=n;return{top:o,left:r,width:i,height:l,bottom:c,right:a}}function Xe(e){return Ye(e,{ignoreTransform:!0})}function qe(e,t){const n=[];return e?function o(r){if(null!=t&&n.length>=t)return n;if(!r)return n;if(oe(r)&&null!=r.scrollingElement&&!n.includes(r.scrollingElement))return n.push(r.scrollingElement),n;if(!re(r)||ie(r))return n;if(n.includes(r))return n;const i=ne(e).getComputedStyle(r);return r!==e&&function(e,t){void 0===t&&(t=ne(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const o=t[e];return"string"==typeof o&&n.test(o)}))}(r,i)&&n.push(r),function(e,t){return void 0===t&&(t=ne(e).getComputedStyle(e)),"fixed"===t.position}(r,i)?n:o(r.parentNode)}(e):n}function Ze(e){const[t]=qe(e,1);return null!=t?t:null}function Ge(e){return Q&&e?ee(e)?e:te(e)?oe(e)||e===le(e).scrollingElement?window:re(e)?e:null:null:null}function Je(e){return ee(e)?e.scrollX:e.scrollLeft}function Qe(e){return ee(e)?e.scrollY:e.scrollTop}function et(e){return{x:Je(e),y:Qe(e)}}var tt;function nt(e){return!(!Q||!e)&&e===document.scrollingElement}function ot(e){const t={x:0,y:0},n=nt(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},o={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=o.y,isRight:e.scrollLeft>=o.x,maxScroll:o,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(tt||(tt={}));const rt={x:.2,y:.2};function it(e,t,n,o,r){let{top:i,left:l,right:c,bottom:a}=n;void 0===o&&(o=10),void 0===r&&(r=rt);const{isTop:s,isBottom:d,isLeft:u,isRight:f}=ot(e),p={x:0,y:0},h={x:0,y:0},g=t.height*r.y,v=t.width*r.x;return!s&&i<=t.top+g?(p.y=tt.Backward,h.y=o*Math.abs((t.top+g-i)/g)):!d&&a>=t.bottom-g&&(p.y=tt.Forward,h.y=o*Math.abs((t.bottom-g-a)/g)),!f&&c>=t.right-v?(p.x=tt.Forward,h.x=o*Math.abs((t.right-v-c)/v)):!u&&l<=t.left+v&&(p.x=tt.Backward,h.x=o*Math.abs((t.left+v-l)/v)),{direction:p,speed:h}}function lt(e){if(e===document.scrollingElement){const{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}const{top:t,left:n,right:o,bottom:r}=e.getBoundingClientRect();return{top:t,left:n,right:o,bottom:r,width:e.clientWidth,height:e.clientHeight}}function ct(e){return e.reduce(((e,t)=>ve(e,et(t))),Me)}const at=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+Je(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+Qe(t)),0)}]];class st{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;const n=qe(t),o=ct(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,r]of at)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=r(n),l=o[e]-t;return this.rect[i]+l},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class dt{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,n){var o;null==(o=this.target)||o.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ut(e,t){const n=Math.abs(e.x),o=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+o**2)>t:"x"in t&&"y"in t?n>t.x&&o>t.y:"x"in t?n>t.x:"y"in t&&o>t.y}var ft,pt;function ht(e){e.preventDefault()}function gt(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"}(ft||(ft={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(pt||(pt={}));const vt={start:[pt.Space,pt.Enter],cancel:[pt.Esc],end:[pt.Space,pt.Enter]},yt=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case pt.Right:return{...n,x:n.x+25};case pt.Left:return{...n,x:n.x-25};case pt.Down:return{...n,y:n.y+25};case pt.Up:return{...n,y:n.y-25}}};class mt{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;const{event:{target:t}}=e;this.props=e,this.listeners=new dt(le(t)),this.windowListeners=new dt(ne(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ft.Resize,this.handleCancel),this.windowListeners.add(ft.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ft.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&function(e,t){if(void 0===t&&(t=Ye),!e)return;const{top:n,left:o,bottom:r,right:i}=t(e);Ze(e)&&(r<=0||i<=0||n>=window.innerHeight||o>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}(n),t(Me)}handleKeyDown(e){if(me(e)){const{active:t,context:n,options:o}=this.props,{keyboardCodes:r=vt,coordinateGetter:i=yt,scrollBehavior:l="smooth"}=o,{code:c}=e;if(r.end.includes(c))return void this.handleEnd(e);if(r.cancel.includes(c))return void this.handleCancel(e);const{collisionRect:a}=n.current,s=a?{x:a.left,y:a.top}:Me;this.referenceCoordinates||(this.referenceCoordinates=s);const d=i(e,{active:t,context:n.current,currentCoordinates:s});if(d){const t=ye(d,s),o={x:0,y:0},{scrollableAncestors:r}=n.current;for(const n of r){const r=e.code,{isTop:i,isRight:c,isLeft:a,isBottom:s,maxScroll:u,minScroll:f}=ot(n),p=lt(n),h={x:Math.min(r===pt.Right?p.right-p.width/2:p.right,Math.max(r===pt.Right?p.left:p.left+p.width/2,d.x)),y:Math.min(r===pt.Down?p.bottom-p.height/2:p.bottom,Math.max(r===pt.Down?p.top:p.top+p.height/2,d.y))},g=r===pt.Right&&!c||r===pt.Left&&!a,v=r===pt.Down&&!s||r===pt.Up&&!i;if(g&&h.x!==d.x){const e=n.scrollLeft+t.x,i=r===pt.Right&&e<=u.x||r===pt.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});o.x=i?n.scrollLeft-e:r===pt.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,o.x&&n.scrollBy({left:-o.x,behavior:l});break}if(v&&h.y!==d.y){const e=n.scrollTop+t.y,i=r===pt.Down&&e<=u.y||r===pt.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});o.y=i?n.scrollTop-e:r===pt.Down?n.scrollTop-u.y:n.scrollTop-f.y,o.y&&n.scrollBy({top:-o.y,behavior:l});break}}this.handleMove(e,ve(ye(d,this.referenceCoordinates),o))}}}handleMove(e,t){const{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){const{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){const{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}function bt(e){return Boolean(e&&"distance"in e)}function wt(e){return Boolean(e&&"delay"in e)}mt.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:o=vt,onActivation:r}=t,{active:i}=n;const{code:l}=e.nativeEvent;if(o.start.includes(l)){const t=i.activatorNode.current;return(!t||e.target===t)&&(e.preventDefault(),null==r||r({event:e.nativeEvent}),!0)}return!1}}];class xt{constructor(e,t,n){var o;void 0===n&&(n=function(e){const{EventTarget:t}=ne(e);return e instanceof t?e:le(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;const{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=le(i),this.documentListeners=new dt(this.document),this.listeners=new dt(n),this.windowListeners=new dt(ne(i)),this.initialCoordinates=null!=(o=be(r))?o:Me,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(){const{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(ft.Resize,this.handleCancel),this.windowListeners.add(ft.DragStart,ht),this.windowListeners.add(ft.VisibilityChange,this.handleCancel),this.windowListeners.add(ft.ContextMenu,ht),this.documentListeners.add(ft.Keydown,this.handleKeydown),t){if(null!=n&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(wt(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay));if(bt(t))return}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),null!==this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handleStart(){const{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(ft.Click,gt,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ft.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:o,props:r}=this,{onMove:i,options:{activationConstraint:l}}=r;if(!o)return;const c=null!=(t=be(e))?t:Me,a=ye(o,c);if(!n&&l){if(bt(l)){if(null!=l.tolerance&&ut(a,l.tolerance))return this.handleCancel();if(ut(a,l.distance))return this.handleStart()}return wt(l)&&ut(a,l.tolerance)?this.handleCancel():void 0}e.cancelable&&e.preventDefault(),i(c)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===pt.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const kt={move:{name:"pointermove"},end:{name:"pointerup"}};class Et extends xt{constructor(e){const{event:t}=e,n=le(t.target);super(e,kt,n)}}Et.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return!(!n.isPrimary||0!==n.button)&&(null==o||o({event:n}),!0)}}];const Ot={move:{name:"mousemove"},end:{name:"mouseup"}};var Ct;!function(e){e[e.RightClick=2]="RightClick"}(Ct||(Ct={}));(class extends xt{constructor(e){super(e,Ot,le(e.event.target))}}).activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;return n.button!==Ct.RightClick&&(null==o||o({event:n}),!0)}}];const St={move:{name:"touchmove"},end:{name:"touchend"}};var Dt,jt;function Bt(e){let{acceleration:t,activator:n=Dt.Pointer,canScroll:o,draggingRect:r,enabled:i,interval:l=5,order:a=jt.TreeOrder,pointerCoordinates:f,scrollableAncestors:p,scrollableAncestorRects:h,delta:g,threshold:v}=e;const y=function(e){let{delta:t,disabled:n}=e;const o=fe(t);return de((e=>{if(n||!o||!e)return Rt;const r={x:Math.sign(t.x-o.x),y:Math.sign(t.y-o.y)};return{x:{[tt.Backward]:e.x[tt.Backward]||-1===r.x,[tt.Forward]:e.x[tt.Forward]||1===r.x},y:{[tt.Backward]:e.y[tt.Backward]||-1===r.y,[tt.Forward]:e.y[tt.Forward]||1===r.y}}}),[n,t,o])}({delta:g,disabled:!i}),[m,b]=function(){const e=c(null);return[u(((t,n)=>{e.current=setInterval(t,n)}),[]),u((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}(),w=c({x:0,y:0}),x=c({x:0,y:0}),k=d((()=>{switch(n){case Dt.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Dt.DraggableRect:return r}}),[n,r,f]),E=c(null),O=u((()=>{const e=E.current;if(!e)return;const t=w.current.x*x.current.x,n=w.current.y*x.current.y;e.scrollBy(t,n)}),[]),C=d((()=>a===jt.TreeOrder?[...p].reverse():p),[a,p]);s((()=>{if(i&&p.length&&k){for(const e of C){if(!1===(null==o?void 0:o(e)))continue;const n=p.indexOf(e),r=h[n];if(!r)continue;const{direction:i,speed:c}=it(e,r,k,t,v);for(const e of["x","y"])y[e][i[e]]||(c[e]=0,i[e]=0);if(c.x>0||c.y>0)return b(),E.current=e,m(O,l),w.current=c,void(x.current=i)}w.current={x:0,y:0},x.current={x:0,y:0},b()}else b()}),[t,O,o,b,i,l,JSON.stringify(k),JSON.stringify(y),m,p,C,h,JSON.stringify(v)])}(class extends xt{constructor(e){super(e,St)}static setup(){return window.addEventListener(St.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(St.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:o}=t;const{touches:r}=n;return!(r.length>1)&&(null==o||o({event:n}),!0)}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(Dt||(Dt={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(jt||(jt={}));const Rt={x:{[tt.Backward]:!1,[tt.Forward]:!1},y:{[tt.Backward]:!1,[tt.Forward]:!1}};var _t,At;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(_t||(_t={})),function(e){e.Optimized="optimized"}(At||(At={}));const Mt=new Map;function Tt(e,t){return de((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Nt(e){let{callback:t,disabled:n}=e;const o=ae(t),r=d((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return s((()=>()=>null==r?void 0:r.disconnect()),[r]),r}function Lt(e){return new st(Ye(e),e)}function Pt(e,t,n){void 0===t&&(t=Lt);const[o,r]=h((function(o){if(!e)return null;var r;if(!1===e.isConnected)return null!=(r=null!=o?o:n)?r:null;const i=t(e);if(JSON.stringify(o)===JSON.stringify(i))return o;return i}),null),i=function(e){let{callback:t,disabled:n}=e;const o=ae(t),r=d((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return s((()=>()=>null==r?void 0:r.disconnect()),[r]),r}({callback(t){if(e)for(const n of t){const{type:t,target:o}=n;if("childList"===t&&o instanceof HTMLElement&&o.contains(e)){r();break}}}}),l=Nt({callback:r});return ce((()=>{r(),e?(null==l||l.observe(e),null==i||i.observe(document.body,{childList:!0,subtree:!0})):(null==l||l.disconnect(),null==i||i.disconnect())}),[e]),o}const It=[];function Ft(e,t){void 0===t&&(t=[]);const n=c(null);return s((()=>{n.current=null}),t),s((()=>{const t=e!==Me;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?ye(e,n.current):Me}function zt(e){return d((()=>e?function(e){const t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}(e):null),[e])}const Ut=[];function Ht(e){let{measure:t}=e;const[n,o]=f(null),r=u((e=>{for(const{target:n}of e)if(re(n)){o((e=>{const o=t(n);return e?{...e,width:o.width,height:o.height}:o}));break}}),[t]),i=Nt({callback:r}),l=u((e=>{const n=function(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return re(t)?t:e}(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),o(n?t(n):null)}),[t,i]),[c,a]=ue(l);return d((()=>({nodeRef:c,rect:n,setRef:a})),[n,c,a])}const $t=[{sensor:Et,options:{}},{sensor:mt,options:{}}],Vt={current:{}},Wt={draggable:{measure:Xe},droppable:{measure:Xe,strategy:_t.WhileDragging,frequency:At.Optimized},dragOverlay:{measure:Ye}};class Kt 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,n;return null!=(t=null==(n=this.get(e))?void 0:n.node.current)?t:void 0}}const Yt={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Kt,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:_e},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Wt,measureDroppableContainers:_e,windowRect:null,measuringScheduled:!1},Xt=i({activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:_e,draggableNodes:new Map,over:null,measureDroppableContainers:_e}),qt=i(Yt);function Zt(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Kt}}}function Gt(e,t){switch(t.type){case Re.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Re.DragMove:return e.draggable.active?{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}}:e;case Re.DragEnd:case Re.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Re.RegisterDroppable:{const{element:n}=t,{id:o}=n,r=new Kt(e.droppable.containers);return r.set(o,n),{...e,droppable:{...e.droppable,containers:r}}}case Re.SetDroppableDisabled:{const{id:n,key:o,disabled:r}=t,i=e.droppable.containers.get(n);if(!i||o!==i.key)return e;const l=new Kt(e.droppable.containers);return l.set(n,{...i,disabled:r}),{...e,droppable:{...e.droppable,containers:l}}}case Re.UnregisterDroppable:{const{id:n,key:o}=t,r=e.droppable.containers.get(n);if(!r||o!==r.key)return e;const i=new Kt(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Jt(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:r}=l(Xt),i=fe(o),c=fe(null==n?void 0:n.id);return s((()=>{if(!t&&!o&&i&&null!=c){if(!me(i))return;if(document.activeElement===i.target)return;const e=r.get(c);if(!e)return;const{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame((()=>{for(const e of[t.current,n.current]){if(!e)continue;const t=ke(e);if(t){t.focus();break}}}))}}),[o,t,r,c,i]),null}const Qt=i({...Me,scaleX:1,scaleY:1});var en;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(en||(en={}));const tn=p((function(e){var t,n,o,i;let{id:l,accessibility:a,autoScroll:p=!0,children:g,sensors:v=$t,collisionDetection:y=He,measuring:b,modifiers:w,...x}=e;const k=h(Gt,void 0,Zt),[E,O]=k,[C,S]=function(){const[e]=f((()=>new Set)),t=u((t=>(e.add(t),()=>e.delete(t))),[e]);return[u((t=>{let{type:n,event:o}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,o)}))}),[e]),t]}(),[D,j]=f(en.Uninitialized),B=D===en.Initialized,{draggable:{active:R,nodes:_,translate:A},droppable:{containers:M}}=E,T=R?_.get(R):null,N=c({initial:null,translated:null}),L=d((()=>{var e;return null!=R?{id:R,data:null!=(e=null==T?void 0:T.data)?e:Vt,rect:N}:null}),[R,T]),P=c(null),[I,F]=f(null),[z,U]=f(null),H=se(x,Object.values(x)),$=he("DndDescribedBy",l),V=d((()=>M.getEnabled()),[M]),W=d((()=>({draggable:{...Wt.draggable,...null==K?void 0:K.draggable},droppable:{...Wt.droppable,...null==K?void 0:K.droppable},dragOverlay:{...Wt.dragOverlay,...null==K?void 0:K.dragOverlay}})),[null==(K=b)?void 0:K.draggable,null==K?void 0:K.droppable,null==K?void 0:K.dragOverlay]);var K;const{droppableRects:Y,measureDroppableContainers:X,measuringScheduled:q}=function(e,t){let{dragging:n,dependencies:o,config:r}=t;const[i,l]=f(null),{frequency:a,measure:d,strategy:p}=r,h=c(e),g=function(){switch(p){case _t.Always:return!1;case _t.BeforeDragging:return n;default:return!n}}(),v=se(g),y=u((function(e){void 0===e&&(e=[]),v.current||l((t=>null===t?e:t.concat(e.filter((e=>!t.includes(e))))))}),[v]),m=c(null),b=de((t=>{if(g&&!n)return Mt;if(!t||t===Mt||h.current!==e||null!=i){const t=new Map;for(let n of e){if(!n)continue;if(i&&i.length>0&&!i.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new st(d(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t}),[e,i,n,g,d]);return s((()=>{h.current=e}),[e]),s((()=>{g||y()}),[n,g]),s((()=>{i&&i.length>0&&l(null)}),[JSON.stringify(i)]),s((()=>{g||"number"!=typeof a||null!==m.current||(m.current=setTimeout((()=>{y(),m.current=null}),a))}),[a,g,y,...o]),{droppableRects:b,measureDroppableContainers:y,measuringScheduled:null!=i}}(V,{dragging:B,dependencies:[A.x,A.y],config:W.droppable}),Z=function(e,t){const n=null!==t?e.get(t):void 0,o=n?n.node.current:null;return de((e=>{var n;return null===t?null:null!=(n=null!=o?o:e)?n:null}),[o,t])}(_,R),G=d((()=>z?be(z):null),[z]),J=function(){const e=!1===(null==I?void 0:I.autoScrollEnabled),t="object"==typeof p?!1===p.enabled:!1===p,n=B&&!e&&!t;if("object"==typeof p)return{...p,enabled:n};return{enabled:n}}(),ee=function(e,t){return Tt(e,t)}(Z,W.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:r=!0}=e;const i=c(!1),{x:l,y:a}="boolean"==typeof r?{x:r,y:r}:r;ce((()=>{if(!l&&!a||!t)return void(i.current=!1);if(i.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=$e(n(e),o);if(l||(r.x=0),a||(r.y=0),i.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=Ze(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,l,a,o,n])}({activeNode:R?_.get(R):null,config:J.layoutShiftCompensation,initialRect:ee,measure:W.draggable.measure});const te=Pt(Z,W.draggable.measure,ee),oe=Pt(Z?Z.parentElement:null),re=c({activatorEvent:null,active:null,activeNode:Z,collisionRect:null,collisions:null,droppableRects:Y,draggableNodes:_,draggingNode:null,draggingNodeRect:null,droppableContainers:M,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ie=M.getNodeFor(null==(t=re.current.over)?void 0:t.id),le=Ht({measure:W.dragOverlay.measure}),ae=null!=(n=le.nodeRef.current)?n:Z,ue=B?null!=(o=le.rect)?o:te:null,fe=Boolean(le.nodeRef.current&&le.rect),pe=$e(ge=fe?null:te,Tt(ge));var ge;const ye=zt(ae?ne(ae):null),me=function(e){const t=c(e),n=de((n=>e?n&&n!==It&&e&&t.current&&e.parentNode===t.current.parentNode?n:qe(e):It),[e]);return s((()=>{t.current=e}),[e]),n}(B?null!=ie?ie:Z:null),we=function(e,t){void 0===t&&(t=Ye);const[n]=e,o=zt(n?ne(n):null),[r,i]=h((function(){return e.length?e.map((e=>nt(e)?o:new st(t(e),e))):Ut}),Ut),l=Nt({callback:i});return e.length>0&&r===Ut&&i(),ce((()=>{e.length?e.forEach((e=>null==l?void 0:l.observe(e))):(null==l||l.disconnect(),i())}),[e]),r}(me),xe=function(e,t){let{transform:n,...o}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...o})),n):n}(w,{transform:{x:A.x-pe.x,y:A.y-pe.y,scaleX:1,scaleY:1},activatorEvent:z,active:L,activeNodeRect:te,containerNodeRect:oe,draggingNodeRect:ue,over:re.current.over,overlayNodeRect:le.rect,scrollableAncestors:me,scrollableAncestorRects:we,windowRect:ye}),ke=G?ve(G,A):null,Ee=function(e){const[t,n]=f(null),o=c(e),r=u((e=>{const t=Ge(e.target);t&&n((e=>e?(e.set(t,et(t)),new Map(e)):null))}),[]);return s((()=>{const t=o.current;if(e!==t){i(t);const l=e.map((e=>{const t=Ge(e);return t?(t.addEventListener("scroll",r,{passive:!0}),[t,et(t)]):null})).filter((e=>null!=e));n(l.length?new Map(l):null),o.current=e}return()=>{i(e),i(t)};function i(e){e.forEach((e=>{const t=Ge(e);null==t||t.removeEventListener("scroll",r)}))}}),[r,e]),d((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>ve(e,t)),Me):ct(e):Me),[e,t])}(me),Oe=Ft(Ee),Ce=Ft(Ee,[te]),De=ve(xe,Oe),je=ue?We(ue,xe):null,_e=L&&je?y({active:L,collisionRect:je,droppableRects:Y,droppableContainers:V,pointerCoordinates:ke}):null,Ae=Ie(_e,"id"),[Te,Ne]=f(null),Le=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(fe?xe:ve(xe,Ce),null!=(i=null==Te?void 0:Te.rect)?i:null,te),Pe=u(((e,t)=>{let{sensor:n,options:o}=t;if(null==P.current)return;const r=_.get(P.current);if(!r)return;const i=e.nativeEvent,l=new n({active:P.current,activeNode:r,event:i,options:o,context:re,onStart(e){const t=P.current;if(null==t)return;const n=_.get(t);if(!n)return;const{onDragStart:o}=H.current,r={active:{id:t,data:n.data,rect:N}};m((()=>{null==o||o(r),j(en.Initializing),O({type:Re.DragStart,initialCoordinates:e,active:t}),C({type:"onDragStart",event:r})}))},onMove(e){O({type:Re.DragMove,coordinates:e})},onEnd:c(Re.DragEnd),onCancel:c(Re.DragCancel)});function c(e){return async function(){const{active:t,collisions:n,over:o,scrollAdjustedTranslate:r}=re.current;let l=null;if(t&&r){const{cancelDrop:c}=H.current;if(l={activatorEvent:i,active:t,collisions:n,delta:r,over:o},e===Re.DragEnd&&"function"==typeof c){await Promise.resolve(c(l))&&(e=Re.DragCancel)}}P.current=null,m((()=>{O({type:e}),j(en.Uninitialized),Ne(null),F(null),U(null);const t=e===Re.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=H.current[t];null==e||e(l),C({type:t,event:l})}}))}}m((()=>{F(l),U(e.nativeEvent)}))}),[_]),Fe=u(((e,t)=>(n,o)=>{const r=n.nativeEvent,i=_.get(o);if(null!==P.current||!i||r.dndKit||r.defaultPrevented)return;const l={active:i};!0===e(n,t.options,l)&&(r.dndKit={capturedBy:t.sensor},P.current=o,Pe(n,t))}),[_,Pe]),ze=function(e,t){return d((()=>e.reduce(((e,n)=>{const{sensor:o}=n;return[...e,...o.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(v,Fe);!function(e){s((()=>{if(!Q)return;const t=e.map((e=>{let{sensor:t}=e;return null==t.setup?void 0:t.setup()}));return()=>{for(const e of t)null==e||e()}}),e.map((e=>{let{sensor:t}=e;return t})))}(v),ce((()=>{te&&D===en.Initializing&&j(en.Initialized)}),[te,D]),s((()=>{const{onDragMove:e}=H.current,{active:t,activatorEvent:n,collisions:o,over:r}=re.current;if(!t||!n)return;const i={active:t,activatorEvent:n,collisions:o,delta:{x:De.x,y:De.y},over:r};m((()=>{null==e||e(i),C({type:"onDragMove",event:i})}))}),[De.x,De.y]),s((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:o,scrollAdjustedTranslate:r}=re.current;if(!e||null==P.current||!t||!r)return;const{onDragOver:i}=H.current,l=o.get(Ae),c=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,a={active:e,activatorEvent:t,collisions:n,delta:{x:r.x,y:r.y},over:c};m((()=>{Ne(c),null==i||i(a),C({type:"onDragOver",event:a})}))}),[Ae]),ce((()=>{re.current={activatorEvent:z,active:L,activeNode:Z,collisionRect:je,collisions:_e,droppableRects:Y,draggableNodes:_,draggingNode:ae,draggingNodeRect:ue,droppableContainers:M,over:Te,scrollableAncestors:me,scrollAdjustedTranslate:De},N.current={initial:ue,translated:je}}),[L,Z,_e,je,_,ae,ue,Y,M,Te,me,De]),Bt({...J,delta:A,draggingRect:je,pointerCoordinates:ke,scrollableAncestors:me,scrollableAncestorRects:we});const Ue=d((()=>({active:L,activeNode:Z,activeNodeRect:te,activatorEvent:z,collisions:_e,containerNodeRect:oe,dragOverlay:le,draggableNodes:_,droppableContainers:M,droppableRects:Y,over:Te,measureDroppableContainers:X,scrollableAncestors:me,scrollableAncestorRects:we,measuringConfiguration:W,measuringScheduled:q,windowRect:ye})),[L,Z,te,z,_e,oe,le,_,M,Y,Te,X,me,we,W,q,ye]),Ve=d((()=>({activatorEvent:z,activators:ze,active:L,activeNodeRect:te,ariaDescribedById:{draggable:$},dispatch:O,draggableNodes:_,over:Te,measureDroppableContainers:X})),[z,ze,L,te,O,$,_,Te,X]);return r.createElement(Se.Provider,{value:S},r.createElement(Xt.Provider,{value:Ve},r.createElement(qt.Provider,{value:Ue},r.createElement(Qt.Provider,{value:Le},g)),r.createElement(Jt,{disabled:!1===(null==a?void 0:a.restoreFocus)})),r.createElement(Be,{...a,hiddenTextDescribedById:$}))})),nn=i(null),on="button",rn="Droppable";function ln(e){let{id:t,data:n,disabled:o=!1,attributes:r}=e;const i=he(rn),{activators:c,activatorEvent:a,active:s,activeNodeRect:u,ariaDescribedById:f,draggableNodes:p,over:h}=l(Xt),{role:g=on,roleDescription:v="draggable",tabIndex:y=0}=null!=r?r:{},m=(null==s?void 0:s.id)===t,b=l(m?Qt:nn),[w,x]=ue(),[k,E]=ue(),O=function(e,t){return d((()=>e.reduce(((e,n)=>{let{eventName:o,handler:r}=n;return e[o]=e=>{r(e,t)},e}),{})),[e,t])}(c,t),C=se(n);ce((()=>(p.set(t,{id:t,key:i,node:w,activatorNode:k,data:C}),()=>{const e=p.get(t);e&&e.key===i&&p.delete(t)})),[p,t]);return{active:s,activatorEvent:a,activeNodeRect:u,attributes:d((()=>({role:g,tabIndex:y,"aria-disabled":o,"aria-pressed":!(!m||g!==on)||void 0,"aria-roledescription":v,"aria-describedby":f.draggable})),[o,g,y,m,v,f.draggable]),isDragging:m,listeners:o?void 0:O,node:w,over:h,setNodeRef:x,setActivatorNodeRef:E,transform:b}}const cn="Droppable",an={timeout:25};function sn(e,t,n){const o=e.slice();return o.splice(n<0?o.length+n:n,0,o.splice(t,1)[0]),o}function dn(e,t){return e.reduce(((e,n,o)=>{const r=t.get(n);return r&&(e[o]=r),e}),Array(e.length))}function un(e){return null!==e&&e>=0}const fn=e=>{let{rects:t,activeIndex:n,overIndex:o,index:r}=e;const i=sn(t,o,n),l=t[r],c=i[r];return c&&l?{x:c.left-l.left,y:c.top-l.top,scaleX:c.width/l.width,scaleY:c.height/l.height}:null},pn={scaleX:1,scaleY:1},hn=e=>{var t;let{activeIndex:n,activeNodeRect:o,index:r,rects:i,overIndex:l}=e;const c=null!=(t=i[n])?t:o;if(!c)return null;if(r===n){const e=i[l];return e?{x:0,y:n<l?e.top+e.height-(c.top+c.height):e.top-c.top,...pn}:null}const a=function(e,t,n){const o=e[t],r=e[t-1],i=e[t+1];if(!o)return 0;if(n<t)return r?o.top-(r.top+r.height):i?i.top-(o.top+o.height):0;return i?i.top-(o.top+o.height):r?o.top-(r.top+r.height):0}(i,r,n);return r>n&&r<=l?{x:0,y:-c.height-a,...pn}:r<n&&r>=l?{x:0,y:c.height+a,...pn}:{x:0,y:0,...pn}};const gn="Sortable",vn=r.createContext({activeIndex:-1,containerId:gn,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:fn,disabled:{draggable:!1,droppable:!1}});function yn(e){let{children:t,id:n,items:o,strategy:i=fn,disabled:a=!1}=e;const{active:u,dragOverlay:f,droppableRects:p,over:h,measureDroppableContainers:g}=l(qt),v=he(gn,n),y=Boolean(null!==f.rect),m=d((()=>o.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[o]),b=null!=u,w=u?m.indexOf(u.id):-1,x=h?m.indexOf(h.id):-1,k=c(m),E=!function(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(m,k.current),O=-1!==x&&-1===w||E,C=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(a);ce((()=>{E&&b&&g(m)}),[E,m,b,g]),s((()=>{k.current=m}),[m]);const S=d((()=>({activeIndex:w,containerId:v,disabled:C,disableTransforms:O,items:m,overIndex:x,useDragOverlay:y,sortedRects:dn(m,p),strategy:i})),[w,v,C.draggable,C.droppable,O,m,x,p,y,i]);return r.createElement(vn.Provider,{value:S},t)}const mn=e=>{let{id:t,items:n,activeIndex:o,overIndex:r}=e;return sn(n,o,r).indexOf(t)},bn=e=>{let{containerId:t,isSorting:n,wasDragging:o,index:r,items:i,newIndex:l,previousItems:c,previousContainerId:a,transition:s}=e;return!(!s||!o)&&((c===i||r!==l)&&(!!n||l!==r&&t===a))},wn={duration:200,easing:"ease"},xn="transform",kn=we.Transition.toString({property:xn,duration:0,easing:"linear"}),En={roleDescription:"sortable"};function On(e){let{animateLayoutChanges:t=bn,attributes:n,disabled:o,data:r,getNewIndex:i=mn,id:a,strategy:p,resizeObserverConfig:h,transition:g=wn}=e;const{items:v,containerId:y,activeIndex:m,disabled:b,disableTransforms:w,sortedRects:x,overIndex:k,useDragOverlay:E,strategy:O}=l(vn),C=function(e,t){var n,o;if("boolean"==typeof e)return{draggable:e,droppable:!1};return{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(o=null==e?void 0:e.droppable)?o:t.droppable}}(o,b),S=v.indexOf(a),D=d((()=>({sortable:{containerId:y,index:S,items:v},...r})),[y,r,S,v]),j=d((()=>v.slice(v.indexOf(a))),[v,a]),{rect:B,node:R,isOver:_,setNodeRef:A}=function(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:r}=e;const i=he(cn),{active:a,dispatch:d,over:f,measureDroppableContainers:p}=l(Xt),h=c({disabled:n}),g=c(!1),v=c(null),y=c(null),{disabled:m,updateMeasurementsFor:b,timeout:w}={...an,...r},x=se(null!=b?b:o),k=Nt({callback:u((()=>{g.current?(null!=y.current&&clearTimeout(y.current),y.current=setTimeout((()=>{p(Array.isArray(x.current)?x.current:[x.current]),y.current=null}),w)):g.current=!0}),[w]),disabled:m||!a}),E=u(((e,t)=>{k&&(t&&(k.unobserve(t),g.current=!1),e&&k.observe(e))}),[k]),[O,C]=ue(E),S=se(t);return s((()=>{k&&O.current&&(k.disconnect(),g.current=!1,k.observe(O.current))}),[O,k]),ce((()=>(d({type:Re.RegisterDroppable,element:{id:o,key:i,disabled:n,node:O,rect:v,data:S}}),()=>d({type:Re.UnregisterDroppable,key:i,id:o}))),[o]),s((()=>{n!==h.current.disabled&&(d({type:Re.SetDroppableDisabled,id:o,key:i,disabled:n}),h.current.disabled=n)}),[o,i,n,d]),{active:a,rect:v,isOver:(null==f?void 0:f.id)===o,node:O,over:f,setNodeRef:C}}({id:a,data:D,disabled:C.droppable,resizeObserverConfig:{updateMeasurementsFor:j,...h}}),{active:M,activatorEvent:T,activeNodeRect:N,attributes:L,setNodeRef:P,listeners:I,isDragging:F,over:z,setActivatorNodeRef:U,transform:H}=ln({id:a,data:D,attributes:{...En,...n},disabled:C.draggable}),$=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d((()=>e=>{t.forEach((t=>t(e)))}),t)}(A,P),V=Boolean(M),W=V&&!w&&un(m)&&un(k),K=!E&&F,Y=K&&W?H:null,X=W?null!=Y?Y:(null!=p?p:O)({rects:x,activeNodeRect:N,activeIndex:m,overIndex:k,index:S}):null,q=un(m)&&un(k)?i({id:a,items:v,activeIndex:m,overIndex:k}):S,Z=null==M?void 0:M.id,G=c({activeId:Z,items:v,newIndex:q,containerId:y}),J=v!==G.current.items,Q=t({active:M,containerId:y,isDragging:F,isSorting:V,id:a,index:S,items:v,newIndex:G.current.newIndex,previousItems:G.current.items,previousContainerId:G.current.containerId,transition:g,wasDragging:null!=G.current.activeId}),ee=function(e){let{disabled:t,index:n,node:o,rect:r}=e;const[i,l]=f(null),a=c(n);return ce((()=>{if(!t&&n!==a.current&&o.current){const e=r.current;if(e){const t=Ye(o.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&l(n)}}n!==a.current&&(a.current=n)}),[t,n,o,r]),s((()=>{i&&l(null)}),[i]),i}({disabled:!Q,index:S,node:R,rect:B});return s((()=>{V&&G.current.newIndex!==q&&(G.current.newIndex=q),y!==G.current.containerId&&(G.current.containerId=y),v!==G.current.items&&(G.current.items=v)}),[V,q,y,v]),s((()=>{if(Z===G.current.activeId)return;if(Z&&!G.current.activeId)return void(G.current.activeId=Z);const e=setTimeout((()=>{G.current.activeId=Z}),50);return()=>clearTimeout(e)}),[Z]),{active:M,activeIndex:m,attributes:L,data:D,rect:B,index:S,newIndex:q,items:v,isOver:_,isSorting:V,isDragging:F,listeners:I,node:R,overIndex:k,over:z,setNodeRef:$,setActivatorNodeRef:U,setDroppableNodeRef:A,setDraggableNodeRef:P,transform:null!=ee?ee:X,transition:function(){if(ee||J&&G.current.newIndex===S)return kn;if(K&&!me(T)||!g)return;if(V||Q)return we.Transition.toString({...g,property:xn});return}()}}function Cn(e){if(!e)return!1;const t=e.data.current;return!!(t&&"sortable"in t&&"object"==typeof t.sortable&&"containerId"in t.sortable&&"items"in t.sortable&&"index"in t.sortable)}const Sn=[pt.Down,pt.Right,pt.Up,pt.Left],Dn=(e,t)=>{let{context:{active:n,collisionRect:o,droppableRects:r,droppableContainers:i,over:l,scrollableAncestors:c}}=t;if(Sn.includes(e.code)){if(e.preventDefault(),!n||!o)return;const t=[];i.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const i=r.get(n.id);if(i)switch(e.code){case pt.Down:o.top<i.top&&t.push(n);break;case pt.Up:o.top>i.top&&t.push(n);break;case pt.Left:o.left>i.left&&t.push(n);break;case pt.Right:o.left<i.left&&t.push(n)}}));const a=(e=>{let{collisionRect:t,droppableRects:n,droppableContainers:o}=e;const r=Pe(t),i=[];for(const e of o){const{id:t}=e,o=n.get(t);if(o){const n=Pe(o),l=r.reduce(((e,t,o)=>e+Te(n[o],t)),0),c=Number((l/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:c}})}}return i.sort(Ne)})({active:n,collisionRect:o,droppableRects:r,droppableContainers:t,pointerCoordinates:null});let s=Ie(a,"id");if(s===(null==l?void 0:l.id)&&a.length>1&&(s=a[1].id),null!=s){const e=i.get(n.id),t=i.get(s),l=t?r.get(t.id):null,a=null==t?void 0:t.node.current;if(a&&l&&e&&t){const n=qe(a).some(((e,t)=>c[t]!==e)),r=jn(e,t),i=function(e,t){if(!Cn(e)||!Cn(t))return!1;if(!jn(e,t))return!1;return e.data.current.sortable.index<t.data.current.sortable.index}(e,t),s=n||!r?{x:0,y:0}:{x:i?o.width-l.width:0,y:i?o.height-l.height:0},d={x:l.left,y:l.top};return s.x&&s.y?d:ye(d,s)}}}};function jn(e,t){return!(!Cn(e)||!Cn(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}var Bn;function Rn(){return Rn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Rn.apply(this,arguments)}var _n,An=function(e){return o.createElement("svg",Rn({viewBox:"0 0 10 10",fill:"currentColor",style:{width:14,height:14,display:"block",flexShrink:0,backfaceVisibility:"hidden"}},e),Bn||(Bn=o.createElement("path",{d:"M3 2a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm4-8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm0 4a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"})))};function Mn(){return Mn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Mn.apply(this,arguments)}var Tn=function(e){return o.createElement("svg",Mn({viewBox:"0 0 16 16",fill:"currentColor",style:{width:16,height:16,display:"block",flexShrink:0,backfaceVisibility:"hidden"}},e),_n||(_n=o.createElement("path",{d:"M7.977 14.963c.407 0 .747-.324.747-.723V8.72h5.362c.399 0 .74-.34.74-.747a.746.746 0 0 0-.74-.738H8.724V1.706c0-.398-.34-.722-.747-.722a.732.732 0 0 0-.739.722v5.529h-5.37a.746.746 0 0 0-.74.738c0 .407.341.747.74.747h5.37v5.52c0 .399.332.723.739.723z"})))};function Nn(e,t={}){const n=Object.keys(e.children),{at:o=e.selection}=t,r=n.find((t=>e.children[t].meta.order===(null==o?void 0:o[0])));if(r)return e.blockEditorsMap[r]}function Ln(e){return Fn(e)?(e.nodeName||"").toLowerCase():"#document"}function Pn(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function In(e){var t;return null==(t=(Fn(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Fn(e){return e instanceof Node||e instanceof Pn(e).Node}function zn(e){return e instanceof Element||e instanceof Pn(e).Element}function Un(e){return e instanceof HTMLElement||e instanceof Pn(e).HTMLElement}function Hn(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Pn(e).ShadowRoot)}function $n(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=Xn(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function Vn(e){return["table","td","th"].includes(Ln(e))}function Wn(e){const t=Kn(),n=Xn(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Kn(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Yn(e){return["html","body","#document"].includes(Ln(e))}function Xn(e){return Pn(e).getComputedStyle(e)}function qn(e){return zn(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Zn(e){if("html"===Ln(e))return e;const t=e.assignedSlot||e.parentNode||Hn(e)&&e.host||In(e);return Hn(t)?t.host:t}function Gn(e){const t=Zn(e);return Yn(t)?e.ownerDocument?e.ownerDocument.body:e.body:Un(t)&&$n(t)?t:Gn(t)}function Jn(e,t,n){var o;void 0===t&&(t=[]),void 0===n&&(n=!0);const r=Gn(e),i=r===(null==(o=e.ownerDocument)?void 0:o.body),l=Pn(r);return i?t.concat(l,l.visualViewport||[],$n(r)?r:[],l.frameElement&&n?Jn(l.frameElement):[]):t.concat(r,Jn(r,[],n))}const Qn=Math.min,eo=Math.max,to=Math.round,no=Math.floor,oo=e=>({x:e,y:e}),ro={left:"right",right:"left",bottom:"top",top:"bottom"},io={start:"end",end:"start"};function lo(e,t,n){return eo(e,Qn(t,n))}function co(e,t){return"function"==typeof e?e(t):e}function ao(e){return e.split("-")[0]}function so(e){return e.split("-")[1]}function uo(e){return"x"===e?"y":"x"}function fo(e){return"y"===e?"height":"width"}function po(e){return["top","bottom"].includes(ao(e))?"y":"x"}function ho(e){return uo(po(e))}function go(e){return e.replace(/start|end/g,(e=>io[e]))}function vo(e){return e.replace(/left|right|bottom|top/g,(e=>ro[e]))}function yo(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function mo(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function bo(e,t,n){let{reference:o,floating:r}=e;const i=po(t),l=ho(t),c=fo(l),a=ao(t),s="y"===i,d=o.x+o.width/2-r.width/2,u=o.y+o.height/2-r.height/2,f=o[c]/2-r[c]/2;let p;switch(a){case"top":p={x:d,y:o.y-r.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:u};break;case"left":p={x:o.x-r.width,y:u};break;default:p={x:o.x,y:o.y}}switch(so(t)){case"start":p[l]-=f*(n&&s?-1:1);break;case"end":p[l]+=f*(n&&s?-1:1)}return p}async function wo(e,t){var n;void 0===t&&(t={});const{x:o,y:r,platform:i,rects:l,elements:c,strategy:a}=e,{boundary:s="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:p=0}=co(t,e),h=yo(p),g=c[f?"floating"===u?"reference":"floating":u],v=mo(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(g)))||n?g:g.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(c.floating)),boundary:s,rootBoundary:d,strategy:a})),y="floating"===u?{...l.floating,x:o,y:r}:l.reference,m=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c.floating)),b=await(null==i.isElement?void 0:i.isElement(m))&&await(null==i.getScale?void 0:i.getScale(m))||{x:1,y:1},w=mo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:m,strategy:a}):y);return{top:(v.top-w.top+h.top)/b.y,bottom:(w.bottom-v.bottom+h.bottom)/b.y,left:(v.left-w.left+h.left)/b.x,right:(w.right-v.right+h.right)/b.x}}function xo(e){const t=Qn(...e.map((e=>e.left))),n=Qn(...e.map((e=>e.top)));return{x:t,y:n,width:eo(...e.map((e=>e.right)))-t,height:eo(...e.map((e=>e.bottom)))-n}}const ko=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:l,middlewareData:c}=t,a=await async function(e,t){const{placement:n,platform:o,elements:r}=e,i=await(null==o.isRTL?void 0:o.isRTL(r.floating)),l=ao(n),c=so(n),a="y"===po(n),s=["left","top"].includes(l)?-1:1,d=i&&a?-1:1,u=co(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof u?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...u};return c&&"number"==typeof h&&(p="end"===c?-1*h:h),a?{x:p*d,y:f*s}:{x:f*s,y:p*d}}(t,e);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:{...a,placement:l}}}}};function Eo(e){const t=Xn(e);let n=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const r=Un(e),i=r?e.offsetWidth:n,l=r?e.offsetHeight:o,c=to(n)!==i||to(o)!==l;return c&&(n=i,o=l),{width:n,height:o,$:c}}function Oo(e){return zn(e)?e:e.contextElement}function Co(e){const t=Oo(e);if(!Un(t))return oo(1);const n=t.getBoundingClientRect(),{width:o,height:r,$:i}=Eo(t);let l=(i?to(n.width):n.width)/o,c=(i?to(n.height):n.height)/r;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const So=oo(0);function Do(e){const t=Pn(e);return Kn()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:So}function jo(e,t,n,o){void 0===t&&(t=!1),void 0===n&&(n=!1);const r=e.getBoundingClientRect(),i=Oo(e);let l=oo(1);t&&(o?zn(o)&&(l=Co(o)):l=Co(e));const c=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Pn(e))&&t}(i,n,o)?Do(i):oo(0);let a=(r.left+c.x)/l.x,s=(r.top+c.y)/l.y,d=r.width/l.x,u=r.height/l.y;if(i){const e=Pn(i),t=o&&zn(o)?Pn(o):o;let n=e,r=n.frameElement;for(;r&&o&&t!==n;){const e=Co(r),t=r.getBoundingClientRect(),o=Xn(r),i=t.left+(r.clientLeft+parseFloat(o.paddingLeft))*e.x,l=t.top+(r.clientTop+parseFloat(o.paddingTop))*e.y;a*=e.x,s*=e.y,d*=e.x,u*=e.y,a+=i,s+=l,n=Pn(r),r=n.frameElement}}return mo({width:d,height:u,x:a,y:s})}const Bo=[":popover-open",":modal"];function Ro(e){return Bo.some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function _o(e){return jo(In(e)).left+qn(e).scrollLeft}function Ao(e,t,n){let o;if("viewport"===t)o=function(e,t){const n=Pn(e),o=In(e),r=n.visualViewport;let i=o.clientWidth,l=o.clientHeight,c=0,a=0;if(r){i=r.width,l=r.height;const e=Kn();(!e||e&&"fixed"===t)&&(c=r.offsetLeft,a=r.offsetTop)}return{width:i,height:l,x:c,y:a}}(e,n);else if("document"===t)o=function(e){const t=In(e),n=qn(e),o=e.ownerDocument.body,r=eo(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),i=eo(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+_o(e);const c=-n.scrollTop;return"rtl"===Xn(o).direction&&(l+=eo(t.clientWidth,o.clientWidth)-r),{width:r,height:i,x:l,y:c}}(In(e));else if(zn(t))o=function(e,t){const n=jo(e,!0,"fixed"===t),o=n.top+e.clientTop,r=n.left+e.clientLeft,i=Un(e)?Co(e):oo(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:o*i.y}}(t,n);else{const n=Do(e);o={...t,x:t.x-n.x,y:t.y-n.y}}return mo(o)}function Mo(e,t){const n=Zn(e);return!(n===t||!zn(n)||Yn(n))&&("fixed"===Xn(n).position||Mo(n,t))}function To(e,t,n){const o=Un(t),r=In(t),i="fixed"===n,l=jo(e,!0,i,t);let c={scrollLeft:0,scrollTop:0};const a=oo(0);if(o||!o&&!i)if(("body"!==Ln(t)||$n(r))&&(c=qn(t)),o){const e=jo(t,!0,i,t);a.x=e.x+t.clientLeft,a.y=e.y+t.clientTop}else r&&(a.x=_o(r));return{x:l.left+c.scrollLeft-a.x,y:l.top+c.scrollTop-a.y,width:l.width,height:l.height}}function No(e,t){return Un(e)&&"fixed"!==Xn(e).position?t?t(e):e.offsetParent:null}function Lo(e,t){const n=Pn(e);if(!Un(e)||Ro(e))return n;let o=No(e,t);for(;o&&Vn(o)&&"static"===Xn(o).position;)o=No(o,t);return o&&("html"===Ln(o)||"body"===Ln(o)&&"static"===Xn(o).position&&!Wn(o))?n:o||function(e){let t=Zn(e);for(;Un(t)&&!Yn(t);){if(Wn(t))return t;t=Zn(t)}return null}(e)||n}const Po={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:o,strategy:r}=e;const i="fixed"===r,l=In(o),c=!!t&&Ro(t.floating);if(o===l||c&&i)return n;let a={scrollLeft:0,scrollTop:0},s=oo(1);const d=oo(0),u=Un(o);if((u||!u&&!i)&&(("body"!==Ln(o)||$n(l))&&(a=qn(o)),Un(o))){const e=jo(o);s=Co(o),d.x=e.x+o.clientLeft,d.y=e.y+o.clientTop}return{width:n.width*s.x,height:n.height*s.y,x:n.x*s.x-a.scrollLeft*s.x+d.x,y:n.y*s.y-a.scrollTop*s.y+d.y}},getDocumentElement:In,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=[..."clippingAncestors"===n?function(e,t){const n=t.get(e);if(n)return n;let o=Jn(e,[],!1).filter((e=>zn(e)&&"body"!==Ln(e))),r=null;const i="fixed"===Xn(e).position;let l=i?Zn(e):e;for(;zn(l)&&!Yn(l);){const t=Xn(l),n=Wn(l);n||"fixed"!==t.position||(r=null),(i?!n&&!r:!n&&"static"===t.position&&r&&["absolute","fixed"].includes(r.position)||$n(l)&&!n&&Mo(e,l))?o=o.filter((e=>e!==l)):r=t,l=Zn(l)}return t.set(e,o),o}(t,this._c):[].concat(n),o],l=i[0],c=i.reduce(((e,n)=>{const o=Ao(t,n,r);return e.top=eo(o.top,e.top),e.right=Qn(o.right,e.right),e.bottom=Qn(o.bottom,e.bottom),e.left=eo(o.left,e.left),e}),Ao(t,l,r));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:Lo,getElementRects:async function(e){const t=this.getOffsetParent||Lo,n=this.getDimensions;return{reference:To(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,...await n(e.floating)}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Eo(e);return{width:t,height:n}},getScale:Co,isElement:zn,isRTL:function(e){return"rtl"===Xn(e).direction}};function Io(e,t,n,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:i=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,s=Oo(e),d=r||i?[...s?Jn(s):[],...Jn(t)]:[];d.forEach((e=>{r&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const u=s&&c?function(e,t){let n,o=null;const r=In(e);function i(){var e;clearTimeout(n),null==(e=o)||e.disconnect(),o=null}return function l(c,a){void 0===c&&(c=!1),void 0===a&&(a=1),i();const{left:s,top:d,width:u,height:f}=e.getBoundingClientRect();if(c||t(),!u||!f)return;const p={rootMargin:-no(d)+"px "+-no(r.clientWidth-(s+u))+"px "+-no(r.clientHeight-(d+f))+"px "+-no(s)+"px",threshold:eo(0,Qn(1,a))||1};let h=!0;function g(e){const t=e[0].intersectionRatio;if(t!==a){if(!h)return l();t?l(!1,t):n=setTimeout((()=>{l(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(g,{...p,root:r.ownerDocument})}catch(e){o=new IntersectionObserver(g,p)}o.observe(e)}(!0),i}(s,n):null;let f,p=-1,h=null;l&&(h=new ResizeObserver((e=>{let[o]=e;o&&o.target===s&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),s&&!a&&h.observe(s),h.observe(t));let g=a?jo(e):null;return a&&function t(){const o=jo(e);!g||o.x===g.x&&o.y===g.y&&o.width===g.width&&o.height===g.height||n();g=o,f=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach((e=>{r&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==u||u(),null==(e=h)||e.disconnect(),h=null,a&&cancelAnimationFrame(f)}}const Fo=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...a}=co(e,t),s={x:n,y:o},d=await wo(t,a),u=po(ao(r)),f=uo(u);let p=s[f],h=s[u];if(i){const e="y"===f?"bottom":"right";p=lo(p+d["y"===f?"top":"left"],p,p-d[e])}if(l){const e="y"===u?"bottom":"right";h=lo(h+d["y"===u?"top":"left"],h,h-d[e])}const g=c.fn({...t,[f]:p,[u]:h});return{...g,data:{x:g.x-n,y:g.y-o}}}}},zo=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:l,initialPlacement:c,platform:a,elements:s}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...v}=co(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const y=ao(r),m=ao(c)===c,b=await(null==a.isRTL?void 0:a.isRTL(s.floating)),w=f||(m||!g?[vo(c)]:function(e){const t=vo(e);return[go(e),t,go(t)]}(c));f||"none"===h||w.push(...function(e,t,n,o){const r=so(e);let i=function(e,t,n){const o=["left","right"],r=["right","left"],i=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return n?t?r:o:t?o:r;case"left":case"right":return t?i:l;default:return[]}}(ao(e),"start"===n,o);return r&&(i=i.map((e=>e+"-"+r)),t&&(i=i.concat(i.map(go)))),i}(c,g,h,b));const x=[c,...w],k=await wo(t,v),E=[];let O=(null==(o=i.flip)?void 0:o.overflows)||[];if(d&&E.push(k[y]),u){const e=function(e,t,n){void 0===n&&(n=!1);const o=so(e),r=ho(e),i=fo(r);let l="x"===r?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=vo(l)),[l,vo(l)]}(r,l,b);E.push(k[e[0]],k[e[1]])}if(O=[...O,{placement:r,overflows:E}],!E.every((e=>e<=0))){var C,S;const e=((null==(C=i.flip)?void 0:C.index)||0)+1,t=x[e];if(t)return{data:{index:e,overflows:O},reset:{placement:t}};let n=null==(S=O.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var D;const e=null==(D=O.map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:D[0];e&&(n=e);break}case"initialPlacement":n=c}if(r!==n)return{reset:{placement:n}}}return{}}}},Uo=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:o,rects:r,platform:i,strategy:l}=t,{padding:c=2,x:a,y:s}=co(e,t),d=Array.from(await(null==i.getClientRects?void 0:i.getClientRects(o.reference))||[]),u=function(e){const t=e.slice().sort(((e,t)=>e.y-t.y)),n=[];let o=null;for(let e=0;e<t.length;e++){const r=t[e];!o||r.y-o.y>o.height/2?n.push([r]):n[n.length-1].push(r),o=r}return n.map((e=>mo(xo(e))))}(d),f=mo(xo(d)),p=yo(c);const h=await i.getElementRects({reference:{getBoundingClientRect:function(){if(2===u.length&&u[0].left>u[1].right&&null!=a&&null!=s)return u.find((e=>a>e.left-p.left&&a<e.right+p.right&&s>e.top-p.top&&s<e.bottom+p.bottom))||f;if(u.length>=2){if("y"===po(n)){const e=u[0],t=u[u.length-1],o="top"===ao(n),r=e.top,i=t.bottom,l=o?e.left:t.left,c=o?e.right:t.right;return{top:r,bottom:i,left:l,right:c,width:c-l,height:i-r,x:l,y:r}}const e="left"===ao(n),t=eo(...u.map((e=>e.right))),o=Qn(...u.map((e=>e.left))),r=u.filter((n=>e?n.left===o:n.right===t)),i=r[0].top,l=r[r.length-1].bottom;return{top:i,bottom:l,left:o,right:t,width:t-o,height:l-i,x:o,y:i}}return f}},floating:o.floating,strategy:l});return r.reference.x!==h.reference.x||r.reference.y!==h.reference.y||r.reference.width!==h.reference.width||r.reference.height!==h.reference.height?{reset:{rects:h}}:{}}}},Ho=(e,t,n)=>{const o=new Map,r={platform:Po,...n},i={...r.platform,_c:o};return(async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:l}=n,c=i.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(t));let s=await l.getElementRects({reference:e,floating:t,strategy:r}),{x:d,y:u}=bo(s,o,a),f=o,p={},h=0;for(let n=0;n<c.length;n++){const{name:i,fn:g}=c[n],{x:v,y:y,data:m,reset:b}=await g({x:d,y:u,initialPlacement:o,placement:f,strategy:r,middlewareData:p,rects:s,platform:l,elements:{reference:e,floating:t}});d=null!=v?v:d,u=null!=y?y:u,p={...p,[i]:{...p[i],...m}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(s=!0===b.rects?await l.getElementRects({reference:e,floating:t,strategy:r}):b.rects),({x:d,y:u}=bo(s,f,a))),n=-1)}return{x:d,y:u,placement:f,strategy:r,middlewareData:p}})(e,t,{...r,platform:i})};var $o="undefined"!=typeof document?a:s;function Vo(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,o,r;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(o=n;0!=o--;)if(!Vo(e[o],t[o]))return!1;return!0}if(r=Object.keys(e),n=r.length,n!==Object.keys(t).length)return!1;for(o=n;0!=o--;)if(!{}.hasOwnProperty.call(t,r[o]))return!1;for(o=n;0!=o--;){const n=r[o];if(("_owner"!==n||!e.$$typeof)&&!Vo(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Wo(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ko(e,t){const n=Wo(e);return Math.round(t*n)/n}function Yo(e){const t=o.useRef(e);return $o((()=>{t.current=e})),t}
|
|
2
2
|
/*!
|
|
3
3
|
* tabbable 6.2.0
|
|
4
4
|
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
@@ -5,7 +5,7 @@ export type ExtendPluginRender<TKeys extends string> = {
|
|
|
5
5
|
[x in TKeys]: (props: PluginElementRenderProps) => JSX.Element;
|
|
6
6
|
};
|
|
7
7
|
export type ExtendPlugin<TKeys extends string, TOptions> = {
|
|
8
|
-
renders?: ExtendPluginRender<TKeys
|
|
8
|
+
renders?: Partial<ExtendPluginRender<TKeys>>;
|
|
9
9
|
options?: Partial<PluginOptions<TOptions>>;
|
|
10
10
|
};
|
|
11
11
|
export declare class YooptaPlugin<TKeys extends string = string, TProps = Descendant, TOptions = Record<string, unknown>> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createYooptaPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/createYooptaPlugin.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1E,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,MAAM,IAAI;KACpD,CAAC,IAAI,KAAK,GAAG,CAAC,KAAK,EAAE,wBAAwB,KAAK,GAAG,CAAC,OAAO;CAC/D,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,MAAM,EAAE,QAAQ,IAAI;IACzD,OAAO,CAAC,EAAE,kBAAkB,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"createYooptaPlugin.d.ts","sourceRoot":"","sources":["../../src/plugins/createYooptaPlugin.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAE1E,MAAM,MAAM,kBAAkB,CAAC,KAAK,SAAS,MAAM,IAAI;KACpD,CAAC,IAAI,KAAK,GAAG,CAAC,KAAK,EAAE,wBAAwB,KAAK,GAAG,CAAC,OAAO;CAC/D,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,KAAK,SAAS,MAAM,EAAE,QAAQ,IAAI;IACzD,OAAO,CAAC,EAAE,OAAO,CAAC,kBAAkB,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC;CAC5C,CAAC;AAEF,qBAAa,YAAY,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,UAAU,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IAC9G,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkC;gBAE7C,MAAM,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC;IAInD,IAAI,SAAS,oCAEZ;IAED,MAAM,CAAC,YAAY,EAAE,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC;CA4B3F"}
|
package/dist/plugins/types.d.ts
CHANGED
|
@@ -22,10 +22,13 @@ export type PluginOptions<T> = {
|
|
|
22
22
|
export type PluginElementOptions = {
|
|
23
23
|
draggable?: boolean;
|
|
24
24
|
};
|
|
25
|
-
export type
|
|
25
|
+
export type PluginElementExtendRenderProps = RenderSlateElementProps & {
|
|
26
26
|
blockId: string;
|
|
27
27
|
HTMLAttributes?: HTMLAttributes<HTMLElement>;
|
|
28
28
|
};
|
|
29
|
+
export type PluginElementRenderProps = PluginElementExtendRenderProps & {
|
|
30
|
+
extendRender?: (props: PluginElementExtendRenderProps) => JSX.Element;
|
|
31
|
+
};
|
|
29
32
|
export type PluginCustomEditorRenderProps = {
|
|
30
33
|
blockId: string;
|
|
31
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/plugins/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAQ,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,MAAM,EAAE,MAAM,EAAE,QAAQ,IAAI;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;IACtD,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;KAC1C,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CAC9C,GAAG,CAAC,CAAC;AAEN,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/plugins/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAQ,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,kBAAkB,IAAI,uBAAuB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC7F,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,MAAM,EAAE,MAAM,EAAE,QAAQ,IAAI;IACtE,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,UAAU,CAAC,CAAC;IACtD,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,OAAO,CAAC,EAAE;QACR,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,YAAY,CAAC;KAC1C,CAAC;IACF,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,cAAc,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CAC9C,GAAG,CAAC,CAAC;AAEN,MAAM,MAAM,oBAAoB,GAAG;IACjC,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,uBAAuB,GAAG;IACrE,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG,8BAA8B,GAAG;IACtE,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,8BAA8B,KAAK,GAAG,CAAC,OAAO,CAAC;CACvE,CAAC;AAEF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAA;CAAE,CAAC;AAC3F,MAAM,MAAM,kBAAkB,CAAC,CAAC,IAAI,kBAAkB,GAAG,CAAC,CAAC;AAE3D,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI;IAC7B,MAAM,EAAE,CAAC,KAAK,EAAE,wBAAwB,KAAK,GAAG,CAAC,OAAO,CAAC;IACzD,KAAK,CAAC,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC;IAC9B,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,kBAAkB,IAAI;KACzF,GAAG,IAAI,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;KACzB,GAAG,IAAI,MAAM,mBAAmB,GAAG,CAClC,MAAM,EAAE,SAAS,EACjB,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,yBAAyB,KAC/B,mBAAmB,CAAC,GAAG,CAAC,GAAG,IAAI;CACrC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,OAAO,EAAE,YAAY,CAAC;IACtB,YAAY,EAAE,eAAe,CAAC;IAC9B,YAAY,EAAE,eAAe,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,MAAM,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,MAAM,GAAG,UAAU,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI;IAC3G,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,6BAA6B,KAAK,GAAG,CAAC,OAAO,CAAC;IACrE,QAAQ,EAAE,iBAAiB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC3C,MAAM,CAAC,EAAE,aAAa,CAAC;IACvB,OAAO,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAClC,OAAO,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC,CAAC;CAC7D,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,WAAW,CAAC,EAAE,uBAAuB,CAAC;IACtC,SAAS,CAAC,EAAE,qBAAqB,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,UAAU,CAAC;AACpD,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,WAAW,CAAC;AAE7D,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;AAEpF,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,CAAC,EAAE,EAAE,WAAW,KAAK,YAAY,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,eAAe,EAAE,GAAG,IAAI,CAAC;CACnF,CAAC;AAEF,MAAM,MAAM,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI;KAC5C,GAAG,IAAI,CAAC,GAAG,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI,eAAe,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AAC5F,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI;IAAE,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC,CAAC;IAAC,IAAI,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAA;CAAE,CAAC;AAEvH,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,IAAI,eAAe,GAAG;IACrE,IAAI,EAAE,YAAY,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;CAC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yoopta/editor",
|
|
3
|
-
"version": "4.6.
|
|
3
|
+
"version": "4.6.3-rc.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"url": "https://github.com/Darginec05/Yoopta-Editor/issues"
|
|
68
68
|
},
|
|
69
69
|
"homepage": "https://github.com/Darginec05/Yoopta-Editor#readme",
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "d099c10e017a7b9e763d943694689c7819bc2d53"
|
|
71
71
|
}
|