@clickview/reports 0.17.0 → 0.18.0-rc.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/dist/bundles.json +3 -3
- package/dist/css/{322-reports-ee143a35bf.chunk.css → 322-reports-ebdd3ef21b.chunk.css} +2 -2
- package/dist/css/{342-reports-ff92f48711.chunk.css → 342-reports-f5462dd686.chunk.css} +2 -2
- package/dist/css/{87-reports-f1bc516f51.chunk.css → 87-reports-0d2f3808f0.chunk.css} +2 -2
- package/dist/css/{982-reports-20b65312e3.chunk.css → 982-reports-c7a9434e6e.chunk.css} +2 -2
- package/dist/css/{reports-app-22f631d999.css → reports-app-56d91979fb.css} +2 -2
- package/dist/languages/en.json +1 -1
- package/dist/scripts/112-43ec7ad8c6-reports.chunk.js +1 -0
- package/dist/scripts/128-a156f46519-reports.chunk.js +1 -0
- package/dist/scripts/178-6edb0ff433-reports.chunk.js +1 -0
- package/dist/scripts/192-5b79d9901c-reports.chunk.js +2 -0
- package/dist/scripts/280-31e21a31bd-reports.chunk.js +1 -0
- package/dist/scripts/322-7edcdc15f7-reports.chunk.js +1 -0
- package/dist/scripts/34-495810ab20-reports.chunk.js +1 -0
- package/dist/scripts/342-73942583de-reports.chunk.js +1 -0
- package/dist/scripts/373-4466225919-reports.chunk.js +1 -0
- package/dist/scripts/407-c1ac03fd84-reports.chunk.js +1 -0
- package/dist/scripts/416-f49529be33-reports.chunk.js +1 -0
- package/dist/scripts/432-1ba4a30aad-reports.chunk.js +1 -0
- package/dist/scripts/438-d40c41783b-reports.chunk.js +1 -0
- package/dist/scripts/511-cc48faabb5-reports.chunk.js +1 -0
- package/dist/scripts/523-8063dd1256-reports.chunk.js +1 -0
- package/dist/scripts/53-26ebd13f11-reports.chunk.js +1 -0
- package/dist/scripts/{648-58d1102ee1-reports.chunk.js → 648-6ac9c5547e-reports.chunk.js} +1 -1
- package/dist/scripts/672-db7569032b-reports.chunk.js +1 -0
- package/dist/scripts/760-01ba8f2898-reports.chunk.js +1 -0
- package/dist/scripts/772-82b86684eb-reports.chunk.js +1 -0
- package/dist/scripts/786-3ee49da978-reports.chunk.js +1 -0
- package/dist/scripts/802-a135e3e1aa-reports.chunk.js +1 -0
- package/dist/scripts/806-d9830ec6c4-reports.chunk.js +1 -0
- package/dist/scripts/815-ac541d72bb-reports.chunk.js +1 -0
- package/dist/scripts/837-401575078f-reports.chunk.js +1 -0
- package/dist/scripts/843-9ed39c1416-reports.chunk.js +1 -0
- package/dist/scripts/87-5caaefe1eb-reports.chunk.js +1 -0
- package/dist/scripts/909-e45e5b7d61-reports.chunk.js +1 -0
- package/dist/scripts/912-f71693db07-reports.chunk.js +1 -0
- package/dist/scripts/982-8deeacd6c0-reports.chunk.js +1 -0
- package/dist/scripts/998-23c9f3acd1-reports.chunk.js +2 -0
- package/dist/scripts/bundle-bf30e89cb2.min.js +2 -0
- package/dist/scripts/polyfills-b238fa0237.min.js +1 -0
- package/package.json +4 -5
- package/typings/libs/cloneDeep.d.ts +5 -0
- package/dist/scripts/112-0af8a4839a-reports.chunk.js +0 -1
- package/dist/scripts/128-ed90a14555-reports.chunk.js +0 -1
- package/dist/scripts/178-6ea1b8eea6-reports.chunk.js +0 -1
- package/dist/scripts/192-20342b7f9e-reports.chunk.js +0 -2
- package/dist/scripts/280-fa43dbe91f-reports.chunk.js +0 -1
- package/dist/scripts/322-c3871dcb2c-reports.chunk.js +0 -1
- package/dist/scripts/34-47d1d39fa2-reports.chunk.js +0 -1
- package/dist/scripts/342-03da0740ff-reports.chunk.js +0 -1
- package/dist/scripts/373-08edfb61ae-reports.chunk.js +0 -1
- package/dist/scripts/407-0800f24d9d-reports.chunk.js +0 -1
- package/dist/scripts/416-6987d1ae2e-reports.chunk.js +0 -1
- package/dist/scripts/432-2b14a82c5a-reports.chunk.js +0 -1
- package/dist/scripts/438-c07559cf44-reports.chunk.js +0 -1
- package/dist/scripts/511-b04aaf8cbb-reports.chunk.js +0 -1
- package/dist/scripts/523-c851c65f8a-reports.chunk.js +0 -1
- package/dist/scripts/53-495a83576e-reports.chunk.js +0 -1
- package/dist/scripts/672-dfe741153b-reports.chunk.js +0 -1
- package/dist/scripts/760-ece98a9d6f-reports.chunk.js +0 -1
- package/dist/scripts/772-b32222515f-reports.chunk.js +0 -1
- package/dist/scripts/786-7ae6855346-reports.chunk.js +0 -1
- package/dist/scripts/802-3e21e738f4-reports.chunk.js +0 -1
- package/dist/scripts/806-383ddb76cc-reports.chunk.js +0 -1
- package/dist/scripts/815-3dcec79c50-reports.chunk.js +0 -1
- package/dist/scripts/837-c09d1398b2-reports.chunk.js +0 -1
- package/dist/scripts/843-21390d04dc-reports.chunk.js +0 -1
- package/dist/scripts/87-ead271da80-reports.chunk.js +0 -1
- package/dist/scripts/909-8aa5be659e-reports.chunk.js +0 -1
- package/dist/scripts/912-8e433e74d7-reports.chunk.js +0 -1
- package/dist/scripts/982-64dbf7b567-reports.chunk.js +0 -1
- package/dist/scripts/998-2aa6347e50-reports.chunk.js +0 -2
- package/dist/scripts/bundle-2f6785cc25.min.js +0 -2
- package/dist/scripts/polyfills-e364cbfb62.min.js +0 -1
- /package/dist/scripts/{192-20342b7f9e-reports.chunk.js.LICENSE.txt → 192-5b79d9901c-reports.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{198-fd62920c1e-reports.chunk.js → 198-1295ff1cfa-reports.chunk.js} +0 -0
- /package/dist/scripts/{271-47546270a2-reports.chunk.js → 271-fcad257725-reports.chunk.js} +0 -0
- /package/dist/scripts/{312-1aea78f0de-reports.chunk.js → 312-7f57cd59d0-reports.chunk.js} +0 -0
- /package/dist/scripts/{335-3ff4010b70-reports.chunk.js → 335-454d1b0cc4-reports.chunk.js} +0 -0
- /package/dist/scripts/{647-a3432d56c8-reports.chunk.js → 647-466f68c9bd-reports.chunk.js} +0 -0
- /package/dist/scripts/{925-120ed11cec-reports.chunk.js → 925-417a3d8e1c-reports.chunk.js} +0 -0
- /package/dist/scripts/{998-2aa6347e50-reports.chunk.js.LICENSE.txt → 998-23c9f3acd1-reports.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-2f6785cc25.min.js.LICENSE.txt → bundle-bf30e89cb2.min.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[802],{20455:(e,t,n)=>{"use strict";n.d(t,{LB:()=>qe,y9:()=>dt,g4:()=>re,Lg:()=>se,we:()=>ge,pE:()=>P,ey:()=>B,VK:()=>N,_8:()=>E,hI:()=>L,Cj:()=>$e,O1:()=>Je,Zj:()=>et,VT:()=>m,Dy:()=>y});var r=n(1024),o=n.n(r),i=n(30314),a=n(17592);const l={display:"none"};function s(e){let{id:t,value:n}=e;return o().createElement("div",{id:t,style:l},n)}const u={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 o().createElement("div",{id:t,style:u,role:"status","aria-live":"assertive","aria-atomic":!0},n)}const d=(0,r.createContext)(null),f={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 "},g={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 p(e){let{announcements:t=g,container:n,hiddenTextDescribedById:l,screenReaderInstructions:u=f}=e;const{announce:p,announcement:v}=function(){const[e,t]=(0,r.useState)("");return{announce:(0,r.useCallback)((e=>{null!=e&&t(e)}),[]),announcement:e}}(),h=(0,a.Ld)("DndLiveRegion"),[m,y]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{y(!0)}),[]),function(e){const t=(0,r.useContext)(d);(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;p(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&p(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;p(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;p(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;p(t.onDragCancel({active:n,over:r}))}})),[p,t])),!m)return null;const b=o().createElement(o().Fragment,null,o().createElement(s,{id:l,value:u.draggable}),o().createElement(c,{id:h,announcement:v}));return n?(0,i.createPortal)(b,n):b}var v;function h(){}function m(e,t){return(0,r.useMemo)((()=>({sensor:e,options:null!=t?t:{}})),[e,t])}function y(){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 w(e,t){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function R(e,t){const n=(0,a.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 S(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 E(e,t){if(!e||0===e.length)return null;const[n]=e;return t?n[t]:n}function I(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 P=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=I(t,t.left,t.top),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=w(I(r),o);i.push({id:t,data:{droppableContainer:e,value:n}})}}return i.sort(x)},B=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e;const o=S(t),i=[];for(const e of r){const{id:t}=e,r=n.get(t);if(r){const n=S(r),a=o.reduce(((e,t,r)=>e+w(n[r],t)),0),l=Number((a/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:l}})}}return i.sort(x)};function D(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 k=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=D(i,t);n>0&&o.push({id:r,data:{droppableContainer:e,value:n}})}}return o.sort(C)};function A(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:b}function O(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 F=O(1);function M(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 T={ignoreTransform:!1};function N(e,t){void 0===t&&(t=T);let n=e.getBoundingClientRect();if(t.ignoreTransform){const{getComputedStyle:t}=(0,a.Jj)(e),{transform:r,transformOrigin:o}=t(e);r&&(n=function(e,t,n){const r=M(t);if(!r)return e;const{scaleX:o,scaleY:i,x:a,y:l}=r,s=e.left-a-(1-o)*parseFloat(n),u=e.top-l-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=o?e.width/o:e.width,d=i?e.height/i:e.height;return{width:c,height:d,top:u,right:s+c,bottom:u+d,left:s}}(n,r,o))}const{top:r,left:o,width:i,height:l,bottom:s,right:u}=n;return{top:r,left:o,width:i,height:l,bottom:s,right:u}}function G(e){return N(e,{ignoreTransform:!0})}function L(e,t){const n=[];return e?function r(o){if(null!=t&&n.length>=t)return n;if(!o)return n;if((0,a.qk)(o)&&null!=o.scrollingElement&&!n.includes(o.scrollingElement))return n.push(o.scrollingElement),n;if(!(0,a.Re)(o)||(0,a.vZ)(o))return n;if(n.includes(o))return n;const{getComputedStyle:i}=(0,a.Jj)(o),l=i(o);return o!==e&&function(e,t){void 0===t&&(t=(0,a.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,a.Jj)(e).getComputedStyle(e)),"fixed"===t.position}(o,l)?n:r(o.parentNode)}(e):n}function z(e){const[t]=L(e,1);return null!=t?t:null}function H(e){return a.Nq&&e?(0,a.FJ)(e)?e:(0,a.UG)(e)?(0,a.qk)(e)||e===(0,a.r3)(e).scrollingElement?window:(0,a.Re)(e)?e:null:null:null}function j(e){return(0,a.FJ)(e)?e.scrollX:e.scrollLeft}function W(e){return(0,a.FJ)(e)?e.scrollY:e.scrollTop}function V(e){return{x:j(e),y:W(e)}}var X;function _(e){return!(!a.Nq||!e)&&e===document.scrollingElement}function q(e){const t={x:0,y:0},n=_(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"}(X||(X={}));const U={x:.2,y:.2};function Y(e,t,n,r,o){let{top:i,left:a,right:l,bottom:s}=n;void 0===r&&(r=10),void 0===o&&(o=U);const{isTop:u,isBottom:c,isLeft:d,isRight:f}=q(e),g={x:0,y:0},p={x:0,y:0},v=t.height*o.y,h=t.width*o.x;return!u&&i<=t.top+v?(g.y=X.Backward,p.y=r*Math.abs((t.top+v-i)/v)):!c&&s>=t.bottom-v&&(g.y=X.Forward,p.y=r*Math.abs((t.bottom-v-s)/v)),!f&&l>=t.right-h?(g.x=X.Forward,p.x=r*Math.abs((t.right-h-l)/h)):!d&&a<=t.left+h&&(g.x=X.Backward,p.x=r*Math.abs((t.left+h-a)/h)),{direction:g,speed:p}}function K(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 J(e){return e.reduce(((e,t)=>(0,a.IH)(e,V(t))),b)}function $(e,t){if(void 0===t&&(t=N),!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 Z=[["x",["left","right"],function(e){return e.reduce(((e,t)=>e+j(t)),0)}],["y",["top","bottom"],function(e){return e.reduce(((e,t)=>e+W(t)),0)}]];class Q{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=L(t),r=J(n);this.rect={...e},this.width=e.width,this.height=e.height;for(const[e,t,o]of Z)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 ee{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 te(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 ne,re;function oe(e){e.preventDefault()}function ie(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"}(ne||(ne={})),function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter"}(re||(re={}));const ae={start:[re.Space,re.Enter],cancel:[re.Esc],end:[re.Space,re.Enter]},le=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case re.Right:return{...n,x:n.x+25};case re.Left:return{...n,x:n.x-25};case re.Down:return{...n,y:n.y+25};case re.Up:return{...n,y:n.y-25}}};class se{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 ee((0,a.r3)(t)),this.windowListeners=new ee((0,a.Jj)(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(ne.Resize,this.handleCancel),this.windowListeners.add(ne.VisibilityChange,this.handleCancel),setTimeout((()=>this.listeners.add(ne.Keydown,this.handleKeyDown)))}handleStart(){const{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&$(n),t(b)}handleKeyDown(e){if((0,a.vd)(e)){const{active:t,context:n,options:r}=this.props,{keyboardCodes:o=ae,coordinateGetter:i=le,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:u}=n.current,c=u?{x:u.left,y:u.top}:b;this.referenceCoordinates||(this.referenceCoordinates=c);const d=i(e,{active:t,context:n.current,currentCoordinates:c});if(d){const t=(0,a.$X)(d,c),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:u,maxScroll:c,minScroll:f}=q(n),g=K(n),p={x:Math.min(o===re.Right?g.right-g.width/2:g.right,Math.max(o===re.Right?g.left:g.left+g.width/2,d.x)),y:Math.min(o===re.Down?g.bottom-g.height/2:g.bottom,Math.max(o===re.Down?g.top:g.top+g.height/2,d.y))},v=o===re.Right&&!a||o===re.Left&&!s,h=o===re.Down&&!u||o===re.Up&&!i;if(v&&p.x!==d.x){const e=n.scrollLeft+t.x,i=o===re.Right&&e<=c.x||o===re.Left&&e>=f.x;if(i&&!t.y)return void n.scrollTo({left:e,behavior:l});r.x=i?n.scrollLeft-e:o===re.Right?n.scrollLeft-c.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:l});break}if(h&&p.y!==d.y){const e=n.scrollTop+t.y,i=o===re.Down&&e<=c.y||o===re.Up&&e>=f.y;if(i&&!t.x)return void n.scrollTo({top:e,behavior:l});r.y=i?n.scrollTop-e:o===re.Down?n.scrollTop-c.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:l});break}}this.handleMove(e,(0,a.IH)((0,a.$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 ue(e){return Boolean(e&&"distance"in e)}function ce(e){return Boolean(e&&"delay"in e)}se.activators=[{eventName:"onKeyDown",handler:(e,t,n)=>{let{keyboardCodes:r=ae,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 de{constructor(e,t,n){var r;void 0===n&&(n=function(e){const{EventTarget:t}=(0,a.Jj)(e);return e instanceof t?e:(0,a.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:i}=o;this.props=e,this.events=t,this.document=(0,a.r3)(i),this.documentListeners=new ee(this.document),this.listeners=new ee(n),this.windowListeners=new ee((0,a.Jj)(i)),this.initialCoordinates=null!=(r=(0,a.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(ne.Resize,this.handleCancel),this.windowListeners.add(ne.DragStart,oe),this.windowListeners.add(ne.VisibilityChange,this.handleCancel),this.windowListeners.add(ne.ContextMenu,oe),this.documentListeners.add(ne.Keydown,this.handleKeydown),t){if(ue(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(ne.Click,ie,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(ne.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){var t;const{activated:n,initialCoordinates:r,props:o}=this,{onMove:i,options:{activationConstraint:l}}=o;if(!r)return;const s=null!=(t=(0,a.DC)(e))?t:b,u=(0,a.$X)(r,s);if(!n&&l){if(ce(l))return te(u,l.tolerance)?this.handleCancel():void 0;if(ue(l))return null!=l.tolerance&&te(u,l.tolerance)?this.handleCancel():te(u,l.distance)?this.handleStart():void 0}e.cancelable&&e.preventDefault(),i(s)}handleEnd(){const{onEnd:e}=this.props;this.detach(),e()}handleCancel(){const{onCancel:e}=this.props;this.detach(),e()}handleKeydown(e){e.code===re.Esc&&this.handleCancel()}removeTextSelection(){var e;null==(e=this.document.getSelection())||e.removeAllRanges()}}const fe={move:{name:"pointermove"},end:{name:"pointerup"}};class ge extends de{constructor(e){const{event:t}=e,n=(0,a.r3)(t.target);super(e,fe,n)}}ge.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 pe={move:{name:"mousemove"},end:{name:"mouseup"}};var ve;!function(e){e[e.RightClick=2]="RightClick"}(ve||(ve={})),class extends de{constructor(e){super(e,pe,(0,a.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 he={move:{name:"touchmove"},end:{name:"touchend"}};var me,ye;(class extends de{constructor(e){super(e,he)}static setup(){return window.addEventListener(he.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(he.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"}(me||(me={})),function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"}(ye||(ye={}));const be={x:{[X.Backward]:!1,[X.Forward]:!1},y:{[X.Backward]:!1,[X.Forward]:!1}};var we,Re;!function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"}(we||(we={})),function(e){e.Optimized="optimized"}(Re||(Re={}));const xe=new Map;function Ce(e,t){return(0,a.Gj)((n=>e?n||("function"==typeof t?t(e):e):null),[t,e])}function Se(e){let{callback:t,disabled:n}=e;const o=(0,a.zX)(t),i=(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==i?void 0:i.disconnect()),[i]),i}function Ee(e){return new Q(N(e),e)}function Ie(e,t,n){void 0===t&&(t=Ee);const[o,i]=(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,a.zX)(t),i=(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==i?void 0:i.disconnect()),[i]),i}({callback(t){if(e)for(const n of t){const{type:t,target:r}=n;if("childList"===t&&r instanceof HTMLElement&&r.contains(e)){i();break}}}}),s=Se({callback:i});return(0,a.LI)((()=>{i(),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 Pe=[];function Be(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,a.$X)(e,n.current):b}function De(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 ke=[];function Ae(e){if(!e)return null;if(e.children.length>1)return e;const t=e.children[0];return(0,a.Re)(t)?t:e}const Oe=[{sensor:ge,options:{}},{sensor:se,options:{}}],Fe={current:{}},Me={draggable:{measure:G},droppable:{measure:G,strategy:we.WhileDragging,frequency:Re.Optimized},dragOverlay:{measure:N}};class Te 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 Ne={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Te,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:h},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Me,measureDroppableContainers:h,windowRect:null,measuringScheduled:!1},Ge={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:h,draggableNodes:new Map,over:null,measureDroppableContainers:h},Le=(0,r.createContext)(Ge),ze=(0,r.createContext)(Ne);function He(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Te}}}function je(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 Te(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 Te(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 Te(e.droppable.containers);return i.delete(n),{...e,droppable:{...e.droppable,containers:i}}}default:return e}}function We(e){let{disabled:t}=e;const{active:n,activatorEvent:o,draggableNodes:i}=(0,r.useContext)(Le),l=(0,a.D9)(o),s=(0,a.D9)(null==n?void 0:n.id);return(0,r.useEffect)((()=>{if(!t&&!o&&l&&null!=s){if(!(0,a.vd)(l))return;if(document.activeElement===l.target)return;const e=i.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,a.so)(e);if(t){t.focus();break}}}))}}),[o,t,i,s,l]),null}function Ve(e,t){let{transform:n,...r}=t;return null!=e&&e.length?e.reduce(((e,t)=>t({transform:e,...r})),n):n}const Xe=(0,r.createContext)({...b,scaleX:1,scaleY:1});var _e;!function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"}(_e||(_e={}));const qe=(0,r.memo)((function(e){var t,n,l,s;let{id:u,accessibility:c,autoScroll:f=!0,children:g,sensors:h=Oe,collisionDetection:m=k,measuring:y,modifiers:w,...R}=e;const x=(0,r.useReducer)(je,void 0,He),[C,S]=x,[I,P]=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]}(),[B,D]=(0,r.useState)(_e.Uninitialized),O=B===_e.Initialized,{draggable:{active:M,nodes:T,translate:G},droppable:{containers:j}}=C,W=M?T.get(M):null,q=(0,r.useRef)({initial:null,translated:null}),U=(0,r.useMemo)((()=>{var e;return null!=M?{id:M,data:null!=(e=null==W?void 0:W.data)?e:Fe,rect:q}:null}),[M,W]),K=(0,r.useRef)(null),[$,Z]=(0,r.useState)(null),[ee,te]=(0,r.useState)(null),ne=(0,a.Ey)(R,Object.values(R)),re=(0,a.Ld)("DndDescribedBy",u),oe=(0,r.useMemo)((()=>j.getEnabled()),[j]),ie=(ae=y,(0,r.useMemo)((()=>({draggable:{...Me.draggable,...null==ae?void 0:ae.draggable},droppable:{...Me.droppable,...null==ae?void 0:ae.droppable},dragOverlay:{...Me.dragOverlay,...null==ae?void 0:ae.dragOverlay}})),[null==ae?void 0:ae.draggable,null==ae?void 0:ae.droppable,null==ae?void 0:ae.dragOverlay]));var ae;const{droppableRects:le,measureDroppableContainers:se,measuringScheduled:ue}=function(e,t){let{dragging:n,dependencies:o,config:i}=t;const[l,s]=(0,r.useState)(null),u=null!=l,{frequency:c,measure:d,strategy:f}=i,g=(0,r.useRef)(e),p=function(){switch(f){case we.Always:return!1;case we.BeforeDragging:return n;default:return!n}}(),v=(0,a.Ey)(p),h=(0,r.useCallback)((function(e){void 0===e&&(e=[]),v.current||s((t=>t?t.concat(e):e))}),[v]),m=(0,r.useRef)(null),y=(0,a.Gj)((t=>{if(p&&!n)return xe;const r=l;if(!t||t===xe||g.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 Q(d(e),e):null;n.rect.current=o,o&&t.set(n.id,o)}return t}return t}),[e,l,n,p,d]);return(0,r.useEffect)((()=>{g.current=e}),[e]),(0,r.useEffect)((()=>{p||requestAnimationFrame((()=>h()))}),[n,p]),(0,r.useEffect)((()=>{u&&s(null)}),[u]),(0,r.useEffect)((()=>{p||"number"!=typeof c||null!==m.current||(m.current=setTimeout((()=>{h(),m.current=null}),c))}),[c,p,h,...o]),{droppableRects:y,measureDroppableContainers:h,measuringScheduled:u}}(oe,{dragging:O,dependencies:[G.x,G.y],config:ie.droppable}),ce=function(e,t){const n=null!==t?e.get(t):void 0,r=n?n.node.current:null;return(0,a.Gj)((e=>{var n;return null===t?null:null!=(n=null!=r?r:e)?n:null}),[r,t])}(T,M),de=(0,r.useMemo)((()=>ee?(0,a.DC)(ee):null),[ee]),fe=function(){const e=!1===(null==$?void 0:$.autoScrollEnabled),t="object"==typeof f?!1===f.enabled:!1===f,n=O&&!e&&!t;return"object"==typeof f?{...f,enabled:n}:{enabled:n}}(),ge=function(e,t){return Ce(e,t)}(ce,ie.draggable.measure);!function(e){let{activeNode:t,measure:n,initialRect:o,config:i=!0}=e;const l=(0,r.useRef)(!1),{x:s,y:u}="boolean"==typeof i?{x:i,y:i}:i;(0,a.LI)((()=>{if(!s&&!u||!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=A(n(e),o);if(s||(r.x=0),u||(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,u,o,n])}({activeNode:M?T.get(M):null,config:fe.layoutShiftCompensation,initialRect:ge,measure:ie.draggable.measure});const pe=Ie(ce,ie.draggable.measure,ge),ve=Ie(ce?ce.parentElement:null),he=(0,r.useRef)({activatorEvent:null,active:null,activeNode:ce,collisionRect:null,collisions:null,droppableRects:le,draggableNodes:T,draggingNode:null,draggingNodeRect:null,droppableContainers:j,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Re=j.getNodeFor(null==(t=he.current.over)?void 0:t.id),Ee=function(e){let{measure:t}=e;const[n,o]=(0,r.useState)(null),i=Se({callback:(0,r.useCallback)((e=>{for(const{target:n}of e)if((0,a.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=Ae(e);null==i||i.disconnect(),n&&(null==i||i.observe(n)),o(n?t(n):null)}),[t,i]),[s,u]=(0,a.wm)(l);return(0,r.useMemo)((()=>({nodeRef:s,rect:n,setRef:u})),[n,s,u])}({measure:ie.dragOverlay.measure}),Te=null!=(n=Ee.nodeRef.current)?n:ce,Ne=O?null!=(l=Ee.rect)?l:pe:null,Ge=Boolean(Ee.nodeRef.current&&Ee.rect),qe=A(Ue=Ge?null:pe,Ce(Ue));var Ue;const Ye=De(Te?(0,a.Jj)(Te):null),Ke=function(e){const t=(0,r.useRef)(e),n=(0,a.Gj)((n=>e?n&&n!==Pe&&e&&t.current&&e.parentNode===t.current.parentNode?n:L(e):Pe),[e]);return(0,r.useEffect)((()=>{t.current=e}),[e]),n}(O?null!=Re?Re:ce:null),Je=function(e,t){void 0===t&&(t=N);const[n]=e,o=De(n?(0,a.Jj)(n):null),[i,l]=(0,r.useReducer)((function(){return e.length?e.map((e=>_(e)?o:new Q(t(e),e))):ke}),ke),s=Se({callback:l});return e.length>0&&i===ke&&l(),(0,a.LI)((()=>{e.length?e.forEach((e=>null==s?void 0:s.observe(e))):(null==s||s.disconnect(),l())}),[e]),i}(Ke),$e=Ve(w,{transform:{x:G.x-qe.x,y:G.y-qe.y,scaleX:1,scaleY:1},activatorEvent:ee,active:U,activeNodeRect:pe,containerNodeRect:ve,draggingNodeRect:Ne,over:he.current.over,overlayNodeRect:Ee.rect,scrollableAncestors:Ke,scrollableAncestorRects:Je,windowRect:Ye}),Ze=de?(0,a.IH)(de,G):null,Qe=function(e){const[t,n]=(0,r.useState)(null),o=(0,r.useRef)(e),i=(0,r.useCallback)((e=>{const t=H(e.target);t&&n((e=>e?(e.set(t,V(t)),new Map(e)):null))}),[]);return(0,r.useEffect)((()=>{const t=o.current;if(e!==t){r(t);const a=e.map((e=>{const t=H(e);return t?(t.addEventListener("scroll",i,{passive:!0}),[t,V(t)]):null})).filter((e=>null!=e));n(a.length?new Map(a):null),o.current=e}return()=>{r(e),r(t)};function r(e){e.forEach((e=>{const t=H(e);null==t||t.removeEventListener("scroll",i)}))}}),[i,e]),(0,r.useMemo)((()=>e.length?t?Array.from(t.values()).reduce(((e,t)=>(0,a.IH)(e,t)),b):J(e):b),[e,t])}(Ke),et=Be(Qe),tt=Be(Qe,[pe]),nt=(0,a.IH)($e,et),rt=Ne?F(Ne,$e):null,ot=U&&rt?m({active:U,collisionRect:rt,droppableRects:le,droppableContainers:oe,pointerCoordinates:Ze}):null,it=E(ot,"id"),[at,lt]=(0,r.useState)(null),st=function(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}(Ge?$e:(0,a.IH)($e,tt),null!=(s=null==at?void 0:at.rect)?s:null,pe),ut=(0,r.useCallback)(((e,t)=>{let{sensor:n,options:r}=t;if(null==K.current)return;const o=T.get(K.current);if(!o)return;const a=e.nativeEvent,l=new n({active:K.current,activeNode:o,event:a,options:r,context:he,onStart(e){const t=K.current;if(null==t)return;const n=T.get(t);if(!n)return;const{onDragStart:r}=ne.current,o={active:{id:t,data:n.data,rect:q}};(0,i.unstable_batchedUpdates)((()=>{null==r||r(o),D(_e.Initializing),S({type:v.DragStart,initialCoordinates:e,active:t}),I({type:"onDragStart",event:o})}))},onMove(e){S({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:o}=he.current;let l=null;if(t&&o){const{cancelDrop:i}=ne.current;l={activatorEvent:a,active:t,collisions:n,delta:o,over:r},e===v.DragEnd&&"function"==typeof i&&await Promise.resolve(i(l))&&(e=v.DragCancel)}K.current=null,(0,i.unstable_batchedUpdates)((()=>{S({type:e}),D(_e.Uninitialized),lt(null),Z(null),te(null);const t=e===v.DragEnd?"onDragEnd":"onDragCancel";if(l){const e=ne.current[t];null==e||e(l),I({type:t,event:l})}}))}}(0,i.unstable_batchedUpdates)((()=>{Z(l),te(e.nativeEvent)}))}),[T]),ct=(0,r.useCallback)(((e,t)=>(n,r)=>{const o=n.nativeEvent,i=T.get(r);if(null!==K.current||!i||o.dndKit||o.defaultPrevented)return;const a={active:i};!0===e(n,t.options,a)&&(o.dndKit={capturedBy:t.sensor},K.current=r,ut(n,t))}),[T,ut]),dt=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])}(h,ct);!function(e){(0,r.useEffect)((()=>{if(!a.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})))}(h),(0,a.LI)((()=>{pe&&B===_e.Initializing&&D(_e.Initialized)}),[pe,B]),(0,r.useEffect)((()=>{const{onDragMove:e}=ne.current,{active:t,activatorEvent:n,collisions:r,over:o}=he.current;if(!t||!n)return;const a={active:t,activatorEvent:n,collisions:r,delta:{x:nt.x,y:nt.y},over:o};(0,i.unstable_batchedUpdates)((()=>{null==e||e(a),I({type:"onDragMove",event:a})}))}),[nt.x,nt.y]),(0,r.useEffect)((()=>{const{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:o}=he.current;if(!e||null==K.current||!t||!o)return;const{onDragOver:a}=ne.current,l=r.get(it),s=l&&l.rect.current?{id:l.id,rect:l.rect.current,data:l.data,disabled:l.disabled}:null,u={active:e,activatorEvent:t,collisions:n,delta:{x:o.x,y:o.y},over:s};(0,i.unstable_batchedUpdates)((()=>{lt(s),null==a||a(u),I({type:"onDragOver",event:u})}))}),[it]),(0,a.LI)((()=>{he.current={activatorEvent:ee,active:U,activeNode:ce,collisionRect:rt,collisions:ot,droppableRects:le,draggableNodes:T,draggingNode:Te,draggingNodeRect:Ne,droppableContainers:j,over:at,scrollableAncestors:Ke,scrollAdjustedTranslate:nt},q.current={initial:Ne,translated:rt}}),[U,ce,ot,rt,T,Te,Ne,le,j,at,Ke,nt]),function(e){let{acceleration:t,activator:n=me.Pointer,canScroll:o,draggingRect:i,enabled:l,interval:s=5,order:u=ye.TreeOrder,pointerCoordinates:c,scrollableAncestors:d,scrollableAncestorRects:f,delta:g,threshold:p}=e;const v=function(e){let{delta:t,disabled:n}=e;const r=(0,a.D9)(t);return(0,a.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:{[X.Backward]:e.x[X.Backward]||-1===o,[X.Forward]:e.x[X.Forward]||1===o},y:{[X.Backward]:e.y[X.Backward]||-1===i,[X.Forward]:e.y[X.Forward]||1===i}}}),[n,t,r])}({delta:g,disabled:!l}),[h,m]=(0,a.Yz)(),y=(0,r.useRef)({x:0,y:0}),b=(0,r.useRef)({x:0,y:0}),w=(0,r.useMemo)((()=>{switch(n){case me.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case me.DraggableRect:return i}}),[n,i,c]),R=(0,r.useRef)(null),x=(0,r.useCallback)((()=>{const e=R.current;if(!e)return;const t=y.current.x*b.current.x,n=y.current.y*b.current.y;e.scrollBy(t,n)}),[]),C=(0,r.useMemo)((()=>u===ye.TreeOrder?[...d].reverse():d),[u,d]);(0,r.useEffect)((()=>{if(l&&d.length&&w){for(const e of C){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}=Y(e,r,w,t,p);for(const e of["x","y"])v[e][i[e]]||(a[e]=0,i[e]=0);if(a.x>0||a.y>0)return m(),R.current=e,h(x,s),y.current=a,void(b.current=i)}y.current={x:0,y:0},b.current={x:0,y:0},m()}else m()}),[t,x,o,m,l,s,JSON.stringify(w),JSON.stringify(v),h,d,C,f,JSON.stringify(p)])}({...fe,delta:G,draggingRect:rt,pointerCoordinates:Ze,scrollableAncestors:Ke,scrollableAncestorRects:Je});const ft=(0,r.useMemo)((()=>({active:U,activeNode:ce,activeNodeRect:pe,activatorEvent:ee,collisions:ot,containerNodeRect:ve,dragOverlay:Ee,draggableNodes:T,droppableContainers:j,droppableRects:le,over:at,measureDroppableContainers:se,scrollableAncestors:Ke,scrollableAncestorRects:Je,measuringConfiguration:ie,measuringScheduled:ue,windowRect:Ye})),[U,ce,pe,ee,ot,ve,Ee,T,j,le,at,se,Ke,Je,ie,ue,Ye]),gt=(0,r.useMemo)((()=>({activatorEvent:ee,activators:dt,active:U,activeNodeRect:pe,ariaDescribedById:{draggable:re},dispatch:S,draggableNodes:T,over:at,measureDroppableContainers:se})),[ee,dt,U,pe,S,re,T,at,se]);return o().createElement(d.Provider,{value:P},o().createElement(Le.Provider,{value:gt},o().createElement(ze.Provider,{value:ft},o().createElement(Xe.Provider,{value:st},g)),o().createElement(We,{disabled:!1===(null==c?void 0:c.restoreFocus)})),o().createElement(p,{...c,hiddenTextDescribedById:re}))})),Ue=(0,r.createContext)(null),Ye="button",Ke="Droppable";function Je(e){let{id:t,data:n,disabled:o=!1,attributes:i}=e;const l=(0,a.Ld)(Ke),{activators:s,activatorEvent:u,active:c,activeNodeRect:d,ariaDescribedById:f,draggableNodes:g,over:p}=(0,r.useContext)(Le),{role:v=Ye,roleDescription:h="draggable",tabIndex:m=0}=null!=i?i:{},y=(null==c?void 0:c.id)===t,b=(0,r.useContext)(y?Xe:Ue),[w,R]=(0,a.wm)(),[x,C]=(0,a.wm)(),S=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),E=(0,a.Ey)(n);return(0,a.LI)((()=>(g.set(t,{id:t,key:l,node:w,activatorNode:x,data:E}),()=>{const e=g.get(t);e&&e.key===l&&g.delete(t)})),[g,t]),{active:c,activatorEvent:u,activeNodeRect:d,attributes:(0,r.useMemo)((()=>({role:v,tabIndex:m,"aria-disabled":o,"aria-pressed":!(!y||v!==Ye)||void 0,"aria-roledescription":h,"aria-describedby":f.draggable})),[o,v,m,y,h,f.draggable]),isDragging:y,listeners:o?void 0:S,node:w,over:p,setNodeRef:R,setActivatorNodeRef:C,transform:b}}function $e(){return(0,r.useContext)(ze)}const Ze="Droppable",Qe={timeout:25};function et(e){let{data:t,disabled:n=!1,id:o,resizeObserverConfig:i}=e;const l=(0,a.Ld)(Ze),{active:s,dispatch:u,over:c,measureDroppableContainers:d}=(0,r.useContext)(Le),f=(0,r.useRef)({disabled:n}),g=(0,r.useRef)(!1),p=(0,r.useRef)(null),h=(0,r.useRef)(null),{disabled:m,updateMeasurementsFor:y,timeout:b}={...Qe,...i},w=(0,a.Ey)(null!=y?y:o),R=Se({callback:(0,r.useCallback)((()=>{g.current?(null!=h.current&&clearTimeout(h.current),h.current=setTimeout((()=>{d(Array.isArray(w.current)?w.current:[w.current]),h.current=null}),b)):g.current=!0}),[b]),disabled:m||!s}),x=(0,r.useCallback)(((e,t)=>{R&&(t&&(R.unobserve(t),g.current=!1),e&&R.observe(e))}),[R]),[C,S]=(0,a.wm)(x),E=(0,a.Ey)(t);return(0,r.useEffect)((()=>{R&&C.current&&(R.disconnect(),g.current=!1,R.observe(C.current))}),[C,R]),(0,a.LI)((()=>(u({type:v.RegisterDroppable,element:{id:o,key:l,disabled:n,node:C,rect:p,data:E}}),()=>u({type:v.UnregisterDroppable,key:l,id:o}))),[o]),(0,r.useEffect)((()=>{n!==f.current.disabled&&(u({type:v.SetDroppableDisabled,id:o,key:l,disabled:n}),f.current.disabled=n)}),[o,l,n,u]),{active:s,rect:p,isOver:(null==c?void 0:c.id)===o,node:C,over:c,setNodeRef:S}}function tt(e){let{animation:t,children:n}=e;const[i,l]=(0,r.useState)(null),[s,u]=(0,r.useState)(null),c=(0,a.D9)(n);return n||i||!c||l(c),(0,a.LI)((()=>{if(!s)return;const e=null==i?void 0:i.key,n=null==i?void 0:i.props.id;null!=e&&null!=n?Promise.resolve(t(n,s)).then((()=>{l(null)})):l(null)}),[t,i,s]),o().createElement(o().Fragment,null,n,i?(0,r.cloneElement)(i,{ref:u}):null)}const nt={x:0,y:0,scaleX:1,scaleY:1};function rt(e){let{children:t}=e;return o().createElement(Le.Provider,{value:Ge},o().createElement(Xe.Provider,{value:nt},t))}const ot={position:"fixed",touchAction:"none"},it=e=>(0,a.vd)(e)?"transform 250ms ease":void 0,at=(0,r.forwardRef)(((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:l,className:s,rect:u,style:c,transform:d,transition:f=it}=e;if(!u)return null;const g=i?d:{...d,scaleX:1,scaleY:1},p={...ot,width:u.width,height:u.height,top:u.top,left:u.left,transform:a.ux.Transform.toString(g),transformOrigin:i&&r?R(r,u):void 0,transition:"function"==typeof f?f(r):f,...c};return o().createElement(n,{className:s,style:p,ref:t},l)})),lt=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)}},st={duration:250,easing:"ease",keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:a.ux.Transform.toString(t)},{transform:a.ux.Transform.toString(n)}]},sideEffects:lt({styles:{active:{opacity:"0"}}})};let ut=0;function ct(e){return(0,r.useMemo)((()=>{if(null!=e)return ut++,ut}),[e])}const dt=o().memo((e=>{let{adjustScale:t=!1,children:n,dropAnimation:i,style:l,transition:s,modifiers:u,wrapperElement:c="div",className:d,zIndex:f=999}=e;const{activatorEvent:g,active:p,activeNodeRect:v,containerNodeRect:h,draggableNodes:m,droppableContainers:y,dragOverlay:b,over:w,measuringConfiguration:R,scrollableAncestors:x,scrollableAncestorRects:C,windowRect:S}=$e(),E=(0,r.useContext)(Xe),I=ct(null==p?void 0:p.id),P=Ve(u,{activatorEvent:g,active:p,activeNodeRect:v,containerNodeRect:h,draggingNodeRect:b.rect,over:w,overlayNodeRect:b.rect,scrollableAncestors:x,scrollableAncestorRects:C,transform:E,windowRect:S}),B=Ce(v),D=function(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:o}=e;return(0,a.zX)(((e,i)=>{if(null===t)return;const l=n.get(e);if(!l)return;const s=l.node.current;if(!s)return;const u=Ae(i);if(!u)return;const{transform:c}=(0,a.Jj)(i).getComputedStyle(i),d=M(c);if(!d)return;const f="function"==typeof t?t:function(e){const{duration:t,easing:n,sideEffects:r,keyframes:o}={...st,...e};return e=>{let{active:i,dragOverlay:a,transform:l,...s}=e;if(!t)return;const u=a.rect.left-i.rect.left,c=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-u,y:l.y-c,...d},g=o({...s,active:i,dragOverlay:a,transform:{initial:l,final:f}}),[p]=g,v=g[g.length-1];if(JSON.stringify(p)===JSON.stringify(v))return;const h=null==r?void 0:r({active:i,dragOverlay:a,...s}),m=a.node.animate(g,{duration:t,easing:n,fill:"forwards"});return new Promise((e=>{m.onfinish=()=>{null==h||h(),e()}}))}}(t);return $(s,o.draggable.measure),f({active:{id:e,data:l.data,node:s,rect:o.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:i,rect:o.dragOverlay.measure(u)},droppableContainers:r,measuringConfiguration:o,transform:d})}))}({config:i,draggableNodes:m,droppableContainers:y,measuringConfiguration:R}),k=B?b.setRef:void 0;return o().createElement(rt,null,o().createElement(tt,{animation:D},p&&I?o().createElement(at,{key:I,id:p.id,ref:k,as:c,activatorEvent:g,adjustScale:t,className:d,transition:s,rect:B,style:{zIndex:f,...l},transform:P},n):null))}))},95339:(e,t,n)=>{"use strict";n.d(t,{DL:()=>r}),n(17592);const r=({transform:e})=>({...e,x:0})},67445:(e,t,n)=>{"use strict";n.d(t,{Fo:()=>v,U2:()=>c,is:()=>E,nB:()=>x,qw:()=>f});var r=n(1024),o=n.n(r),i=n(20455),a=n(17592);function l(e,t,n){const r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function s(e,t){return e.reduce(((e,n,r)=>{const o=t.get(n);return o&&(e[r]=o),e}),Array(e.length))}function u(e){return null!==e&&e>=0}const c=e=>{let{rects:t,activeIndex:n,overIndex:r,index:o}=e;const i=l(t,r,n),a=t[o],s=i[o];return s&&a?{x:s.left-a.left,y:s.top-a.top,scaleX:s.width/a.width,scaleY:s.height/a.height}:null},d={scaleX:1,scaleY:1},f=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,...d}: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,...d}:o<n&&o>=a?{x:0,y:l.height+s,...d}:{x:0,y:0,...d}},g="Sortable",p=o().createContext({activeIndex:-1,containerId:g,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:c,disabled:{draggable:!1,droppable:!1}});function v(e){let{children:t,id:n,items:l,strategy:u=c,disabled:d=!1}=e;const{active:f,dragOverlay:v,droppableRects:h,over:m,measureDroppableContainers:y,measuringScheduled:b}=(0,i.Cj)(),w=(0,a.Ld)(g,n),R=Boolean(null!==v.rect),x=(0,r.useMemo)((()=>l.map((e=>"object"==typeof e&&"id"in e?e.id:e))),[l]),C=null!=f,S=f?x.indexOf(f.id):-1,E=m?x.indexOf(m.id):-1,I=(0,r.useRef)(x),P=!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,I.current),B=-1!==E&&-1===S||P,D=function(e){return"boolean"==typeof e?{draggable:e,droppable:e}:e}(d);(0,a.LI)((()=>{P&&C&&!b&&y(x)}),[P,x,C,y,b]),(0,r.useEffect)((()=>{I.current=x}),[x]);const k=(0,r.useMemo)((()=>({activeIndex:S,containerId:w,disabled:D,disableTransforms:B,items:x,overIndex:E,useDragOverlay:R,sortedRects:s(x,h),strategy:u})),[S,w,D.draggable,D.droppable,B,x,E,h,R,u]);return o().createElement(p.Provider,{value:k},t)}const h=e=>{let{id:t,items:n,activeIndex:r,overIndex:o}=e;return l(n,r,o).indexOf(t)},m=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:o,items:i,newIndex:a,previousItems:l,previousContainerId:s,transition:u}=e;return!(!u||!r||l!==i&&o===a||!n&&(a===o||t!==s))},y={duration:200,easing:"ease"},b="transform",w=a.ux.Transition.toString({property:b,duration:0,easing:"linear"}),R={roleDescription:"sortable"};function x(e){let{animateLayoutChanges:t=m,attributes:n,disabled:o,data:l,getNewIndex:s=h,id:c,strategy:d,resizeObserverConfig:f,transition:g=y}=e;const{items:v,containerId:x,activeIndex:C,disabled:S,disableTransforms:E,sortedRects:I,overIndex:P,useDragOverlay:B,strategy:D}=(0,r.useContext)(p),k=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}}(o,S),A=v.indexOf(c),O=(0,r.useMemo)((()=>({sortable:{containerId:x,index:A,items:v},...l})),[x,l,A,v]),F=(0,r.useMemo)((()=>v.slice(v.indexOf(c))),[v,c]),{rect:M,node:T,isOver:N,setNodeRef:G}=(0,i.Zj)({id:c,data:O,disabled:k.droppable,resizeObserverConfig:{updateMeasurementsFor:F,...f}}),{active:L,activatorEvent:z,activeNodeRect:H,attributes:j,setNodeRef:W,listeners:V,isDragging:X,over:_,setActivatorNodeRef:q,transform:U}=(0,i.O1)({id:c,data:O,attributes:{...R,...n},disabled:k.draggable}),Y=(0,a.HB)(G,W),K=Boolean(L),J=K&&!E&&u(C)&&u(P),$=!B&&X,Z=$&&J?U:null,Q=J?null!=Z?Z:(null!=d?d:D)({rects:I,activeNodeRect:H,activeIndex:C,overIndex:P,index:A}):null,ee=u(C)&&u(P)?s({id:c,items:v,activeIndex:C,overIndex:P}):A,te=null==L?void 0:L.id,ne=(0,r.useRef)({activeId:te,items:v,newIndex:ee,containerId:x}),re=v!==ne.current.items,oe=t({active:L,containerId:x,isDragging:X,isSorting:K,id:c,index:A,items:v,newIndex:ne.current.newIndex,previousItems:ne.current.items,previousContainerId:ne.current.containerId,transition:g,wasDragging:null!=ne.current.activeId}),ie=function(e){let{disabled:t,index:n,node:o,rect:l}=e;const[s,u]=(0,r.useState)(null),c=(0,r.useRef)(n);return(0,a.LI)((()=>{if(!t&&n!==c.current&&o.current){const e=l.current;if(e){const t=(0,i.VK)(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)&&u(n)}}n!==c.current&&(c.current=n)}),[t,n,o,l]),(0,r.useEffect)((()=>{s&&requestAnimationFrame((()=>{u(null)}))}),[s]),s}({disabled:!oe,index:A,node:T,rect:M});return(0,r.useEffect)((()=>{K&&ne.current.newIndex!==ee&&(ne.current.newIndex=ee),x!==ne.current.containerId&&(ne.current.containerId=x),v!==ne.current.items&&(ne.current.items=v)}),[K,ee,x,v]),(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:L,activeIndex:C,attributes:j,data:O,rect:M,index:A,newIndex:ee,items:v,isOver:N,isSorting:K,isDragging:X,listeners:V,node:T,overIndex:P,over:_,setNodeRef:Y,setActivatorNodeRef:q,setDroppableNodeRef:G,setDraggableNodeRef:W,transform:null!=ie?ie:Q,transition:ie||re&&ne.current.newIndex===A?w:$&&!(0,a.vd)(z)||!g?void 0:K||oe?a.ux.Transition.toString({...g,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 S=[i.g4.Down,i.g4.Right,i.g4.Up,i.g4.Left],E=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:o,droppableContainers:l,over:s,scrollableAncestors:u}}=t;if(S.includes(e.code)){if(e.preventDefault(),!n||!r)return;const t=[];l.getEnabled().forEach((n=>{if(!n||null!=n&&n.disabled)return;const a=o.get(n.id);if(a)switch(e.code){case i.g4.Down:r.top<a.top&&t.push(n);break;case i.g4.Up:r.top>a.top&&t.push(n);break;case i.g4.Left:r.left>a.left&&t.push(n);break;case i.g4.Right:r.left<a.left&&t.push(n)}}));const f=(0,i.ey)({active:n,collisionRect:r,droppableRects:o,droppableContainers:t,pointerCoordinates:null});let g=(0,i._8)(f,"id");if(g===(null==s?void 0:s.id)&&f.length>1&&(g=f[1].id),null!=g){const e=l.get(n.id),t=l.get(g),s=t?o.get(t.id):null,f=null==t?void 0:t.node.current;if(f&&s&&e&&t){const n=(0,i.hI)(f).some(((e,t)=>u[t]!==e)),o=I(e,t),l=(d=t,!(!C(c=e)||!C(d))&&!!I(c,d)&&c.data.current.sortable.index<d.data.current.sortable.index),g=n||!o?{x:0,y:0}:{x:l?r.width-s.width:0,y:l?r.height-s.height:0},p={x:s.left,y:s.top};return g.x&&g.y?p:(0,a.$X)(p,g)}}}var c,d};function I(e,t){return!(!C(e)||!C(t))&&e.data.current.sortable.containerId===t.data.current.sortable.containerId}},17592:(e,t,n)=>{"use strict";n.d(t,{$X:()=>S,D9:()=>b,DC:()=>I,Ey:()=>h,FJ:()=>a,Gj:()=>m,HB:()=>o,IH:()=>C,Jj:()=>s,LI:()=>g,Ld:()=>R,Nq:()=>i,Re:()=>c,UG:()=>l,Yz:()=>v,qk:()=>u,r3:()=>f,so:()=>D,ux:()=>P,vZ:()=>d,vd:()=>E,wm:()=>y,zX:()=>p});var r=n(1024);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 u(e){const{Document:t}=s(e);return e instanceof t}function c(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)?u(e)?e:c(e)?e.ownerDocument:document:document:document}const g=i?r.useLayoutEffect:r.useEffect;function p(e){const t=(0,r.useRef)(e);return g((()=>{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 v(){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 h(e,t){void 0===t&&(t=[e]);const n=(0,r.useRef)(e);return g((()=>{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 y(e){const t=p(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 b(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e}),[e]),t.current}let w={};function R(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 x(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 C=x(1),S=x(-1);function E(e){if(!e)return!1;const{KeyboardEvent:t}=s(e.target);return t&&e instanceof t}function I(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 P=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[P.Translate.toString(e),P.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+" "+n+"ms "+r}}}),B="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function D(e){return e.matches(B)?e:e.querySelector(B)}},52178:function(e,t,n){!function(e,t){"use strict";function n(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(e){return void n(e)}l.done?t(s):Promise.resolve(s).then(r,o)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function l(e){n(a,o,i,l,s,"next",e)}function s(e){n(a,o,i,l,s,"throw",e)}l(void 0)}))}}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function a(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var l={init:"init"},s=function(e){var t=e.value;return void 0===t?"":t},u=function(){return t.createElement(t.Fragment,null," ")},c={Cell:s,width:150,minWidth:0,maxWidth:Number.MAX_SAFE_INTEGER};function d(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){var n=t.style,r=t.className;return e=o({},e,{},i(t,["style","className"])),n&&(e.style=e.style?o({},e.style||{},{},n||{}):n),r&&(e.className=e.className?e.className+" "+r:r),""===e.className&&delete e.className,e}),{})}var f=function(e,t){return void 0===t&&(t={}),function(n){return void 0===n&&(n={}),[].concat(e,[n]).reduce((function(e,r){return function e(t,n,r){return"function"==typeof n?e({},n(t,r)):Array.isArray(n)?d.apply(void 0,[t].concat(n)):d(t,n)}(e,r,o({},t,{userProps:n}))}),{})}},g=function(e,t,n,r){return void 0===n&&(n={}),e.reduce((function(e,t){return t(e,n)}),t)},p=function(e,t,n){return void 0===n&&(n={}),e.forEach((function(e){e(t,n)}))};function v(e,t,n,r){e.findIndex((function(e){return e.pluginName===n})),t.forEach((function(t){e.findIndex((function(e){return e.pluginName===t}))}))}function h(e,t){return"function"==typeof e?e(t):e}function m(e){var n=t.useRef();return n.current=e,t.useCallback((function(){return n.current}),[])}var y="undefined"!=typeof document?t.useLayoutEffect:t.useEffect;function b(e,n){var r=t.useRef(!1);y((function(){r.current&&e(),r.current=!0}),n)}function w(e,t,n){return void 0===n&&(n={}),function(r,i){void 0===i&&(i={});var a="string"==typeof r?t[r]:r;if(void 0===a)throw console.info(t),new Error("Renderer Error ☝️");return R(a,o({},e,{column:t},n,{},i))}}function R(e,n){return function(e){return"function"==typeof e&&(t=Object.getPrototypeOf(e)).prototype&&t.prototype.isReactComponent;var t}(r=e)||"function"==typeof r||function(e){return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}(r)?t.createElement(e,n):e;var r}function x(e,t,n){return void 0===n&&(n=0),e.map((function(e){return S(e=o({},e,{parent:t,depth:n})),e.columns&&(e.columns=x(e.columns,e,n+1)),e}))}function C(e){return D(e,"columns")}function S(e){var t=e.id,n=e.accessor,r=e.Header;if("string"==typeof n){t=t||n;var o=n.split(".");n=function(e){return function(e,t,n){if(!t)return e;var r,o="function"==typeof t?t:JSON.stringify(t),i=I.get(o)||function(){var e=function(e){return function e(t,n){if(void 0===n&&(n=[]),Array.isArray(t))for(var r=0;r<t.length;r+=1)e(t[r],n);else n.push(t);return n}(e).map((function(e){return String(e).replace(".","_")})).join(".").replace(T,".").replace(N,"").split(".")}(t);return I.set(o,e),e}();try{r=i.reduce((function(e,t){return e[t]}),e)}catch(e){}return void 0!==r?r:void 0}(e,o)}}if(!t&&"string"==typeof r&&r&&(t=r),!t&&e.columns)throw console.error(e),new Error('A column ID (or unique "Header" value) is required!');if(!t)throw console.error(e),new Error("A column ID (or string accessor) is required!");return Object.assign(e,{id:t,accessor:n}),e}function E(e,t){if(!t)throw new Error;return Object.assign(e,o({Header:u,Footer:u},c,{},t,{},e)),Object.assign(e,{originalWidth:e.width}),e}var I=new Map;function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var r=0;r<t.length;r+=1)if(void 0!==t[r])return t[r]}function B(e){if("function"==typeof e)return e}function D(e,t){var n=[];return function e(r){r.forEach((function(r){r[t]?e(r[t]):n.push(r)}))}(e),n}function k(e,t){var n=t.manualExpandedKey,r=t.expanded,o=t.expandSubRows,i=void 0===o||o,a=[];return e.forEach((function(e){return function e(t,o){void 0===o&&(o=!0),t.isExpanded=t.original&&t.original[n]||r[t.id],t.canExpand=t.subRows&&!!t.subRows.length,o&&a.push(t),t.subRows&&t.subRows.length&&t.isExpanded&&t.subRows.forEach((function(t){return e(t,i)}))}(e)})),a}function A(e,t,n){return B(e)||t[e]||n[e]||n.text}function O(e,t,n){return e?e(t,n):void 0===t}function F(){throw new Error("React-Table: You have not called prepareRow(row) one or more rows you are attempting to render.")}var M=null,T=/\[/g,N=/\]/g,G=function(e){return o({role:"table"},e)},L=function(e){return o({role:"rowgroup"},e)},z=function(e,t){var n=t.column;return o({key:"header_"+n.id,colSpan:n.totalVisibleHeaderCount,role:"columnheader"},e)},H=function(e,t){var n=t.column;return o({key:"footer_"+n.id,colSpan:n.totalVisibleHeaderCount},e)},j=function(e,t){return o({key:"headerGroup_"+t.index,role:"row"},e)},W=function(e,t){return o({key:"footerGroup_"+t.index},e)},V=function(e,t){return o({key:"row_"+t.row.id,role:"row"},e)},X=function(e,t){var n=t.cell;return o({key:"cell_"+n.row.id+"_"+n.column.id,role:"cell"},e)};function _(){return{useOptions:[],stateReducers:[],useControlledState:[],columns:[],columnsDeps:[],allColumns:[],allColumnsDeps:[],accessValue:[],materializedColumns:[],materializedColumnsDeps:[],useInstanceAfterData:[],visibleColumns:[],visibleColumnsDeps:[],headerGroups:[],headerGroupsDeps:[],useInstanceBeforeDimensions:[],useInstance:[],prepareRow:[],getTableProps:[G],getTableBodyProps:[L],getHeaderGroupProps:[j],getFooterGroupProps:[W],getHeaderProps:[z],getFooterProps:[H],getRowProps:[V],getCellProps:[X],useFinalInstance:[]}}l.resetHiddenColumns="resetHiddenColumns",l.toggleHideColumn="toggleHideColumn",l.setHiddenColumns="setHiddenColumns",l.toggleHideAllColumns="toggleHideAllColumns";var q=function(e){e.getToggleHiddenProps=[U],e.getToggleHideAllColumnsProps=[Y],e.stateReducers.push(K),e.useInstanceBeforeDimensions.push(J),e.headerGroupsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.hiddenColumns])})),e.useInstance.push($)};q.pluginName="useColumnVisibility";var U=function(e,t){var n=t.column;return[e,{onChange:function(e){n.toggleHidden(!e.target.checked)},style:{cursor:"pointer"},checked:n.isVisible,title:"Toggle Column Visible"}]},Y=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleHideAllColumns(!e.target.checked)},style:{cursor:"pointer"},checked:!n.allColumnsHidden&&!n.state.hiddenColumns.length,title:"Toggle All Columns Hidden",indeterminate:!n.allColumnsHidden&&n.state.hiddenColumns.length}]};function K(e,t,n,r){if(t.type===l.init)return o({hiddenColumns:[]},e);if(t.type===l.resetHiddenColumns)return o({},e,{hiddenColumns:r.initialState.hiddenColumns||[]});if(t.type===l.toggleHideColumn){var i=(void 0!==t.value?t.value:!e.hiddenColumns.includes(t.columnId))?[].concat(e.hiddenColumns,[t.columnId]):e.hiddenColumns.filter((function(e){return e!==t.columnId}));return o({},e,{hiddenColumns:i})}return t.type===l.setHiddenColumns?o({},e,{hiddenColumns:h(t.value,e.hiddenColumns)}):t.type===l.toggleHideAllColumns?o({},e,{hiddenColumns:(void 0!==t.value?t.value:!e.hiddenColumns.length)?r.allColumns.map((function(e){return e.id})):[]}):void 0}function J(e){var n=e.headers,r=e.state.hiddenColumns;t.useRef(!1).current;var o=0;n.forEach((function(e){return o+=function e(t,n){t.isVisible=n&&!r.includes(t.id);var o=0;return t.headers&&t.headers.length?t.headers.forEach((function(n){return o+=e(n,t.isVisible)})):o=t.isVisible?1:0,t.totalVisibleHeaderCount=o,o}(e,!0)}))}function $(e){var n=e.columns,r=e.flatHeaders,o=e.dispatch,i=e.allColumns,a=e.getHooks,s=e.state.hiddenColumns,u=e.autoResetHiddenColumns,c=void 0===u||u,d=m(e),g=i.length===s.length,p=t.useCallback((function(e,t){return o({type:l.toggleHideColumn,columnId:e,value:t})}),[o]),v=t.useCallback((function(e){return o({type:l.setHiddenColumns,value:e})}),[o]),h=t.useCallback((function(e){return o({type:l.toggleHideAllColumns,value:e})}),[o]),y=f(a().getToggleHideAllColumnsProps,{instance:d()});r.forEach((function(e){e.toggleHidden=function(t){o({type:l.toggleHideColumn,columnId:e.id,value:t})},e.getToggleHiddenProps=f(a().getToggleHiddenProps,{instance:d(),column:e})}));var w=m(c);b((function(){w()&&o({type:l.resetHiddenColumns})}),[o,n]),Object.assign(e,{allColumnsHidden:g,toggleHideColumn:p,setHiddenColumns:v,toggleHideAllColumns:h,getToggleHideAllColumnsProps:y})}var Z={},Q={},ee=function(e,t,n){return e},te=function(e,t){return e.subRows||[]},ne=function(e,t,n){return""+(n?[n.id,t].join("."):t)},re=function(e){return e};function oe(e){var t=e.initialState,n=void 0===t?Z:t,r=e.defaultColumn,a=void 0===r?Q:r,l=e.getSubRows,s=void 0===l?te:l,u=e.getRowId,c=void 0===u?ne:u,d=e.stateReducer,f=void 0===d?ee:d,g=e.useControlledState,p=void 0===g?re:g;return o({},i(e,["initialState","defaultColumn","getSubRows","getRowId","stateReducer","useControlledState"]),{initialState:n,defaultColumn:a,getSubRows:s,getRowId:c,stateReducer:f,useControlledState:p})}function ie(e,t){void 0===t&&(t=0);var n=0,r=0,o=0,i=0;return e.forEach((function(e){var a=e.headers;if(e.totalLeft=t,a&&a.length){var l=ie(a,t),s=l[0],u=l[1],c=l[2],d=l[3];e.totalMinWidth=s,e.totalWidth=u,e.totalMaxWidth=c,e.totalFlexWidth=d}else e.totalMinWidth=e.minWidth,e.totalWidth=Math.min(Math.max(e.minWidth,e.width),e.maxWidth),e.totalMaxWidth=e.maxWidth,e.totalFlexWidth=e.canResize?e.totalWidth:0;e.isVisible&&(t+=e.totalWidth,n+=e.totalMinWidth,r+=e.totalWidth,o+=e.totalMaxWidth,i+=e.totalFlexWidth)})),[n,r,o,i]}function ae(e){var t=e.data,n=e.rows,r=e.flatRows,o=e.rowsById,i=e.column,a=e.getRowId,l=e.getSubRows,s=e.accessValueHooks,u=e.getInstance;t.forEach((function(e,c){return function e(n,c,d,f,p){void 0===d&&(d=0);var v=n,h=a(n,c,f),m=o[h];if(m)m.subRows&&m.originalSubRows.forEach((function(t,n){return e(t,n,d+1,m)}));else if((m={id:h,original:v,index:c,depth:d,cells:[{}]}).cells.map=F,m.cells.filter=F,m.cells.forEach=F,m.cells[0].getCellProps=F,m.values={},p.push(m),r.push(m),o[h]=m,m.originalSubRows=l(n,c),m.originalSubRows){var y=[];m.originalSubRows.forEach((function(t,n){return e(t,n,d+1,m,y)})),m.subRows=y}i.accessor&&(m.values[i.id]=i.accessor(n,c,m,p,t)),m.values[i.id]=g(s,m.values[i.id],{row:m,column:i,instance:u()})}(e,c,0,void 0,n)}))}l.resetExpanded="resetExpanded",l.toggleRowExpanded="toggleRowExpanded",l.toggleAllRowsExpanded="toggleAllRowsExpanded";var le=function(e){e.getToggleAllRowsExpandedProps=[se],e.getToggleRowExpandedProps=[ue],e.stateReducers.push(ce),e.useInstance.push(de),e.prepareRow.push(fe)};le.pluginName="useExpanded";var se=function(e,t){var n=t.instance;return[e,{onClick:function(e){n.toggleAllRowsExpanded()},style:{cursor:"pointer"},title:"Toggle All Rows Expanded"}]},ue=function(e,t){var n=t.row;return[e,{onClick:function(){n.toggleRowExpanded()},style:{cursor:"pointer"},title:"Toggle Row Expanded"}]};function ce(e,t,n,r){if(t.type===l.init)return o({expanded:{}},e);if(t.type===l.resetExpanded)return o({},e,{expanded:r.initialState.expanded||{}});if(t.type===l.toggleAllRowsExpanded){var s=t.value,u=r.isAllRowsExpanded,c=r.rowsById;if(void 0!==s?s:!u){var d={};return Object.keys(c).forEach((function(e){d[e]=!0})),o({},e,{expanded:d})}return o({},e,{expanded:{}})}if(t.type===l.toggleRowExpanded){var f,g=t.id,p=t.value,v=e.expanded[g],h=void 0!==p?p:!v;if(!v&&h)return o({},e,{expanded:o({},e.expanded,(f={},f[g]=!0,f))});if(v&&!h){var m=e.expanded;return m[g],o({},e,{expanded:i(m,[g].map(a))})}return e}}function de(e){var n=e.data,r=e.rows,o=e.rowsById,i=e.manualExpandedKey,a=void 0===i?"expanded":i,s=e.paginateExpandedRows,u=void 0===s||s,c=e.expandSubRows,d=void 0===c||c,g=e.autoResetExpanded,p=void 0===g||g,h=e.getHooks,y=e.plugins,w=e.state.expanded,R=e.dispatch;v(y,["useSortBy","useGroupBy","usePivotColumns","useGlobalFilter"],"useExpanded");var x=m(p),C=Boolean(Object.keys(o).length&&Object.keys(w).length);C&&Object.keys(o).some((function(e){return!w[e]}))&&(C=!1),b((function(){x()&&R({type:l.resetExpanded})}),[R,n]);var S=t.useCallback((function(e,t){R({type:l.toggleRowExpanded,id:e,value:t})}),[R]),E=t.useCallback((function(e){return R({type:l.toggleAllRowsExpanded,value:e})}),[R]),I=t.useMemo((function(){return u?k(r,{manualExpandedKey:a,expanded:w,expandSubRows:d}):r}),[u,r,a,w,d]),P=t.useMemo((function(){return function(e){var t=0;return Object.keys(e).forEach((function(e){var n=e.split(".");t=Math.max(t,n.length)})),t}(w)}),[w]),B=m(e),D=f(h().getToggleAllRowsExpandedProps,{instance:B()});Object.assign(e,{preExpandedRows:r,expandedRows:I,rows:I,expandedDepth:P,isAllRowsExpanded:C,toggleRowExpanded:S,toggleAllRowsExpanded:E,getToggleAllRowsExpandedProps:D})}function fe(e,t){var n=t.instance.getHooks,r=t.instance;e.toggleRowExpanded=function(t){return r.toggleRowExpanded(e.id,t)},e.getToggleRowExpandedProps=f(n().getToggleRowExpandedProps,{instance:r,row:e})}var ge=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return String(r).toLowerCase().includes(String(n).toLowerCase())}))}))};ge.autoRemove=function(e){return!e};var pe=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return void 0===r||String(r).toLowerCase()===String(n).toLowerCase()}))}))};pe.autoRemove=function(e){return!e};var ve=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return void 0===r||String(r)===String(n)}))}))};ve.autoRemove=function(e){return!e};var he=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t].includes(n)}))}))};he.autoRemove=function(e){return!e||!e.length};var me=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return r&&r.length&&n.every((function(e){return r.includes(e)}))}))}))};me.autoRemove=function(e){return!e||!e.length};var ye=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return r&&r.length&&n.some((function(e){return r.includes(e)}))}))}))};ye.autoRemove=function(e){return!e||!e.length};var be=function(e,t,n){return e.filter((function(e){return t.some((function(t){var r=e.values[t];return n.includes(r)}))}))};be.autoRemove=function(e){return!e||!e.length};var we=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t]===n}))}))};we.autoRemove=function(e){return void 0===e};var Re=function(e,t,n){return e.filter((function(e){return t.some((function(t){return e.values[t]==n}))}))};Re.autoRemove=function(e){return null==e};var xe=function(e,t,n){var r=n||[],o=r[0],i=r[1];if((o="number"==typeof o?o:-1/0)>(i="number"==typeof i?i:1/0)){var a=o;o=i,i=a}return e.filter((function(e){return t.some((function(t){var n=e.values[t];return n>=o&&n<=i}))}))};xe.autoRemove=function(e){return!e||"number"!=typeof e[0]&&"number"!=typeof e[1]};var Ce=Object.freeze({__proto__:null,text:ge,exactText:pe,exactTextCase:ve,includes:he,includesAll:me,includesSome:ye,includesValue:be,exact:we,equals:Re,between:xe});l.resetFilters="resetFilters",l.setFilter="setFilter",l.setAllFilters="setAllFilters";var Se=function(e){e.stateReducers.push(Ee),e.useInstance.push(Ie)};function Ee(e,t,n,r){if(t.type===l.init)return o({filters:[]},e);if(t.type===l.resetFilters)return o({},e,{filters:r.initialState.filters||[]});if(t.type===l.setFilter){var i=t.columnId,a=t.filterValue,s=r.allColumns,u=r.filterTypes,c=s.find((function(e){return e.id===i}));if(!c)throw new Error("React-Table: Could not find a column with id: "+i);var d=A(c.filter,u||{},Ce),f=e.filters.find((function(e){return e.id===i})),g=h(a,f&&f.value);return O(d.autoRemove,g,c)?o({},e,{filters:e.filters.filter((function(e){return e.id!==i}))}):o({},e,f?{filters:e.filters.map((function(e){return e.id===i?{id:i,value:g}:e}))}:{filters:[].concat(e.filters,[{id:i,value:g}])})}if(t.type===l.setAllFilters){var p=t.filters,v=r.allColumns,m=r.filterTypes;return o({},e,{filters:h(p,e.filters).filter((function(e){var t=v.find((function(t){return t.id===e.id}));return!O(A(t.filter,m||{},Ce).autoRemove,e.value,t)}))})}}function Ie(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,s=e.filterTypes,u=e.manualFilters,c=e.defaultCanFilter,d=void 0!==c&&c,f=e.disableFilters,g=e.state.filters,p=e.dispatch,v=e.autoResetFilters,h=void 0===v||v,y=t.useCallback((function(e,t){p({type:l.setFilter,columnId:e,filterValue:t})}),[p]),w=t.useCallback((function(e){p({type:l.setAllFilters,filters:e})}),[p]);a.forEach((function(e){var t=e.id,n=e.accessor,r=e.defaultCanFilter,o=e.disableFilters;e.canFilter=n?P(!0!==o&&void 0,!0!==f&&void 0,!0):P(r,d,!1),e.setFilter=function(t){return y(e.id,t)};var i=g.find((function(e){return e.id===t}));e.filterValue=i&&i.value}));var R=t.useMemo((function(){if(u||!g.length)return[r,o,i];var e=[],t={};return[function n(r,o){void 0===o&&(o=0);var i=r;return(i=g.reduce((function(e,t){var n=t.id,r=t.value,i=a.find((function(e){return e.id===n}));if(!i)return e;0===o&&(i.preFilteredRows=e);var l=A(i.filter,s||{},Ce);return l?(i.filteredRows=l(e,[n],r),i.filteredRows):(console.warn("Could not find a valid 'column.filter' for column with the ID: "+i.id+"."),e)}),r)).forEach((function(r){e.push(r),t[r.id]=r,r.subRows&&(r.subRows=r.subRows&&r.subRows.length>0?n(r.subRows,o+1):r.subRows)})),i}(r),e,t]}),[u,g,r,o,i,a,s]),x=R[0],C=R[1],S=R[2];t.useMemo((function(){a.filter((function(e){return!g.find((function(t){return t.id===e.id}))})).forEach((function(e){e.preFilteredRows=x,e.filteredRows=x}))}),[x,g,a]);var E=m(h);b((function(){E()&&p({type:l.resetFilters})}),[p,u?null:n]),Object.assign(e,{preFilteredRows:r,preFilteredFlatRows:o,preFilteredRowsById:i,filteredRows:x,filteredFlatRows:C,filteredRowsById:S,rows:x,flatRows:C,rowsById:S,setFilter:y,setAllFilters:w})}Se.pluginName="useFilters",l.resetGlobalFilter="resetGlobalFilter",l.setGlobalFilter="setGlobalFilter";var Pe=function(e){e.stateReducers.push(Be),e.useInstance.push(De)};function Be(e,t,n,r){if(t.type===l.resetGlobalFilter)return o({},e,{globalFilter:r.initialState.globalFilter||void 0});if(t.type===l.setGlobalFilter){var a=t.filterValue,s=r.userFilterTypes,u=A(r.globalFilter,s||{},Ce),c=h(a,e.globalFilter);return O(u.autoRemove,c)?(e.globalFilter,i(e,["globalFilter"])):o({},e,{globalFilter:c})}}function De(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,s=e.filterTypes,u=e.globalFilter,c=e.manualGlobalFilter,d=e.state.globalFilter,f=e.dispatch,g=e.autoResetGlobalFilter,p=void 0===g||g,v=e.disableGlobalFilter,h=t.useCallback((function(e){f({type:l.setGlobalFilter,filterValue:e})}),[f]),y=t.useMemo((function(){if(c||void 0===d)return[r,o,i];var e=[],t={},n=A(u,s||{},Ce);if(!n)return console.warn("Could not find a valid 'globalFilter' option."),r;a.forEach((function(e){var t=e.disableGlobalFilter;e.canFilter=P(!0!==t&&void 0,!0!==v&&void 0,!0)}));var l=a.filter((function(e){return!0===e.canFilter}));return[function r(o){return(o=n(o,l.map((function(e){return e.id})),d)).forEach((function(n){e.push(n),t[n.id]=n,n.subRows=n.subRows&&n.subRows.length?r(n.subRows):n.subRows})),o}(r),e,t]}),[c,d,u,s,a,r,o,i,v]),w=y[0],R=y[1],x=y[2],C=m(p);b((function(){C()&&f({type:l.resetGlobalFilter})}),[f,c?null:n]),Object.assign(e,{preGlobalFilteredRows:r,preGlobalFilteredFlatRows:o,preGlobalFilteredRowsById:i,globalFilteredRows:w,globalFilteredFlatRows:R,globalFilteredRowsById:x,rows:w,flatRows:R,rowsById:x,setGlobalFilter:h,disableGlobalFilter:v})}function ke(e,t){return t.reduce((function(e,t){return e+("number"==typeof t?t:0)}),0)}Pe.pluginName="useGlobalFilter";var Ae=Object.freeze({__proto__:null,sum:ke,min:function(e){var t=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.min(t,e))})),t},max:function(e){var t=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.max(t,e))})),t},minMax:function(e){var t=e[0]||0,n=e[0]||0;return e.forEach((function(e){"number"==typeof e&&(t=Math.min(t,e),n=Math.max(n,e))})),t+".."+n},average:function(e){return ke(0,e)/e.length},median:function(e){if(!e.length)return null;var t=Math.floor(e.length/2),n=[].concat(e).sort((function(e,t){return e-t}));return e.length%2!=0?n[t]:(n[t-1]+n[t])/2},unique:function(e){return Array.from(new Set(e).values())},uniqueCount:function(e){return new Set(e).size},count:function(e){return e.length}}),Oe=[],Fe={};l.resetGroupBy="resetGroupBy",l.setGroupBy="setGroupBy",l.toggleGroupBy="toggleGroupBy";var Me=function(e){e.getGroupByToggleProps=[Te],e.stateReducers.push(Ne),e.visibleColumnsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.groupBy])})),e.visibleColumns.push(Ge),e.useInstance.push(ze),e.prepareRow.push(He)};Me.pluginName="useGroupBy";var Te=function(e,t){var n=t.header;return[e,{onClick:n.canGroupBy?function(e){e.persist(),n.toggleGroupBy()}:void 0,style:{cursor:n.canGroupBy?"pointer":void 0},title:"Toggle GroupBy"}]};function Ne(e,t,n,r){if(t.type===l.init)return o({groupBy:[]},e);if(t.type===l.resetGroupBy)return o({},e,{groupBy:r.initialState.groupBy||[]});if(t.type===l.setGroupBy)return o({},e,{groupBy:t.value});if(t.type===l.toggleGroupBy){var i=t.columnId,a=t.value,s=void 0!==a?a:!e.groupBy.includes(i);return o({},e,s?{groupBy:[].concat(e.groupBy,[i])}:{groupBy:e.groupBy.filter((function(e){return e!==i}))})}}function Ge(e,t){var n=t.instance.state.groupBy,r=n.map((function(t){return e.find((function(e){return e.id===t}))})).filter(Boolean),o=e.filter((function(e){return!n.includes(e.id)}));return(e=[].concat(r,o)).forEach((function(e){e.isGrouped=n.includes(e.id),e.groupedIndex=n.indexOf(e.id)})),e}var Le={};function ze(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.rowsById,a=e.allColumns,s=e.flatHeaders,u=e.groupByFn,c=void 0===u?je:u,d=e.manualGroupBy,g=e.aggregations,p=void 0===g?Le:g,h=e.plugins,y=e.state.groupBy,w=e.dispatch,R=e.autoResetGroupBy,x=void 0===R||R,C=e.disableGroupBy,S=e.defaultCanGroupBy,E=e.getHooks;v(h,["useColumnOrder","useFilters"],"useGroupBy");var I=m(e);a.forEach((function(t){var n=t.accessor,r=t.defaultGroupBy,o=t.disableGroupBy;t.canGroupBy=n?P(t.canGroupBy,!0!==o&&void 0,!0!==C&&void 0,!0):P(t.canGroupBy,r,S,!1),t.canGroupBy&&(t.toggleGroupBy=function(){return e.toggleGroupBy(t.id)}),t.Aggregated=t.Aggregated||t.Cell}));var B=t.useCallback((function(e,t){w({type:l.toggleGroupBy,columnId:e,value:t})}),[w]),k=t.useCallback((function(e){w({type:l.setGroupBy,value:e})}),[w]);s.forEach((function(e){e.getGroupByToggleProps=f(E().getGroupByToggleProps,{instance:I(),header:e})}));var A=t.useMemo((function(){if(d||!y.length)return[r,o,i,Oe,Fe,o,i];var e=y.filter((function(e){return a.find((function(t){return t.id===e}))})),t=[],n={},l=[],s={},u=[],f={},g=function r(o,i,d){if(void 0===i&&(i=0),i===e.length)return o;var g=e[i],v=c(o,g);return Object.entries(v).map((function(o,c){var v=o[0],h=o[1],m=g+":"+v,y=r(h,i+1,m=d?d+">"+m:m),b=i?D(h,"leafRows"):h,w=function(t,n,r){var o={};return a.forEach((function(i){if(e.includes(i.id))o[i.id]=n[0]?n[0].values[i.id]:null;else{var a="function"==typeof i.aggregate?i.aggregate:p[i.aggregate]||Ae[i.aggregate];if(a){var l=n.map((function(e){return e.values[i.id]})),s=t.map((function(e){var t=e.values[i.id];if(!r&&i.aggregateValue){var n="function"==typeof i.aggregateValue?i.aggregateValue:p[i.aggregateValue]||Ae[i.aggregateValue];if(!n)throw console.info({column:i}),new Error("React Table: Invalid column.aggregateValue option for column listed above");t=n(t,e,i)}return t}));o[i.id]=a(s,l)}else{if(i.aggregate)throw console.info({column:i}),new Error("React Table: Invalid column.aggregate option for column listed above");o[i.id]=null}}})),o}(b,h,i),R={id:m,isGrouped:!0,groupByID:g,groupByVal:v,values:w,subRows:y,leafRows:b,depth:i,index:c};return y.forEach((function(e){t.push(e),n[e.id]=e,e.isGrouped?(l.push(e),s[e.id]=e):(u.push(e),f[e.id]=e)})),R}))}(r);return g.forEach((function(e){t.push(e),n[e.id]=e,e.isGrouped?(l.push(e),s[e.id]=e):(u.push(e),f[e.id]=e)})),[g,t,n,l,s,u,f]}),[d,y,r,o,i,a,p,c]),O=A[0],F=A[1],M=A[2],T=A[3],N=A[4],G=A[5],L=A[6],z=m(x);b((function(){z()&&w({type:l.resetGroupBy})}),[w,d?null:n]),Object.assign(e,{preGroupedRows:r,preGroupedFlatRow:o,preGroupedRowsById:i,groupedRows:O,groupedFlatRows:F,groupedRowsById:M,onlyGroupedFlatRows:T,onlyGroupedRowsById:N,nonGroupedFlatRows:G,nonGroupedRowsById:L,rows:O,flatRows:F,rowsById:M,toggleGroupBy:B,setGroupBy:k})}function He(e){e.allCells.forEach((function(t){var n;t.isGrouped=t.column.isGrouped&&t.column.id===e.groupByID,t.isPlaceholder=!t.isGrouped&&t.column.isGrouped,t.isAggregated=!t.isGrouped&&!t.isPlaceholder&&(null==(n=e.subRows)?void 0:n.length)}))}function je(e,t){return e.reduce((function(e,n,r){var o=""+n.values[t];return e[o]=Array.isArray(e[o])?e[o]:[],e[o].push(n),e}),{})}var We=/([0-9]+)/gm;function Ve(e,t){return e===t?0:e>t?1:-1}function Xe(e,t){return e.values[t]}function _e(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}var qe=Object.freeze({__proto__:null,alphanumeric:function(e,t,n){var r=Xe(e,n),o=Xe(t,n);for(r=_e(r),o=_e(o),r=r.split(We).filter(Boolean),o=o.split(We).filter(Boolean);r.length&&o.length;){var i=r.shift(),a=o.shift(),l=parseInt(i,10),s=parseInt(a,10),u=[l,s].sort();if(isNaN(u[0])){if(i>a)return 1;if(a>i)return-1}else{if(isNaN(u[1]))return isNaN(l)?-1:1;if(l>s)return 1;if(s>l)return-1}}return r.length-o.length},datetime:function(e,t,n){var r=Xe(e,n),o=Xe(t,n);return Ve(r=r.getTime(),o=o.getTime())},basic:function(e,t,n){return Ve(Xe(e,n),Xe(t,n))}});l.resetSortBy="resetSortBy",l.setSortBy="setSortBy",l.toggleSortBy="toggleSortBy",l.clearSortBy="clearSortBy",c.sortType="alphanumeric",c.sortDescFirst=!1;var Ue=function(e){e.getSortByToggleProps=[Ye],e.stateReducers.push(Ke),e.useInstance.push(Je)};Ue.pluginName="useSortBy";var Ye=function(e,t){var n=t.instance,r=t.column,o=n.isMultiSortEvent,i=void 0===o?function(e){return e.shiftKey}:o;return[e,{onClick:r.canSort?function(e){e.persist(),r.toggleSortBy(void 0,!n.disableMultiSort&&i(e))}:void 0,style:{cursor:r.canSort?"pointer":void 0},title:r.canSort?"Toggle SortBy":void 0}]};function Ke(e,t,n,r){if(t.type===l.init)return o({sortBy:[]},e);if(t.type===l.resetSortBy)return o({},e,{sortBy:r.initialState.sortBy||[]});if(t.type===l.clearSortBy)return o({},e,{sortBy:e.sortBy.filter((function(e){return e.id!==t.columnId}))});if(t.type===l.setSortBy)return o({},e,{sortBy:t.sortBy});if(t.type===l.toggleSortBy){var i,a=t.columnId,s=t.desc,u=t.multi,c=r.allColumns,d=r.disableMultiSort,f=r.disableSortRemove,g=r.disableMultiRemove,p=r.maxMultiSortColCount,v=void 0===p?Number.MAX_SAFE_INTEGER:p,h=e.sortBy,m=c.find((function(e){return e.id===a})).sortDescFirst,y=h.find((function(e){return e.id===a})),b=h.findIndex((function(e){return e.id===a})),w=null!=s,R=[];return"toggle"!=(i=!d&&u?y?"toggle":"add":b!==h.length-1||1!==h.length?"replace":y?"toggle":"replace")||f||w||u&&g||!(y&&y.desc&&!m||!y.desc&&m)||(i="remove"),"replace"===i?R=[{id:a,desc:w?s:m}]:"add"===i?(R=[].concat(h,[{id:a,desc:w?s:m}])).splice(0,R.length-v):"toggle"===i?R=h.map((function(e){return e.id===a?o({},e,{desc:w?s:!y.desc}):e})):"remove"===i&&(R=h.filter((function(e){return e.id!==a}))),o({},e,{sortBy:R})}}function Je(e){var n=e.data,r=e.rows,o=e.flatRows,i=e.allColumns,a=e.orderByFn,s=void 0===a?$e:a,u=e.sortTypes,c=e.manualSortBy,d=e.defaultCanSort,g=e.disableSortBy,p=e.flatHeaders,h=e.state.sortBy,y=e.dispatch,w=e.plugins,R=e.getHooks,x=e.autoResetSortBy,C=void 0===x||x;v(w,["useFilters","useGlobalFilter","useGroupBy","usePivotColumns"],"useSortBy");var S=t.useCallback((function(e){y({type:l.setSortBy,sortBy:e})}),[y]),E=t.useCallback((function(e,t,n){y({type:l.toggleSortBy,columnId:e,desc:t,multi:n})}),[y]),I=m(e);p.forEach((function(e){var t=e.accessor,n=e.canSort,r=e.disableSortBy,o=e.id,i=t?P(!0!==r&&void 0,!0!==g&&void 0,!0):P(d,n,!1);e.canSort=i,e.canSort&&(e.toggleSortBy=function(t,n){return E(e.id,t,n)},e.clearSortBy=function(){y({type:l.clearSortBy,columnId:e.id})}),e.getSortByToggleProps=f(R().getSortByToggleProps,{instance:I(),column:e});var a=h.find((function(e){return e.id===o}));e.isSorted=!!a,e.sortedIndex=h.findIndex((function(e){return e.id===o})),e.isSortedDesc=e.isSorted?a.desc:void 0}));var D=t.useMemo((function(){if(c||!h.length)return[r,o];var e=[],t=h.filter((function(e){return i.find((function(t){return t.id===e.id}))}));return[function n(r){var o=s(r,t.map((function(e){var t=i.find((function(t){return t.id===e.id}));if(!t)throw new Error("React-Table: Could not find a column with id: "+e.id+" while sorting");var n=t.sortType,r=B(n)||(u||{})[n]||qe[n];if(!r)throw new Error("React-Table: Could not find a valid sortType of '"+n+"' for column '"+e.id+"'.");return function(t,n){return r(t,n,e.id,e.desc)}})),t.map((function(e){var t=i.find((function(t){return t.id===e.id}));return t&&t.sortInverted?e.desc:!e.desc})));return o.forEach((function(t){e.push(t),t.subRows&&0!==t.subRows.length&&(t.subRows=n(t.subRows))})),o}(r),e]}),[c,h,r,o,i,s,u]),k=D[0],A=D[1],O=m(C);b((function(){O()&&y({type:l.resetSortBy})}),[c?null:n]),Object.assign(e,{preSortedRows:r,preSortedFlatRows:o,sortedRows:k,sortedFlatRows:A,rows:k,flatRows:A,setSortBy:S,toggleSortBy:E})}function $e(e,t,n){return[].concat(e).sort((function(e,r){for(var o=0;o<t.length;o+=1){var i=t[o],a=!1===n[o]||"desc"===n[o],l=i(e,r);if(0!==l)return a?-l:l}return n[0]?e.index-r.index:r.index-e.index}))}l.resetPage="resetPage",l.gotoPage="gotoPage",l.setPageSize="setPageSize";var Ze=function(e){e.stateReducers.push(Qe),e.useInstance.push(et)};function Qe(e,t,n,r){if(t.type===l.init)return o({pageSize:10,pageIndex:0},e);if(t.type===l.resetPage)return o({},e,{pageIndex:r.initialState.pageIndex||0});if(t.type===l.gotoPage){var i=r.pageCount,a=r.page,s=h(t.pageIndex,e.pageIndex),u=!1;return s>e.pageIndex?u=-1===i?a.length>=e.pageSize:s<i:s<e.pageIndex&&(u=s>-1),u?o({},e,{pageIndex:s}):e}if(t.type===l.setPageSize){var c=t.pageSize,d=e.pageSize*e.pageIndex;return o({},e,{pageIndex:Math.floor(d/c),pageSize:c})}}function et(e){var n=e.rows,r=e.autoResetPage,o=void 0===r||r,i=e.manualExpandedKey,a=void 0===i?"expanded":i,s=e.plugins,u=e.pageCount,c=e.paginateExpandedRows,d=void 0===c||c,f=e.expandSubRows,g=void 0===f||f,p=e.state,h=p.pageSize,y=p.pageIndex,w=p.expanded,R=p.globalFilter,x=p.filters,C=p.groupBy,S=p.sortBy,E=e.dispatch,I=e.data,P=e.manualPagination;v(s,["useGlobalFilter","useFilters","useGroupBy","useSortBy","useExpanded"],"usePagination");var B=m(o);b((function(){B()&&E({type:l.resetPage})}),[E,P?null:I,R,x,C,S]);var D=P?u:Math.ceil(n.length/h),A=t.useMemo((function(){return D>0?[].concat(new Array(D)).fill(null).map((function(e,t){return t})):[]}),[D]),O=t.useMemo((function(){var e;if(P)e=n;else{var t=h*y,r=t+h;e=n.slice(t,r)}return d?e:k(e,{manualExpandedKey:a,expanded:w,expandSubRows:g})}),[g,w,a,P,y,h,d,n]),F=y>0,M=-1===D?O.length>=h:y<D-1,T=t.useCallback((function(e){E({type:l.gotoPage,pageIndex:e})}),[E]),N=t.useCallback((function(){return T((function(e){return e-1}))}),[T]),G=t.useCallback((function(){return T((function(e){return e+1}))}),[T]),L=t.useCallback((function(e){E({type:l.setPageSize,pageSize:e})}),[E]);Object.assign(e,{pageOptions:A,pageCount:D,page:O,canPreviousPage:F,canNextPage:M,gotoPage:T,previousPage:N,nextPage:G,setPageSize:L})}Ze.pluginName="usePagination",l.resetPivot="resetPivot",l.togglePivot="togglePivot";var tt=function(e){e.getPivotToggleProps=[rt],e.stateReducers.push(ot),e.useInstanceAfterData.push(it),e.allColumns.push(at),e.accessValue.push(lt),e.materializedColumns.push(st),e.materializedColumnsDeps.push(ut),e.visibleColumns.push(ct),e.visibleColumnsDeps.push(dt),e.useInstance.push(ft),e.prepareRow.push(gt)};tt.pluginName="usePivotColumns";var nt=[],rt=function(e,t){var n=t.header;return[e,{onClick:n.canPivot?function(e){e.persist(),n.togglePivot()}:void 0,style:{cursor:n.canPivot?"pointer":void 0},title:"Toggle Pivot"}]};function ot(e,t,n,r){if(t.type===l.init)return o({pivotColumns:nt},e);if(t.type===l.resetPivot)return o({},e,{pivotColumns:r.initialState.pivotColumns||nt});if(t.type===l.togglePivot){var i=t.columnId,a=t.value,s=void 0!==a?a:!e.pivotColumns.includes(i);return o({},e,s?{pivotColumns:[].concat(e.pivotColumns,[i])}:{pivotColumns:e.pivotColumns.filter((function(e){return e!==i}))})}}function it(e){e.allColumns.forEach((function(t){t.isPivotSource=e.state.pivotColumns.includes(t.id)}))}function at(e,t){var n=t.instance;return e.forEach((function(e){e.isPivotSource=n.state.pivotColumns.includes(e.id),e.uniqueValues=new Set})),e}function lt(e,t){var n=t.column;return n.uniqueValues&&void 0!==e&&n.uniqueValues.add(e),e}function st(e,t){var n=t.instance,r=n.allColumns,i=n.state;if(!i.pivotColumns.length||!i.groupBy||!i.groupBy.length)return e;var a=i.pivotColumns.map((function(e){return r.find((function(t){return t.id===e}))})).filter(Boolean),l=r.filter((function(e){return!e.isPivotSource&&!i.groupBy.includes(e.id)&&!i.pivotColumns.includes(e.id)})),s=C(function e(t,n,r){void 0===t&&(t=0),void 0===r&&(r=[]);var i=a[t];return i?Array.from(i.uniqueValues).sort().map((function(a){var l=o({},i,{Header:i.PivotHeader||"string"==typeof i.header?i.Header+": "+a:a,isPivotGroup:!0,parent:n,depth:t,id:n?n.id+"."+i.id+"."+a:i.id+"."+a,pivotValue:a});return l.columns=e(t+1,l,[].concat(r,[function(e){return e.values[i.id]===a}])),l})):l.map((function(e){return o({},e,{canPivot:!1,isPivoted:!0,parent:n,depth:t,id:""+(n?n.id+"."+e.id:e.id),accessor:function(t,n,o){if(r.every((function(e){return e(o)})))return o.values[e.id]}})}))}());return[].concat(e,s)}function ut(e,t){var n=t.instance.state,r=n.pivotColumns,o=n.groupBy;return[].concat(e,[r,o])}function ct(e,t){var n=t.instance.state;return e=e.filter((function(e){return!e.isPivotSource})),n.pivotColumns.length&&n.groupBy&&n.groupBy.length&&(e=e.filter((function(e){return e.isGrouped||e.isPivoted}))),e}function dt(e,t){var n=t.instance;return[].concat(e,[n.state.pivotColumns,n.state.groupBy])}function ft(e){var t=e.columns,n=e.allColumns,r=e.flatHeaders,o=e.getHooks,i=e.plugins,a=e.dispatch,s=e.autoResetPivot,u=void 0===s||s,c=e.manaulPivot,d=e.disablePivot,g=e.defaultCanPivot;v(i,["useGroupBy"],"usePivotColumns");var p=m(e);n.forEach((function(t){var n=t.accessor,r=t.defaultPivot,o=t.disablePivot;t.canPivot=n?P(t.canPivot,!0!==o&&void 0,!0!==d&&void 0,!0):P(t.canPivot,r,g,!1),t.canPivot&&(t.togglePivot=function(){return e.togglePivot(t.id)}),t.Aggregated=t.Aggregated||t.Cell})),r.forEach((function(e){e.getPivotToggleProps=f(o().getPivotToggleProps,{instance:p(),header:e})}));var h=m(u);b((function(){h()&&a({type:l.resetPivot})}),[a,c?null:t]),Object.assign(e,{togglePivot:function(e,t){a({type:l.togglePivot,columnId:e,value:t})}})}function gt(e){e.allCells.forEach((function(e){e.isPivoted=e.column.isPivoted}))}l.resetSelectedRows="resetSelectedRows",l.toggleAllRowsSelected="toggleAllRowsSelected",l.toggleRowSelected="toggleRowSelected",l.toggleAllPageRowsSelected="toggleAllPageRowsSelected";var pt=function(e){e.getToggleRowSelectedProps=[vt],e.getToggleAllRowsSelectedProps=[ht],e.getToggleAllPageRowsSelectedProps=[mt],e.stateReducers.push(yt),e.useInstance.push(bt),e.prepareRow.push(wt)};pt.pluginName="useRowSelect";var vt=function(e,t){var n=t.instance,r=t.row,o=n.manualRowSelectedKey,i=void 0===o?"isSelected":o;return[e,{onChange:function(e){r.toggleRowSelected(e.target.checked)},style:{cursor:"pointer"},checked:!(!r.original||!r.original[i])||r.isSelected,title:"Toggle Row Selected",indeterminate:r.isSomeSelected}]},ht=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllRowsSelected,title:"Toggle All Rows Selected",indeterminate:Boolean(!n.isAllRowsSelected&&Object.keys(n.state.selectedRowIds).length)}]},mt=function(e,t){var n=t.instance;return[e,{onChange:function(e){n.toggleAllPageRowsSelected(e.target.checked)},style:{cursor:"pointer"},checked:n.isAllPageRowsSelected,title:"Toggle All Current Page Rows Selected",indeterminate:Boolean(!n.isAllPageRowsSelected&&n.page.some((function(e){var t=e.id;return n.state.selectedRowIds[t]})))}]};function yt(e,t,n,r){if(t.type===l.init)return o({selectedRowIds:{}},e);if(t.type===l.resetSelectedRows)return o({},e,{selectedRowIds:r.initialState.selectedRowIds||{}});if(t.type===l.toggleAllRowsSelected){var i=t.value,a=r.isAllRowsSelected,s=r.rowsById,u=r.nonGroupedRowsById,c=void 0===u?s:u,d=void 0!==i?i:!a,f=Object.assign({},e.selectedRowIds);return d?Object.keys(c).forEach((function(e){f[e]=!0})):Object.keys(c).forEach((function(e){delete f[e]})),o({},e,{selectedRowIds:f})}if(t.type===l.toggleRowSelected){var g=t.id,p=t.value,v=r.rowsById,h=r.selectSubRows,m=void 0===h||h,y=r.getSubRows,b=e.selectedRowIds[g],w=void 0!==p?p:!b;if(b===w)return e;var R=o({},e.selectedRowIds);return function e(t){var n=v[t];if(n.isGrouped||(w?R[t]=!0:delete R[t]),m&&y(n))return y(n).forEach((function(t){return e(t.id)}))}(g),o({},e,{selectedRowIds:R})}if(t.type===l.toggleAllPageRowsSelected){var x=t.value,C=r.page,S=r.rowsById,E=r.selectSubRows,I=void 0===E||E,P=r.isAllPageRowsSelected,B=r.getSubRows,D=void 0!==x?x:!P,k=o({},e.selectedRowIds);return C.forEach((function(e){return function e(t){var n=S[t];if(n.isGrouped||(D?k[t]=!0:delete k[t]),I&&B(n))return B(n).forEach((function(t){return e(t.id)}))}(e.id)})),o({},e,{selectedRowIds:k})}return e}function bt(e){var n=e.data,r=e.rows,o=e.getHooks,i=e.plugins,a=e.rowsById,s=e.nonGroupedRowsById,u=void 0===s?a:s,c=e.autoResetSelectedRows,d=void 0===c||c,g=e.state.selectedRowIds,p=e.selectSubRows,h=void 0===p||p,y=e.dispatch,w=e.page,R=e.getSubRows;v(i,["useFilters","useGroupBy","useSortBy","useExpanded","usePagination"],"useRowSelect");var x=t.useMemo((function(){var e=[];return r.forEach((function(t){var n=h?function e(t,n,r){if(n[t.id])return!0;var o=r(t);if(o&&o.length){var i=!0,a=!1;return o.forEach((function(t){a&&!i||(e(t,n,r)?a=!0:i=!1)})),!!i||!!a&&null}return!1}(t,g,R):!!g[t.id];t.isSelected=!!n,t.isSomeSelected=null===n,n&&e.push(t)})),e}),[r,h,g,R]),C=Boolean(Object.keys(u).length&&Object.keys(g).length),S=C;C&&Object.keys(u).some((function(e){return!g[e]}))&&(C=!1),C||w&&w.length&&w.some((function(e){var t=e.id;return!g[t]}))&&(S=!1);var E=m(d);b((function(){E()&&y({type:l.resetSelectedRows})}),[y,n]);var I=t.useCallback((function(e){return y({type:l.toggleAllRowsSelected,value:e})}),[y]),P=t.useCallback((function(e){return y({type:l.toggleAllPageRowsSelected,value:e})}),[y]),B=t.useCallback((function(e,t){return y({type:l.toggleRowSelected,id:e,value:t})}),[y]),D=m(e),k=f(o().getToggleAllRowsSelectedProps,{instance:D()}),A=f(o().getToggleAllPageRowsSelectedProps,{instance:D()});Object.assign(e,{selectedFlatRows:x,isAllRowsSelected:C,isAllPageRowsSelected:S,toggleRowSelected:B,toggleAllRowsSelected:I,getToggleAllRowsSelectedProps:k,getToggleAllPageRowsSelectedProps:A,toggleAllPageRowsSelected:P})}function wt(e,t){var n=t.instance;e.toggleRowSelected=function(t){return n.toggleRowSelected(e.id,t)},e.getToggleRowSelectedProps=f(n.getHooks().getToggleRowSelectedProps,{instance:n,row:e})}var Rt=function(e){return{}},xt=function(e){return{}};l.setRowState="setRowState",l.setCellState="setCellState",l.resetRowState="resetRowState";var Ct=function(e){e.stateReducers.push(St),e.useInstance.push(Et),e.prepareRow.push(It)};function St(e,t,n,r){var i=r.initialRowStateAccessor,a=void 0===i?Rt:i,s=r.initialCellStateAccessor,u=void 0===s?xt:s,c=r.rowsById;if(t.type===l.init)return o({rowState:{}},e);if(t.type===l.resetRowState)return o({},e,{rowState:r.initialState.rowState||{}});if(t.type===l.setRowState){var d,f=t.rowId,g=t.value,p=void 0!==e.rowState[f]?e.rowState[f]:a(c[f]);return o({},e,{rowState:o({},e.rowState,(d={},d[f]=h(g,p),d))})}if(t.type===l.setCellState){var v,m,y,b,w,R=t.rowId,x=t.columnId,C=t.value,S=void 0!==e.rowState[R]?e.rowState[R]:a(c[R]),E=void 0!==(null==S||null==(v=S.cellState)?void 0:v[x])?S.cellState[x]:u(null==(m=c[R])||null==(y=m.cells)?void 0:y.find((function(e){return e.column.id===x})));return o({},e,{rowState:o({},e.rowState,(w={},w[R]=o({},S,{cellState:o({},S.cellState||{},(b={},b[x]=h(C,E),b))}),w))})}}function Et(e){var n=e.autoResetRowState,r=void 0===n||n,o=e.data,i=e.dispatch,a=t.useCallback((function(e,t){return i({type:l.setRowState,rowId:e,value:t})}),[i]),s=t.useCallback((function(e,t,n){return i({type:l.setCellState,rowId:e,columnId:t,value:n})}),[i]),u=m(r);b((function(){u()&&i({type:l.resetRowState})}),[o]),Object.assign(e,{setRowState:a,setCellState:s})}function It(e,t){var n=t.instance,r=n.initialRowStateAccessor,o=void 0===r?Rt:r,i=n.initialCellStateAccessor,a=void 0===i?xt:i,l=n.state.rowState;e&&(e.state=void 0!==l[e.id]?l[e.id]:o(e),e.setState=function(t){return n.setRowState(e.id,t)},e.cells.forEach((function(t){e.state.cellState||(e.state.cellState={}),t.state=void 0!==e.state.cellState[t.column.id]?e.state.cellState[t.column.id]:a(t),t.setState=function(r){return n.setCellState(e.id,t.column.id,r)}})))}Ct.pluginName="useRowState",l.resetColumnOrder="resetColumnOrder",l.setColumnOrder="setColumnOrder";var Pt=function(e){e.stateReducers.push(Bt),e.visibleColumnsDeps.push((function(e,t){var n=t.instance;return[].concat(e,[n.state.columnOrder])})),e.visibleColumns.push(Dt),e.useInstance.push(kt)};function Bt(e,t,n,r){return t.type===l.init?o({columnOrder:[]},e):t.type===l.resetColumnOrder?o({},e,{columnOrder:r.initialState.columnOrder||[]}):t.type===l.setColumnOrder?o({},e,{columnOrder:h(t.columnOrder,e.columnOrder)}):void 0}function Dt(e,t){var n=t.instance.state.columnOrder;if(!n||!n.length)return e;for(var r=[].concat(n),o=[].concat(e),i=[],a=function(){var e=r.shift(),t=o.findIndex((function(t){return t.id===e}));t>-1&&i.push(o.splice(t,1)[0])};o.length&&r.length;)a();return[].concat(i,o)}function kt(e){var n=e.dispatch;e.setColumnOrder=t.useCallback((function(e){return n({type:l.setColumnOrder,columnOrder:e})}),[n])}Pt.pluginName="useColumnOrder",c.canResize=!0,l.columnStartResizing="columnStartResizing",l.columnResizing="columnResizing",l.columnDoneResizing="columnDoneResizing",l.resetResize="resetResize";var At=function(e){e.getResizerProps=[Ot],e.getHeaderProps.push({style:{position:"relative"}}),e.stateReducers.push(Ft),e.useInstance.push(Tt),e.useInstanceBeforeDimensions.push(Mt)},Ot=function(e,t){var n=t.instance,r=t.header,o=n.dispatch,i=function(e,t){var n=!1;if("touchstart"===e.type){if(e.touches&&e.touches.length>1)return;n=!0}var r=function(e){var t=[];return function e(n){n.columns&&n.columns.length&&n.columns.map(e),t.push(n)}(e),t}(t).map((function(e){return[e.id,e.totalWidth]})),i=n?Math.round(e.touches[0].clientX):e.clientX,a=function(e){o({type:l.columnResizing,clientX:e})},s=function(){return o({type:l.columnDoneResizing})},u={mouse:{moveEvent:"mousemove",moveHandler:function(e){return a(e.clientX)},upEvent:"mouseup",upHandler:function(e){document.removeEventListener("mousemove",u.mouse.moveHandler),document.removeEventListener("mouseup",u.mouse.upHandler),s()}},touch:{moveEvent:"touchmove",moveHandler:function(e){return e.cancelable&&(e.preventDefault(),e.stopPropagation()),a(e.touches[0].clientX),!1},upEvent:"touchend",upHandler:function(e){document.removeEventListener(u.touch.moveEvent,u.touch.moveHandler),document.removeEventListener(u.touch.upEvent,u.touch.moveHandler),s()}}},c=n?u.touch:u.mouse,d=!!function(){if("boolean"==typeof M)return M;var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){e=!1}return M=e}()&&{passive:!1};document.addEventListener(c.moveEvent,c.moveHandler,d),document.addEventListener(c.upEvent,c.upHandler,d),o({type:l.columnStartResizing,columnId:t.id,columnWidth:t.totalWidth,headerIdWidths:r,clientX:i})};return[e,{onMouseDown:function(e){return e.persist()||i(e,r)},onTouchStart:function(e){return e.persist()||i(e,r)},style:{cursor:"col-resize"},draggable:!1,role:"separator"}]};function Ft(e,t){if(t.type===l.init)return o({columnResizing:{columnWidths:{}}},e);if(t.type===l.resetResize)return o({},e,{columnResizing:{columnWidths:{}}});if(t.type===l.columnStartResizing){var n=t.clientX,r=t.columnId,i=t.columnWidth,a=t.headerIdWidths;return o({},e,{columnResizing:o({},e.columnResizing,{startX:n,headerIdWidths:a,columnWidth:i,isResizingColumn:r})})}if(t.type===l.columnResizing){var s=t.clientX,u=e.columnResizing,c=u.startX,d=u.columnWidth,f=u.headerIdWidths,g=(s-c)/d,p={};return(void 0===f?[]:f).forEach((function(e){var t=e[0],n=e[1];p[t]=Math.max(n+n*g,0)})),o({},e,{columnResizing:o({},e.columnResizing,{columnWidths:o({},e.columnResizing.columnWidths,{},p)})})}return t.type===l.columnDoneResizing?o({},e,{columnResizing:o({},e.columnResizing,{startX:null,isResizingColumn:null})}):void 0}At.pluginName="useResizeColumns";var Mt=function(e){var t=e.flatHeaders,n=e.disableResizing,r=e.getHooks,o=e.state.columnResizing,i=m(e);t.forEach((function(e){var t=P(!0!==e.disableResizing&&void 0,!0!==n&&void 0,!0);e.canResize=t,e.width=o.columnWidths[e.id]||e.originalWidth||e.width,e.isResizing=o.isResizingColumn===e.id,t&&(e.getResizerProps=f(r().getResizerProps,{instance:i(),header:e}))}))};function Tt(e){var n=e.plugins,r=e.dispatch,o=e.autoResetResize,i=void 0===o||o,a=e.columns;v(n,["useAbsoluteLayout"],"useResizeColumns");var s=m(i);b((function(){s()&&r({type:l.resetResize})}),[a]);var u=t.useCallback((function(){return r({type:l.resetResize})}),[r]);Object.assign(e,{resetResizing:u})}var Nt={position:"absolute",top:0},Gt=function(e){e.getTableBodyProps.push(Lt),e.getRowProps.push(Lt),e.getHeaderGroupProps.push(Lt),e.getFooterGroupProps.push(Lt),e.getHeaderProps.push((function(e,t){var n=t.column;return[e,{style:o({},Nt,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]})),e.getCellProps.push((function(e,t){var n=t.cell;return[e,{style:o({},Nt,{left:n.column.totalLeft+"px",width:n.column.totalWidth+"px"})}]})),e.getFooterProps.push((function(e,t){var n=t.column;return[e,{style:o({},Nt,{left:n.totalLeft+"px",width:n.totalWidth+"px"})}]}))};Gt.pluginName="useAbsoluteLayout";var Lt=function(e,t){return[e,{style:{position:"relative",width:t.instance.totalColumnsWidth+"px"}}]},zt={display:"inline-block",boxSizing:"border-box"},Ht=function(e,t){return[e,{style:{display:"flex",width:t.instance.totalColumnsWidth+"px"}}]},jt=function(e){e.getRowProps.push(Ht),e.getHeaderGroupProps.push(Ht),e.getFooterGroupProps.push(Ht),e.getHeaderProps.push((function(e,t){var n=t.column;return[e,{style:o({},zt,{width:n.totalWidth+"px"})}]})),e.getCellProps.push((function(e,t){var n=t.cell;return[e,{style:o({},zt,{width:n.column.totalWidth+"px"})}]})),e.getFooterProps.push((function(e,t){var n=t.column;return[e,{style:o({},zt,{width:n.totalWidth+"px"})}]}))};function Wt(e){e.getTableProps.push(Vt),e.getRowProps.push(Xt),e.getHeaderGroupProps.push(Xt),e.getFooterGroupProps.push(Xt),e.getHeaderProps.push(_t),e.getCellProps.push(qt),e.getFooterProps.push(Ut)}jt.pluginName="useBlockLayout",Wt.pluginName="useFlexLayout";var Vt=function(e,t){return[e,{style:{minWidth:t.instance.totalColumnsMinWidth+"px"}}]},Xt=function(e,t){return[e,{style:{display:"flex",flex:"1 0 auto",minWidth:t.instance.totalColumnsMinWidth+"px"}}]},_t=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]},qt=function(e,t){var n=t.cell;return[e,{style:{boxSizing:"border-box",flex:n.column.totalFlexWidth+" 0 auto",minWidth:n.column.totalMinWidth+"px",width:n.column.totalWidth+"px"}}]},Ut=function(e,t){var n=t.column;return[e,{style:{boxSizing:"border-box",flex:n.totalFlexWidth?n.totalFlexWidth+" 0 auto":void 0,minWidth:n.totalMinWidth+"px",width:n.totalWidth+"px"}}]};function Yt(e){e.stateReducers.push($t),e.getTableProps.push(Kt),e.getHeaderProps.push(Jt)}Yt.pluginName="useGridLayout";var Kt=function(e,t){return[e,{style:{display:"grid",gridTemplateColumns:t.instance.state.gridLayout.columnWidths.map((function(e){return e})).join(" ")}}]},Jt=function(e,t){return[e,{id:"header-cell-"+t.column.id,style:{position:"sticky"}}]};function $t(e,t,n,r){if("init"===t.type)return o({gridLayout:{columnWidths:r.columns.map((function(){return"auto"}))}},e);if("columnStartResizing"===t.type){var i=t.columnId,a=r.visibleColumns.findIndex((function(e){return e.id===i})),l=function(e){var t,n=null==(t=document.getElementById("header-cell-"+e))?void 0:t.offsetWidth;if(void 0!==n)return n}(i);return void 0!==l?o({},e,{gridLayout:o({},e.gridLayout,{columnId:i,columnIndex:a,startingWidth:l})}):e}if("columnResizing"===t.type){var s=e.gridLayout,u=s.columnIndex,c=s.startingWidth,d=s.columnWidths,f=c-(e.columnResizing.startX-t.clientX),g=[].concat(d);return g[u]=f+"px",o({},e,{gridLayout:o({},e.gridLayout,{columnWidths:g})})}}e._UNSTABLE_usePivotColumns=tt,e.actions=l,e.defaultColumn=c,e.defaultGroupByFn=je,e.defaultOrderByFn=$e,e.defaultRenderer=s,e.emptyRenderer=u,e.ensurePluginOrder=v,e.flexRender=R,e.functionalUpdate=h,e.loopHooks=p,e.makePropGetter=f,e.makeRenderer=w,e.reduceHooks=g,e.safeUseLayoutEffect=y,e.useAbsoluteLayout=Gt,e.useAsyncDebounce=function(e,n){void 0===n&&(n=0);var o=t.useRef({}),i=m(e),a=m(n);return t.useCallback(function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,l,s=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(t=s.length,n=new Array(t),l=0;l<t;l++)n[l]=s[l];return o.current.promise||(o.current.promise=new Promise((function(e,t){o.current.resolve=e,o.current.reject=t}))),o.current.timeout&&clearTimeout(o.current.timeout),o.current.timeout=setTimeout(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete o.current.timeout,e.prev=1,e.t0=o.current,e.next=5,i().apply(void 0,n);case 5:e.t1=e.sent,e.t0.resolve.call(e.t0,e.t1),e.next=12;break;case 9:e.prev=9,e.t2=e.catch(1),o.current.reject(e.t2);case 12:return e.prev=12,delete o.current.promise,e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[1,9,12,15]])}))),a()),e.abrupt("return",o.current.promise);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),[i,a])},e.useBlockLayout=jt,e.useColumnOrder=Pt,e.useExpanded=le,e.useFilters=Se,e.useFlexLayout=Wt,e.useGetLatest=m,e.useGlobalFilter=Pe,e.useGridLayout=Yt,e.useGroupBy=Me,e.useMountedLayoutEffect=b,e.usePagination=Ze,e.useResizeColumns=At,e.useRowSelect=pt,e.useRowState=Ct,e.useSortBy=Ue,e.useTable=function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e=oe(e),r=[q].concat(r);var a=m(t.useRef({}).current);Object.assign(a(),o({},e,{plugins:r,hooks:_()})),r.filter(Boolean).forEach((function(e){e(a().hooks)}));var s=m(a().hooks);a().getHooks=s,delete a().hooks,Object.assign(a(),g(s().useOptions,oe(e)));var u=a(),c=u.data,d=u.columns,v=u.initialState,h=u.defaultColumn,y=u.getSubRows,b=u.getRowId,R=u.stateReducer,I=u.useControlledState,P=m(R),B=t.useCallback((function(e,t){if(!t.type)throw console.info({action:t}),new Error("Unknown Action 👆");return[].concat(s().stateReducers,Array.isArray(P())?P():[P()]).reduce((function(n,r){return r(n,t,e,a())||n}),e)}),[s,P,a]),D=t.useReducer(B,void 0,(function(){return B(v,{type:l.init})})),k=D[0],A=D[1],O=g([].concat(s().useControlledState,[I]),k,{instance:a()});Object.assign(a(),{state:O,dispatch:A});var F=t.useMemo((function(){return x(g(s().columns,d,{instance:a()}))}),[s,a,d].concat(g(s().columnsDeps,[],{instance:a()})));a().columns=F;var M=t.useMemo((function(){return g(s().allColumns,C(F),{instance:a()}).map(S)}),[F,s,a].concat(g(s().allColumnsDeps,[],{instance:a()})));a().allColumns=M;var T=t.useMemo((function(){for(var e=[],t=[],n={},r=[].concat(M);r.length;){var o=r.shift();ae({data:c,rows:e,flatRows:t,rowsById:n,column:o,getRowId:b,getSubRows:y,accessValueHooks:s().accessValue,getInstance:a})}return[e,t,n]}),[M,c,b,y,s,a]),N=T[0],G=T[1],L=T[2];Object.assign(a(),{rows:N,initialRows:[].concat(N),flatRows:G,rowsById:L}),p(s().useInstanceAfterData,a());var z=t.useMemo((function(){return g(s().visibleColumns,M,{instance:a()}).map((function(e){return E(e,h)}))}),[s,M,a,h].concat(g(s().visibleColumnsDeps,[],{instance:a()})));M=t.useMemo((function(){var e=[].concat(z);return M.forEach((function(t){e.find((function(e){return e.id===t.id}))||e.push(t)})),e}),[M,z]),a().allColumns=M;var H=t.useMemo((function(){return g(s().headerGroups,function(e,t,n){void 0===n&&(n=function(){return{}});for(var r=[],i=e,a=0,l=function(){return a++},s=function(){var e={headers:[]},a=[],s=i.some((function(e){return e.parent}));i.forEach((function(r){var i,u=[].concat(a).reverse()[0];s&&(i=r.parent?o({},r.parent,{originalId:r.parent.id,id:r.parent.id+"_"+l(),headers:[r]},n(r)):E(o({originalId:r.id+"_placeholder",id:r.id+"_placeholder_"+l(),placeholderOf:r,headers:[r]},n(r)),t),u&&u.originalId===i.originalId?u.headers.push(r):a.push(i)),e.headers.push(r)})),r.push(e),i=a};i.length;)s();return r.reverse()}(z,h),a())}),[s,z,h,a].concat(g(s().headerGroupsDeps,[],{instance:a()})));a().headerGroups=H;var j=t.useMemo((function(){return H.length?H[0].headers:[]}),[H]);a().headers=j,a().flatHeaders=H.reduce((function(e,t){return[].concat(e,t.headers)}),[]),p(s().useInstanceBeforeDimensions,a());var W=z.filter((function(e){return e.isVisible})).map((function(e){return e.id})).sort().join("_");z=t.useMemo((function(){return z.filter((function(e){return e.isVisible}))}),[z,W]),a().visibleColumns=z;var V=ie(j),X=V[0],U=V[1],Y=V[2];return a().totalColumnsMinWidth=X,a().totalColumnsWidth=U,a().totalColumnsMaxWidth=Y,p(s().useInstance,a()),[].concat(a().flatHeaders,a().allColumns).forEach((function(e){e.render=w(a(),e),e.getHeaderProps=f(s().getHeaderProps,{instance:a(),column:e}),e.getFooterProps=f(s().getFooterProps,{instance:a(),column:e})})),a().headerGroups=t.useMemo((function(){return H.filter((function(e,t){return e.headers=e.headers.filter((function(e){return e.headers?function e(t){return t.filter((function(t){return t.headers?e(t.headers):t.isVisible})).length}(e.headers):e.isVisible})),!!e.headers.length&&(e.getHeaderGroupProps=f(s().getHeaderGroupProps,{instance:a(),headerGroup:e,index:t}),e.getFooterGroupProps=f(s().getFooterGroupProps,{instance:a(),headerGroup:e,index:t}),!0)}))}),[H,a,s]),a().footerGroups=[].concat(a().headerGroups).reverse(),a().prepareRow=t.useCallback((function(e){e.getRowProps=f(s().getRowProps,{instance:a(),row:e}),e.allCells=M.map((function(t){var n=e.values[t.id],r={column:t,row:e,value:n};return r.getCellProps=f(s().getCellProps,{instance:a(),cell:r}),r.render=w(a(),t,{row:e,cell:r,value:n}),r})),e.cells=z.map((function(t){return e.allCells.find((function(e){return e.column.id===t.id}))})),p(s().prepareRow,e,{instance:a()})}),[s,a,M,z]),a().getTableProps=f(s().getTableProps,{instance:a()}),a().getTableBodyProps=f(s().getTableBodyProps,{instance:a()}),p(s().useFinalInstance,a()),a()},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(1024))},35509:(e,t,n)=>{e.exports=n(52178)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[806],{91969:(t,e,r)=>{"use strict";var n=r(47033),o={"text/plain":"Text","text/html":"Url",default:"Text"};t.exports=function(t,e){var r,a,u,i,s,c,f=!1;e||(e={}),r=e.debug||!1;try{if(u=n(),i=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=t,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(n){if(n.stopPropagation(),e.format)if(n.preventDefault(),void 0===n.clipboardData){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var a=o[e.format]||o.default;window.clipboardData.setData(a,t)}else n.clipboardData.clearData(),n.clipboardData.setData(e.format,t);e.onCopy&&(n.preventDefault(),e.onCopy(n.clipboardData))})),document.body.appendChild(c),i.selectNodeContents(c),s.addRange(i),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");f=!0}catch(n){r&&console.error("unable to copy using execCommand: ",n),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),f=!0}catch(n){r&&console.error("unable to copy using clipboardData: ",n),r&&console.error("falling back to prompt"),a=function(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}("message"in e?e.message:"Copy to clipboard: #{key}, Enter"),window.prompt(a,t)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(i):s.removeAllRanges()),c&&document.body.removeChild(c),u()}return f}},65549:(t,e,r)=>{var n=r(84457)(r(70441),"DataView");t.exports=n},54613:(t,e,r)=>{var n=r(38145),o=r(67681),a=r(65239),u=r(78228),i=r(95920);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=u,s.prototype.set=i,t.exports=s},70131:(t,e,r)=>{var n=r(17168),o=r(66582),a=r(13867),u=r(59557),i=r(22726);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=u,s.prototype.set=i,t.exports=s},64438:(t,e,r)=>{var n=r(84457)(r(70441),"Map");t.exports=n},90278:(t,e,r)=>{var n=r(67076),o=r(2530),a=r(44858),u=r(96265),i=r(59909);function s(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}s.prototype.clear=n,s.prototype.delete=o,s.prototype.get=a,s.prototype.has=u,s.prototype.set=i,t.exports=s},87076:(t,e,r)=>{var n=r(84457)(r(70441),"Promise");t.exports=n},69902:(t,e,r)=>{var n=r(84457)(r(70441),"Set");t.exports=n},61124:(t,e,r)=>{var n=r(90278),o=r(96718),a=r(66996);function u(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}u.prototype.add=u.prototype.push=o,u.prototype.has=a,t.exports=u},4281:(t,e,r)=>{var n=r(70131),o=r(30560),a=r(58282),u=r(46638),i=r(94270),s=r(3229);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=o,c.prototype.delete=a,c.prototype.get=u,c.prototype.has=i,c.prototype.set=s,t.exports=c},24389:(t,e,r)=>{var n=r(70441).Uint8Array;t.exports=n},18965:(t,e,r)=>{var n=r(84457)(r(70441),"WeakMap");t.exports=n},26758:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););return t}},69037:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,a=[];++r<n;){var u=t[r];e(u,r,t)&&(a[o++]=u)}return a}},16222:(t,e,r)=>{var n=r(55092),o=r(86981),a=r(77236),u=r(98752),i=r(74363),s=r(14812),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=a(t),f=!r&&o(t),l=!r&&!f&&u(t),p=!r&&!f&&!l&&s(t),h=r||f||l||p,d=h?n(t.length,String):[],v=d.length;for(var y in t)!e&&!c.call(t,y)||h&&("length"==y||l&&("offset"==y||"parent"==y)||p&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||i(y,v))||d.push(y);return d}},26460:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}},63848:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}},26974:t=>{t.exports=function(t,e,r,n){var o=-1,a=null==t?0:t.length;for(n&&a&&(r=t[++o]);++o<a;)r=e(r,t[o],o,t);return r}},44793:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},30804:t=>{t.exports=function(t){return t.split("")}},64159:t=>{var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(e)||[]}},47596:(t,e,r)=>{var n=r(40999),o=r(26530),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var u=t[e];a.call(t,e)&&o(u,r)&&(void 0!==r||e in t)||n(t,e,r)}},3833:(t,e,r)=>{var n=r(26530);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},5615:(t,e,r)=>{var n=r(96051),o=r(52635);t.exports=function(t,e){return t&&n(e,o(e),t)}},3238:(t,e,r)=>{var n=r(96051),o=r(5850);t.exports=function(t,e){return t&&n(e,o(e),t)}},40999:(t,e,r)=>{var n=r(9346);t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},42327:(t,e,r)=>{var n=r(4281),o=r(26758),a=r(47596),u=r(5615),i=r(3238),s=r(78172),c=r(66438),f=r(23746),l=r(93989),p=r(36094),h=r(15559),d=r(26686),v=r(26019),y=r(27621),_=r(73905),m=r(77236),b=r(98752),x=r(69656),g=r(85973),F=r(66925),w=r(52635),j=r(5850),E="[object Arguments]",O="[object Function]",A="[object Object]",D={};D[E]=D["[object Array]"]=D["[object ArrayBuffer]"]=D["[object DataView]"]=D["[object Boolean]"]=D["[object Date]"]=D["[object Float32Array]"]=D["[object Float64Array]"]=D["[object Int8Array]"]=D["[object Int16Array]"]=D["[object Int32Array]"]=D["[object Map]"]=D["[object Number]"]=D[A]=D["[object RegExp]"]=D["[object Set]"]=D["[object String]"]=D["[object Symbol]"]=D["[object Uint8Array]"]=D["[object Uint8ClampedArray]"]=D["[object Uint16Array]"]=D["[object Uint32Array]"]=!0,D["[object Error]"]=D[O]=D["[object WeakMap]"]=!1,t.exports=function t(e,r,C,S,P,k){var T,$=1&r,R=2&r,z=4&r;if(C&&(T=P?C(e,S,P,k):C(e)),void 0!==T)return T;if(!g(e))return e;var M=m(e);if(M){if(T=v(e),!$)return c(e,T)}else{var U=d(e),I=U==O||"[object GeneratorFunction]"==U;if(b(e))return s(e,$);if(U==A||U==E||I&&!P){if(T=R||I?{}:_(e),!$)return R?l(e,i(T,e)):f(e,u(T,e))}else{if(!D[U])return P?e:{};T=y(e,U,$)}}k||(k=new n);var V=k.get(e);if(V)return V;k.set(e,T),F(e)?e.forEach((function(n){T.add(t(n,r,C,n,e,k))})):x(e)&&e.forEach((function(n,o){T.set(o,t(n,r,C,o,e,k))}));var N=M?void 0:(z?R?h:p:R?j:w)(e);return o(N||e,(function(n,o){N&&(n=e[o=n]),a(T,o,t(n,r,C,o,e,k))})),T}},67372:(t,e,r)=>{var n=r(85973),o=Object.create,a=function(){function t(){}return function(e){if(!n(e))return{};if(o)return o(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=a},60641:(t,e,r)=>{var n=r(32630)();t.exports=n},35897:(t,e,r)=>{var n=r(60641),o=r(52635);t.exports=function(t,e){return t&&n(t,e,o)}},80166:(t,e,r)=>{var n=r(18422),o=r(18780);t.exports=function(t,e){for(var r=0,a=(e=n(e,t)).length;null!=t&&r<a;)t=t[o(e[r++])];return r&&r==a?t:void 0}},39329:(t,e,r)=>{var n=r(63848),o=r(77236);t.exports=function(t,e,r){var a=e(t);return o(t)?a:n(a,r(t))}},48402:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t,r){return null!=t&&e.call(t,r)}},70007:t=>{t.exports=function(t,e){return null!=t&&e in Object(t)}},58520:(t,e,r)=>{var n=r(94318),o=r(3387);t.exports=function(t){return o(t)&&"[object Arguments]"==n(t)}},31071:(t,e,r)=>{var n=r(67229),o=r(3387);t.exports=function t(e,r,a,u,i){return e===r||(null==e||null==r||!o(e)&&!o(r)?e!=e&&r!=r:n(e,r,a,u,t,i))}},67229:(t,e,r)=>{var n=r(4281),o=r(12503),a=r(6001),u=r(88784),i=r(26686),s=r(77236),c=r(98752),f=r(14812),l="[object Arguments]",p="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,v,y,_){var m=s(t),b=s(e),x=m?p:i(t),g=b?p:i(e),F=(x=x==l?h:x)==h,w=(g=g==l?h:g)==h,j=x==g;if(j&&c(t)){if(!c(e))return!1;m=!0,F=!1}if(j&&!F)return _||(_=new n),m||f(t)?o(t,e,r,v,y,_):a(t,e,x,r,v,y,_);if(!(1&r)){var E=F&&d.call(t,"__wrapped__"),O=w&&d.call(e,"__wrapped__");if(E||O){var A=E?t.value():t,D=O?e.value():e;return _||(_=new n),y(A,D,r,v,_)}}return!!j&&(_||(_=new n),u(t,e,r,v,y,_))}},4368:(t,e,r)=>{var n=r(26686),o=r(3387);t.exports=function(t){return o(t)&&"[object Map]"==n(t)}},9157:(t,e,r)=>{var n=r(4281),o=r(31071);t.exports=function(t,e,r,a){var u=r.length,i=u,s=!a;if(null==t)return!i;for(t=Object(t);u--;){var c=r[u];if(s&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++u<i;){var f=(c=r[u])[0],l=t[f],p=c[1];if(s&&c[2]){if(void 0===l&&!(f in t))return!1}else{var h=new n;if(a)var d=a(l,p,f,t,e,h);if(!(void 0===d?o(p,l,3,a,h):d))return!1}}return!0}},62987:(t,e,r)=>{var n=r(93839),o=r(47275),a=r(85973),u=r(76822),i=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,l=c.hasOwnProperty,p=RegExp("^"+f.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!a(t)||o(t))&&(n(t)?p:i).test(u(t))}},4642:(t,e,r)=>{var n=r(26686),o=r(3387);t.exports=function(t){return o(t)&&"[object Set]"==n(t)}},73749:(t,e,r)=>{var n=r(94318),o=r(99216),a=r(3387),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return a(t)&&o(t.length)&&!!u[n(t)]}},88904:(t,e,r)=>{var n=r(68418),o=r(54555),a=r(15362),u=r(77236),i=r(21651);t.exports=function(t){return"function"==typeof t?t:null==t?a:"object"==typeof t?u(t)?o(t[0],t[1]):n(t):i(t)}},78803:(t,e,r)=>{var n=r(65003),o=r(41466),a=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=[];for(var r in Object(t))a.call(t,r)&&"constructor"!=r&&e.push(r);return e}},32578:(t,e,r)=>{var n=r(85973),o=r(65003),a=r(14904),u=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return a(t);var e=o(t),r=[];for(var i in t)("constructor"!=i||!e&&u.call(t,i))&&r.push(i);return r}},68418:(t,e,r)=>{var n=r(9157),o=r(59182),a=r(57375);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?a(e[0][0],e[0][1]):function(r){return r===t||n(r,t,e)}}},54555:(t,e,r)=>{var n=r(31071),o=r(33795),a=r(33646),u=r(73266),i=r(41457),s=r(57375),c=r(18780);t.exports=function(t,e){return u(t)&&i(e)?s(c(t),e):function(r){var u=o(r,t);return void 0===u&&u===e?a(r,t):n(e,u,3)}}},61712:t=>{t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},14815:(t,e,r)=>{var n=r(80166);t.exports=function(t){return function(e){return n(e,t)}}},40516:t=>{t.exports=function(t){return function(e){return null==t?void 0:t[e]}}},4293:t=>{t.exports=function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var a=Array(o);++n<o;)a[n]=t[n+e];return a}},55092:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},90454:(t,e,r)=>{var n=r(54690),o=r(26460),a=r(77236),u=r(22945),i=n?n.prototype:void 0,s=i?i.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(a(e))return o(e,t)+"";if(u(e))return s?s.call(e):"";var r=e+"";return"0"==r&&1/e==-Infinity?"-0":r}},76535:t=>{t.exports=function(t){return function(e){return t(e)}}},80925:(t,e,r)=>{var n=r(26460);t.exports=function(t,e){return n(e,(function(e){return t[e]}))}},30555:t=>{t.exports=function(t,e){return t.has(e)}},18422:(t,e,r)=>{var n=r(77236),o=r(73266),a=r(23879),u=r(41119);t.exports=function(t,e){return n(t)?t:o(t,e)?[t]:a(u(t))}},24793:(t,e,r)=>{var n=r(4293);t.exports=function(t,e,r){var o=t.length;return r=void 0===r?o:r,!e&&r>=o?t:n(t,e,r)}},13632:(t,e,r)=>{var n=r(24389);t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},78172:(t,e,r)=>{t=r.nmd(t);var n=r(70441),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,u=a&&a.exports===o?n.Buffer:void 0,i=u?u.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=i?i(r):new t.constructor(r);return t.copy(n),n}},39841:(t,e,r)=>{var n=r(13632);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}},62769:t=>{var e=/\w*$/;t.exports=function(t){var r=new t.constructor(t.source,e.exec(t));return r.lastIndex=t.lastIndex,r}},49130:(t,e,r)=>{var n=r(54690),o=n?n.prototype:void 0,a=o?o.valueOf:void 0;t.exports=function(t){return a?Object(a.call(t)):{}}},22215:(t,e,r)=>{var n=r(13632);t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},66438:t=>{t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},96051:(t,e,r)=>{var n=r(47596),o=r(40999);t.exports=function(t,e,r,a){var u=!r;r||(r={});for(var i=-1,s=e.length;++i<s;){var c=e[i],f=a?a(r[c],t[c],c,r,t):void 0;void 0===f&&(f=t[c]),u?o(r,c,f):n(r,c,f)}return r}},23746:(t,e,r)=>{var n=r(96051),o=r(75904);t.exports=function(t,e){return n(t,o(t),e)}},93989:(t,e,r)=>{var n=r(96051),o=r(12511);t.exports=function(t,e){return n(t,o(t),e)}},38507:(t,e,r)=>{var n=r(70441)["__core-js_shared__"];t.exports=n},32630:t=>{t.exports=function(t){return function(e,r,n){for(var o=-1,a=Object(e),u=n(e),i=u.length;i--;){var s=u[t?i:++o];if(!1===r(a[s],s,a))break}return e}}},54660:(t,e,r)=>{var n=r(24793),o=r(34327),a=r(51119),u=r(41119);t.exports=function(t){return function(e){e=u(e);var r=o(e)?a(e):void 0,i=r?r[0]:e.charAt(0),s=r?n(r,1).join(""):e.slice(1);return i[t]()+s}}},34958:(t,e,r)=>{var n=r(26974),o=r(58638),a=r(90280),u=RegExp("['’]","g");t.exports=function(t){return function(e){return n(a(o(e).replace(u,"")),t,"")}}},80968:(t,e,r)=>{var n=r(40516)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});t.exports=n},9346:(t,e,r)=>{var n=r(84457),o=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},12503:(t,e,r)=>{var n=r(61124),o=r(44793),a=r(30555);t.exports=function(t,e,r,u,i,s){var c=1&r,f=t.length,l=e.length;if(f!=l&&!(c&&l>f))return!1;var p=s.get(t),h=s.get(e);if(p&&h)return p==e&&h==t;var d=-1,v=!0,y=2&r?new n:void 0;for(s.set(t,e),s.set(e,t);++d<f;){var _=t[d],m=e[d];if(u)var b=c?u(m,_,d,e,t,s):u(_,m,d,t,e,s);if(void 0!==b){if(b)continue;v=!1;break}if(y){if(!o(e,(function(t,e){if(!a(y,e)&&(_===t||i(_,t,r,u,s)))return y.push(e)}))){v=!1;break}}else if(_!==m&&!i(_,m,r,u,s)){v=!1;break}}return s.delete(t),s.delete(e),v}},6001:(t,e,r)=>{var n=r(54690),o=r(24389),a=r(26530),u=r(12503),i=r(52876),s=r(66350),c=n?n.prototype:void 0,f=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,l,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!l(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return a(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=i;case"[object Set]":var d=1&n;if(h||(h=s),t.size!=e.size&&!d)return!1;var v=p.get(t);if(v)return v==e;n|=2,p.set(t,e);var y=u(h(t),h(e),n,c,l,p);return p.delete(t),y;case"[object Symbol]":if(f)return f.call(t)==f.call(e)}return!1}},88784:(t,e,r)=>{var n=r(36094),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,a,u,i){var s=1&r,c=n(t),f=c.length;if(f!=n(e).length&&!s)return!1;for(var l=f;l--;){var p=c[l];if(!(s?p in e:o.call(e,p)))return!1}var h=i.get(t),d=i.get(e);if(h&&d)return h==e&&d==t;var v=!0;i.set(t,e),i.set(e,t);for(var y=s;++l<f;){var _=t[p=c[l]],m=e[p];if(a)var b=s?a(m,_,p,e,t,i):a(_,m,p,t,e,i);if(!(void 0===b?_===m||u(_,m,r,a,i):b)){v=!1;break}y||(y="constructor"==p)}if(v&&!y){var x=t.constructor,g=e.constructor;x==g||!("constructor"in t)||!("constructor"in e)||"function"==typeof x&&x instanceof x&&"function"==typeof g&&g instanceof g||(v=!1)}return i.delete(t),i.delete(e),v}},36094:(t,e,r)=>{var n=r(39329),o=r(75904),a=r(52635);t.exports=function(t){return n(t,a,o)}},15559:(t,e,r)=>{var n=r(39329),o=r(12511),a=r(5850);t.exports=function(t){return n(t,a,o)}},72907:(t,e,r)=>{var n=r(87620);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},59182:(t,e,r)=>{var n=r(41457),o=r(52635);t.exports=function(t){for(var e=o(t),r=e.length;r--;){var a=e[r],u=t[a];e[r]=[a,u,n(u)]}return e}},84457:(t,e,r)=>{var n=r(62987),o=r(79741);t.exports=function(t,e){var r=o(t,e);return n(r)?r:void 0}},71407:(t,e,r)=>{var n=r(53717)(Object.getPrototypeOf,Object);t.exports=n},75904:(t,e,r)=>{var n=r(69037),o=r(27471),a=Object.prototype.propertyIsEnumerable,u=Object.getOwnPropertySymbols,i=u?function(t){return null==t?[]:(t=Object(t),n(u(t),(function(e){return a.call(t,e)})))}:o;t.exports=i},12511:(t,e,r)=>{var n=r(63848),o=r(71407),a=r(75904),u=r(27471),i=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)n(e,a(t)),t=o(t);return e}:u;t.exports=i},26686:(t,e,r)=>{var n=r(65549),o=r(64438),a=r(87076),u=r(69902),i=r(18965),s=r(94318),c=r(76822),f="[object Map]",l="[object Promise]",p="[object Set]",h="[object WeakMap]",d="[object DataView]",v=c(n),y=c(o),_=c(a),m=c(u),b=c(i),x=s;(n&&x(new n(new ArrayBuffer(1)))!=d||o&&x(new o)!=f||a&&x(a.resolve())!=l||u&&x(new u)!=p||i&&x(new i)!=h)&&(x=function(t){var e=s(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return d;case y:return f;case _:return l;case m:return p;case b:return h}return e}),t.exports=x},79741:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},37383:(t,e,r)=>{var n=r(18422),o=r(86981),a=r(77236),u=r(74363),i=r(99216),s=r(18780);t.exports=function(t,e,r){for(var c=-1,f=(e=n(e,t)).length,l=!1;++c<f;){var p=s(e[c]);if(!(l=null!=t&&r(t,p)))break;t=t[p]}return l||++c!=f?l:!!(f=null==t?0:t.length)&&i(f)&&u(p,f)&&(a(t)||o(t))}},34327:t=>{var e=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return e.test(t)}},65471:t=>{var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return e.test(t)}},38145:(t,e,r)=>{var n=r(75148);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},67681:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},65239:(t,e,r)=>{var n=r(75148),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(e,t)?e[t]:void 0}},78228:(t,e,r)=>{var n=r(75148),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:o.call(e,t)}},95920:(t,e,r)=>{var n=r(75148);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},26019:t=>{var e=Object.prototype.hasOwnProperty;t.exports=function(t){var r=t.length,n=new t.constructor(r);return r&&"string"==typeof t[0]&&e.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},27621:(t,e,r)=>{var n=r(13632),o=r(39841),a=r(62769),u=r(49130),i=r(22215);t.exports=function(t,e,r){var s=t.constructor;switch(e){case"[object ArrayBuffer]":return n(t);case"[object Boolean]":case"[object Date]":return new s(+t);case"[object DataView]":return o(t,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return i(t,r);case"[object Map]":case"[object Set]":return new s;case"[object Number]":case"[object String]":return new s(t);case"[object RegExp]":return a(t);case"[object Symbol]":return u(t)}}},73905:(t,e,r)=>{var n=r(67372),o=r(71407),a=r(65003);t.exports=function(t){return"function"!=typeof t.constructor||a(t)?{}:n(o(t))}},74363:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},73266:(t,e,r)=>{var n=r(77236),o=r(22945),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,u=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!o(t))||u.test(t)||!a.test(t)||null!=e&&t in Object(e)}},87620:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},47275:(t,e,r)=>{var n,o=r(38507),a=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!a&&a in t}},65003:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},41457:(t,e,r)=>{var n=r(85973);t.exports=function(t){return t==t&&!n(t)}},17807:t=>{t.exports=function(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}},17168:t=>{t.exports=function(){this.__data__=[],this.size=0}},66582:(t,e,r)=>{var n=r(3833),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0||(r==e.length-1?e.pop():o.call(e,r,1),--this.size,0))}},13867:(t,e,r)=>{var n=r(3833);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},59557:(t,e,r)=>{var n=r(3833);t.exports=function(t){return n(this.__data__,t)>-1}},22726:(t,e,r)=>{var n=r(3833);t.exports=function(t,e){var r=this.__data__,o=n(r,t);return o<0?(++this.size,r.push([t,e])):r[o][1]=e,this}},67076:(t,e,r)=>{var n=r(54613),o=r(70131),a=r(64438);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(a||o),string:new n}}},2530:(t,e,r)=>{var n=r(72907);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},44858:(t,e,r)=>{var n=r(72907);t.exports=function(t){return n(this,t).get(t)}},96265:(t,e,r)=>{var n=r(72907);t.exports=function(t){return n(this,t).has(t)}},59909:(t,e,r)=>{var n=r(72907);t.exports=function(t,e){var r=n(this,t),o=r.size;return r.set(t,e),this.size+=r.size==o?0:1,this}},52876:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},57375:t=>{t.exports=function(t,e){return function(r){return null!=r&&r[t]===e&&(void 0!==e||t in Object(r))}}},97085:(t,e,r)=>{var n=r(30427);t.exports=function(t){var e=n(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}},75148:(t,e,r)=>{var n=r(84457)(Object,"create");t.exports=n},41466:(t,e,r)=>{var n=r(53717)(Object.keys,Object);t.exports=n},14904:t=>{t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},91782:(t,e,r)=>{t=r.nmd(t);var n=r(34414),o=e&&!e.nodeType&&e,a=o&&t&&!t.nodeType&&t,u=a&&a.exports===o&&n.process,i=function(){try{return a&&a.require&&a.require("util").types||u&&u.binding&&u.binding("util")}catch(t){}}();t.exports=i},53717:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},96718:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},66996:t=>{t.exports=function(t){return this.__data__.has(t)}},66350:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},30560:(t,e,r)=>{var n=r(70131);t.exports=function(){this.__data__=new n,this.size=0}},58282:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},46638:t=>{t.exports=function(t){return this.__data__.get(t)}},94270:t=>{t.exports=function(t){return this.__data__.has(t)}},3229:(t,e,r)=>{var n=r(70131),o=r(64438),a=r(90278);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var u=r.__data__;if(!o||u.length<199)return u.push([t,e]),this.size=++r.size,this;r=this.__data__=new a(u)}return r.set(t,e),this.size=r.size,this}},51119:(t,e,r)=>{var n=r(30804),o=r(34327),a=r(64501);t.exports=function(t){return o(t)?a(t):n(t)}},23879:(t,e,r)=>{var n=r(97085),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,u=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,r,n,o){e.push(n?o.replace(a,"$1"):r||t)})),e}));t.exports=u},18780:(t,e,r)=>{var n=r(22945);t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e}},76822:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},64501:t=>{var e="\\ud800-\\udfff",r="["+e+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^"+e+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",i="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+n+"|"+o+")?",c="[\\ufe0e\\ufe0f]?",f=c+s+"(?:\\u200d(?:"+[a,u,i].join("|")+")"+c+s+")*",l="(?:"+[a+n+"?",n,u,i,r].join("|")+")",p=RegExp(o+"(?="+o+")|"+l+f,"g");t.exports=function(t){return t.match(p)||[]}},6645:t=>{var e="\\ud800-\\udfff",r="\\u2700-\\u27bf",n="a-z\\xdf-\\xf6\\xf8-\\xff",o="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",u="["+a+"]",i="\\d+",s="["+r+"]",c="["+n+"]",f="[^"+e+a+i+r+n+o+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+o+"]",d="(?:"+c+"|"+f+")",v="(?:"+h+"|"+f+")",y="(?:['’](?:d|ll|m|re|s|t|ve))?",_="(?:['’](?:D|LL|M|RE|S|T|VE))?",m="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",x=b+m+"(?:\\u200d(?:"+["[^"+e+"]",l,p].join("|")+")"+b+m+")*",g="(?:"+[s,l,p].join("|")+")"+x,F=RegExp([h+"?"+c+"+"+y+"(?="+[u,h,"$"].join("|")+")",v+"+"+_+"(?="+[u,h+d,"$"].join("|")+")",h+"?"+d+"+"+y,h+"+"+_,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,g].join("|"),"g");t.exports=function(t){return t.match(F)||[]}},39935:(t,e,r)=>{var n=r(73400),o=r(34958)((function(t,e,r){return e=e.toLowerCase(),t+(r?n(e):e)}));t.exports=o},73400:(t,e,r)=>{var n=r(41119),o=r(23940);t.exports=function(t){return o(n(t).toLowerCase())}},13382:(t,e,r)=>{var n=r(42327);t.exports=function(t,e){return n(t,5,e="function"==typeof e?e:void 0)}},58638:(t,e,r)=>{var n=r(80968),o=r(41119),a=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,u=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=o(t))&&t.replace(a,n).replace(u,"")}},26530:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},33795:(t,e,r)=>{var n=r(80166);t.exports=function(t,e,r){var o=null==t?void 0:n(t,e);return void 0===o?r:o}},23973:(t,e,r)=>{var n=r(48402),o=r(37383);t.exports=function(t,e){return null!=t&&o(t,e,n)}},33646:(t,e,r)=>{var n=r(70007),o=r(37383);t.exports=function(t,e){return null!=t&&o(t,e,n)}},15362:t=>{t.exports=function(t){return t}},86981:(t,e,r)=>{var n=r(58520),o=r(3387),a=Object.prototype,u=a.hasOwnProperty,i=a.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(t){return o(t)&&u.call(t,"callee")&&!i.call(t,"callee")};t.exports=s},77236:t=>{var e=Array.isArray;t.exports=e},81580:(t,e,r)=>{var n=r(93839),o=r(99216);t.exports=function(t){return null!=t&&o(t.length)&&!n(t)}},98752:(t,e,r)=>{t=r.nmd(t);var n=r(70441),o=r(7149),a=e&&!e.nodeType&&e,u=a&&t&&!t.nodeType&&t,i=u&&u.exports===a?n.Buffer:void 0,s=(i?i.isBuffer:void 0)||o;t.exports=s},93839:(t,e,r)=>{var n=r(94318),o=r(85973);t.exports=function(t){if(!o(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},99216:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},69656:(t,e,r)=>{var n=r(4368),o=r(76535),a=r(91782),u=a&&a.isMap,i=u?o(u):n;t.exports=i},66925:(t,e,r)=>{var n=r(4642),o=r(76535),a=r(91782),u=a&&a.isSet,i=u?o(u):n;t.exports=i},34461:(t,e,r)=>{var n=r(94318),o=r(77236),a=r(3387);t.exports=function(t){return"string"==typeof t||!o(t)&&a(t)&&"[object String]"==n(t)}},14812:(t,e,r)=>{var n=r(73749),o=r(76535),a=r(91782),u=a&&a.isTypedArray,i=u?o(u):n;t.exports=i},52635:(t,e,r)=>{var n=r(16222),o=r(78803),a=r(81580);t.exports=function(t){return a(t)?n(t):o(t)}},5850:(t,e,r)=>{var n=r(16222),o=r(32578),a=r(81580);t.exports=function(t){return a(t)?n(t,!0):o(t)}},52169:(t,e,r)=>{var n=r(40999),o=r(35897),a=r(88904);t.exports=function(t,e){var r={};return e=a(e,3),o(t,(function(t,o,a){n(r,e(t,o,a),t)})),r}},53792:(t,e,r)=>{var n=r(40999),o=r(35897),a=r(88904);t.exports=function(t,e){var r={};return e=a(e,3),o(t,(function(t,o,a){n(r,o,e(t,o,a))})),r}},30427:(t,e,r)=>{var n=r(90278),o="Expected a function";function a(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var u=t.apply(this,n);return r.cache=a.set(o,u)||a,u};return r.cache=new(a.Cache||n),r}a.Cache=n,t.exports=a},21651:(t,e,r)=>{var n=r(61712),o=r(14815),a=r(73266),u=r(18780);t.exports=function(t){return a(t)?n(u(t)):o(t)}},54002:(t,e,r)=>{var n=r(34958)((function(t,e,r){return t+(r?"_":"")+e.toLowerCase()}));t.exports=n},27471:t=>{t.exports=function(){return[]}},7149:t=>{t.exports=function(){return!1}},22702:(t,e,r)=>{var n=r(54690),o=r(66438),a=r(26686),u=r(81580),i=r(34461),s=r(17807),c=r(52876),f=r(66350),l=r(51119),p=r(90567),h=n?n.iterator:void 0;t.exports=function(t){if(!t)return[];if(u(t))return i(t)?l(t):o(t);if(h&&t[h])return s(t[h]());var e=a(t);return("[object Map]"==e?c:"[object Set]"==e?f:p)(t)}},41119:(t,e,r)=>{var n=r(90454);t.exports=function(t){return null==t?"":n(t)}},23940:(t,e,r)=>{var n=r(54660)("toUpperCase");t.exports=n},90567:(t,e,r)=>{var n=r(80925),o=r(52635);t.exports=function(t){return null==t?[]:n(t,o(t))}},90280:(t,e,r)=>{var n=r(64159),o=r(65471),a=r(41119),u=r(6645);t.exports=function(t,e,r){return t=a(t),void 0===(e=r?void 0:e)?o(t)?u(t):n(t):t.match(e)||[]}},18479:t=>{"use strict";function e(t){this._maxSize=t,this.clear()}e.prototype.clear=function(){this._size=0,this._values={}},e.prototype.get=function(t){return this._values[t]},e.prototype.set=function(t,e){return this._size>=this._maxSize&&this.clear(),this._values.hasOwnProperty(t)||this._size++,this._values[t]=e};var r=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,o=/^\d/,a=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,u=/^\s*(['"]?)(.*?)(\1)\s*$/,i=!1,s=new e(512),c=new e(512),f=new e(512);try{new Function("")}catch(t){i=!0}function l(t){return s.get(t)||s.set(t,p(t).map((function(t){return t.replace(u,"$2")})))}function p(t){return t.match(r)}function h(t,e,r){return"string"==typeof e&&(r=e,e=!1),r=r||"data",(t=t||"")&&"["!==t.charAt(0)&&(t="."+t),e?function(t,e){var r,n=e,o=p(t);return d(o,(function(t,e,o,a,u){r=a===u.length-1,n+=(t=e||o?"["+t+"]":"."+t)+(r?")":" || {})")})),new Array(o.length+1).join("(")+n}(t,r):r+t}function d(t,e,r){var n,o,a,u,i=t.length;for(o=0;o<i;o++)(n=t[o])&&(y(n)&&(n='"'+n+'"'),a=!(u=v(n))&&/^\d+$/.test(n),e.call(r,n,u,a,o,t))}function v(t){return"string"==typeof t&&t&&-1!==["'",'"'].indexOf(t.charAt(0))}function y(t){return!v(t)&&(function(t){return t.match(o)&&!t.match(n)}(t)||function(t){return a.test(t)}(t))}t.exports={Cache:e,expr:h,split:p,normalizePath:l,setter:i?function(t){var e=l(t);return function(t,r){return function(t,e,r){for(var n=0,o=t.length;n<o-1;)e=e[t[n++]];e[t[n]]=r}(e,t,r)}}:function(t){return c.get(t)||c.set(t,new Function("data, value",h(t,"data")+" = value"))},getter:i?function(t,e){var r=l(t);return function(t){return function(t,e,r){for(var n=0,o=t.length;n<o;){if(null==r&&e)return;r=r[t[n++]]}return r}(r,e,t)}}:function(t,e){var r=t+"_"+e;return f.get(r)||f.set(r,new Function("data","return "+h(t,e,"data")))},join:function(t){return t.reduce((function(t,e){return t+(v(e)||n.test(e)?"["+e+"]":(t?".":"")+e)}),"")},forEach:function(t,e,r){d(p(t),e,r)}}},44818:(t,e,r)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CopyToClipboard=void 0;var n=a(r(1024)),o=a(r(91969));function a(t){return t&&t.__esModule?t:{default:t}}function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function i(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function c(t){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},c(t)}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t,e){return l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},l(t,e)}function p(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var h=function(t){function e(){var t,r;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return r=function(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?f(t):e}(this,(t=c(e)).call.apply(t,[this].concat(i))),p(f(r),"onClick",(function(t){var e=r.props,a=e.text,u=e.onCopy,i=e.children,s=e.options,c=n.default.Children.only(i),f=(0,o.default)(a,s);u&&u(a,f),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),r}var r,a;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(e,t),r=e,a=[{key:"render",value:function(){var t=this.props,e=(t.text,t.onCopy,t.options,t.children),r=function(t,e){if(null==t)return{};var r,n,o=function(t,e){if(null==t)return{};var r,n,o={},a=Object.keys(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||(o[r]=t[r]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)r=a[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}(t,["text","onCopy","options","children"]),o=n.default.Children.only(e);return n.default.cloneElement(o,function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?i(r,!0).forEach((function(e){p(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):i(r).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},r,{onClick:this.onClick}))}}],a&&s(r.prototype,a),e}(n.default.PureComponent);e.CopyToClipboard=h,p(h,"defaultProps",{onCopy:void 0,options:void 0})},59087:(t,e,r)=>{"use strict";var n=r(44818).CopyToClipboard;n.CopyToClipboard=n,t.exports=n},63958:t=>{"use strict";function e(t){return Array.prototype.slice.apply(t)}var r="pending",n="resolved",o="rejected";function a(t){this.status=r,this._continuations=[],this._parent=null,this._paused=!1,t&&t.call(this,this._continueWith.bind(this),this._failWith.bind(this))}function u(t){return t&&"function"==typeof t.then}function i(t){return t}function s(t){return"undefined"!=typeof window&&"AggregateError"in window?new window.AggregateError(t):{errors:t}}if(a.prototype={then:function(t,e){var r=a.unresolved()._setParent(this);if(this._isRejected()){if(this._paused)return this._continuations.push({promise:r,nextFn:t,catchFn:e}),r;if(e)try{var n=e(this._error);return u(n)?(this._chainPromiseData(n,r),r):a.resolve(n)._setParent(this)}catch(t){return a.reject(t)._setParent(this)}return a.reject(this._error)._setParent(this)}return this._continuations.push({promise:r,nextFn:t,catchFn:e}),this._runResolutions(),r},catch:function(t){if(this._isResolved())return a.resolve(this._data)._setParent(this);var e=a.unresolved()._setParent(this);return this._continuations.push({promise:e,catchFn:t}),this._runRejections(),e},finally:function(t){var e=!1;function r(r,n){if(!e){e=!0,t||(t=i);var o=t(r);return u(o)?o.then((function(){if(n)throw n;return r})):r}}return this.then((function(t){return r(t)})).catch((function(t){return r(null,t)}))},pause:function(){return this._paused=!0,this},resume:function(){var t=this._findFirstPaused();return t&&(t._paused=!1,t._runResolutions(),t._runRejections()),this},_findAncestry:function(){return this._continuations.reduce((function(t,e){if(e.promise){var r={promise:e.promise,children:e.promise._findAncestry()};t.push(r)}return t}),[])},_setParent:function(t){if(this._parent)throw new Error("parent already set");return this._parent=t,this},_continueWith:function(t){var e=this._findFirstPending();e&&(e._data=t,e._setResolved())},_findFirstPending:function(){return this._findFirstAncestor((function(t){return t._isPending&&t._isPending()}))},_findFirstPaused:function(){return this._findFirstAncestor((function(t){return t._paused}))},_findFirstAncestor:function(t){for(var e,r=this;r;)t(r)&&(e=r),r=r._parent;return e},_failWith:function(t){var e=this._findFirstPending();e&&(e._error=t,e._setRejected())},_takeContinuations:function(){return this._continuations.splice(0,this._continuations.length)},_runRejections:function(){if(!this._paused&&this._isRejected()){var t=this._error,e=this._takeContinuations(),r=this;e.forEach((function(e){if(e.catchFn)try{var n=e.catchFn(t);r._handleUserFunctionResult(n,e.promise)}catch(t){e.promise.reject(t)}else e.promise.reject(t)}))}},_runResolutions:function(){if(!this._paused&&this._isResolved()&&!this._isPending()){var t=this._takeContinuations(),e=this._data,r=this;return t.forEach((function(t){if(t.nextFn)try{var n=t.nextFn(e);r._handleUserFunctionResult(n,t.promise)}catch(e){r._handleResolutionError(e,t)}else t.promise&&t.promise.resolve(e)})),u(this._data)?this._handleWhenResolvedDataIsPromise(this._data):void 0}},_handleResolutionError:function(t,e){if(this._setRejected(),e.catchFn)try{return void e.catchFn(t)}catch(e){t=e}e.promise&&e.promise.reject(t)},_handleWhenResolvedDataIsPromise:function(t){var e=this;return t.then((function(t){e._data=t,e._runResolutions()})).catch((function(t){e._error=t,e._setRejected(),e._runRejections()}))},_handleUserFunctionResult:function(t,e){u(t)?this._chainPromiseData(t,e):e.resolve(t)},_chainPromiseData:function(t,e){t.then((function(t){e.resolve(t)})).catch((function(t){e.reject(t)}))},_setResolved:function(){this.status=n,this._paused||this._runResolutions()},_setRejected:function(){this.status=o,this._paused||this._runRejections()},_isPending:function(){return this.status===r},_isResolved:function(){return this.status===n},_isRejected:function(){return this.status===o}},a.resolve=function(t){return new a((function(e,r){u(t)?t.then((function(t){e(t)})).catch((function(t){r(t)})):e(t)}))},a.reject=function(t){return new a((function(e,r){r(t)}))},a.unresolved=function(){return new a((function(t,e){this.resolve=t,this.reject=e}))},a.all=function(){var t=e(arguments);return Array.isArray(t[0])&&(t=t[0]),t.length?new a((function(e,r){var n=[],o=0,u=!1;t.forEach((function(i,s){a.resolve(i).then((function(r){n[s]=r,(o+=1)===t.length&&e(n)})).catch((function(t){!function(t){u||(u=!0,r(t))}(t)}))}))})):a.resolve([])},a.any=function(){var t=e(arguments);return Array.isArray(t[0])&&(t=t[0]),t.length?new a((function(e,r){var n=[],o=0,u=!1;t.forEach((function(i,c){a.resolve(i).then((function(t){u||(u=!0,e(t))})).catch((function(e){n[c]=e,(o+=1)===t.length&&r(s(n))}))}))})):a.reject(s([]))},a.allSettled=function(){var t=e(arguments);return Array.isArray(t[0])&&(t=t[0]),t.length?new a((function(e){var r=[],n=0,o=function(){(n+=1)===t.length&&e(r)};t.forEach((function(t,e){a.resolve(t).then((function(t){r[e]={status:"fulfilled",value:t},o()})).catch((function(t){r[e]={status:"rejected",reason:t},o()}))}))})):a.resolve([])},Promise===a)throw new Error("Please use SynchronousPromise.installGlobally() to install globally");var c=Promise;a.installGlobally=function(t){if(Promise===a)return t;var r=function(t){if(void 0===t||t.__patched)return t;var r=t;return t=function(){r.apply(this,e(arguments))},t.__patched=!0,t}(t);return Promise=a,r},a.uninstallGlobally=function(){Promise===a&&(Promise=c)},t.exports={SynchronousPromise:a}},47033:t=>{t.exports=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null}return t.removeAllRanges(),function(){"Caret"===t.type&&t.removeAllRanges(),t.rangeCount||r.forEach((function(e){t.addRange(e)})),e&&e.focus()}}},99556:t=>{function e(t,e){var r=t.length,n=new Array(r),o={},a=r,u=function(t){for(var e=new Map,r=0,n=t.length;r<n;r++){var o=t[r];e.has(o[0])||e.set(o[0],new Set),e.has(o[1])||e.set(o[1],new Set),e.get(o[0]).add(o[1])}return e}(e),i=function(t){for(var e=new Map,r=0,n=t.length;r<n;r++)e.set(t[r],r);return e}(t);for(e.forEach((function(t){if(!i.has(t[0])||!i.has(t[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")}));a--;)o[a]||s(t[a],a,new Set);return n;function s(t,e,a){if(a.has(t)){var c;try{c=", node was:"+JSON.stringify(t)}catch(t){c=""}throw new Error("Cyclic dependency"+c)}if(!i.has(t))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!o[e]){o[e]=!0;var f=u.get(t)||new Set;if(e=(f=Array.from(f)).length){a.add(t);do{var l=f[--e];s(l,i.get(l),a)}while(e);a.delete(t)}n[--r]=t}}}t.exports=function(t){return e(function(t){for(var e=new Set,r=0,n=t.length;r<n;r++){var o=t[r];e.add(o[0]),e.add(o[1])}return Array.from(e)}(t),t)},t.exports.array=e},99044:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=void 0;var o=n(r(23973)),a=n(r(3098)),u=function(){function t(t,e){if(this.refs=t,"function"!=typeof e){if(!(0,o.default)(e,"is"))throw new TypeError("`is:` is required for `when()` conditions");if(!e.then&&!e.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");var r=e.is,n=e.then,a=e.otherwise,u="function"==typeof r?r:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.every((function(t){return t===r}))};this.fn=function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var o=e.pop(),i=e.pop(),s=u.apply(void 0,e)?n:a;if(s)return"function"==typeof s?s(i):i.concat(s.resolve(o))}}else this.fn=e}return t.prototype.resolve=function(t,e){var r=this.refs.map((function(t){return t.getValue(e)})),n=this.fn.apply(t,r.concat(t,e));if(void 0===n||n===t)return t;if(!(0,a.default)(n))throw new TypeError("conditions must return a schema object");return n.resolve(e)},t}();e.default=u,t.exports=e.default},78664:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=void 0;var o=n(r(3098)),a=function(){function t(t){this._resolve=function(e,r){var n=t(e,r);if(!(0,o.default)(n))throw new TypeError("lazy() functions must return a valid schema");return n.resolve(r)}}var e=t.prototype;return e.resolve=function(t){return this._resolve(t.value,t)},e.cast=function(t,e){return this._resolve(t,e).cast(t,e)},e.validate=function(t,e){return this._resolve(t,e).validate(t,e)},e.validateSync=function(t,e){return this._resolve(t,e).validateSync(t,e)},e.validateAt=function(t,e,r){return this._resolve(e,r).validateAt(t,e,r)},e.validateSyncAt=function(t,e,r){return this._resolve(e,r).validateSyncAt(t,e,r)},t}();a.prototype.__isYupSchema__=!0;var u=a;e.default=u,t.exports=e.default},44618:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=void 0;var o=n(r(448)),a=r(18479),u=function(){function t(t,e){if(void 0===e&&(e={}),"string"!=typeof t)throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),""===t)throw new TypeError("ref must be a non-empty string");this.isContext="$"===this.key[0],this.isValue="."===this.key[0],this.isSibling=!this.isContext&&!this.isValue;var r=this.isContext?"$":this.isValue?".":"";this.path=this.key.slice(r.length),this.getter=this.path&&(0,a.getter)(this.path,!0),this.map=e.map}var e=t.prototype;return e.getValue=function(t){var e=this.isContext?t.context:this.isValue?t.value:t.parent;return this.getter&&(e=this.getter(e||{})),this.map&&(e=this.map(e)),e},e.cast=function(t,e){return this.getValue((0,o.default)({},e,{value:t}))},e.resolve=function(){return this},e.describe=function(){return{type:"ref",key:this.key}},e.toString=function(){return"Ref("+this.key+")"},t.isRef=function(t){return t&&t.__isYupRef},t}();e.default=u,u.prototype.__isYupRef=!0,t.exports=e.default},81699:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=u;var o=n(r(74107)),a=/\$\{\s*(\w+)\s*\}/g;function u(t,e,r,n){var o=this;this.name="ValidationError",this.value=e,this.path=r,this.type=n,this.errors=[],this.inner=[],t&&[].concat(t).forEach((function(t){o.errors=o.errors.concat(t.errors||t),t.inner&&(o.inner=o.inner.concat(t.inner.length?t.inner:t))})),this.message=this.errors.length>1?this.errors.length+" errors occurred":this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,u)}u.prototype=Object.create(Error.prototype),u.prototype.constructor=u,u.isError=function(t){return t&&"ValidationError"===t.name},u.formatError=function(t,e){var r;"string"==typeof t&&(r=t,t=function(t){return r.replace(a,(function(e,r){return(0,o.default)(t[r])}))});var n=function(e){return e.path=e.label||e.path||"this","function"==typeof t?t(e):t};return 1===arguments.length?n:n(e)},t.exports=e.default},41249:(t,e,r)=>{"use strict";var n=r(54168),o=r(34169);e.__esModule=!0,e.default=void 0;var a=o(r(448)),u=o(r(82683)),i=o(r(9122)),s=o(r(58628)),c=o(r(3098)),f=o(r(29331)),l=o(r(74107)),p=o(r(96199)),h=r(12293),d=n(r(65638));function v(){var t=(0,u.default)(["","[","]"]);return v=function(){return t},t}var y=_;function _(t){var e=this;if(!(this instanceof _))return new _(t);p.default.call(this,{type:"array"}),this._subType=void 0,this.withMutation((function(){e.transform((function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t=null}return this.isType(t)?t:null})),t&&e.of(t)}))}e.default=y,(0,i.default)(_,p.default,{_typeCheck:function(t){return Array.isArray(t)},_cast:function(t,e){var r=this,n=p.default.prototype._cast.call(this,t,e);if(!this._typeCheck(n)||!this._subType)return n;var o=!1,a=n.map((function(t){var n=r._subType.cast(t,e);return n!==t&&(o=!0),n}));return o?a:n},_validate:function(t,e){var r=this;void 0===e&&(e={});var n=[],o=e.sync,u=e.path,i=this._subType,s=this._option("abortEarly",e),c=this._option("recursive",e),l=null!=e.originalValue?e.originalValue:t;return p.default.prototype._validate.call(this,t,e).catch((0,d.propagateErrors)(s,n)).then((function(t){if(!c||!i||!r._typeCheck(t)){if(n.length)throw n[0];return t}l=l||t;var p=t.map((function(r,n){var o=(0,f.default)(v(),e.path,n),u=(0,a.default)({},e,{path:o,strict:!0,parent:t,originalValue:l[n]});return!i.validate||i.validate(r,u)}));return(0,d.default)({sync:o,path:u,value:t,errors:n,endEarly:s,validations:p})}))},_isPresent:function(t){return p.default.prototype._cast.call(this,t)&&t.length>0},of:function(t){var e=this.clone();if(!1!==t&&!(0,c.default)(t))throw new TypeError("`array.of()` sub-schema must be a valid yup schema, or `false` to negate a current sub-schema. not: "+(0,l.default)(t));return e._subType=t,e},min:function(t,e){return e=e||h.array.min,this.test({message:e,name:"min",exclusive:!0,params:{min:t},test:function(e){return(0,s.default)(e)||e.length>=this.resolve(t)}})},max:function(t,e){return e=e||h.array.max,this.test({message:e,name:"max",exclusive:!0,params:{max:t},test:function(e){return(0,s.default)(e)||e.length<=this.resolve(t)}})},ensure:function(){var t=this;return this.default((function(){return[]})).transform((function(e){return t.isType(e)?e:null===e?[]:[].concat(e)}))},compact:function(t){var e=t?function(e,r,n){return!t(e,r,n)}:function(t){return!!t};return this.transform((function(t){return null!=t?t.filter(e):t}))},describe:function(){var t=p.default.prototype.describe.call(this);return this._subType&&(t.innerType=this._subType.describe()),t}}),t.exports=e.default},26071:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=void 0;var o=n(r(9122)),a=n(r(96199)),u=i;function i(){var t=this;if(!(this instanceof i))return new i;a.default.call(this,{type:"boolean"}),this.withMutation((function(){t.transform((function(t){if(!this.isType(t)){if(/^(true|1)$/i.test(t))return!0;if(/^(false|0)$/i.test(t))return!1}return t}))}))}e.default=u,(0,o.default)(i,a.default,{_typeCheck:function(t){return t instanceof Boolean&&(t=t.valueOf()),"boolean"==typeof t}}),t.exports=e.default},61353:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=void 0;var o=n(r(96199)),a=n(r(9122)),u=n(r(43138)),i=r(12293),s=n(r(58628)),c=n(r(44618)),f=new Date(""),l=p;function p(){var t=this;if(!(this instanceof p))return new p;o.default.call(this,{type:"date"}),this.withMutation((function(){t.transform((function(t){return this.isType(t)?t:(t=(0,u.default)(t))?new Date(t):f}))}))}e.default=l,(0,a.default)(p,o.default,{_typeCheck:function(t){return e=t,"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(t.getTime());var e},min:function(t,e){void 0===e&&(e=i.date.min);var r=t;if(!c.default.isRef(r)&&(r=this.cast(t),!this._typeCheck(r)))throw new TypeError("`min` must be a Date or a value that can be `cast()` to a Date");return this.test({message:e,name:"min",exclusive:!0,params:{min:t},test:function(t){return(0,s.default)(t)||t>=this.resolve(r)}})},max:function(t,e){void 0===e&&(e=i.date.max);var r=t;if(!c.default.isRef(r)&&(r=this.cast(t),!this._typeCheck(r)))throw new TypeError("`max` must be a Date or a value that can be `cast()` to a Date");return this.test({message:e,name:"max",exclusive:!0,params:{max:t},test:function(t){return(0,s.default)(t)||t<=this.resolve(r)}})}}),t.exports=e.default},5173:(t,e,r)=>{"use strict";var n=r(34169);e.O7=void 0,n(r(96199)).default;var o=n(r(26071));o.default;var a=n(r(76921));e.Z_=a.default,n(r(44489)).default,n(r(61353)).default;var u=n(r(4509));e.Ry=u.default,n(r(41249)).default;n(r(44618)),n(r(78664));n(r(81699)).default,n(r(55058)).default,n(r(3098)).default,n(r(60757)).default;var i=o.default;e.O7=i},12293:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=e.array=e.object=e.boolean=e.date=e.number=e.string=e.mixed=void 0;var o=n(r(74107)),a={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:function(t){var e=t.path,r=t.type,n=t.value,a=t.originalValue,u=null!=a&&a!==n,i=e+" must be a `"+r+"` type, but the final value was: `"+(0,o.default)(n,!0)+"`"+(u?" (cast from the value `"+(0,o.default)(a,!0)+"`).":".");return null===n&&(i+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),i}};e.mixed=a;var u={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"};e.string=u;var i={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",notEqual:"${path} must be not equal to ${notEqual}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"};e.number=i;var s={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"};e.date=s;var c={};e.boolean=c;var f={noUnknown:"${path} field cannot have keys not specified in the object shape"};e.object=f;var l={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items"};e.array=l;var p={mixed:a,string:u,number:i,date:s,object:f,array:l,boolean:c};e.default=p},96199:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=m;var o=n(r(448)),a=n(r(23973)),u=n(r(13382)),i=n(r(22702)),s=r(12293),c=n(r(99044)),f=n(r(65638)),l=n(r(38853)),p=n(r(3098)),h=n(r(79473)),d=n(r(74107)),v=n(r(44618)),y=r(55058),_=function(){function t(){this.list=new Set,this.refs=new Map}var e=t.prototype;return e.toArray=function(){return(0,i.default)(this.list).concat((0,i.default)(this.refs.values()))},e.add=function(t){v.default.isRef(t)?this.refs.set(t.key,t):this.list.add(t)},e.delete=function(t){v.default.isRef(t)?this.refs.delete(t.key,t):this.list.delete(t)},e.has=function(t,e){if(this.list.has(t))return!0;for(var r,n=this.refs.values();!(r=n.next()).done;)if(e(r.value)===t)return!0;return!1},t}();function m(t){var e=this;if(void 0===t&&(t={}),!(this instanceof m))return new m;this._deps=[],this._conditions=[],this._options={abortEarly:!0,recursive:!0},this._exclusive=Object.create(null),this._whitelist=new _,this._blacklist=new _,this.tests=[],this.transforms=[],this.withMutation((function(){e.typeError(s.mixed.notType)})),(0,a.default)(t,"default")&&(this._defaultDefault=t.default),this._type=t.type||"mixed"}for(var b=m.prototype={__isYupSchema__:!0,constructor:m,clone:function(){var t=this;return this._mutate?this:(0,u.default)(this,(function(e){if((0,p.default)(e)&&e!==t)return e}))},label:function(t){var e=this.clone();return e._label=t,e},meta:function(t){if(0===arguments.length)return this._meta;var e=this.clone();return e._meta=(0,o.default)(e._meta||{},t),e},withMutation:function(t){var e=this._mutate;this._mutate=!0;var r=t(this);return this._mutate=e,r},concat:function(t){if(!t||t===this)return this;if(t._type!==this._type&&"mixed"!==this._type)throw new TypeError("You cannot `concat()` schema's of different types: "+this._type+" and "+t._type);var e=(0,l.default)(t.clone(),this);return(0,a.default)(t,"_default")&&(e._default=t._default),e.tests=this.tests,e._exclusive=this._exclusive,e.withMutation((function(e){t.tests.forEach((function(t){e.test(t.OPTIONS)}))})),e},isType:function(t){return!(!this._nullable||null!==t)||!this._typeCheck||this._typeCheck(t)},resolve:function(t){var e=this;if(e._conditions.length){var r=e._conditions;(e=e.clone())._conditions=[],e=(e=r.reduce((function(e,r){return r.resolve(e,t)}),e)).resolve(t)}return e},cast:function(t,e){void 0===e&&(e={});var r=this.resolve((0,o.default)({},e,{value:t})),n=r._cast(t,e);if(void 0!==t&&!1!==e.assert&&!0!==r.isType(n)){var a=(0,d.default)(t),u=(0,d.default)(n);throw new TypeError("The value of "+(e.path||"field")+' could not be cast to a value that satisfies the schema type: "'+r._type+'". \n\nattempted value: '+a+" \n"+(u!==a?"result of cast: "+u:""))}return n},_cast:function(t){var e=this,r=void 0===t?t:this.transforms.reduce((function(r,n){return n.call(e,r,t)}),t);return void 0===r&&(0,a.default)(this,"_default")&&(r=this.default()),r},_validate:function(t,e){var r=this;void 0===e&&(e={});var n=t,a=null!=e.originalValue?e.originalValue:t,u=this._option("strict",e),i=this._option("abortEarly",e),s=e.sync,c=e.path,l=this._label;u||(n=this._cast(n,(0,o.default)({assert:!1},e)));var p={value:n,path:c,schema:this,options:e,label:l,originalValue:a,sync:s},h=[];return this._typeError&&h.push(this._typeError(p)),this._whitelistError&&h.push(this._whitelistError(p)),this._blacklistError&&h.push(this._blacklistError(p)),(0,f.default)({validations:h,endEarly:i,value:n,path:c,sync:s}).then((function(t){return(0,f.default)({path:c,sync:s,value:t,endEarly:i,validations:r.tests.map((function(t){return t(p)}))})}))},validate:function(t,e){return void 0===e&&(e={}),this.resolve((0,o.default)({},e,{value:t}))._validate(t,e)},validateSync:function(t,e){var r,n;if(void 0===e&&(e={}),this.resolve((0,o.default)({},e,{value:t}))._validate(t,(0,o.default)({},e,{sync:!0})).then((function(t){return r=t})).catch((function(t){return n=t})),n)throw n;return r},isValid:function(t,e){return this.validate(t,e).then((function(){return!0})).catch((function(t){if("ValidationError"===t.name)return!1;throw t}))},isValidSync:function(t,e){try{return this.validateSync(t,e),!0}catch(t){if("ValidationError"===t.name)return!1;throw t}},getDefault:function(t){return void 0===t&&(t={}),this.resolve(t).default()},default:function(t){if(0===arguments.length){var e=(0,a.default)(this,"_default")?this._default:this._defaultDefault;return"function"==typeof e?e.call(this):(0,u.default)(e)}var r=this.clone();return r._default=t,r},strict:function(t){void 0===t&&(t=!0);var e=this.clone();return e._options.strict=t,e},_isPresent:function(t){return null!=t},required:function(t){return void 0===t&&(t=s.mixed.required),this.test({message:t,name:"required",exclusive:!0,test:function(t){return this.schema._isPresent(t)}})},notRequired:function(){var t=this.clone();return t.tests=t.tests.filter((function(t){return"required"!==t.OPTIONS.name})),t},nullable:function(t){void 0===t&&(t=!0);var e=this.clone();return e._nullable=t,e},transform:function(t){var e=this.clone();return e.transforms.push(t),e},test:function(){var t;if(void 0===(t=1===arguments.length?"function"==typeof(arguments.length<=0?void 0:arguments[0])?{test:arguments.length<=0?void 0:arguments[0]}:arguments.length<=0?void 0:arguments[0]:2===arguments.length?{name:arguments.length<=0?void 0:arguments[0],test:arguments.length<=1?void 0:arguments[1]}:{name:arguments.length<=0?void 0:arguments[0],message:arguments.length<=1?void 0:arguments[1],test:arguments.length<=2?void 0:arguments[2]}).message&&(t.message=s.mixed.default),"function"!=typeof t.test)throw new TypeError("`test` is a required parameters");var e=this.clone(),r=(0,h.default)(t),n=t.exclusive||t.name&&!0===e._exclusive[t.name];if(t.exclusive&&!t.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return e._exclusive[t.name]=!!t.exclusive,e.tests=e.tests.filter((function(e){if(e.OPTIONS.name===t.name){if(n)return!1;if(e.OPTIONS.test===r.OPTIONS.test)return!1}return!0})),e.tests.push(r),e},when:function(t,e){1===arguments.length&&(e=t,t=".");var r=this.clone(),n=[].concat(t).map((function(t){return new v.default(t)}));return n.forEach((function(t){t.isSibling&&r._deps.push(t.key)})),r._conditions.push(new c.default(n,e)),r},typeError:function(t){var e=this.clone();return e._typeError=(0,h.default)({message:t,name:"typeError",test:function(t){return!(void 0!==t&&!this.schema.isType(t))||this.createError({params:{type:this.schema._type}})}}),e},oneOf:function(t,e){void 0===e&&(e=s.mixed.oneOf);var r=this.clone();return t.forEach((function(t){r._whitelist.add(t),r._blacklist.delete(t)})),r._whitelistError=(0,h.default)({message:e,name:"oneOf",test:function(t){if(void 0===t)return!0;var e=this.schema._whitelist;return!!e.has(t,this.resolve)||this.createError({params:{values:e.toArray().join(", ")}})}}),r},notOneOf:function(t,e){void 0===e&&(e=s.mixed.notOneOf);var r=this.clone();return t.forEach((function(t){r._blacklist.add(t),r._whitelist.delete(t)})),r._blacklistError=(0,h.default)({message:e,name:"notOneOf",test:function(t){var e=this.schema._blacklist;return!e.has(t,this.resolve)||this.createError({params:{values:e.toArray().join(", ")}})}}),r},strip:function(t){void 0===t&&(t=!0);var e=this.clone();return e._strip=t,e},_option:function(t,e){return(0,a.default)(e,t)?e[t]:this._options[t]},describe:function(){var t=this.clone();return{type:t._type,meta:t._meta,label:t._label,tests:t.tests.map((function(t){return{name:t.OPTIONS.name,params:t.OPTIONS.params}})).filter((function(t,e,r){return r.findIndex((function(e){return e.name===t.name}))===e}))}}},x=["validate","validateSync"],g=function(){var t=x[F];b[t+"At"]=function(e,r,n){void 0===n&&(n={});var a=(0,y.getIn)(this,e,r,n.context),u=a.parent,i=a.parentPath;return a.schema[t](u&&u[i],(0,o.default)({},n,{parent:u,path:e}))}},F=0;F<x.length;F++)g();for(var w=["equals","is"],j=0;j<w.length;j++)b[w[j]]=b.oneOf;for(var E=["not","nope"],O=0;O<E.length;O++)b[E[O]]=b.notOneOf;b.optional=b.notRequired,t.exports=e.default},44489:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=c;var o=n(r(9122)),a=n(r(96199)),u=r(12293),i=n(r(58628)),s=function(t){return(0,i.default)(t)||t===(0|t)};function c(){var t=this;if(!(this instanceof c))return new c;a.default.call(this,{type:"number"}),this.withMutation((function(){t.transform((function(t){var e=t;if("string"==typeof e){if(""===(e=e.replace(/\s/g,"")))return NaN;e=+e}return this.isType(e)?e:parseFloat(e)}))}))}(0,o.default)(c,a.default,{_typeCheck:function(t){return t instanceof Number&&(t=t.valueOf()),"number"==typeof t&&!function(t){return t!=+t}(t)},min:function(t,e){return void 0===e&&(e=u.number.min),this.test({message:e,name:"min",exclusive:!0,params:{min:t},test:function(e){return(0,i.default)(e)||e>=this.resolve(t)}})},max:function(t,e){return void 0===e&&(e=u.number.max),this.test({message:e,name:"max",exclusive:!0,params:{max:t},test:function(e){return(0,i.default)(e)||e<=this.resolve(t)}})},lessThan:function(t,e){return void 0===e&&(e=u.number.lessThan),this.test({message:e,name:"max",exclusive:!0,params:{less:t},test:function(e){return(0,i.default)(e)||e<this.resolve(t)}})},moreThan:function(t,e){return void 0===e&&(e=u.number.moreThan),this.test({message:e,name:"min",exclusive:!0,params:{more:t},test:function(e){return(0,i.default)(e)||e>this.resolve(t)}})},positive:function(t){return void 0===t&&(t=u.number.positive),this.moreThan(0,t)},negative:function(t){return void 0===t&&(t=u.number.negative),this.lessThan(0,t)},integer:function(t){return void 0===t&&(t=u.number.integer),this.test({name:"integer",message:t,test:s})},truncate:function(){return this.transform((function(t){return(0,i.default)(t)?t:0|t}))},round:function(t){var e=["ceil","floor","round","trunc"];if("trunc"===(t=t&&t.toLowerCase()||"round"))return this.truncate();if(-1===e.indexOf(t.toLowerCase()))throw new TypeError("Only valid options for round() are: "+e.join(", "));return this.transform((function(e){return(0,i.default)(e)?e:Math[t](e)}))}}),t.exports=e.default},4509:(t,e,r)=>{"use strict";var n=r(54168),o=r(34169);e.__esModule=!0,e.default=w;var a=o(r(82683)),u=o(r(448)),i=o(r(23973)),s=o(r(54002)),c=o(r(39935)),f=o(r(52169)),l=o(r(53792)),p=r(18479),h=o(r(96199)),d=r(12293),v=o(r(43630)),y=o(r(20055)),_=o(r(9122)),m=o(r(29331)),b=n(r(65638));function x(){var t=(0,a.default)(["",".",""]);return x=function(){return t},t}function g(){var t=(0,a.default)(["",".",""]);return g=function(){return t},t}var F=function(t){return"[object Object]"===Object.prototype.toString.call(t)};function w(t){var e=this;if(!(this instanceof w))return new w(t);h.default.call(this,{type:"object",default:function(){var t=this;if(this._nodes.length){var e={};return this._nodes.forEach((function(r){e[r]=t.fields[r].default?t.fields[r].default():void 0})),e}}}),this.fields=Object.create(null),this._nodes=[],this._excludedEdges=[],this.withMutation((function(){e.transform((function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(e){t=null}return this.isType(t)?t:null})),t&&e.shape(t)}))}(0,_.default)(w,h.default,{_typeCheck:function(t){return F(t)||"function"==typeof t},_cast:function(t,e){var r=this;void 0===e&&(e={});var n=h.default.prototype._cast.call(this,t,e);if(void 0===n)return this.default();if(!this._typeCheck(n))return n;var o=this.fields,a=!0===this._option("stripUnknown",e),s=this._nodes.concat(Object.keys(n).filter((function(t){return-1===r._nodes.indexOf(t)}))),c={},f=(0,u.default)({},e,{parent:c,__validating:!1}),l=!1;return s.forEach((function(t){var r=o[t],u=(0,i.default)(n,t);if(r){var s,p=r._options&&r._options.strict;if(f.path=(0,m.default)(g(),e.path,t),f.value=n[t],!0===(r=r.resolve(f))._strip)return void(l=l||t in n);void 0!==(s=e.__validating&&p?n[t]:r.cast(n[t],f))&&(c[t]=s)}else u&&!a&&(c[t]=n[t]);c[t]!==n[t]&&(l=!0)})),l?c:n},_validate:function(t,e){var r,n,o=this;void 0===e&&(e={});var a=e.sync,i=[],s=null!=e.originalValue?e.originalValue:t;return r=this._option("abortEarly",e),n=this._option("recursive",e),e=(0,u.default)({},e,{__validating:!0,originalValue:s}),h.default.prototype._validate.call(this,t,e).catch((0,b.propagateErrors)(r,i)).then((function(t){if(!n||!F(t)){if(i.length)throw i[0];return t}s=s||t;var c=o._nodes.map((function(r){var n=(0,m.default)(x(),e.path,r),a=o.fields[r],i=(0,u.default)({},e,{path:n,parent:t,originalValue:s[r]});return a&&a.validate?(i.strict=!0,a.validate(t[r],i)):Promise.resolve(!0)}));return(0,b.default)({sync:a,validations:c,value:t,errors:i,endEarly:r,path:e.path,sort:(0,y.default)(o.fields)})}))},concat:function(t){var e=h.default.prototype.concat.call(this,t);return e._nodes=(0,v.default)(e.fields,e._excludedEdges),e},shape:function(t,e){void 0===e&&(e=[]);var r=this.clone(),n=(0,u.default)(r.fields,t);if(r.fields=n,e.length){Array.isArray(e[0])||(e=[e]);var o=e.map((function(t){return t[0]+"-"+t[1]}));r._excludedEdges=r._excludedEdges.concat(o)}return r._nodes=(0,v.default)(n,r._excludedEdges),r},from:function(t,e,r){var n=(0,p.getter)(t,!0);return this.transform((function(o){if(null==o)return o;var a=o;return(0,i.default)(o,t)&&(a=(0,u.default)({},o),r||delete a[t],a[e]=n(o)),a}))},noUnknown:function(t,e){void 0===t&&(t=!0),void 0===e&&(e=d.object.noUnknown),"string"==typeof t&&(e=t,t=!0);var r=this.test({name:"noUnknown",exclusive:!0,message:e,test:function(e){return null==e||!t||0===function(t,e){var r=Object.keys(t.fields);return Object.keys(e).filter((function(t){return-1===r.indexOf(t)}))}(this.schema,e).length}});return r._options.stripUnknown=t,r},unknown:function(t,e){return void 0===t&&(t=!0),void 0===e&&(e=d.object.noUnknown),this.noUnknown(!t,e)},transformKeys:function(t){return this.transform((function(e){return e&&(0,f.default)(e,(function(e,r){return t(r)}))}))},camelCase:function(){return this.transformKeys(c.default)},snakeCase:function(){return this.transformKeys(s.default)},constantCase:function(){return this.transformKeys((function(t){return(0,s.default)(t).toUpperCase()}))},describe:function(){var t=h.default.prototype.describe.call(this);return t.fields=(0,l.default)(this.fields,(function(t){return t.describe()})),t}}),t.exports=e.default},60757:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=function(t){Object.keys(t).forEach((function(e){Object.keys(t[e]).forEach((function(r){o.default[e][r]=t[e][r]}))}))};var o=n(r(12293));t.exports=e.default},76921:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=l;var o=n(r(9122)),a=n(r(96199)),u=r(12293),i=n(r(58628)),s=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,c=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,f=function(t){return(0,i.default)(t)||t===t.trim()};function l(){var t=this;if(!(this instanceof l))return new l;a.default.call(this,{type:"string"}),this.withMutation((function(){t.transform((function(t){return this.isType(t)?t:null!=t&&t.toString?t.toString():t}))}))}(0,o.default)(l,a.default,{_typeCheck:function(t){return t instanceof String&&(t=t.valueOf()),"string"==typeof t},_isPresent:function(t){return a.default.prototype._cast.call(this,t)&&t.length>0},length:function(t,e){return void 0===e&&(e=u.string.length),this.test({message:e,name:"length",exclusive:!0,params:{length:t},test:function(e){return(0,i.default)(e)||e.length===this.resolve(t)}})},min:function(t,e){return void 0===e&&(e=u.string.min),this.test({message:e,name:"min",exclusive:!0,params:{min:t},test:function(e){return(0,i.default)(e)||e.length>=this.resolve(t)}})},max:function(t,e){return void 0===e&&(e=u.string.max),this.test({name:"max",exclusive:!0,message:e,params:{max:t},test:function(e){return(0,i.default)(e)||e.length<=this.resolve(t)}})},matches:function(t,e){var r,n=!1;return e&&(e.message||e.hasOwnProperty("excludeEmptyString")?(n=e.excludeEmptyString,r=e.message):r=e),this.test({message:r||u.string.matches,params:{regex:t},test:function(e){return(0,i.default)(e)||""===e&&n||t.test(e)}})},email:function(t){return void 0===t&&(t=u.string.email),this.matches(s,{message:t,excludeEmptyString:!0})},url:function(t){return void 0===t&&(t=u.string.url),this.matches(c,{message:t,excludeEmptyString:!0})},ensure:function(){return this.default("").transform((function(t){return null===t?"":t}))},trim:function(t){return void 0===t&&(t=u.string.trim),this.transform((function(t){return null!=t?t.trim():t})).test({message:t,name:"trim",test:f})},lowercase:function(t){return void 0===t&&(t=u.string.lowercase),this.transform((function(t){return(0,i.default)(t)?t:t.toLowerCase()})).test({message:t,name:"string_case",exclusive:!0,test:function(t){return(0,i.default)(t)||t===t.toLowerCase()}})},uppercase:function(t){return void 0===t&&(t=u.string.uppercase),this.transform((function(t){return(0,i.default)(t)?t:t.toUpperCase()})).test({message:t,name:"string_case",exclusive:!0,test:function(t){return(0,i.default)(t)||t===t.toUpperCase()}})}}),t.exports=e.default},79473:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.createErrorFactory=p,e.default=function(t){var e=t.name,r=t.message,n=t.test,u=t.params;function f(t){var f=t.value,h=t.path,d=t.label,v=t.options,y=t.originalValue,_=t.sync,m=(0,o.default)(t,["value","path","label","options","originalValue","sync"]),b=v.parent,x=function(t){return s.default.isRef(t)?t.getValue({value:f,parent:b,context:v.context}):t},g=p({message:r,path:h,value:f,originalValue:y,params:u,label:d,resolve:x,name:e}),F=(0,a.default)({path:h,parent:b,type:e,createError:g,resolve:x,options:v},m);return function(t,e,r,n){var o=t.call(e,r);if(!n)return Promise.resolve(o);if(l(o))throw new Error('Validation test of type: "'+e.type+'" returned a Promise during a synchronous validate. This test will finish after the validate call has returned');return c.SynchronousPromise.resolve(o)}(n,F,f,_).then((function(t){if(i.default.isError(t))throw t;if(!t)throw g()}))}return f.OPTIONS=t,f};var o=n(r(66820)),a=n(r(448)),u=n(r(53792)),i=n(r(81699)),s=n(r(44618)),c=r(63958),f=i.default.formatError,l=function(t){return t&&"function"==typeof t.then&&"function"==typeof t.catch};function p(t){var e=t.value,r=t.label,n=t.resolve,s=t.originalValue,c=(0,o.default)(t,["value","label","resolve","originalValue"]);return function(t){var o=void 0===t?{}:t,l=o.path,p=void 0===l?c.path:l,h=o.message,d=void 0===h?c.message:h,v=o.type,y=void 0===v?c.name:v,_=o.params;return _=(0,a.default)({path:p,value:e,originalValue:s,label:r},function(t,e,r){return(0,u.default)((0,a.default)({},t,e),r)}(c.params,_,n)),(0,a.default)(new i.default(f(d,_),e,p,y),{params:_})}}},9122:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=function(t,e,r){t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),(0,o.default)(t.prototype,r)};var o=n(r(448));t.exports=e.default},58628:(t,e)=>{"use strict";e.__esModule=!0,e.default=void 0,e.default=function(t){return null==t},t.exports=e.default},3098:(t,e)=>{"use strict";e.__esModule=!0,e.default=void 0,e.default=function(t){return t&&t.__isYupSchema__},t.exports=e.default},43138:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t){var e,n,o=[1,4,5,6,7,10,11],a=0;if(n=r.exec(t)){for(var u,i=0;u=o[i];++i)n[u]=+n[u]||0;n[2]=(+n[2]||1)-1,n[3]=+n[3]||1,n[7]=n[7]?String(n[7]).substr(0,3):0,void 0!==n[8]&&""!==n[8]||void 0!==n[9]&&""!==n[9]?("Z"!==n[8]&&void 0!==n[9]&&(a=60*n[10]+n[11],"+"===n[9]&&(a=0-a)),e=Date.UTC(n[1],n[2],n[3],n[4],n[5]+a,n[6],n[7])):e=+new Date(n[1],n[2],n[3],n[4],n[5],n[6],n[7])}else e=Date.parse?Date.parse(t):NaN;return e};var r=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.exports=e.default},29331:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return t.reduce((function(t,e){var n=r.shift();return t+(null==n?"":n)+e})).replace(/^\./,"")},t.exports=e.default},38853:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=function t(e,r){for(var n in r)if((0,o.default)(r,n)){var i=r[n],s=e[n];if(void 0===s)e[n]=i;else{if(s===i)continue;(0,a.default)(s)?(0,a.default)(i)&&(e[n]=i.concat(s)):u(s)?u(i)&&(e[n]=t(s,i)):Array.isArray(s)&&Array.isArray(i)&&(e[n]=i.concat(s))}}return e};var o=n(r(23973)),a=n(r(3098)),u=function(t){return"[object Object]"===Object.prototype.toString.call(t)};t.exports=e.default},74107:(t,e)=>{"use strict";e.__esModule=!0,e.default=function(t,e){var r=i(t,e);return null!==r?r:JSON.stringify(t,(function(t,r){var n=i(this[t],e);return null!==n?n:r}),2)};var r=Object.prototype.toString,n=Error.prototype.toString,o=RegExp.prototype.toString,a="undefined"!=typeof Symbol?Symbol.prototype.toString:function(){return""},u=/^Symbol\((.*)\)(.*)$/;function i(t,e){if(void 0===e&&(e=!1),null==t||!0===t||!1===t)return""+t;var i=typeof t;if("number"===i)return function(t){return t!=+t?"NaN":0===t&&1/t<0?"-0":""+t}(t);if("string"===i)return e?'"'+t+'"':t;if("function"===i)return"[Function "+(t.name||"anonymous")+"]";if("symbol"===i)return a.call(t).replace(u,"Symbol($1)");var s=r.call(t).slice(8,-1);return"Date"===s?isNaN(t.getTime())?""+t:t.toISOString(t):"Error"===s||t instanceof Error?"["+n.call(t)+"]":"RegExp"===s?o.call(t):null}t.exports=e.default},55058:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.getIn=i,e.default=void 0;var o=r(18479),a=n(r(23973)),u=function(t){return t.substr(0,t.length-1).substr(1)};function i(t,e,r,n){var i,s,c;return n=n||r,e?((0,o.forEach)(e,(function(o,f,l){var p=f?u(o):o;if(l||(0,a.default)(t,"_subType")){var h=l?parseInt(p,10):0;if(t=t.resolve({context:n,parent:i,value:r})._subType,r){if(l&&h>=r.length)throw new Error("Yup.reach cannot resolve an array item at index: "+o+", in the path: "+e+". because there is no value at that index. ");r=r[h]}}if(!l){if(t=t.resolve({context:n,parent:i,value:r}),!(0,a.default)(t,"fields")||!(0,a.default)(t.fields,p))throw new Error("The schema does not contain the path: "+e+". (failed at: "+c+' which is a type: "'+t._type+'") ');t=t.fields[p],i=r,r=r&&r[p],s=p,c=f?"["+o+"]":"."+o}})),{schema:t,parent:i,parentPath:s}):{parent:i,parentPath:e,schema:t}}e.default=function(t,e,r,n){return i(t,e,r,n).schema}},65638:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.propagateErrors=function(t,e){return t?null:function(t){return e.push(t),t.value}},e.settled=c,e.collectErrors=f,e.default=function(t){var e,r,n,a=t.endEarly,u=(0,o.default)(t,["endEarly"]);return a?(e=u.validations,r=u.value,n=u.sync,i(n).all(e).catch((function(t){throw"ValidationError"===t.name&&(t.value=r),t})).then((function(){return r}))):f(u)};var o=n(r(66820)),a=r(63958),u=n(r(81699)),i=function(t){return t?a.SynchronousPromise:Promise},s=function(t){return void 0===t&&(t=[]),t.inner&&t.inner.length?t.inner:[].concat(t)};function c(t,e){var r=i(e);return r.all(t.map((function(t){return r.resolve(t).then((function(t){return{fulfilled:!0,value:t}}),(function(t){return{fulfilled:!1,value:t}}))})))}function f(t){var e=t.validations,r=t.value,n=t.path,o=t.sync,a=t.errors,i=t.sort;return a=s(a),c(e,o).then((function(t){var e=t.filter((function(t){return!t.fulfilled})).reduce((function(t,e){var r=e.value;if(!u.default.isError(r))throw r;return t.concat(r)}),[]);if(i&&e.sort(i),(a=e.concat(a)).length)throw new u.default(a,r,n);return r}))}},20055:(t,e)=>{"use strict";function r(t,e){var r=1/0;return t.some((function(t,n){if(-1!==e.path.indexOf(t))return r=n,!0})),r}e.__esModule=!0,e.default=function(t){var e=Object.keys(t);return function(t,n){return r(e,t)-r(e,n)}},t.exports=e.default},43630:(t,e,r)=>{"use strict";var n=r(34169);e.__esModule=!0,e.default=function(t,e){void 0===e&&(e=[]);var r=[],n=[];function c(t,o){var a=(0,u.split)(t)[0];~n.indexOf(a)||n.push(a),~e.indexOf(o+"-"+a)||r.push([o,a])}for(var f in t)if((0,o.default)(t,f)){var l=t[f];~n.indexOf(f)||n.push(f),i.default.isRef(l)&&l.isSibling?c(l.path,f):(0,s.default)(l)&&l._deps&&l._deps.forEach((function(t){return c(t,f)}))}return a.default.array(n,r).reverse()};var o=n(r(23973)),a=n(r(99556)),u=r(18479),i=n(r(44618)),s=n(r(3098));t.exports=e.default},82683:t=>{t.exports=function(t,e){return e||(e=t.slice(0)),t.raw=e,t},t.exports.__esModule=!0,t.exports.default=t.exports}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[815],{20650:(e,t,n)=>{n.d(t,{O:()=>T});var r=n(1024),o=n.n(r),a=n(20789),i=n(55452),c=n(80845),s=n(83140),u=n(53957),l=n(8246),f="cv-missing-word-",d=n(83914),m=n(58130);const v={incorrect:"yodaE",answer:"KpbWq",avatarContainer:"uKRg2"};var p=["A","B","C","D"];function y(e){var t=1===e.interaction.actionableItems.filter((function(e){return e.isCorrect})).length;function n(t,n){e.onSelectAnswer&&e.onSelectAnswer(t,n)}return o().createElement(o().Fragment,null,e.interaction.actionableItems.map((function(r,i){var c=e.getSelectedAnswer(r.id);if(e.onlyShowSelectedAnswer&&!c)return o().createElement(o().Fragment,{key:i});var s=c?"bg-info text-white":e.unCheckedBackground,u=function(){return o().createElement(o().Fragment,null,p[i])};e.showFeedback&&(s=r.isCorrect?"bg-success text-white":"bg-danger text-white ".concat(v.incorrect),e.hideFeedbackIcons||(u=function(){return o().createElement(o().Fragment,null,r.isCorrect?o().createElement(d.x,{size:d.S.Small,svgName:m.vn.Check}):o().createElement(d.x,{size:d.S.Small,svgName:m.vn.Close}))}));var l=e.showFeedback?{}:{role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&n(r,!c)}};return o().createElement(o().Fragment,{key:i},o().createElement("input",{id:r.id,type:t?"radio":"checkbox",name:"multiple-choice",checked:!!c,onChange:function(){return n(r,!c)},disabled:e.showFeedback,hidden:!0,tabIndex:-1}),o().createElement("label",Object.assign({className:"\n d-block\n rounded-lg\n shadow-sm\n mb-2\n ".concat("sm"===e.size?"p-2":"p-3","\n d-flex\n justify-content-between\n position-relative\n ").concat(e.showFeedback?"":"cursor-pointer","\n ").concat(v.answer,"\n ").concat(s),key:i,htmlFor:r.id},l),o().createElement("span",{className:"d-inline-block mr-3 cv-multiple-choice-bullet"},o().createElement(u,null)),o().createElement("span",{className:"flex-grow-1 pr-4"},r.name),!e.onlyShowSelectedAnswer&&o().createElement("span",{className:v.avatarContainer},c&&o().createElement(a.q,{imageCdnUrl:e.imageApi,initials:e.userInitials,imageUrl:e.userAvatar}))))})))}y.defaultProps={size:"lg",unCheckedBackground:"bg-white"};const b="Y7ls8";var g=n(75896);const w={feedback:"CBgCv",avatarContainer:"CVTEm",avatarContainerSmall:"tbPTs",avatarSmall:"GUAUz",incorrect:"ZCkyL",large:"TKjXy",small:"_2qC40"};function h(e){function t(t){e.onSelectAnswer&&e.onSelectAnswer(t)}return o().createElement("div",{className:"d-flex ".concat(e.className?e.className:""," ").concat("sm"===e.size?"mx-n1":"mx-n2")},e.interaction.actionableItems.map((function(n,r){var i=e.getSelectedAnswer(n.id),c=i?"bg-info text-white":e.unCheckedBackground,s=function(){return o().createElement(o().Fragment,null)};e.showFeedback&&(c=n.isCorrect?"bg-success text-white":"bg-danger text-white ".concat(w.incorrect),e.hideFeedbackIcons||(s=function(){return o().createElement(o().Fragment,null,n.isCorrect?o().createElement(d.x,{size:d.S.Small,svgName:m.vn.Check}):o().createElement(d.x,{size:d.S.Small,svgName:m.vn.Close}))}));var u=e.showFeedback?{}:{role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&t(n)}};return o().createElement("label",Object.assign({key:r,htmlFor:n.id,className:"\n rounded-lg\n shadow-sm\n my-0\n position-relative\n overflow-hidden\n d-flex\n align-items-center\n justify-content-center\n ".concat("sm"===e.size?"".concat(w.small," mx-1 h5"):"".concat(w.large," mx-2 h4"),"\n ").concat(e.showFeedback?"":"cursor-pointer","\n ").concat(c)},u),o().createElement("input",{id:n.id,type:"radio",name:"multiple-choice",checked:!!i,onChange:function(){return t(n)},disabled:e.showFeedback,hidden:!0}),n.name,o().createElement("span",{className:"position-absolute p-2 ".concat(w.feedback)},o().createElement(s,null)),o().createElement("span",{className:"".concat(w.avatarContainer).concat("sm"===e.size?" ".concat(w.avatarContainerSmall):"")},i&&o().createElement(a.q,{imageCdnUrl:e.imageApi,initials:e.userInitials,imageUrl:e.userAvatar,extraClasses:"border border-white ".concat("sm"===e.size?w.avatarSmall:"")})))})))}var E;function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==C(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===C(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}h.defaultProps={size:"lg",unCheckedBackground:"bg-white"};var S=function(){return o().createElement(o().Fragment,null)},k=(I(E={},u.InteractionTypeId.Annotation,S),I(E,u.InteractionTypeId.Image,S),I(E,u.InteractionTypeId.MissingWord,(function(e){var t=e.interaction.data.sentence.replace(/{([^{}]*)}/g,(function(e,t){return"{".concat(f).concat(t,"}")})).split(/{([^{}]*)}/g),n="p-2";return e.reportsStyling||(n+=" border rounded"),o().createElement("div",{className:n},t.map((function(t,n){if(!t.startsWith(f))return t;var r=t.replace(f,""),a=e.interaction.actionableItems.find((function(e){return e.order.toString()===r}));if(a){var i=e.answers.find((function(e){return e.id==a.id}));if(i){if(!e.showFeedback)return o().createElement("strong",{key:n,className:"text-info"},i.text);var c=i.status===l.N.Correct;return o().createElement(o().Fragment,{key:n},!c&&o().createElement(o().Fragment,null,o().createElement("del",{className:"text-danger"},o().createElement("strong",null,i.text))," "),o().createElement("strong",{className:"text-success"},a.name))}}})))})),I(E,u.InteractionTypeId.MultipleChoice,(function(e){var t,n,r,a,c="my-2";return e.reportsStyling&&(c+=" mx-2"),o().createElement("div",{className:c},o().createElement(y,{interaction:e.interaction,showFeedback:e.showFeedback,getSelectedAnswer:function(t){var n=e.answers.find((function(e){return e.id==t}));return null==n?void 0:n.text},imageApi:e.imageCdnUrl,userInitials:e.anonymisedUserName?i.l.getInitialsFromFullName(e.anonymisedUserName):i.l.getInitials(null===(t=e.user)||void 0===t?void 0:t.name,null===(n=e.user)||void 0===n?void 0:n.surname),userAvatar:e.anonymisedUserName?null:null===(a=null===(r=e.user)||void 0===r?void 0:r.avatar)||void 0===a?void 0:a.url,onlyShowSelectedAnswer:!e.showAvatar,size:"sm",unCheckedBackground:e.showFeedback?"":"".concat(b," text-white")}))})),I(E,u.InteractionTypeId.TrueOrFalse,(function(e){var t,n,r,a,c="justify-content-start";return e.reportsStyling&&(c="justify-content-center"),o().createElement("div",{className:"my-2"},o().createElement(h,{className:c,interaction:e.interaction,showFeedback:e.showFeedback,hideFeedbackIcons:!e.showAvatar,getSelectedAnswer:function(t){var n=e.answers.find((function(e){return e.id==t}));return null==n?void 0:n.text},imageApi:e.imageCdnUrl,userInitials:e.anonymisedUserName?i.l.getInitialsFromFullName(e.anonymisedUserName):i.l.getInitials(null===(t=e.user)||void 0===t?void 0:t.name,null===(n=e.user)||void 0===n?void 0:n.surname),userAvatar:e.anonymisedUserName?null:null===(a=null===(r=e.user)||void 0===r?void 0:r.avatar)||void 0===a?void 0:a.url,size:"sm",unCheckedBackground:e.showFeedback?"":"".concat(b," text-white")}))})),I(E,u.InteractionTypeId.ShortAnswer,(function(e){var t=g.m.first(e.answers);if(!t)return o().createElement(o().Fragment,null);var n="rounded p-2 mb-2";return e.reportsStyling||(n+=" bg-info text-white"),o().createElement("div",{className:n},t.text)})),E),N=n(23481).T.encloseNamespace("interactives.responseTypes");function A(){return o().createElement("p",{className:"p-2"},o().createElement("em",null,N("noResponse")))}var j=n(28972);function x(e){return o().createElement(o().Fragment,null,e.correctness===j.w.Correct&&o().createElement("div",{className:"ml-2 text-success"},o().createElement(d.x,{svgName:m.vn.Check})),e.correctness===j.w.Incorrect&&o().createElement("div",{className:"ml-2 text-danger"},o().createElement(d.x,{svgName:m.vn.Close})))}function F(e){return o().createElement("div",{className:"d-flex align-items-center justify-content-between"},o().createElement("strong",null,e.anonymisedUserName||i.l.getFullName(e.studentResults.user)),o().createElement(x,{correctness:e.correctness}))}function O(e){return e.correctness!==j.w.AwaitingMarking?o().createElement(o().Fragment,null):o().createElement("div",{className:"d-flex justify-content-end mt-1"},o().createElement("div",{className:"d-flex flex-column justify-content-end cursor-pointer\n ".concat(e.markedStatus===l.N.Correct?"text-success":"")},o().createElement(d.x,{svgName:e.markedStatus===l.N.Correct?m.vn.CheckCircle:m.vn.CheckCircleOutline,onClick:function(){return e.markInteraction(e.studentAttempt.answers,l.N.Correct)}})),o().createElement("div",{className:"d-flex flex-column justify-content-end cursor-pointer\n ".concat(e.markedStatus===l.N.Incorrect?" text-danger":"")},o().createElement(d.x,{svgName:e.markedStatus===l.N.Incorrect?m.vn.CrossCircleFilled:m.vn.CrossCircle,onClick:function(){return e.markInteraction(e.studentAttempt.answers,l.N.Incorrect)}})))}const P={avatarContainer:"FEdgT"};function T(e){var t,n,r,u,l,f=k[e.interaction.typeId];if(!f)return o().createElement(o().Fragment,null);var d=(0,c.j_)(e.studentResults),m=(0,c.f6)(e.interaction.id,d),v=s.A.isInteractionCorrect(e.interaction,d);return o().createElement("div",{className:"rounded ".concat(null!==(t=e.className)&&void 0!==t?t:"")},o().createElement("div",{className:"d-flex"},!!e.showStudentDetails&&o().createElement("div",{className:"mr-2"},o().createElement("div",{className:P.avatarContainer},o().createElement(a.q,{imageCdnUrl:e.imageCdnUrl,initials:e.anonymisedUserName?i.l.getInitialsFromFullName(e.anonymisedUserName):i.l.getInitials(null===(n=e.studentResults.user)||void 0===n?void 0:n.name,null===(r=e.studentResults.user)||void 0===r?void 0:r.surname),imageUrl:e.anonymisedUserName?null:null===(l=null===(u=e.studentResults.user)||void 0===u?void 0:u.avatar)||void 0===l?void 0:l.url}))),o().createElement("div",{className:"flex-grow-1"},!!e.showStudentDetails&&o().createElement(F,{studentResults:e.studentResults,correctness:v,anonymisedUserName:e.anonymisedUserName}),o().createElement("div",{className:"d-flex justify-content-between"},o().createElement("div",{className:"flex-grow-1 ".concat(e.responseComponentClass?e.responseComponentClass:"")},m?o().createElement(f,{interaction:e.interaction,answers:m.answers,imageCdnUrl:e.imageCdnUrl,user:e.studentResults.user,showFeedback:e.showFeedback,showAvatar:e.showAvatar,reportsStyling:e.reportsStyling}):o().createElement(A,null)),!e.showStudentDetails&&o().createElement(x,{correctness:v})))),o().createElement(O,{studentAttempt:m,correctness:v,markInteraction:e.markInteraction,markedStatus:e.markedStatus}))}},28972:(e,t,n)=>{var r;n.d(t,{w:()=>r}),function(e){e[e.Correct=0]="Correct",e[e.Incorrect=1]="Incorrect",e[e.AwaitingMarking=2]="AwaitingMarking",e[e.Answered=3]="Answered",e[e.UnAnswered=4]="UnAnswered",e[e.NotApplicable=5]="NotApplicable"}(r||(r={}))},8246:(e,t,n)=>{var r;n.d(t,{N:()=>r}),function(e){e[e.Incorrect=0]="Incorrect",e[e.Correct=1]="Correct",e[e.PendingReview=2]="PendingReview"}(r||(r={}))},55110:(e,t,n)=>{n.d(t,{Z:()=>c});var r=n(1024),o=n(71365);var a=n(60139),i=n(79976);function c(){var e,t,n,c=(e=i.P.ALERT,t=e,n=o.u.getInstance(t),r.useEffect((function(){return function(){o.u.releaseInstance(t)}})),n);return{success:function(e){c.success(e)()},error:function(e){c.error(e)()},warning:function(e){c.createAlert({type:a.NK.Warning,heading:a.R6.Warning,message:e})}}}},52622:(e,t,n)=>{n.d(t,{v:()=>S});var r=n(1024),o=n(81886),a=n(50242),i=n(67058),c=n(49075),s=n(23481),u=n(64364);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===l(o)?o:String(o)),r)}var o}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v="shared.privateResourceError",p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(i,e);var t,n,r,o,a=(r=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(r);if(o){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,s.T.getPhrase(v,"title"))}return t=i,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return s.T.getPhrase(v,"heading")}},{key:"description",get:function(){return s.T.getPhrase(v,"description")}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u.H);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==y(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===y(o)?o:String(o)),r)}var o}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var h="shared.regionLockedResourceError",E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(i,e);var t,n,r,o,a=(r=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(r);if(o){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,s.T.getPhrase(h,"title"))}return t=i,(n=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return s.T.getPhrase(h,"heading")}},{key:"description",get:function(){return s.T.getPhrase(h,"description")}}])&&b(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),i}(u.H),C={notFound:i.d,forbidden:{rating:p,yearLevel:p,region:E,privacy:p},badRequest:c._};function I(e){return e.map((function(e){return e.statusCode})).join(":")}function S(e,t,n){var i=Array.isArray(e)?e:[e];(0,r.useEffect)((function(){i.forEach((function(e){!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e){var r;r="number"==typeof e?e:e.status;var i=Object.assign(Object.assign({},C),t);r&&o.Q.ErrorHelper.isStatusCodeError(r)&&(r!==a.o.NotFound?r!==a.o.Forbidden?n.badRequest||o.Q.ErrorHelper.throw(new i.badRequest):n.forbidden||o.Q.ErrorHelper.throw(new i.forbidden.privacy):n.notFound||o.Q.ErrorHelper.throw(new i.notFound))}}(e.statusCode,t,n)}))}),[I(i),t,n])}},83140:(e,t,n)=>{n.d(t,{A:()=>y});var r,o=n(53957),a=n(28972),i=n(8246);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(){return a.w.NotApplicable}function l(e,t){var n=e.actionableItems.filter((function(e){return e.isCorrect}));return n.every((function(e){return!t(e.id)}))?a.w.UnAnswered:n.every((function(e){var n;return e.name.trim().toLowerCase()===(null===(n=t(e.id))||void 0===n?void 0:n.trim().toLowerCase())}))?a.w.Correct:a.w.Incorrect}function f(e,t){return e.actionableItems.every((function(e){return!t(e.id)}))?a.w.UnAnswered:e.actionableItems.filter((function(e){return e.isCorrect})).every((function(e){return t(e.id)===e.name}))?a.w.Correct:a.w.Incorrect}function d(e,t){var n;return e.actionableItems.forEach((function(e){var r=t(e.id);n=r?r.status!==i.N.Correct?r.status!==i.N.Incorrect?a.w.AwaitingMarking:a.w.Incorrect:a.w.Correct:a.w.UnAnswered})),n}function m(e,t){return function(n){var r=t.attempts.find((function(t){return t.id===e.id}));return null==r?void 0:r.answers.find((function(e){return e.id===n}))}}function v(e,t){var n=m(e,t);return f(e,(function(e){var t=n(e);return null==t?void 0:t.text}))}var p=(s(r={},o.InteractionTypeId.Annotation,u),s(r,o.InteractionTypeId.Image,u),s(r,o.InteractionTypeId.MissingWord,(function(e,t){var n=m(e,t);return l(e,(function(e){var t=n(e);return null==t?void 0:t.text}))})),s(r,o.InteractionTypeId.MultipleChoice,v),s(r,o.InteractionTypeId.ShortAnswer,(function(e,t){return d(e,m(e,t))})),s(r,o.InteractionTypeId.TrueOrFalse,v),r),y={notApplicable:u,awaitingMarking:function(){return a.w.AwaitingMarking},isMissingWordCorrect:l,isMultipleChoiceCorrect:f,isShortAnswerMarkedCorrect:d,isInteractionCorrect:function(e,t){return(0,p[e.typeId])(e,t)}}},80845:(e,t,n)=>{n.d(t,{Q:()=>u,Wn:()=>i,f6:()=>s,j_:()=>c});var r=n(75896),o=n(53957);function a(e){return e.typeId!==o.InteractionTypeId.Annotation&&e.typeId!==o.InteractionTypeId.Image}function i(e){return r.m.flatten(e.timepoints.map((function(e){return e.interactions})))}function c(e){return r.m.last(e.results)}function s(e,t){return r.m.findWhere(null==t?void 0:t.attempts,{id:e})}function u(e){return i(e).filter(a)}},95601:(e,t,n)=>{n.d(t,{D:()=>m});var r=n(1024),o=n(58566),a=n(20354),i=n(23481),c=n(55110),s=n(94884),u=n(22628);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var d=i.T.encloseNamespace("reportsShared.dataHooks"),m=function(e,t,n){var i,m,v=(i=(0,r.useState)({}),m=2,function(e){if(Array.isArray(e))return e}(i)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(u)throw o}}return c}}(i,m)||function(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}(i,m)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),p=v[0],y=v[1],b=(0,o.useDispatch)(),g=(0,c.Z)();return{markedAnswers:p,addMarkedAnswers:function(e,t){e.forEach((function(e){y((function(n){return Object.assign(Object.assign({},n),(r={},o=(0,u.UU)(e),a=Object.assign(Object.assign({},e),{status:t}),(o=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===l(t)?t:String(t)}(o))in r?Object.defineProperty(r,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):r[o]=a,r));var r,o,a}))}))},submitMarkedAnswers:function(){var r=Object.keys(p).map((function(e){return p[e]}));if(r.length){var o=0,i=0;r.forEach((function(n){var r=n.id,o=n.resultId,i=n.questionId,l=n.status;a.a.fetch(b,s.b.mark(e,t,r,{id:r,resultId:o,questionId:i,status:l},c,null,u))}))}function c(){i++}function u(){var e,t;++o===r.length&&(e="",t=!1,0===i&&(e=d("error",{smartCount:r.length}),t=!0),i<o&&(e=d("success",{smartCount:i})+" ".concat(d("partialError",{smartCount:o-i}))),i===o&&(e=d("success",{smartCount:i})),t?g.error(e):g.success(e),y({}),n&&n())}}}}},82974:(e,t,n)=>{function r(e,t,n){var r="".concat(e,":").concat(t.start,":").concat(t.end),o=Array.isArray(t.userId)?t.userId.sort().join(":"):t.userId,a=Array.isArray(t.groupId)?t.groupId.sort().join(":"):t.groupId;return o&&(r+=":".concat(o)),a&&(r+=":".concat(a)),n&&(r+=":".concat(n)),r}n.d(t,{H:()=>r})},22628:(e,t,n)=>{n.d(t,{HI:()=>u,Rt:()=>f,UU:()=>s,Zs:()=>c,nq:()=>l});var r=n(28972),o=n(8246),a=n(80845),i=n(83140);function c(e,t){return(0,a.Wn)(e).find((function(e){return e.id.toString()===t.toString()}))}function s(e){return"".concat(e.questionId,":").concat(e.resultId)}function u(e,t,n){var r=(0,a.j_)(t),i=(0,a.f6)(e,r);return(null==i?void 0:i.answers.every((function(e){var t;return(null===(t=n[s(e)])||void 0===t?void 0:t.status)===o.N.Correct})))?o.N.Correct:(null==i?void 0:i.answers.every((function(e){var t;return(null===(t=n[s(e)])||void 0===t?void 0:t.status)===o.N.Incorrect})))?o.N.Incorrect:void 0}function l(e,t){var n=t.students.length,o=0,c=0,s=0,u=0;return t.students.forEach((function(t){var n=(0,a.j_)(t);if(n){var l=i.A.isInteractionCorrect(e,n);l===r.w.Correct&&o++,l===r.w.UnAnswered&&s++,l===r.w.AwaitingMarking&&u++,l!==r.w.UnAnswered&&c++}})),{percentCorrect:n>0?o/n:0,correct:o,answered:c,unanswered:s,awaitingMarking:u}}function f(e,t){var n=(0,a.j_)(t),o=(0,a.Q)(e),c=o.length,s=0,u=0;o.forEach((function(e){var t=i.A.isInteractionCorrect(e,n);t===r.w.Correct&&s++,t===r.w.AwaitingMarking&&u++}));var l=c>0?s/c:0;return{answered:n.attempts.length,unanswered:c-n.attempts.length,percentCorrect:l,correct:s,awaitingMarking:u}}},39709:(e,t,n)=>{n.d(t,{B:()=>s,j:()=>u});var r=n(76198),o=n(23481),a=n(55452),i=n(76881),c=o.T.encloseNamespace("reportsShared.utils");function s(e,t){return t?(0,r._8)(function(e){var t=+"".concat(e.id).concat(Math.floor((new Date).getMinutes()/5));return{dictionaries:[r.O9,r.yd],separator:" ",length:2,style:"capital",seed:t}}(e)):a.l.getFullName(e)}function u(e){switch(e){case i.Y.Learner:return c("student");case i.Y.Staff:return c("staff");default:return e}}}}]);
|