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) • 28.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.17.1
* @homepage https://bootstrap-table.com
* @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
* @license MIT
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e((t=t||self).jQuery)}(this,(function(t){"use strict";t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t;var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(t,e){return t(e={exports:{}},e.exports),e.exports}var r=function(t){return t&&t.Math==Math&&t},o=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof e&&e)||Function("return this")(),i=function(t){try{return!!t()}catch(t){return!0}},a=!i((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),u={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,f={f:c&&!u.call({1:2},1)?function(t){var e=c(this,t);return!!e&&e.enumerable}:u},l=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},s={}.toString,p=function(t){return s.call(t).slice(8,-1)},d="".split,y=i((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==p(t)?d.call(t,""):Object(t)}:Object,v=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t},g=function(t){return y(v(t))},h=function(t){return"object"==typeof t?null!==t:"function"==typeof t},b=function(t,e){if(!h(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!h(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!h(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")},m={}.hasOwnProperty,S=function(t,e){return m.call(t,e)},O=o.document,w=h(O)&&h(O.createElement),x=function(t){return w?O.createElement(t):{}},j=!a&&!i((function(){return 7!=Object.defineProperty(x("div"),"a",{get:function(){return 7}}).a})),E=Object.getOwnPropertyDescriptor,T={f:a?E:function(t,e){if(t=g(t),e=b(e,!0),j)try{return E(t,e)}catch(t){}if(S(t,e))return l(!f.f.call(t,e),t[e])}},P=function(t){if(!h(t))throw TypeError(String(t)+" is not an object");return t},A=Object.defineProperty,_={f:a?A:function(t,e,n){if(P(t),e=b(e,!0),P(n),j)try{return A(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},I=a?function(t,e,n){return _.f(t,e,l(1,n))}:function(t,e,n){return t[e]=n,t},L=function(t,e){try{I(o,t,e)}catch(n){o[t]=e}return e},R=o["__core-js_shared__"]||L("__core-js_shared__",{}),k=Function.toString;"function"!=typeof R.inspectSource&&(R.inspectSource=function(t){return k.call(t)});var C,M,F,D=R.inspectSource,N=o.WeakMap,$="function"==typeof N&&/native code/.test(D(N)),V=n((function(t){(t.exports=function(t,e){return R[t]||(R[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.0",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})})),G=0,B=Math.random(),U=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++G+B).toString(36)},q=V("keys"),H=function(t){return q[t]||(q[t]=U(t))},z={},K=o.WeakMap;if($){var W=new K,Y=W.get,J=W.has,Q=W.set;C=function(t,e){return Q.call(W,t,e),e},M=function(t){return Y.call(W,t)||{}},F=function(t){return J.call(W,t)}}else{var X=H("state");z[X]=!0,C=function(t,e){return I(t,X,e),e},M=function(t){return S(t,X)?t[X]:{}},F=function(t){return S(t,X)}}var Z,tt={set:C,get:M,has:F,enforce:function(t){return F(t)?M(t):C(t,{})},getterFor:function(t){return function(e){var n;if(!h(e)||(n=M(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}},et=n((function(t){var e=tt.get,n=tt.enforce,r=String(String).split("String");(t.exports=function(t,e,i,a){var u=!!a&&!!a.unsafe,c=!!a&&!!a.enumerable,f=!!a&&!!a.noTargetGet;"function"==typeof i&&("string"!=typeof e||S(i,"name")||I(i,"name",e),n(i).source=r.join("string"==typeof e?e:"")),t!==o?(u?!f&&t[e]&&(c=!0):delete t[e],c?t[e]=i:I(t,e,i)):c?t[e]=i:L(e,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&e(this).source||D(this)}))})),nt=o,rt=function(t){return"function"==typeof t?t:void 0},ot=function(t,e){return arguments.length<2?rt(nt[t])||rt(o[t]):nt[t]&&nt[t][e]||o[t]&&o[t][e]},it=Math.ceil,at=Math.floor,ut=function(t){return isNaN(t=+t)?0:(t>0?at:it)(t)},ct=Math.min,ft=function(t){return t>0?ct(ut(t),9007199254740991):0},lt=Math.max,st=Math.min,pt=function(t){return function(e,n,r){var o,i=g(e),a=ft(i.length),u=function(t,e){var n=ut(t);return n<0?lt(n+e,0):st(n,e)}(r,a);if(t&&n!=n){for(;a>u;)if((o=i[u++])!=o)return!0}else for(;a>u;u++)if((t||u in i)&&i[u]===n)return t||u||0;return!t&&-1}},dt={includes:pt(!0),indexOf:pt(!1)},yt=dt.indexOf,vt=function(t,e){var n,r=g(t),o=0,i=[];for(n in r)!S(z,n)&&S(r,n)&&i.push(n);for(;e.length>o;)S(r,n=e[o++])&&(~yt(i,n)||i.push(n));return i},gt=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ht=gt.concat("length","prototype"),bt={f:Object.getOwnPropertyNames||function(t){return vt(t,ht)}},mt={f:Object.getOwnPropertySymbols},St=ot("Reflect","ownKeys")||function(t){var e=bt.f(P(t)),n=mt.f;return n?e.concat(n(t)):e},Ot=function(t,e){for(var n=St(e),r=_.f,o=T.f,i=0;i<n.length;i++){var a=n[i];S(t,a)||r(t,a,o(e,a))}},wt=/#|\.prototype\./,xt=function(t,e){var n=Et[jt(t)];return n==Pt||n!=Tt&&("function"==typeof e?i(e):!!e)},jt=xt.normalize=function(t){return String(t).replace(wt,".").toLowerCase()},Et=xt.data={},Tt=xt.NATIVE="N",Pt=xt.POLYFILL="P",At=xt,_t=T.f,It=function(t,e){var n,r,i,a,u,c=t.target,f=t.global,l=t.stat;if(n=f?o:l?o[c]||L(c,{}):(o[c]||{}).prototype)for(r in e){if(a=e[r],i=t.noTargetGet?(u=_t(n,r))&&u.value:n[r],!At(f?r:c+(l?".":"#")+r,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;Ot(a,i)}(t.sham||i&&i.sham)&&I(a,"sham",!0),et(n,r,a,t)}},Lt=!!Object.getOwnPropertySymbols&&!i((function(){return!String(Symbol())})),Rt=Lt&&!Symbol.sham&&"symbol"==typeof Symbol(),kt=Array.isArray||function(t){return"Array"==p(t)},Ct=function(t){return Object(v(t))},Mt=Object.keys||function(t){return vt(t,gt)},Ft=a?Object.defineProperties:function(t,e){P(t);for(var n,r=Mt(e),o=r.length,i=0;o>i;)_.f(t,n=r[i++],e[n]);return t},Dt=ot("document","documentElement"),Nt=H("IE_PROTO"),$t=function(){},Vt=function(t){return"<script>"+t+"<\/script>"},Gt=function(){try{Z=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,e;Gt=Z?function(t){t.write(Vt("")),t.close();var e=t.parentWindow.Object;return t=null,e}(Z):((e=x("iframe")).style.display="none",Dt.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(Vt("document.F=Object")),t.close(),t.F);for(var n=gt.length;n--;)delete Gt.prototype[gt[n]];return Gt()};z[Nt]=!0;var Bt=Object.create||function(t,e){var n;return null!==t?($t.prototype=P(t),n=new $t,$t.prototype=null,n[Nt]=t):n=Gt(),void 0===e?n:Ft(n,e)},Ut=bt.f,qt={}.toString,Ht="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zt={f:function(t){return Ht&&"[object Window]"==qt.call(t)?function(t){try{return Ut(t)}catch(t){return Ht.slice()}}(t):Ut(g(t))}},Kt=V("wks"),Wt=o.Symbol,Yt=Rt?Wt:U,Jt=function(t){return S(Kt,t)||(Lt&&S(Wt,t)?Kt[t]=Wt[t]:Kt[t]=Yt("Symbol."+t)),Kt[t]},Qt={f:Jt},Xt=_.f,Zt=function(t){var e=nt.Symbol||(nt.Symbol={});S(e,t)||Xt(e,t,{value:Qt.f(t)})},te=_.f,ee=Jt("toStringTag"),ne=function(t,e,n){t&&!S(t=n?t:t.prototype,ee)&&te(t,ee,{configurable:!0,value:e})},re=function(t,e,n){if(function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function")}(t),void 0===e)return t;switch(n){case 0:return function(){return t.call(e)};case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}},oe=Jt("species"),ie=function(t,e){var n;return kt(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!kt(n.prototype)?h(n)&&null===(n=n[oe])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)},ae=[].push,ue=function(t){var e=1==t,n=2==t,r=3==t,o=4==t,i=6==t,a=5==t||i;return function(u,c,f,l){for(var s,p,d=Ct(u),v=y(d),g=re(c,f,3),h=ft(v.length),b=0,m=l||ie,S=e?m(u,h):n?m(u,0):void 0;h>b;b++)if((a||b in v)&&(p=g(s=v[b],b,d),t))if(e)S[b]=p;else if(p)switch(t){case 3:return!0;case 5:return s;case 6:return b;case 2:ae.call(S,s)}else if(o)return!1;return i?-1:r||o?o:S}},ce={forEach:ue(0),map:ue(1),filter:ue(2),some:ue(3),every:ue(4),find:ue(5),findIndex:ue(6)},fe=ce.forEach,le=H("hidden"),se=Jt("toPrimitive"),pe=tt.set,de=tt.getterFor("Symbol"),ye=Object.prototype,ve=o.Symbol,ge=ot("JSON","stringify"),he=T.f,be=_.f,me=zt.f,Se=f.f,Oe=V("symbols"),we=V("op-symbols"),xe=V("string-to-symbol-registry"),je=V("symbol-to-string-registry"),Ee=V("wks"),Te=o.QObject,Pe=!Te||!Te.prototype||!Te.prototype.findChild,Ae=a&&i((function(){return 7!=Bt(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=he(ye,e);r&&delete ye[e],be(t,e,n),r&&t!==ye&&be(ye,e,r)}:be,_e=function(t,e){var n=Oe[t]=Bt(ve.prototype);return pe(n,{type:"Symbol",tag:t,description:e}),a||(n.description=e),n},Ie=Lt&&"symbol"==typeof ve.iterator?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof ve},Le=function(t,e,n){t===ye&&Le(we,e,n),P(t);var r=b(e,!0);return P(n),S(Oe,r)?(n.enumerable?(S(t,le)&&t[le][r]&&(t[le][r]=!1),n=Bt(n,{enumerable:l(0,!1)})):(S(t,le)||be(t,le,l(1,{})),t[le][r]=!0),Ae(t,r,n)):be(t,r,n)},Re=function(t,e){P(t);var n=g(e),r=Mt(n).concat(Fe(n));return fe(r,(function(e){a&&!ke.call(n,e)||Le(t,e,n[e])})),t},ke=function(t){var e=b(t,!0),n=Se.call(this,e);return!(this===ye&&S(Oe,e)&&!S(we,e))&&(!(n||!S(this,e)||!S(Oe,e)||S(this,le)&&this[le][e])||n)},Ce=function(t,e){var n=g(t),r=b(e,!0);if(n!==ye||!S(Oe,r)||S(we,r)){var o=he(n,r);return!o||!S(Oe,r)||S(n,le)&&n[le][r]||(o.enumerable=!0),o}},Me=function(t){var e=me(g(t)),n=[];return fe(e,(function(t){S(Oe,t)||S(z,t)||n.push(t)})),n},Fe=function(t){var e=t===ye,n=me(e?we:g(t)),r=[];return fe(n,(function(t){!S(Oe,t)||e&&!S(ye,t)||r.push(Oe[t])})),r};if(Lt||(et((ve=function(){if(this instanceof ve)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=U(t),n=function(t){this===ye&&n.call(we,t),S(this,le)&&S(this[le],e)&&(this[le][e]=!1),Ae(this,e,l(1,t))};return a&&Pe&&Ae(ye,e,{configurable:!0,set:n}),_e(e,t)}).prototype,"toString",(function(){return de(this).tag})),f.f=ke,_.f=Le,T.f=Ce,bt.f=zt.f=Me,mt.f=Fe,a&&(be(ve.prototype,"description",{configurable:!0,get:function(){return de(this).description}}),et(ye,"propertyIsEnumerable",ke,{unsafe:!0}))),Rt||(Qt.f=function(t){return _e(Jt(t),t)}),It({global:!0,wrap:!0,forced:!Lt,sham:!Lt},{Symbol:ve}),fe(Mt(Ee),(function(t){Zt(t)})),It({target:"Symbol",stat:!0,forced:!Lt},{for:function(t){var e=String(t);if(S(xe,e))return xe[e];var n=ve(e);return xe[e]=n,je[n]=e,n},keyFor:function(t){if(!Ie(t))throw TypeError(t+" is not a symbol");if(S(je,t))return je[t]},useSetter:function(){Pe=!0},useSimple:function(){Pe=!1}}),It({target:"Object",stat:!0,forced:!Lt,sham:!a},{create:function(t,e){return void 0===e?Bt(t):Re(Bt(t),e)},defineProperty:Le,defineProperties:Re,getOwnPropertyDescriptor:Ce}),It({target:"Object",stat:!0,forced:!Lt},{getOwnPropertyNames:Me,getOwnPropertySymbols:Fe}),It({target:"Object",stat:!0,forced:i((function(){mt.f(1)}))},{getOwnPropertySymbols:function(t){return mt.f(Ct(t))}}),ge){var De=!Lt||i((function(){var t=ve();return"[null]"!=ge([t])||"{}"!=ge({a:t})||"{}"!=ge(Object(t))}));It({target:"JSON",stat:!0,forced:De},{stringify:function(t,e,n){for(var r,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(r=e,(h(e)||void 0!==t)&&!Ie(t))return kt(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Ie(e))return e}),o[1]=e,ge.apply(null,o)}})}ve.prototype[se]||I(ve.prototype,se,ve.prototype.valueOf),ne(ve,"Symbol"),z[le]=!0;var Ne=_.f,$e=o.Symbol;if(a&&"function"==typeof $e&&(!("description"in $e.prototype)||void 0!==$e().description)){var Ve={},Ge=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),e=this instanceof Ge?new $e(t):void 0===t?$e():$e(t);return""===t&&(Ve[e]=!0),e};Ot(Ge,$e);var Be=Ge.prototype=$e.prototype;Be.constructor=Ge;var Ue=Be.toString,qe="Symbol(test)"==String($e("test")),He=/^Symbol\((.*)\)[^)]+$/;Ne(Be,"description",{configurable:!0,get:function(){var t=h(this)?this.valueOf():this,e=Ue.call(t);if(S(Ve,t))return"";var n=qe?e.slice(7,-1):e.replace(He,"$1");return""===n?void 0:n}}),It({global:!0,forced:!0},{Symbol:Ge})}Zt("iterator");var ze,Ke,We=function(t,e,n){var r=b(e);r in t?_.f(t,r,l(0,n)):t[r]=n},Ye=ot("navigator","userAgent")||"",Je=o.process,Qe=Je&&Je.versions,Xe=Qe&&Qe.v8;Xe?Ke=(ze=Xe.split("."))[0]+ze[1]:Ye&&(!(ze=Ye.match(/Edge\/(\d+)/))||ze[1]>=74)&&(ze=Ye.match(/Chrome\/(\d+)/))&&(Ke=ze[1]);var Ze=Ke&&+Ke,tn=Jt("species"),en=Jt("isConcatSpreadable"),nn=Ze>=51||!i((function(){var t=[];return t[en]=!1,t.concat()[0]!==t})),rn=function(t){return Ze>=51||!i((function(){var e=[];return(e.constructor={})[tn]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}("concat"),on=function(t){if(!h(t))return!1;var e=t[en];return void 0!==e?!!e:kt(t)};It({target:"Array",proto:!0,forced:!nn||!rn},{concat:function(t){var e,n,r,o,i,a=Ct(this),u=ie(a,0),c=0;for(e=-1,r=arguments.length;e<r;e++)if(on(i=-1===e?a:arguments[e])){if(c+(o=ft(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,c++)n in i&&We(u,c,i[n])}else{if(c>=9007199254740991)throw TypeError("Maximum allowed index exceeded");We(u,c++,i)}return u.length=c,u}});var an=Jt("unscopables"),un=Array.prototype;null==un[an]&&_.f(un,an,{configurable:!0,value:Bt(null)});var cn=function(t){un[an][t]=!0},fn=ce.find,ln=!0;"find"in[]&&Array(1).find((function(){ln=!1})),It({target:"Array",proto:!0,forced:ln},{find:function(t){return fn(this,t,arguments.length>1?arguments[1]:void 0)}}),cn("find");var sn=function(t,e){var n=[][t];return!n||!i((function(){n.call(null,e||function(){throw 1},1)}))},pn=dt.indexOf,dn=[].indexOf,yn=!!dn&&1/[1].indexOf(1,-0)<0,vn=sn("indexOf");It({target:"Array",proto:!0,forced:yn||vn},{indexOf:function(t){return yn?dn.apply(this,arguments)||0:pn(this,t,arguments.length>1?arguments[1]:void 0)}});var gn,hn,bn,mn=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),Sn=H("IE_PROTO"),On=Object.prototype,wn=mn?Object.getPrototypeOf:function(t){return t=Ct(t),S(t,Sn)?t[Sn]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?On:null},xn=Jt("iterator"),jn=!1;[].keys&&("next"in(bn=[].keys())?(hn=wn(wn(bn)))!==Object.prototype&&(gn=hn):jn=!0),null==gn&&(gn={}),S(gn,xn)||I(gn,xn,(function(){return this}));var En={IteratorPrototype:gn,BUGGY_SAFARI_ITERATORS:jn},Tn=En.IteratorPrototype,Pn=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return P(n),function(t){if(!h(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(r),e?t.call(n,r):n.__proto__=r,n}}():void 0),An=En.IteratorPrototype,_n=En.BUGGY_SAFARI_ITERATORS,In=Jt("iterator"),Ln=function(){return this},Rn=function(t,e,n,r,o,i,a){!function(t,e,n){var r=e+" Iterator";t.prototype=Bt(Tn,{next:l(1,n)}),ne(t,r,!1)}(n,e,r);var u,c,f,s=function(t){if(t===o&&g)return g;if(!_n&&t in y)return y[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},p=e+" Iterator",d=!1,y=t.prototype,v=y[In]||y["@@iterator"]||o&&y[o],g=!_n&&v||s(o),h="Array"==e&&y.entries||v;if(h&&(u=wn(h.call(new t)),An!==Object.prototype&&u.next&&(wn(u)!==An&&(Pn?Pn(u,An):"function"!=typeof u[In]&&I(u,In,Ln)),ne(u,p,!0))),"values"==o&&v&&"values"!==v.name&&(d=!0,g=function(){return v.call(this)}),y[In]!==g&&I(y,In,g),o)if(c={values:s("values"),keys:i?g:s("keys"),entries:s("entries")},a)for(f in c)(_n||d||!(f in y))&&et(y,f,c[f]);else It({target:e,proto:!0,forced:_n||d},c);return c},kn=tt.set,Cn=tt.getterFor("Array Iterator"),Mn=Rn(Array,"Array",(function(t,e){kn(this,{type:"Array Iterator",target:g(t),index:0,kind:e})}),(function(){var t=Cn(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:r,done:!1}:"values"==n?{value:e[r],done:!1}:{value:[r,e[r]],done:!1}}),"values");cn("keys"),cn("values"),cn("entries");var Fn=[].join,Dn=y!=Object,Nn=sn("join",",");It({target:"Array",proto:!0,forced:Dn||Nn},{join:function(t){return Fn.call(g(this),void 0===t?",":t)}});var $n=f.f,Vn=function(t){return function(e){for(var n,r=g(e),o=Mt(r),i=o.length,u=0,c=[];i>u;)n=o[u++],a&&!$n.call(r,n)||c.push(t?[n,r[n]]:r[n]);return c}},Gn={entries:Vn(!0),values:Vn(!1)}.entries;It({target:"Object",stat:!0},{entries:function(t){return Gn(t)}});var Bn={};Bn[Jt("toStringTag")]="z";var Un="[object z]"===String(Bn),qn=Jt("toStringTag"),Hn="Arguments"==p(function(){return arguments}()),zn=Un?p: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=Object(t),qn))?n:Hn?p(e):"Object"==(r=p(e))&&"function"==typeof e.callee?"Arguments":r},Kn=Un?{}.toString:function(){return"[object "+zn(this)+"]"};Un||et(Object.prototype,"toString",Kn,{unsafe:!0});var Wn=function(){var t=P(this),e="";return 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};function Yn(t,e){return RegExp(t,e)}var Jn,Qn,Xn={UNSUPPORTED_Y:i((function(){var t=Yn("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),BROKEN_CARET:i((function(){var t=Yn("^r","gy");return t.lastIndex=2,null!=t.exec("str")}))},Zn=RegExp.prototype.exec,tr=String.prototype.replace,er=Zn,nr=(Jn=/a/,Qn=/b*/g,Zn.call(Jn,"a"),Zn.call(Qn,"a"),0!==Jn.lastIndex||0!==Qn.lastIndex),rr=Xn.UNSUPPORTED_Y||Xn.BROKEN_CARET,or=void 0!==/()??/.exec("")[1];(nr||or||rr)&&(er=function(t){var e,n,r,o,i=this,a=rr&&i.sticky,u=Wn.call(i),c=i.source,f=0,l=t;return a&&(-1===(u=u.replace("y","")).indexOf("g")&&(u+="g"),l=String(t).slice(i.lastIndex),i.lastIndex>0&&(!i.multiline||i.multiline&&"\n"!==t[i.lastIndex-1])&&(c="(?: "+c+")",l=" "+l,f++),n=new RegExp("^(?:"+c+")",u)),or&&(n=new RegExp("^"+c+"$(?!\\s)",u)),nr&&(e=i.lastIndex),r=Zn.call(a?n:i,l),a?r?(r.input=r.input.slice(f),r[0]=r[0].slice(f),r.index=i.lastIndex,i.lastIndex+=r[0].length):i.lastIndex=0:nr&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),or&&r&&r.length>1&&tr.call(r[0],n,(function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)})),r});var ir=er;It({target:"RegExp",proto:!0,forced:/./.exec!==ir},{exec:ir});var ar=function(t){return function(e,n){var r,o,i=String(v(e)),a=ut(n),u=i.length;return a<0||a>=u?t?"":void 0:(r=i.charCodeAt(a))<55296||r>56319||a+1===u||(o=i.charCodeAt(a+1))<56320||o>57343?t?i.charAt(a):r:t?i.slice(a,a+2):o-56320+(r-55296<<10)+65536}},ur={codeAt:ar(!1),charAt:ar(!0)},cr=ur.charAt,fr=tt.set,lr=tt.getterFor("String Iterator");Rn(String,"String",(function(t){fr(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,e=lr(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=cr(n,r),e.index+=t.length,{value:t,done:!1})}));var sr=Jt("species"),pr=!i((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")})),dr="$0"==="a".replace(/./,"$0"),yr=!i((function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2!==n.length||"a"!==n[0]||"b"!==n[1]})),vr=ur.charAt,gr=function(t,e,n){return e+(n?vr(t,e).length:1)},hr=function(t,e){var n=t.exec;if("function"==typeof n){var r=n.call(t,e);if("object"!=typeof r)throw TypeError("RegExp exec method returned something other than an Object or null");return r}if("RegExp"!==p(t))throw TypeError("RegExp#exec called on incompatible receiver");return ir.call(t,e)},br=Math.max,mr=Math.min,Sr=Math.floor,Or=/\$([$&'`]|\d\d?|<[^>]*>)/g,wr=/\$([$&'`]|\d\d?)/g;!function(t,e,n,r){var o=Jt(t),a=!i((function(){var e={};return e[o]=function(){return 7},7!=""[t](e)})),u=a&&!i((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={},n.constructor[sr]=function(){return n},n.flags="",n[o]=/./[o]),n.exec=function(){return e=!0,null},n[o](""),!e}));if(!a||!u||"replace"===t&&(!pr||!dr)||"split"===t&&!yr){var c=/./[o],f=n(o,""[t],(function(t,e,n,r,o){return e.exec===ir?a&&!o?{done:!0,value:c.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),{REPLACE_KEEPS_$0:dr}),l=f[0],s=f[1];et(String.prototype,t,l),et(RegExp.prototype,o,2==e?function(t,e){return s.call(t,this,e)}:function(t){return s.call(t,this)})}r&&I(RegExp.prototype[o],"sham",!0)}("replace",2,(function(t,e,n,r){return[function(n,r){var o=v(this),i=null==n?void 0:n[t];return void 0!==i?i.call(n,o,r):e.call(String(o),n,r)},function(t,i){if(r.REPLACE_KEEPS_$0||"string"==typeof i&&-1===i.indexOf("$0")){var a=n(e,t,this,i);if(a.done)return a.value}var u=P(t),c=String(this),f="function"==typeof i;f||(i=String(i));var l=u.global;if(l){var s=u.unicode;u.lastIndex=0}for(var p=[];;){var d=hr(u,c);if(null===d)break;if(p.push(d),!l)break;""===String(d[0])&&(u.lastIndex=gr(c,ft(u.lastIndex),s))}for(var y,v="",g=0,h=0;h<p.length;h++){d=p[h];for(var b=String(d[0]),m=br(mr(ut(d.index),c.length),0),S=[],O=1;O<d.length;O++)S.push(void 0===(y=d[O])?y:String(y));var w=d.groups;if(f){var x=[b].concat(S,m,c);void 0!==w&&x.push(w);var j=String(i.apply(void 0,x))}else j=o(b,c,m,S,w,i);m>=g&&(v+=c.slice(g,m)+j,g=m+b.length)}return v+c.slice(g)}];function o(t,n,r,o,i,a){var u=r+t.length,c=o.length,f=wr;return void 0!==i&&(i=Ct(i),f=Or),e.call(a,f,(function(e,a){var f;switch(a.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(u);case"<":f=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return e;if(l>c){var s=Sr(l/10);return 0===s?e:s<=c?void 0===o[s-1]?a.charAt(1):o[s-1]+a.charAt(1):e}f=o[l-1]}return void 0===f?"":f}))}}));var xr={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},jr=Jt("iterator"),Er=Jt("toStringTag"),Tr=Mn.values;for(var Pr in xr){var Ar=o[Pr],_r=Ar&&Ar.prototype;if(_r){if(_r[jr]!==Tr)try{I(_r,jr,Tr)}catch(t){_r[jr]=Tr}if(_r[Er]||I(_r,Er,Pr),xr[Pr])for(var Ir in Mn)if(_r[Ir]!==Mn[Ir])try{I(_r,Ir,Mn[Ir])}catch(t){_r[Ir]=Mn[Ir]}}}function Lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rr(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 kr(t){return(kr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Cr(t,e){return(Cr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mr(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fr(t,e,n){return(Fr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=kr(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Dr(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if(!(Symbol.iterator in Object(t))&&"[object Arguments]"!==Object.prototype.toString.call(t))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Nr=t.fn.bootstrapTable.utils;t.extend(t.fn.bootstrapTable.defaults,{editable:!0,onEditableInit:function(){return!1},onEditableSave:function(t,e,n,r,o){return!1},onEditableShown:function(t,e,n,r){return!1},onEditableHidden:function(t,e,n,r){return!1}}),t.extend(t.fn.bootstrapTable.columnDefaults,{alwaysUseFormatter:!1}),t.extend(t.fn.bootstrapTable.Constructor.EVENTS,{"editable-init.bs.table":"onEditableInit","editable-save.bs.table":"onEditableSave","editable-shown.bs.table":"onEditableShown","editable-hidden.bs.table":"onEditableHidden"}),t.BootstrapTable=function(e){function n(){return Lr(this,n),Mr(this,kr(n).apply(this,arguments))}var r,o,i;return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cr(t,e)}(n,e),r=n,(o=[{key:"initTable",value:function(){var e=this;Fr(kr(n.prototype),"initTable",this).call(this),this.options.editable&&(this.editedCells=[],t.each(this.columns,(function(n,r){if(r.editable){var o={},i=[],a=function(t,e){var n=t.replace(/([A-Z])/g,(function(t){return"-".concat(t.toLowerCase())}));0===n.indexOf("editable-")&&(o[n.replace("editable-","data-")]=e)};t.each(e.options,a),r.formatter=r.formatter||function(t){return t},r._formatter=r._formatter?r._formatter:r.formatter,r.formatter=function(n,u,c){var f=Nr.calculateObjectValue(r,r._formatter,[n,u,c],n);if(f=null==f?e.options.undefinedText:f,void 0!==e.options.uniqueId&&!r.alwaysUseFormatter){var l=Nr.getItemField(u,e.options.uniqueId,!1);-1!==t.inArray(r.field+l,e.editedCells)&&(f=n)}t.each(r,a),t.each(o,(function(t,e){i.push(" ".concat(t,'="').concat(e,'"'))}));var s=!1,p=Nr.calculateObjectValue(r,r.editable,[c,u],{});return p.hasOwnProperty("noEditFormatter")&&(s=p.noEditFormatter(n,u,c)),!1===s?'<a href="javascript:void(0)"\n data-name="'.concat(r.field,'"\n data-pk="').concat(u[e.options.idField],'"\n data-value="').concat(f,'"\n ').concat(i.join(""),"></a>"):s}}})))}},{key:"initBody",value:function(e){var r=this;Fr(kr(n.prototype),"initBody",this).call(this,e),this.options.editable&&(t.each(this.columns,(function(e,n){if(n.editable){var o=r.getData({escape:!0}),i=r.$body.find('a[data-name="'.concat(n.field,'"]'));i.each((function(e,r){var i=t(r),a=i.closest("tr").data("index"),u=o[a],c=Nr.calculateObjectValue(n,n.editable,[a,u,i],{});i.editable(c)})),i.off("save").on("save",(function(e,o){var i=e.currentTarget,a=o.submitValue,u=t(i),c=r.getData(),f=u.parents("tr[data-index]").data("index"),l=c[f],s=l[n.field];if(void 0!==r.options.uniqueId&&!n.alwaysUseFormatter){var p=Nr.getItemField(l,r.options.uniqueId,!1);-1===t.inArray(n.field+p,r.editedCells)&&r.editedCells.push(n.field+p)}a=Nr.escapeHTML(a),u.data("value",a),l[n.field]=a,r.trigger("editable-save",n.field,l,f,s,u),r.initBody()})),i.off("shown").on("shown",(function(e,o){var i=e.currentTarget,a=t(i),u=r.getData()[a.parents("tr[data-index]").data("index")];r.trigger("editable-shown",n.field,u,a,o)})),i.off("hidden").on("hidden",(function(e,o){var i=e.currentTarget,a=t(i),u=r.getData()[a.parents("tr[data-index]").data("index")];r.trigger("editable-hidden",n.field,u,a,o)}))}})),this.trigger("editable-init"))}},{key:"getData",value:function(t){var e=Fr(kr(n.prototype),"getData",this).call(this,t);if(t&&t.escape){var r=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(r=(a=u.next()).done);r=!0)for(var c=a.value,f=0,l=Object.entries(c);f<l.length;f++){var s=Dr(l[f],2),p=s[0],d=s[1];c[p]=Nr.unescapeHTML(d)}}catch(t){o=!0,i=t}finally{try{r||null==u.return||u.return()}finally{if(o)throw i}}}return e}}])&&Rr(r.prototype,o),i&&Rr(r,i),n}(t.BootstrapTable)}));