@clickview/exchange 0.8.0 → 0.8.1

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/jest.config.js CHANGED
@@ -1,12 +1,12 @@
1
- const getBaseConfig = require('../../libs/testing/jest.base.config');
2
- const { compilerOptions } = require('./tsconfig');
3
-
4
- const paths = {
5
- ...compilerOptions.paths,
6
- 'shared/*': ['./src/shared/*'],
7
- 'apps/*': ['./src/apps/*']
8
- };
9
-
10
- delete paths['*'];
11
-
1
+ const getBaseConfig = require('../../libs/testing/jest.base.config');
2
+ const { compilerOptions } = require('./tsconfig');
3
+
4
+ const paths = {
5
+ ...compilerOptions.paths,
6
+ 'shared/*': ['./src/shared/*'],
7
+ 'apps/*': ['./src/apps/*']
8
+ };
9
+
10
+ delete paths['*'];
11
+
12
12
  module.exports = getBaseConfig(paths);
package/package.json CHANGED
@@ -1,39 +1,39 @@
1
- {
2
- "name": "@clickview/exchange",
3
- "version": "0.8.0",
4
- "description": "ClickView exchange",
5
- "main": "dist/scripts/bundle.js",
6
- "scripts": {
7
- "start": "cross-env NODE_ENV=development webpack -w --config ./tooling/webpack.config.js",
8
- "build": "cross-env NODE_ENV=production webpack --config ./tooling/webpack.config.js",
9
- "test": "jest",
10
- "test-watch": "jest --watch"
11
- },
12
- "repository": {
13
- "type": "git",
14
- "url": "https://gitlab.cvinternal.net/front-end/clickview"
15
- },
16
- "cv": {
17
- "publishable": true,
18
- "rebuildable": true
19
- },
20
- "dependencies": {
21
- "moment-timezone": "0.5.43"
22
- },
23
- "devDependencies": {
24
- "@types/moment-timezone": "0.5.30"
25
- },
26
- "author": "Shale Kuzmanovski",
27
- "license": "ISC",
28
- "babel": {
29
- "presets": [
30
- [
31
- "@babel/preset-env",
32
- {
33
- "corejs": 3,
34
- "useBuiltIns": "entry"
35
- }
36
- ]
37
- ]
38
- }
39
- }
1
+ {
2
+ "name": "@clickview/exchange",
3
+ "version": "0.8.1",
4
+ "description": "ClickView exchange",
5
+ "main": "dist/scripts/bundle.js",
6
+ "scripts": {
7
+ "start": "cross-env NODE_ENV=development webpack -w --config ./tooling/webpack.config.js",
8
+ "build": "cross-env NODE_ENV=production webpack --config ./tooling/webpack.config.js",
9
+ "test": "jest",
10
+ "test-watch": "jest --watch"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://gitlab.cvinternal.net/front-end/clickview"
15
+ },
16
+ "cv": {
17
+ "publishable": true,
18
+ "rebuildable": true
19
+ },
20
+ "dependencies": {
21
+ "moment-timezone": "0.5.43"
22
+ },
23
+ "devDependencies": {
24
+ "@types/moment-timezone": "0.5.30"
25
+ },
26
+ "author": "Shale Kuzmanovski",
27
+ "license": "ISC",
28
+ "babel": {
29
+ "presets": [
30
+ [
31
+ "@babel/preset-env",
32
+ {
33
+ "corejs": 3,
34
+ "useBuiltIns": "entry"
35
+ }
36
+ ]
37
+ ]
38
+ }
39
+ }
@@ -1,24 +1,24 @@
1
- interface SetLanguageOptions {
2
- validate: boolean;
3
- }
4
-
5
- interface LanguageSet {
6
- [languagecode: string]: Language;
7
- }
8
-
9
- interface Language {
10
- englishName: string;
11
- nativeName: string;
12
- }
13
-
14
- interface ICVLanguages {
15
- VERSION: string;
16
-
17
- getEnglishName(languageCode: string): string;
18
- getNativeName(languageCode: string): string;
19
- getFullEnglishName(languageCode: string): string;
20
- getFullNativeName(languageCode: string): string;
21
- getEnglishNameContains(englishName: string): Language[];
22
- }
23
-
24
- declare let CVLanguages: ICVLanguages;
1
+ interface SetLanguageOptions {
2
+ validate: boolean;
3
+ }
4
+
5
+ interface LanguageSet {
6
+ [languagecode: string]: Language;
7
+ }
8
+
9
+ interface Language {
10
+ englishName: string;
11
+ nativeName: string;
12
+ }
13
+
14
+ interface ICVLanguages {
15
+ VERSION: string;
16
+
17
+ getEnglishName(languageCode: string): string;
18
+ getNativeName(languageCode: string): string;
19
+ getFullEnglishName(languageCode: string): string;
20
+ getFullNativeName(languageCode: string): string;
21
+ getEnglishNameContains(englishName: string): Language[];
22
+ }
23
+
24
+ declare let CVLanguages: ICVLanguages;
@@ -1,5 +1,5 @@
1
- declare function cloneDeep<T>(obj: T): T;
2
-
3
- declare module 'lodash.clonedeep' {
4
- export = cloneDeep;
1
+ declare function cloneDeep<T>(obj: T): T;
2
+
3
+ declare module 'lodash.clonedeep' {
4
+ export = cloneDeep;
5
5
  }
@@ -1,83 +1,83 @@
1
- // https://wicg.github.io/IntersectionObserver/#intersection-observer-private-slots
2
-
3
- /*
4
- callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer)
5
-
6
- [Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options),
7
- Exposed=Window]
8
- interface IntersectionObserver {
9
- readonly attribute Element? root;
10
- readonly attribute DOMString rootMargin;
11
- readonly attribute sequence<double> thresholds;
12
- void observe(Element target);
13
- void unobserve(Element target);
14
- void disconnect();
15
- sequence<IntersectionObserverEntry> takeRecords();
16
- };
17
-
18
- [Constructor(IntersectionObserverEntryInit intersectionObserverEntryInit)]
19
- interface IntersectionObserverEntry {
20
- readonly attribute DOMHighResTimeStamp time;
21
- readonly attribute DOMRectReadOnly rootBounds;
22
- readonly attribute DOMRectReadOnly boundingClientRect;
23
- readonly attribute DOMRectReadOnly intersectionRect;
24
- readonly attribute double intersectionRatio;
25
- readonly attribute Element target;
26
- };
27
-
28
- dictionary IntersectionObserverEntryInit {
29
- required DOMHighResTimeStamp time;
30
- required DOMRectInit rootBounds;
31
- required DOMRectInit boundingClientRect;
32
- required DOMRectInit intersectionRect;
33
- required double intersectionRatio;
34
- required Element target;
35
- };
36
-
37
- dictionary IntersectionObserverInit {
38
- Element? root = null;
39
- DOMString rootMargin = "0px";
40
- (double or sequence<double>) threshold = 0;
41
- };
42
- */
43
-
44
- interface Bounds {
45
- readonly height: number;
46
- readonly width: number;
47
- readonly top: number;
48
- readonly left: number;
49
- readonly right: number;
50
- readonly bottom: number;
51
- }
52
-
53
- interface IntersectionObserverEntry {
54
- readonly time: number;
55
- readonly rootBounds: Bounds;
56
- readonly boundingClientRect: Bounds;
57
- readonly intersectionRect: Bounds;
58
- readonly intersectionRatio: number;
59
- readonly target: Element;
60
- }
61
-
62
- type IntersectionObserverCallback = (entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void;
63
-
64
- interface IntersectionObserverInit {
65
- root?: Element | null;
66
- rootMargin?: string;
67
- threshold?: number;
68
- }
69
-
70
- declare class IntersectionObserver {
71
- readonly root: Element | null;
72
- readonly rootMargin: string;
73
- readonly thresholds: number[];
74
-
75
- constructor(callback: IntersectionObserverCallback, options?: IntersectionObserverInit);
76
-
77
- observe(target: Element): void;
78
- unobserve(target: Element): void;
79
- disconnect(): void;
80
- takeRecords(): IntersectionObserverEntry[];
81
- }
82
-
1
+ // https://wicg.github.io/IntersectionObserver/#intersection-observer-private-slots
2
+
3
+ /*
4
+ callback IntersectionObserverCallback = void (sequence<IntersectionObserverEntry> entries, IntersectionObserver observer)
5
+
6
+ [Constructor(IntersectionObserverCallback callback, optional IntersectionObserverInit options),
7
+ Exposed=Window]
8
+ interface IntersectionObserver {
9
+ readonly attribute Element? root;
10
+ readonly attribute DOMString rootMargin;
11
+ readonly attribute sequence<double> thresholds;
12
+ void observe(Element target);
13
+ void unobserve(Element target);
14
+ void disconnect();
15
+ sequence<IntersectionObserverEntry> takeRecords();
16
+ };
17
+
18
+ [Constructor(IntersectionObserverEntryInit intersectionObserverEntryInit)]
19
+ interface IntersectionObserverEntry {
20
+ readonly attribute DOMHighResTimeStamp time;
21
+ readonly attribute DOMRectReadOnly rootBounds;
22
+ readonly attribute DOMRectReadOnly boundingClientRect;
23
+ readonly attribute DOMRectReadOnly intersectionRect;
24
+ readonly attribute double intersectionRatio;
25
+ readonly attribute Element target;
26
+ };
27
+
28
+ dictionary IntersectionObserverEntryInit {
29
+ required DOMHighResTimeStamp time;
30
+ required DOMRectInit rootBounds;
31
+ required DOMRectInit boundingClientRect;
32
+ required DOMRectInit intersectionRect;
33
+ required double intersectionRatio;
34
+ required Element target;
35
+ };
36
+
37
+ dictionary IntersectionObserverInit {
38
+ Element? root = null;
39
+ DOMString rootMargin = "0px";
40
+ (double or sequence<double>) threshold = 0;
41
+ };
42
+ */
43
+
44
+ interface Bounds {
45
+ readonly height: number;
46
+ readonly width: number;
47
+ readonly top: number;
48
+ readonly left: number;
49
+ readonly right: number;
50
+ readonly bottom: number;
51
+ }
52
+
53
+ interface IntersectionObserverEntry {
54
+ readonly time: number;
55
+ readonly rootBounds: Bounds;
56
+ readonly boundingClientRect: Bounds;
57
+ readonly intersectionRect: Bounds;
58
+ readonly intersectionRatio: number;
59
+ readonly target: Element;
60
+ }
61
+
62
+ type IntersectionObserverCallback = (entries: IntersectionObserverEntry[], observer: IntersectionObserver) => void;
63
+
64
+ interface IntersectionObserverInit {
65
+ root?: Element | null;
66
+ rootMargin?: string;
67
+ threshold?: number;
68
+ }
69
+
70
+ declare class IntersectionObserver {
71
+ readonly root: Element | null;
72
+ readonly rootMargin: string;
73
+ readonly thresholds: number[];
74
+
75
+ constructor(callback: IntersectionObserverCallback, options?: IntersectionObserverInit);
76
+
77
+ observe(target: Element): void;
78
+ unobserve(target: Element): void;
79
+ disconnect(): void;
80
+ takeRecords(): IntersectionObserverEntry[];
81
+ }
82
+
83
83
  export = IntersectionObserver;
@@ -1,3 +1,3 @@
1
- declare namespace trackJs {
2
- declare function track(error: string | Error): void;
1
+ declare namespace trackJs {
2
+ declare function track(error: string | Error): void;
3
3
  }
@@ -1,29 +1,29 @@
1
- import videojs from 'video.js';
2
-
3
- declare module 'video.js' {
4
- export interface VideoJsPlayer {
5
- qualityLevels(): QualityLevelList;
6
- }
7
- }
8
-
9
- declare module 'videojs-contrib-quality-levels' {
10
- export interface QualityLevelList extends videojs.EventTarget {
11
- [id: string]: QualityLevel;
12
- selectedIndex: number;
13
- length: number;
14
- addQualityLevel(representation: Representation): QualityLevel;
15
- removeQualityLevel(qualityLevel: QualityLevel): QualityLevel;
16
- getQualityLevelById(id: string): QualityLevel;
17
- }
18
-
19
- export interface QualityLevel {
20
- id: string;
21
- label: string;
22
- enabled: boolean;
23
- }
24
-
25
- export interface Representation {
26
- id: string;
27
- enabled(enabled: boolean): boolean;
28
- }
1
+ import videojs from 'video.js';
2
+
3
+ declare module 'video.js' {
4
+ export interface VideoJsPlayer {
5
+ qualityLevels(): QualityLevelList;
6
+ }
7
+ }
8
+
9
+ declare module 'videojs-contrib-quality-levels' {
10
+ export interface QualityLevelList extends videojs.EventTarget {
11
+ [id: string]: QualityLevel;
12
+ selectedIndex: number;
13
+ length: number;
14
+ addQualityLevel(representation: Representation): QualityLevel;
15
+ removeQualityLevel(qualityLevel: QualityLevel): QualityLevel;
16
+ getQualityLevelById(id: string): QualityLevel;
17
+ }
18
+
19
+ export interface QualityLevel {
20
+ id: string;
21
+ label: string;
22
+ enabled: boolean;
23
+ }
24
+
25
+ export interface Representation {
26
+ id: string;
27
+ enabled(enabled: boolean): boolean;
28
+ }
29
29
  }
@@ -1,12 +1,12 @@
1
- /**
2
- * Define our templates as a module so that we can use
3
- * import statements just the same as we do for other
4
- * ts/js code.
5
- */
6
- declare module '*.scss';
7
- declare module '*.svg';
8
-
9
- declare module '*.json' {
10
- export const value: any;
11
- export default value;
1
+ /**
2
+ * Define our templates as a module so that we can use
3
+ * import statements just the same as we do for other
4
+ * ts/js code.
5
+ */
6
+ declare module '*.scss';
7
+ declare module '*.svg';
8
+
9
+ declare module '*.json' {
10
+ export const value: any;
11
+ export default value;
12
12
  }
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_exchange=self.webpackChunk_clickview_exchange||[]).push([[351],{20455:(e,t,n)=>{n.d(t,{LB:()=>_e,y9:()=>ut,g4:()=>ne,Lg:()=>le,we:()=>fe,pE:()=>N,ey:()=>S,VK:()=>A,_8:()=>R,hI:()=>B,Cj:()=>Ve,O1:()=>Ge,Zj:()=>Qe,VT:()=>p,Dy:()=>m});var r=n(32735),o=n(12788),i=n(17592);const a={display:"none"};function l(e){let{id:t,value:n}=e;return r.createElement("div",{id:t,style:a},n)}const s={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"};function c(e){let{id:t,announcement:n}=e;return r.createElement("div",{id:t,style:s,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const u=(0,r.createContext)(null),d={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 "},f={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 h(e){let{announcements:t=f,container:n,hiddenTextDescribedById:a,screenReaderInstructions:s=d}=e;const{announce:h,announcement:v}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),g=(0,i.Ld)("DndLiveRegion"),[p,m]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{m(!0)}),[]),function(e){const t=(0,r.useContext)(u);(0,r.useEffect)((()=>{if(!t)throw new Error("useDndMonitor must be used within a children of <DndContext>");return t(e)}),[e,t])}((0,r.useMemo)((()=>({onDragStart(e){let{active:n}=e;h(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&h(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;h(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;h(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;h(t.onDragCancel({active:n,over:r}))}})),[h,t])),!p)return null;const b=r.createElement(r.Fragment,null,r.createElement(l,{id:a,value:s.draggable}),r.createElement(c,{id:g,announcement:v}));return n?(0,o.createPortal)(b,n):b}var v;function g(){}function p(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>[...t].filter((e=>null!=e))),[...t])}!function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"}(v||(v={}));const b=Object.freeze({x:0,y:0});function y(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function w(e,t){const n=(0,i.DC)(e);return n?(n.x-t.left)/t.width*100+"% "+(n.y-t.top)/t.height*100+"%":"0 0"}function x(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function C(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function E(e){let{left:t,top:n,height:r,width:o}=e;return[{x:t,y:n},{x:t+o,y:n},{x:t,y:n+r},{x:t+o,y:n+r}]}function R(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function D(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 N=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=D(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=y(D(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(x)},S=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=E(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=E(r),a=o.reduce(((e,t,r)=>e+y(n[r],t)),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(x)};function I(e,t){const n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),o=Math.min(t.left+t.width,e.left+e.width),i=Math.min(t.top+t.height,e.top+e.height),a=o-r,l=i-n;if(r<o&&n<i){const n=t.width*t.height,r=e.width*e.height,o=a*l;return Number((o/(n+r-o)).toFixed(4))}return 0}const M=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=[];for(const e of r){const{id:r}=e,i=n.get(r);if(i){const n=I(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(C)};function O(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}function k(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.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 L=k(1);function T(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}const P={ignoreTransform:!1};function A(e,t){void 0===t&&(t=P);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:t}=(0,i.Jj)(e),{transform:r,transformOrigin:o}=t(e);r&&(n=function(e,t,n){const r=T(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),c=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),u=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s}}(n,r,o))}const{top:r,left:o,width:a,height:l,bottom:s,right:c}=n;return{top:r,left:o,width:a,height:l,bottom:s,right:c}}function j(e){return A(e,{ignoreTransform:!0})}function B(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,i.qk)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,i.Re)(o)||(0,i.vZ)(o))return n;if(n.includes(o))return n;const{getComputedStyle:a}=(0,i.Jj)(o),l=a(o);return o!==e&&function(e,t){void 0===t&&(t=(0,i.Jj)(e).getComputedStyle(e));const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some((e=>{const r=t[e];return"string"==typeof r&&n.test(r)}))}(o,l)&&n.push(o),function(e,t){return void 0===t&&(t=(0,i.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(o,l)?n:r(o.parentNode)}(e):n}function z(e){const[t]=B(e,1);return null!=t?t:null}function X(e){return i.Nq&&e?(0,i.FJ)(e)?e:(0,i.UG)(e)?(0,i.qk)(e)||e===(0,i.r3)(e).scrollingElement?window:(0,i.Re)(e)?e:null:null:null}function F(e){return(0,i.FJ)(e)?e.scrollX:e.scrollLeft}function U(e){return(0,i.FJ)(e)?e.scrollY:e.scrollTop}function Y(e){return{x:F(e),y:U(e)}}var J;function H(e){return!(!i.Nq||!e)&&e===document.scrollingElement}function _(e){const t={x:0,y:0},n=H(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}!function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"}(J||(J={}));const q={x:.2,y:.2};function K(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=q);const{isTop:c,isBottom:u,isLeft:d,isRight:f}=_(e),h={x:0,y:0},v={x:0,y:0},g=t.height*o.y,p=t.width*o.x;return!c&&i<=t.top+g?(h.y=J.Backward,v.y=r*Math.abs((t.top+g-i)/g)):!u&&s>=t.bottom-g&&(h.y=J.Forward,v.y=r*Math.abs((t.bottom-g-s)/g)),!f&&l>=t.right-p?(h.x=J.Forward,v.x=r*Math.abs((t.right-p-l)/p)):!d&&a<=t.left+p&&(h.x=J.Backward,v.x=r*Math.abs((t.left+p-a)/p)),{direction:h,speed:v}}function W(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:r,bottom:o}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:o,width:e.clientWidth,height:e.clientHeight}}function G(e){return e.reduce(((e,t)=>(0,i.IH)(e,Y(t))),b)}function V(e,t){if(void 0===t&&(t=A),!e)return;const{top:n,left:r,bottom:o,right:i}=t(e);z(e)&&(o<=0||i<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const $=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+F(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+U(t)),0)}]];class Z{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=B(t),r=G(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of $)for(const i of t)Object.defineProperty(this,i,{get:()=>{const t=o(n),a=r[e]-t;return this.rect[i]+a},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Q{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 r;null==(r=this.target)||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}}function ee(e,t){const n=Math.abs(e.x),r=Math.abs(e.y);return"number"==typeof t?Math.sqrt(n**2+r**2)>t:"x"in t&&"y"in t?n>t.x&&r>t.y:"x"in t?n>t.x:"y"in t&&r>t.y}var te,ne;function re(e){e.preventDefault()}function oe(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"}(te||(te={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(ne||(ne={}));const ie={start:[ne.Space,ne.Enter],cancel:[ne.Esc],end:[ne.Space,ne.Enter]},ae=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case ne.Right:return{...n,x:n.x+25};case ne.Left:return{...n,x:n.x-25};case ne.Down:return{...n,y:n.y+25};case ne.Up:return{...n,y:n.y-25}}};class le{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 Q((0,i.r3)(t)),this.windowListeners=new Q((0,i.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(te.Resize,this.handleCancel),this.windowListeners.add(te.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(te.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&V(n),t(b)}handleKeyDown(e){if((0,i.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=ie,coordinateGetter:a=ae,scrollBehavior:l="smooth"}=r,{code:s}=e;if(o.end.includes(s))return void this.handleEnd(e);if(o.cancel.includes(s))return void this.handleCancel(e);const{collisionRect:c}=n.current,u=c?{x:c.left,y:c.top}:b;this.referenceCoordinates||(this.referenceCoordinates=u);const d=a(e,{active:t,context:n.current,currentCoordinates:u});if(d){const t=(0,i.$X)(d,u),r={x:0,y:0},{scrollableAncestors:o}=n.current;for(const n of o){const o=e.code,{isTop:i,isRight:a,isLeft:s,isBottom:c,maxScroll:u,minScroll:f}=_(n),h=W(n),v={x:Math.min(o===ne.Right?h.right-h.width/2:h.right,Math.max(o===ne.Right?h.left:h.left+h.width/2,d.x)),y:Math.min(o===ne.Down?h.bottom-h.height/2:h.bottom,Math.max(o===ne.Down?h.top:h.top+h.height/2,d.y))},g=o===ne.Right&&!a||o===ne.Left&&!s,p=o===ne.Down&&!c||o===ne.Up&&!i;if(g&&v.x!==d.x){const e=n.scrollLeft+t.x,i=o===ne.Right&&e<=u.x||o===ne.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});r.x=i?n.scrollLeft-e:o===ne.Right?n.scrollLeft-u.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(p&&v.y!==d.y){const e=n.scrollTop+t.y,i=o===ne.Down&&e<=u.y||o===ne.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===ne.Down?n.scrollTop-u.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,i.IH)((0,i.$X)(d,this.referenceCoordinates),r))}}}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 se(e){return Boolean(e&&"distance"in e)}function ce(e){return Boolean(e&&"delay"in e)}le.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ie,onActivation:o}=t,{active:i}=n;const{code:a}=e.nativeEvent;if(r.start.includes(a)){const t=i.activatorNode.current;return!(t&&e.target!==t||(e.preventDefault(),null==o||o({event:e.nativeEvent}),0))}return!1}}];class ue{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,i.Jj)(e);return e instanceof t?e:(0,i.r3)(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:o}=e,{target:a}=o;this.props=e,this.events=t,this.document=(0,i.r3)(a),this.documentListeners=new Q(this.document),this.listeners=new Q(n),this.windowListeners=new Q((0,i.Jj)(a)),this.initialCoordinates=null!=(r=(0,i.DC)(o))?r:b,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}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),this.windowListeners.add(te.Resize,this.handleCancel),this.windowListeners.add(te.DragStart,re),this.windowListeners.add(te.VisibilityChange,this.handleCancel),this.windowListeners.add(te.ContextMenu,re),this.documentListeners.add(te.Keydown,this.handleKeydown),t){if(se(t))return;if(ce(t))return void(this.timeoutId=setTimeout(this.handleStart,t.delay))}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(te.Click,oe,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(te.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:a,options:{activationConstraint:l}}=o;if(!r)return;const s=null!=(t=(0,i.DC)(e))?t:b,c=(0,i.$X)(r,s);if(!n&&l){if(ce(l))return ee(c,l.tolerance)?this.handleCancel():void 0;if(se(l))return null!=l.tolerance&&ee(c,l.tolerance)?this.handleCancel():ee(c,l.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),a(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===ne.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const de={move:{name:"pointermove"},end:{name:"pointerup"}};class fe extends ue{constructor(e){const{event:t}=e,n=(0,i.r3)(t.target);super(e,de,n)}}fe.activators=[{eventName:"onPointerDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!(!n.isPrimary||0!==n.button||(null==r||r({event:n}),0))}}];const he={move:{name:"mousemove"},end:{name:"mouseup"}};var ve;!function(e){e[e.RightClick=2]="RightClick"}(ve||(ve={})),class extends ue{constructor(e){super(e,he,(0,i.r3)(e.event.target))}}.activators=[{eventName:"onMouseDown",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==ve.RightClick&&(null==r||r({event:n}),!0)}}];const ge={move:{name:"touchmove"},end:{name:"touchend"}};var pe,me;(class extends ue{constructor(e){super(e,ge)}static setup(){return window.addEventListener(ge.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(ge.move.name,e)};function e(){}}}).activators=[{eventName:"onTouchStart",handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;const{touches:o}=n;return!(o.length>1||(null==r||r({event:n}),0))}}],function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"}(pe||(pe={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(me||(me={}));const be={x:{[J.Backward]:!1,[J.Forward]:!1},y:{[J.Backward]:!1,[J.Forward]:!1}};var ye,we;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(ye||(ye={})),function(e){e.Optimized="optimized"}(we||(we={}));const xe=new Map;function Ce(e,t){return(0,i.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Ee(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.ResizeObserver)return;const{ResizeObserver:e}=window;return new e(o)}),[n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}function Re(e){return new Z(A(e),e)}function De(e,t,n){void 0===t&&(t=Re);const[o,a]=(0,r.useReducer)((function(r){if(!e)return null;var o;if(!1===e.isConnected)return null!=(o=null!=r?r:n)?o:null;const i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i}),null),l=function(e){let{callback:t,disabled:n}=e;const o=(0,i.zX)(t),a=(0,r.useMemo)((()=>{if(n||"undefined"==typeof window||void 0===window.MutationObserver)return;const{MutationObserver:e}=window;return new e(o)}),[o,n]);return(0,r.useEffect)((()=>()=>null==a?void 0:a.disconnect()),[a]),a}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=Ee({callback:a});return(0,i.LI)((()=>{a(),e?(null==s||s.observe(e),null==l||l.observe(document.body,{childList:!0,subtree:!0})):(null==s||s.disconnect(),null==l||l.disconnect())}),[e]),o}const Ne=[];function Se(e,t){void 0===t&&(t=[]);const n=(0,r.useRef)(null);return(0,r.useEffect)((()=>{n.current=null}),t),(0,r.useEffect)((()=>{const t=e!==b;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)}),[e]),n.current?(0,i.$X)(e,n.current):b}function Ie(e){return(0,r.useMemo)((()=>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 Me=[];function Oe(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,i.Re)(t)?t:e}const ke=[{sensor:fe,options:{}},{sensor:le,options:{}}],Le={current:{}},Te={draggable:{measure:j},droppable:{measure:j,strategy:ye.WhileDragging,frequency:we.Optimized},dragOverlay:{measure:A}};class Pe 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 Ae={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Pe,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:g},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Te,measureDroppableContainers:g,windowRect:null,measuringScheduled:!1},je={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:g,draggableNodes:new Map,over:null,measureDroppableContainers:g},Be=(0,r.createContext)(je),ze=(0,r.createContext)(Ae);function Xe(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Pe}}}function Fe(e,t){switch(t.type){case v.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case v.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 v.DragEnd:case v.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case v.RegisterDroppable:{const{element:n}=t,{id:r}=n,o=new Pe(e.droppable.containers);return o.set(r,n),{...e,droppable:{...e.droppable,containers:o}}}case v.SetDroppableDisabled:{const{id:n,key:r,disabled:o}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;const a=new Pe(e.droppable.containers);return a.set(n,{...i,disabled:o}),{...e,droppable:{...e.droppable,containers:a}}}case v.UnregisterDroppable:{const{id:n,key:r}=t,o=e.droppable.containers.get(n);if(!o||r!==o.key)return e;const i=new Pe(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function Ue(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:a}=(0,r.useContext)(Be),l=(0,i.D9)(o),s=(0,i.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&l&&null!=s){if(!(0,i.vd)(l))return;if(document.activeElement===l.target)return;const e=a.get(s);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=(0,i.so)(e);if(t){t.focus();break}}}))}}),[o,t,a,s,l]),null}function Ye(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Je=(0,r.createContext)({...b,scaleX:1,scaleY:1});var He;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(He||(He={}));const _e=(0,r.memo)((function(e){var t,n,a,l;let{id:s,accessibility:c,autoScroll:d=!0,children:f,sensors:g=ke,collisionDetection:p=M,measuring:m,modifiers:y,...w}=e;const x=(0,r.useReducer)(Fe,void 0,Xe),[C,E]=x,[D,N]=function(){const[e]=(0,r.useState)((()=>new Set)),t=(0,r.useCallback)((t=>(e.add(t),()=>e.delete(t))),[e]);return[(0,r.useCallback)((t=>{let{type:n,event:r}=t;e.forEach((e=>{var t;return null==(t=e[n])?void 0:t.call(e,r)}))}),[e]),t]}(),[S,I]=(0,r.useState)(He.Uninitialized),k=S===He.Initialized,{draggable:{active:T,nodes:P,translate:j},droppable:{containers:F}}=C,U=T?P.get(T):null,_=(0,r.useRef)({initial:null,translated:null}),q=(0,r.useMemo)((()=>{var e;return null!=T?{id:T,data:null!=(e=null==U?void 0:U.data)?e:Le,rect:_}:null}),[T,U]),W=(0,r.useRef)(null),[V,$]=(0,r.useState)(null),[Q,ee]=(0,r.useState)(null),te=(0,i.Ey)(w,Object.values(w)),ne=(0,i.Ld)("DndDescribedBy",s),re=(0,r.useMemo)((()=>F.getEnabled()),[F]),oe=(ie=m,(0,r.useMemo)((()=>({draggable:{...Te.draggable,...null==ie?void 0:ie.draggable},droppable:{...Te.droppable,...null==ie?void 0:ie.droppable},dragOverlay:{...Te.dragOverlay,...null==ie?void 0:ie.dragOverlay}})),[null==ie?void 0:ie.draggable,null==ie?void 0:ie.droppable,null==ie?void 0:ie.dragOverlay]));var ie;const{droppableRects:ae,measureDroppableContainers:le,measuringScheduled:se}=function(e,t){let{dragging:n,dependencies:o,config:a}=t;const[l,s]=(0,r.useState)(null),c=null!=l,{frequency:u,measure:d,strategy:f}=a,h=(0,r.useRef)(e),v=function(){switch(f){case ye.Always:return!1;case ye.BeforeDragging:return n;default:return!n}}(),g=(0,i.Ey)(v),p=(0,r.useCallback)((function(e){void 0===e&&(e=[]),g.current||s((t=>t?t.concat(e):e))}),[g]),m=(0,r.useRef)(null),b=(0,i.Gj)((t=>{if(v&&!n)return xe;const r=l;if(!t||t===xe||h.current!==e||null!=r){const t=new Map;for(let n of e){if(!n)continue;if(r&&r.length>0&&!r.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}const e=n.node.current,o=e?new Z(d(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t}),[e,l,n,v,d]);return(0,r.useEffect)((()=>{h.current=e}),[e]),(0,r.useEffect)((()=>{v||requestAnimationFrame((()=>p()))}),[n,v]),(0,r.useEffect)((()=>{c&&s(null)}),[c]),(0,r.useEffect)((()=>{v||"number"!=typeof u||null!==m.current||(m.current=setTimeout((()=>{p(),m.current=null}),u))}),[u,v,p,...o]),{droppableRects:b,measureDroppableContainers:p,measuringScheduled:c}}(re,{dragging:k,dependencies:[j.x,j.y],config:oe.droppable}),ce=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,i.Gj)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(P,T),ue=(0,r.useMemo)((()=>Q?(0,i.DC)(Q):null),[Q]),de=function(){const e=!1===(null==V?void 0:V.autoScrollEnabled),t="object"==typeof d?!1===d.enabled:!1===d,n=k&&!e&&!t;return"object"==typeof d?{...d,enabled:n}:{enabled:n}}(),fe=function(e,t){return Ce(e,t)}(ce,oe.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:a=!0}=e;const l=(0,r.useRef)(!1),{x:s,y:c}="boolean"==typeof a?{x:a,y:a}:a;(0,i.LI)((()=>{if(!s&&!c||!t)return void(l.current=!1);if(l.current||!o)return;const e=null==t?void 0:t.node.current;if(!e||!1===e.isConnected)return;const r=O(n(e),o);if(s||(r.x=0),c||(r.y=0),l.current=!0,Math.abs(r.x)>0||Math.abs(r.y)>0){const t=z(e);t&&t.scrollBy({top:r.y,left:r.x})}}),[t,s,c,o,n])}({activeNode:T?P.get(T):null,config:de.layoutShiftCompensation,initialRect:fe,measure:oe.draggable.measure});const he=De(ce,oe.draggable.measure,fe),ve=De(ce?ce.parentElement:null),ge=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ce,collisionRect:null,collisions:null,droppableRects:ae,draggableNodes:P,draggingNode:null,draggingNodeRect:null,droppableContainers:F,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),we=F.getNodeFor(null==(t=ge.current.over)?void 0:t.id),Re=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),a=Ee({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,i.Re)(n)){o((e=>{const r=t(n);return e?{...e,width:r.width,height:r.height}:r}));break}}),[t])}),l=(0,r.useCallback)((e=>{const n=Oe(e);null==a||a.disconnect(),n&&(null==a||a.observe(n)),o(n?t(n):null)}),[t,a]),[s,c]=(0,i.wm)(l);return(0,r.useMemo)((()=>({nodeRef:s,rect:n,setRef:c})),[n,s,c])}({measure:oe.dragOverlay.measure}),Pe=null!=(n=Re.nodeRef.current)?n:ce,Ae=k?null!=(a=Re.rect)?a:he:null,je=Boolean(Re.nodeRef.current&&Re.rect),_e=O(qe=je?null:he,Ce(qe));var qe;const Ke=Ie(Pe?(0,i.Jj)(Pe):null),We=function(e){const t=(0,r.useRef)(e),n=(0,i.Gj)((n=>e?n&&n!==Ne&&e&&t.current&&e.parentNode===t.current.parentNode?n:B(e):Ne),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(k?null!=we?we:ce:null),Ge=function(e,t){void 0===t&&(t=A);const[n]=e,o=Ie(n?(0,i.Jj)(n):null),[a,l]=(0,r.useReducer)((function(){return e.length?e.map((e=>H(e)?o:new Z(t(e),e))):Me}),Me),s=Ee({callback:l});return e.length>0&&a===Me&&l(),(0,i.LI)((()=>{e.length?e.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),l())}),[e]),a}(We),Ve=Ye(y,{transform:{x:j.x-_e.x,y:j.y-_e.y,scaleX:1,scaleY:1},activatorEvent:Q,active:q,activeNodeRect:he,containerNodeRect:ve,draggingNodeRect:Ae,over:ge.current.over,overlayNodeRect:Re.rect,scrollableAncestors:We,scrollableAncestorRects:Ge,windowRect:Ke}),$e=ue?(0,i.IH)(ue,j):null,Ze=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),a=(0,r.useCallback)((e=>{const t=X(e.target);t&&n((e=>e?(e.set(t,Y(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const i=e.map((e=>{const t=X(e);return t?(t.addEventListener("scroll",a,{passive:!0}),[t,Y(t)]):null})).filter((e=>null!=e));n(i.length?new Map(i):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=X(e);null==t||t.removeEventListener("scroll",a)}))}}),[a,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,i.IH)(e,t)),b):G(e):b),[e,t])}(We),Qe=Se(Ze),et=Se(Ze,[he]),tt=(0,i.IH)(Ve,Qe),nt=Ae?L(Ae,Ve):null,rt=q&&nt?p({active:q,collisionRect:nt,droppableRects:ae,droppableContainers:re,pointerCoordinates:$e}):null,ot=R(rt,"id"),[it,at]=(0,r.useState)(null),lt=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(je?Ve:(0,i.IH)(Ve,et),null!=(l=null==it?void 0:it.rect)?l:null,he),st=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==W.current)return;const i=P.get(W.current);if(!i)return;const a=e.nativeEvent,l=new n({active:W.current,activeNode:i,event:a,options:r,context:ge,onStart(e){const t=W.current;if(null==t)return;const n=P.get(t);if(!n)return;const{onDragStart:r}=te.current,i={active:{id:t,data:n.data,rect:_}};(0,o.unstable_batchedUpdates)((()=>{null==r||r(i),I(He.Initializing),E({type:v.DragStart,initialCoordinates:e,active:t}),D({type:"onDragStart",event:i})}))},onMove(e){E({type:v.DragMove,coordinates:e})},onEnd:s(v.DragEnd),onCancel:s(v.DragCancel)});function s(e){return async function(){const{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ge.current;let l=null;if(t&&i){const{cancelDrop:o}=te.current;l={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===v.DragEnd&&"function"==typeof o&&await Promise.resolve(o(l))&&(e=v.DragCancel)}W.current=null,(0,o.unstable_batchedUpdates)((()=>{E({type:e}),I(He.Uninitialized),at(null),$(null),ee(null);const t=e===v.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=te.current[t];null==e||e(l),D({type:t,event:l})}}))}}(0,o.unstable_batchedUpdates)((()=>{$(l),ee(e.nativeEvent)}))}),[P]),ct=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=P.get(r);if(null!==W.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},W.current=r,st(n,t))}),[P,st]),ut=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{const{sensor:r}=n;return[...e,...r.activators.map((e=>({eventName:e.eventName,handler:t(e.handler,n)})))]}),[])),[e,t])}(g,ct);!function(e){(0,r.useEffect)((()=>{if(!i.Nq)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})))}(g),(0,i.LI)((()=>{he&&S===He.Initializing&&I(He.Initialized)}),[he,S]),(0,r.useEffect)((()=>{const{onDragMove:e}=te.current,{active:t,activatorEvent:n,collisions:r,over:i}=ge.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:tt.x,y:tt.y},over:i};(0,o.unstable_batchedUpdates)((()=>{null==e||e(a),D({type:"onDragMove",event:a})}))}),[tt.x,tt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ge.current;if(!e||null==W.current||!t||!i)return;const{onDragOver:a}=te.current,l=r.get(ot),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,o.unstable_batchedUpdates)((()=>{at(s),null==a||a(c),D({type:"onDragOver",event:c})}))}),[ot]),(0,i.LI)((()=>{ge.current={activatorEvent:Q,active:q,activeNode:ce,collisionRect:nt,collisions:rt,droppableRects:ae,draggableNodes:P,draggingNode:Pe,draggingNodeRect:Ae,droppableContainers:F,over:it,scrollableAncestors:We,scrollAdjustedTranslate:tt},_.current={initial:Ae,translated:nt}}),[q,ce,rt,nt,P,Pe,Ae,ae,F,it,We,tt]),function(e){let{acceleration:t,activator:n=pe.Pointer,canScroll:o,draggingRect:a,enabled:l,interval:s=5,order:c=me.TreeOrder,pointerCoordinates:u,scrollableAncestors:d,scrollableAncestorRects:f,delta:h,threshold:v}=e;const g=function(e){let{delta:t,disabled:n}=e;const r=(0,i.D9)(t);return(0,i.Gj)((e=>{if(n||!r||!e)return be;const o=Math.sign(t.x-r.x),i=Math.sign(t.y-r.y);return{x:{[J.Backward]:e.x[J.Backward]||-1===o,[J.Forward]:e.x[J.Forward]||1===o},y:{[J.Backward]:e.y[J.Backward]||-1===i,[J.Forward]:e.y[J.Forward]||1===i}}}),[n,t,r])}({delta:h,disabled:!l}),[p,m]=(0,i.Yz)(),b=(0,r.useRef)({x:0,y:0}),y=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case pe.Pointer:return u?{top:u.y,bottom:u.y,left:u.x,right:u.x}:null;case pe.DraggableRect:return a}}),[n,a,u]),x=(0,r.useRef)(null),C=(0,r.useCallback)((()=>{const e=x.current;if(!e)return;const t=b.current.x*y.current.x,n=b.current.y*y.current.y;e.scrollBy(t,n)}),[]),E=(0,r.useMemo)((()=>c===me.TreeOrder?[...d].reverse():d),[c,d]);(0,r.useEffect)((()=>{if(l&&d.length&&w){for(const e of E){if(!1===(null==o?void 0:o(e)))continue;const n=d.indexOf(e),r=f[n];if(!r)continue;const{direction:i,speed:a}=K(e,r,w,t,v);for(const e of["x","y"])g[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return m(),x.current=e,p(C,s),b.current=a,void(y.current=i)}b.current={x:0,y:0},y.current={x:0,y:0},m()}else m()}),[t,C,o,m,l,s,JSON.stringify(w),JSON.stringify(g),p,d,E,f,JSON.stringify(v)])}({...de,delta:j,draggingRect:nt,pointerCoordinates:$e,scrollableAncestors:We,scrollableAncestorRects:Ge});const dt=(0,r.useMemo)((()=>({active:q,activeNode:ce,activeNodeRect:he,activatorEvent:Q,collisions:rt,containerNodeRect:ve,dragOverlay:Re,draggableNodes:P,droppableContainers:F,droppableRects:ae,over:it,measureDroppableContainers:le,scrollableAncestors:We,scrollableAncestorRects:Ge,measuringConfiguration:oe,measuringScheduled:se,windowRect:Ke})),[q,ce,he,Q,rt,ve,Re,P,F,ae,it,le,We,Ge,oe,se,Ke]),ft=(0,r.useMemo)((()=>({activatorEvent:Q,activators:ut,active:q,activeNodeRect:he,ariaDescribedById:{draggable:ne},dispatch:E,draggableNodes:P,over:it,measureDroppableContainers:le})),[Q,ut,q,he,E,ne,P,it,le]);return r.createElement(u.Provider,{value:N},r.createElement(Be.Provider,{value:ft},r.createElement(ze.Provider,{value:dt},r.createElement(Je.Provider,{value:lt},f)),r.createElement(Ue,{disabled:!1===(null==c?void 0:c.restoreFocus)})),r.createElement(h,{...c,hiddenTextDescribedById:ne}))})),qe=(0,r.createContext)(null),Ke="button",We="Droppable";function Ge(e){let{id:t,data:n,disabled:o=!1,attributes:a}=e;const l=(0,i.Ld)(We),{activators:s,activatorEvent:c,active:u,activeNodeRect:d,ariaDescribedById:f,draggableNodes:h,over:v}=(0,r.useContext)(Be),{role:g=Ke,roleDescription:p="draggable",tabIndex:m=0}=null!=a?a:{},b=(null==u?void 0:u.id)===t,y=(0,r.useContext)(b?Je:qe),[w,x]=(0,i.wm)(),[C,E]=(0,i.wm)(),R=function(e,t){return(0,r.useMemo)((()=>e.reduce(((e,n)=>{let{eventName:r,handler:o}=n;return e[r]=e=>{o(e,t)},e}),{})),[e,t])}(s,t),D=(0,i.Ey)(n);return(0,i.LI)((()=>(h.set(t,{id:t,key:l,node:w,activatorNode:C,data:D}),()=>{const e=h.get(t);e&&e.key===l&&h.delete(t)})),[h,t]),{active:u,activatorEvent:c,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:g,tabIndex:m,"aria-disabled":o,"aria-pressed":!(!b||g!==Ke)||void 0,"aria-roledescription":p,"aria-describedby":f.draggable})),[o,g,m,b,p,f.draggable]),isDragging:b,listeners:o?void 0:R,node:w,over:v,setNodeRef:x,setActivatorNodeRef:E,transform:y}}function Ve(){return(0,r.useContext)(ze)}const $e="Droppable",Ze={timeout:25};function Qe(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:a}=e;const l=(0,i.Ld)($e),{active:s,dispatch:c,over:u,measureDroppableContainers:d}=(0,r.useContext)(Be),f=(0,r.useRef)({disabled:n}),h=(0,r.useRef)(!1),g=(0,r.useRef)(null),p=(0,r.useRef)(null),{disabled:m,updateMeasurementsFor:b,timeout:y}={...Ze,...a},w=(0,i.Ey)(null!=b?b:o),x=Ee({callback:(0,r.useCallback)((()=>{h.current?(null!=p.current&&clearTimeout(p.current),p.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),p.current=null}),y)):h.current=!0}),[y]),disabled:m||!s}),C=(0,r.useCallback)(((e,t)=>{x&&(t&&(x.unobserve(t),h.current=!1),e&&x.observe(e))}),[x]),[E,R]=(0,i.wm)(C),D=(0,i.Ey)(t);return(0,r.useEffect)((()=>{x&&E.current&&(x.disconnect(),h.current=!1,x.observe(E.current))}),[E,x]),(0,i.LI)((()=>(c({type:v.RegisterDroppable,element:{id:o,key:l,disabled:n,node:E,rect:g,data:D}}),()=>c({type:v.UnregisterDroppable,key:l,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(c({type:v.SetDroppableDisabled,id:o,key:l,disabled:n}),f.current.disabled=n)}),[o,l,n,c]),{active:s,rect:g,isOver:(null==u?void 0:u.id)===o,node:E,over:u,setNodeRef:R}}function et(e){let{animation:t,children:n}=e;const[o,a]=(0,r.useState)(null),[l,s]=(0,r.useState)(null),c=(0,i.D9)(n);return n||o||!c||a(c),(0,i.LI)((()=>{if(!l)return;const e=null==o?void 0:o.key,n=null==o?void 0:o.props.id;null!=e&&null!=n?Promise.resolve(t(n,l)).then((()=>{a(null)})):a(null)}),[t,o,l]),r.createElement(r.Fragment,null,n,o?(0,r.cloneElement)(o,{ref:s}):null)}const tt={x:0,y:0,scaleX:1,scaleY:1};function nt(e){let{children:t}=e;return r.createElement(Be.Provider,{value:je},r.createElement(Je.Provider,{value:tt},t))}const rt={position:"fixed",touchAction:"none"},ot=e=>(0,i.vd)(e)?"transform 250ms ease":void 0,it=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:o,adjustScale:a,children:l,className:s,rect:c,style:u,transform:d,transition:f=ot}=e;if(!c)return null;const h=a?d:{...d,scaleX:1,scaleY:1},v={...rt,width:c.width,height:c.height,top:c.top,left:c.left,transform:i.ux.Transform.toString(h),transformOrigin:a&&o?w(o,c):void 0,transition:"function"==typeof f?f(o):f,...u};return r.createElement(n,{className:s,style:v,ref:t},l)})),at=e=>t=>{let{active:n,dragOverlay:r}=t;const o={},{styles:i,className:a}=e;if(null!=i&&i.active)for(const[e,t]of Object.entries(i.active))void 0!==t&&(o[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(null!=i&&i.dragOverlay)for(const[e,t]of Object.entries(i.dragOverlay))void 0!==t&&r.node.style.setProperty(e,t);return null!=a&&a.active&&n.node.classList.add(a.active),null!=a&&a.dragOverlay&&r.node.classList.add(a.dragOverlay),function(){for(const[e,t]of Object.entries(o))n.node.style.setProperty(e,t);null!=a&&a.active&&n.node.classList.remove(a.active)}},lt={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:i.ux.Transform.toString(t)},{transform:i.ux.Transform.toString(n)}]},sideEffects:at({styles:{active:{opacity:"0"}}})};let st=0;function ct(e){return(0,r.useMemo)((()=>{if(null!=e)return st++,st}),[e])}const ut=r.memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:o,style:a,transition:l,modifiers:s,wrapperElement:c="div",className:u,zIndex:d=999}=e;const{activatorEvent:f,active:h,activeNodeRect:v,containerNodeRect:g,draggableNodes:p,droppableContainers:m,dragOverlay:b,over:y,measuringConfiguration:w,scrollableAncestors:x,scrollableAncestorRects:C,windowRect:E}=Ve(),R=(0,r.useContext)(Je),D=ct(null==h?void 0:h.id),N=Ye(s,{activatorEvent:f,active:h,activeNodeRect:v,containerNodeRect:g,draggingNodeRect:b.rect,over:y,overlayNodeRect:b.rect,scrollableAncestors:x,scrollableAncestorRects:C,transform:R,windowRect:E}),S=Ce(v),I=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,i.zX)(((e,a)=>{if(null===t)return;const l=n.get(e);if(!l)return;const s=l.node.current;if(!s)return;const c=Oe(a);if(!c)return;const{transform:u}=(0,i.Jj)(a).getComputedStyle(a),d=T(u);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...lt,...e};return e=>{let{active:i,dragOverlay:a,transform:l,...s}=e;if(!t)return;const c=a.rect.left-i.rect.left,u=a.rect.top-i.rect.top,d={scaleX:1!==l.scaleX?i.rect.width*l.scaleX/a.rect.width:1,scaleY:1!==l.scaleY?i.rect.height*l.scaleY/a.rect.height:1},f={x:l.x-c,y:l.y-u,...d},h=o({...s,active:i,dragOverlay:a,transform:{initial:l,final:f}}),[v]=h,g=h[h.length-1];if(JSON.stringify(v)===JSON.stringify(g))return;const p=null==r?void 0:r({active:i,dragOverlay:a,...s}),m=a.node.animate(h,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{m.onfinish=()=>{null==p||p(),e()}}))}}(t);return V(s,o.draggable.measure),f({active:{id:e,data:l.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:o.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}({config:o,draggableNodes:p,droppableContainers:m,measuringConfiguration:w}),M=S?b.setRef:void 0;return r.createElement(nt,null,r.createElement(et,{animation:I},h&&D?r.createElement(it,{key:D,id:h.id,ref:M,as:c,activatorEvent:f,adjustScale:t,className:u,transition:l,rect:S,style:{zIndex:d,...a},transform:N},n):null))}))},95339:(e,t,n)=>{n.d(t,{DL:()=>r}),n(17592);const r=({transform:e})=>({...e,x:0})},67445:(e,t,n)=>{n.d(t,{Fo:()=>v,U2:()=>c,is:()=>R,nB:()=>x,qw:()=>d});var r=n(32735),o=n(20455),i=n(17592);function a(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function l(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function s(e){return null!==e&&e>=0}const c=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=a(t,r,n),l=t[o],s=i[o];return s&&l?{x:s.left-l.left,y:s.top-l.top,scaleX:s.width/l.width,scaleY:s.height/l.height}:null},u={scaleX:1,scaleY:1},d=e=>{var t;let{activeIndex:n,activeNodeRect:r,index:o,rects:i,overIndex:a}=e;const l=null!=(t=i[n])?t:r;if(!l)return null;if(o===n){const e=i[a];return e?{x:0,y:n<a?e.top+e.height-(l.top+l.height):e.top-l.top,...u}:null}const s=function(e,t,n){const r=e[t],o=e[t-1],i=e[t+1];return r?n<t?o?r.top-(o.top+o.height):i?i.top-(r.top+r.height):0:i?i.top-(r.top+r.height):o?r.top-(o.top+o.height):0:0}(i,o,n);return o>n&&o<=a?{x:0,y:-l.height-s,...u}:o<n&&o>=a?{x:0,y:l.height+s,...u}:{x:0,y:0,...u}},f="Sortable",h=r.createContext({activeIndex:-1,containerId:f,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function v(e){let{children:t,id:n,items:a,strategy:s=c,disabled:u=!1}=e;const{active:d,dragOverlay:v,droppableRects:g,over:p,measureDroppableContainers:m,measuringScheduled:b}=(0,o.Cj)(),y=(0,i.Ld)(f,n),w=Boolean(null!==v.rect),x=(0,r.useMemo)((()=>a.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[a]),C=null!=d,E=d?x.indexOf(d.id):-1,R=p?x.indexOf(p.id):-1,D=(0,r.useRef)(x),N=!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}(x,D.current),S=-1!==R&&-1===E||N,I=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(u);(0,i.LI)((()=>{N&&C&&!b&&m(x)}),[N,x,C,m,b]),(0,r.useEffect)((()=>{D.current=x}),[x]);const M=(0,r.useMemo)((()=>({activeIndex:E,containerId:y,disabled:I,disableTransforms:S,items:x,overIndex:R,useDragOverlay:w,sortedRects:l(x,g),strategy:s})),[E,y,I.draggable,I.droppable,S,x,R,g,w,s]);return r.createElement(h.Provider,{value:M},t)}const g=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return a(n,r,o).indexOf(t)},p=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:s,transition:c}=e;return!(!c||!r||l!==i&&o===a||!n&&(a===o||t!==s))},m={duration:200,easing:"ease"},b="transform",y=i.ux.Transition.toString({property:b,duration:0,easing:"linear"}),w={roleDescription:"sortable"};function x(e){let{animateLayoutChanges:t=p,attributes:n,disabled:a,data:l,getNewIndex:c=g,id:u,strategy:d,resizeObserverConfig:f,transition:v=m}=e;const{items:x,containerId:C,activeIndex:E,disabled:R,disableTransforms:D,sortedRects:N,overIndex:S,useDragOverlay:I,strategy:M}=(0,r.useContext)(h),O=function(e,t){var n,r;return"boolean"==typeof e?{draggable:e,droppable:!1}:{draggable:null!=(n=null==e?void 0:e.draggable)?n:t.draggable,droppable:null!=(r=null==e?void 0:e.droppable)?r:t.droppable}}(a,R),k=x.indexOf(u),L=(0,r.useMemo)((()=>({sortable:{containerId:C,index:k,items:x},...l})),[C,l,k,x]),T=(0,r.useMemo)((()=>x.slice(x.indexOf(u))),[x,u]),{rect:P,node:A,isOver:j,setNodeRef:B}=(0,o.Zj)({id:u,data:L,disabled:O.droppable,resizeObserverConfig:{updateMeasurementsFor:T,...f}}),{active:z,activatorEvent:X,activeNodeRect:F,attributes:U,setNodeRef:Y,listeners:J,isDragging:H,over:_,setActivatorNodeRef:q,transform:K}=(0,o.O1)({id:u,data:L,attributes:{...w,...n},disabled:O.draggable}),W=(0,i.HB)(B,Y),G=Boolean(z),V=G&&!D&&s(E)&&s(S),$=!I&&H,Z=$&&V?K:null,Q=V?null!=Z?Z:(null!=d?d:M)({rects:N,activeNodeRect:F,activeIndex:E,overIndex:S,index:k}):null,ee=s(E)&&s(S)?c({id:u,items:x,activeIndex:E,overIndex:S}):k,te=null==z?void 0:z.id,ne=(0,r.useRef)({activeId:te,items:x,newIndex:ee,containerId:C}),re=x!==ne.current.items,oe=t({active:z,containerId:C,isDragging:H,isSorting:G,id:u,index:k,items:x,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:v,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:a,rect:l}=e;const[s,c]=(0,r.useState)(null),u=(0,r.useRef)(n);return(0,i.LI)((()=>{if(!t&&n!==u.current&&a.current){const e=l.current;if(e){const t=(0,o.VK)(a.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)&&c(n)}}n!==u.current&&(u.current=n)}),[t,n,a,l]),(0,r.useEffect)((()=>{s&&requestAnimationFrame((()=>{c(null)}))}),[s]),s}({disabled:!oe,index:k,node:A,rect:P});return(0,r.useEffect)((()=>{G&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),C!==ne.current.containerId&&(ne.current.containerId=C),x!==ne.current.items&&(ne.current.items=x)}),[G,ee,C,x]),(0,r.useEffect)((()=>{if(te===ne.current.activeId)return;if(te&&!ne.current.activeId)return void(ne.current.activeId=te);const e=setTimeout((()=>{ne.current.activeId=te}),50);return()=>clearTimeout(e)}),[te]),{active:z,activeIndex:E,attributes:U,data:L,rect:P,index:k,newIndex:ee,items:x,isOver:j,isSorting:G,isDragging:H,listeners:J,node:A,overIndex:S,over:_,setNodeRef:W,setActivatorNodeRef:q,setDroppableNodeRef:B,setDraggableNodeRef:Y,transform:null!=ie?ie:Q,transition:ie||re&&ne.current.newIndex===k?y:$&&!(0,i.vd)(X)||!v?void 0:G||oe?i.ux.Transition.toString({...v,property:b}):void 0}}function C(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 E=[o.g4.Down,o.g4.Right,o.g4.Up,o.g4.Left],R=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:a,droppableContainers:l,over:s,scrollableAncestors:c}}=t;if(E.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];l.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const i=a.get(n.id);if(i)switch(e.code){case o.g4.Down:r.top<i.top&&t.push(n);break;case o.g4.Up:r.top>i.top&&t.push(n);break;case o.g4.Left:r.left>i.left&&t.push(n);break;case o.g4.Right:r.left<i.left&&t.push(n)}}));const f=(0,o.ey)({active:n,collisionRect:r,droppableRects:a,droppableContainers:t,pointerCoordinates:null});let h=(0,o._8)(f,"id");if(h===(null==s?void 0:s.id)&&f.length>1&&(h=f[1].id),null!=h){const e=l.get(n.id),t=l.get(h),s=t?a.get(t.id):null,f=null==t?void 0:t.node.current;if(f&&s&&e&&t){const n=(0,o.hI)(f).some(((e,t)=>c[t]!==e)),a=D(e,t),l=(d=t,!(!C(u=e)||!C(d))&&!!D(u,d)&&u.data.current.sortable.index<d.data.current.sortable.index),h=n||!a?{x:0,y:0}:{x:l?r.width-s.width:0,y:l?r.height-s.height:0},v={x:s.left,y:s.top};return h.x&&h.y?v:(0,i.$X)(v,h)}}}var u,d};function D(e,t){return!(!C(e)||!C(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},17592:(e,t,n)=>{n.d(t,{$X:()=>R,D9:()=>y,DC:()=>N,Ey:()=>p,FJ:()=>a,Gj:()=>m,HB:()=>o,IH:()=>E,Jj:()=>s,LI:()=>h,Ld:()=>x,Nq:()=>i,Re:()=>u,UG:()=>l,Yz:()=>g,qk:()=>c,r3:()=>f,so:()=>M,ux:()=>S,vZ:()=>d,vd:()=>D,wm:()=>b,zX:()=>v});var r=n(32735);function o(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return(0,r.useMemo)((()=>e=>{t.forEach((t=>t(e)))}),t)}const i="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function a(e){const t=Object.prototype.toString.call(e);return"[object Window]"===t||"[object global]"===t}function l(e){return"nodeType"in e}function s(e){var t,n;return e?a(e)?e:l(e)&&null!=(t=null==(n=e.ownerDocument)?void 0:n.defaultView)?t:window:window}function c(e){const{Document:t}=s(e);return e instanceof t}function u(e){return!a(e)&&e instanceof s(e).HTMLElement}function d(e){return e instanceof s(e).SVGElement}function f(e){return e?a(e)?e.document:l(e)?c(e)?e:u(e)?e.ownerDocument:document:document:document}const h=i?r.useLayoutEffect:r.useEffect;function v(e){const t=(0,r.useRef)(e);return h((()=>{t.current=e})),(0,r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}function g(){const e=(0,r.useRef)(null);return[(0,r.useCallback)(((t,n)=>{e.current=setInterval(t,n)}),[]),(0,r.useCallback)((()=>{null!==e.current&&(clearInterval(e.current),e.current=null)}),[])]}function p(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return h((()=>{n.current!==e&&(n.current=e)}),t),n}function m(e,t){const n=(0,r.useRef)();return(0,r.useMemo)((()=>{const t=e(n.current);return n.current=t,t}),[...t])}function b(e){const t=v(e),n=(0,r.useRef)(null),o=(0,r.useCallback)((e=>{e!==n.current&&(null==t||t(e,n.current)),n.current=e}),[]);return[n,o]}function y(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function x(e,t){return(0,r.useMemo)((()=>{if(t)return t;const n=null==w[e]?0:w[e]+1;return w[e]=n,e+"-"+n}),[e,t])}function C(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.reduce(((t,n)=>{const r=Object.entries(n);for(const[n,o]of r){const r=t[n];null!=r&&(t[n]=r+e*o)}return t}),{...t})}}const E=C(1),R=C(-1);function D(e){if(!e)return!1;const{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function N(e){if(function(e){if(!e)return!1;const{TouchEvent:t}=s(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 S=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[S.Translate.toString(e),S.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),I="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function M(e){return e.matches(I)?e:e.querySelector(I)}},68050:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(40841),o=n.n(r),i=n(32735),a=n(46304),l=n(74512);const s=i.forwardRef((({bsPrefix:e,className:t,as:n="div",...r},i)=>{const s=(0,a.vE)(e,"row"),c=(0,a.pi)(),u=(0,a.zG)(),d=`${s}-cols`,f=[];return c.forEach((e=>{const t=r[e];let n;delete r[e],null!=t&&"object"==typeof t?({cols:n}=t):n=t;const o=e!==u?`-${e}`:"";null!=n&&f.push(`${d}${o}-${n}`)})),(0,l.jsx)(n,{ref:i,...r,className:o()(t,s,...f)})}));s.displayName="Row";const c=s},17082:(e,t,n)=>{n.d(t,{Nq:()=>u,oD:()=>f,t0:()=>d});var r,o=n(32735),i=n(12788),a=(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},r(e,t)},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l="html",s="svg",c=function(e,t){var n,r,o,i={};if(e===l)o=document.createElement("div");else{if(e!==s)throw new Error('Invalid element type "'+e+'" for createPortalNode: must be "html" or "svg".');o=document.createElementNS("http://www.w3.org/2000/svg","g")}if(t&&"object"==typeof t)for(var a=0,c=Object.entries(t.attributes);a<c.length;a++){var u=c[a],d=u[0],f=u[1];o.setAttribute(d,f)}var h={element:o,elementType:e,setPortalProps:function(e){i=e},getInitialPortalProps:function(){return i},mount:function(t,o){if(o!==r){if(h.unmount(),t!==n&&!function(e,t){if(t===l)return e instanceof HTMLElement;if(t===s)return e instanceof SVGElement;throw new Error('Unrecognized element type "'+t+'" for validateElementType.')}(t,e))throw new Error('Invalid element type for portal: "'+e+'" portalNodes must be used with '+e+" elements, but OutPortal is within <"+t.tagName+">.");t.replaceChild(h.element,o),n=t,r=o}},unmount:function(e){e&&e!==r||n&&r&&(n.replaceChild(r,h.element),n=void 0,r=void 0)}};return h},u=function(e){function t(t){var n=e.call(this,t)||this;return n.addPropsChannel=function(){Object.assign(n.props.node,{setPortalProps:function(e){n.setState({nodeProps:e})}})},n.state={nodeProps:n.props.node.getInitialPortalProps()},n}return a(t,e),t.prototype.componentDidMount=function(){this.addPropsChannel()},t.prototype.componentDidUpdate=function(){this.addPropsChannel()},t.prototype.render=function(){var e=this,t=this.props,n=t.children,r=t.node;return i.createPortal(o.Children.map(n,(function(t){return o.isValidElement(t)?o.cloneElement(t,e.state.nodeProps):t})),r.element)},t}(o.PureComponent),d=function(e){function t(t){var n=e.call(this,t)||this;return n.placeholderNode=o.createRef(),n.passPropsThroughPortal(),n}return a(t,e),t.prototype.passPropsThroughPortal=function(){var e=Object.assign({},this.props,{node:void 0});this.props.node.setPortalProps(e)},t.prototype.componentDidMount=function(){var e=this.props.node;this.currentPortalNode=e;var t=this.placeholderNode.current,n=t.parentNode;e.mount(n,t),this.passPropsThroughPortal()},t.prototype.componentDidUpdate=function(){var e=this.props.node;this.currentPortalNode&&e!==this.currentPortalNode&&(this.currentPortalNode.unmount(this.placeholderNode.current),this.currentPortalNode.setPortalProps({}),this.currentPortalNode=e);var t=this.placeholderNode.current,n=t.parentNode;e.mount(n,t),this.passPropsThroughPortal()},t.prototype.componentWillUnmount=function(){var e=this.props.node;e.unmount(this.placeholderNode.current),e.setPortalProps({})},t.prototype.render=function(){return o.createElement("div",{ref:this.placeholderNode})},t}(o.PureComponent),f=c.bind(null,l);c.bind(null,s)}}]);