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) • 23.6 kB
JavaScript
/**
* 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.27.3
* @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,e){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,e||[],o(t).constructor):r.apply(t,e))}function e(t,r,e){return r&&function(t,r){for(var e=0;e<r.length;e++){var n=r[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function n(t,r,e){return(r=l(r))in t?Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[r]=e,t}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,r,e){var n=function(t,r){for(;!{}.hasOwnProperty.call(t,r)&&null!==(t=o(t)););return t}(t,r);if(n){var i=Object.getOwnPropertyDescriptor(n,r);return i.get?i.get.call(arguments.length<3?t:e):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 e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r&&(n=n.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),e.push.apply(e,n)}return e}function f(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?c(Object(e),!0).forEach(function(r){n(t,r,e[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):c(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,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,e,n){var u=i(o(t.prototype),r,e);return 2&n&&"function"==typeof u?function(t){return u.apply(e,t)}:u}function l(t){var r=function(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t,"string");return"symbol"==typeof r?r:r+""}var p,h,v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},y={};function b(){if(h)return p;h=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 v&&v)||t("object"==typeof p&&p)||function(){return this}()||Function("return this")()}var d,g,w,m,O,j,S,P,C={};function T(){return g?d:(g=1,d=function(t){try{return!!t()}catch(t){return!0}})}function E(){if(m)return w;m=1;var t=T();return w=!t(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function k(){if(j)return O;j=1;var t=T();return O=!t(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})}function R(){if(P)return S;P=1;var t=k(),r=Function.prototype.call;return S=t?r.bind(r):function(){return r.apply(r,arguments)},S}var W,z,A,x,D,F,_,M,L,I,N,H,q,B,G,J,U,V,$,K,Q,X,Y,Z,tt,rt,et,nt,it,ot,ut,ct,ft,at,st,lt,pt,ht,vt,yt,bt,dt={};function gt(){if(W)return dt;W=1;var t={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,e=r&&!t.call({1:2},1);return dt.f=e?function(t){var e=r(this,t);return!!e&&e.enumerable}:t,dt}function wt(){return A?z:(A=1,z=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}})}function mt(){if(D)return x;D=1;var t=k(),r=Function.prototype,e=r.call,n=t&&r.bind.bind(e,e);return x=t?n:function(t){return function(){return e.apply(t,arguments)}},x}function Ot(){if(_)return F;_=1;var t=mt(),r=t({}.toString),e=t("".slice);return F=function(t){return e(r(t),8,-1)}}function jt(){if(L)return M;L=1;var t=mt(),r=T(),e=Ot(),n=Object,i=t("".split);return M=r(function(){return!n("z").propertyIsEnumerable(0)})?function(t){return"String"===e(t)?i(t,""):n(t)}:n}function St(){return N?I:(N=1,I=function(t){return null==t})}function Pt(){if(q)return H;q=1;var t=St(),r=TypeError;return H=function(e){if(t(e))throw new r("Can't call method on "+e);return e}}function Ct(){if(G)return B;G=1;var t=jt(),r=Pt();return B=function(e){return t(r(e))}}function Tt(){if(U)return J;U=1;var t="object"==typeof document&&document.all;return J=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(t){return"function"==typeof t}}function Et(){if($)return V;$=1;var t=Tt();return V=function(r){return"object"==typeof r?null!==r:t(r)}}function kt(){if(Q)return K;Q=1;var t=b(),r=Tt();return K=function(e,n){return arguments.length<2?(i=t[e],r(i)?i:void 0):t[e]&&t[e][n];var i},K}function Rt(){if(et)return rt;et=1;var t,r,e=b(),n=function(){if(tt)return Z;tt=1;var t=b().navigator,r=t&&t.userAgent;return Z=r?String(r):""}(),i=e.process,o=e.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&&n&&(!(t=n.match(/Edge\/(\d+)/))||t[1]>=74)&&(t=n.match(/Chrome\/(\d+)/))&&(r=+t[1]),rt=r}function Wt(){if(it)return nt;it=1;var t=Rt(),r=T(),e=b().String;return nt=!!Object.getOwnPropertySymbols&&!r(function(){var r=Symbol("symbol detection");return!e(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&t&&t<41})}function zt(){if(ut)return ot;ut=1;var t=Wt();return ot=t&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function At(){if(ft)return ct;ft=1;var t=kt(),r=Tt(),e=function(){if(Y)return X;Y=1;var t=mt();return X=t({}.isPrototypeOf)}(),n=zt(),i=Object;return ct=n?function(t){return"symbol"==typeof t}:function(n){var o=t("Symbol");return r(o)&&e(o.prototype,i(n))}}function xt(){if(st)return at;st=1;var t=String;return at=function(r){try{return t(r)}catch(t){return"Object"}}}function Dt(){if(pt)return lt;pt=1;var t=Tt(),r=xt(),e=TypeError;return lt=function(n){if(t(n))return n;throw new e(r(n)+" is not a function")}}function Ft(){if(vt)return ht;vt=1;var t=Dt(),r=St();return ht=function(e,n){var i=e[n];return r(i)?void 0:t(i)}}function _t(){if(bt)return yt;bt=1;var t=R(),r=Tt(),e=Et(),n=TypeError;return yt=function(i,o){var u,c;if("string"===o&&r(u=i.toString)&&!e(c=t(u,i)))return c;if(r(u=i.valueOf)&&!e(c=t(u,i)))return c;if("string"!==o&&r(u=i.toString)&&!e(c=t(u,i)))return c;throw new n("Can't convert object to primitive value")}}var Mt,Lt,It,Nt,Ht,qt,Bt,Gt,Jt,Ut,Vt,$t,Kt,Qt,Xt,Yt,Zt,tr,rr,er,nr,ir,or,ur,cr={exports:{}};function fr(){if(Nt)return It;Nt=1;var t=b(),r=Object.defineProperty;return It=function(e,n){try{r(t,e,{value:n,configurable:!0,writable:!0})}catch(r){t[e]=n}return n}}function ar(){if(Ht)return cr.exports;Ht=1;var t=Lt?Mt:(Lt=1,Mt=!1),r=b(),e=fr(),n="__core-js_shared__",i=cr.exports=r[n]||e(n,{});return(i.versions||(i.versions=[])).push({version:"3.49.0",mode:t?"pure":"global",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.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,e){return t[r]||(t[r]=e||{})}}function lr(){if(Jt)return Gt;Jt=1;var t=Pt(),r=Object;return Gt=function(e){return r(t(e))}}function pr(){if(Vt)return Ut;Vt=1;var t=mt(),r=lr(),e=t({}.hasOwnProperty);return Ut=Object.hasOwn||function(t,n){return e(r(t),n)}}function hr(){if(Kt)return $t;Kt=1;var t=mt(),r=0,e=Math.random(),n=t(1.1.toString);return $t=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++r+e,36)}}function vr(){if(Xt)return Qt;Xt=1;var t=b(),r=sr(),e=pr(),n=hr(),i=Wt(),o=zt(),u=t.Symbol,c=r("wks"),f=o?u.for||u:u&&u.withoutSetter||n;return Qt=function(t){return e(c,t)||(c[t]=i&&e(u,t)?u[t]:f("Symbol."+t)),c[t]}}function yr(){if(Zt)return Yt;Zt=1;var t=R(),r=Et(),e=At(),n=Ft(),i=_t(),o=vr(),u=TypeError,c=o("toPrimitive");return Yt=function(o,f){if(!r(o)||e(o))return o;var a,s=n(o,c);if(s){if(void 0===f&&(f="default"),a=t(s,o,f),!r(a)||e(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=At();return tr=function(e){var n=t(e,"string");return r(n)?n:n+""}}function dr(){if(or)return ir;or=1;var t=E(),r=T(),e=function(){if(nr)return er;nr=1;var t=b(),r=Et(),e=t.document,n=r(e)&&r(e.createElement);return er=function(t){return n?e.createElement(t):{}}}();return ir=!t&&!r(function(){return 7!==Object.defineProperty(e("div"),"a",{get:function(){return 7}}).a})}function gr(){if(ur)return C;ur=1;var t=E(),r=R(),e=gt(),n=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 n(!r(e.f,t,a),t[a])},C}var wr,mr,Or,jr,Sr,Pr,Cr,Tr={};function Er(){if(jr)return Or;jr=1;var t=Et(),r=String,e=TypeError;return Or=function(n){if(t(n))return n;throw new e(r(n)+" is not an object")}}function kr(){if(Sr)return Tr;Sr=1;var t=E(),r=dr(),e=function(){if(mr)return wr;mr=1;var t=E(),r=T();return wr=t&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}(),n=Er(),i=br(),o=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f="enumerable",a="configurable",s="writable";return Tr.f=t?e?function(t,r,e){if(n(t),r=i(r),n(e),"function"==typeof t&&"prototype"===r&&"value"in e&&s in e&&!e[s]){var o=c(t,r);o&&o[s]&&(t[r]=e.value,e={configurable:a in e?e[a]:o[a],enumerable:f in e?e[f]:o[f],writable:!1})}return u(t,r,e)}:u:function(t,e,c){if(n(t),e=i(e),n(c),r)try{return u(t,e,c)}catch(t){}if("get"in c||"set"in c)throw new o("Accessors not supported");return"value"in c&&(t[e]=c.value),t},Tr}function Rr(){if(Cr)return Pr;Cr=1;var t=E(),r=kr(),e=wt();return Pr=t?function(t,n,i){return r.f(t,n,e(1,i))}:function(t,r,e){return t[r]=e,t}}var Wr,zr,Ar,xr,Dr,Fr,_r,Mr,Lr,Ir,Nr,Hr,qr,Br,Gr,Jr={exports:{}};function Ur(){if(xr)return Ar;xr=1;var t=mt(),r=Tt(),e=ar(),n=t(Function.toString);return r(e.inspectSource)||(e.inspectSource=function(t){return n(t)}),Ar=e.inspectSource}function Vr(){if(Mr)return _r;Mr=1;var t=sr(),r=hr(),e=t("keys");return _r=function(t){return e[t]||(e[t]=r(t))}}function $r(){return Ir?Lr:(Ir=1,Lr={})}function Kr(){if(Hr)return Nr;Hr=1;var t,r,e,n=function(){if(Fr)return Dr;Fr=1;var t=b(),r=Tt(),e=t.WeakMap;return Dr=r(e)&&/native code/.test(String(e))}(),i=b(),o=Et(),u=Rr(),c=pr(),f=ar(),a=Vr(),s=$r(),l="Object already initialized",p=i.TypeError,h=i.WeakMap;if(n||f.state){var v=f.state||(f.state=new h);v.get=v.get,v.has=v.has,v.set=v.set,t=function(t,r){if(v.has(t))throw new p(l);return r.facade=t,v.set(t,r),r},r=function(t){return v.get(t)||{}},e=function(t){return v.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]:{}},e=function(t){return c(t,y)}}return Nr={set:t,get:r,has:e,enforce:function(n){return e(n)?r(n):t(n,{})},getterFor:function(t){return function(e){var n;if(!o(e)||(n=r(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return n}}}}function Qr(){if(qr)return Jr.exports;qr=1;var t=mt(),r=T(),e=Tt(),n=pr(),i=E(),o=function(){if(zr)return Wr;zr=1;var t=E(),r=pr(),e=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,i=r(e,"name"),o=i&&"something"===function(){}.name,u=i&&(!t||t&&n(e,"name").configurable);return Wr={EXISTS:i,PROPER:o,CONFIGURABLE:u}}().CONFIGURABLE,u=Ur(),c=Kr(),f=c.enforce,a=c.get,s=String,l=Object.defineProperty,p=t("".slice),h=t("".replace),v=t([].join),y=i&&!r(function(){return 8!==l(function(){},"length",{value:8}).length}),b=String(String).split("String"),d=Jr.exports=function(t,r,e){"Symbol("===p(s(r),0,7)&&(r="["+h(s(r),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(r="get "+r),e&&e.setter&&(r="set "+r),(!n(t,"name")||o&&t.name!==r)&&(i?l(t,"name",{value:r,configurable:!0}):t.name=r),y&&e&&n(e,"arity")&&t.length!==e.arity&&l(t,"length",{value:e.arity});try{e&&n(e,"constructor")&&e.constructor?i&&l(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var u=f(t);return n(u,"source")||(u.source=v(b,"string"==typeof r?r:"")),t};return Function.prototype.toString=d(function(){return e(this)&&a(this).source||u(this)},"toString"),Jr.exports}function Xr(){if(Gr)return Br;Gr=1;var t=Tt(),r=kr(),e=Qr(),n=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)&&e(u,a,c),c.global)f?i[o]=u:n(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,te,re,ee,ne,ie,oe,ue,ce,fe,ae,se,le,pe,he,ve,ye={};function be(){if(re)return te;re=1;var t=function(){if(Zr)return Yr;Zr=1;var t=Math.ceil,r=Math.floor;return Yr=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}}();return te=function(r){var e=+r;return e!=e||0===e?0:t(e)}}function de(){if(ne)return ee;ne=1;var t=be(),r=Math.max,e=Math.min;return ee=function(n,i){var o=t(n);return o<0?r(o+i,0):e(o,i)}}function ge(){if(oe)return ie;oe=1;var t=be(),r=Math.min;return ie=function(e){var n=t(e);return n>0?r(n,9007199254740991):0}}function we(){if(ce)return ue;ce=1;var t=ge();return ue=function(r){return t(r.length)}}function me(){if(le)return se;le=1;var t=mt(),r=pr(),e=Ct(),n=function(){if(ae)return fe;ae=1;var t=Ct(),r=de(),e=we(),n=function(n){return function(i,o,u){var c=t(i),f=e(c);if(0===f)return!n&&-1;var a,s=r(u,f);if(n&&o!=o){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((n||s in c)&&c[s]===o)return n||s||0;return!n&&-1}};return fe={includes:n(!0),indexOf:n(!1)}}().indexOf,i=$r(),o=t([].push);return se=function(t,u){var c,f=e(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++])&&(~n(s,c)||o(s,c));return s}}function Oe(){return he?pe:(he=1,pe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}var je,Se,Pe,Ce,Te,Ee,ke,Re,We,ze,Ae,xe,De,Fe,_e,Me,Le,Ie,Ne,He,qe,Be,Ge,Je,Ue,Ve,$e={};function Ke(){return je||(je=1,$e.f=Object.getOwnPropertySymbols),$e}function Qe(){if(Pe)return Se;Pe=1;var t=kt(),r=mt(),e=function(){if(ve)return ye;ve=1;var t=me(),r=Oe().concat("length","prototype");return ye.f=Object.getOwnPropertyNames||function(e){return t(e,r)},ye}(),n=Ke(),i=Er(),o=r([].concat);return Se=t("Reflect","ownKeys")||function(t){var r=e.f(i(t)),u=n.f;return u?o(r,u(t)):r}}function Xe(){if(Te)return Ce;Te=1;var t=pr(),r=Qe(),e=gr(),n=kr();return Ce=function(i,o,u){for(var c=r(o),f=n.f,a=e.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 Ye(){if(We)return Re;We=1;var t=b(),r=gr().f,e=Rr(),n=Xr(),i=fr(),o=Xe(),u=function(){if(ke)return Ee;ke=1;var t=T(),r=Tt(),e=/#|\.prototype\./,n=function(e,n){var f=o[i(e)];return f===c||f!==u&&(r(n)?t(n):!!n)},i=n.normalize=function(t){return String(t).replace(e,".").toLowerCase()},o=n.data={},u=n.NATIVE="N",c=n.POLYFILL="P";return Ee=n}();return Re=function(c,f){var a,s,l,p,h,v=c.target,y=c.global,b=c.stat;if(a=y?t:b?t[v]||i(v,{}):t[v]&&t[v].prototype)for(s in f){if(p=f[s],l=c.dontCallGetSet?(h=r(a,s))&&h.value:a[s],!u(y?s:v+(b?".":"#")+s,c.forced)&&void 0!==l){if(typeof p==typeof l)continue;o(p,l)}(c.sham||l&&l.sham)&&e(p,"sham",!0),n(a,s,p,c)}}}function Ze(){if(Ae)return ze;Ae=1;var t=Ot();return ze=Array.isArray||function(r){return"Array"===t(r)}}function tn(){if(_e)return Fe;_e=1;var t=function(){if(De)return xe;De=1;var t={};return t[vr()("toStringTag")]="z",xe="[object z]"===String(t)}(),r=Tt(),e=Ot(),n=vr()("toStringTag"),i=Object,o="Arguments"===e(function(){return arguments}());return Fe=t?e: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),n))?c:o?e(u):"Object"===(f=e(u))&&r(u.callee)?"Arguments":f}}function rn(){if(Le)return Me;Le=1;var t=mt(),r=T(),e=Tt(),n=tn(),i=kt(),o=Ur(),u=function(){},c=i("Reflect","construct"),f=/^\s*(?:class|function)\b/,a=t(f.exec),s=!f.test(u),l=function(t){if(!e(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},p=function(t){if(!e(t))return!1;switch(n(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return s||!!a(f,o(t))}catch(t){return!0}};return p.sham=!0,Me=!c||r(function(){var t;return l(l.call)||!l(Object)||!l(function(){t=!0})||t})?p:l}function en(){if(Ne)return Ie;Ne=1;var t=E(),r=kr(),e=wt();return Ie=function(n,i,o){t?r.f(n,i,e(0,o)):n[i]=o}}function nn(){if(Ge)return Be;Ge=1;var t=T(),r=vr(),e=Rt(),n=r("species");return Be=function(r){return e>=51||!t(function(){var t=[];return(t.constructor={})[n]=function(){return{foo:1}},1!==t[r](Boolean).foo})}}!function(){if(Ve)return y;Ve=1;var t=Ye(),r=Ze(),e=rn(),n=Et(),i=de(),o=we(),u=Ct(),c=en(),f=function(){if(qe)return He;qe=1;var t=E(),r=Ze(),e=TypeError,n=Object.getOwnPropertyDescriptor,i=t&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();return He=i?function(t,i){if(r(t)&&!n(t,"length").writable)throw new e("Cannot set read only .length");return t.length=i}:function(t,r){return t.length=r}}(),a=vr(),s=nn(),l=function(){if(Ue)return Je;Ue=1;var t=mt();return Je=t([].slice)}(),p=s("slice"),h=a("species"),v=Array,b=Math.max;t({target:"Array",proto:!0,forced:!p},{slice:function(t,a){var s,p,y,d=u(this),g=o(d),w=i(t,g),m=i(void 0===a?g:a,g);if(r(d)&&(s=d.constructor,(e(s)&&(s===v||r(s.prototype))||n(s)&&null===(s=s[h]))&&(s=void 0),s===v||void 0===s))return l(d,w,m);for(p=new(void 0===s?v:s)(b(m-w,0)),y=0;w<m;w++,y++)w in d&&c(p,y,d[w]);return f(p,y),p}})}();var on,un,cn,fn,an,sn={};function ln(){if(un)return on;un=1;var t=me(),r=Oe();return on=Object.keys||function(e){return t(e,r)}}!function(){if(an)return sn;an=1;var t=Ye(),r=function(){if(fn)return cn;fn=1;var t=E(),r=mt(),e=R(),n=T(),i=ln(),o=Ke(),u=gt(),c=lr(),f=jt(),a=Object.assign,s=Object.defineProperty,l=r([].concat);return cn=!a||n(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={},e={},n=Symbol("assign detection"),o="abcdefghijklmnopqrst";return r[n]=7,o.split("").forEach(function(t){e[t]=t}),7!==a({},r)[n]||i(a({},e)).join("")!==o})?function(r,n){for(var a=c(r),s=arguments.length,p=1,h=o.f,v=u.f;s>p;)for(var y,b=f(arguments[p++]),d=h?l(i(b),h(b)):i(b),g=d.length,w=0;g>w;)y=d[w++],t&&!e(v,b,y)||(a[y]=b[y]);return a}:a,cn}();t({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})}();var pn=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.fn.bootstrapTable.methods.push("resetPipelineCache"),t.BootstrapTable=function(n){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,n),e(i,[{key:"init",value:function(){this.options.usePipeline&&this.initPipeline();for(var t=arguments.length,r=new Array(t),e=0;e<t;e++)r[e]=arguments[e];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),e=0;e<t;e++)r[e]=arguments[e];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),e=0;e<t;e++)r[e]=arguments[e];s(i,"onSort",this,3)(r)}},{key:"onPageListChange",value:function(r){var e=t(r.currentTarget),n=parseInt(e.text(),10);this.options.pipelineSize=this.calculatePipelineSize(this.options.pipelineSize,n),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 e=pn.extend(!0,{},this.cacheRequestJSON),n=t-this.cacheWindows[this.currWindow].lower,i=n+r;return e.rows=e.rows.slice(n,i),e}},{key:"initServer",value:function(t,r){var e=this;if(!this.options.usePipeline)return s(i,"initServer",this,3)([t,r]);var n=!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?(n=!0,this.setCurrWindow(o.offset),o.drawOffset=o.offset,o.offset=this.cacheWindows[this.currWindow].lower):n=!1}else n=!0,o.drawOffset=o.offset;if(this.resetCache&&(n=!0,this.resetCache=!1),n&&(o.drawLimit=o.limit,o.limit=this.options.pipelineSize),!n){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 n=pn.calculateObjectValue(e.options,e.pipelineResponseHandler,[t,r],t);return e.cacheRequestJSON=pn.extend(!0,{},n),e.options.totalRows=n[e.options.totalField],e.setCacheWindows(),n=e.drawFromCache(o.drawOffset,o.drawLimit),e.trigger("cached-data-reset",n),n}),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),e=0;e<t;e++)r[e]=arguments[e];s(i,"destroy",this,3)(r)}},{key:"resetPipelineCache",value:function(){this.resetCache=!0}}])}(t.BootstrapTable)});