mig-schema-table 4.3.7 → 4.3.8

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.
@@ -1,4 +1,4 @@
1
- import { c as $t, l as Ve } from "./index-Be2DznhM.js";
1
+ import { c as $t, l as Ve } from "./index-VUSOHn6w.js";
2
2
  function Fe(ye) {
3
3
  throw new Error('Could not dynamically require "' + ye + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
4
  }
@@ -9079,7 +9079,7 @@ const ka = () => {
9079
9079
  q,
9080
9080
  c,
9081
9081
  T,
9082
- I.format,
9082
+ I == null ? void 0 : I.format,
9083
9083
  ee,
9084
9084
  a,
9085
9085
  f,
@@ -15089,7 +15089,7 @@ const FS = ({
15089
15089
  async (se) => {
15090
15090
  if (se.preventDefault(), se.stopPropagation(), !at)
15091
15091
  return;
15092
- const { renderDataToExcel: _ } = await import("./index-D0_V_UK2.js");
15092
+ const { renderDataToExcel: _ } = await import("./index-BuHaK2fQ.js");
15093
15093
  _(at);
15094
15094
  },
15095
15095
  [at]
@@ -1,4 +1,4 @@
1
- import { D as E, a as s, E as M, M as _, R as D, b as A, d as I } from "./index-Be2DznhM.js";
1
+ import { D as E, a as s, E as M, M as _, R as D, b as A, d as I } from "./index-VUSOHn6w.js";
2
2
  export {
3
3
  E as DEFAULT_DATE_FORMAT,
4
4
  s as DEFAULT_DATE_TIME_FORMAT,
@@ -53,7 +53,7 @@ __p += '`),qt&&(Be+=`' +
53
53
  function print() { __p += __j.call(arguments, '') }
54
54
  `:`;
55
55
  `)+Be+`return __p
56
- }`;var Pt=vp(function(){return er(se,ht+"return "+Be).apply(e,fe)});if(Pt.source=Be,zu(Pt))throw Pt;return Pt}function z4(g){return tr(g).toLowerCase()}function W4(g){return tr(g).toUpperCase()}function $4(g,M,P){if(g=tr(g),g&&(P||M===e))return Ed(g);if(!g||!(M=Jr(M)))return g;var X=vn(g),G=vn(M),se=Dd(X,G),fe=Od(X,G)+1;return Ci(X,se,fe).join("")}function U4(g,M,P){if(g=tr(g),g&&(P||M===e))return g.slice(0,Id(g)+1);if(!g||!(M=Jr(M)))return g;var X=vn(g),G=Od(X,vn(M))+1;return Ci(X,0,G).join("")}function H4(g,M,P){if(g=tr(g),g&&(P||M===e))return g.replace(pe,"");if(!g||!(M=Jr(M)))return g;var X=vn(g),G=Dd(X,vn(M));return Ci(X,G).join("")}function Y4(g,M){var P=U,X=Y;if(hr(M)){var G="separator"in M?M.separator:G;P="length"in M?Rt(M.length):P,X="omission"in M?Jr(M.omission):X}g=tr(g);var se=g.length;if(ys(g)){var fe=vn(g);se=fe.length}if(P>=se)return g;var ge=P-vs(X);if(ge<1)return X;var ke=fe?Ci(fe,0,ge).join(""):g.slice(0,ge);if(G===e)return ke+X;if(fe&&(ge+=ke.length-ge),Wu(G)){if(g.slice(ge).search(G)){var je,Le=ke;for(G.global||(G=nu(G.source,tr(Pe.exec(G))+"g")),G.lastIndex=0;je=G.exec(Le);)var Be=je.index;ke=ke.slice(0,Be===e?ge:Be)}}else if(g.indexOf(Jr(G),ge)!=ge){var et=ke.lastIndexOf(G);et>-1&&(ke=ke.slice(0,et))}return ke+X}function V4(g){return g=tr(g),g&&pt.test(g)?g.replace(Tt,_v):g}var q4=Ms(function(g,M,P){return g+(P?" ":"")+M.toUpperCase()}),Hu=wh("toUpperCase");function yp(g,M,P){return g=tr(g),M=P?e:M,M===e?gv(g)?kv(g):av(g):g.match(M)||[]}var vp=Lt(function(g,M){try{return Gr(g,e,M)}catch(P){return zu(P)?P:new Ot(P)}}),X4=Jn(function(g,M){return an(M,function(P){P=Fn(P),Gn(g,P,Fu(g[P],g))}),g});function K4(g){var M=g==null?0:g.length,P=vt();return g=M?fr(g,function(X){if(typeof X[1]!="function")throw new ln(i);return[P(X[0]),X[1]]}):[],Lt(function(X){for(var G=-1;++G<M;){var se=g[G];if(Gr(se[0],this,X))return Gr(se[1],this,X)}})}function Z4(g){return _2(cn(g,c))}function Yu(g){return function(){return g}}function G4(g,M){return g==null||g!==g?M:g}var Q4=xh(),J4=xh(!0);function Xr(g){return g}function Vu(g){return Qd(typeof g=="function"?g:cn(g,c))}function e6(g){return eh(cn(g,c))}function t6(g,M){return th(g,cn(M,c))}var r6=Lt(function(g,M){return function(P){return ro(P,g,M)}}),n6=Lt(function(g,M){return function(P){return ro(g,P,M)}});function qu(g,M,P){var X=Er(M),G=Ta(M,X);P==null&&!(hr(M)&&(G.length||!X.length))&&(P=M,M=g,g=this,G=Ta(M,Er(M)));var se=!(hr(P)&&"chain"in P)||!!P.chain,fe=ti(g);return an(G,function(ge){var ke=M[ge];g[ge]=ke,fe&&(g.prototype[ge]=function(){var je=this.__chain__;if(se||je){var Le=g(this.__wrapped__),Be=Le.__actions__=Yr(this.__actions__);return Be.push({func:ke,args:arguments,thisArg:g}),Le.__chain__=je,Le}return ke.apply(g,vi([this.value()],arguments))})}),g}function i6(){return Ir._===this&&(Ir._=Ov),this}function Xu(){}function s6(g){return g=Rt(g),Lt(function(M){return rh(M,g)})}var o6=Cu(fr),a6=Cu(Sd),l6=Cu(Zl);function wp(g){return Iu(g)?Gl(Fn(g)):F2(g)}function u6(g){return function(M){return g==null?e:$i(g,M)}}var c6=kh(),f6=kh(!0);function Ku(){return[]}function Zu(){return!1}function d6(){return{}}function h6(){return""}function p6(){return!0}function m6(g,M){if(g=Rt(g),g<1||g>w)return[];var P=N,X=Pr(g,N);M=vt(M),g-=N;for(var G=eu(X,M);++P<g;)M(P);return G}function g6(g){return At(g)?fr(g,Fn):en(g)?[g]:Yr(zh(tr(g)))}function b6(g){var M=++Ev;return tr(g)+M}var y6=Ra(function(g,M){return g+M},0),v6=Mu("ceil"),w6=Ra(function(g,M){return g/M},1),_6=Mu("floor");function x6(g){return g&&g.length?Ma(g,Xr,fu):e}function S6(g,M){return g&&g.length?Ma(g,vt(M,2),fu):e}function k6(g){return Md(g,Xr)}function C6(g,M){return Md(g,vt(M,2))}function M6(g){return g&&g.length?Ma(g,Xr,mu):e}function T6(g,M){return g&&g.length?Ma(g,vt(M,2),mu):e}var E6=Ra(function(g,M){return g*M},1),D6=Mu("round"),O6=Ra(function(g,M){return g-M},0);function A6(g){return g&&g.length?Jl(g,Xr):0}function I6(g,M){return g&&g.length?Jl(g,vt(M,2)):0}return ie.after=e_,ie.ary=Gh,ie.assign=W_,ie.assignIn=fp,ie.assignInWith=Va,ie.assignWith=$_,ie.at=U_,ie.before=Qh,ie.bind=Fu,ie.bindAll=X4,ie.bindKey=Jh,ie.castArray=d_,ie.chain=Xh,ie.chunk=_w,ie.compact=xw,ie.concat=Sw,ie.cond=K4,ie.conforms=Z4,ie.constant=Yu,ie.countBy=A3,ie.create=H_,ie.curry=ep,ie.curryRight=tp,ie.debounce=rp,ie.defaults=Y_,ie.defaultsDeep=V_,ie.defer=t_,ie.delay=r_,ie.difference=kw,ie.differenceBy=Cw,ie.differenceWith=Mw,ie.drop=Tw,ie.dropRight=Ew,ie.dropRightWhile=Dw,ie.dropWhile=Ow,ie.fill=Aw,ie.filter=R3,ie.flatMap=j3,ie.flatMapDeep=L3,ie.flatMapDepth=F3,ie.flatten=Hh,ie.flattenDeep=Iw,ie.flattenDepth=Rw,ie.flip=n_,ie.flow=Q4,ie.flowRight=J4,ie.fromPairs=Nw,ie.functions=J_,ie.functionsIn=e4,ie.groupBy=B3,ie.initial=jw,ie.intersection=Lw,ie.intersectionBy=Fw,ie.intersectionWith=Bw,ie.invert=r4,ie.invertBy=n4,ie.invokeMap=W3,ie.iteratee=Vu,ie.keyBy=$3,ie.keys=Er,ie.keysIn=qr,ie.map=za,ie.mapKeys=s4,ie.mapValues=o4,ie.matches=e6,ie.matchesProperty=t6,ie.memoize=$a,ie.merge=a4,ie.mergeWith=dp,ie.method=r6,ie.methodOf=n6,ie.mixin=qu,ie.negate=Ua,ie.nthArg=s6,ie.omit=l4,ie.omitBy=u4,ie.once=i_,ie.orderBy=U3,ie.over=o6,ie.overArgs=s_,ie.overEvery=a6,ie.overSome=l6,ie.partial=Bu,ie.partialRight=np,ie.partition=H3,ie.pick=c4,ie.pickBy=hp,ie.property=wp,ie.propertyOf=u6,ie.pull=Uw,ie.pullAll=Vh,ie.pullAllBy=Hw,ie.pullAllWith=Yw,ie.pullAt=Vw,ie.range=c6,ie.rangeRight=f6,ie.rearg=o_,ie.reject=q3,ie.remove=qw,ie.rest=a_,ie.reverse=ju,ie.sampleSize=K3,ie.set=d4,ie.setWith=h4,ie.shuffle=Z3,ie.slice=Xw,ie.sortBy=J3,ie.sortedUniq=t3,ie.sortedUniqBy=r3,ie.split=j4,ie.spread=l_,ie.tail=n3,ie.take=i3,ie.takeRight=s3,ie.takeRightWhile=o3,ie.takeWhile=a3,ie.tap=x3,ie.throttle=u_,ie.thru=Ba,ie.toArray=lp,ie.toPairs=pp,ie.toPairsIn=mp,ie.toPath=g6,ie.toPlainObject=cp,ie.transform=p4,ie.unary=c_,ie.union=l3,ie.unionBy=u3,ie.unionWith=c3,ie.uniq=f3,ie.uniqBy=d3,ie.uniqWith=h3,ie.unset=m4,ie.unzip=Lu,ie.unzipWith=qh,ie.update=g4,ie.updateWith=b4,ie.values=Ds,ie.valuesIn=y4,ie.without=p3,ie.words=yp,ie.wrap=f_,ie.xor=m3,ie.xorBy=g3,ie.xorWith=b3,ie.zip=y3,ie.zipObject=v3,ie.zipObjectDeep=w3,ie.zipWith=_3,ie.entries=pp,ie.entriesIn=mp,ie.extend=fp,ie.extendWith=Va,qu(ie,ie),ie.add=y6,ie.attempt=vp,ie.camelCase=x4,ie.capitalize=gp,ie.ceil=v6,ie.clamp=v4,ie.clone=h_,ie.cloneDeep=m_,ie.cloneDeepWith=g_,ie.cloneWith=p_,ie.conformsTo=b_,ie.deburr=bp,ie.defaultTo=G4,ie.divide=w6,ie.endsWith=S4,ie.eq=_n,ie.escape=k4,ie.escapeRegExp=C4,ie.every=I3,ie.find=N3,ie.findIndex=$h,ie.findKey=q_,ie.findLast=P3,ie.findLastIndex=Uh,ie.findLastKey=X_,ie.floor=_6,ie.forEach=Kh,ie.forEachRight=Zh,ie.forIn=K_,ie.forInRight=Z_,ie.forOwn=G_,ie.forOwnRight=Q_,ie.get=$u,ie.gt=y_,ie.gte=v_,ie.has=t4,ie.hasIn=Uu,ie.head=Yh,ie.identity=Xr,ie.includes=z3,ie.indexOf=Pw,ie.inRange=w4,ie.invoke=i4,ie.isArguments=Yi,ie.isArray=At,ie.isArrayBuffer=w_,ie.isArrayLike=Vr,ie.isArrayLikeObject=vr,ie.isBoolean=__,ie.isBuffer=Mi,ie.isDate=x_,ie.isElement=S_,ie.isEmpty=k_,ie.isEqual=C_,ie.isEqualWith=M_,ie.isError=zu,ie.isFinite=T_,ie.isFunction=ti,ie.isInteger=ip,ie.isLength=Ha,ie.isMap=sp,ie.isMatch=E_,ie.isMatchWith=D_,ie.isNaN=O_,ie.isNative=A_,ie.isNil=R_,ie.isNull=I_,ie.isNumber=op,ie.isObject=hr,ie.isObjectLike=gr,ie.isPlainObject=lo,ie.isRegExp=Wu,ie.isSafeInteger=N_,ie.isSet=ap,ie.isString=Ya,ie.isSymbol=en,ie.isTypedArray=Es,ie.isUndefined=P_,ie.isWeakMap=j_,ie.isWeakSet=L_,ie.join=zw,ie.kebabCase=M4,ie.last=dn,ie.lastIndexOf=Ww,ie.lowerCase=T4,ie.lowerFirst=E4,ie.lt=F_,ie.lte=B_,ie.max=x6,ie.maxBy=S6,ie.mean=k6,ie.meanBy=C6,ie.min=M6,ie.minBy=T6,ie.stubArray=Ku,ie.stubFalse=Zu,ie.stubObject=d6,ie.stubString=h6,ie.stubTrue=p6,ie.multiply=E6,ie.nth=$w,ie.noConflict=i6,ie.noop=Xu,ie.now=Wa,ie.pad=D4,ie.padEnd=O4,ie.padStart=A4,ie.parseInt=I4,ie.random=_4,ie.reduce=Y3,ie.reduceRight=V3,ie.repeat=R4,ie.replace=N4,ie.result=f4,ie.round=D6,ie.runInContext=we,ie.sample=X3,ie.size=G3,ie.snakeCase=P4,ie.some=Q3,ie.sortedIndex=Kw,ie.sortedIndexBy=Zw,ie.sortedIndexOf=Gw,ie.sortedLastIndex=Qw,ie.sortedLastIndexBy=Jw,ie.sortedLastIndexOf=e3,ie.startCase=L4,ie.startsWith=F4,ie.subtract=O6,ie.sum=A6,ie.sumBy=I6,ie.template=B4,ie.times=m6,ie.toFinite=ri,ie.toInteger=Rt,ie.toLength=up,ie.toLower=z4,ie.toNumber=hn,ie.toSafeInteger=z_,ie.toString=tr,ie.toUpper=W4,ie.trim=$4,ie.trimEnd=U4,ie.trimStart=H4,ie.truncate=Y4,ie.unescape=V4,ie.uniqueId=b6,ie.upperCase=q4,ie.upperFirst=Hu,ie.each=Kh,ie.eachRight=Zh,ie.first=Yh,qu(ie,function(){var g={};return jn(ie,function(M,P){sr.call(ie.prototype,P)||(g[P]=M)}),g}(),{chain:!1}),ie.VERSION=t,an(["bind","bindKey","curry","curryRight","partial","partialRight"],function(g){ie[g].placeholder=ie}),an(["drop","take"],function(g,M){Vt.prototype[g]=function(P){P=P===e?1:Sr(Rt(P),0);var X=this.__filtered__&&!M?new Vt(this):this.clone();return X.__filtered__?X.__takeCount__=Pr(P,X.__takeCount__):X.__views__.push({size:Pr(P,N),type:g+(X.__dir__<0?"Right":"")}),X},Vt.prototype[g+"Right"]=function(P){return this.reverse()[g](P).reverse()}}),an(["filter","map","takeWhile"],function(g,M){var P=M+1,X=P==A||P==y;Vt.prototype[g]=function(G){var se=this.clone();return se.__iteratees__.push({iteratee:vt(G,3),type:P}),se.__filtered__=se.__filtered__||X,se}}),an(["head","last"],function(g,M){var P="take"+(M?"Right":"");Vt.prototype[g]=function(){return this[P](1).value()[0]}}),an(["initial","tail"],function(g,M){var P="drop"+(M?"":"Right");Vt.prototype[g]=function(){return this.__filtered__?new Vt(this):this[P](1)}}),Vt.prototype.compact=function(){return this.filter(Xr)},Vt.prototype.find=function(g){return this.filter(g).head()},Vt.prototype.findLast=function(g){return this.reverse().find(g)},Vt.prototype.invokeMap=Lt(function(g,M){return typeof g=="function"?new Vt(this):this.map(function(P){return ro(P,g,M)})}),Vt.prototype.reject=function(g){return this.filter(Ua(vt(g)))},Vt.prototype.slice=function(g,M){g=Rt(g);var P=this;return P.__filtered__&&(g>0||M<0)?new Vt(P):(g<0?P=P.takeRight(-g):g&&(P=P.drop(g)),M!==e&&(M=Rt(M),P=M<0?P.dropRight(-M):P.take(M-g)),P)},Vt.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},Vt.prototype.toArray=function(){return this.take(N)},jn(Vt.prototype,function(g,M){var P=/^(?:filter|find|map|reject)|While$/.test(M),X=/^(?:head|last)$/.test(M),G=ie[X?"take"+(M=="last"?"Right":""):M],se=X||/^find/.test(M);G&&(ie.prototype[M]=function(){var fe=this.__wrapped__,ge=X?[1]:arguments,ke=fe instanceof Vt,je=ge[0],Le=ke||At(fe),Be=function(Ht){var qt=G.apply(ie,vi([Ht],ge));return X&&et?qt[0]:qt};Le&&P&&typeof je=="function"&&je.length!=1&&(ke=Le=!1);var et=this.__chain__,ht=!!this.__actions__.length,_t=se&&!et,Pt=ke&&!ht;if(!se&&Le){fe=Pt?fe:new Vt(this);var xt=g.apply(fe,ge);return xt.__actions__.push({func:Ba,args:[Be],thisArg:e}),new un(xt,et)}return _t&&Pt?g.apply(this,ge):(xt=this.thru(Be),_t?X?xt.value()[0]:xt.value():xt)})}),an(["pop","push","shift","sort","splice","unshift"],function(g){var M=fa[g],P=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",X=/^(?:pop|shift)$/.test(g);ie.prototype[g]=function(){var G=arguments;if(X&&!this.__chain__){var se=this.value();return M.apply(At(se)?se:[],G)}return this[P](function(fe){return M.apply(At(fe)?fe:[],G)})}}),jn(Vt.prototype,function(g,M){var P=ie[M];if(P){var X=P.name+"";sr.call(Ss,X)||(Ss[X]=[]),Ss[X].push({name:M,func:P})}}),Ss[Ia(e,b).name]=[{name:"wrapper",func:e}],Vt.prototype.clone=Vv,Vt.prototype.reverse=qv,Vt.prototype.value=Xv,ie.prototype.at=S3,ie.prototype.chain=k3,ie.prototype.commit=C3,ie.prototype.next=M3,ie.prototype.plant=E3,ie.prototype.reverse=D3,ie.prototype.toJSON=ie.prototype.valueOf=ie.prototype.value=O3,ie.prototype.first=ie.prototype.head,Ks&&(ie.prototype[Ks]=T3),ie},ws=Cv();Li?((Li.exports=ws)._=ws,Vl._=ws):Ir._=ws}).call(Mt)}(Bo,Bo.exports);var zo=Bo.exports;function Qc(x){return!!x.match(/[A-Z]/)}function ng(x){return zo.upperFirst(x.replaceAll(/[A-Z]/g,(k,e)=>{const t=x[e-1],f=t?Qc(t):!1,u=x[e+1],i=u?Qc(u):!1;return e===0||f&&(!u||i)?k:` ${i?k:k.toLowerCase()}`}))}const ig={"Europe/Amsterdam":"AMS","Europe/Berlin":"AMS","Asia/Jakarta":"JKT","Asia/Bangkok":"JKT",showingFilteredCountOfTotalCount:"Showing {0} of {1}"};function Jc(x,...k){let e=ig[x]||ng(x);return k.forEach((t,f)=>{e=e.replace(`{${f}}`,`${t}`)}),e}const mn="SELECT_ALL_COLUMN_NAME",ef=40,bl="dd MMM yyyy",js="dd MMM yyyy HH:mm",yl=25,tf=3;var Un=(x=>(x.GT="GT",x.LT="LT",x.EQ="EQ",x))(Un||{}),ns=(x=>(x.UNAVAILABLE="UNAVAILABLE",x.AVAILABLE="AVAILABLE",x.ACTIVE="ACTIVE",x))(ns||{});const is=()=>{throw Error("SchemaTableContext not constructed")},ss=kt.createContext({columnFilterMap:{},columnNames:[],columnWidths:[],dropTargetIndex:-1,properties:{},required:[],isItemLoaded:()=>!1,setCustomColumnNames:is,setCustomColumnWidths:is,setMenuConfig:is,setDropTargetIndex:is,setFilterSortColumn:is,checkedIndexes:[],config:{},disabledCheckedIndexes:[],isColumnFilterable:!1,isSortable:!1,translate:is}),sg=({columnIndex:x,rowIndex:k,style:e})=>{const{checkedIndexes:t,columnNames:f,isItemLoaded:u,properties:i,sortedRenderData:o,sourceData:n,config:r,disabledCheckedIndexes:s,getRowClassName:c,getRowSelected:a,onCheckedIndexesChange:l,onRowClick:p,onRowDoubleClick:h,translate:d,displayTimezone:b}=ue.useContext(ss),m=f[x],_=m===mn?{type:"boolean"}:i[m],T=r?r[m]:void 0,O=ue.useCallback(C=>{if(!l)return;const y=t&&t.includes(C);l(y?t.filter(v=>v!==C):t?[...t,C]:[C])},[t,l]),L=u(k),W=ue.useCallback(C=>{if(!n||!o||!p||!L)return;const{rowIndex:y}=C.currentTarget.dataset;if(!y)return;const v=o[parseInt(y,10)];p(n[v._index],v._index,C)},[L,p,o,n]),j=ue.useCallback(C=>{if(!n||!o||!h||!u)return;const{rowIndex:y}=C.currentTarget.dataset;if(!y)return;const v=o[parseInt(y,10)];h(n[v._index],v._index,C)},[u,h,o,n]),z=o?o[k]:void 0,{showTimezones:U,TdBody:Y}=T||{},$=ue.useMemo(()=>b?null:rs.startsWith("Europe/")?"Asia/Jakarta":"Europe/Amsterdam",[b]),E=ue.useMemo(()=>{if(!z||!o)return;let C=m===mn?void 0:z[m];if(_!=null&&_.format&&_.format==="date-time"&&U!==!1){const v=n?n[z._index]:void 0,w=v?v[m]:void 0,S=w?new Date(w):void 0;S&&$&&(C=`${Gc(S,$,js)} (${d($)})`)}const y=["mig-schema-table__td",`mig-schema-table__td--${k%2?"odd":"even"}`,`mig-schema-table__td--prop-${m}`];return n&&a&&a(n[z._index],z._index)&&y.push("mig-schema-table__td--selected"),n&&c&&y.push(c(n[z._index],z._index,o)),{"data-row-index":k,"data-column-index":x,style:e,onClick:W,onDoubleClick:j,className:y.join(" "),title:C}},[z,o,m,_.format,U,k,n,a,c,x,e,W,j,$,d]);if(!z||!E)return null;if(!u||n&&!n[z._index])return Xe.jsx("div",{...E,children:"loading"});if(Y&&n)return Xe.jsx("div",{...E,children:Xe.jsx(Y,{dataIndex:z._index,rowData:n[z._index],rowIndex:k,...T==null?void 0:T.tdBodyProps})});if(m===mn){const C=()=>{O&&O(z._index)};return Xe.jsx("div",{...E,onClick:C,children:Xe.jsx("div",{style:{textAlign:"center"},children:Xe.jsx("input",{"data-key":"row-checkbox",type:"checkbox",readOnly:!0,checked:t==null?void 0:t.includes(z._index),disabled:s==null?void 0:s.includes(z._index)})})})}const A=z[m];switch(_==null?void 0:_.type){case"boolean":E.className+=` text-${(T==null?void 0:T.align)||"center"}`;break;case"number":case"integer":E.className+=` text-${(T==null?void 0:T.align)||"end"}`;break;default:if(T!=null&&T.align&&(E.className+=` text-${T.align}`),(_==null?void 0:_.format)==="url"&&A)return Xe.jsx("a",{href:A,target:"_blank",rel:"noopener noreferrer",...E,children:A})}return Xe.jsx("div",{...E,children:A})},rf=ue.memo(sg),nf=x=>x instanceof Object?x.$Date?new Date(x.$Date):Object.entries(x).reduce((k,[e,t])=>(k[e]=nf(t),k),{}):x,sf=x=>{if(!x.length)return null;try{return nf(JSON.parse(decodeURIComponent(x.substring(1))))}catch(k){return console.log(k),null}},of=x=>x instanceof Object?x instanceof Date?{$Date:x.toISOString()}:Object.entries(x).reduce((k,[e,t])=>(k[e]=of(t),k),{}):x,Wo=x=>encodeURIComponent(JSON.stringify(of(x)));function og(){const{checkedIndexes:x,disabledCheckedIndexes:k,sortedRenderData:e}=ue.useContext(ss);return ue.useMemo(()=>{const t=[...e||[]].filter(f=>(x?x.includes(f._index):!0)||(k?!k.includes(f._index):!0));return(x==null?void 0:x.length)!==0&&t.length===(x==null?void 0:x.length)},[x,k,e])}function af(x,k,e){return!!(x&&(e==null?void 0:e.isSortable)!==!1&&(k||e!=null&&e.renderData||e!=null&&e.sort))}function lf(){const{setCustomColumnWidths:x,settingsStorageKey:k}=ue.useContext(ss);return ue.useCallback(e=>{k&&localStorage.setItem(`${k}.columnWidths`,JSON.stringify(e)),x(e)},[x,k])}const ag=({index:x,style:k})=>{const{checkedIndexes:e,columnFilterMap:t,columnNames:f,columnWidths:u,config:i,disabledCheckedIndexes:o,dropTargetIndex:n,isColumnFilterable:r,isSortable:s,onCheckedIndexesChange:c,properties:a,required:l,setCustomColumnNames:p,setDropTargetIndex:h,setFilterSortColumn:d,setMenuConfig:b,settingsStorageKey:m,sortAsc:_,sortColumn:T,sortedRenderData:O,translate:L,displayTimezone:W}=ue.useContext(ss),[j,z]=ue.useState(!1),U=x===n,Y=lf(),$=f[x],E=$===mn?{type:"boolean"}:a[$],A=T===$?_:void 0,C=i?i[$]:void 0;let y=r&&(E||C!=null&&C.FilterMenu)&&(C==null?void 0:C.isFilterable)!==!1?ns.AVAILABLE:ns.UNAVAILABLE;t[$]!==void 0&&(y=ns.ACTIVE);const v=af(s,E,C),w=["mig-schema-table__th",`mig-schema-table__th--filter-${y}`,`mig-schema-table__th--prop-${$}`];w.push(v?"mig-schema-table__th--sortable":"mig-schema-table__th--unsortable"),A!==void 0&&w.push("mig-schema-table__th--sorted"),j&&w.push("mig-schema-table__th--dragging"),U&&w.push("mig-schema-table__th--drop-target");const{format:S}=E||{},{align:D,defaultSortDesc:N,showTimezones:F=!W,title:V}=C||{},q=ue.useCallback(()=>{if(v){if(A===void 0){d($,!N);return}d($,!A)}},[v,N,$,d,A]),Q=l.includes($),B=ue.useCallback(he=>{const de=he.currentTarget;b(ee=>{if((ee==null?void 0:ee.propName)!==$)return{propConfig:C,propIsRequired:Q,propName:$,referenceElement:de}})},[C,Q,$,b]),K=ue.useMemo(()=>V!==void 0?V:S==="date-time"&&F?`${L($)} (${L(W||rs)})`:L($),[V,S,F,L,$,W]),R=ue.useCallback((he,de)=>{if(!f||!u)return;const ee=f.indexOf(he),le=[...f];le.splice(ee,1);const ce=le.indexOf(de);le.splice(ce+1,0,he),p(le);const me=[...u],be=me[ee];me.splice(ee,1),me.splice(ce+1,0,be),Y(me),m&&localStorage.setItem(`${m}.columnNames`,JSON.stringify(le))},[f,u,Y,m,p]),I=ue.useCallback(he=>{R&&(z(!0),he.dataTransfer.effectAllowed="move",he.dataTransfer.dropEffect="move",he.dataTransfer.setData("text/plain",$))},[R,$]),H=ue.useCallback(()=>{R&&(z(!1),h(-1))},[R,h]),Z=ue.useCallback(he=>{R&&(he.preventDefault(),h(x))},[x,R,h]),ne=ue.useCallback(he=>{if(h(-1),!R||!$)return;const de=he.dataTransfer.getData("text/plain");!de||de===$||R(de,$)},[R,$,h]),J=og(),te=ue.useCallback(()=>{!c||!O||c(J?[]:O.map(he=>he._index).filter(he=>!(o!=null&&o.includes(he))))},[c,O,J,o]);if($===mn)return Xe.jsx("div",{style:k,className:w.join(" "),children:Xe.jsx("div",{style:{width:"100%",textAlign:"center"},title:`${(e==null?void 0:e.length)||0} selected`,children:Xe.jsx("input",{type:"checkbox",name:"selectAll",checked:J,onChange:te})})});switch(E==null?void 0:E.type){case"boolean":w.push(`text-${D||"center"}`,`justify-content-${D||"center"}`);break;case"integer":case"number":w.push(`text-${D||"end"}`,`justify-content-${D||"end"}`);break;default:D&&w.push(`text-${D}`)}return Xe.jsxs("div",{className:w.join(" "),style:k,title:typeof K=="string"?K:void 0,draggable:!0,onDragStart:I,onDragEnd:H,onDragOver:Z,onDrop:ne,children:[Xe.jsxs("div",{className:"mig-schema-table__th__label-body",style:{lineHeight:"44px"},onClick:q,children:[Xe.jsx("span",{className:"mig-schema-table__th__label-body-text",children:K}),A===void 0?null:Xe.jsx("span",{className:"mig-schema-table__th__sort-icon",children:A?"↓":"↑"})]}),v||y!==ns.UNAVAILABLE?Xe.jsx("button",{className:"mig-schema-table__th__trigger-el",onClick:B,children:Xe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#404040",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:Xe.jsx("polyline",{points:"6 9 12 15 18 9"})})}):null]})},uf=ue.memo(ag);function cf(x){var k,e,t="";if(typeof x=="string"||typeof x=="number")t+=x;else if(typeof x=="object")if(Array.isArray(x)){var f=x.length;for(k=0;k<f;k++)x[k]&&(e=cf(x[k]))&&(t&&(t+=" "),t+=e)}else for(e in x)x[e]&&(t&&(t+=" "),t+=e);return t}function Dr(){for(var x,k,e=0,t="",f=arguments.length;e<f;e++)(x=arguments[e])&&(k=cf(x))&&(t&&(t+=" "),t+=k);return t}function lg(x,k){x.prototype=Object.create(k.prototype),x.prototype.constructor=x,vl(x,k)}function vl(x,k){return vl=Object.setPrototypeOf||function(t,f){return t.__proto__=f,t},vl(x,k)}function ug(x,k){if(x==null)return{};var e={},t=Object.keys(x),f,u;for(u=0;u<t.length;u++)f=t[u],!(k.indexOf(f)>=0)&&(e[f]=x[f]);return e}function ff(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function cg(x,k,e){return x===k?!0:x.correspondingElement?x.correspondingElement.classList.contains(e):x.classList.contains(e)}function fg(x,k,e){if(x===k)return!0;for(;x.parentNode||x.host;){if(x.parentNode&&cg(x,k,e))return!0;x=x.parentNode||x.host}return x}function dg(x){return document.documentElement.clientWidth<=x.clientX||document.documentElement.clientHeight<=x.clientY}var hg=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var k=!1,e=Object.defineProperty({},"passive",{get:function(){k=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,e),window.removeEventListener("testPassiveEventSupport",t,e),k}};function pg(x){return x===void 0&&(x=0),function(){return++x}}var mg=pg(),wl,$o={},_l={},gg=["touchstart","touchmove"],bg="ignore-react-onclickoutside";function df(x,k){var e={},t=gg.indexOf(k)!==-1;return t&&wl&&(e.passive=!x.props.preventDefault),e}function Uo(x,k){var e,t,f=x.displayName||x.name||"Component";return t=e=function(u){lg(i,u);function i(n){var r;return r=u.call(this,n)||this,r.__outsideClickHandler=function(s){if(typeof r.__clickOutsideHandlerProp=="function"){r.__clickOutsideHandlerProp(s);return}var c=r.getInstance();if(typeof c.props.handleClickOutside=="function"){c.props.handleClickOutside(s);return}if(typeof c.handleClickOutside=="function"){c.handleClickOutside(s);return}throw new Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.")},r.__getComponentNode=function(){var s=r.getInstance();return typeof s.setClickOutsideRef=="function"?s.setClickOutsideRef():Sn.findDOMNode(s)},r.enableOnClickOutside=function(){if(!(typeof document>"u"||_l[r._uid])){typeof wl>"u"&&(wl=hg()),_l[r._uid]=!0;var s=r.props.eventTypes;s.forEach||(s=[s]),$o[r._uid]=function(c){if(r.componentNode!==null&&!(r.initTimeStamp>c.timeStamp)&&(r.props.preventDefault&&c.preventDefault(),r.props.stopPropagation&&c.stopPropagation(),!(r.props.excludeScrollbar&&dg(c)))){var a=c.composed&&c.composedPath&&c.composedPath().shift()||c.target;fg(a,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(c)}},s.forEach(function(c){document.addEventListener(c,$o[r._uid],df(ff(r),c))})}},r.disableOnClickOutside=function(){delete _l[r._uid];var s=$o[r._uid];if(s&&typeof document<"u"){var c=r.props.eventTypes;c.forEach||(c=[c]),c.forEach(function(a){return document.removeEventListener(a,s,df(ff(r),a))}),delete $o[r._uid]}},r.getRef=function(s){return r.instanceRef=s},r._uid=mg(),r.initTimeStamp=performance.now(),r}var o=i.prototype;return o.getInstance=function(){if(x.prototype&&!x.prototype.isReactComponent)return this;var r=this.instanceRef;return r.getInstance?r.getInstance():r},o.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},o.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},o.componentWillUnmount=function(){this.disableOnClickOutside()},o.render=function(){var r=this.props;r.excludeScrollbar;var s=ug(r,["excludeScrollbar"]);return x.prototype&&x.prototype.isReactComponent?s.ref=this.getRef:s.wrappedRef=this.getRef,s.disableOnClickOutside=this.disableOnClickOutside,s.enableOnClickOutside=this.enableOnClickOutside,ue.createElement(x,s)},i}(ue.Component),e.displayName="OnClickOutside("+f+")",e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:bg,preventDefault:!1,stopPropagation:!1},e.getClass=function(){return x.getClass?x.getClass():x},t}function os(x){return hf(x)?(x.nodeName||"").toLowerCase():"#document"}function Kr(x){var k;return(x==null||(k=x.ownerDocument)==null?void 0:k.defaultView)||window}function Hn(x){var k;return(k=(hf(x)?x.ownerDocument:x.document)||window.document)==null?void 0:k.documentElement}function hf(x){return x instanceof Node||x instanceof Kr(x).Node}function zr(x){return x instanceof Element||x instanceof Kr(x).Element}function In(x){return x instanceof HTMLElement||x instanceof Kr(x).HTMLElement}function pf(x){return typeof ShadowRoot>"u"?!1:x instanceof ShadowRoot||x instanceof Kr(x).ShadowRoot}function Ls(x){const{overflow:k,overflowX:e,overflowY:t,display:f}=gn(x);return/auto|scroll|overlay|hidden|clip/.test(k+t+e)&&!["inline","contents"].includes(f)}function yg(x){return["table","td","th"].includes(os(x))}function xl(x){const k=Sl(),e=gn(x);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!k&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!k&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(t=>(e.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(e.contain||"").includes(t))}function vg(x){let k=ai(x);for(;In(k)&&!as(k);){if(xl(k))return k;k=ai(k)}return null}function Sl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function as(x){return["html","body","#document"].includes(os(x))}function gn(x){return Kr(x).getComputedStyle(x)}function Ho(x){return zr(x)?{scrollLeft:x.scrollLeft,scrollTop:x.scrollTop}:{scrollLeft:x.pageXOffset,scrollTop:x.pageYOffset}}function ai(x){if(os(x)==="html")return x;const k=x.assignedSlot||x.parentNode||pf(x)&&x.host||Hn(x);return pf(k)?k.host:k}function mf(x){const k=ai(x);return as(k)?x.ownerDocument?x.ownerDocument.body:x.body:In(k)&&Ls(k)?k:mf(k)}function Fs(x,k,e){var t;k===void 0&&(k=[]),e===void 0&&(e=!0);const f=mf(x),u=f===((t=x.ownerDocument)==null?void 0:t.body),i=Kr(f);return u?k.concat(i,i.visualViewport||[],Ls(f)?f:[],i.frameElement&&e?Fs(i.frameElement):[]):k.concat(f,Fs(f,[],e))}const ls=Math.min,Ii=Math.max,Yo=Math.round,Vo=Math.floor,li=x=>({x,y:x}),wg={left:"right",right:"left",bottom:"top",top:"bottom"},_g={start:"end",end:"start"};function xg(x,k,e){return Ii(x,ls(k,e))}function qo(x,k){return typeof x=="function"?x(k):x}function us(x){return x.split("-")[0]}function Bs(x){return x.split("-")[1]}function Sg(x){return x==="x"?"y":"x"}function kl(x){return x==="y"?"height":"width"}function Cl(x){return["top","bottom"].includes(us(x))?"y":"x"}function Ml(x){return Sg(Cl(x))}function kg(x,k,e){e===void 0&&(e=!1);const t=Bs(x),f=Ml(x),u=kl(f);let i=f==="x"?t===(e?"end":"start")?"right":"left":t==="start"?"bottom":"top";return k.reference[u]>k.floating[u]&&(i=Xo(i)),[i,Xo(i)]}function Cg(x){const k=Xo(x);return[Tl(x),k,Tl(k)]}function Tl(x){return x.replace(/start|end/g,k=>_g[k])}function Mg(x,k,e){const t=["left","right"],f=["right","left"],u=["top","bottom"],i=["bottom","top"];switch(x){case"top":case"bottom":return e?k?f:t:k?t:f;case"left":case"right":return k?u:i;default:return[]}}function Tg(x,k,e,t){const f=Bs(x);let u=Mg(us(x),e==="start",t);return f&&(u=u.map(i=>i+"-"+f),k&&(u=u.concat(u.map(Tl)))),u}function Xo(x){return x.replace(/left|right|bottom|top/g,k=>wg[k])}function Eg(x){return{top:0,right:0,bottom:0,left:0,...x}}function gf(x){return typeof x!="number"?Eg(x):{top:x,right:x,bottom:x,left:x}}function Ko(x){const{x:k,y:e,width:t,height:f}=x;return{width:t,height:f,top:e,left:k,right:k+t,bottom:e+f,x:k,y:e}}function bf(x,k,e){let{reference:t,floating:f}=x;const u=Cl(k),i=Ml(k),o=kl(i),n=us(k),r=u==="y",s=t.x+t.width/2-f.width/2,c=t.y+t.height/2-f.height/2,a=t[o]/2-f[o]/2;let l;switch(n){case"top":l={x:s,y:t.y-f.height};break;case"bottom":l={x:s,y:t.y+t.height};break;case"right":l={x:t.x+t.width,y:c};break;case"left":l={x:t.x-f.width,y:c};break;default:l={x:t.x,y:t.y}}switch(Bs(k)){case"start":l[i]-=a*(e&&r?-1:1);break;case"end":l[i]+=a*(e&&r?-1:1);break}return l}const Dg=async(x,k,e)=>{const{placement:t="bottom",strategy:f="absolute",middleware:u=[],platform:i}=e,o=u.filter(Boolean),n=await(i.isRTL==null?void 0:i.isRTL(k));let r=await i.getElementRects({reference:x,floating:k,strategy:f}),{x:s,y:c}=bf(r,t,n),a=t,l={},p=0;for(let h=0;h<o.length;h++){const{name:d,fn:b}=o[h],{x:m,y:_,data:T,reset:O}=await b({x:s,y:c,initialPlacement:t,placement:a,strategy:f,middlewareData:l,rects:r,platform:i,elements:{reference:x,floating:k}});s=m??s,c=_??c,l={...l,[d]:{...l[d],...T}},O&&p<=50&&(p++,typeof O=="object"&&(O.placement&&(a=O.placement),O.rects&&(r=O.rects===!0?await i.getElementRects({reference:x,floating:k,strategy:f}):O.rects),{x:s,y:c}=bf(r,a,n)),h=-1)}return{x:s,y:c,placement:a,strategy:f,middlewareData:l}};async function Og(x,k){var e;k===void 0&&(k={});const{x:t,y:f,platform:u,rects:i,elements:o,strategy:n}=x,{boundary:r="clippingAncestors",rootBoundary:s="viewport",elementContext:c="floating",altBoundary:a=!1,padding:l=0}=qo(k,x),p=gf(l),d=o[a?c==="floating"?"reference":"floating":c],b=Ko(await u.getClippingRect({element:(e=await(u.isElement==null?void 0:u.isElement(d)))==null||e?d:d.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(o.floating)),boundary:r,rootBoundary:s,strategy:n})),m=c==="floating"?{x:t,y:f,width:i.floating.width,height:i.floating.height}:i.reference,_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(o.floating)),T=await(u.isElement==null?void 0:u.isElement(_))?await(u.getScale==null?void 0:u.getScale(_))||{x:1,y:1}:{x:1,y:1},O=Ko(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:m,offsetParent:_,strategy:n}):m);return{top:(b.top-O.top+p.top)/T.y,bottom:(O.bottom-b.bottom+p.bottom)/T.y,left:(b.left-O.left+p.left)/T.x,right:(O.right-b.right+p.right)/T.x}}const Ag=x=>({name:"arrow",options:x,async fn(k){const{x:e,y:t,placement:f,rects:u,platform:i,elements:o,middlewareData:n}=k,{element:r,padding:s=0}=qo(x,k)||{};if(r==null)return{};const c=gf(s),a={x:e,y:t},l=Ml(f),p=kl(l),h=await i.getDimensions(r),d=l==="y",b=d?"top":"left",m=d?"bottom":"right",_=d?"clientHeight":"clientWidth",T=u.reference[p]+u.reference[l]-a[l]-u.floating[p],O=a[l]-u.reference[l],L=await(i.getOffsetParent==null?void 0:i.getOffsetParent(r));let W=L?L[_]:0;(!W||!await(i.isElement==null?void 0:i.isElement(L)))&&(W=o.floating[_]||u.floating[p]);const j=T/2-O/2,z=W/2-h[p]/2-1,U=ls(c[b],z),Y=ls(c[m],z),$=U,E=W-h[p]-Y,A=W/2-h[p]/2+j,C=xg($,A,E),y=!n.arrow&&Bs(f)!=null&&A!==C&&u.reference[p]/2-(A<$?U:Y)-h[p]/2<0,v=y?A<$?A-$:A-E:0;return{[l]:a[l]+v,data:{[l]:C,centerOffset:A-C-v,...y&&{alignmentOffset:v}},reset:y}}}),Ig=function(x){return x===void 0&&(x={}),{name:"flip",options:x,async fn(k){var e,t;const{placement:f,middlewareData:u,rects:i,initialPlacement:o,platform:n,elements:r}=k,{mainAxis:s=!0,crossAxis:c=!0,fallbackPlacements:a,fallbackStrategy:l="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...d}=qo(x,k);if((e=u.arrow)!=null&&e.alignmentOffset)return{};const b=us(f),m=us(o)===o,_=await(n.isRTL==null?void 0:n.isRTL(r.floating)),T=a||(m||!h?[Xo(o)]:Cg(o));!a&&p!=="none"&&T.push(...Tg(o,h,p,_));const O=[o,...T],L=await Og(k,d),W=[];let j=((t=u.flip)==null?void 0:t.overflows)||[];if(s&&W.push(L[b]),c){const $=kg(f,i,_);W.push(L[$[0]],L[$[1]])}if(j=[...j,{placement:f,overflows:W}],!W.every($=>$<=0)){var z,U;const $=(((z=u.flip)==null?void 0:z.index)||0)+1,E=O[$];if(E)return{data:{index:$,overflows:j},reset:{placement:E}};let A=(U=j.filter(C=>C.overflows[0]<=0).sort((C,y)=>C.overflows[1]-y.overflows[1])[0])==null?void 0:U.placement;if(!A)switch(l){case"bestFit":{var Y;const C=(Y=j.map(y=>[y.placement,y.overflows.filter(v=>v>0).reduce((v,w)=>v+w,0)]).sort((y,v)=>y[1]-v[1])[0])==null?void 0:Y[0];C&&(A=C);break}case"initialPlacement":A=o;break}if(f!==A)return{reset:{placement:A}}}return{}}}};async function Rg(x,k){const{placement:e,platform:t,elements:f}=x,u=await(t.isRTL==null?void 0:t.isRTL(f.floating)),i=us(e),o=Bs(e),n=Cl(e)==="y",r=["left","top"].includes(i)?-1:1,s=u&&n?-1:1,c=qo(k,x);let{mainAxis:a,crossAxis:l,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return o&&typeof p=="number"&&(l=o==="end"?p*-1:p),n?{x:l*s,y:a*r}:{x:a*r,y:l*s}}const Ng=function(x){return x===void 0&&(x=0),{name:"offset",options:x,async fn(k){var e,t;const{x:f,y:u,placement:i,middlewareData:o}=k,n=await Rg(k,x);return i===((e=o.offset)==null?void 0:e.placement)&&(t=o.arrow)!=null&&t.alignmentOffset?{}:{x:f+n.x,y:u+n.y,data:{...n,placement:i}}}}};function yf(x){const k=gn(x);let e=parseFloat(k.width)||0,t=parseFloat(k.height)||0;const f=In(x),u=f?x.offsetWidth:e,i=f?x.offsetHeight:t,o=Yo(e)!==u||Yo(t)!==i;return o&&(e=u,t=i),{width:e,height:t,$:o}}function El(x){return zr(x)?x:x.contextElement}function cs(x){const k=El(x);if(!In(k))return li(1);const e=k.getBoundingClientRect(),{width:t,height:f,$:u}=yf(k);let i=(u?Yo(e.width):e.width)/t,o=(u?Yo(e.height):e.height)/f;return(!i||!Number.isFinite(i))&&(i=1),(!o||!Number.isFinite(o))&&(o=1),{x:i,y:o}}const Pg=li(0);function vf(x){const k=Kr(x);return!Sl()||!k.visualViewport?Pg:{x:k.visualViewport.offsetLeft,y:k.visualViewport.offsetTop}}function jg(x,k,e){return k===void 0&&(k=!1),!e||k&&e!==Kr(x)?!1:k}function Ri(x,k,e,t){k===void 0&&(k=!1),e===void 0&&(e=!1);const f=x.getBoundingClientRect(),u=El(x);let i=li(1);k&&(t?zr(t)&&(i=cs(t)):i=cs(x));const o=jg(u,e,t)?vf(u):li(0);let n=(f.left+o.x)/i.x,r=(f.top+o.y)/i.y,s=f.width/i.x,c=f.height/i.y;if(u){const a=Kr(u),l=t&&zr(t)?Kr(t):t;let p=a,h=p.frameElement;for(;h&&t&&l!==p;){const d=cs(h),b=h.getBoundingClientRect(),m=gn(h),_=b.left+(h.clientLeft+parseFloat(m.paddingLeft))*d.x,T=b.top+(h.clientTop+parseFloat(m.paddingTop))*d.y;n*=d.x,r*=d.y,s*=d.x,c*=d.y,n+=_,r+=T,p=Kr(h),h=p.frameElement}}return Ko({width:s,height:c,x:n,y:r})}const Lg=[":popover-open",":modal"];function Dl(x){return Lg.some(k=>{try{return x.matches(k)}catch{return!1}})}function Fg(x){let{elements:k,rect:e,offsetParent:t,strategy:f}=x;const u=f==="fixed",i=Hn(t),o=k?Dl(k.floating):!1;if(t===i||o&&u)return e;let n={scrollLeft:0,scrollTop:0},r=li(1);const s=li(0),c=In(t);if((c||!c&&!u)&&((os(t)!=="body"||Ls(i))&&(n=Ho(t)),In(t))){const a=Ri(t);r=cs(t),s.x=a.x+t.clientLeft,s.y=a.y+t.clientTop}return{width:e.width*r.x,height:e.height*r.y,x:e.x*r.x-n.scrollLeft*r.x+s.x,y:e.y*r.y-n.scrollTop*r.y+s.y}}function Bg(x){return Array.from(x.getClientRects())}function wf(x){return Ri(Hn(x)).left+Ho(x).scrollLeft}function zg(x){const k=Hn(x),e=Ho(x),t=x.ownerDocument.body,f=Ii(k.scrollWidth,k.clientWidth,t.scrollWidth,t.clientWidth),u=Ii(k.scrollHeight,k.clientHeight,t.scrollHeight,t.clientHeight);let i=-e.scrollLeft+wf(x);const o=-e.scrollTop;return gn(t).direction==="rtl"&&(i+=Ii(k.clientWidth,t.clientWidth)-f),{width:f,height:u,x:i,y:o}}function Wg(x,k){const e=Kr(x),t=Hn(x),f=e.visualViewport;let u=t.clientWidth,i=t.clientHeight,o=0,n=0;if(f){u=f.width,i=f.height;const r=Sl();(!r||r&&k==="fixed")&&(o=f.offsetLeft,n=f.offsetTop)}return{width:u,height:i,x:o,y:n}}function $g(x,k){const e=Ri(x,!0,k==="fixed"),t=e.top+x.clientTop,f=e.left+x.clientLeft,u=In(x)?cs(x):li(1),i=x.clientWidth*u.x,o=x.clientHeight*u.y,n=f*u.x,r=t*u.y;return{width:i,height:o,x:n,y:r}}function _f(x,k,e){let t;if(k==="viewport")t=Wg(x,e);else if(k==="document")t=zg(Hn(x));else if(zr(k))t=$g(k,e);else{const f=vf(x);t={...k,x:k.x-f.x,y:k.y-f.y}}return Ko(t)}function xf(x,k){const e=ai(x);return e===k||!zr(e)||as(e)?!1:gn(e).position==="fixed"||xf(e,k)}function Ug(x,k){const e=k.get(x);if(e)return e;let t=Fs(x,[],!1).filter(o=>zr(o)&&os(o)!=="body"),f=null;const u=gn(x).position==="fixed";let i=u?ai(x):x;for(;zr(i)&&!as(i);){const o=gn(i),n=xl(i);!n&&o.position==="fixed"&&(f=null),(u?!n&&!f:!n&&o.position==="static"&&!!f&&["absolute","fixed"].includes(f.position)||Ls(i)&&!n&&xf(x,i))?t=t.filter(s=>s!==i):f=o,i=ai(i)}return k.set(x,t),t}function Hg(x){let{element:k,boundary:e,rootBoundary:t,strategy:f}=x;const i=[...e==="clippingAncestors"?Dl(k)?[]:Ug(k,this._c):[].concat(e),t],o=i[0],n=i.reduce((r,s)=>{const c=_f(k,s,f);return r.top=Ii(c.top,r.top),r.right=ls(c.right,r.right),r.bottom=ls(c.bottom,r.bottom),r.left=Ii(c.left,r.left),r},_f(k,o,f));return{width:n.right-n.left,height:n.bottom-n.top,x:n.left,y:n.top}}function Yg(x){const{width:k,height:e}=yf(x);return{width:k,height:e}}function Vg(x,k,e){const t=In(k),f=Hn(k),u=e==="fixed",i=Ri(x,!0,u,k);let o={scrollLeft:0,scrollTop:0};const n=li(0);if(t||!t&&!u)if((os(k)!=="body"||Ls(f))&&(o=Ho(k)),t){const c=Ri(k,!0,u,k);n.x=c.x+k.clientLeft,n.y=c.y+k.clientTop}else f&&(n.x=wf(f));const r=i.left+o.scrollLeft-n.x,s=i.top+o.scrollTop-n.y;return{x:r,y:s,width:i.width,height:i.height}}function Ol(x){return gn(x).position==="static"}function Sf(x,k){return!In(x)||gn(x).position==="fixed"?null:k?k(x):x.offsetParent}function kf(x,k){const e=Kr(x);if(Dl(x))return e;if(!In(x)){let f=ai(x);for(;f&&!as(f);){if(zr(f)&&!Ol(f))return f;f=ai(f)}return e}let t=Sf(x,k);for(;t&&yg(t)&&Ol(t);)t=Sf(t,k);return t&&as(t)&&Ol(t)&&!xl(t)?e:t||vg(x)||e}const qg=async function(x){const k=this.getOffsetParent||kf,e=this.getDimensions,t=await e(x.floating);return{reference:Vg(x.reference,await k(x.floating),x.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function Xg(x){return gn(x).direction==="rtl"}const Cf={convertOffsetParentRelativeRectToViewportRelativeRect:Fg,getDocumentElement:Hn,getClippingRect:Hg,getOffsetParent:kf,getElementRects:qg,getClientRects:Bg,getDimensions:Yg,getScale:cs,isElement:zr,isRTL:Xg};function Kg(x,k){let e=null,t;const f=Hn(x);function u(){var o;clearTimeout(t),(o=e)==null||o.disconnect(),e=null}function i(o,n){o===void 0&&(o=!1),n===void 0&&(n=1),u();const{left:r,top:s,width:c,height:a}=x.getBoundingClientRect();if(o||k(),!c||!a)return;const l=Vo(s),p=Vo(f.clientWidth-(r+c)),h=Vo(f.clientHeight-(s+a)),d=Vo(r),m={rootMargin:-l+"px "+-p+"px "+-h+"px "+-d+"px",threshold:Ii(0,ls(1,n))||1};let _=!0;function T(O){const L=O[0].intersectionRatio;if(L!==n){if(!_)return i();L?i(!1,L):t=setTimeout(()=>{i(!1,1e-7)},1e3)}_=!1}try{e=new IntersectionObserver(T,{...m,root:f.ownerDocument})}catch{e=new IntersectionObserver(T,m)}e.observe(x)}return i(!0),u}function Zg(x,k,e,t){t===void 0&&(t={});const{ancestorScroll:f=!0,ancestorResize:u=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:n=!1}=t,r=El(x),s=f||u?[...r?Fs(r):[],...Fs(k)]:[];s.forEach(b=>{f&&b.addEventListener("scroll",e,{passive:!0}),u&&b.addEventListener("resize",e)});const c=r&&o?Kg(r,e):null;let a=-1,l=null;i&&(l=new ResizeObserver(b=>{let[m]=b;m&&m.target===r&&l&&(l.unobserve(k),cancelAnimationFrame(a),a=requestAnimationFrame(()=>{var _;(_=l)==null||_.observe(k)})),e()}),r&&!n&&l.observe(r),l.observe(k));let p,h=n?Ri(x):null;n&&d();function d(){const b=Ri(x);h&&(b.x!==h.x||b.y!==h.y||b.width!==h.width||b.height!==h.height)&&e(),h=b,p=requestAnimationFrame(d)}return e(),()=>{var b;s.forEach(m=>{f&&m.removeEventListener("scroll",e),u&&m.removeEventListener("resize",e)}),c==null||c(),(b=l)==null||b.disconnect(),l=null,n&&cancelAnimationFrame(p)}}const Gg=Ng,Qg=Ig,Mf=Ag,Jg=(x,k,e)=>{const t=new Map,f={platform:Cf,...e},u={...f.platform,_c:t};return Dg(x,k,{...f,platform:u})};var Zo=typeof document<"u"?ue.useLayoutEffect:ue.useEffect;function Go(x,k){if(x===k)return!0;if(typeof x!=typeof k)return!1;if(typeof x=="function"&&x.toString()===k.toString())return!0;let e,t,f;if(x&&k&&typeof x=="object"){if(Array.isArray(x)){if(e=x.length,e!==k.length)return!1;for(t=e;t--!==0;)if(!Go(x[t],k[t]))return!1;return!0}if(f=Object.keys(x),e=f.length,e!==Object.keys(k).length)return!1;for(t=e;t--!==0;)if(!{}.hasOwnProperty.call(k,f[t]))return!1;for(t=e;t--!==0;){const u=f[t];if(!(u==="_owner"&&x.$$typeof)&&!Go(x[u],k[u]))return!1}return!0}return x!==x&&k!==k}function Tf(x){return typeof window>"u"?1:(x.ownerDocument.defaultView||window).devicePixelRatio||1}function Ef(x,k){const e=Tf(x);return Math.round(k*e)/e}function Df(x){const k=kt.useRef(x);return Zo(()=>{k.current=x}),k}function Al(x){x===void 0&&(x={});const{placement:k="bottom",strategy:e="absolute",middleware:t=[],platform:f,elements:{reference:u,floating:i}={},transform:o=!0,whileElementsMounted:n,open:r}=x,[s,c]=kt.useState({x:0,y:0,strategy:e,placement:k,middlewareData:{},isPositioned:!1}),[a,l]=kt.useState(t);Go(a,t)||l(t);const[p,h]=kt.useState(null),[d,b]=kt.useState(null),m=kt.useCallback(v=>{v!==L.current&&(L.current=v,h(v))},[]),_=kt.useCallback(v=>{v!==W.current&&(W.current=v,b(v))},[]),T=u||p,O=i||d,L=kt.useRef(null),W=kt.useRef(null),j=kt.useRef(s),z=n!=null,U=Df(n),Y=Df(f),$=kt.useCallback(()=>{if(!L.current||!W.current)return;const v={placement:k,strategy:e,middleware:a};Y.current&&(v.platform=Y.current),Jg(L.current,W.current,v).then(w=>{const S={...w,isPositioned:!0};E.current&&!Go(j.current,S)&&(j.current=S,xp.flushSync(()=>{c(S)}))})},[a,k,e,Y]);Zo(()=>{r===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,c(v=>({...v,isPositioned:!1})))},[r]);const E=kt.useRef(!1);Zo(()=>(E.current=!0,()=>{E.current=!1}),[]),Zo(()=>{if(T&&(L.current=T),O&&(W.current=O),T&&O){if(U.current)return U.current(T,O,$);$()}},[T,O,$,U,z]);const A=kt.useMemo(()=>({reference:L,floating:W,setReference:m,setFloating:_}),[m,_]),C=kt.useMemo(()=>({reference:T,floating:O}),[T,O]),y=kt.useMemo(()=>{const v={position:e,left:0,top:0};if(!C.floating)return v;const w=Ef(C.floating,s.x),S=Ef(C.floating,s.y);return o?{...v,transform:"translate("+w+"px, "+S+"px)",...Tf(C.floating)>=1.5&&{willChange:"transform"}}:{position:e,left:w,top:S}},[e,o,C.floating,s.x,s.y]);return kt.useMemo(()=>({...s,update:$,refs:A,elements:C,floatingStyles:y}),[s,$,A,C,y])}const eb=x=>{function k(e){return{}.hasOwnProperty.call(e,"current")}return{name:"arrow",options:x,fn(e){const{element:t,padding:f}=typeof x=="function"?x(e):x;return t&&k(t)?t.current!=null?Mf({element:t.current,padding:f}).fn(e):{}:t?Mf({element:t,padding:f}).fn(e):{}}}},tb=(x,k)=>({...Gg(x),options:[x,k]}),Il=(x,k)=>({...Qg(x),options:[x,k]}),rb=(x,k)=>({...eb(x),options:[x,k]}),Of={...kt},nb=Of.useInsertionEffect||(x=>x());function ib(x){const k=kt.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return nb(()=>{k.current=x}),kt.useCallback(function(){for(var e=arguments.length,t=new Array(e),f=0;f<e;f++)t[f]=arguments[f];return k.current==null?void 0:k.current(...t)},[])}var Rl=typeof document<"u"?ue.useLayoutEffect:ue.useEffect;function Nl(){return Nl=Object.assign?Object.assign.bind():function(x){for(var k=1;k<arguments.length;k++){var e=arguments[k];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(x[t]=e[t])}return x},Nl.apply(this,arguments)}let Af=!1,sb=0;const If=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+sb++;function ob(){const[x,k]=kt.useState(()=>Af?If():void 0);return Rl(()=>{x==null&&k(If())},[]),kt.useEffect(()=>{Af=!0},[]),x}const Rf=Of.useId||ob;let zs;process.env.NODE_ENV!=="production"&&(zs=new Set);function ab(){for(var x,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((x=zs)!=null&&x.has(f))){var u;(u=zs)==null||u.add(f),console.warn(f)}}function lb(){for(var x,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((x=zs)!=null&&x.has(f))){var u;(u=zs)==null||u.add(f),console.error(f)}}const ub=kt.forwardRef(function(k,e){const{context:{placement:t,elements:{floating:f},middlewareData:{arrow:u}},width:i=14,height:o=7,tipRadius:n=0,strokeWidth:r=0,staticOffset:s,stroke:c,d:a,style:{transform:l,...p}={},...h}=k;process.env.NODE_ENV!=="production"&&(e||ab("The `ref` prop is required for `FloatingArrow`."));const d=Rf();if(!f)return null;const b=r*2,m=b/2,_=i/2*(n/-8+1),T=o/2*n/4,[O,L]=t.split("-"),W=Cf.isRTL(f),j=!!a,z=O==="top"||O==="bottom",U=s&&L==="end"?"bottom":"top";let Y=s&&L==="end"?"right":"left";s&&W&&(Y=L==="end"?"left":"right");const $=(u==null?void 0:u.x)!=null?s||u.x:"",E=(u==null?void 0:u.y)!=null?s||u.y:"",A=a||"M0,0"+(" H"+i)+(" L"+(i-_)+","+(o-T))+(" Q"+i/2+","+o+" "+_+","+(o-T))+" Z",C={top:j?"rotate(180deg)":"",left:j?"rotate(90deg)":"rotate(-90deg)",bottom:j?"":"rotate(180deg)",right:j?"rotate(-90deg)":"rotate(90deg)"}[O];return kt.createElement("svg",Nl({},h,{"aria-hidden":!0,ref:e,width:j?i:i+b,height:i,viewBox:"0 0 "+i+" "+(o>i?o:i),style:{position:"absolute",pointerEvents:"none",[Y]:$,[U]:E,[O]:z||j?"100%":"calc(100% - "+b/2+"px)",transform:""+C+(l??""),...p}}),b>0&&kt.createElement("path",{clipPath:"url(#"+d+")",fill:"none",stroke:c,strokeWidth:b+(a?0:1),d:A}),kt.createElement("path",{stroke:b&&!a?h.fill:"none",d:A}),kt.createElement("clipPath",{id:d},kt.createElement("rect",{x:-m,y:m*(j?-1:1),width:i+b,height:i})))});function cb(){const x=new Map;return{emit(k,e){var t;(t=x.get(k))==null||t.forEach(f=>f(e))},on(k,e){x.set(k,[...x.get(k)||[],e])},off(k,e){var t;x.set(k,((t=x.get(k))==null?void 0:t.filter(f=>f!==e))||[])}}}const fb=kt.createContext(null),db=kt.createContext(null),hb=()=>{var x;return((x=kt.useContext(fb))==null?void 0:x.id)||null},pb=()=>kt.useContext(db);function mb(x){const{open:k=!1,onOpenChange:e,elements:t}=x,f=Rf(),u=kt.useRef({}),[i]=kt.useState(()=>cb()),o=hb()!=null;if(process.env.NODE_ENV!=="production"){const l=t.reference;l&&!zr(l)&&lb("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[n,r]=kt.useState(t.reference),s=ib((l,p,h)=>{u.current.openEvent=l?p:void 0,i.emit("openchange",{open:l,event:p,reason:h,nested:o}),e==null||e(l,p,h)}),c=kt.useMemo(()=>({setPositionReference:r}),[]),a=kt.useMemo(()=>({reference:n||t.reference||null,floating:t.floating||null,domReference:t.reference}),[n,t.reference,t.floating]);return kt.useMemo(()=>({dataRef:u,open:k,onOpenChange:s,elements:a,events:i,floatingId:f,refs:c}),[k,s,a,i,f,c])}function gb(x){x===void 0&&(x={});const{nodeId:k}=x,e=mb({...x,elements:{reference:null,floating:null,...x.elements}}),t=x.rootContext||e,f=t.elements,[u,i]=kt.useState(null),[o,n]=kt.useState(null),s=(f==null?void 0:f.reference)||u,c=kt.useRef(null),a=pb();Rl(()=>{s&&(c.current=s)},[s]);const l=Al({...x,elements:{...f,...o&&{reference:o}}}),p=kt.useCallback(_=>{const T=zr(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),contextElement:_}:_;n(T),l.refs.setReference(T)},[l.refs]),h=kt.useCallback(_=>{(zr(_)||_===null)&&(c.current=_,i(_)),(zr(l.refs.reference.current)||l.refs.reference.current===null||_!==null&&!zr(_))&&l.refs.setReference(_)},[l.refs]),d=kt.useMemo(()=>({...l.refs,setReference:h,setPositionReference:p,domReference:c}),[l.refs,h,p]),b=kt.useMemo(()=>({...l.elements,domReference:s}),[l.elements,s]),m=kt.useMemo(()=>({...l,...t,refs:d,elements:b,nodeId:k}),[l,d,b,k,t]);return Rl(()=>{t.dataRef.current.floatingContext=m;const _=a==null?void 0:a.nodesRef.current.find(T=>T.id===k);_&&(_.context=m)}),kt.useMemo(()=>({...l,context:m,refs:d,elements:b}),[l,d,b,m])}/*!
56
+ }`;var Pt=vp(function(){return er(se,ht+"return "+Be).apply(e,fe)});if(Pt.source=Be,zu(Pt))throw Pt;return Pt}function z4(g){return tr(g).toLowerCase()}function W4(g){return tr(g).toUpperCase()}function $4(g,M,P){if(g=tr(g),g&&(P||M===e))return Ed(g);if(!g||!(M=Jr(M)))return g;var X=vn(g),G=vn(M),se=Dd(X,G),fe=Od(X,G)+1;return Ci(X,se,fe).join("")}function U4(g,M,P){if(g=tr(g),g&&(P||M===e))return g.slice(0,Id(g)+1);if(!g||!(M=Jr(M)))return g;var X=vn(g),G=Od(X,vn(M))+1;return Ci(X,0,G).join("")}function H4(g,M,P){if(g=tr(g),g&&(P||M===e))return g.replace(pe,"");if(!g||!(M=Jr(M)))return g;var X=vn(g),G=Dd(X,vn(M));return Ci(X,G).join("")}function Y4(g,M){var P=U,X=Y;if(hr(M)){var G="separator"in M?M.separator:G;P="length"in M?Rt(M.length):P,X="omission"in M?Jr(M.omission):X}g=tr(g);var se=g.length;if(ys(g)){var fe=vn(g);se=fe.length}if(P>=se)return g;var ge=P-vs(X);if(ge<1)return X;var ke=fe?Ci(fe,0,ge).join(""):g.slice(0,ge);if(G===e)return ke+X;if(fe&&(ge+=ke.length-ge),Wu(G)){if(g.slice(ge).search(G)){var je,Le=ke;for(G.global||(G=nu(G.source,tr(Pe.exec(G))+"g")),G.lastIndex=0;je=G.exec(Le);)var Be=je.index;ke=ke.slice(0,Be===e?ge:Be)}}else if(g.indexOf(Jr(G),ge)!=ge){var et=ke.lastIndexOf(G);et>-1&&(ke=ke.slice(0,et))}return ke+X}function V4(g){return g=tr(g),g&&pt.test(g)?g.replace(Tt,_v):g}var q4=Ms(function(g,M,P){return g+(P?" ":"")+M.toUpperCase()}),Hu=wh("toUpperCase");function yp(g,M,P){return g=tr(g),M=P?e:M,M===e?gv(g)?kv(g):av(g):g.match(M)||[]}var vp=Lt(function(g,M){try{return Gr(g,e,M)}catch(P){return zu(P)?P:new Ot(P)}}),X4=Jn(function(g,M){return an(M,function(P){P=Fn(P),Gn(g,P,Fu(g[P],g))}),g});function K4(g){var M=g==null?0:g.length,P=vt();return g=M?fr(g,function(X){if(typeof X[1]!="function")throw new ln(i);return[P(X[0]),X[1]]}):[],Lt(function(X){for(var G=-1;++G<M;){var se=g[G];if(Gr(se[0],this,X))return Gr(se[1],this,X)}})}function Z4(g){return _2(cn(g,c))}function Yu(g){return function(){return g}}function G4(g,M){return g==null||g!==g?M:g}var Q4=xh(),J4=xh(!0);function Xr(g){return g}function Vu(g){return Qd(typeof g=="function"?g:cn(g,c))}function e6(g){return eh(cn(g,c))}function t6(g,M){return th(g,cn(M,c))}var r6=Lt(function(g,M){return function(P){return ro(P,g,M)}}),n6=Lt(function(g,M){return function(P){return ro(g,P,M)}});function qu(g,M,P){var X=Er(M),G=Ta(M,X);P==null&&!(hr(M)&&(G.length||!X.length))&&(P=M,M=g,g=this,G=Ta(M,Er(M)));var se=!(hr(P)&&"chain"in P)||!!P.chain,fe=ti(g);return an(G,function(ge){var ke=M[ge];g[ge]=ke,fe&&(g.prototype[ge]=function(){var je=this.__chain__;if(se||je){var Le=g(this.__wrapped__),Be=Le.__actions__=Yr(this.__actions__);return Be.push({func:ke,args:arguments,thisArg:g}),Le.__chain__=je,Le}return ke.apply(g,vi([this.value()],arguments))})}),g}function i6(){return Ir._===this&&(Ir._=Ov),this}function Xu(){}function s6(g){return g=Rt(g),Lt(function(M){return rh(M,g)})}var o6=Cu(fr),a6=Cu(Sd),l6=Cu(Zl);function wp(g){return Iu(g)?Gl(Fn(g)):F2(g)}function u6(g){return function(M){return g==null?e:$i(g,M)}}var c6=kh(),f6=kh(!0);function Ku(){return[]}function Zu(){return!1}function d6(){return{}}function h6(){return""}function p6(){return!0}function m6(g,M){if(g=Rt(g),g<1||g>w)return[];var P=N,X=Pr(g,N);M=vt(M),g-=N;for(var G=eu(X,M);++P<g;)M(P);return G}function g6(g){return At(g)?fr(g,Fn):en(g)?[g]:Yr(zh(tr(g)))}function b6(g){var M=++Ev;return tr(g)+M}var y6=Ra(function(g,M){return g+M},0),v6=Mu("ceil"),w6=Ra(function(g,M){return g/M},1),_6=Mu("floor");function x6(g){return g&&g.length?Ma(g,Xr,fu):e}function S6(g,M){return g&&g.length?Ma(g,vt(M,2),fu):e}function k6(g){return Md(g,Xr)}function C6(g,M){return Md(g,vt(M,2))}function M6(g){return g&&g.length?Ma(g,Xr,mu):e}function T6(g,M){return g&&g.length?Ma(g,vt(M,2),mu):e}var E6=Ra(function(g,M){return g*M},1),D6=Mu("round"),O6=Ra(function(g,M){return g-M},0);function A6(g){return g&&g.length?Jl(g,Xr):0}function I6(g,M){return g&&g.length?Jl(g,vt(M,2)):0}return ie.after=e_,ie.ary=Gh,ie.assign=W_,ie.assignIn=fp,ie.assignInWith=Va,ie.assignWith=$_,ie.at=U_,ie.before=Qh,ie.bind=Fu,ie.bindAll=X4,ie.bindKey=Jh,ie.castArray=d_,ie.chain=Xh,ie.chunk=_w,ie.compact=xw,ie.concat=Sw,ie.cond=K4,ie.conforms=Z4,ie.constant=Yu,ie.countBy=A3,ie.create=H_,ie.curry=ep,ie.curryRight=tp,ie.debounce=rp,ie.defaults=Y_,ie.defaultsDeep=V_,ie.defer=t_,ie.delay=r_,ie.difference=kw,ie.differenceBy=Cw,ie.differenceWith=Mw,ie.drop=Tw,ie.dropRight=Ew,ie.dropRightWhile=Dw,ie.dropWhile=Ow,ie.fill=Aw,ie.filter=R3,ie.flatMap=j3,ie.flatMapDeep=L3,ie.flatMapDepth=F3,ie.flatten=Hh,ie.flattenDeep=Iw,ie.flattenDepth=Rw,ie.flip=n_,ie.flow=Q4,ie.flowRight=J4,ie.fromPairs=Nw,ie.functions=J_,ie.functionsIn=e4,ie.groupBy=B3,ie.initial=jw,ie.intersection=Lw,ie.intersectionBy=Fw,ie.intersectionWith=Bw,ie.invert=r4,ie.invertBy=n4,ie.invokeMap=W3,ie.iteratee=Vu,ie.keyBy=$3,ie.keys=Er,ie.keysIn=qr,ie.map=za,ie.mapKeys=s4,ie.mapValues=o4,ie.matches=e6,ie.matchesProperty=t6,ie.memoize=$a,ie.merge=a4,ie.mergeWith=dp,ie.method=r6,ie.methodOf=n6,ie.mixin=qu,ie.negate=Ua,ie.nthArg=s6,ie.omit=l4,ie.omitBy=u4,ie.once=i_,ie.orderBy=U3,ie.over=o6,ie.overArgs=s_,ie.overEvery=a6,ie.overSome=l6,ie.partial=Bu,ie.partialRight=np,ie.partition=H3,ie.pick=c4,ie.pickBy=hp,ie.property=wp,ie.propertyOf=u6,ie.pull=Uw,ie.pullAll=Vh,ie.pullAllBy=Hw,ie.pullAllWith=Yw,ie.pullAt=Vw,ie.range=c6,ie.rangeRight=f6,ie.rearg=o_,ie.reject=q3,ie.remove=qw,ie.rest=a_,ie.reverse=ju,ie.sampleSize=K3,ie.set=d4,ie.setWith=h4,ie.shuffle=Z3,ie.slice=Xw,ie.sortBy=J3,ie.sortedUniq=t3,ie.sortedUniqBy=r3,ie.split=j4,ie.spread=l_,ie.tail=n3,ie.take=i3,ie.takeRight=s3,ie.takeRightWhile=o3,ie.takeWhile=a3,ie.tap=x3,ie.throttle=u_,ie.thru=Ba,ie.toArray=lp,ie.toPairs=pp,ie.toPairsIn=mp,ie.toPath=g6,ie.toPlainObject=cp,ie.transform=p4,ie.unary=c_,ie.union=l3,ie.unionBy=u3,ie.unionWith=c3,ie.uniq=f3,ie.uniqBy=d3,ie.uniqWith=h3,ie.unset=m4,ie.unzip=Lu,ie.unzipWith=qh,ie.update=g4,ie.updateWith=b4,ie.values=Ds,ie.valuesIn=y4,ie.without=p3,ie.words=yp,ie.wrap=f_,ie.xor=m3,ie.xorBy=g3,ie.xorWith=b3,ie.zip=y3,ie.zipObject=v3,ie.zipObjectDeep=w3,ie.zipWith=_3,ie.entries=pp,ie.entriesIn=mp,ie.extend=fp,ie.extendWith=Va,qu(ie,ie),ie.add=y6,ie.attempt=vp,ie.camelCase=x4,ie.capitalize=gp,ie.ceil=v6,ie.clamp=v4,ie.clone=h_,ie.cloneDeep=m_,ie.cloneDeepWith=g_,ie.cloneWith=p_,ie.conformsTo=b_,ie.deburr=bp,ie.defaultTo=G4,ie.divide=w6,ie.endsWith=S4,ie.eq=_n,ie.escape=k4,ie.escapeRegExp=C4,ie.every=I3,ie.find=N3,ie.findIndex=$h,ie.findKey=q_,ie.findLast=P3,ie.findLastIndex=Uh,ie.findLastKey=X_,ie.floor=_6,ie.forEach=Kh,ie.forEachRight=Zh,ie.forIn=K_,ie.forInRight=Z_,ie.forOwn=G_,ie.forOwnRight=Q_,ie.get=$u,ie.gt=y_,ie.gte=v_,ie.has=t4,ie.hasIn=Uu,ie.head=Yh,ie.identity=Xr,ie.includes=z3,ie.indexOf=Pw,ie.inRange=w4,ie.invoke=i4,ie.isArguments=Yi,ie.isArray=At,ie.isArrayBuffer=w_,ie.isArrayLike=Vr,ie.isArrayLikeObject=vr,ie.isBoolean=__,ie.isBuffer=Mi,ie.isDate=x_,ie.isElement=S_,ie.isEmpty=k_,ie.isEqual=C_,ie.isEqualWith=M_,ie.isError=zu,ie.isFinite=T_,ie.isFunction=ti,ie.isInteger=ip,ie.isLength=Ha,ie.isMap=sp,ie.isMatch=E_,ie.isMatchWith=D_,ie.isNaN=O_,ie.isNative=A_,ie.isNil=R_,ie.isNull=I_,ie.isNumber=op,ie.isObject=hr,ie.isObjectLike=gr,ie.isPlainObject=lo,ie.isRegExp=Wu,ie.isSafeInteger=N_,ie.isSet=ap,ie.isString=Ya,ie.isSymbol=en,ie.isTypedArray=Es,ie.isUndefined=P_,ie.isWeakMap=j_,ie.isWeakSet=L_,ie.join=zw,ie.kebabCase=M4,ie.last=dn,ie.lastIndexOf=Ww,ie.lowerCase=T4,ie.lowerFirst=E4,ie.lt=F_,ie.lte=B_,ie.max=x6,ie.maxBy=S6,ie.mean=k6,ie.meanBy=C6,ie.min=M6,ie.minBy=T6,ie.stubArray=Ku,ie.stubFalse=Zu,ie.stubObject=d6,ie.stubString=h6,ie.stubTrue=p6,ie.multiply=E6,ie.nth=$w,ie.noConflict=i6,ie.noop=Xu,ie.now=Wa,ie.pad=D4,ie.padEnd=O4,ie.padStart=A4,ie.parseInt=I4,ie.random=_4,ie.reduce=Y3,ie.reduceRight=V3,ie.repeat=R4,ie.replace=N4,ie.result=f4,ie.round=D6,ie.runInContext=we,ie.sample=X3,ie.size=G3,ie.snakeCase=P4,ie.some=Q3,ie.sortedIndex=Kw,ie.sortedIndexBy=Zw,ie.sortedIndexOf=Gw,ie.sortedLastIndex=Qw,ie.sortedLastIndexBy=Jw,ie.sortedLastIndexOf=e3,ie.startCase=L4,ie.startsWith=F4,ie.subtract=O6,ie.sum=A6,ie.sumBy=I6,ie.template=B4,ie.times=m6,ie.toFinite=ri,ie.toInteger=Rt,ie.toLength=up,ie.toLower=z4,ie.toNumber=hn,ie.toSafeInteger=z_,ie.toString=tr,ie.toUpper=W4,ie.trim=$4,ie.trimEnd=U4,ie.trimStart=H4,ie.truncate=Y4,ie.unescape=V4,ie.uniqueId=b6,ie.upperCase=q4,ie.upperFirst=Hu,ie.each=Kh,ie.eachRight=Zh,ie.first=Yh,qu(ie,function(){var g={};return jn(ie,function(M,P){sr.call(ie.prototype,P)||(g[P]=M)}),g}(),{chain:!1}),ie.VERSION=t,an(["bind","bindKey","curry","curryRight","partial","partialRight"],function(g){ie[g].placeholder=ie}),an(["drop","take"],function(g,M){Vt.prototype[g]=function(P){P=P===e?1:Sr(Rt(P),0);var X=this.__filtered__&&!M?new Vt(this):this.clone();return X.__filtered__?X.__takeCount__=Pr(P,X.__takeCount__):X.__views__.push({size:Pr(P,N),type:g+(X.__dir__<0?"Right":"")}),X},Vt.prototype[g+"Right"]=function(P){return this.reverse()[g](P).reverse()}}),an(["filter","map","takeWhile"],function(g,M){var P=M+1,X=P==A||P==y;Vt.prototype[g]=function(G){var se=this.clone();return se.__iteratees__.push({iteratee:vt(G,3),type:P}),se.__filtered__=se.__filtered__||X,se}}),an(["head","last"],function(g,M){var P="take"+(M?"Right":"");Vt.prototype[g]=function(){return this[P](1).value()[0]}}),an(["initial","tail"],function(g,M){var P="drop"+(M?"":"Right");Vt.prototype[g]=function(){return this.__filtered__?new Vt(this):this[P](1)}}),Vt.prototype.compact=function(){return this.filter(Xr)},Vt.prototype.find=function(g){return this.filter(g).head()},Vt.prototype.findLast=function(g){return this.reverse().find(g)},Vt.prototype.invokeMap=Lt(function(g,M){return typeof g=="function"?new Vt(this):this.map(function(P){return ro(P,g,M)})}),Vt.prototype.reject=function(g){return this.filter(Ua(vt(g)))},Vt.prototype.slice=function(g,M){g=Rt(g);var P=this;return P.__filtered__&&(g>0||M<0)?new Vt(P):(g<0?P=P.takeRight(-g):g&&(P=P.drop(g)),M!==e&&(M=Rt(M),P=M<0?P.dropRight(-M):P.take(M-g)),P)},Vt.prototype.takeRightWhile=function(g){return this.reverse().takeWhile(g).reverse()},Vt.prototype.toArray=function(){return this.take(N)},jn(Vt.prototype,function(g,M){var P=/^(?:filter|find|map|reject)|While$/.test(M),X=/^(?:head|last)$/.test(M),G=ie[X?"take"+(M=="last"?"Right":""):M],se=X||/^find/.test(M);G&&(ie.prototype[M]=function(){var fe=this.__wrapped__,ge=X?[1]:arguments,ke=fe instanceof Vt,je=ge[0],Le=ke||At(fe),Be=function(Ht){var qt=G.apply(ie,vi([Ht],ge));return X&&et?qt[0]:qt};Le&&P&&typeof je=="function"&&je.length!=1&&(ke=Le=!1);var et=this.__chain__,ht=!!this.__actions__.length,_t=se&&!et,Pt=ke&&!ht;if(!se&&Le){fe=Pt?fe:new Vt(this);var xt=g.apply(fe,ge);return xt.__actions__.push({func:Ba,args:[Be],thisArg:e}),new un(xt,et)}return _t&&Pt?g.apply(this,ge):(xt=this.thru(Be),_t?X?xt.value()[0]:xt.value():xt)})}),an(["pop","push","shift","sort","splice","unshift"],function(g){var M=fa[g],P=/^(?:push|sort|unshift)$/.test(g)?"tap":"thru",X=/^(?:pop|shift)$/.test(g);ie.prototype[g]=function(){var G=arguments;if(X&&!this.__chain__){var se=this.value();return M.apply(At(se)?se:[],G)}return this[P](function(fe){return M.apply(At(fe)?fe:[],G)})}}),jn(Vt.prototype,function(g,M){var P=ie[M];if(P){var X=P.name+"";sr.call(Ss,X)||(Ss[X]=[]),Ss[X].push({name:M,func:P})}}),Ss[Ia(e,b).name]=[{name:"wrapper",func:e}],Vt.prototype.clone=Vv,Vt.prototype.reverse=qv,Vt.prototype.value=Xv,ie.prototype.at=S3,ie.prototype.chain=k3,ie.prototype.commit=C3,ie.prototype.next=M3,ie.prototype.plant=E3,ie.prototype.reverse=D3,ie.prototype.toJSON=ie.prototype.valueOf=ie.prototype.value=O3,ie.prototype.first=ie.prototype.head,Ks&&(ie.prototype[Ks]=T3),ie},ws=Cv();Li?((Li.exports=ws)._=ws,Vl._=ws):Ir._=ws}).call(Mt)}(Bo,Bo.exports);var zo=Bo.exports;function Qc(x){return!!x.match(/[A-Z]/)}function ng(x){return zo.upperFirst(x.replaceAll(/[A-Z]/g,(k,e)=>{const t=x[e-1],f=t?Qc(t):!1,u=x[e+1],i=u?Qc(u):!1;return e===0||f&&(!u||i)?k:` ${i?k:k.toLowerCase()}`}))}const ig={"Europe/Amsterdam":"AMS","Europe/Berlin":"AMS","Asia/Jakarta":"JKT","Asia/Bangkok":"JKT",showingFilteredCountOfTotalCount:"Showing {0} of {1}"};function Jc(x,...k){let e=ig[x]||ng(x);return k.forEach((t,f)=>{e=e.replace(`{${f}}`,`${t}`)}),e}const mn="SELECT_ALL_COLUMN_NAME",ef=40,bl="dd MMM yyyy",js="dd MMM yyyy HH:mm",yl=25,tf=3;var Un=(x=>(x.GT="GT",x.LT="LT",x.EQ="EQ",x))(Un||{}),ns=(x=>(x.UNAVAILABLE="UNAVAILABLE",x.AVAILABLE="AVAILABLE",x.ACTIVE="ACTIVE",x))(ns||{});const is=()=>{throw Error("SchemaTableContext not constructed")},ss=kt.createContext({columnFilterMap:{},columnNames:[],columnWidths:[],dropTargetIndex:-1,properties:{},required:[],isItemLoaded:()=>!1,setCustomColumnNames:is,setCustomColumnWidths:is,setMenuConfig:is,setDropTargetIndex:is,setFilterSortColumn:is,checkedIndexes:[],config:{},disabledCheckedIndexes:[],isColumnFilterable:!1,isSortable:!1,translate:is}),sg=({columnIndex:x,rowIndex:k,style:e})=>{const{checkedIndexes:t,columnNames:f,isItemLoaded:u,properties:i,sortedRenderData:o,sourceData:n,config:r,disabledCheckedIndexes:s,getRowClassName:c,getRowSelected:a,onCheckedIndexesChange:l,onRowClick:p,onRowDoubleClick:h,translate:d,displayTimezone:b}=ue.useContext(ss),m=f[x],_=m===mn?{type:"boolean"}:i[m],T=r?r[m]:void 0,O=ue.useCallback(C=>{if(!l)return;const y=t&&t.includes(C);l(y?t.filter(v=>v!==C):t?[...t,C]:[C])},[t,l]),L=u(k),W=ue.useCallback(C=>{if(!n||!o||!p||!L)return;const{rowIndex:y}=C.currentTarget.dataset;if(!y)return;const v=o[parseInt(y,10)];p(n[v._index],v._index,C)},[L,p,o,n]),j=ue.useCallback(C=>{if(!n||!o||!h||!u)return;const{rowIndex:y}=C.currentTarget.dataset;if(!y)return;const v=o[parseInt(y,10)];h(n[v._index],v._index,C)},[u,h,o,n]),z=o?o[k]:void 0,{showTimezones:U,TdBody:Y}=T||{},$=ue.useMemo(()=>b?null:rs.startsWith("Europe/")?"Asia/Jakarta":"Europe/Amsterdam",[b]),E=ue.useMemo(()=>{if(!z||!o)return;let C=m===mn?void 0:z[m];if(_!=null&&_.format&&_.format==="date-time"&&U!==!1){const v=n?n[z._index]:void 0,w=v?v[m]:void 0,S=w?new Date(w):void 0;S&&$&&(C=`${Gc(S,$,js)} (${d($)})`)}const y=["mig-schema-table__td",`mig-schema-table__td--${k%2?"odd":"even"}`,`mig-schema-table__td--prop-${m}`];return n&&a&&a(n[z._index],z._index)&&y.push("mig-schema-table__td--selected"),n&&c&&y.push(c(n[z._index],z._index,o)),{"data-row-index":k,"data-column-index":x,style:e,onClick:W,onDoubleClick:j,className:y.join(" "),title:C}},[z,o,m,_==null?void 0:_.format,U,k,n,a,c,x,e,W,j,$,d]);if(!z||!E)return null;if(!u||n&&!n[z._index])return Xe.jsx("div",{...E,children:"loading"});if(Y&&n)return Xe.jsx("div",{...E,children:Xe.jsx(Y,{dataIndex:z._index,rowData:n[z._index],rowIndex:k,...T==null?void 0:T.tdBodyProps})});if(m===mn){const C=()=>{O&&O(z._index)};return Xe.jsx("div",{...E,onClick:C,children:Xe.jsx("div",{style:{textAlign:"center"},children:Xe.jsx("input",{"data-key":"row-checkbox",type:"checkbox",readOnly:!0,checked:t==null?void 0:t.includes(z._index),disabled:s==null?void 0:s.includes(z._index)})})})}const A=z[m];switch(_==null?void 0:_.type){case"boolean":E.className+=` text-${(T==null?void 0:T.align)||"center"}`;break;case"number":case"integer":E.className+=` text-${(T==null?void 0:T.align)||"end"}`;break;default:if(T!=null&&T.align&&(E.className+=` text-${T.align}`),(_==null?void 0:_.format)==="url"&&A)return Xe.jsx("a",{href:A,target:"_blank",rel:"noopener noreferrer",...E,children:A})}return Xe.jsx("div",{...E,children:A})},rf=ue.memo(sg),nf=x=>x instanceof Object?x.$Date?new Date(x.$Date):Object.entries(x).reduce((k,[e,t])=>(k[e]=nf(t),k),{}):x,sf=x=>{if(!x.length)return null;try{return nf(JSON.parse(decodeURIComponent(x.substring(1))))}catch(k){return console.log(k),null}},of=x=>x instanceof Object?x instanceof Date?{$Date:x.toISOString()}:Object.entries(x).reduce((k,[e,t])=>(k[e]=of(t),k),{}):x,Wo=x=>encodeURIComponent(JSON.stringify(of(x)));function og(){const{checkedIndexes:x,disabledCheckedIndexes:k,sortedRenderData:e}=ue.useContext(ss);return ue.useMemo(()=>{const t=[...e||[]].filter(f=>(x?x.includes(f._index):!0)||(k?!k.includes(f._index):!0));return(x==null?void 0:x.length)!==0&&t.length===(x==null?void 0:x.length)},[x,k,e])}function af(x,k,e){return!!(x&&(e==null?void 0:e.isSortable)!==!1&&(k||e!=null&&e.renderData||e!=null&&e.sort))}function lf(){const{setCustomColumnWidths:x,settingsStorageKey:k}=ue.useContext(ss);return ue.useCallback(e=>{k&&localStorage.setItem(`${k}.columnWidths`,JSON.stringify(e)),x(e)},[x,k])}const ag=({index:x,style:k})=>{const{checkedIndexes:e,columnFilterMap:t,columnNames:f,columnWidths:u,config:i,disabledCheckedIndexes:o,dropTargetIndex:n,isColumnFilterable:r,isSortable:s,onCheckedIndexesChange:c,properties:a,required:l,setCustomColumnNames:p,setDropTargetIndex:h,setFilterSortColumn:d,setMenuConfig:b,settingsStorageKey:m,sortAsc:_,sortColumn:T,sortedRenderData:O,translate:L,displayTimezone:W}=ue.useContext(ss),[j,z]=ue.useState(!1),U=x===n,Y=lf(),$=f[x],E=$===mn?{type:"boolean"}:a[$],A=T===$?_:void 0,C=i?i[$]:void 0;let y=r&&(E||C!=null&&C.FilterMenu)&&(C==null?void 0:C.isFilterable)!==!1?ns.AVAILABLE:ns.UNAVAILABLE;t[$]!==void 0&&(y=ns.ACTIVE);const v=af(s,E,C),w=["mig-schema-table__th",`mig-schema-table__th--filter-${y}`,`mig-schema-table__th--prop-${$}`];w.push(v?"mig-schema-table__th--sortable":"mig-schema-table__th--unsortable"),A!==void 0&&w.push("mig-schema-table__th--sorted"),j&&w.push("mig-schema-table__th--dragging"),U&&w.push("mig-schema-table__th--drop-target");const{format:S}=E||{},{align:D,defaultSortDesc:N,showTimezones:F=!W,title:V}=C||{},q=ue.useCallback(()=>{if(v){if(A===void 0){d($,!N);return}d($,!A)}},[v,N,$,d,A]),Q=l.includes($),B=ue.useCallback(he=>{const de=he.currentTarget;b(ee=>{if((ee==null?void 0:ee.propName)!==$)return{propConfig:C,propIsRequired:Q,propName:$,referenceElement:de}})},[C,Q,$,b]),K=ue.useMemo(()=>V!==void 0?V:S==="date-time"&&F?`${L($)} (${L(W||rs)})`:L($),[V,S,F,L,$,W]),R=ue.useCallback((he,de)=>{if(!f||!u)return;const ee=f.indexOf(he),le=[...f];le.splice(ee,1);const ce=le.indexOf(de);le.splice(ce+1,0,he),p(le);const me=[...u],be=me[ee];me.splice(ee,1),me.splice(ce+1,0,be),Y(me),m&&localStorage.setItem(`${m}.columnNames`,JSON.stringify(le))},[f,u,Y,m,p]),I=ue.useCallback(he=>{R&&(z(!0),he.dataTransfer.effectAllowed="move",he.dataTransfer.dropEffect="move",he.dataTransfer.setData("text/plain",$))},[R,$]),H=ue.useCallback(()=>{R&&(z(!1),h(-1))},[R,h]),Z=ue.useCallback(he=>{R&&(he.preventDefault(),h(x))},[x,R,h]),ne=ue.useCallback(he=>{if(h(-1),!R||!$)return;const de=he.dataTransfer.getData("text/plain");!de||de===$||R(de,$)},[R,$,h]),J=og(),te=ue.useCallback(()=>{!c||!O||c(J?[]:O.map(he=>he._index).filter(he=>!(o!=null&&o.includes(he))))},[c,O,J,o]);if($===mn)return Xe.jsx("div",{style:k,className:w.join(" "),children:Xe.jsx("div",{style:{width:"100%",textAlign:"center"},title:`${(e==null?void 0:e.length)||0} selected`,children:Xe.jsx("input",{type:"checkbox",name:"selectAll",checked:J,onChange:te})})});switch(E==null?void 0:E.type){case"boolean":w.push(`text-${D||"center"}`,`justify-content-${D||"center"}`);break;case"integer":case"number":w.push(`text-${D||"end"}`,`justify-content-${D||"end"}`);break;default:D&&w.push(`text-${D}`)}return Xe.jsxs("div",{className:w.join(" "),style:k,title:typeof K=="string"?K:void 0,draggable:!0,onDragStart:I,onDragEnd:H,onDragOver:Z,onDrop:ne,children:[Xe.jsxs("div",{className:"mig-schema-table__th__label-body",style:{lineHeight:"44px"},onClick:q,children:[Xe.jsx("span",{className:"mig-schema-table__th__label-body-text",children:K}),A===void 0?null:Xe.jsx("span",{className:"mig-schema-table__th__sort-icon",children:A?"↓":"↑"})]}),v||y!==ns.UNAVAILABLE?Xe.jsx("button",{className:"mig-schema-table__th__trigger-el",onClick:B,children:Xe.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"#404040",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:Xe.jsx("polyline",{points:"6 9 12 15 18 9"})})}):null]})},uf=ue.memo(ag);function cf(x){var k,e,t="";if(typeof x=="string"||typeof x=="number")t+=x;else if(typeof x=="object")if(Array.isArray(x)){var f=x.length;for(k=0;k<f;k++)x[k]&&(e=cf(x[k]))&&(t&&(t+=" "),t+=e)}else for(e in x)x[e]&&(t&&(t+=" "),t+=e);return t}function Dr(){for(var x,k,e=0,t="",f=arguments.length;e<f;e++)(x=arguments[e])&&(k=cf(x))&&(t&&(t+=" "),t+=k);return t}function lg(x,k){x.prototype=Object.create(k.prototype),x.prototype.constructor=x,vl(x,k)}function vl(x,k){return vl=Object.setPrototypeOf||function(t,f){return t.__proto__=f,t},vl(x,k)}function ug(x,k){if(x==null)return{};var e={},t=Object.keys(x),f,u;for(u=0;u<t.length;u++)f=t[u],!(k.indexOf(f)>=0)&&(e[f]=x[f]);return e}function ff(x){if(x===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x}function cg(x,k,e){return x===k?!0:x.correspondingElement?x.correspondingElement.classList.contains(e):x.classList.contains(e)}function fg(x,k,e){if(x===k)return!0;for(;x.parentNode||x.host;){if(x.parentNode&&cg(x,k,e))return!0;x=x.parentNode||x.host}return x}function dg(x){return document.documentElement.clientWidth<=x.clientX||document.documentElement.clientHeight<=x.clientY}var hg=function(){if(!(typeof window>"u"||typeof window.addEventListener!="function")){var k=!1,e=Object.defineProperty({},"passive",{get:function(){k=!0}}),t=function(){};return window.addEventListener("testPassiveEventSupport",t,e),window.removeEventListener("testPassiveEventSupport",t,e),k}};function pg(x){return x===void 0&&(x=0),function(){return++x}}var mg=pg(),wl,$o={},_l={},gg=["touchstart","touchmove"],bg="ignore-react-onclickoutside";function df(x,k){var e={},t=gg.indexOf(k)!==-1;return t&&wl&&(e.passive=!x.props.preventDefault),e}function Uo(x,k){var e,t,f=x.displayName||x.name||"Component";return t=e=function(u){lg(i,u);function i(n){var r;return r=u.call(this,n)||this,r.__outsideClickHandler=function(s){if(typeof r.__clickOutsideHandlerProp=="function"){r.__clickOutsideHandlerProp(s);return}var c=r.getInstance();if(typeof c.props.handleClickOutside=="function"){c.props.handleClickOutside(s);return}if(typeof c.handleClickOutside=="function"){c.handleClickOutside(s);return}throw new Error("WrappedComponent: "+f+" lacks a handleClickOutside(event) function for processing outside click events.")},r.__getComponentNode=function(){var s=r.getInstance();return typeof s.setClickOutsideRef=="function"?s.setClickOutsideRef():Sn.findDOMNode(s)},r.enableOnClickOutside=function(){if(!(typeof document>"u"||_l[r._uid])){typeof wl>"u"&&(wl=hg()),_l[r._uid]=!0;var s=r.props.eventTypes;s.forEach||(s=[s]),$o[r._uid]=function(c){if(r.componentNode!==null&&!(r.initTimeStamp>c.timeStamp)&&(r.props.preventDefault&&c.preventDefault(),r.props.stopPropagation&&c.stopPropagation(),!(r.props.excludeScrollbar&&dg(c)))){var a=c.composed&&c.composedPath&&c.composedPath().shift()||c.target;fg(a,r.componentNode,r.props.outsideClickIgnoreClass)===document&&r.__outsideClickHandler(c)}},s.forEach(function(c){document.addEventListener(c,$o[r._uid],df(ff(r),c))})}},r.disableOnClickOutside=function(){delete _l[r._uid];var s=$o[r._uid];if(s&&typeof document<"u"){var c=r.props.eventTypes;c.forEach||(c=[c]),c.forEach(function(a){return document.removeEventListener(a,s,df(ff(r),a))}),delete $o[r._uid]}},r.getRef=function(s){return r.instanceRef=s},r._uid=mg(),r.initTimeStamp=performance.now(),r}var o=i.prototype;return o.getInstance=function(){if(x.prototype&&!x.prototype.isReactComponent)return this;var r=this.instanceRef;return r.getInstance?r.getInstance():r},o.componentDidMount=function(){typeof document>"u"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},o.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},o.componentWillUnmount=function(){this.disableOnClickOutside()},o.render=function(){var r=this.props;r.excludeScrollbar;var s=ug(r,["excludeScrollbar"]);return x.prototype&&x.prototype.isReactComponent?s.ref=this.getRef:s.wrappedRef=this.getRef,s.disableOnClickOutside=this.disableOnClickOutside,s.enableOnClickOutside=this.enableOnClickOutside,ue.createElement(x,s)},i}(ue.Component),e.displayName="OnClickOutside("+f+")",e.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:bg,preventDefault:!1,stopPropagation:!1},e.getClass=function(){return x.getClass?x.getClass():x},t}function os(x){return hf(x)?(x.nodeName||"").toLowerCase():"#document"}function Kr(x){var k;return(x==null||(k=x.ownerDocument)==null?void 0:k.defaultView)||window}function Hn(x){var k;return(k=(hf(x)?x.ownerDocument:x.document)||window.document)==null?void 0:k.documentElement}function hf(x){return x instanceof Node||x instanceof Kr(x).Node}function zr(x){return x instanceof Element||x instanceof Kr(x).Element}function In(x){return x instanceof HTMLElement||x instanceof Kr(x).HTMLElement}function pf(x){return typeof ShadowRoot>"u"?!1:x instanceof ShadowRoot||x instanceof Kr(x).ShadowRoot}function Ls(x){const{overflow:k,overflowX:e,overflowY:t,display:f}=gn(x);return/auto|scroll|overlay|hidden|clip/.test(k+t+e)&&!["inline","contents"].includes(f)}function yg(x){return["table","td","th"].includes(os(x))}function xl(x){const k=Sl(),e=gn(x);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!k&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!k&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(t=>(e.willChange||"").includes(t))||["paint","layout","strict","content"].some(t=>(e.contain||"").includes(t))}function vg(x){let k=ai(x);for(;In(k)&&!as(k);){if(xl(k))return k;k=ai(k)}return null}function Sl(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function as(x){return["html","body","#document"].includes(os(x))}function gn(x){return Kr(x).getComputedStyle(x)}function Ho(x){return zr(x)?{scrollLeft:x.scrollLeft,scrollTop:x.scrollTop}:{scrollLeft:x.pageXOffset,scrollTop:x.pageYOffset}}function ai(x){if(os(x)==="html")return x;const k=x.assignedSlot||x.parentNode||pf(x)&&x.host||Hn(x);return pf(k)?k.host:k}function mf(x){const k=ai(x);return as(k)?x.ownerDocument?x.ownerDocument.body:x.body:In(k)&&Ls(k)?k:mf(k)}function Fs(x,k,e){var t;k===void 0&&(k=[]),e===void 0&&(e=!0);const f=mf(x),u=f===((t=x.ownerDocument)==null?void 0:t.body),i=Kr(f);return u?k.concat(i,i.visualViewport||[],Ls(f)?f:[],i.frameElement&&e?Fs(i.frameElement):[]):k.concat(f,Fs(f,[],e))}const ls=Math.min,Ii=Math.max,Yo=Math.round,Vo=Math.floor,li=x=>({x,y:x}),wg={left:"right",right:"left",bottom:"top",top:"bottom"},_g={start:"end",end:"start"};function xg(x,k,e){return Ii(x,ls(k,e))}function qo(x,k){return typeof x=="function"?x(k):x}function us(x){return x.split("-")[0]}function Bs(x){return x.split("-")[1]}function Sg(x){return x==="x"?"y":"x"}function kl(x){return x==="y"?"height":"width"}function Cl(x){return["top","bottom"].includes(us(x))?"y":"x"}function Ml(x){return Sg(Cl(x))}function kg(x,k,e){e===void 0&&(e=!1);const t=Bs(x),f=Ml(x),u=kl(f);let i=f==="x"?t===(e?"end":"start")?"right":"left":t==="start"?"bottom":"top";return k.reference[u]>k.floating[u]&&(i=Xo(i)),[i,Xo(i)]}function Cg(x){const k=Xo(x);return[Tl(x),k,Tl(k)]}function Tl(x){return x.replace(/start|end/g,k=>_g[k])}function Mg(x,k,e){const t=["left","right"],f=["right","left"],u=["top","bottom"],i=["bottom","top"];switch(x){case"top":case"bottom":return e?k?f:t:k?t:f;case"left":case"right":return k?u:i;default:return[]}}function Tg(x,k,e,t){const f=Bs(x);let u=Mg(us(x),e==="start",t);return f&&(u=u.map(i=>i+"-"+f),k&&(u=u.concat(u.map(Tl)))),u}function Xo(x){return x.replace(/left|right|bottom|top/g,k=>wg[k])}function Eg(x){return{top:0,right:0,bottom:0,left:0,...x}}function gf(x){return typeof x!="number"?Eg(x):{top:x,right:x,bottom:x,left:x}}function Ko(x){const{x:k,y:e,width:t,height:f}=x;return{width:t,height:f,top:e,left:k,right:k+t,bottom:e+f,x:k,y:e}}function bf(x,k,e){let{reference:t,floating:f}=x;const u=Cl(k),i=Ml(k),o=kl(i),n=us(k),r=u==="y",s=t.x+t.width/2-f.width/2,c=t.y+t.height/2-f.height/2,a=t[o]/2-f[o]/2;let l;switch(n){case"top":l={x:s,y:t.y-f.height};break;case"bottom":l={x:s,y:t.y+t.height};break;case"right":l={x:t.x+t.width,y:c};break;case"left":l={x:t.x-f.width,y:c};break;default:l={x:t.x,y:t.y}}switch(Bs(k)){case"start":l[i]-=a*(e&&r?-1:1);break;case"end":l[i]+=a*(e&&r?-1:1);break}return l}const Dg=async(x,k,e)=>{const{placement:t="bottom",strategy:f="absolute",middleware:u=[],platform:i}=e,o=u.filter(Boolean),n=await(i.isRTL==null?void 0:i.isRTL(k));let r=await i.getElementRects({reference:x,floating:k,strategy:f}),{x:s,y:c}=bf(r,t,n),a=t,l={},p=0;for(let h=0;h<o.length;h++){const{name:d,fn:b}=o[h],{x:m,y:_,data:T,reset:O}=await b({x:s,y:c,initialPlacement:t,placement:a,strategy:f,middlewareData:l,rects:r,platform:i,elements:{reference:x,floating:k}});s=m??s,c=_??c,l={...l,[d]:{...l[d],...T}},O&&p<=50&&(p++,typeof O=="object"&&(O.placement&&(a=O.placement),O.rects&&(r=O.rects===!0?await i.getElementRects({reference:x,floating:k,strategy:f}):O.rects),{x:s,y:c}=bf(r,a,n)),h=-1)}return{x:s,y:c,placement:a,strategy:f,middlewareData:l}};async function Og(x,k){var e;k===void 0&&(k={});const{x:t,y:f,platform:u,rects:i,elements:o,strategy:n}=x,{boundary:r="clippingAncestors",rootBoundary:s="viewport",elementContext:c="floating",altBoundary:a=!1,padding:l=0}=qo(k,x),p=gf(l),d=o[a?c==="floating"?"reference":"floating":c],b=Ko(await u.getClippingRect({element:(e=await(u.isElement==null?void 0:u.isElement(d)))==null||e?d:d.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(o.floating)),boundary:r,rootBoundary:s,strategy:n})),m=c==="floating"?{x:t,y:f,width:i.floating.width,height:i.floating.height}:i.reference,_=await(u.getOffsetParent==null?void 0:u.getOffsetParent(o.floating)),T=await(u.isElement==null?void 0:u.isElement(_))?await(u.getScale==null?void 0:u.getScale(_))||{x:1,y:1}:{x:1,y:1},O=Ko(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:m,offsetParent:_,strategy:n}):m);return{top:(b.top-O.top+p.top)/T.y,bottom:(O.bottom-b.bottom+p.bottom)/T.y,left:(b.left-O.left+p.left)/T.x,right:(O.right-b.right+p.right)/T.x}}const Ag=x=>({name:"arrow",options:x,async fn(k){const{x:e,y:t,placement:f,rects:u,platform:i,elements:o,middlewareData:n}=k,{element:r,padding:s=0}=qo(x,k)||{};if(r==null)return{};const c=gf(s),a={x:e,y:t},l=Ml(f),p=kl(l),h=await i.getDimensions(r),d=l==="y",b=d?"top":"left",m=d?"bottom":"right",_=d?"clientHeight":"clientWidth",T=u.reference[p]+u.reference[l]-a[l]-u.floating[p],O=a[l]-u.reference[l],L=await(i.getOffsetParent==null?void 0:i.getOffsetParent(r));let W=L?L[_]:0;(!W||!await(i.isElement==null?void 0:i.isElement(L)))&&(W=o.floating[_]||u.floating[p]);const j=T/2-O/2,z=W/2-h[p]/2-1,U=ls(c[b],z),Y=ls(c[m],z),$=U,E=W-h[p]-Y,A=W/2-h[p]/2+j,C=xg($,A,E),y=!n.arrow&&Bs(f)!=null&&A!==C&&u.reference[p]/2-(A<$?U:Y)-h[p]/2<0,v=y?A<$?A-$:A-E:0;return{[l]:a[l]+v,data:{[l]:C,centerOffset:A-C-v,...y&&{alignmentOffset:v}},reset:y}}}),Ig=function(x){return x===void 0&&(x={}),{name:"flip",options:x,async fn(k){var e,t;const{placement:f,middlewareData:u,rects:i,initialPlacement:o,platform:n,elements:r}=k,{mainAxis:s=!0,crossAxis:c=!0,fallbackPlacements:a,fallbackStrategy:l="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...d}=qo(x,k);if((e=u.arrow)!=null&&e.alignmentOffset)return{};const b=us(f),m=us(o)===o,_=await(n.isRTL==null?void 0:n.isRTL(r.floating)),T=a||(m||!h?[Xo(o)]:Cg(o));!a&&p!=="none"&&T.push(...Tg(o,h,p,_));const O=[o,...T],L=await Og(k,d),W=[];let j=((t=u.flip)==null?void 0:t.overflows)||[];if(s&&W.push(L[b]),c){const $=kg(f,i,_);W.push(L[$[0]],L[$[1]])}if(j=[...j,{placement:f,overflows:W}],!W.every($=>$<=0)){var z,U;const $=(((z=u.flip)==null?void 0:z.index)||0)+1,E=O[$];if(E)return{data:{index:$,overflows:j},reset:{placement:E}};let A=(U=j.filter(C=>C.overflows[0]<=0).sort((C,y)=>C.overflows[1]-y.overflows[1])[0])==null?void 0:U.placement;if(!A)switch(l){case"bestFit":{var Y;const C=(Y=j.map(y=>[y.placement,y.overflows.filter(v=>v>0).reduce((v,w)=>v+w,0)]).sort((y,v)=>y[1]-v[1])[0])==null?void 0:Y[0];C&&(A=C);break}case"initialPlacement":A=o;break}if(f!==A)return{reset:{placement:A}}}return{}}}};async function Rg(x,k){const{placement:e,platform:t,elements:f}=x,u=await(t.isRTL==null?void 0:t.isRTL(f.floating)),i=us(e),o=Bs(e),n=Cl(e)==="y",r=["left","top"].includes(i)?-1:1,s=u&&n?-1:1,c=qo(k,x);let{mainAxis:a,crossAxis:l,alignmentAxis:p}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return o&&typeof p=="number"&&(l=o==="end"?p*-1:p),n?{x:l*s,y:a*r}:{x:a*r,y:l*s}}const Ng=function(x){return x===void 0&&(x=0),{name:"offset",options:x,async fn(k){var e,t;const{x:f,y:u,placement:i,middlewareData:o}=k,n=await Rg(k,x);return i===((e=o.offset)==null?void 0:e.placement)&&(t=o.arrow)!=null&&t.alignmentOffset?{}:{x:f+n.x,y:u+n.y,data:{...n,placement:i}}}}};function yf(x){const k=gn(x);let e=parseFloat(k.width)||0,t=parseFloat(k.height)||0;const f=In(x),u=f?x.offsetWidth:e,i=f?x.offsetHeight:t,o=Yo(e)!==u||Yo(t)!==i;return o&&(e=u,t=i),{width:e,height:t,$:o}}function El(x){return zr(x)?x:x.contextElement}function cs(x){const k=El(x);if(!In(k))return li(1);const e=k.getBoundingClientRect(),{width:t,height:f,$:u}=yf(k);let i=(u?Yo(e.width):e.width)/t,o=(u?Yo(e.height):e.height)/f;return(!i||!Number.isFinite(i))&&(i=1),(!o||!Number.isFinite(o))&&(o=1),{x:i,y:o}}const Pg=li(0);function vf(x){const k=Kr(x);return!Sl()||!k.visualViewport?Pg:{x:k.visualViewport.offsetLeft,y:k.visualViewport.offsetTop}}function jg(x,k,e){return k===void 0&&(k=!1),!e||k&&e!==Kr(x)?!1:k}function Ri(x,k,e,t){k===void 0&&(k=!1),e===void 0&&(e=!1);const f=x.getBoundingClientRect(),u=El(x);let i=li(1);k&&(t?zr(t)&&(i=cs(t)):i=cs(x));const o=jg(u,e,t)?vf(u):li(0);let n=(f.left+o.x)/i.x,r=(f.top+o.y)/i.y,s=f.width/i.x,c=f.height/i.y;if(u){const a=Kr(u),l=t&&zr(t)?Kr(t):t;let p=a,h=p.frameElement;for(;h&&t&&l!==p;){const d=cs(h),b=h.getBoundingClientRect(),m=gn(h),_=b.left+(h.clientLeft+parseFloat(m.paddingLeft))*d.x,T=b.top+(h.clientTop+parseFloat(m.paddingTop))*d.y;n*=d.x,r*=d.y,s*=d.x,c*=d.y,n+=_,r+=T,p=Kr(h),h=p.frameElement}}return Ko({width:s,height:c,x:n,y:r})}const Lg=[":popover-open",":modal"];function Dl(x){return Lg.some(k=>{try{return x.matches(k)}catch{return!1}})}function Fg(x){let{elements:k,rect:e,offsetParent:t,strategy:f}=x;const u=f==="fixed",i=Hn(t),o=k?Dl(k.floating):!1;if(t===i||o&&u)return e;let n={scrollLeft:0,scrollTop:0},r=li(1);const s=li(0),c=In(t);if((c||!c&&!u)&&((os(t)!=="body"||Ls(i))&&(n=Ho(t)),In(t))){const a=Ri(t);r=cs(t),s.x=a.x+t.clientLeft,s.y=a.y+t.clientTop}return{width:e.width*r.x,height:e.height*r.y,x:e.x*r.x-n.scrollLeft*r.x+s.x,y:e.y*r.y-n.scrollTop*r.y+s.y}}function Bg(x){return Array.from(x.getClientRects())}function wf(x){return Ri(Hn(x)).left+Ho(x).scrollLeft}function zg(x){const k=Hn(x),e=Ho(x),t=x.ownerDocument.body,f=Ii(k.scrollWidth,k.clientWidth,t.scrollWidth,t.clientWidth),u=Ii(k.scrollHeight,k.clientHeight,t.scrollHeight,t.clientHeight);let i=-e.scrollLeft+wf(x);const o=-e.scrollTop;return gn(t).direction==="rtl"&&(i+=Ii(k.clientWidth,t.clientWidth)-f),{width:f,height:u,x:i,y:o}}function Wg(x,k){const e=Kr(x),t=Hn(x),f=e.visualViewport;let u=t.clientWidth,i=t.clientHeight,o=0,n=0;if(f){u=f.width,i=f.height;const r=Sl();(!r||r&&k==="fixed")&&(o=f.offsetLeft,n=f.offsetTop)}return{width:u,height:i,x:o,y:n}}function $g(x,k){const e=Ri(x,!0,k==="fixed"),t=e.top+x.clientTop,f=e.left+x.clientLeft,u=In(x)?cs(x):li(1),i=x.clientWidth*u.x,o=x.clientHeight*u.y,n=f*u.x,r=t*u.y;return{width:i,height:o,x:n,y:r}}function _f(x,k,e){let t;if(k==="viewport")t=Wg(x,e);else if(k==="document")t=zg(Hn(x));else if(zr(k))t=$g(k,e);else{const f=vf(x);t={...k,x:k.x-f.x,y:k.y-f.y}}return Ko(t)}function xf(x,k){const e=ai(x);return e===k||!zr(e)||as(e)?!1:gn(e).position==="fixed"||xf(e,k)}function Ug(x,k){const e=k.get(x);if(e)return e;let t=Fs(x,[],!1).filter(o=>zr(o)&&os(o)!=="body"),f=null;const u=gn(x).position==="fixed";let i=u?ai(x):x;for(;zr(i)&&!as(i);){const o=gn(i),n=xl(i);!n&&o.position==="fixed"&&(f=null),(u?!n&&!f:!n&&o.position==="static"&&!!f&&["absolute","fixed"].includes(f.position)||Ls(i)&&!n&&xf(x,i))?t=t.filter(s=>s!==i):f=o,i=ai(i)}return k.set(x,t),t}function Hg(x){let{element:k,boundary:e,rootBoundary:t,strategy:f}=x;const i=[...e==="clippingAncestors"?Dl(k)?[]:Ug(k,this._c):[].concat(e),t],o=i[0],n=i.reduce((r,s)=>{const c=_f(k,s,f);return r.top=Ii(c.top,r.top),r.right=ls(c.right,r.right),r.bottom=ls(c.bottom,r.bottom),r.left=Ii(c.left,r.left),r},_f(k,o,f));return{width:n.right-n.left,height:n.bottom-n.top,x:n.left,y:n.top}}function Yg(x){const{width:k,height:e}=yf(x);return{width:k,height:e}}function Vg(x,k,e){const t=In(k),f=Hn(k),u=e==="fixed",i=Ri(x,!0,u,k);let o={scrollLeft:0,scrollTop:0};const n=li(0);if(t||!t&&!u)if((os(k)!=="body"||Ls(f))&&(o=Ho(k)),t){const c=Ri(k,!0,u,k);n.x=c.x+k.clientLeft,n.y=c.y+k.clientTop}else f&&(n.x=wf(f));const r=i.left+o.scrollLeft-n.x,s=i.top+o.scrollTop-n.y;return{x:r,y:s,width:i.width,height:i.height}}function Ol(x){return gn(x).position==="static"}function Sf(x,k){return!In(x)||gn(x).position==="fixed"?null:k?k(x):x.offsetParent}function kf(x,k){const e=Kr(x);if(Dl(x))return e;if(!In(x)){let f=ai(x);for(;f&&!as(f);){if(zr(f)&&!Ol(f))return f;f=ai(f)}return e}let t=Sf(x,k);for(;t&&yg(t)&&Ol(t);)t=Sf(t,k);return t&&as(t)&&Ol(t)&&!xl(t)?e:t||vg(x)||e}const qg=async function(x){const k=this.getOffsetParent||kf,e=this.getDimensions,t=await e(x.floating);return{reference:Vg(x.reference,await k(x.floating),x.strategy),floating:{x:0,y:0,width:t.width,height:t.height}}};function Xg(x){return gn(x).direction==="rtl"}const Cf={convertOffsetParentRelativeRectToViewportRelativeRect:Fg,getDocumentElement:Hn,getClippingRect:Hg,getOffsetParent:kf,getElementRects:qg,getClientRects:Bg,getDimensions:Yg,getScale:cs,isElement:zr,isRTL:Xg};function Kg(x,k){let e=null,t;const f=Hn(x);function u(){var o;clearTimeout(t),(o=e)==null||o.disconnect(),e=null}function i(o,n){o===void 0&&(o=!1),n===void 0&&(n=1),u();const{left:r,top:s,width:c,height:a}=x.getBoundingClientRect();if(o||k(),!c||!a)return;const l=Vo(s),p=Vo(f.clientWidth-(r+c)),h=Vo(f.clientHeight-(s+a)),d=Vo(r),m={rootMargin:-l+"px "+-p+"px "+-h+"px "+-d+"px",threshold:Ii(0,ls(1,n))||1};let _=!0;function T(O){const L=O[0].intersectionRatio;if(L!==n){if(!_)return i();L?i(!1,L):t=setTimeout(()=>{i(!1,1e-7)},1e3)}_=!1}try{e=new IntersectionObserver(T,{...m,root:f.ownerDocument})}catch{e=new IntersectionObserver(T,m)}e.observe(x)}return i(!0),u}function Zg(x,k,e,t){t===void 0&&(t={});const{ancestorScroll:f=!0,ancestorResize:u=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:o=typeof IntersectionObserver=="function",animationFrame:n=!1}=t,r=El(x),s=f||u?[...r?Fs(r):[],...Fs(k)]:[];s.forEach(b=>{f&&b.addEventListener("scroll",e,{passive:!0}),u&&b.addEventListener("resize",e)});const c=r&&o?Kg(r,e):null;let a=-1,l=null;i&&(l=new ResizeObserver(b=>{let[m]=b;m&&m.target===r&&l&&(l.unobserve(k),cancelAnimationFrame(a),a=requestAnimationFrame(()=>{var _;(_=l)==null||_.observe(k)})),e()}),r&&!n&&l.observe(r),l.observe(k));let p,h=n?Ri(x):null;n&&d();function d(){const b=Ri(x);h&&(b.x!==h.x||b.y!==h.y||b.width!==h.width||b.height!==h.height)&&e(),h=b,p=requestAnimationFrame(d)}return e(),()=>{var b;s.forEach(m=>{f&&m.removeEventListener("scroll",e),u&&m.removeEventListener("resize",e)}),c==null||c(),(b=l)==null||b.disconnect(),l=null,n&&cancelAnimationFrame(p)}}const Gg=Ng,Qg=Ig,Mf=Ag,Jg=(x,k,e)=>{const t=new Map,f={platform:Cf,...e},u={...f.platform,_c:t};return Dg(x,k,{...f,platform:u})};var Zo=typeof document<"u"?ue.useLayoutEffect:ue.useEffect;function Go(x,k){if(x===k)return!0;if(typeof x!=typeof k)return!1;if(typeof x=="function"&&x.toString()===k.toString())return!0;let e,t,f;if(x&&k&&typeof x=="object"){if(Array.isArray(x)){if(e=x.length,e!==k.length)return!1;for(t=e;t--!==0;)if(!Go(x[t],k[t]))return!1;return!0}if(f=Object.keys(x),e=f.length,e!==Object.keys(k).length)return!1;for(t=e;t--!==0;)if(!{}.hasOwnProperty.call(k,f[t]))return!1;for(t=e;t--!==0;){const u=f[t];if(!(u==="_owner"&&x.$$typeof)&&!Go(x[u],k[u]))return!1}return!0}return x!==x&&k!==k}function Tf(x){return typeof window>"u"?1:(x.ownerDocument.defaultView||window).devicePixelRatio||1}function Ef(x,k){const e=Tf(x);return Math.round(k*e)/e}function Df(x){const k=kt.useRef(x);return Zo(()=>{k.current=x}),k}function Al(x){x===void 0&&(x={});const{placement:k="bottom",strategy:e="absolute",middleware:t=[],platform:f,elements:{reference:u,floating:i}={},transform:o=!0,whileElementsMounted:n,open:r}=x,[s,c]=kt.useState({x:0,y:0,strategy:e,placement:k,middlewareData:{},isPositioned:!1}),[a,l]=kt.useState(t);Go(a,t)||l(t);const[p,h]=kt.useState(null),[d,b]=kt.useState(null),m=kt.useCallback(v=>{v!==L.current&&(L.current=v,h(v))},[]),_=kt.useCallback(v=>{v!==W.current&&(W.current=v,b(v))},[]),T=u||p,O=i||d,L=kt.useRef(null),W=kt.useRef(null),j=kt.useRef(s),z=n!=null,U=Df(n),Y=Df(f),$=kt.useCallback(()=>{if(!L.current||!W.current)return;const v={placement:k,strategy:e,middleware:a};Y.current&&(v.platform=Y.current),Jg(L.current,W.current,v).then(w=>{const S={...w,isPositioned:!0};E.current&&!Go(j.current,S)&&(j.current=S,xp.flushSync(()=>{c(S)}))})},[a,k,e,Y]);Zo(()=>{r===!1&&j.current.isPositioned&&(j.current.isPositioned=!1,c(v=>({...v,isPositioned:!1})))},[r]);const E=kt.useRef(!1);Zo(()=>(E.current=!0,()=>{E.current=!1}),[]),Zo(()=>{if(T&&(L.current=T),O&&(W.current=O),T&&O){if(U.current)return U.current(T,O,$);$()}},[T,O,$,U,z]);const A=kt.useMemo(()=>({reference:L,floating:W,setReference:m,setFloating:_}),[m,_]),C=kt.useMemo(()=>({reference:T,floating:O}),[T,O]),y=kt.useMemo(()=>{const v={position:e,left:0,top:0};if(!C.floating)return v;const w=Ef(C.floating,s.x),S=Ef(C.floating,s.y);return o?{...v,transform:"translate("+w+"px, "+S+"px)",...Tf(C.floating)>=1.5&&{willChange:"transform"}}:{position:e,left:w,top:S}},[e,o,C.floating,s.x,s.y]);return kt.useMemo(()=>({...s,update:$,refs:A,elements:C,floatingStyles:y}),[s,$,A,C,y])}const eb=x=>{function k(e){return{}.hasOwnProperty.call(e,"current")}return{name:"arrow",options:x,fn(e){const{element:t,padding:f}=typeof x=="function"?x(e):x;return t&&k(t)?t.current!=null?Mf({element:t.current,padding:f}).fn(e):{}:t?Mf({element:t,padding:f}).fn(e):{}}}},tb=(x,k)=>({...Gg(x),options:[x,k]}),Il=(x,k)=>({...Qg(x),options:[x,k]}),rb=(x,k)=>({...eb(x),options:[x,k]}),Of={...kt},nb=Of.useInsertionEffect||(x=>x());function ib(x){const k=kt.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return nb(()=>{k.current=x}),kt.useCallback(function(){for(var e=arguments.length,t=new Array(e),f=0;f<e;f++)t[f]=arguments[f];return k.current==null?void 0:k.current(...t)},[])}var Rl=typeof document<"u"?ue.useLayoutEffect:ue.useEffect;function Nl(){return Nl=Object.assign?Object.assign.bind():function(x){for(var k=1;k<arguments.length;k++){var e=arguments[k];for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(x[t]=e[t])}return x},Nl.apply(this,arguments)}let Af=!1,sb=0;const If=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+sb++;function ob(){const[x,k]=kt.useState(()=>Af?If():void 0);return Rl(()=>{x==null&&k(If())},[]),kt.useEffect(()=>{Af=!0},[]),x}const Rf=Of.useId||ob;let zs;process.env.NODE_ENV!=="production"&&(zs=new Set);function ab(){for(var x,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((x=zs)!=null&&x.has(f))){var u;(u=zs)==null||u.add(f),console.warn(f)}}function lb(){for(var x,k=arguments.length,e=new Array(k),t=0;t<k;t++)e[t]=arguments[t];const f="Floating UI: "+e.join(" ");if(!((x=zs)!=null&&x.has(f))){var u;(u=zs)==null||u.add(f),console.error(f)}}const ub=kt.forwardRef(function(k,e){const{context:{placement:t,elements:{floating:f},middlewareData:{arrow:u}},width:i=14,height:o=7,tipRadius:n=0,strokeWidth:r=0,staticOffset:s,stroke:c,d:a,style:{transform:l,...p}={},...h}=k;process.env.NODE_ENV!=="production"&&(e||ab("The `ref` prop is required for `FloatingArrow`."));const d=Rf();if(!f)return null;const b=r*2,m=b/2,_=i/2*(n/-8+1),T=o/2*n/4,[O,L]=t.split("-"),W=Cf.isRTL(f),j=!!a,z=O==="top"||O==="bottom",U=s&&L==="end"?"bottom":"top";let Y=s&&L==="end"?"right":"left";s&&W&&(Y=L==="end"?"left":"right");const $=(u==null?void 0:u.x)!=null?s||u.x:"",E=(u==null?void 0:u.y)!=null?s||u.y:"",A=a||"M0,0"+(" H"+i)+(" L"+(i-_)+","+(o-T))+(" Q"+i/2+","+o+" "+_+","+(o-T))+" Z",C={top:j?"rotate(180deg)":"",left:j?"rotate(90deg)":"rotate(-90deg)",bottom:j?"":"rotate(180deg)",right:j?"rotate(-90deg)":"rotate(90deg)"}[O];return kt.createElement("svg",Nl({},h,{"aria-hidden":!0,ref:e,width:j?i:i+b,height:i,viewBox:"0 0 "+i+" "+(o>i?o:i),style:{position:"absolute",pointerEvents:"none",[Y]:$,[U]:E,[O]:z||j?"100%":"calc(100% - "+b/2+"px)",transform:""+C+(l??""),...p}}),b>0&&kt.createElement("path",{clipPath:"url(#"+d+")",fill:"none",stroke:c,strokeWidth:b+(a?0:1),d:A}),kt.createElement("path",{stroke:b&&!a?h.fill:"none",d:A}),kt.createElement("clipPath",{id:d},kt.createElement("rect",{x:-m,y:m*(j?-1:1),width:i+b,height:i})))});function cb(){const x=new Map;return{emit(k,e){var t;(t=x.get(k))==null||t.forEach(f=>f(e))},on(k,e){x.set(k,[...x.get(k)||[],e])},off(k,e){var t;x.set(k,((t=x.get(k))==null?void 0:t.filter(f=>f!==e))||[])}}}const fb=kt.createContext(null),db=kt.createContext(null),hb=()=>{var x;return((x=kt.useContext(fb))==null?void 0:x.id)||null},pb=()=>kt.useContext(db);function mb(x){const{open:k=!1,onOpenChange:e,elements:t}=x,f=Rf(),u=kt.useRef({}),[i]=kt.useState(()=>cb()),o=hb()!=null;if(process.env.NODE_ENV!=="production"){const l=t.reference;l&&!zr(l)&&lb("Cannot pass a virtual element to the `elements.reference` option,","as it must be a real DOM element. Use `refs.setPositionReference()`","instead.")}const[n,r]=kt.useState(t.reference),s=ib((l,p,h)=>{u.current.openEvent=l?p:void 0,i.emit("openchange",{open:l,event:p,reason:h,nested:o}),e==null||e(l,p,h)}),c=kt.useMemo(()=>({setPositionReference:r}),[]),a=kt.useMemo(()=>({reference:n||t.reference||null,floating:t.floating||null,domReference:t.reference}),[n,t.reference,t.floating]);return kt.useMemo(()=>({dataRef:u,open:k,onOpenChange:s,elements:a,events:i,floatingId:f,refs:c}),[k,s,a,i,f,c])}function gb(x){x===void 0&&(x={});const{nodeId:k}=x,e=mb({...x,elements:{reference:null,floating:null,...x.elements}}),t=x.rootContext||e,f=t.elements,[u,i]=kt.useState(null),[o,n]=kt.useState(null),s=(f==null?void 0:f.reference)||u,c=kt.useRef(null),a=pb();Rl(()=>{s&&(c.current=s)},[s]);const l=Al({...x,elements:{...f,...o&&{reference:o}}}),p=kt.useCallback(_=>{const T=zr(_)?{getBoundingClientRect:()=>_.getBoundingClientRect(),contextElement:_}:_;n(T),l.refs.setReference(T)},[l.refs]),h=kt.useCallback(_=>{(zr(_)||_===null)&&(c.current=_,i(_)),(zr(l.refs.reference.current)||l.refs.reference.current===null||_!==null&&!zr(_))&&l.refs.setReference(_)},[l.refs]),d=kt.useMemo(()=>({...l.refs,setReference:h,setPositionReference:p,domReference:c}),[l.refs,h,p]),b=kt.useMemo(()=>({...l.elements,domReference:s}),[l.elements,s]),m=kt.useMemo(()=>({...l,...t,refs:d,elements:b,nodeId:k}),[l,d,b,k,t]);return Rl(()=>{t.dataRef.current.floatingContext=m;const _=a==null?void 0:a.nodesRef.current.find(T=>T.id===k);_&&(_.context=m)}),kt.useMemo(()=>({...l,context:m,refs:d,elements:b}),[l,d,b,m])}/*!
57
57
  react-datepicker v6.9.0
58
58
  https://github.com/Hacker0x01/react-datepicker
59
59
  Released under the MIT License.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mig-schema-table",
3
- "version": "4.3.7",
3
+ "version": "4.3.8",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"