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) 24 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.24.1 * @homepage https://bootstrap-table.com * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/) * @license MIT */ !function(t,r){"object"==typeof exports&&"undefined"!=typeof module?r(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],r):r((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";function r(t,r,n){return r=o(r),function(t,r){if(r&&("object"==typeof r||"function"==typeof r))return r;if(void 0!==r)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,u()?Reflect.construct(r,n||[],o(t).constructor):r.apply(t,n))}function n(t,r,n){return function(t,r){for(var n=0;n<r.length;n++){var e=r[n];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,l(e.key),e)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function e(t,r,n){return(r=l(r))in t?Object.defineProperty(t,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[r]=n,t}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,r,n){var e=function(t,r){for(;!{}.hasOwnProperty.call(t,r)&&null!==(t=o(t)););return t}(t,r);if(e){var i=Object.getOwnPropertyDescriptor(e,r);return i.get?i.get.call(arguments.length<3?t:n):i.value}},i.apply(null,arguments)}function o(t){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},o(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function c(t,r){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(t);r&&(e=e.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),n.push.apply(n,e)}return n}function f(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?c(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))}))}return t}function a(t,r){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},a(t,r)}function s(t,r,n,e){var u=i(o(1&e?t.prototype:t),r,n);return 2&e&&"function"==typeof u?function(t){return u.apply(n,t)}:u}function l(t){var r=function(t,r){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,r);if("object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof r?r:r+""}var p,v,h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y={};function b(){if(v)return p;v=1;var t=function(t){return t&&t.Math===Math&&t};return p=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof h&&h)||t("object"==typeof p&&p)||function(){return this}()||Function("return this")()}var d,g,w,m,O,j,S,P,C={};function E(){return g?d:(g=1,d=function(t){try{return!!t()}catch(t){return!0}})}function T(){if(m)return w;m=1;var t=E();return w=!t((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))}function R(){if(j)return O;j=1;var t=E();return O=!t((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))}function k(){if(P)return S;P=1;var t=R(),r=Function.prototype.call;return S=t?r.bind(r):function(){return r.apply(r,arguments)},S}var x,W,z,A,F,D,I,_,M,L,N,H,q,B,G,$,J,U,V,K,Q,X,Y,Z,tt,rt,nt,et,it,ot,ut,ct,ft,at,st,lt,pt,vt,ht,yt,bt,dt={};function gt(){if(x)return dt;x=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!t.call({1:2},1);return dt.f=n?function(t){var n=r(this,t);return!!n&&n.enumerable}:t,dt}function wt(){return z?W:(z=1,W=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function mt(){if(F)return A;F=1;var t=R(),r=Function.prototype,n=r.call,e=t&&r.bind.bind(n,n);return A=t?e:function(t){return function(){return n.apply(t,arguments)}},A}function Ot(){if(I)return D;I=1;var t=mt(),r=t({}.toString),n=t("".slice);return D=function(t){return n(r(t),8,-1)}}function jt(){if(M)return _;M=1;var t=mt(),r=E(),n=Ot(),e=Object,i=t("".split);return _=r((function(){return!e("z").propertyIsEnumerable(0)}))?function(t){return"String"===n(t)?i(t,""):e(t)}:e}function St(){return N?L:(N=1,L=function(t){return null==t})}function Pt(){if(q)return H;q=1;var t=St(),r=TypeError;return H=function(n){if(t(n))throw new r("Can't call method on "+n);return n}}function Ct(){if(G)return B;G=1;var t=jt(),r=Pt();return B=function(n){return t(r(n))}}function Et(){if(J)return $;J=1;var t="object"==typeof document&&document.all;return $=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function Tt(){if(V)return U;V=1;var t=Et();return U=function(r){return"object"==typeof r?null!==r:t(r)}}function Rt(){if(Q)return K;Q=1;var t=b(),r=Et();return K=function(n,e){return arguments.length<2?(i=t[n],r(i)?i:void 0):t[n]&&t[n][e];var i},K}function kt(){if(nt)return rt;nt=1;var t,r,n=b(),e=function(){if(tt)return Z;tt=1;var t=b().navigator,r=t&&t.userAgent;return Z=r?String(r):""}(),i=n.process,o=n.Deno,u=i&&i.versions||o&&o.version,c=u&&u.v8;return c&&(r=(t=c.split("."))[0]>0&&t[0]<4?1:+(t[0]+t[1])),!r&&e&&(!(t=e.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=e.match(/Chrome\/(\d+)/))&&(r=+t[1]),rt=r}function xt(){if(it)return et;it=1;var t=kt(),r=E(),n=b().String;return et=!!Object.getOwnPropertySymbols&&!r((function(){var r=Symbol("symbol detection");return!n(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41}))}function Wt(){if(ut)return ot;ut=1;var t=xt();return ot=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function zt(){if(ft)return ct;ft=1;var t=Rt(),r=Et(),n=function(){if(Y)return X;Y=1;var t=mt();return X=t({}.isPrototypeOf)}(),e=Wt(),i=Object;return ct=e?function(t){return"symbol"==typeof t}:function(e){var o=t("Symbol");return r(o)&&n(o.prototype,i(e))}}function At(){if(st)return at;st=1;var t=String;return at=function(r){try{return t(r)}catch(t){return"Object"}}}function Ft(){if(pt)return lt;pt=1;var t=Et(),r=At(),n=TypeError;return lt=function(e){if(t(e))return e;throw new n(r(e)+" is not a function")}}function Dt(){if(ht)return vt;ht=1;var t=Ft(),r=St();return vt=function(n,e){var i=n[e];return r(i)?void 0:t(i)}}function It(){if(bt)return yt;bt=1;var t=k(),r=Et(),n=Tt(),e=TypeError;return yt=function(i,o){var u,c;if("string"===o&&r(u=i.toString)&&!n(c=t(u,i)))return c;if(r(u=i.valueOf)&&!n(c=t(u,i)))return c;if("string"!==o&&r(u=i.toString)&&!n(c=t(u,i)))return c;throw new e("Can't convert object to primitive value")}}var _t,Mt,Lt,Nt,Ht,qt,Bt,Gt,$t,Jt,Ut,Vt,Kt,Qt,Xt,Yt,Zt,tr,rr,nr,er,ir,or,ur,cr={exports:{}};function fr(){if(Nt)return Lt;Nt=1;var t=b(),r=Object.defineProperty;return Lt=function(n,e){try{r(t,n,{value:e,configurable:!0,writable:!0})}catch(r){t[n]=e}return e}}function ar(){if(Ht)return cr.exports;Ht=1;var t=Mt?_t:(Mt=1,_t=!1),r=b(),n=fr(),e="__core-js_shared__",i=cr.exports=r[e]||n(e,{});return(i.versions||(i.versions=[])).push({version:"3.39.0",mode:t?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.0/LICENSE",source:"https://github.com/zloirock/core-js"}),cr.exports}function sr(){if(Bt)return qt;Bt=1;var t=ar();return qt=function(r,n){return t[r]||(t[r]=n||{})}}function lr(){if($t)return Gt;$t=1;var t=Pt(),r=Object;return Gt=function(n){return r(t(n))}}function pr(){if(Ut)return Jt;Ut=1;var t=mt(),r=lr(),n=t({}.hasOwnProperty);return Jt=Object.hasOwn||function(t,e){return n(r(t),e)}}function vr(){if(Kt)return Vt;Kt=1;var t=mt(),r=0,n=Math.random(),e=t(1..toString);return Vt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+e(++r+n,36)}}function hr(){if(Xt)return Qt;Xt=1;var t=b(),r=sr(),n=pr(),e=vr(),i=xt(),o=Wt(),u=t.Symbol,c=r("wks"),f=o?u.for||u:u&&u.withoutSetter||e;return Qt=function(t){return n(c,t)||(c[t]=i&&n(u,t)?u[t]:f("Symbol."+t)),c[t]}}function yr(){if(Zt)return Yt;Zt=1;var t=k(),r=Tt(),n=zt(),e=Dt(),i=It(),o=hr(),u=TypeError,c=o("toPrimitive");return Yt=function(o,f){if(!r(o)||n(o))return o;var a,s=e(o,c);if(s){if(void 0===f&&(f="default"),a=t(s,o,f),!r(a)||n(a))return a;throw new u("Can't convert object to primitive value")}return void 0===f&&(f="number"),i(o,f)}}function br(){if(rr)return tr;rr=1;var t=yr(),r=zt();return tr=function(n){var e=t(n,"string");return r(e)?e:e+""}}function dr(){if(or)return ir;or=1;var t=T(),r=E(),n=function(){if(er)return nr;er=1;var t=b(),r=Tt(),n=t.document,e=r(n)&&r(n.createElement);return nr=function(t){return e?n.createElement(t):{}}}();return ir=!t&&!r((function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a}))}function gr(){if(ur)return C;ur=1;var t=T(),r=k(),n=gt(),e=wt(),i=Ct(),o=br(),u=pr(),c=dr(),f=Object.getOwnPropertyDescriptor;return C.f=t?f:function(t,a){if(t=i(t),a=o(a),c)try{return f(t,a)}catch(t){}if(u(t,a))return e(!r(n.f,t,a),t[a])},C}var wr,mr,Or,jr,Sr,Pr,Cr,Er={};function Tr(){if(jr)return Or;jr=1;var t=Tt(),r=String,n=TypeError;return Or=function(e){if(t(e))return e;throw new n(r(e)+" is not an object")}}function Rr(){if(Sr)return Er;Sr=1;var t=T(),r=dr(),n=function(){if(mr)return wr;mr=1;var t=T(),r=E();return wr=t&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))}(),e=Tr(),i=br(),o=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",a="configurable",s="writable";return Er.f=t?n?function(t,r,n){if(e(t),r=i(r),e(n),"function"==typeof t&&"prototype"===r&&"value"in n&&s in n&&!n[s]){var o=c(t,r);o&&o[s]&&(t[r]=n.value,n={configurable:a in n?n[a]:o[a],enumerable:f in n?n[f]:o[f],writable:!1})}return u(t,r,n)}:u:function(t,n,c){if(e(t),n=i(n),e(c),r)try{return u(t,n,c)}catch(t){}if("get"in c||"set"in c)throw new o("Accessors not supported");return"value"in c&&(t[n]=c.value),t},Er}function kr(){if(Cr)return Pr;Cr=1;var t=T(),r=Rr(),n=wt();return Pr=t?function(t,e,i){return r.f(t,e,n(1,i))}:function(t,r,n){return t[r]=n,t}}var xr,Wr,zr,Ar,Fr,Dr,Ir,_r,Mr,Lr,Nr,Hr,qr,Br,Gr,$r={exports:{}};function Jr(){if(Ar)return zr;Ar=1;var t=mt(),r=Et(),n=ar(),e=t(Function.toString);return r(n.inspectSource)||(n.inspectSource=function(t){return e(t)}),zr=n.inspectSource}function Ur(){if(_r)return Ir;_r=1;var t=sr(),r=vr(),n=t("keys");return Ir=function(t){return n[t]||(n[t]=r(t))}}function Vr(){return Lr?Mr:(Lr=1,Mr={})}function Kr(){if(Hr)return Nr;Hr=1;var t,r,n,e=function(){if(Dr)return Fr;Dr=1;var t=b(),r=Et(),n=t.WeakMap;return Fr=r(n)&&/native code/.test(String(n))}(),i=b(),o=Tt(),u=kr(),c=pr(),f=ar(),a=Ur(),s=Vr(),l="Object already initialized",p=i.TypeError,v=i.WeakMap;if(e||f.state){var h=f.state||(f.state=new v);h.get=h.get,h.has=h.has,h.set=h.set,t=function(t,r){if(h.has(t))throw new p(l);return r.facade=t,h.set(t,r),r},r=function(t){return h.get(t)||{}},n=function(t){return h.has(t)}}else{var y=a("state");s[y]=!0,t=function(t,r){if(c(t,y))throw new p(l);return r.facade=t,u(t,y,r),r},r=function(t){return c(t,y)?t[y]:{}},n=function(t){return c(t,y)}}return Nr={set:t,get:r,has:n,enforce:function(e){return n(e)?r(e):t(e,{})},getterFor:function(t){return function(n){var e;if(!o(n)||(e=r(n)).type!==t)throw new p("Incompatible receiver, "+t+" required");return e}}}}function Qr(){if(qr)return $r.exports;qr=1;var t=mt(),r=E(),n=Et(),e=pr(),i=T(),o=function(){if(Wr)return xr;Wr=1;var t=T(),r=pr(),n=Function.prototype,e=t&&Object.getOwnPropertyDescriptor,i=r(n,"name"),o=i&&"something"===function(){}.name,u=i&&(!t||t&&e(n,"name").configurable);return xr={EXISTS:i,PROPER:o,CONFIGURABLE:u}}().CONFIGURABLE,u=Jr(),c=Kr(),f=c.enforce,a=c.get,s=String,l=Object.defineProperty,p=t("".slice),v=t("".replace),h=t([].join),y=i&&!r((function(){return 8!==l((function(){}),"length",{value:8}).length})),b=String(String).split("String"),d=$r.exports=function(t,r,n){"Symbol("===p(s(r),0,7)&&(r="["+v(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(r="get "+r),n&&n.setter&&(r="set "+r),(!e(t,"name")||o&&t.name!==r)&&(i?l(t,"name",{value:r,configurable:!0}):t.name=r),y&&n&&e(n,"arity")&&t.length!==n.arity&&l(t,"length",{value:n.arity});try{n&&e(n,"constructor")&&n.constructor?i&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=f(t);return e(u,"source")||(u.source=h(b,"string"==typeof r?r:"")),t};return Function.prototype.toString=d((function(){return n(this)&&a(this).source||u(this)}),"toString"),$r.exports}function Xr(){if(Gr)return Br;Gr=1;var t=Et(),r=Rr(),n=Qr(),e=fr();return Br=function(i,o,u,c){c||(c={});var f=c.enumerable,a=void 0!==c.name?c.name:o;if(t(u)&&n(u,a,c),c.global)f?i[o]=u:e(o,u);else{try{c.unsafe?i[o]&&(f=!0):delete i[o]}catch(t){}f?i[o]=u:r.f(i,o,{value:u,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return i}}var Yr,Zr,tn,rn,nn,en,on,un,cn,fn,an,sn,ln,pn,vn,hn,yn,bn={};function dn(){if(rn)return tn;rn=1;var t=function(){if(Zr)return Yr;Zr=1;var t=Math.ceil,r=Math.floor;return Yr=Math.trunc||function(n){var e=+n;return(e>0?r:t)(e)}}();return tn=function(r){var n=+r;return n!=n||0===n?0:t(n)}}function gn(){if(en)return nn;en=1;var t=dn(),r=Math.max,n=Math.min;return nn=function(e,i){var o=t(e);return o<0?r(o+i,0):n(o,i)}}function wn(){if(un)return on;un=1;var t=dn(),r=Math.min;return on=function(n){var e=t(n);return e>0?r(e,9007199254740991):0}}function mn(){if(fn)return cn;fn=1;var t=wn();return cn=function(r){return t(r.length)}}function On(){if(pn)return ln;pn=1;var t=mt(),r=pr(),n=Ct(),e=function(){if(sn)return an;sn=1;var t=Ct(),r=gn(),n=mn(),e=function(e){return function(i,o,u){var c=t(i),f=n(c);if(0===f)return!e&&-1;var a,s=r(u,f);if(e&&o!=o){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((e||s in c)&&c[s]===o)return e||s||0;return!e&&-1}};return an={includes:e(!0),indexOf:e(!1)}}().indexOf,i=Vr(),o=t([].push);return ln=function(t,u){var c,f=n(t),a=0,s=[];for(c in f)!r(i,c)&&r(f,c)&&o(s,c);for(;u.length>a;)r(f,c=u[a++])&&(~e(s,c)||o(s,c));return s}}function jn(){return hn?vn:(hn=1,vn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var Sn,Pn,Cn,En,Tn,Rn,kn,xn,Wn,zn,An,Fn,Dn,In,_n,Mn,Ln,Nn,Hn,qn,Bn,Gn,$n,Jn,Un={};function Vn(){return Sn||(Sn=1,Un.f=Object.getOwnPropertySymbols),Un}function Kn(){if(Cn)return Pn;Cn=1;var t=Rt(),r=mt(),n=function(){if(yn)return bn;yn=1;var t=On(),r=jn().concat("length","prototype");return bn.f=Object.getOwnPropertyNames||function(n){return t(n,r)},bn}(),e=Vn(),i=Tr(),o=r([].concat);return Pn=t("Reflect","ownKeys")||function(t){var r=n.f(i(t)),u=e.f;return u?o(r,u(t)):r}}function Qn(){if(Tn)return En;Tn=1;var t=pr(),r=Kn(),n=gr(),e=Rr();return En=function(i,o,u){for(var c=r(o),f=e.f,a=n.f,s=0;s<c.length;s++){var l=c[s];t(i,l)||u&&t(u,l)||f(i,l,a(o,l))}}}function Xn(){if(Wn)return xn;Wn=1;var t=b(),r=gr().f,n=kr(),e=Xr(),i=fr(),o=Qn(),u=function(){if(kn)return Rn;kn=1;var t=E(),r=Et(),n=/#|\.prototype\./,e=function(n,e){var f=o[i(n)];return f===c||f!==u&&(r(e)?t(e):!!e)},i=e.normalize=function(t){return String(t).replace(n,".").toLowerCase()},o=e.data={},u=e.NATIVE="N",c=e.POLYFILL="P";return Rn=e}();return xn=function(c,f){var a,s,l,p,v,h=c.target,y=c.global,b=c.stat;if(a=y?t:b?t[h]||i(h,{}):t[h]&&t[h].prototype)for(s in f){if(p=f[s],l=c.dontCallGetSet?(v=r(a,s))&&v.value:a[s],!u(y?s:h+(b?".":"#")+s,c.forced)&&void 0!==l){if(typeof p==typeof l)continue;o(p,l)}(c.sham||l&&l.sham)&&n(p,"sham",!0),e(a,s,p,c)}}}function Yn(){if(An)return zn;An=1;var t=Ot();return zn=Array.isArray||function(r){return"Array"===t(r)}}function Zn(){if(_n)return In;_n=1;var t=function(){if(Dn)return Fn;Dn=1;var t={};return t[hr()("toStringTag")]="z",Fn="[object z]"===String(t)}(),r=Et(),n=Ot(),e=hr()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return In=t?n:function(t){var u,c,f;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(c=function(t,r){try{return t[r]}catch(t){}}(u=i(t),e))?c:o?n(u):"Object"===(f=n(u))&&r(u.callee)?"Arguments":f}}function te(){if(Ln)return Mn;Ln=1;var t=mt(),r=E(),n=Et(),e=Zn(),i=Rt(),o=Jr(),u=function(){},c=i("Reflect","construct"),f=/^\s*(?:class|function)\b/,a=t(f.exec),s=!f.test(u),l=function(t){if(!n(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},p=function(t){if(!n(t))return!1;switch(e(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!a(f,o(t))}catch(t){return!0}};return p.sham=!0,Mn=!c||r((function(){var t;return l(l.call)||!l(Object)||!l((function(){t=!0}))||t}))?p:l}function re(){if(Hn)return Nn;Hn=1;var t=T(),r=Rr(),n=wt();return Nn=function(e,i,o){t?r.f(e,i,n(0,o)):e[i]=o}}function ne(){if(Bn)return qn;Bn=1;var t=E(),r=hr(),n=kt(),e=r("species");return qn=function(r){return n>=51||!t((function(){var t=[];return(t.constructor={})[e]=function(){return{foo:1}},1!==t[r](Boolean).foo}))}}!function(){if(Jn)return y;Jn=1;var t=Xn(),r=Yn(),n=te(),e=Tt(),i=gn(),o=mn(),u=Ct(),c=re(),f=hr(),a=ne(),s=function(){if($n)return Gn;$n=1;var t=mt();return Gn=t([].slice)}(),l=a("slice"),p=f("species"),v=Array,h=Math.max;t({target:"Array",proto:!0,forced:!l},{slice:function(t,f){var a,l,y,b=u(this),d=o(b),g=i(t,d),w=i(void 0===f?d:f,d);if(r(b)&&(a=b.constructor,(n(a)&&(a===v||r(a.prototype))||e(a)&&null===(a=a[p]))&&(a=void 0),a===v||void 0===a))return s(b,g,w);for(l=new(void 0===a?v:a)(h(w-g,0)),y=0;g<w;g++,y++)g in b&&c(l,y,b[g]);return l.length=y,l}})}();var ee,ie,oe,ue,ce,fe={};function ae(){if(ie)return ee;ie=1;var t=On(),r=jn();return ee=Object.keys||function(n){return t(n,r)}}!function(){if(ce)return fe;ce=1;var t=Xn(),r=function(){if(ue)return oe;ue=1;var t=T(),r=mt(),n=k(),e=E(),i=ae(),o=Vn(),u=gt(),c=lr(),f=jt(),a=Object.assign,s=Object.defineProperty,l=r([].concat);return oe=!a||e((function(){if(t&&1!==a({b:1},a(s({},"a",{enumerable:!0,get:function(){s(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var r={},n={},e=Symbol("assign detection"),o="abcdefghijklmnopqrst";return r[e]=7,o.split("").forEach((function(t){n[t]=t})),7!==a({},r)[e]||i(a({},n)).join("")!==o}))?function(r,e){for(var a=c(r),s=arguments.length,p=1,v=o.f,h=u.f;s>p;)for(var y,b=f(arguments[p++]),d=v?l(i(b),v(b)):i(b),g=d.length,w=0;g>w;)y=d[w++],t&&!n(h,b,y)||(a[y]=b[y]);return a}:a,oe}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})}();var se,le,pe,ve,he,ye,be,de,ge,we={};function me(){if(le)return se;le=1;var t=Zn(),r=String;return se=function(n){if("Symbol"===t(n))throw new TypeError("Cannot convert a Symbol value to a string");return r(n)}}function Oe(){return ve?pe:(ve=1,pe="\t\n\v\f\r                 \u2028\u2029\ufeff")}function je(){if(de)return be;de=1;var t=b(),r=E(),n=mt(),e=me(),i=function(){if(ye)return he;ye=1;var t=mt(),r=Pt(),n=me(),e=Oe(),i=t("".replace),o=RegExp("^["+e+"]+"),u=RegExp("(^|[^"+e+"])["+e+"]+$"),c=function(t){return function(e){var c=n(r(e));return 1&t&&(c=i(c,o,"")),2&t&&(c=i(c,u,"$1")),c}};return he={start:c(1),end:c(2),trim:c(3)}}().trim,o=Oe(),u=t.parseInt,c=t.Symbol,f=c&&c.iterator,a=/^[+-]?0x/i,s=n(a.exec),l=8!==u(o+"08")||22!==u(o+"0x16")||f&&!r((function(){u(Object(f))}));return be=l?function(t,r){var n=i(e(t));return u(n,r>>>0||(s(a,n)?16:10))}:u}!function(){if(ge)return we;ge=1;var t=Xn(),r=je();t({global:!0,forced:parseInt!==r},{parseInt:r})}();var Se=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(e){function i(){return function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,i),r(this,i,arguments)}return function(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),r&&a(t,r)}(i,e),n(i,[{key:"init",value:function(){this.options.usePipeline&&this.initPipeline();for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];s(i,"init",this,3)(r)}},{key:"initPipeline",value:function(){this.cacheRequestJSON={},this.cacheWindows=[],this.currWindow=0,this.resetCache=!0}},{key:"onSearch",value:function(){this.options.usePipeline&&(this.resetCache=!0);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];s(i,"onSearch",this,3)(r)}},{key:"onSort",value:function(){this.options.usePipeline&&(this.resetCache=!0);for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];s(i,"onSort",this,3)(r)}},{key:"onPageListChange",value:function(r){var n=t(r.currentTarget),e=parseInt(n.text(),10);this.options.pipelineSize=this.calculatePipelineSize(this.options.pipelineSize,e),this.resetCache=!0,s(i,"onPageListChange",this,3)([r])}},{key:"calculatePipelineSize",value:function(t,r){return 0===r?0:Math.ceil(t/r)*r}},{key:"setCacheWindows",value:function(){this.cacheWindows=[];for(var t=0;t<=this.options.totalRows/this.options.pipelineSize;t++){var r=t*this.options.pipelineSize;this.cacheWindows[t]={lower:r,upper:r+this.options.pipelineSize-1}}}},{key:"setCurrWindow",value:function(t){this.currWindow=0;for(var r=0;r<this.cacheWindows.length;r++)if(this.cacheWindows[r].lower<=t&&t<=this.cacheWindows[r].upper){this.currWindow=r;break}}},{key:"drawFromCache",value:function(t,r){var n=Se.extend(!0,{},this.cacheRequestJSON),e=t-this.cacheWindows[this.currWindow].lower,i=e+r;return n.rows=n.rows.slice(e,i),n}},{key:"initServer",value:function(t,r){var n=this;if(!this.options.usePipeline)return s(i,"initServer",this,3)([t,r]);var e=!0,o={};if("limit"===this.options.queryParamsType&&this.options.pagination&&"server"===this.options.sidePagination)if(o.offset=this.options.pageSize===this.options.formatAllRows()?0:this.options.pageSize*(this.options.pageNumber-1),o.limit=this.options.pageSize,this.cacheWindows.length){var u=this.cacheWindows[this.currWindow];this.resetCache||o.offset<u.lower||o.offset>u.upper?(e=!0,this.setCurrWindow(o.offset),o.drawOffset=o.offset,o.offset=this.cacheWindows[this.currWindow].lower):e=!1}else e=!0,o.drawOffset=o.offset;if(this.resetCache&&(e=!0,this.resetCache=!1),e&&(o.drawLimit=o.limit,o.limit=this.options.pipelineSize),!e){var c=this.drawFromCache(o.offset,o.limit);return this.load(c),this.trigger("load-success",c),void this.trigger("cached-data-hit",c)}return this.pipelineResponseHandler||(this.pipelineResponseHandler=this.options.responseHandler,this.options.responseHandler=function(t,r){var e=Se.calculateObjectValue(n.options,n.pipelineResponseHandler,[t,r],t);return n.cacheRequestJSON=Se.extend(!0,{},e),n.options.totalRows=e[n.options.totalField],n.setCacheWindows(),e=n.drawFromCache(o.drawOffset,o.drawLimit),n.trigger("cached-data-reset",e),e}),s(i,"initServer",this,3)([t,f(f({},r),o)])}},{key:"destroy",value:function(){this.options.responseHandler=this.pipelineResponseHandler,this.pipelineResponseHandler=null;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];s(i,"destroy",this,3)(r)}}])}(t.BootstrapTable)}));