UNPKG

42 kBJavaScriptView Raw
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.20.2
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10!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 o=e(t);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var o=0;o<e.length;o++){var r=e[o];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:function(t){return t.__proto__||Object.getPrototypeOf(t)},i(t)}function a(t,e){return a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},a(t,e)}function s(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 c(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 o,r=i(t);if(e){var n=i(this).constructor;o=Reflect.construct(r,arguments,n)}else o=r.apply(this,arguments);return s(this,o)}}function u(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}function l(){return l="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,o){var r=u(t,e);if(r){var n=Object.getOwnPropertyDescriptor(r,e);return n.get?n.get.call(arguments.length<3?t:o):n.value}},l.apply(this,arguments)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,r=new Array(e);o<e;o++)r[o]=t[o];return r}function p(t,e){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!o){if(Array.isArray(t)||(o=function(t,e){if(t){if("string"==typeof t)return f(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){o&&(t=o);var r=0,n=function(){};return{s:n,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){o=o.call(t)},n:function(){var t=o.next();return a=t.done,t},e:function(t){s=!0,i=t},f:function(){try{a||null==o.return||o.return()}finally{if(s)throw i}}}}var h="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},d=function(t){return t&&t.Math==Math&&t},g=d("object"==typeof globalThis&&globalThis)||d("object"==typeof window&&window)||d("object"==typeof self&&self)||d("object"==typeof h&&h)||function(){return this}()||Function("return this")(),v={},y=function(t){try{return!!t()}catch(t){return!0}},b=!y((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),m=!y((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),k=m,S=Function.prototype.call,C=k?S.bind(S):function(){return S.apply(S,arguments)},w={},x={}.propertyIsEnumerable,I=Object.getOwnPropertyDescriptor,O=I&&!x.call({1:2},1);w.f=O?function(t){var e=I(this,t);return!!e&&e.enumerable}:x;var E,T,j=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},P=m,N=Function.prototype,A=N.bind,L=N.call,R=P&&A.bind(L,L),_=P?function(t){return t&&R(t)}:function(t){return t&&function(){return L.apply(t,arguments)}},M=_,V=M({}.toString),D=M("".slice),B=function(t){return D(V(t),8,-1)},F=_,$=y,G=B,J=g.Object,U=F("".split),z=$((function(){return!J("z").propertyIsEnumerable(0)}))?function(t){return"String"==G(t)?U(t,""):J(t)}:J,H=g.TypeError,q=function(t){if(null==t)throw H("Can't call method on "+t);return t},K=z,W=q,Y=function(t){return K(W(t))},X=function(t){return"function"==typeof t},Q=X,Z=function(t){return"object"==typeof t?null!==t:Q(t)},tt=g,et=X,ot=function(t){return et(t)?t:void 0},rt=function(t,e){return arguments.length<2?ot(tt[t]):tt[t]&&tt[t][e]},nt=_({}.isPrototypeOf),it=g,at=rt("navigator","userAgent")||"",st=it.process,ct=it.Deno,ut=st&&st.versions||ct&&ct.version,lt=ut&&ut.v8;lt&&(T=(E=lt.split("."))[0]>0&&E[0]<4?1:+(E[0]+E[1])),!T&&at&&(!(E=at.match(/Edge\/(\d+)/))||E[1]>=74)&&(E=at.match(/Chrome\/(\d+)/))&&(T=+E[1]);var ft=T,pt=ft,ht=y,dt=!!Object.getOwnPropertySymbols&&!ht((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&pt&&pt<41})),gt=dt&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,vt=rt,yt=X,bt=nt,mt=gt,kt=g.Object,St=mt?function(t){return"symbol"==typeof t}:function(t){var e=vt("Symbol");return yt(e)&&bt(e.prototype,kt(t))},Ct=g.String,wt=function(t){try{return Ct(t)}catch(t){return"Object"}},xt=X,It=wt,Ot=g.TypeError,Et=function(t){if(xt(t))return t;throw Ot(It(t)+" is not a function")},Tt=Et,jt=function(t,e){var o=t[e];return null==o?void 0:Tt(o)},Pt=C,Nt=X,At=Z,Lt=g.TypeError,Rt={exports:{}},_t=g,Mt=Object.defineProperty,Vt=function(t,e){try{Mt(_t,t,{value:e,configurable:!0,writable:!0})}catch(o){_t[t]=e}return e},Dt=Vt,Bt="__core-js_shared__",Ft=g[Bt]||Dt(Bt,{}),$t=Ft;(Rt.exports=function(t,e){return $t[t]||($t[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.22.5",mode:"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE",source:"https://github.com/zloirock/core-js"});var Gt=q,Jt=g.Object,Ut=function(t){return Jt(Gt(t))},zt=Ut,Ht=_({}.hasOwnProperty),qt=Object.hasOwn||function(t,e){return Ht(zt(t),e)},Kt=_,Wt=0,Yt=Math.random(),Xt=Kt(1..toString),Qt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Xt(++Wt+Yt,36)},Zt=g,te=Rt.exports,ee=qt,oe=Qt,re=dt,ne=gt,ie=te("wks"),ae=Zt.Symbol,se=ae&&ae.for,ce=ne?ae:ae&&ae.withoutSetter||oe,ue=function(t){if(!ee(ie,t)||!re&&"string"!=typeof ie[t]){var e="Symbol."+t;re&&ee(ae,t)?ie[t]=ae[t]:ie[t]=ne&&se?se(e):ce(e)}return ie[t]},le=C,fe=Z,pe=St,he=jt,de=function(t,e){var o,r;if("string"===e&&Nt(o=t.toString)&&!At(r=Pt(o,t)))return r;if(Nt(o=t.valueOf)&&!At(r=Pt(o,t)))return r;if("string"!==e&&Nt(o=t.toString)&&!At(r=Pt(o,t)))return r;throw Lt("Can't convert object to primitive value")},ge=ue,ve=g.TypeError,ye=ge("toPrimitive"),be=function(t,e){if(!fe(t)||pe(t))return t;var o,r=he(t,ye);if(r){if(void 0===e&&(e="default"),o=le(r,t,e),!fe(o)||pe(o))return o;throw ve("Can't convert object to primitive value")}return void 0===e&&(e="number"),de(t,e)},me=St,ke=function(t){var e=be(t,"string");return me(e)?e:e+""},Se=Z,Ce=g.document,we=Se(Ce)&&Se(Ce.createElement),xe=function(t){return we?Ce.createElement(t):{}},Ie=xe,Oe=!b&&!y((function(){return 7!=Object.defineProperty(Ie("div"),"a",{get:function(){return 7}}).a})),Ee=b,Te=C,je=w,Pe=j,Ne=Y,Ae=ke,Le=qt,Re=Oe,_e=Object.getOwnPropertyDescriptor;v.f=Ee?_e:function(t,e){if(t=Ne(t),e=Ae(e),Re)try{return _e(t,e)}catch(t){}if(Le(t,e))return Pe(!Te(je.f,t,e),t[e])};var Me={},Ve=b&&y((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),De=g,Be=Z,Fe=De.String,$e=De.TypeError,Ge=function(t){if(Be(t))return t;throw $e(Fe(t)+" is not an object")},Je=b,Ue=Oe,ze=Ve,He=Ge,qe=ke,Ke=g.TypeError,We=Object.defineProperty,Ye=Object.getOwnPropertyDescriptor,Xe="enumerable",Qe="configurable",Ze="writable";Me.f=Je?ze?function(t,e,o){if(He(t),e=qe(e),He(o),"function"==typeof t&&"prototype"===e&&"value"in o&&Ze in o&&!o.writable){var r=Ye(t,e);r&&r.writable&&(t[e]=o.value,o={configurable:Qe in o?o.configurable:r.configurable,enumerable:Xe in o?o.enumerable:r.enumerable,writable:!1})}return We(t,e,o)}:We:function(t,e,o){if(He(t),e=qe(e),He(o),Ue)try{return We(t,e,o)}catch(t){}if("get"in o||"set"in o)throw Ke("Accessors not supported");return"value"in o&&(t[e]=o.value),t};var to=Me,eo=j,oo=b?function(t,e,o){return to.f(t,e,eo(1,o))}:function(t,e,o){return t[e]=o,t},ro={exports:{}},no=b,io=qt,ao=Function.prototype,so=no&&Object.getOwnPropertyDescriptor,co=io(ao,"name"),uo={EXISTS:co,PROPER:co&&"something"===function(){}.name,CONFIGURABLE:co&&(!no||no&&so(ao,"name").configurable)},lo=X,fo=Ft,po=_(Function.toString);lo(fo.inspectSource)||(fo.inspectSource=function(t){return po(t)});var ho,go,vo,yo=fo.inspectSource,bo=X,mo=yo,ko=g.WeakMap,So=bo(ko)&&/native code/.test(mo(ko)),Co=Rt.exports,wo=Qt,xo=Co("keys"),Io=function(t){return xo[t]||(xo[t]=wo(t))},Oo={},Eo=So,To=g,jo=_,Po=Z,No=oo,Ao=qt,Lo=Ft,Ro=Io,_o=Oo,Mo="Object already initialized",Vo=To.TypeError,Do=To.WeakMap;if(Eo||Lo.state){var Bo=Lo.state||(Lo.state=new Do),Fo=jo(Bo.get),$o=jo(Bo.has),Go=jo(Bo.set);ho=function(t,e){if($o(Bo,t))throw new Vo(Mo);return e.facade=t,Go(Bo,t,e),e},go=function(t){return Fo(Bo,t)||{}},vo=function(t){return $o(Bo,t)}}else{var Jo=Ro("state");_o[Jo]=!0,ho=function(t,e){if(Ao(t,Jo))throw new Vo(Mo);return e.facade=t,No(t,Jo,e),e},go=function(t){return Ao(t,Jo)?t[Jo]:{}},vo=function(t){return Ao(t,Jo)}}var Uo={set:ho,get:go,has:vo,enforce:function(t){return vo(t)?go(t):ho(t,{})},getterFor:function(t){return function(e){var o;if(!Po(e)||(o=go(e)).type!==t)throw Vo("Incompatible receiver, "+t+" required");return o}}},zo=y,Ho=X,qo=qt,Ko=b,Wo=uo.CONFIGURABLE,Yo=yo,Xo=Uo.enforce,Qo=Uo.get,Zo=Object.defineProperty,tr=Ko&&!zo((function(){return 8!==Zo((function(){}),"length",{value:8}).length})),er=String(String).split("String"),or=ro.exports=function(t,e,o){if("Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),o&&o.getter&&(e="get "+e),o&&o.setter&&(e="set "+e),(!qo(t,"name")||Wo&&t.name!==e)&&Zo(t,"name",{value:e,configurable:!0}),tr&&o&&qo(o,"arity")&&t.length!==o.arity&&Zo(t,"length",{value:o.arity}),o&&qo(o,"constructor")&&o.constructor){if(Ko)try{Zo(t,"prototype",{writable:!1})}catch(t){}}else t.prototype=void 0;var r=Xo(t);return qo(r,"source")||(r.source=er.join("string"==typeof e?e:"")),t};Function.prototype.toString=or((function(){return Ho(this)&&Qo(this).source||Yo(this)}),"toString");var rr=g,nr=X,ir=oo,ar=ro.exports,sr=Vt,cr=function(t,e,o,r){var n=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet,s=r&&void 0!==r.name?r.name:e;return nr(o)&&ar(o,s,r),t===rr?(i?t[e]=o:sr(e,o),t):(n?!a&&t[e]&&(i=!0):delete t[e],i?t[e]=o:ir(t,e,o),t)},ur={},lr=Math.ceil,fr=Math.floor,pr=function(t){var e=+t;return e!=e||0===e?0:(e>0?fr:lr)(e)},hr=pr,dr=Math.max,gr=Math.min,vr=function(t,e){var o=hr(t);return o<0?dr(o+e,0):gr(o,e)},yr=pr,br=Math.min,mr=function(t){return t>0?br(yr(t),9007199254740991):0},kr=mr,Sr=function(t){return kr(t.length)},Cr=Y,wr=vr,xr=Sr,Ir=function(t){return function(e,o,r){var n,i=Cr(e),a=xr(i),s=wr(r,a);if(t&&o!=o){for(;a>s;)if((n=i[s++])!=n)return!0}else for(;a>s;s++)if((t||s in i)&&i[s]===o)return t||s||0;return!t&&-1}},Or={includes:Ir(!0),indexOf:Ir(!1)},Er=qt,Tr=Y,jr=Or.indexOf,Pr=Oo,Nr=_([].push),Ar=function(t,e){var o,r=Tr(t),n=0,i=[];for(o in r)!Er(Pr,o)&&Er(r,o)&&Nr(i,o);for(;e.length>n;)Er(r,o=e[n++])&&(~jr(i,o)||Nr(i,o));return i},Lr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Rr=Ar,_r=Lr.concat("length","prototype");ur.f=Object.getOwnPropertyNames||function(t){return Rr(t,_r)};var Mr={};Mr.f=Object.getOwnPropertySymbols;var Vr=rt,Dr=ur,Br=Mr,Fr=Ge,$r=_([].concat),Gr=Vr("Reflect","ownKeys")||function(t){var e=Dr.f(Fr(t)),o=Br.f;return o?$r(e,o(t)):e},Jr=qt,Ur=Gr,zr=v,Hr=Me,qr=y,Kr=X,Wr=/#|\.prototype\./,Yr=function(t,e){var o=Qr[Xr(t)];return o==tn||o!=Zr&&(Kr(e)?qr(e):!!e)},Xr=Yr.normalize=function(t){return String(t).replace(Wr,".").toLowerCase()},Qr=Yr.data={},Zr=Yr.NATIVE="N",tn=Yr.POLYFILL="P",en=Yr,on=g,rn=v.f,nn=oo,an=cr,sn=Vt,cn=function(t,e,o){for(var r=Ur(e),n=Hr.f,i=zr.f,a=0;a<r.length;a++){var s=r[a];Jr(t,s)||o&&Jr(o,s)||n(t,s,i(e,s))}},un=en,ln=function(t,e){var o,r,n,i,a,s=t.target,c=t.global,u=t.stat;if(o=c?on:u?on[s]||sn(s,{}):(on[s]||{}).prototype)for(r in e){if(i=e[r],n=t.noTargetGet?(a=rn(o,r))&&a.value:o[r],!un(c?r:s+(u?".":"#")+r,t.forced)&&void 0!==n){if(typeof i==typeof n)continue;cn(i,n)}(t.sham||n&&n.sham)&&nn(i,"sham",!0),an(o,r,i,t)}},fn={},pn=Ar,hn=Lr,dn=Object.keys||function(t){return pn(t,hn)},gn=b,vn=Ve,yn=Me,bn=Ge,mn=Y,kn=dn;fn.f=gn&&!vn?Object.defineProperties:function(t,e){bn(t);for(var o,r=mn(e),n=kn(e),i=n.length,a=0;i>a;)yn.f(t,o=n[a++],r[o]);return t};var Sn,Cn=rt("document","documentElement"),wn=Ge,xn=fn,In=Lr,On=Oo,En=Cn,Tn=xe,jn=Io("IE_PROTO"),Pn=function(){},Nn=function(t){return"<script>"+t+"</"+"script>"},An=function(t){t.write(Nn("")),t.close();var e=t.parentWindow.Object;return t=null,e},Ln=function(){try{Sn=new ActiveXObject("htmlfile")}catch(t){}var t,e;Ln="undefined"!=typeof document?document.domain&&Sn?An(Sn):((e=Tn("iframe")).style.display="none",En.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Nn("document.F=Object")),t.close(),t.F):An(Sn);for(var o=In.length;o--;)delete Ln.prototype[In[o]];return Ln()};On[jn]=!0;var Rn=Object.create||function(t,e){var o;return null!==t?(Pn.prototype=wn(t),o=new Pn,Pn.prototype=null,o[jn]=t):o=Ln(),void 0===e?o:xn.f(o,e)},_n=Rn,Mn=Me,Vn=ue("unscopables"),Dn=Array.prototype;null==Dn[Vn]&&Mn.f(Dn,Vn,{configurable:!0,value:_n(null)});var Bn=function(t){Dn[Vn][t]=!0},Fn=Or.includes,$n=Bn;ln({target:"Array",proto:!0,forced:y((function(){return!Array(1).includes()}))},{includes:function(t){return Fn(this,t,arguments.length>1?arguments[1]:void 0)}}),$n("includes");var Gn=Z,Jn=B,Un=ue("match"),zn=function(t){var e;return Gn(t)&&(void 0!==(e=t[Un])?!!e:"RegExp"==Jn(t))},Hn=zn,qn=g.TypeError,Kn={};Kn[ue("toStringTag")]="z";var Wn="[object z]"===String(Kn),Yn=g,Xn=Wn,Qn=X,Zn=B,ti=ue("toStringTag"),ei=Yn.Object,oi="Arguments"==Zn(function(){return arguments}()),ri=Xn?Zn:function(t){var e,o,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(o=function(t,e){try{return t[e]}catch(t){}}(e=ei(t),ti))?o:oi?Zn(e):"Object"==(r=Zn(e))&&Qn(e.callee)?"Arguments":r},ni=ri,ii=g.String,ai=function(t){if("Symbol"===ni(t))throw TypeError("Cannot convert a Symbol value to a string");return ii(t)},si=ue("match"),ci=ln,ui=function(t){if(Hn(t))throw qn("The method doesn't accept regular expressions");return t},li=q,fi=ai,pi=function(t){var e=/./;try{"/./"[t](e)}catch(o){try{return e[si]=!1,"/./"[t](e)}catch(t){}}return!1},hi=_("".indexOf);ci({target:"String",proto:!0,forced:!pi("includes")},{includes:function(t){return!!~hi(fi(li(this)),fi(ui(t)),arguments.length>1?arguments[1]:void 0)}});var di=B,gi=Array.isArray||function(t){return"Array"==di(t)},vi=ke,yi=Me,bi=j,mi=function(t,e,o){var r=vi(e);r in t?yi.f(t,r,bi(0,o)):t[r]=o},ki=_,Si=y,Ci=X,wi=ri,xi=yo,Ii=function(){},Oi=[],Ei=rt("Reflect","construct"),Ti=/^\s*(?:class|function)\b/,ji=ki(Ti.exec),Pi=!Ti.exec(Ii),Ni=function(t){if(!Ci(t))return!1;try{return Ei(Ii,Oi,t),!0}catch(t){return!1}},Ai=function(t){if(!Ci(t))return!1;switch(wi(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return Pi||!!ji(Ti,xi(t))}catch(t){return!0}};Ai.sham=!0;var Li=!Ei||Si((function(){var t;return Ni(Ni.call)||!Ni(Object)||!Ni((function(){t=!0}))||t}))?Ai:Ni,Ri=g,_i=gi,Mi=Li,Vi=Z,Di=ue("species"),Bi=Ri.Array,Fi=function(t){var e;return _i(t)&&(e=t.constructor,(Mi(e)&&(e===Bi||_i(e.prototype))||Vi(e)&&null===(e=e[Di]))&&(e=void 0)),void 0===e?Bi:e},$i=function(t,e){return new(Fi(t))(0===e?0:e)},Gi=y,Ji=ft,Ui=ue("species"),zi=function(t){return Ji>=51||!Gi((function(){var e=[];return(e.constructor={})[Ui]=function(){return{foo:1}},1!==e[t](Boolean).foo}))},Hi=ln,qi=g,Ki=y,Wi=gi,Yi=Z,Xi=Ut,Qi=Sr,Zi=mi,ta=$i,ea=zi,oa=ft,ra=ue("isConcatSpreadable"),na=9007199254740991,ia="Maximum allowed index exceeded",aa=qi.TypeError,sa=oa>=51||!Ki((function(){var t=[];return t[ra]=!1,t.concat()[0]!==t})),ca=ea("concat"),ua=function(t){if(!Yi(t))return!1;var e=t[ra];return void 0!==e?!!e:Wi(t)};Hi({target:"Array",proto:!0,arity:1,forced:!sa||!ca},{concat:function(t){var e,o,r,n,i,a=Xi(this),s=ta(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(ua(i=-1===e?a:arguments[e])){if(c+(n=Qi(i))>na)throw aa(ia);for(o=0;o<n;o++,c++)o in i&&Zi(s,c,i[o])}else{if(c>=na)throw aa(ia);Zi(s,c++,i)}return s.length=c,s}});var la,fa,pa=Ge,ha=function(){var t=pa(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e},da=y,ga=g.RegExp,va=da((function(){var t=ga("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),ya=va||da((function(){return!ga("a","y").sticky})),ba={BROKEN_CARET:va||da((function(){var t=ga("^r","gy");return t.lastIndex=2,null!=t.exec("str")})),MISSED_STICKY:ya,UNSUPPORTED_Y:va},ma=y,ka=g.RegExp,Sa=ma((function(){var t=ka(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)})),Ca=y,wa=g.RegExp,xa=Ca((function(){var t=wa("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")})),Ia=C,Oa=_,Ea=ai,Ta=ha,ja=ba,Pa=Rt.exports,Na=Rn,Aa=Uo.get,La=Sa,Ra=xa,_a=Pa("native-string-replace",String.prototype.replace),Ma=RegExp.prototype.exec,Va=Ma,Da=Oa("".charAt),Ba=Oa("".indexOf),Fa=Oa("".replace),$a=Oa("".slice),Ga=(fa=/b*/g,Ia(Ma,la=/a/,"a"),Ia(Ma,fa,"a"),0!==la.lastIndex||0!==fa.lastIndex),Ja=ja.BROKEN_CARET,Ua=void 0!==/()??/.exec("")[1];(Ga||Ua||Ja||La||Ra)&&(Va=function(t){var e,o,r,n,i,a,s,c=this,u=Aa(c),l=Ea(t),f=u.raw;if(f)return f.lastIndex=c.lastIndex,e=Ia(Va,f,l),c.lastIndex=f.lastIndex,e;var p=u.groups,h=Ja&&c.sticky,d=Ia(Ta,c),g=c.source,v=0,y=l;if(h&&(d=Fa(d,"y",""),-1===Ba(d,"g")&&(d+="g"),y=$a(l,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&"\n"!==Da(l,c.lastIndex-1))&&(g="(?: "+g+")",y=" "+y,v++),o=new RegExp("^(?:"+g+")",d)),Ua&&(o=new RegExp("^"+g+"$(?!\\s)",d)),Ga&&(r=c.lastIndex),n=Ia(Ma,h?o:c,y),h?n?(n.input=$a(n.input,v),n[0]=$a(n[0],v),n.index=c.lastIndex,c.lastIndex+=n[0].length):c.lastIndex=0:Ga&&n&&(c.lastIndex=c.global?n.index+n[0].length:r),Ua&&n&&n.length>1&&Ia(_a,n[0],o,(function(){for(i=1;i<arguments.length-2;i++)void 0===arguments[i]&&(n[i]=void 0)})),n&&p)for(n.groups=a=Na(null),i=0;i<p.length;i++)a[(s=p[i])[0]]=n[s[1]];return n});var za=Va;ln({target:"RegExp",proto:!0,forced:/./.exec!==za},{exec:za});var Ha=m,qa=Function.prototype,Ka=qa.apply,Wa=qa.call,Ya="object"==typeof Reflect&&Reflect.apply||(Ha?Wa.bind(Ka):function(){return Wa.apply(Ka,arguments)}),Xa=_,Qa=cr,Za=za,ts=y,es=ue,os=oo,rs=es("species"),ns=RegExp.prototype,is=function(t,e,o,r){var n=es(t),i=!ts((function(){var e={};return e[n]=function(){return 7},7!=""[t](e)})),a=i&&!ts((function(){var e=!1,o=/a/;return"split"===t&&((o={}).constructor={},o.constructor[rs]=function(){return o},o.flags="",o[n]=/./[n]),o.exec=function(){return e=!0,null},o[n](""),!e}));if(!i||!a||o){var s=Xa(/./[n]),c=e(n,""[t],(function(t,e,o,r,n){var a=Xa(t),c=e.exec;return c===Za||c===ns.exec?i&&!n?{done:!0,value:s(e,o,r)}:{done:!0,value:a(o,e,r)}:{done:!1}}));Qa(String.prototype,t,c[0]),Qa(ns,n,c[1])}r&&os(ns[n],"sham",!0)},as=_,ss=pr,cs=ai,us=q,ls=as("".charAt),fs=as("".charCodeAt),ps=as("".slice),hs=function(t){return function(e,o){var r,n,i=cs(us(e)),a=ss(o),s=i.length;return a<0||a>=s?t?"":void 0:(r=fs(i,a))<55296||r>56319||a+1===s||(n=fs(i,a+1))<56320||n>57343?t?ls(i,a):r:t?ps(i,a,a+2):n-56320+(r-55296<<10)+65536}},ds={codeAt:hs(!1),charAt:hs(!0)}.charAt,gs=function(t,e,o){return e+(o?ds(t,e).length:1)},vs=_,ys=Ut,bs=Math.floor,ms=vs("".charAt),ks=vs("".replace),Ss=vs("".slice),Cs=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ws=/\$([$&'`]|\d{1,2})/g,xs=C,Is=Ge,Os=X,Es=B,Ts=za,js=g.TypeError,Ps=function(t,e){var o=t.exec;if(Os(o)){var r=xs(o,t,e);return null!==r&&Is(r),r}if("RegExp"===Es(t))return xs(Ts,t,e);throw js("RegExp#exec called on incompatible receiver")},Ns=Ya,As=C,Ls=_,Rs=is,_s=y,Ms=Ge,Vs=X,Ds=pr,Bs=mr,Fs=ai,$s=q,Gs=gs,Js=jt,Us=function(t,e,o,r,n,i){var a=o+t.length,s=r.length,c=ws;return void 0!==n&&(n=ys(n),c=Cs),ks(i,c,(function(i,c){var u;switch(ms(c,0)){case"$":return"$";case"&":return t;case"`":return Ss(e,0,o);case"'":return Ss(e,a);case"<":u=n[Ss(c,1,-1)];break;default:var l=+c;if(0===l)return i;if(l>s){var f=bs(l/10);return 0===f?i:f<=s?void 0===r[f-1]?ms(c,1):r[f-1]+ms(c,1):i}u=r[l-1]}return void 0===u?"":u}))},zs=Ps,Hs=ue("replace"),qs=Math.max,Ks=Math.min,Ws=Ls([].concat),Ys=Ls([].push),Xs=Ls("".indexOf),Qs=Ls("".slice),Zs="$0"==="a".replace(/./,"$0"),tc=!!/./[Hs]&&""===/./[Hs]("a","$0");Rs("replace",(function(t,e,o){var r=tc?"$":"$0";return[function(t,o){var r=$s(this),n=null==t?void 0:Js(t,Hs);return n?As(n,t,r,o):As(e,Fs(r),t,o)},function(t,n){var i=Ms(this),a=Fs(t);if("string"==typeof n&&-1===Xs(n,r)&&-1===Xs(n,"$<")){var s=o(e,i,a,n);if(s.done)return s.value}var c=Vs(n);c||(n=Fs(n));var u=i.global;if(u){var l=i.unicode;i.lastIndex=0}for(var f=[];;){var p=zs(i,a);if(null===p)break;if(Ys(f,p),!u)break;""===Fs(p[0])&&(i.lastIndex=Gs(a,Bs(i.lastIndex),l))}for(var h,d="",g=0,v=0;v<f.length;v++){for(var y=Fs((p=f[v])[0]),b=qs(Ks(Ds(p.index),a.length),0),m=[],k=1;k<p.length;k++)Ys(m,void 0===(h=p[k])?h:String(h));var S=p.groups;if(c){var C=Ws([y],m,b,a);void 0!==S&&Ys(C,S);var w=Fs(Ns(n,void 0,C))}else w=Us(y,a,b,m,S,n);b>=g&&(d+=Qs(a,g,b)+w,g=b+y.length)}return d+Qs(a,g)}]}),!!_s((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}))||!Zs||tc);var ec=ri,oc=Wn?{}.toString:function(){return"[object "+ec(this)+"]"};Wn||cr(Object.prototype,"toString",oc,{unsafe:!0});var rc=xe("span").classList,nc=rc&&rc.constructor&&rc.constructor.prototype,ic=nc===Object.prototype?void 0:nc,ac=Et,sc=m,cc=_(_.bind),uc=function(t,e){return ac(t),void 0===e?t:sc?cc(t,e):function(){return t.apply(e,arguments)}},lc=z,fc=Ut,pc=Sr,hc=$i,dc=_([].push),gc=function(t){var e=1==t,o=2==t,r=3==t,n=4==t,i=6==t,a=7==t,s=5==t||i;return function(c,u,l,f){for(var p,h,d=fc(c),g=lc(d),v=uc(u,l),y=pc(g),b=0,m=f||hc,k=e?m(c,y):o||a?m(c,0):void 0;y>b;b++)if((s||b in g)&&(h=v(p=g[b],b,d),t))if(e)k[b]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:dc(k,p)}else switch(t){case 4:return!1;case 7:dc(k,p)}return i?-1:r||n?n:k}},vc={forEach:gc(0),map:gc(1),filter:gc(2),some:gc(3),every:gc(4),find:gc(5),findIndex:gc(6),filterReject:gc(7)},yc=y,bc=function(t,e){var o=[][t];return!!o&&yc((function(){o.call(null,e||function(){return 1},1)}))},mc=vc.forEach,kc=bc("forEach")?[].forEach:function(t){return mc(this,t,arguments.length>1?arguments[1]:void 0)},Sc=g,Cc={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},wc=ic,xc=kc,Ic=oo,Oc=function(t){if(t&&t.forEach!==xc)try{Ic(t,"forEach",xc)}catch(e){t.forEach=xc}};for(var Ec in Cc)Cc[Ec]&&Oc(Sc[Ec]&&Sc[Ec].prototype);Oc(wc);var Tc=C,jc=qt,Pc=nt,Nc=ha,Ac=RegExp.prototype,Lc=uo.PROPER,Rc=cr,_c=Ge,Mc=ai,Vc=y,Dc=function(t){var e=t.flags;return void 0!==e||"flags"in Ac||jc(t,"flags")||!Pc(Ac,t)?e:Tc(Nc,t)},Bc="toString",Fc=RegExp.prototype.toString,$c=Vc((function(){return"/a/b"!=Fc.call({source:"a",flags:"b"})})),Gc=Lc&&Fc.name!=Bc;($c||Gc)&&Rc(RegExp.prototype,Bc,(function(){var t=_c(this);return"/"+Mc(t.source)+"/"+Mc(Dc(t))}),{unsafe:!0});var Jc=ln,Uc=vc.find,zc=Bn,Hc="find",qc=!0;Hc in[]&&Array(1).find((function(){qc=!1})),Jc({target:"Array",proto:!0,forced:qc},{find:function(t){return Uc(this,t,arguments.length>1?arguments[1]:void 0)}}),zc(Hc);var Kc=vc.filter;ln({target:"Array",proto:!0,forced:!zi("filter")},{filter:function(t){return Kc(this,t,arguments.length>1?arguments[1]:void 0)}});var Wc=Li,Yc=wt,Xc=g.TypeError,Qc=Ge,Zc=function(t){if(Wc(t))return t;throw Xc(Yc(t)+" is not a constructor")},tu=ue("species"),eu=vr,ou=Sr,ru=mi,nu=g.Array,iu=Math.max,au=Ya,su=C,cu=_,uu=is,lu=zn,fu=Ge,pu=q,hu=function(t,e){var o,r=Qc(t).constructor;return void 0===r||null==(o=Qc(r)[tu])?e:Zc(o)},du=gs,gu=mr,vu=ai,yu=jt,bu=function(t,e,o){for(var r=ou(t),n=eu(e,r),i=eu(void 0===o?r:o,r),a=nu(iu(i-n,0)),s=0;n<i;n++,s++)ru(a,s,t[n]);return a.length=s,a},mu=Ps,ku=za,Su=y,Cu=ba.UNSUPPORTED_Y,wu=4294967295,xu=Math.min,Iu=[].push,Ou=cu(/./.exec),Eu=cu(Iu),Tu=cu("".slice),ju=!Su((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var o="ab".split(t);return 2!==o.length||"a"!==o[0]||"b"!==o[1]}));uu("split",(function(t,e,o){var r;return r="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,o){var r=vu(pu(this)),n=void 0===o?wu:o>>>0;if(0===n)return[];if(void 0===t)return[r];if(!lu(t))return su(e,r,t,n);for(var i,a,s,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,f=new RegExp(t.source,u+"g");(i=su(ku,f,r))&&!((a=f.lastIndex)>l&&(Eu(c,Tu(r,l,i.index)),i.length>1&&i.index<r.length&&au(Iu,c,bu(i,1)),s=i[0].length,l=a,c.length>=n));)f.lastIndex===i.index&&f.lastIndex++;return l===r.length?!s&&Ou(f,"")||Eu(c,""):Eu(c,Tu(r,l)),c.length>n?bu(c,0,n):c}:"0".split(void 0,0).length?function(t,o){return void 0===t&&0===o?[]:su(e,this,t,o)}:e,[function(e,o){var n=pu(this),i=null==e?void 0:yu(e,t);return i?su(i,e,n,o):su(r,vu(n),e,o)},function(t,n){var i=fu(this),a=vu(t),s=o(r,i,a,n,r!==e);if(s.done)return s.value;var c=hu(i,RegExp),u=i.unicode,l=(i.ignoreCase?"i":"")+(i.multiline?"m":"")+(i.unicode?"u":"")+(Cu?"g":"y"),f=new c(Cu?"^(?:"+i.source+")":i,l),p=void 0===n?wu:n>>>0;if(0===p)return[];if(0===a.length)return null===mu(f,a)?[a]:[];for(var h=0,d=0,g=[];d<a.length;){f.lastIndex=Cu?0:d;var v,y=mu(f,Cu?Tu(a,d):a);if(null===y||(v=xu(gu(f.lastIndex+(Cu?d:0)),a.length))===h)d=du(a,d,u);else{if(Eu(g,Tu(a,h,d)),g.length===p)return g;for(var b=1;b<=y.length-1;b++)if(Eu(g,y[b]),g.length===p)return g;d=h=v}}return Eu(g,Tu(a,h)),g}]}),!ju,Cu);var Pu=vc.map;ln({target:"Array",proto:!0,forced:!zi("map")},{map:function(t){return Pu(this,t,arguments.length>1?arguments[1]:void 0)}});var Nu=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e},Au=C,Lu=Ge,Ru=q,_u=Nu,Mu=ai,Vu=jt,Du=Ps;is("search",(function(t,e,o){return[function(e){var o=Ru(this),r=null==e?void 0:Vu(e,t);return r?Au(r,e,o):new RegExp(e)[t](Mu(o))},function(t){var r=Lu(this),n=Mu(t),i=o(e,r,n);if(i.done)return i.value;var a=r.lastIndex;_u(a,0)||(r.lastIndex=0);var s=Du(r,n);return _u(r.lastIndex,a)||(r.lastIndex=a),null===s?-1:s.index}]}));var Bu=ln,Fu=z,$u=Y,Gu=bc,Ju=_([].join),Uu=Fu!=Object,zu=Gu("join",",");Bu({target:"Array",proto:!0,forced:Uu||!zu},{join:function(t){return Ju($u(this),void 0===t?",":t)}});var Hu=o.default.fn.bootstrapTable.utils,qu={cookieIds:{sortOrder:"bs.table.sortOrder",sortName:"bs.table.sortName",sortPriority:"bs.table.sortPriority",pageNumber:"bs.table.pageNumber",pageList:"bs.table.pageList",columns:"bs.table.columns",cardView:"bs.table.cardView",searchText:"bs.table.searchText",reorderColumns:"bs.table.reorderColumns",filterControl:"bs.table.filterControl",filterBy:"bs.table.filterBy"},getCurrentHeader:function(t){return t.options.height?t.$tableHeader:t.$header},getCurrentSearchControls:function(t){return t.options.height?"table select, table input":"select, input"},isCookieSupportedByBrowser:function(){return navigator.cookieEnabled},isCookieEnabled:function(t,e){return t.options.cookiesEnabled.includes(e)},setCookie:function(t,e,o){if(t.options.cookie&&qu.isCookieEnabled(t,e))return t._storage.setItem("".concat(t.options.cookieIdTable,".").concat(e),o)},getCookie:function(t,e){return e&&qu.isCookieEnabled(t,e)?t._storage.getItem("".concat(t.options.cookieIdTable,".").concat(e)):null},deleteCookie:function(t,e){return t._storage.removeItem("".concat(t.options.cookieIdTable,".").concat(e))},calculateExpiration:function(t){var e=t.replace(/[0-9]*/,"");switch(t=t.replace(/[A-Za-z]{1,2}/,""),e.toLowerCase()){case"s":t=+t;break;case"mi":t*=60;break;case"h":t=60*t*60;break;case"d":t=24*t*60*60;break;case"m":t=30*t*24*60*60;break;case"y":t=365*t*24*60*60;break;default:t=void 0}if(!t)return"";var o=new Date;return o.setTime(o.getTime()+1e3*t),o.toGMTString()},initCookieFilters:function(t){setTimeout((function(){var e=JSON.parse(qu.getCookie(t,qu.cookieIds.filterControl));if(!t._filterControlValuesLoaded&&e){var r={},n=qu.getCurrentHeader(t),i=qu.getCurrentSearchControls(t),a=n;t.options.filterControlContainer&&(a=o.default("".concat(t.options.filterControlContainer))),a.find(i).each((function(){var n=o.default(this).closest("[data-field]").data("field");!function(e,o){o.forEach((function(o){var n=e.value.toString(),i=o.text;if(""!==i&&("radio"!==e.type||n===i))if("INPUT"===e.tagName&&"radio"===e.type&&n===i)e.checked=!0,r[o.field]=i;else if("INPUT"===e.tagName)e.value=i,r[o.field]=i;else if("SELECT"===e.tagName&&t.options.filterControlContainer)e.value=i,r[o.field]=i;else if(""!==i&&"SELECT"===e.tagName){r[o.field]=i;var a,s=p(e);try{for(s.s();!(a=s.n()).done;){var c=a.value;if(c.value===i)return void(c.selected=!0)}}catch(t){s.e(t)}finally{s.f()}var u=document.createElement("option");u.value=i,u.text=i,e.add(u,e[1]),e.selectedIndex=1}}))}(this,e.filter((function(t){return t.field===n})))})),t.initColumnSearch(r),t._filterControlValuesLoaded=!0,t.initServer()}}),250)}};o.default.extend(o.default.fn.bootstrapTable.defaults,{cookie:!1,cookieExpire:"2h",cookiePath:null,cookieDomain:null,cookieSecure:null,cookieSameSite:"Lax",cookieIdTable:"",cookiesEnabled:["bs.table.sortOrder","bs.table.sortName","bs.table.sortPriority","bs.table.pageNumber","bs.table.pageList","bs.table.columns","bs.table.searchText","bs.table.filterControl","bs.table.filterBy","bs.table.reorderColumns","bs.table.cardView"],cookieStorage:"cookieStorage",cookieCustomStorageGet:null,cookieCustomStorageSet:null,cookieCustomStorageDelete:null,_filterControls:[],_filterControlValuesLoaded:!1,_storage:{setItem:void 0,getItem:void 0,removeItem:void 0}}),o.default.fn.bootstrapTable.methods.push("getCookies"),o.default.fn.bootstrapTable.methods.push("deleteCookie"),o.default.extend(o.default.fn.bootstrapTable.utils,{setCookie:qu.setCookie,getCookie:qu.getCookie}),o.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&&a(t,e)}(h,t);var e,s,u,f=c(h);function h(){return r(this,h),f.apply(this,arguments)}return e=h,s=[{key:"init",value:function(){if(this.options.cookie){if("cookieStorage"===this.options.cookieStorage&&!qu.isCookieSupportedByBrowser())throw new Error("Cookies are not enabled in this browser.");this.configureStorage();var t=qu.getCookie(this,qu.cookieIds.filterBy);if("boolean"==typeof t&&!t)throw new Error("The cookie value of filterBy must be a json!");var e={};try{e=JSON.parse(t)}catch(t){throw new Error("Could not parse the json of the filterBy cookie!")}if(this.filterColumns=e||{},this._filterControls=[],this._filterControlValuesLoaded=!1,this.options.cookiesEnabled="string"==typeof this.options.cookiesEnabled?this.options.cookiesEnabled.replace("[","").replace("]","").replace(/'/g,"").replace(/ /g,"").toLowerCase().split(","):this.options.cookiesEnabled,this.options.filterControl){var o=this;this.$el.on("column-search.bs.table",(function(t,e,r){for(var n=!0,i=0;i<o._filterControls.length;i++)if(o._filterControls[i].field===e){o._filterControls[i].text=r,n=!1;break}n&&o._filterControls.push({field:e,text:r}),qu.setCookie(o,qu.cookieIds.filterControl,JSON.stringify(o._filterControls))})).on("created-controls.bs.table",qu.initCookieFilters(o))}}l(i(h.prototype),"init",this).call(this)}},{key:"initServer",value:function(){var t;if(this.options.cookie&&this.options.filterControl&&!this._filterControlValuesLoaded){var e=JSON.parse(qu.getCookie(this,qu.cookieIds.filterControl));if(e)return}for(var o=arguments.length,r=new Array(o),n=0;n<o;n++)r[n]=arguments[n];(t=l(i(h.prototype),"initServer",this)).call.apply(t,[this].concat(r))}},{key:"initTable",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"initTable",this)).call.apply(t,[this].concat(o)),this.initCookie()}},{key:"onSort",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"onSort",this)).call.apply(t,[this].concat(o)),this.options.cookie&&(void 0===this.options.sortName||void 0===this.options.sortOrder?(qu.deleteCookie(this,qu.cookieIds.sortName),qu.deleteCookie(this,qu.cookieIds.sortOrder)):(this.options.sortPriority=null,qu.deleteCookie(this,qu.cookieIds.sortPriority),qu.setCookie(this,qu.cookieIds.sortOrder,this.options.sortOrder),qu.setCookie(this,qu.cookieIds.sortName,this.options.sortName)))}},{key:"onMultipleSort",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"onMultipleSort",this)).call.apply(t,[this].concat(o)),this.options.cookie&&(void 0===this.options.sortPriority?qu.deleteCookie(this,qu.cookieIds.sortPriority):(this.options.sortName=void 0,this.options.sortOrder=void 0,qu.deleteCookie(this,qu.cookieIds.sortName),qu.deleteCookie(this,qu.cookieIds.sortOrder),qu.setCookie(this,qu.cookieIds.sortPriority,JSON.stringify(this.options.sortPriority))))}},{key:"onPageNumber",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"onPageNumber",this)).call.apply(t,[this].concat(o)),this.options.cookie&&qu.setCookie(this,qu.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageListChange",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"onPageListChange",this)).call.apply(t,[this].concat(o)),this.options.cookie&&(qu.setCookie(this,qu.cookieIds.pageList,this.options.pageSize),qu.setCookie(this,qu.cookieIds.pageNumber,this.options.pageNumber))}},{key:"onPagePre",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"onPagePre",this)).call.apply(t,[this].concat(o)),this.options.cookie&&qu.setCookie(this,qu.cookieIds.pageNumber,this.options.pageNumber)}},{key:"onPageNext",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"onPageNext",this)).call.apply(t,[this].concat(o)),this.options.cookie&&qu.setCookie(this,qu.cookieIds.pageNumber,this.options.pageNumber)}},{key:"_toggleColumn",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"_toggleColumn",this)).call.apply(t,[this].concat(o)),this.options.cookie&&qu.setCookie(this,qu.cookieIds.columns,JSON.stringify(this.getVisibleColumns().map((function(t){return t.field}))))}},{key:"_toggleAllColumns",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"_toggleAllColumns",this)).call.apply(t,[this].concat(o)),this.options.cookie&&qu.setCookie(this,qu.cookieIds.columns,JSON.stringify(this.getVisibleColumns().map((function(t){return t.field}))))}},{key:"toggleView",value:function(){l(i(h.prototype),"toggleView",this).call(this),qu.setCookie(this,qu.cookieIds.cardView,this.options.cardView)}},{key:"selectPage",value:function(t){l(i(h.prototype),"selectPage",this).call(this,t),this.options.cookie&&qu.setCookie(this,qu.cookieIds.pageNumber,t)}},{key:"onSearch",value:function(t){l(i(h.prototype),"onSearch",this).call(this,t,!(arguments.length>1)||arguments[1]),this.options.cookie&&(this.options.search&&qu.setCookie(this,qu.cookieIds.searchText,this.searchText),qu.setCookie(this,qu.cookieIds.pageNumber,this.options.pageNumber))}},{key:"initHeader",value:function(){var t;this.options.reorderableColumns&&this.options.cookie&&(this.columnsSortOrder=JSON.parse(qu.getCookie(this,qu.cookieIds.reorderColumns)));for(var e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"initHeader",this)).call.apply(t,[this].concat(o))}},{key:"persistReorderColumnsState",value:function(t){qu.setCookie(t,qu.cookieIds.reorderColumns,JSON.stringify(t.columnsSortOrder))}},{key:"filterBy",value:function(){for(var t,e=arguments.length,o=new Array(e),r=0;r<e;r++)o[r]=arguments[r];(t=l(i(h.prototype),"filterBy",this)).call.apply(t,[this].concat(o)),this.options.cookie&&qu.setCookie(this,qu.cookieIds.filterBy,JSON.stringify(this.filterColumns))}},{key:"initCookie",value:function(){var t=this;if(this.options.cookie){if(""===this.options.cookieIdTable||""===this.options.cookieExpire)return console.error("Configuration error. Please review the cookieIdTable and the cookieExpire property. If the properties are correct, then this browser does not support cookies."),void(this.options.cookie=!1);var e=qu.getCookie(this,qu.cookieIds.sortOrder),o=qu.getCookie(this,qu.cookieIds.sortName),r=qu.getCookie(this,qu.cookieIds.sortPriority),n=qu.getCookie(this,qu.cookieIds.pageNumber),i=qu.getCookie(this,qu.cookieIds.pageList),a=qu.getCookie(this,qu.cookieIds.searchText),s=qu.getCookie(this,qu.cookieIds.cardView),c=qu.getCookie(this,qu.cookieIds.columns);if("boolean"==typeof c&&!c)throw new Error("The cookie value of filterBy must be a json!");var u={};try{u=JSON.parse(c)}catch(t){throw new Error("Could not parse the json of the columns cookie!",c)}try{r=JSON.parse(r)}catch(t){throw new Error("Could not parse the json of the sortPriority cookie!",r)}if(r?(this.options.sortOrder=void 0,this.options.sortName=void 0):(this.options.sortOrder=e||this.options.sortOrder,this.options.sortName=o||this.options.sortName),this.options.sortPriority=r||this.options.sortPriority,(this.options.sortOrder||this.options.sortName)&&(this.options.sortPriority=null),this.options.pageNumber=n?+n:this.options.pageNumber,this.options.pageSize=i?i===this.options.formatAllRows()?i:+i:this.options.pageSize,qu.isCookieEnabled(this,"bs.table.searchText")&&""===this.options.searchText&&(this.options.searchText=a||""),this.options.cardView="true"===s&&s,u){var l,f=p(this.columns);try{var h=function(){var e=l.value;if(!e.switchable)return"continue";e.visible=u.filter((function(o){return!!t.isSelectionColumn(e)||(o instanceof Object?o.field===e.field:o===e.field)})).length>0};for(f.s();!(l=f.n()).done;)h()}catch(t){f.e(t)}finally{f.f()}}}}},{key:"getCookies",value:function(){var t=this,e={};return o.default.each(qu.cookieIds,(function(o,r){e[o]=qu.getCookie(t,r),"columns"===o&&(e[o]=JSON.parse(e[o]))})),e}},{key:"deleteCookie",value:function(t){t&&qu.deleteCookie(this,qu.cookieIds[t])}},{key:"configureStorage",value:function(){var t=this;switch(this._storage={},this.options.cookieStorage){case"cookieStorage":this._storage.setItem=function(e,o){document.cookie=[e,"=",encodeURIComponent(o),"; expires=".concat(qu.calculateExpiration(t.options.cookieExpire)),t.options.cookiePath?"; path=".concat(t.options.cookiePath):"",t.options.cookieDomain?"; domain=".concat(t.options.cookieDomain):"",t.options.cookieSecure?"; secure":"",";SameSite=".concat(t.options.cookieSameSite)].join("")},this._storage.getItem=function(t){var e="; ".concat(document.cookie).split("; ".concat(t,"="));return 2===e.length?decodeURIComponent(e.pop().split(";").shift()):null},this._storage.removeItem=function(e){document.cookie=[encodeURIComponent(e),"=","; expires=Thu, 01 Jan 1970 00:00:00 GMT",t.options.cookiePath?"; path=".concat(t.options.cookiePath):"",t.options.cookieDomain?"; domain=".concat(t.options.cookieDomain):"",";SameSite=".concat(t.options.cookieSameSite)].join("")};break;case"localStorage":this._storage.setItem=function(t,e){localStorage.setItem(t,e)},this._storage.getItem=function(t){return localStorage.getItem(t)},this._storage.removeItem=function(t){localStorage.removeItem(t)};break;case"sessionStorage":this._storage.setItem=function(t,e){sessionStorage.setItem(t,e)},this._storage.getItem=function(t){return sessionStorage.getItem(t)},this._storage.removeItem=function(t){sessionStorage.removeItem(t)};break;case"customStorage":if(!this.options.cookieCustomStorageSet||!this.options.cookieCustomStorageGet||!this.options.cookieCustomStorageDelete)throw new Error("The following options must be set while using the customStorage: cookieCustomStorageSet, cookieCustomStorageGet and cookieCustomStorageDelete");this._storage.setItem=function(e,o){Hu.calculateObjectValue(t.options,t.options.cookieCustomStorageSet,[e,o],"")},this._storage.getItem=function(e){return Hu.calculateObjectValue(t.options,t.options.cookieCustomStorageGet,[e],"")},this._storage.removeItem=function(e){Hu.calculateObjectValue(t.options,t.options.cookieCustomStorageDelete,[e],"")};break;default:throw new Error("Storage method not supported.")}}}],s&&n(e.prototype,s),u&&n(e,u),Object.defineProperty(e,"prototype",{writable:!1}),h}(o.default.BootstrapTable)}));