bootstrap-table-pipeline.min.js 21 KB

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