bootstrap-table-sticky-header.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.21.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){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var n=e(t);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function i(t){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function c(t,e){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},c(t,e)}function a(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)}function u(t){var e=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 n,r=i(t);if(e){var o=i(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function f(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=f(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},s.apply(this,arguments)}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},d=p("object"==typeof globalThis&&globalThis)||p("object"==typeof window&&window)||p("object"==typeof self&&self)||p("object"==typeof l&&l)||function(){return this}()||Function("return this")(),y={},h=function(t){try{return!!t()}catch(t){return!0}},b=!h((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),v=!h((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),g=v,m=Function.prototype.call,w=g?m.bind(m):function(){return m.apply(m,arguments)},O={},k={}.propertyIsEnumerable,j=Object.getOwnPropertyDescriptor,S=j&&!k.call({1:2},1);O.f=S?function(t){var e=j(this,t);return!!e&&e.enumerable}:k;var $,P,C=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},T=v,E=Function.prototype,_=E.call,x=T&&E.bind.bind(_,_),H=function(t){return T?x(t):function(){return _.apply(t,arguments)}},A=H,R=A({}.toString),B=A("".slice),F=function(t){return B(R(t),8,-1)},I=F,L=H,M=function(t){if("Function"===I(t))return L(t)},D=h,z=F,N=Object,q=M("".split),X=D((function(){return!N("z").propertyIsEnumerable(0)}))?function(t){return"String"==z(t)?q(t,""):N(t)}:N,G=function(t){return null==t},W=G,Y=TypeError,U=function(t){if(W(t))throw Y("Can't call method on "+t);return t},V=X,K=U,Q=function(t){return V(K(t))},J="object"==typeof document&&document.all,Z={all:J,IS_HTMLDDA:void 0===J&&void 0!==J},tt=Z.all,et=Z.IS_HTMLDDA?function(t){return"function"==typeof t||t===tt}:function(t){return"function"==typeof t},nt=et,rt=Z.all,ot=Z.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:nt(t)||t===rt}:function(t){return"object"==typeof t?null!==t:nt(t)},it=d,ct=et,at=function(t){return ct(t)?t:void 0},ut=function(t,e){return arguments.length<2?at(it[t]):it[t]&&it[t][e]},ft=M({}.isPrototypeOf),st=d,lt=ut("navigator","userAgent")||"",pt=st.process,dt=st.Deno,yt=pt&&pt.versions||dt&&dt.version,ht=yt&&yt.v8;ht&&(P=($=ht.split("."))[0]>0&&$[0]<4?1:+($[0]+$[1])),!P&&lt&&(!($=lt.match(/Edge\/(\d+)/))||$[1]>=74)&&($=lt.match(/Chrome\/(\d+)/))&&(P=+$[1]);var bt=P,vt=bt,gt=h,mt=!!Object.getOwnPropertySymbols&&!gt((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&vt&&vt<41})),wt=mt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=ut,kt=et,jt=ft,St=Object,$t=wt?function(t){return"symbol"==typeof t}:function(t){var e=Ot("Symbol");return kt(e)&&jt(e.prototype,St(t))},Pt=String,Ct=et,Tt=function(t){try{return Pt(t)}catch(t){return"Object"}},Et=TypeError,_t=function(t){if(Ct(t))return t;throw Et(Tt(t)+" is not a function")},xt=_t,Ht=G,At=w,Rt=et,Bt=ot,Ft=TypeError,It={exports:{}},Lt=d,Mt=Object.defineProperty,Dt=function(t,e){try{Mt(Lt,t,{value:e,configurable:!0,writable:!0})}catch(n){Lt[t]=e}return e},zt=Dt,Nt="__core-js_shared__",qt=d[Nt]||zt(Nt,{}),Xt=qt;(It.exports=function(t,e){return Xt[t]||(Xt[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.25.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt=U,Wt=Object,Yt=function(t){return Wt(Gt(t))},Ut=Yt,Vt=M({}.hasOwnProperty),Kt=Object.hasOwn||function(t,e){return Vt(Ut(t),e)},Qt=M,Jt=0,Zt=Math.random(),te=Qt(1..toString),ee=function(t){return"Symbol("+(void 0===t?"":t)+")_"+te(++Jt+Zt,36)},ne=d,re=It.exports,oe=Kt,ie=ee,ce=mt,ae=wt,ue=re("wks"),fe=ne.Symbol,se=fe&&fe.for,le=ae?fe:fe&&fe.withoutSetter||ie,pe=function(t){if(!oe(ue,t)||!ce&&"string"!=typeof ue[t]){var e="Symbol."+t;ce&&oe(fe,t)?ue[t]=fe[t]:ue[t]=ae&&se?se(e):le(e)}return ue[t]},de=w,ye=ot,he=$t,be=function(t,e){var n=t[e];return Ht(n)?void 0:xt(n)},ve=function(t,e){var n,r;if("string"===e&&Rt(n=t.toString)&&!Bt(r=At(n,t)))return r;if(Rt(n=t.valueOf)&&!Bt(r=At(n,t)))return r;if("string"!==e&&Rt(n=t.toString)&&!Bt(r=At(n,t)))return r;throw Ft("Can't convert object to primitive value")},ge=TypeError,me=pe("toPrimitive"),we=function(t,e){if(!ye(t)||he(t))return t;var n,r=be(t,me);if(r){if(void 0===e&&(e="default"),n=de(r,t,e),!ye(n)||he(n))return n;throw ge("Can't convert object to primitive value")}return void 0===e&&(e="number"),ve(t,e)},Oe=$t,ke=function(t){var e=we(t,"string");return Oe(e)?e:e+""},je=ot,Se=d.document,$e=je(Se)&&je(Se.createElement),Pe=function(t){return $e?Se.createElement(t):{}},Ce=Pe,Te=!b&&!h((function(){return 7!=Object.defineProperty(Ce("div"),"a",{get:function(){return 7}}).a})),Ee=b,_e=w,xe=O,He=C,Ae=Q,Re=ke,Be=Kt,Fe=Te,Ie=Object.getOwnPropertyDescriptor;y.f=Ee?Ie:function(t,e){if(t=Ae(t),e=Re(e),Fe)try{return Ie(t,e)}catch(t){}if(Be(t,e))return He(!_e(xe.f,t,e),t[e])};var Le={},Me=b&&h((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),De=ot,ze=String,Ne=TypeError,qe=function(t){if(De(t))return t;throw Ne(ze(t)+" is not an object")},Xe=b,Ge=Te,We=Me,Ye=qe,Ue=ke,Ve=TypeError,Ke=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,Je="enumerable",Ze="configurable",tn="writable";Le.f=Xe?We?function(t,e,n){if(Ye(t),e=Ue(e),Ye(n),"function"==typeof t&&"prototype"===e&&"value"in n&&tn in n&&!n.writable){var r=Qe(t,e);r&&r.writable&&(t[e]=n.value,n={configurable:Ze in n?n.configurable:r.configurable,enumerable:Je in n?n.enumerable:r.enumerable,writable:!1})}return Ke(t,e,n)}:Ke:function(t,e,n){if(Ye(t),e=Ue(e),Ye(n),Ge)try{return Ke(t,e,n)}catch(t){}if("get"in n||"set"in n)throw Ve("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var en=Le,nn=C,rn=b?function(t,e,n){return en.f(t,e,nn(1,n))}:function(t,e,n){return t[e]=n,t},on={exports:{}},cn=b,an=Kt,un=Function.prototype,fn=cn&&Object.getOwnPropertyDescriptor,sn=an(un,"name"),ln={EXISTS:sn,PROPER:sn&&"something"===function(){}.name,CONFIGURABLE:sn&&(!cn||cn&&fn(un,"name").configurable)},pn=et,dn=qt,yn=M(Function.toString);pn(dn.inspectSource)||(dn.inspectSource=function(t){return yn(t)});var hn,bn,vn,gn=dn.inspectSource,mn=et,wn=d.WeakMap,On=mn(wn)&&/native code/.test(String(wn)),kn=It.exports,jn=ee,Sn=kn("keys"),$n=function(t){return Sn[t]||(Sn[t]=jn(t))},Pn={},Cn=On,Tn=d,En=ot,_n=rn,xn=Kt,Hn=qt,An=$n,Rn=Pn,Bn="Object already initialized",Fn=Tn.TypeError,In=Tn.WeakMap;if(Cn||Hn.state){var Ln=Hn.state||(Hn.state=new In);Ln.get=Ln.get,Ln.has=Ln.has,Ln.set=Ln.set,hn=function(t,e){if(Ln.has(t))throw Fn(Bn);return e.facade=t,Ln.set(t,e),e},bn=function(t){return Ln.get(t)||{}},vn=function(t){return Ln.has(t)}}else{var Mn=An("state");Rn[Mn]=!0,hn=function(t,e){if(xn(t,Mn))throw Fn(Bn);return e.facade=t,_n(t,Mn,e),e},bn=function(t){return xn(t,Mn)?t[Mn]:{}},vn=function(t){return xn(t,Mn)}}var Dn={set:hn,get:bn,has:vn,enforce:function(t){return vn(t)?bn(t):hn(t,{})},getterFor:function(t){return function(e){var n;if(!En(e)||(n=bn(e)).type!==t)throw Fn("Incompatible receiver, "+t+" required");return n}}},zn=h,Nn=et,qn=Kt,Xn=b,Gn=ln.CONFIGURABLE,Wn=gn,Yn=Dn.enforce,Un=Dn.get,Vn=Object.defineProperty,Kn=Xn&&!zn((function(){return 8!==Vn((function(){}),"length",{value:8}).length})),Qn=String(String).split("String"),Jn=on.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!qn(t,"name")||Gn&&t.name!==e)&&(Xn?Vn(t,"name",{value:e,configurable:!0}):t.name=e),Kn&&n&&qn(n,"arity")&&t.length!==n.arity&&Vn(t,"length",{value:n.arity});try{n&&qn(n,"constructor")&&n.constructor?Xn&&Vn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var r=Yn(t);return qn(r,"source")||(r.source=Qn.join("string"==typeof e?e:"")),t};Function.prototype.toString=Jn((function(){return Nn(this)&&Un(this).source||Wn(this)}),"toString");var Zn=et,tr=Le,er=on.exports,nr=Dt,rr=function(t,e,n,r){r||(r={});var o=r.enumerable,i=void 0!==r.name?r.name:e;if(Zn(n)&&er(n,i,r),r.global)o?t[e]=n:nr(e,n);else{try{r.unsafe?t[e]&&(o=!0):delete t[e]}catch(t){}o?t[e]=n:tr.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},or={},ir=Math.ceil,cr=Math.floor,ar=Math.trunc||function(t){var e=+t;return(e>0?cr:ir)(e)},ur=function(t){var e=+t;return e!=e||0===e?0:ar(e)},fr=ur,sr=Math.max,lr=Math.min,pr=ur,dr=Math.min,yr=function(t){return t>0?dr(pr(t),9007199254740991):0},hr=function(t){return yr(t.length)},br=Q,vr=function(t,e){var n=fr(t);return n<0?sr(n+e,0):lr(n,e)},gr=hr,mr=function(t){return function(e,n,r){var o,i=br(e),c=gr(i),a=vr(r,c);if(t&&n!=n){for(;c>a;)if((o=i[a++])!=o)return!0}else for(;c>a;a++)if((t||a in i)&&i[a]===n)return t||a||0;return!t&&-1}},wr={includes:mr(!0),indexOf:mr(!1)},Or=Kt,kr=Q,jr=wr.indexOf,Sr=Pn,$r=M([].push),Pr=function(t,e){var n,r=kr(t),o=0,i=[];for(n in r)!Or(Sr,n)&&Or(r,n)&&$r(i,n);for(;e.length>o;)Or(r,n=e[o++])&&(~jr(i,n)||$r(i,n));return i},Cr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Tr=Pr,Er=Cr.concat("length","prototype");or.f=Object.getOwnPropertyNames||function(t){return Tr(t,Er)};var _r={};_r.f=Object.getOwnPropertySymbols;var xr=ut,Hr=or,Ar=_r,Rr=qe,Br=M([].concat),Fr=xr("Reflect","ownKeys")||function(t){var e=Hr.f(Rr(t)),n=Ar.f;return n?Br(e,n(t)):e},Ir=Kt,Lr=Fr,Mr=y,Dr=Le,zr=h,Nr=et,qr=/#|\.prototype\./,Xr=function(t,e){var n=Wr[Gr(t)];return n==Ur||n!=Yr&&(Nr(e)?zr(e):!!e)},Gr=Xr.normalize=function(t){return String(t).replace(qr,".").toLowerCase()},Wr=Xr.data={},Yr=Xr.NATIVE="N",Ur=Xr.POLYFILL="P",Vr=Xr,Kr=d,Qr=y.f,Jr=rn,Zr=rr,to=Dt,eo=function(t,e,n){for(var r=Lr(e),o=Dr.f,i=Mr.f,c=0;c<r.length;c++){var a=r[c];Ir(t,a)||n&&Ir(n,a)||o(t,a,i(e,a))}},no=Vr,ro=function(t,e){var n,r,o,i,c,a=t.target,u=t.global,f=t.stat;if(n=u?Kr:f?Kr[a]||to(a,{}):(Kr[a]||{}).prototype)for(r in e){if(i=e[r],o=t.dontCallGetSet?(c=Qr(n,r))&&c.value:n[r],!no(u?r:a+(f?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;eo(i,o)}(t.sham||o&&o.sham)&&Jr(i,"sham",!0),Zr(n,r,i,t)}},oo=F,io=Array.isArray||function(t){return"Array"==oo(t)},co=TypeError,ao=ke,uo=Le,fo=C,so={};so[pe("toStringTag")]="z";var lo="[object z]"===String(so),po=lo,yo=et,ho=F,bo=pe("toStringTag"),vo=Object,go="Arguments"==ho(function(){return arguments}()),mo=po?ho:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=vo(t),bo))?n:go?ho(e):"Object"==(r=ho(e))&&yo(e.callee)?"Arguments":r},wo=M,Oo=h,ko=et,jo=mo,So=gn,$o=function(){},Po=[],Co=ut("Reflect","construct"),To=/^\s*(?:class|function)\b/,Eo=wo(To.exec),_o=!To.exec($o),xo=function(t){if(!ko(t))return!1;try{return Co($o,Po,t),!0}catch(t){return!1}},Ho=function(t){if(!ko(t))return!1;switch(jo(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return _o||!!Eo(To,So(t))}catch(t){return!0}};Ho.sham=!0;var Ao=!Co||Oo((function(){var t;return xo(xo.call)||!xo(Object)||!xo((function(){t=!0}))||t}))?Ho:xo,Ro=io,Bo=Ao,Fo=ot,Io=pe("species"),Lo=Array,Mo=function(t){var e;return Ro(t)&&(e=t.constructor,(Bo(e)&&(e===Lo||Ro(e.prototype))||Fo(e)&&null===(e=e[Io]))&&(e=void 0)),void 0===e?Lo:e},Do=function(t,e){return new(Mo(t))(0===e?0:e)},zo=h,No=bt,qo=pe("species"),Xo=ro,Go=h,Wo=io,Yo=ot,Uo=Yt,Vo=hr,Ko=function(t){if(t>9007199254740991)throw co("Maximum allowed index exceeded");return t},Qo=function(t,e,n){var r=ao(e);r in t?uo.f(t,r,fo(0,n)):t[r]=n},Jo=Do,Zo=function(t){return No>=51||!zo((function(){var e=[];return(e.constructor={})[qo]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},ti=bt,ei=pe("isConcatSpreadable"),ni=ti>=51||!Go((function(){var t=[];return t[ei]=!1,t.concat()[0]!==t})),ri=Zo("concat"),oi=function(t){if(!Yo(t))return!1;var e=t[ei];return void 0!==e?!!e:Wo(t)};Xo({target:"Array",proto:!0,arity:1,forced:!ni||!ri},{concat:function(t){var e,n,r,o,i,c=Uo(this),a=Jo(c,0),u=0;for(e=-1,r=arguments.length;e<r;e++)if(oi(i=-1===e?c:arguments[e]))for(o=Vo(i),Ko(u+o),n=0;n<o;n++,u++)n in i&&Qo(a,u,i[n]);else Ko(u+1),Qo(a,u++,i);return a.length=u,a}});var ii=_t,ci=v,ai=M(M.bind),ui=function(t,e){return ii(t),void 0===e?t:ci?ai(t,e):function(){return t.apply(e,arguments)}},fi=X,si=Yt,li=hr,pi=Do,di=M([].push),yi=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,c=7==t,a=5==t||i;return function(u,f,s,l){for(var p,d,y=si(u),h=fi(y),b=ui(f,s),v=li(h),g=0,m=l||pi,w=e?m(u,v):n||c?m(u,0):void 0;v>g;g++)if((a||g in h)&&(d=b(p=h[g],g,y),t))if(e)w[g]=d;else if(d)switch(t){case 3:return!0;case 5:return p;case 6:return g;case 2:di(w,p)}else switch(t){case 4:return!1;case 7:di(w,p)}return i?-1:r||o?o:w}},hi={forEach:yi(0),map:yi(1),filter:yi(2),some:yi(3),every:yi(4),find:yi(5),findIndex:yi(6),filterReject:yi(7)},bi={},vi=Pr,gi=Cr,mi=Object.keys||function(t){return vi(t,gi)},wi=b,Oi=Me,ki=Le,ji=qe,Si=Q,$i=mi;bi.f=wi&&!Oi?Object.defineProperties:function(t,e){ji(t);for(var n,r=Si(e),o=$i(e),i=o.length,c=0;i>c;)ki.f(t,n=o[c++],r[n]);return t};var Pi,Ci=ut("document","documentElement"),Ti=qe,Ei=bi,_i=Cr,xi=Pn,Hi=Ci,Ai=Pe,Ri=$n("IE_PROTO"),Bi=function(){},Fi=function(t){return"<script>"+t+"</"+"script>"},Ii=function(t){t.write(Fi("")),t.close();var e=t.parentWindow.Object;return t=null,e},Li=function(){try{Pi=new ActiveXObject("htmlfile")}catch(t){}var t,e;Li="undefined"!=typeof document?document.domain&&Pi?Ii(Pi):((e=Ai("iframe")).style.display="none",Hi.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Fi("document.F=Object")),t.close(),t.F):Ii(Pi);for(var n=_i.length;n--;)delete Li.prototype[_i[n]];return Li()};xi[Ri]=!0;var Mi=pe,Di=Object.create||function(t,e){var n;return null!==t?(Bi.prototype=Ti(t),n=new Bi,Bi.prototype=null,n[Ri]=t):n=Li(),void 0===e?n:Ei.f(n,e)},zi=Le.f,Ni=Mi("unscopables"),qi=Array.prototype;null==qi[Ni]&&zi(qi,Ni,{configurable:!0,value:Di(null)});var Xi=ro,Gi=hi.find,Wi=function(t){qi[Ni][t]=!0},Yi="find",Ui=!0;Yi in[]&&Array(1).find((function(){Ui=!1})),Xi({target:"Array",proto:!0,forced:Ui},{find:function(t){return Gi(this,t,arguments.length>1?arguments[1]:void 0)}}),Wi(Yi);var Vi=mo,Ki=lo?{}.toString:function(){return"[object "+Vi(this)+"]"};lo||rr(Object.prototype,"toString",Ki,{unsafe:!0});var Qi=n.default.fn.bootstrapTable.utils;n.default.extend(n.default.fn.bootstrapTable.defaults,{stickyHeader:!1,stickyHeaderOffsetY:0,stickyHeaderOffsetLeft:0,stickyHeaderOffsetRight:0}),n.default.BootstrapTable=function(t){!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&&c(t,e)}(p,t);var e,a,f,l=u(p);function p(){return r(this,p),l.apply(this,arguments)}return e=p,a=[{key:"initHeader",value:function(){for(var t,e=this,r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];if((t=s(i(p.prototype),"initHeader",this)).call.apply(t,[this].concat(o)),this.options.stickyHeader){this.$tableBody.find(".sticky-header-container,.sticky_anchor_begin,.sticky_anchor_end").remove(),this.$el.before('<div class="sticky-header-container"></div>'),this.$el.before('<div class="sticky_anchor_begin"></div>'),this.$el.after('<div class="sticky_anchor_end"></div>'),this.$header.addClass("sticky-header"),this.$stickyContainer=this.$tableBody.find(".sticky-header-container"),this.$stickyBegin=this.$tableBody.find(".sticky_anchor_begin"),this.$stickyEnd=this.$tableBody.find(".sticky_anchor_end"),this.$stickyHeader=this.$header.clone(!0,!0);var a=Qi.getEventName("resize.sticky-header-table",this.$el.attr("id")),u=Qi.getEventName("scroll.sticky-header-table",this.$el.attr("id"));n.default(window).off(a).on(a,(function(){return e.renderStickyHeader()})),n.default(window).off(u).on(u,(function(){return e.renderStickyHeader()})),this.$tableBody.off("scroll").on("scroll",(function(){return e.matchPositionX()}))}}},{key:"onColumnSearch",value:function(t){var e=t.currentTarget,n=t.keyCode;s(i(p.prototype),"onColumnSearch",this).call(this,{currentTarget:e,keyCode:n}),this.renderStickyHeader()}},{key:"resetView",value:function(){for(var t,e=this,r=arguments.length,o=new Array(r),c=0;c<r;c++)o[c]=arguments[c];(t=s(i(p.prototype),"resetView",this)).call.apply(t,[this].concat(o)),n.default(".bootstrap-table.fullscreen").off("scroll").on("scroll",(function(){return e.renderStickyHeader()}))}},{key:"getCaret",value:function(){for(var t,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];if((t=s(i(p.prototype),"getCaret",this)).call.apply(t,[this].concat(r)),this.$stickyHeader){var c=this.$stickyHeader.find("th");this.$header.find("th").each((function(t,e){c.eq(t).find(".sortable").attr("class",n.default(e).find(".sortable").attr("class"))}))}}},{key:"horizontalScroll",value:function(){var t=this;s(i(p.prototype),"horizontalScroll",this).call(this),this.$tableBody.on("scroll",(function(){return t.matchPositionX()}))}},{key:"renderStickyHeader",value:function(){var t=this,e=this;this.$stickyHeader=this.$header.clone(!0,!0),this.options.filterControl&&n.default(this.$stickyHeader).off("keyup change mouseup").on("keyup change mouse",(function(t){var r=n.default(t.target),o=r.val(),i=r.parents("th").data("field"),c=e.$header.find('th[data-field="'.concat(i,'"]'));if(r.is("input"))c.find("input").val(o);else if(r.is("select")){var a=c.find("select");a.find("option[selected]").removeAttr("selected"),a.find('option[value="'.concat(o,'"]')).attr("selected",!0)}e.triggerSearch()}));var r=n.default(window).scrollTop(),o=this.$stickyBegin.offset().top-this.options.stickyHeaderOffsetY,i=this.$stickyEnd.offset().top-this.options.stickyHeaderOffsetY-this.$header.height();if(r>o&&r<=i){this.$stickyHeader.find("tr").each((function(e,r){n.default(r).find("th").each((function(r,o){n.default(o).css("min-width",t.$header.find("tr:eq(".concat(e,")")).find("th:eq(".concat(r,")")).css("width"))}))})),this.$stickyContainer.show().addClass("fix-sticky fixed-table-container");var c=this.$tableBody[0].getBoundingClientRect(),a="100%",u=this.options.stickyHeaderOffsetLeft,f=this.options.stickyHeaderOffsetRight;u||(u=c.left),f||(a="".concat(c.width,"px")),this.$el.closest(".bootstrap-table").hasClass("fullscreen")&&(u=0,f=0,a="100%"),this.$stickyContainer.css("top","".concat(this.options.stickyHeaderOffsetY,"px")),this.$stickyContainer.css("left","".concat(u,"px")),this.$stickyContainer.css("right","".concat(f,"px")),this.$stickyContainer.css("width","".concat(a)),this.$stickyTable=n.default("<table/>"),this.$stickyTable.addClass(this.options.classes),this.$stickyContainer.html(this.$stickyTable.append(this.$stickyHeader)),this.matchPositionX()}else this.$stickyContainer.removeClass("fix-sticky").hide()}},{key:"matchPositionX",value:function(){this.$stickyContainer.scrollLeft(this.$tableBody.scrollLeft())}}],a&&o(e.prototype,a),f&&o(e,f),Object.defineProperty(e,"prototype",{writable:!1}),p}(n.default.BootstrapTable)}));