You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
159 KiB
12 lines
159 KiB
6 months ago
|
(self.webpackChunk=self.webpackChunk||[]).push([[158],{27063:function(W,Z,d){"use strict";d.d(Z,{Z:function(){return K}});var S=d(67294);function A(Q){var ee=(0,S.useRef)(Q);return ee.current=Q,ee}var x=A,w=function(ee){return ee!==null&&typeof ee=="object"},M=function(ee){return typeof ee=="function"},L=function(ee){return typeof ee=="string"},H=function(ee){return typeof ee=="boolean"},E=function(ee){return typeof ee=="number"},j=function(ee){return typeof ee>"u"},D=!1,R=D,O=function(ee){R&&(M(ee)||console.error("useUnmount expected parameter is a function, got ".concat(typeof ee)));var ue=x(ee);(0,S.useEffect)(function(){return function(){ue.current()}},[])},K=O},95507:function(W,Z,d){"use strict";d.d(Z,{ZM:function(){return f},ZP:function(){return N}});var S=d(74902),A=d(87462),x=d(4942),w=d(97685),M=d(71002),L=d(94184),H=d.n(L),E=d(67294),j=d(53124),D=d(88258),R=d(92820),O=d(25378),K=d(84739),Q=d(11382),ee=d(24308),ue=d(21584),Re=d(96159),ze=function(T,a){var i={};for(var p in T)Object.prototype.hasOwnProperty.call(T,p)&&a.indexOf(p)<0&&(i[p]=T[p]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,p=Object.getOwnPropertySymbols(T);$<p.length;$++)a.indexOf(p[$])<0&&Object.prototype.propertyIsEnumerable.call(T,p[$])&&(i[p[$]]=T[p[$]]);return i},Ae=function(a){var i=a.prefixCls,p=a.className,$=a.avatar,k=a.title,F=a.description,he=ze(a,["prefixCls","className","avatar","title","description"]),ae=(0,E.useContext)(j.E_),me=ae.getPrefixCls,se=me("list",i),Ce=H()("".concat(se,"-item-meta"),p),Fe=E.createElement("div",{className:"".concat(se,"-item-meta-content")},k&&E.createElement("h4",{className:"".concat(se,"-item-meta-title")},k),F&&E.createElement("div",{className:"".concat(se,"-item-meta-description")},F));return E.createElement("div",(0,A.Z)({},he,{className:Ce}),$&&E.createElement("div",{className:"".concat(se,"-item-meta-avatar")},$),(k||F)&&Fe)},Te=function(a,i){var p=a.prefixCls,$=a.children,k=a.actions,F=a.extra,he=a.className,ae=a.colStyle,me=ze(a,["prefixCls","children","actions","extra","className","colStyle"]),se=(0,E.useContext)(f),Ce=se.grid,Fe=se.itemLayout,Ie=(0,E.useContext)(j.E_),et=Ie.getPrefixCls,De=function(){var dt;return E.Children.forEach($,function(Xe){typeof Xe=="string"&&(dt=!0)}),dt&&E.Children.count($)>1},Ze=function(){return Fe==="vertical"?!!F:!De()},Be=et("list",p),Ve=k&&k.length>0&&E.createElement("ul",{className:"".concat(Be,"-item-action"),key:"actions"},k.map(function(pt,dt){return E.createElement("li",{key:"".concat(Be,"-item-action-").concat(dt)},pt,dt!==k.length-1&&E.createElement("em",{className:"".concat(Be,"-item-action-split")}))})),it=Ce?"div":"li",ft=E.createElement(it,(0,A.Z)({},me,Ce?{}:{ref:i},{className:H()("".concat(Be,"-item"),(0,x.Z)({},"".concat(Be,"-item-no-flex"),!Ze()),he)}),Fe==="vertical"&&F?[E.createElement("div",{className:"".concat(Be,"-item-main"),key:"content"},$,Ve),E.createElement("div",{className:"".concat(Be,"-item-extra"),key:"extra"},F)]:[$,Ve,(0,Re.Tm)(F,{key:"extra"})]);return Ce?E.createElement(ue.Z,{ref:i,flex:1,style:ae},ft):ft},ne=(0,E.forwardRef)(Te);ne.Meta=Ae;var Ge=ne,g=function(T,a){var i={};for(var p in T)Object.prototype.hasOwnProperty.call(T,p)&&a.indexOf(p)<0&&(i[p]=T[p]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,p=Object.getOwnPropertySymbols(T);$<p.length;$++)a.indexOf(p[$])<0&&Object.prototype.propertyIsEnumerable.call(T,p[$])&&(i[p[$]]=T[p[$]]);return i},f=E.createContext({}),h=f.Consumer;function m(T){var a,i=T.pagination,p=i===void 0?!1:i,$=T.prefixCls,k=T.bordered,F=k===void 0?!1:k,he=T.split,ae=he===void 0?!0:he,me=T.className,se=T.children,Ce=T.itemLayout,Fe=T.loadMore,Ie=T.grid,et=T.dataSource,De=et===void 0?[]:et,Ze=T.size,Be=T.header,Ve=T.footer,it=T.loading,ft=it===void 0?!1:it,pt=T.rowKey,dt=T.renderItem,Xe=T.locale,Vt=g(T,["pagination","prefixCls","bordered","split","className","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),nn=p&&(0,M.Z)(p)==="object"?p:{},dn=E.useState(nn.defaultCurrent||1),St=
|
||
|
`),function(D){if(E=D.indexOf(":"),L=S.trim(D.substr(0,E)).toLowerCase(),H=S.trim(D.substr(E+1)),L){if(M[L]&&A.indexOf(L)>=0)return;L==="set-cookie"?M[L]=(M[L]?M[L]:[]).concat([H]):M[L]=M[L]?M[L]+", "+H:H}}),M}},8713:function(W){"use strict";W.exports=function(d){return function(A){return d.apply(null,A)}}},54875:function(W,Z,d){"use strict";var S=d(97288).version,A={};["object","boolean","number","function","string","symbol"].forEach(function(M,L){A[M]=function(E){return typeof E===M||"a"+(L<1?"n ":" ")+M}});var x={};A.transitional=function(L,H,E){function j(D,R){return"[Axios v"+S+"] Transitional option '"+D+"'"+R+(E?". "+E:"")}return function(D,R,O){if(L===!1)throw new Error(j(R," has been removed"+(H?" in "+H:"")));return H&&!x[R]&&(x[R]=!0,console.warn(j(R," has been deprecated since v"+H+" and will be removed in the near future"))),L?L(D,R,O):!0}};function w(M,L,H){if(typeof M!="object")throw new TypeError("options must be an object");for(var E=Object.keys(M),j=E.length;j-- >0;){var D=E[j],R=L[D];if(R){var O=M[D],K=O===void 0||R(O,D,M);if(K!==!0)throw new TypeError("option "+D+" must be "+K);continue}if(H!==!0)throw Error("Unknown option "+D)}}W.exports={assertOptions:w,validators:A}},64867:function(W,Z,d){"use strict";var S=d(91849),A=Object.prototype.toString;function x(h){return A.call(h)==="[object Array]"}function w(h){return typeof h>"u"}function M(h){return h!==null&&!w(h)&&h.constructor!==null&&!w(h.constructor)&&typeof h.constructor.isBuffer=="function"&&h.constructor.isBuffer(h)}function L(h){return A.call(h)==="[object ArrayBuffer]"}function H(h){return typeof FormData<"u"&&h instanceof FormData}function E(h){var m;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?m=ArrayBuffer.isView(h):m=h&&h.buffer&&h.buffer instanceof ArrayBuffer,m}function j(h){return typeof h=="string"}function D(h){return typeof h=="number"}function R(h){return h!==null&&typeof h=="object"}function O(h){if(A.call(h)!=="[object Object]")return!1;var m=Object.getPrototypeOf(h);return m===null||m===Object.prototype}function K(h){return A.call(h)==="[object Date]"}function Q(h){return A.call(h)==="[object File]"}function ee(h){return A.call(h)==="[object Blob]"}function ue(h){return A.call(h)==="[object Function]"}function Re(h){return R(h)&&ue(h.pipe)}function ze(h){return typeof URLSearchParams<"u"&&h instanceof URLSearchParams}function Ae(h){return h.trim?h.trim():h.replace(/^\s+|\s+$/g,"")}function Te(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function ne(h,m){if(!(h===null||typeof h>"u"))if(typeof h!="object"&&(h=[h]),x(h))for(var N=0,T=h.length;N<T;N++)m.call(null,h[N],N,h);else for(var a in h)Object.prototype.hasOwnProperty.call(h,a)&&m.call(null,h[a],a,h)}function Ge(){var h={};function m(a,i){O(h[i])&&O(a)?h[i]=Ge(h[i],a):O(a)?h[i]=Ge({},a):x(a)?h[i]=a.slice():h[i]=a}for(var N=0,T=arguments.length;N<T;N++)ne(arguments[N],m);return h}function g(h,m,N){return ne(m,function(a,i){N&&typeof a=="function"?h[i]=S(a,N):h[i]=a}),h}function f(h){return h.charCodeAt(0)===65279&&(h=h.slice(1)),h}W.exports={isArray:x,isArrayBuffer:L,isBuffer:M,isFormData:H,isArrayBufferView:E,isString:j,isNumber:D,isObject:R,isPlainObject:O,isUndefined:w,isDate:K,isFile:Q,isBlob:ee,isFunction:ue,isStream:Re,isURLSearchParams:ze,isStandardBrowserEnv:Te,forEach:ne,merge:Ge,extend:g,trim:Ae,stripBOM:f}},7145:function(W,Z,d){"use strict";var S=d(34155);Object.defineProperty(Z,"__esModule",{value:!0});function A(g){return typeof g=="object"&&!("toString"in g)?Object.prototype.toString.call(g).slice(8,-1):g}var x=typeof S=="object"&&!0;function w(g,f){if(!g)throw x?new Error("Invariant failed"):new Error(f())}Z.invariant=w;var M=Object.prototype.hasOwnProperty,L=Array.prototype.splice,H=Object.prototype.toString;function E(g){return H.call(g).slice(8,-1)}var j=Object.assign||function(g,f){return D(f).forEach(function(h){M.call(f,h)&&(g[h]=f[h])}),g},D=typeof Object.getOwnPropertySymbols=="function"?function(g){return Object.keys(g).co
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ae(l,b){if(!!l){if(typeof l=="string")return me(l,b);var I=Object.prototype.toString.call(l).slice(8,-1);if(I==="Object"&&l.constructor&&(I=l.constructor.name),I==="Map"||I==="Set")return Array.from(l);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return me(l,b)}}function me(l,b){(b==null||b>l.length)&&(b=l.length);for(var I=0,y=new Array(b);I<b;I++)y[I]=l[I];return y}function se(l,b){var I=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(I!=null){var y=[],V=!0,q=!1,ie,G;try{for(I=I.call(l);!(V=(ie=I.next()).done)&&(y.push(ie.value),!(b&&y.length===b));V=!0);}catch(re){q=!0,G=re}finally{try{!V&&I.return!=null&&I.return()}finally{if(q)throw G}}return y}}function Ce(l){if(Array.isArray(l))return l}function Fe(l,b,I){var y=S.useState(0),V=F(y,2),q=V[0],ie=V[1],G=(0,S.useRef)(new Map),re=(0,S.useRef)(new k),de=(0,S.useRef)();function Ee(){D.Z.cancel(de.current)}function pe(){Ee(),de.current=(0,D.Z)(function(){G.current.forEach(function(be,Oe){if(be&&be.offsetParent){var $e=(0,T.Z)(be),Pe=$e.offsetHeight;re.current.get(Oe)!==Pe&&re.current.set(Oe,$e.offsetHeight)}}),ie(function(be){return be+1})})}function we(be,Oe){var $e=l(be),Pe=G.current.get($e);Oe?(G.current.set($e,Oe),pe()):G.current.delete($e),!Pe!=!Oe&&(Oe?b==null||b(be):I==null||I(be))}return(0,S.useEffect)(function(){return Ee},[]),[we,pe,re.current,q]}function Ie(l){return Ie=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},Ie(l)}function et(l,b,I,y,V,q,ie,G){var re=S.useRef();return function(de){if(de==null){G();return}if(D.Z.cancel(re.current),typeof de=="number")ie(de);else if(de&&Ie(de)==="object"){var Ee,pe=de.align;"index"in de?Ee=de.index:Ee=b.findIndex(function($e){return V($e)===de.key});var we=de.offset,be=we===void 0?0:we,Oe=function $e(Pe,wt){if(!(Pe<0||!l.current)){var Mt=l.current.clientHeight,gt=!1,Nt=wt;if(Mt){for(var Jt=wt||pe,Qt=0,vt=0,Bt=0,on=Math.min(b.length,Ee),At=0;At<=on;At+=1){var It=V(b[At]);vt=Qt;var Xt=I.get(It);Bt=vt+(Xt===void 0?y:Xt),Qt=Bt,At===Ee&&Xt===void 0&&(gt=!0)}var le=null;switch(Jt){case"top":le=vt-be;break;case"bottom":le=Bt-Mt+be;break;default:{var rt=l.current.scrollTop,at=rt+Mt;vt<rt?Nt="top":Bt>at&&(Nt="bottom")}}le!==null&&le!==l.current.scrollTop&&ie(le)}re.current=(0,D.Z)(function(){gt&&q(),$e(Pe-1,Nt)})}};Oe(3)}}}function De(l,b,I,y){var V=I-l,q=b-I,ie=Math.min(V,q)*2;if(y<=ie){var G=Math.floor(y/2);return y%2?I+G+1:I-G}return V>q?I-(y-q):I+(y-V)}function Ze(l,b,I){var y=l.length,V=b.length,q,ie;if(y===0&&V===0)return null;y<V?(q=l,ie=b):(q=b,ie=l);var G={__EMPTY_ITEM__:!0};function re(Oe){return Oe!==void 0?I(Oe):G}for(var de=null,Ee=Math.abs(y-V)!==1,pe=0;pe<ie.length;pe+=1){var we=re(q[pe]),be=re(ie[pe]);if(we!==be){de=pe,Ee=Ee||we!==re(ie[pe+1]);break}}return de===null?null:{index:de,multiple:Ee}}function Be(l,b){return dt(l)||pt(l,b)||it(l,b)||Ve()}function Ve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function it(l,b){if(!!l){if(typeof l=="string")return ft(l,b);var I=Object.prototype.toString.call(l).slice(8,-1);if(I==="Object"&&l.constructor&&(I=l.constructor.name),I==="Map"||I==="Set")return Array.from(l);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return ft(l,b)}}function ft(l,b){(b==null||b>l.length)&&(b=l.length);for(var I=0,y=new Array(b);I<b;I++)y[I]=l[I];return y}function pt(l,b){var I=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(I!=null){var y=[],V=!0,q=!1,ie,G;try{for(I=I.call(l);!(V=(ie=I.next()).done)&&(y.push(ie.value),!(b&&y.length===b));V=!0);}catch(re){q=!0,G=re}finally{try{!V&&I.return!=null&&I.return()}finally{if(q)throw G}}return y}}function dt(l){if(Array.isArray(l))return l}function Xe(l,b,I){var y=S.useState(l),V=Be(y,2),q=V[0],ie=V[1],G=S.useState(null),re=Be(G,2),de=re[0],Ee=re[1];return S.useEffect(function(){var pe=Ze(q||[],l||[],b);(pe==null?void 0:pe.index)!==void 0&&(I==null||I(pe.index),Ee(l[pe.index])),ie(l)},[l]),[de]}function Vt(l){return Vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},Vt(l)}var nn=(typeof navigator>"u"?"undefined":Vt(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),dn=nn,St=function(l,b){var I=(0,S.useRef)(!1),y=(0,S.useRef)(null);function V(){clearTimeout(y.current),I.current=!0,y.current=setTimeout(function(){I.current=!1},50)}var q=(0,S.useRef)({top:l,bottom:b});return q.current.top=l,q.current.bottom=b,function(ie){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,re=ie<0&&q.current.top||ie>0&&q.current.bottom;return G&&re?(clearTimeout(y.current),I.current=!1):(!re||I.current)&&V(),!I.current&&re}};function $t(l,b,I,y){var V=(0,S.useRef)(0),q=(0,S.useRef)(null),ie=(0,S.useRef)(null),G=(0,S.useRef)(!1),re=St(b,I);function de(pe){if(!!l){D.Z.cancel(q.current);var we=pe.deltaY;V.current+=we,ie.current=we,!re(we)&&(dn||pe.preventDefault(),q.current=(0,D.Z)(function(){var be=G.current?10:1;y(V.current*be),V.current=0}))}}function Ee(pe){!l||(G.current=pe.detail===ie.current)}return[de,Ee]}var Ct=d(8410),Ut=14/15;function rn(l,b,I){var y=(0,S.useRef)(!1),V=(0,S.useRef)(0),q=(0,S.useRef)(null),ie=(0,S.useRef)(null),G,re=function(we){if(y.current){var be=Math.ceil(we.touches[0].pageY),Oe=V.current-be;V.current=be,I(Oe)&&we.preventDefault(),clearInterval(ie.current),ie.current=setInterval(function(){Oe*=Ut,(!I(Oe,!0)||Math.abs(Oe)<=.1)&&clearInterval(ie.current)},16)}},de=function(){y.current=!1,G()},Ee=function(we){G(),we.touches.length===1&&!y.current&&(y.current=!0,V.current=Math.ceil(we.touches[0].pageY),q.current=we.target,q.current.addEventListener("touchmove",re),q.current.addEventListener("touchend",de))};G=function(){q.current&&(q.current.removeEventListener("touchmove",re),q.current.removeEventListener("touchend",de))},(0,Ct.Z)(function(){return l&&b.current.addEventListener("touchstart",Ee),function(){var pe;(pe=b.current)===null||pe===void 0||pe.removeEventListener("touchstart",Ee),G(),clearInterval(ie.current)}},[l])}var ot=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function nt(){return nt=Object.assign||function(l){for(var b=1;b<arguments.length;b++){var I=arguments[b];for(var y in I)Object.prototype.hasOwnProperty.call(I,y)&&(l[y]=I[y])}return l},nt.apply(this,arguments)}function X(l,b){var I=Object.keys(l);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(l);b&&(y=y.filter(function(V){return Object.getOwnPropertyDescriptor(l,V).enumerable})),I.push.apply(I,y)}return I}function We(l){for(var b=1;b<arguments.length;b++){var I=arguments[b]!=null?arguments[b]:{};b%2?X(Object(I),!0).forEach(function(y){ye(l,y,I[y])}):Object.getOwnPropertyDescriptors?Object.defineProperties(l,Object.getOwnPropertyDescriptors(I)):X(Object(I))
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jt(l,b){if(!!l){if(typeof l=="string")return Ue(l,b);var I=Object.prototype.toString.call(l).slice(8,-1);if(I==="Object"&&l.constructor&&(I=l.constructor.name),I==="Map"||I==="Set")return Array.from(l);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return Ue(l,b)}}function Ue(l,b){(b==null||b>l.length)&&(b=l.length);for(var I=0,y=new Array(b);I<b;I++)y[I]=l[I];return y}function ht(l,b){var I=l==null?null:typeof Symbol<"u"&&l[Symbol.iterator]||l["@@iterator"];if(I!=null){var y=[],V=!0,q=!1,ie,G;try{for(I=I.call(l);!(V=(ie=I.next()).done)&&(y.push(ie.value),!(b&&y.length===b));V=!0);}catch(re){q=!0,G=re}finally{try{!V&&I.return!=null&&I.return()}finally{if(q)throw G}}return y}}function Dt(l){if(Array.isArray(l))return l}function lt(l,b){if(l==null)return{};var I=Ft(l,b),y,V;if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(l);for(V=0;V<q.length;V++)y=q[V],!(b.indexOf(y)>=0)&&(!Object.prototype.propertyIsEnumerable.call(l,y)||(I[y]=l[y]))}return I}function Ft(l,b){if(l==null)return{};var I={},y=Object.keys(l),V,q;for(q=0;q<y.length;q++)V=y[q],!(b.indexOf(V)>=0)&&(I[V]=l[V]);return I}var yt=[],tt={overflowY:"auto",overflowAnchor:"none"};function Ye(l,b){var I=l.prefixCls,y=I===void 0?"rc-virtual-list":I,V=l.className,q=l.height,ie=l.itemHeight,G=l.fullHeight,re=G===void 0?!0:G,de=l.style,Ee=l.data,pe=l.children,we=l.itemKey,be=l.virtual,Oe=l.component,$e=Oe===void 0?"div":Oe,Pe=l.onScroll,wt=l.onVisibleChange,Mt=lt(l,ot),gt=!!(be!==!1&&q&&ie),Nt=gt&&Ee&&ie*Ee.length>q,Jt=(0,S.useState)(0),Qt=Le(Jt,2),vt=Qt[0],Bt=Qt[1],on=(0,S.useState)(!1),At=Le(on,2),It=At[0],Xt=At[1],le=x()(y,V),rt=Ee||yt,at=(0,S.useRef)(),xt=(0,S.useRef)(),mn=(0,S.useRef)(),qt=S.useCallback(function(ve){return typeof we=="function"?we(ve):ve==null?void 0:ve[we]},[we]),Sn={getKey:qt};function an(ve){Bt(function(Ne){var Ke;typeof ve=="function"?Ke=ve(Ne):Ke=ve;var _t=C(Ke);return at.current.scrollTop=_t,_t})}var yn=(0,S.useRef)({start:0,end:rt.length}),En=(0,S.useRef)(),Dn=Xe(rt,qt),sn=Le(Dn,1),hn=sn[0];En.current=hn;var Je=Fe(qt,null,null),Lt=Le(Je,4),pn=Lt[0],un=Lt[1],en=Lt[2],Gt=Lt[3],Wt=S.useMemo(function(){if(!gt)return{scrollHeight:void 0,start:0,end:rt.length-1,offset:void 0};if(!Nt){var ve;return{scrollHeight:((ve=xt.current)===null||ve===void 0?void 0:ve.offsetHeight)||0,start:0,end:rt.length-1,offset:void 0}}for(var Ne=0,Ke,_t,Pt,bn=rt.length,r=0;r<bn;r+=1){var e=rt[r],t=qt(e),n=en.get(t),c=Ne+(n===void 0?ie:n);c>=vt&&Ke===void 0&&(Ke=r,_t=Ne),c>vt+q&&Pt===void 0&&(Pt=r),Ne=c}return Ke===void 0&&(Ke=0,_t=0,Pt=Math.ceil(q/ie)),Pt===void 0&&(Pt=rt.length-1),Pt=Math.min(Pt+1,rt.length),{scrollHeight:Ne,start:Ke,end:Pt,offset:_t}},[Nt,gt,vt,rt,Gt,q]),zt=Wt.scrollHeight,ln=Wt.start,kt=Wt.end,o=Wt.offset;yn.current.start=ln,yn.current.end=kt;var u=zt-q,s=(0,S.useRef)(u);s.current=u;function C(ve){var Ne=ve;return Number.isNaN(s.current)||(Ne=Math.min(Ne,s.current)),Ne=Math.max(Ne,0),Ne}var _=vt<=0,z=vt>=u,ce=St(_,z);function fe(ve){var Ne=ve;an(Ne)}function J(ve){var Ne=ve.currentTarget.scrollTop;Ne!==vt&&an(Ne),Pe==null||Pe(ve)}var xe=$t(gt,_,z,function(ve){an(function(Ne){var Ke=Ne+ve;return Ke})}),ke=Le(xe,2),Qe=ke[0],st=ke[1];rn(gt,at,function(ve,Ne){return ce(ve,Ne)?!1:(Qe({preventDefault:function(){},deltaY:ve}),!0)}),(0,Ct.Z)(function(){function ve(Ne){gt&&Ne.preventDefault()}return at.current.addEventListener("wheel",Qe),at.current.addEventListener("DOMMouseScroll",st),at.current.addEventListener("MozMousePixelScroll",ve),function(){at.current&&(at.current.removeEventListener("wheel",Qe),at.current.removeEventListener("DOMMouseScroll",st),at.current.removeEventListener("MozMousePixelScroll",ve))}},[gt]);var qe=et(at,rt,en,ie,qt,un,an,function(){var ve;(ve=mn.current)===null||ve===void 0||ve.delayHidden()});S.useImperativeHandle(b,function(){return{scrollTo:qe}}),(0,Ct.Z)(function(){if(wt){var ve=rt.slice(ln,kt+1);wt(ve,rt)}},[ln,kt,rt]);var mt=N(rt,ln,kt,pn,pe,Sn),ge=null;return q&&(ge=We(ye({},re?"height":"max
|
||
|
Plugins prop is no longer supported.
|
||
|
Instead, mount it with "Sortable.mount(new MultiDrag())"
|
||
|
Please read the updated README.md at https://github.com/SortableJS/react-sortablejs.
|
||
|
`)}componentDidMount(){if(this.ref.current===null)return;const f=this.makeOptions();M(S).create(this.ref.current,f)}componentDidUpdate(f){f.disabled!==this.props.disabled&&this.sortable&&this.sortable.option("disabled",this.props.disabled)}render(){const{tag:f,style:h,className:m,id:N}=this.props,T={style:h,className:m,id:N},a=!f||f===null?"div":f;return(0,x.createElement)(a,{ref:this.ref,...T},this.getChildren())}getChildren(){const{children:f,dataIdAttr:h,selectedClass:m="sortable-selected",chosenClass:N="sortable-chosen",dragClass:T="sortable-drag",fallbackClass:a="sortable-falback",ghostClass:i="sortable-ghost",swapClass:p="sortable-swap-highlight",filter:$="sortable-filter",list:k}=this.props;if(!f||f==null)return null;const F=h||"data-id";return x.Children.map(f,(he,ae)=>{if(he===void 0)return;const me=k[ae]||{},{className:se}=he.props,Ce=typeof $=="string"&&{[$.replace(".","")]:!!me.filtered},Fe=M(A)(se,{[m]:me.selected,[N]:me.chosen,...Ce});return(0,x.cloneElement)(he,{[F]:he.key,className:Fe})})}get sortable(){const f=this.ref.current;if(f===null)return null;const h=Object.keys(f).find(m=>m.includes("Sortable"));return h?f[h]:null}makeOptions(){const f=["onAdd","onChoose","onDeselect","onEnd","onRemove","onSelect","onSpill","onStart","onUnchoose","onUpdate"],h=["onChange","onClone","onFilter","onSort"],m=Ae(this.props);return f.forEach(T=>m[T]=this.prepareOnHandlerPropAndDOM(T)),h.forEach(T=>m[T]=this.prepareOnHandlerProp(T)),{...m,onMove:(T,a)=>{const{onMove:i}=this.props,p=T.willInsertAfter||-1;if(!i)return p;const $=i(T,a,this.sortable,Te);return typeof $>"u"?!1:$}}}prepareOnHandlerPropAndDOM(f){return h=>{this.callOnHandlerProp(h,f),this[f](h)}}prepareOnHandlerProp(f){return h=>{this.callOnHandlerProp(h,f)}}callOnHandlerProp(f,h){const m=this.props[h];m&&m(f,this.sortable,Te)}onAdd(f){const{list:h,setList:m,clone:N}=this.props,T=[...Te.dragging.props.list],a=K(f,T);R(a);const i=ue(a,h,f,N).map(p=>Object.assign(p,{selected:!1}));m(i,this.sortable,Te)}onRemove(f){const{list:h,setList:m}=this.props,N=Re(f),T=K(f,h);O(T);let a=[...h];if(f.pullMode!=="clone")a=ee(T,a);else{let i=T;switch(N){case"multidrag":i=T.map((p,$)=>({...p,element:f.clones[$]}));break;case"normal":i=T.map(p=>({...p,element:f.clone}));break;case"swap":default:M(w)(!0,`mode "${N}" cannot clone. Please remove "props.clone" from <ReactSortable/> when using the "${N}" plugin`)}R(i),T.forEach(p=>{const $=p.oldIndex,k=this.props.clone(p.item,f);a.splice($,1,k)})}a=a.map(i=>Object.assign(i,{selected:!1})),m(a,this.sortable,Te)}onUpdate(f){const{list:h,setList:m}=this.props,N=K(f,h);R(N),O(N);const T=Q(N,h);return m(T,this.sortable,Te)}onStart(){Te.dragging=this}onEnd(){Te.dragging=null}onChoose(f){const{list:h,setList:m}=this.props,N=h.map((T,a)=>{let i=T;return a===f.oldIndex&&(i=Object.assign(T,{chosen:!0})),i});m(N,this.sortable,Te)}onUnchoose(f){const{list:h,setList:m}=this.props,N=h.map((T,a)=>{let i=T;return a===f.oldIndex&&(i=Object.assign(i,{chosen:!1})),i});m(N,this.sortable,Te)}onSpill(f){const{removeOnSpill:h,revertOnSpill:m}=this.props;h&&!m&&E(f.item)}onSelect(f){const{list:h,setList:m}=this.props,N=h.map(T=>Object.assign(T,{selected:!1}));f.newIndicies.forEach(T=>{const a=T.index;if(a===-1){console.log(`"${f.type}" had indice of "${T.index}", which is probably -1 and doesn't usually happen here.`),console.log(f);return}N[a].selected=!0}),m(N,this.sortable,Te)}onDeselect(f){const{list:h,setList:m}=this.props,N=h.map(T=>Object.assign(T,{selected:!1}));f.newIndicies.forEach(T=>{const a=T.index;a!==-1&&(N[a].selected=!0)}),m(N,this.sortable,Te)}}var Ge={};H(W.exports,Ge)},64045:function(W,Z){var d,S;(function(){"use strict";var A={}.hasOwnProperty;function x(){for(var w=[],M=0;M<arguments.length;M++){var L=arguments[M];if(!!L){var H=typeof L;if(H==="string"||H==="number")w.push(L);else if(Array.isArray(L)){if(L.length){var E=x.apply(null,L);E&&w.push(E)}}else if(H==="object")if(L.toString===Object.prototype.toString)for(var j in L)A.call(L,j)&&L[j]&&w.push(j);else w.push(L.toString())}}return w.join(" ")}W.exports?(x.default=x,W.exp
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Q="1.15.0";function ee(r){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(r)}var ue=ee(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Re=ee(/Edge/i),ze=ee(/firefox/i),Ae=ee(/safari/i)&&!ee(/chrome/i)&&!ee(/android/i),Te=ee(/iP(ad|od|hone)/i),ne=ee(/chrome/i)&&ee(/android/i),Ge={capture:!1,passive:!1};function g(r,e,t){r.addEventListener(e,t,!ue&&Ge)}function f(r,e,t){r.removeEventListener(e,t,!ue&&Ge)}function h(r,e){if(!!e){if(e[0]===">"&&(e=e.substring(1)),r)try{if(r.matches)return r.matches(e);if(r.msMatchesSelector)return r.msMatchesSelector(e);if(r.webkitMatchesSelector)return r.webkitMatchesSelector(e)}catch{return!1}return!1}}function m(r){return r.host&&r!==document&&r.host.nodeType?r.host:r.parentNode}function N(r,e,t,n){if(r){t=t||document;do{if(e!=null&&(e[0]===">"?r.parentNode===t&&h(r,e):h(r,e))||n&&r===t)return r;if(r===t)break}while(r=m(r))}return null}var T=/\s+/g;function a(r,e,t){if(r&&e)if(r.classList)r.classList[t?"add":"remove"](e);else{var n=(" "+r.className+" ").replace(T," ").replace(" "+e+" "," ");r.className=(n+(t?" "+e:"")).replace(T," ")}}function i(r,e,t){var n=r&&r.style;if(n){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(r,""):r.currentStyle&&(t=r.currentStyle),e===void 0?t:t[e];!(e in n)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),n[e]=t+(typeof t=="string"?"":"px")}}function p(r,e){var t="";if(typeof r=="string")t=r;else do{var n=i(r,"transform");n&&n!=="none"&&(t=n+" "+t)}while(!e&&(r=r.parentNode));var c=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return c&&new c(t)}function $(r,e,t){if(r){var n=r.getElementsByTagName(e),c=0,v=n.length;if(t)for(;c<v;c++)t(n[c],c);return n}return[]}function k(){var r=document.scrollingElement;return r||document.documentElement}function F(r,e,t,n,c){if(!(!r.getBoundingClientRect&&r!==window)){var v,P,U,B,Y,oe,te;if(r!==window&&r.parentNode&&r!==k()?(v=r.getBoundingClientRect(),P=v.top,U=v.left,B=v.bottom,Y=v.right,oe=v.height,te=v.width):(P=0,U=0,B=window.innerHeight,Y=window.innerWidth,oe=window.innerHeight,te=window.innerWidth),(e||t)&&r!==window&&(c=c||r.parentNode,!ue))do if(c&&c.getBoundingClientRect&&(i(c,"transform")!=="none"||t&&i(c,"position")!=="static")){var Se=c.getBoundingClientRect();P-=Se.top+parseInt(i(c,"border-top-width")),U-=Se.left+parseInt(i(c,"border-left-width")),B=P+v.height,Y=U+v.width;break}while(c=c.parentNode);if(n&&r!==window){var _e=p(c||r),Me=_e&&_e.a,He=_e&&_e.d;_e&&(P/=He,U/=Me,te/=Me,oe/=He,B=P+oe,Y=U+te)}return{top:P,left:U,bottom:B,right:Y,width:te,height:oe}}}function he(r,e,t){for(var n=Ie(r,!0),c=F(r)[e];n;){var v=F(n)[t],P=void 0;if(t==="top"||t==="left"?P=c>=v:P=c<=v,!P)return n;if(n===k())break;n=Ie(n,!1)}return!1}function ae(r,e,t,n){for(var c=0,v=0,P=r.children;v<P.length;){if(P[v].style.display!=="none"&&P[v]!==le.ghost&&(n||P[v]!==le.dragged)&&N(P[v],t.draggable,r,!1)){if(c===e)return P[v];c++}v++}return null}function me(r,e){for(var t=r.lastElementChild;t&&(t===le.ghost||i(t,"display")==="none"||e&&!h(t,e));)t=t.previousElementSibling;return t||null}function se(r,e){var t=0;if(!r||!r.parentNode)return-1;for(;r=r.previousElementSibling;)r.nodeName.toUpperCase()!=="TEMPLATE"&&r!==le.clone&&(!e||h(r,e))&&t++;return t}function Ce(r){var e=0,t=0,n=k();if(r)do{var c=p(r),v=c.a,P=c.d;e+=r.scrollLeft*v,t+=r.scrollTop*P}while(r!==n&&(r=r.parentNode));return[e,t]}function Fe(r,e){for(var t in r)if(!!r.hasOwnProperty(t)){for(var n in e)if(e.hasOwnProperty(n)&&e[n]===r[t][n])return Number(t)}return-1}function Ie(r,e){if(!r||!r.getBoundingClientRect)return k();var t=r,n=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var c=i(t);if(t.clientWidth<t.scrollWidth&&(c.overflowX=="auto"||c.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(c.overflowY=="auto"||c.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return k();if(n||e)return t;n=!0}}while(t=t.p
|
||
|
`),dataTransfer:a=>a},matchesTypes:["Url","text/uri-list"]},[j]:{exposeProperties:{text:(a,i)=>R(a,i,""),dataTransfer:a=>a},matchesTypes:["Text","text/plain"]}};function K(a,i){const p=O[a];if(!p)throw new Error(`native type ${a} has no configuration`);const $=new L(p);return $.loadDataTransfer(i),$}function Q(a){if(!a)return null;const i=Array.prototype.slice.call(a.types||[]);return Object.keys(O).filter(p=>{const $=O[p];return $!=null&&$.matchesTypes?$.matchesTypes.some(k=>i.indexOf(k)>-1):!1})[0]||null}const ee=A(()=>/firefox/i.test(navigator.userAgent)),ue=A(()=>Boolean(window.safari));class Re{interpolate(i){const{xs:p,ys:$,c1s:k,c2s:F,c3s:he}=this;let ae=p.length-1;if(i===p[ae])return $[ae];let me=0,se=he.length-1,Ce;for(;me<=se;){Ce=Math.floor(.5*(me+se));const et=p[Ce];if(et<i)me=Ce+1;else if(et>i)se=Ce-1;else return $[Ce]}ae=Math.max(0,se);const Fe=i-p[ae],Ie=Fe*Fe;return $[ae]+k[ae]*Fe+F[ae]*Ie+he[ae]*Fe*Ie}constructor(i,p){const{length:$}=i,k=[];for(let De=0;De<$;De++)k.push(De);k.sort((De,Ze)=>i[De]<i[Ze]?-1:1);const F=[],he=[],ae=[];let me,se;for(let De=0;De<$-1;De++)me=i[De+1]-i[De],se=p[De+1]-p[De],he.push(me),F.push(se),ae.push(se/me);const Ce=[ae[0]];for(let De=0;De<he.length-1;De++){const Ze=ae[De],Be=ae[De+1];if(Ze*Be<=0)Ce.push(0);else{me=he[De];const Ve=he[De+1],it=me+Ve;Ce.push(3*it/((it+Ve)/Ze+(it+me)/Be))}}Ce.push(ae[ae.length-1]);const Fe=[],Ie=[];let et;for(let De=0;De<Ce.length-1;De++){et=ae[De];const Ze=Ce[De],Be=1/he[De],Ve=Ze+Ce[De+1]-et-et;Fe.push((et-Ze-Ve)*Be),Ie.push(Ve*Be*Be)}this.xs=i,this.ys=p,this.c1s=Ce,this.c2s=Fe,this.c3s=Ie}}const ze=1;function Ae(a){const i=a.nodeType===ze?a:a.parentElement;if(!i)return null;const{top:p,left:$}=i.getBoundingClientRect();return{x:$,y:p}}function Te(a){return{x:a.clientX,y:a.clientY}}function ne(a){var i;return a.nodeName==="IMG"&&(ee()||!(!((i=document.documentElement)===null||i===void 0)&&i.contains(a)))}function Ge(a,i,p,$){let k=a?i.width:p,F=a?i.height:$;return ue()&&a&&(F/=window.devicePixelRatio,k/=window.devicePixelRatio),{dragPreviewWidth:k,dragPreviewHeight:F}}function g(a,i,p,$,k){const F=ne(i),ae=Ae(F?a:i),me={x:p.x-ae.x,y:p.y-ae.y},{offsetWidth:se,offsetHeight:Ce}=a,{anchorX:Fe,anchorY:Ie}=$,{dragPreviewWidth:et,dragPreviewHeight:De}=Ge(F,i,se,Ce),Ze=()=>{let Xe=new Re([0,.5,1],[me.y,me.y/Ce*De,me.y+De-Ce]).interpolate(Ie);return ue()&&F&&(Xe+=(window.devicePixelRatio-1)*De),Xe},Be=()=>new Re([0,.5,1],[me.x,me.x/se*et,me.x+et-se]).interpolate(Fe),{offsetX:Ve,offsetY:it}=k,ft=Ve===0||Ve,pt=it===0||it;return{x:ft?Ve:Be(),y:pt?it:Ze()}}class f{get window(){if(this.globalContext)return this.globalContext;if(typeof window<"u")return window}get document(){var i;return!((i=this.globalContext)===null||i===void 0)&&i.document?this.globalContext.document:this.window?this.window.document:void 0}get rootElement(){var i;return((i=this.optionsArgs)===null||i===void 0?void 0:i.rootElement)||this.window}constructor(i,p){this.ownerDocument=null,this.globalContext=i,this.optionsArgs=p}}function h(a,i,p){return i in a?Object.defineProperty(a,i,{value:p,enumerable:!0,configurable:!0,writable:!0}):a[i]=p,a}function m(a){for(var i=1;i<arguments.length;i++){var p=arguments[i]!=null?arguments[i]:{},$=Object.keys(p);typeof Object.getOwnPropertySymbols=="function"&&($=$.concat(Object.getOwnPropertySymbols(p).filter(function(k){return Object.getOwnPropertyDescriptor(p,k).enumerable}))),$.forEach(function(k){h(a,k,p[k])})}return a}class N{profile(){var i,p;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((i=this.dragStartSourceIds)===null||i===void 0?void 0:i.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((p=this.dragOverTargetIds)===null||p===void 0?void 0:p.length)||0}}get window(){return this.options.window}get document(){return this.options.document}get rootElement(){return this.options.rootElement}setup(){const i=this.ro
|