UNPKG

bootstrap-table

Version:

An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation)

11 lines (9 loc) 20.9 kB
/** * bootstrap-table - An extended table to integration with some of the most widely used CSS frameworks. (Supports Bootstrap, Semantic UI, Bulma, Material Design, Foundation) * * @version v1.22.2 * @homepage https://bootstrap-table.com * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/) * @license MIT */ !function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function n(t){var n=function(t,n){if("object"!=typeof t||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var e=r.call(t,n||"default");if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==typeof n?n:String(n)}function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}function e(t,r){for(var e=0;e<r.length;e++){var o=r[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,n(o.key),o)}}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function i(t,n){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},i(t,n)}function u(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function a(t){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,e=o(t);if(n){var i=o(this).constructor;r=Reflect.construct(e,arguments,i)}else r=e.apply(this,arguments);return u(this,r)}}function c(t,n){for(;!Object.prototype.hasOwnProperty.call(t,n)&&null!==(t=o(t)););return t}function f(){return f="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,n,r){var e=c(t,n);if(e){var o=Object.getOwnPropertyDescriptor(e,n);return o.get?o.get.call(arguments.length<3?t:r):o.value}},f.apply(this,arguments)}function s(t){return function(t){if(Array.isArray(t))return l(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(!t)return;if("string"==typeof t)return l(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return l(t,n)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,e=new Array(n);r<n;r++)e[r]=t[r];return e}var p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y=function(t){return t&&t.Math===Math&&t},d=y("object"==typeof globalThis&&globalThis)||y("object"==typeof window&&window)||y("object"==typeof self&&self)||y("object"==typeof p&&p)||y("object"==typeof p&&p)||function(){return this}()||Function("return this")(),h={},b=function(t){try{return!!t()}catch(t){return!0}},g=!b((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!b((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),m=v,w=Function.prototype.call,O=m?w.bind(w):function(){return w.apply(w,arguments)},S={},j={}.propertyIsEnumerable,D=Object.getOwnPropertyDescriptor,P=D&&!j.call({1:2},1);S.f=P?function(t){var n=D(this,t);return!!n&&n.enumerable}:j;var T,x,A=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},R=v,E=Function.prototype,I=E.call,k=R&&E.bind.bind(I,I),C=R?k:function(t){return function(){return I.apply(t,arguments)}},M=C,_=M({}.toString),F=M("".slice),B=function(t){return F(_(t),8,-1)},L=b,z=B,N=Object,H=C("".split),$=L((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"===z(t)?H(t,""):N(t)}:N,q=function(t){return null==t},G=q,U=TypeError,W=function(t){if(G(t))throw new U("Can't call method on "+t);return t},K=$,Q=W,V=function(t){return K(Q(t))},X="object"==typeof document&&document.all,Y={all:X,IS_HTMLDDA:void 0===X&&void 0!==X},J=Y.all,Z=Y.IS_HTMLDDA?function(t){return"function"==typeof t||t===J}:function(t){return"function"==typeof t},tt=Z,nt=Y.all,rt=Y.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:tt(t)||t===nt}:function(t){return"object"==typeof t?null!==t:tt(t)},et=d,ot=Z,it=function(t){return ot(t)?t:void 0},ut=function(t,n){return arguments.length<2?it(et[t]):et[t]&&et[t][n]},at=C({}.isPrototypeOf),ct=d,ft="undefined"!=typeof navigator&&String(navigator.userAgent)||"",st=ct.process,lt=ct.Deno,pt=st&&st.versions||lt&&lt.version,yt=pt&&pt.v8;yt&&(x=(T=yt.split("."))[0]>0&&T[0]<4?1:+(T[0]+T[1])),!x&&ft&&(!(T=ft.match(/Edge\/(\d+)/))||T[1]>=74)&&(T=ft.match(/Chrome\/(\d+)/))&&(x=+T[1]);var dt=x,ht=dt,bt=b,gt=d.String,vt=!!Object.getOwnPropertySymbols&&!bt((function(){var t=Symbol("symbol detection");return!gt(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ht&&ht<41})),mt=vt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,wt=ut,Ot=Z,St=at,jt=Object,Dt=mt?function(t){return"symbol"==typeof t}:function(t){var n=wt("Symbol");return Ot(n)&&St(n.prototype,jt(t))},Pt=String,Tt=function(t){try{return Pt(t)}catch(t){return"Object"}},xt=Z,At=Tt,Rt=TypeError,Et=function(t){if(xt(t))return t;throw new Rt(At(t)+" is not a function")},It=q,kt=O,Ct=Z,Mt=rt,_t=TypeError,Ft={exports:{}},Bt=d,Lt=Object.defineProperty,zt=function(t,n){try{Lt(Bt,t,{value:n,configurable:!0,writable:!0})}catch(r){Bt[t]=n}return n},Nt=zt,Ht="__core-js_shared__",$t=d[Ht]||Nt(Ht,{}),qt=$t;(Ft.exports=function(t,n){return qt[t]||(qt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt=Ft.exports,Ut=W,Wt=Object,Kt=function(t){return Wt(Ut(t))},Qt=Kt,Vt=C({}.hasOwnProperty),Xt=Object.hasOwn||function(t,n){return Vt(Qt(t),n)},Yt=C,Jt=0,Zt=Math.random(),tn=Yt(1..toString),nn=function(t){return"Symbol("+(void 0===t?"":t)+")_"+tn(++Jt+Zt,36)},rn=Gt,en=Xt,on=nn,un=vt,an=mt,cn=d.Symbol,fn=rn("wks"),sn=an?cn.for||cn:cn&&cn.withoutSetter||on,ln=function(t){return en(fn,t)||(fn[t]=un&&en(cn,t)?cn[t]:sn("Symbol."+t)),fn[t]},pn=O,yn=rt,dn=Dt,hn=function(t,n){var r=t[n];return It(r)?void 0:Et(r)},bn=function(t,n){var r,e;if("string"===n&&Ct(r=t.toString)&&!Mt(e=kt(r,t)))return e;if(Ct(r=t.valueOf)&&!Mt(e=kt(r,t)))return e;if("string"!==n&&Ct(r=t.toString)&&!Mt(e=kt(r,t)))return e;throw new _t("Can't convert object to primitive value")},gn=TypeError,vn=ln("toPrimitive"),mn=function(t,n){if(!yn(t)||dn(t))return t;var r,e=hn(t,vn);if(e){if(void 0===n&&(n="default"),r=pn(e,t,n),!yn(r)||dn(r))return r;throw new gn("Can't convert object to primitive value")}return void 0===n&&(n="number"),bn(t,n)},wn=Dt,On=function(t){var n=mn(t,"string");return wn(n)?n:n+""},Sn=rt,jn=d.document,Dn=Sn(jn)&&Sn(jn.createElement),Pn=function(t){return Dn?jn.createElement(t):{}},Tn=!g&&!b((function(){return 7!==Object.defineProperty(Pn("div"),"a",{get:function(){return 7}}).a})),xn=g,An=O,Rn=S,En=A,In=V,kn=On,Cn=Xt,Mn=Tn,_n=Object.getOwnPropertyDescriptor;h.f=xn?_n:function(t,n){if(t=In(t),n=kn(n),Mn)try{return _n(t,n)}catch(t){}if(Cn(t,n))return En(!An(Rn.f,t,n),t[n])};var Fn={},Bn=g&&b((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Ln=rt,zn=String,Nn=TypeError,Hn=function(t){if(Ln(t))return t;throw new Nn(zn(t)+" is not an object")},$n=g,qn=Tn,Gn=Bn,Un=Hn,Wn=On,Kn=TypeError,Qn=Object.defineProperty,Vn=Object.getOwnPropertyDescriptor,Xn="enumerable",Yn="configurable",Jn="writable";Fn.f=$n?Gn?function(t,n,r){if(Un(t),n=Wn(n),Un(r),"function"==typeof t&&"prototype"===n&&"value"in r&&Jn in r&&!r.writable){var e=Vn(t,n);e&&e.writable&&(t[n]=r.value,r={configurable:Yn in r?r.configurable:e.configurable,enumerable:Xn in r?r.enumerable:e.enumerable,writable:!1})}return Qn(t,n,r)}:Qn:function(t,n,r){if(Un(t),n=Wn(n),Un(r),qn)try{return Qn(t,n,r)}catch(t){}if("get"in r||"set"in r)throw new Kn("Accessors not supported");return"value"in r&&(t[n]=r.value),t};var Zn=Fn,tr=A,nr=g?function(t,n,r){return Zn.f(t,n,tr(1,r))}:function(t,n,r){return t[n]=r,t},rr={exports:{}},er=g,or=Xt,ir=Function.prototype,ur=er&&Object.getOwnPropertyDescriptor,ar=or(ir,"name"),cr={EXISTS:ar,PROPER:ar&&"something"===function(){}.name,CONFIGURABLE:ar&&(!er||er&&ur(ir,"name").configurable)},fr=Z,sr=$t,lr=C(Function.toString);fr(sr.inspectSource)||(sr.inspectSource=function(t){return lr(t)});var pr,yr,dr,hr=sr.inspectSource,br=Z,gr=d.WeakMap,vr=br(gr)&&/native code/.test(String(gr)),mr=nn,wr=Gt("keys"),Or={},Sr=vr,jr=d,Dr=rt,Pr=nr,Tr=Xt,xr=$t,Ar=function(t){return wr[t]||(wr[t]=mr(t))},Rr=Or,Er="Object already initialized",Ir=jr.TypeError,kr=jr.WeakMap;if(Sr||xr.state){var Cr=xr.state||(xr.state=new kr);Cr.get=Cr.get,Cr.has=Cr.has,Cr.set=Cr.set,pr=function(t,n){if(Cr.has(t))throw new Ir(Er);return n.facade=t,Cr.set(t,n),n},yr=function(t){return Cr.get(t)||{}},dr=function(t){return Cr.has(t)}}else{var Mr=Ar("state");Rr[Mr]=!0,pr=function(t,n){if(Tr(t,Mr))throw new Ir(Er);return n.facade=t,Pr(t,Mr,n),n},yr=function(t){return Tr(t,Mr)?t[Mr]:{}},dr=function(t){return Tr(t,Mr)}}var _r={set:pr,get:yr,has:dr,enforce:function(t){return dr(t)?yr(t):pr(t,{})},getterFor:function(t){return function(n){var r;if(!Dr(n)||(r=yr(n)).type!==t)throw new Ir("Incompatible receiver, "+t+" required");return r}}},Fr=C,Br=b,Lr=Z,zr=Xt,Nr=g,Hr=cr.CONFIGURABLE,$r=hr,qr=_r.enforce,Gr=_r.get,Ur=String,Wr=Object.defineProperty,Kr=Fr("".slice),Qr=Fr("".replace),Vr=Fr([].join),Xr=Nr&&!Br((function(){return 8!==Wr((function(){}),"length",{value:8}).length})),Yr=String(String).split("String"),Jr=rr.exports=function(t,n,r){"Symbol("===Kr(Ur(n),0,7)&&(n="["+Qr(Ur(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!zr(t,"name")||Hr&&t.name!==n)&&(Nr?Wr(t,"name",{value:n,configurable:!0}):t.name=n),Xr&&r&&zr(r,"arity")&&t.length!==r.arity&&Wr(t,"length",{value:r.arity});try{r&&zr(r,"constructor")&&r.constructor?Nr&&Wr(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=qr(t);return zr(e,"source")||(e.source=Vr(Yr,"string"==typeof n?n:"")),t};Function.prototype.toString=Jr((function(){return Lr(this)&&Gr(this).source||$r(this)}),"toString");var Zr=rr.exports,te=Z,ne=Fn,re=Zr,ee=zt,oe={},ie=Math.ceil,ue=Math.floor,ae=Math.trunc||function(t){var n=+t;return(n>0?ue:ie)(n)},ce=function(t){var n=+t;return n!=n||0===n?0:ae(n)},fe=ce,se=Math.max,le=Math.min,pe=function(t,n){var r=fe(t);return r<0?se(r+n,0):le(r,n)},ye=ce,de=Math.min,he=function(t){return t>0?de(ye(t),9007199254740991):0},be=function(t){return he(t.length)},ge=V,ve=pe,me=be,we=function(t){return function(n,r,e){var o,i=ge(n),u=me(i),a=ve(e,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},Oe={includes:we(!0),indexOf:we(!1)},Se=Xt,je=V,De=Oe.indexOf,Pe=Or,Te=C([].push),xe=function(t,n){var r,e=je(t),o=0,i=[];for(r in e)!Se(Pe,r)&&Se(e,r)&&Te(i,r);for(;n.length>o;)Se(e,r=n[o++])&&(~De(i,r)||Te(i,r));return i},Ae=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Re=xe,Ee=Ae.concat("length","prototype");oe.f=Object.getOwnPropertyNames||function(t){return Re(t,Ee)};var Ie={};Ie.f=Object.getOwnPropertySymbols;var ke=ut,Ce=oe,Me=Ie,_e=Hn,Fe=C([].concat),Be=ke("Reflect","ownKeys")||function(t){var n=Ce.f(_e(t)),r=Me.f;return r?Fe(n,r(t)):n},Le=Xt,ze=Be,Ne=h,He=Fn,$e=b,qe=Z,Ge=/#|\.prototype\./,Ue=function(t,n){var r=Ke[We(t)];return r===Ve||r!==Qe&&(qe(n)?$e(n):!!n)},We=Ue.normalize=function(t){return String(t).replace(Ge,".").toLowerCase()},Ke=Ue.data={},Qe=Ue.NATIVE="N",Ve=Ue.POLYFILL="P",Xe=Ue,Ye=d,Je=h.f,Ze=nr,to=function(t,n,r,e){e||(e={});var o=e.enumerable,i=void 0!==e.name?e.name:n;if(te(r)&&re(r,i,e),e.global)o?t[n]=r:ee(n,r);else{try{e.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=r:ne.f(t,n,{value:r,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},no=zt,ro=function(t,n,r){for(var e=ze(n),o=He.f,i=Ne.f,u=0;u<e.length;u++){var a=e[u];Le(t,a)||r&&Le(r,a)||o(t,a,i(n,a))}},eo=Xe,oo=function(t,n){var r,e,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?Ye:f?Ye[a]||no(a,{}):(Ye[a]||{}).prototype)for(e in n){if(i=n[e],o=t.dontCallGetSet?(u=Je(r,e))&&u.value:r[e],!eo(c?e:a+(f?".":"#")+e,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;ro(i,o)}(t.sham||o&&o.sham)&&Ze(i,"sham",!0),to(r,e,i,t)}},io=xe,uo=Ae,ao=Object.keys||function(t){return io(t,uo)},co=g,fo=C,so=O,lo=b,po=ao,yo=Ie,ho=S,bo=Kt,go=$,vo=Object.assign,mo=Object.defineProperty,wo=fo([].concat),Oo=!vo||lo((function(){if(co&&1!==vo({b:1},vo(mo({},"a",{enumerable:!0,get:function(){mo(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol("assign detection"),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach((function(t){n[t]=t})),7!==vo({},t)[r]||po(vo({},n)).join("")!==e}))?function(t,n){for(var r=bo(t),e=arguments.length,o=1,i=yo.f,u=ho.f;e>o;)for(var a,c=go(arguments[o++]),f=i?wo(po(c),i(c)):po(c),s=f.length,l=0;s>l;)a=f[l++],co&&!so(u,c,a)||(r[a]=c[a]);return r}:vo,So=Oo;oo({target:"Object",stat:!0,arity:2,forced:Object.assign!==So},{assign:So});var jo=B,Do=Array.isArray||function(t){return"Array"===jo(t)},Po=TypeError,To=function(t){if(t>9007199254740991)throw Po("Maximum allowed index exceeded");return t},xo=On,Ao=Fn,Ro=A,Eo=function(t,n,r){var e=xo(n);e in t?Ao.f(t,e,Ro(0,r)):t[e]=r},Io={};Io[ln("toStringTag")]="z";var ko="[object z]"===String(Io),Co=Z,Mo=B,_o=ln("toStringTag"),Fo=Object,Bo="Arguments"===Mo(function(){return arguments}()),Lo=C,zo=b,No=Z,Ho=ko?Mo:function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=Fo(t),_o))?r:Bo?Mo(n):"Object"===(e=Mo(n))&&Co(n.callee)?"Arguments":e},$o=hr,qo=function(){},Go=[],Uo=ut("Reflect","construct"),Wo=/^\s*(?:class|function)\b/,Ko=Lo(Wo.exec),Qo=!Wo.test(qo),Vo=function(t){if(!No(t))return!1;try{return Uo(qo,Go,t),!0}catch(t){return!1}},Xo=function(t){if(!No(t))return!1;switch(Ho(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Qo||!!Ko(Wo,$o(t))}catch(t){return!0}};Xo.sham=!0;var Yo=!Uo||zo((function(){var t;return Vo(Vo.call)||!Vo(Object)||!Vo((function(){t=!0}))||t}))?Xo:Vo,Jo=Do,Zo=Yo,ti=rt,ni=ln("species"),ri=Array,ei=function(t){var n;return Jo(t)&&(n=t.constructor,(Zo(n)&&(n===ri||Jo(n.prototype))||ti(n)&&null===(n=n[ni]))&&(n=void 0)),void 0===n?ri:n},oi=function(t,n){return new(ei(t))(0===n?0:n)},ii=b,ui=dt,ai=ln("species"),ci=function(t){return ui>=51||!ii((function(){var n=[];return(n.constructor={})[ai]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},fi=oo,si=b,li=Do,pi=rt,yi=Kt,di=be,hi=To,bi=Eo,gi=oi,vi=ci,mi=dt,wi=ln("isConcatSpreadable"),Oi=mi>=51||!si((function(){var t=[];return t[wi]=!1,t.concat()[0]!==t})),Si=function(t){if(!pi(t))return!1;var n=t[wi];return void 0!==n?!!n:li(t)};fi({target:"Array",proto:!0,arity:1,forced:!Oi||!vi("concat")},{concat:function(t){var n,r,e,o,i,u=yi(this),a=gi(u,0),c=0;for(n=-1,e=arguments.length;n<e;n++)if(Si(i=-1===n?u:arguments[n]))for(o=di(i),hi(c+o),r=0;r<o;r++,c++)r in i&&bi(a,c,i[r]);else hi(c+1),bi(a,c++,i);return a.length=c,a}});var ji=B,Di=C,Pi=b,Ti=oo,xi=Oe.indexOf,Ai=function(t,n){var r=[][t];return!!r&&Pi((function(){r.call(null,n||function(){return 1},1)}))},Ri=function(t){if("Function"===ji(t))return Di(t)}([].indexOf),Ei=!!Ri&&1/Ri([1],1,-0)<0;Ti({target:"Array",proto:!0,forced:Ei||!Ai("indexOf")},{indexOf:function(t){var n=arguments.length>1?arguments[1]:void 0;return Ei?Ri(this,t,n)||0:xi(this,t,n)}});var Ii=g,ki=Do,Ci=TypeError,Mi=Object.getOwnPropertyDescriptor,_i=Ii&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}(),Fi=Tt,Bi=TypeError,Li=oo,zi=Kt,Ni=pe,Hi=ce,$i=be,qi=_i?function(t,n){if(ki(t)&&!Mi(t,"length").writable)throw new Ci("Cannot set read only .length");return t.length=n}:function(t,n){return t.length=n},Gi=To,Ui=oi,Wi=Eo,Ki=function(t,n){if(!delete t[n])throw new Bi("Cannot delete property "+Fi(n)+" of "+Fi(t))},Qi=ci("splice"),Vi=Math.max,Xi=Math.min;Li({target:"Array",proto:!0,forced:!Qi},{splice:function(t,n){var r,e,o,i,u,a,c=zi(this),f=$i(c),s=Ni(t,f),l=arguments.length;for(0===l?r=e=0:1===l?(r=0,e=f-s):(r=l-2,e=Xi(Vi(Hi(n),0),f-s)),Gi(f+r-e),o=Ui(c,e),i=0;i<e;i++)(u=s+i)in c&&Wi(o,i,c[u]);if(o.length=e,r<e){for(i=s;i<f-e;i++)a=i+r,(u=i+e)in c?c[a]=c[u]:Ki(c,a);for(i=f;i>f-e+r;i--)Ki(c,i-1)}else if(r>e)for(i=f-e;i>s;i--)a=i+r-1,(u=i+e-1)in c?c[a]=c[u]:Ki(c,a);for(i=0;i<r;i++)c[i+s]=arguments[i+2];return qi(c,f-e+r),o}});var Yi=function(t,n){return{id:"customId_".concat(n)}};Object.assign(t.fn.bootstrapTable.defaults,{reorderableRows:!1,onDragStyle:null,onDropStyle:null,onDragClass:"reorder-rows-on-drag-class",dragHandle:">tbody>tr>td:not(.bs-checkbox)",useRowAttrFunc:!1,onReorderRowsDrag:function(t){return!1},onReorderRowsDrop:function(t){return!1},onReorderRow:function(t){return!1},onDragStop:function(){},onAllowDrop:function(){return!0}}),Object.assign(t.fn.bootstrapTable.events,{"reorder-row.bs.table":"onReorderRow"}),t.BootstrapTable=function(n){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&i(t,n)}(y,n);var u,c,l,p=a(y);function y(){return r(this,y),p.apply(this,arguments)}return u=y,c=[{key:"init",value:function(){for(var t,n=this,r=arguments.length,e=new Array(r),i=0;i<r;i++)e[i]=arguments[i];if(this.options.reorderableRows){this.options.useRowAttrFunc&&(this.options.rowAttributes=Yi);var u=this.options.onPostBody;this.options.onPostBody=function(){setTimeout((function(){n.makeRowsReorderable(),u.call(n.options,n.options.data)}),1)},(t=f(o(y.prototype),"init",this)).call.apply(t,[this].concat(e))}else{var a;(a=f(o(y.prototype),"init",this)).call.apply(a,[this].concat(e))}}},{key:"makeRowsReorderable",value:function(){var t=this;this.$el.tableDnD({onDragStyle:this.options.onDragStyle,onDropStyle:this.options.onDropStyle,onDragClass:this.options.onDragClass,onAllowDrop:function(n,r){return t.onAllowDrop(n,r)},onDragStop:function(n,r){return t.onDragStop(n,r)},onDragStart:function(n,r){return t.onDropStart(n,r)},onDrop:function(n,r){return t.onDrop(n,r)},dragHandle:this.options.dragHandle})}},{key:"onDropStart",value:function(n,r){this.$draggingTd=t(r).css("cursor","move"),this.draggingIndex=t(this.$draggingTd.parent()).data("index"),this.options.onReorderRowsDrag(this.data[this.draggingIndex])}},{key:"onDragStop",value:function(n,r){var e=t(r).data("index"),o=this.data[e];this.options.onDragStop(n,o,r)}},{key:"onAllowDrop",value:function(n,r){var e=t(r).data("index"),o=t(n).data("index"),i=this.data[e],u=this.data[o];return this.options.onAllowDrop(u,i,n,r)}},{key:"onDrop",value:function(n){this.$draggingTd.css("cursor","");for(var r=this.options.pageNumber,e=this.options.pageSize,o=[],i=0;i<n.tBodies[0].rows.length;i++){var u=t(n.tBodies[0].rows[i]);o.push(this.data[u.data("index")]),u.data("index",i)}var a=this.data[this.draggingIndex],c=o.indexOf(this.data[this.draggingIndex]),f=this.data[c],l=(r-1)*e+this.options.data.indexOf(this.data[c]);this.options.data.splice(this.options.data.indexOf(a),1),this.options.data.splice(l,0,a),this.initSearch(),"server"===this.options.sidePagination&&(this.data=s(this.options.data)),this.options.onReorderRowsDrop(f),this.trigger("reorder-row",o,a,f)}},{key:"initSearch",value:function(){this.ignoreInitSort=!0,f(o(y.prototype),"initSearch",this).call(this)}},{key:"initSort",value:function(){this.ignoreInitSort?this.ignoreInitSort=!1:f(o(y.prototype),"initSort",this).call(this)}}],c&&e(u.prototype,c),l&&e(u,l),Object.defineProperty(u,"prototype",{writable:!1}),y}(t.BootstrapTable)}));