UNPKG

15.4 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.21.3
5 * @homepage https://bootstrap-table.com
6 * @author wenzhixin <wenzhixin2010@gmail.com> (http://wenzhixin.net.cn/)
7 * @license MIT
8 */
9
10!function(t,n){"object"==typeof exports&&"undefined"!=typeof module?n(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],n):n((t="undefined"!=typeof globalThis?globalThis:t||self).jQuery)}(this,(function(t){"use strict";var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=function(t){return t&&t.Math==Math&&t},e=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n&&n)||function(){return this}()||Function("return this")(),o={},i=function(t){try{return!!t()}catch(t){return!0}},u=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),a=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),c=a,f=Function.prototype.call,l=c?f.bind(f):function(){return f.apply(f,arguments)},s={},p={}.propertyIsEnumerable,g=Object.getOwnPropertyDescriptor,b=g&&!p.call({1:2},1);s.f=b?function(t){var n=g(this,t);return!!n&&n.enumerable}:p;var y,d,m=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}},h=a,v=Function.prototype,S=v.call,w=h&&v.bind.bind(S,S),O=h?w:function(t){return function(){return S.apply(t,arguments)}},j=O,P=j({}.toString),T=j("".slice),E=function(t){return T(P(t),8,-1)},x=i,A=E,C=Object,R=O("".split),M=x((function(){return!C("z").propertyIsEnumerable(0)}))?function(t){return"String"==A(t)?R(t,""):C(t)}:C,F=function(t){return null==t},D=F,I=TypeError,L=function(t){if(D(t))throw I("Can't call method on "+t);return t},k=M,N=L,z=function(t){return k(N(t))},_="object"==typeof document&&document.all,q={all:_,IS_HTMLDDA:void 0===_&&void 0!==_},B=q.all,G=q.IS_HTMLDDA?function(t){return"function"==typeof t||t===B}:function(t){return"function"==typeof t},H=G,U=q.all,W=q.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:H(t)||t===U}:function(t){return"object"==typeof t?null!==t:H(t)},J=e,K=G,Q=function(t){return K(t)?t:void 0},V=function(t,n){return arguments.length<2?Q(J[t]):J[t]&&J[t][n]},X=O({}.isPrototypeOf),Y=e,$="undefined"!=typeof navigator&&String(navigator.userAgent)||"",Z=Y.process,tt=Y.Deno,nt=Z&&Z.versions||tt&&tt.version,rt=nt&&nt.v8;rt&&(d=(y=rt.split("."))[0]>0&&y[0]<4?1:+(y[0]+y[1])),!d&&$&&(!(y=$.match(/Edge\/(\d+)/))||y[1]>=74)&&(y=$.match(/Chrome\/(\d+)/))&&(d=+y[1]);var et=d,ot=et,it=i,ut=!!Object.getOwnPropertySymbols&&!it((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&ot&&ot<41})),at=ut&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ct=V,ft=G,lt=X,st=Object,pt=at?function(t){return"symbol"==typeof t}:function(t){var n=ct("Symbol");return ft(n)&&lt(n.prototype,st(t))},gt=String,bt=G,yt=function(t){try{return gt(t)}catch(t){return"Object"}},dt=TypeError,mt=function(t){if(bt(t))return t;throw dt(yt(t)+" is not a function")},ht=F,vt=l,St=G,wt=W,Ot=TypeError,jt={},Pt={get exports(){return jt},set exports(t){jt=t}},Tt=e,Et=Object.defineProperty,xt=function(t,n){try{Et(Tt,t,{value:n,configurable:!0,writable:!0})}catch(r){Tt[t]=n}return n},At=xt,Ct="__core-js_shared__",Rt=e[Ct]||At(Ct,{}),Mt=Rt;(Pt.exports=function(t,n){return Mt[t]||(Mt[t]=void 0!==n?n:{})})("versions",[]).push({version:"3.29.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Ft=L,Dt=Object,It=function(t){return Dt(Ft(t))},Lt=It,kt=O({}.hasOwnProperty),Nt=Object.hasOwn||function(t,n){return kt(Lt(t),n)},zt=O,_t=0,qt=Math.random(),Bt=zt(1..toString),Gt=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Bt(++_t+qt,36)},Ht=jt,Ut=Nt,Wt=Gt,Jt=ut,Kt=at,Qt=e.Symbol,Vt=Ht("wks"),Xt=Kt?Qt.for||Qt:Qt&&Qt.withoutSetter||Wt,Yt=function(t){return Ut(Vt,t)||(Vt[t]=Jt&&Ut(Qt,t)?Qt[t]:Xt("Symbol."+t)),Vt[t]},$t=l,Zt=W,tn=pt,nn=function(t,n){var r=t[n];return ht(r)?void 0:mt(r)},rn=function(t,n){var r,e;if("string"===n&&St(r=t.toString)&&!wt(e=vt(r,t)))return e;if(St(r=t.valueOf)&&!wt(e=vt(r,t)))return e;if("string"!==n&&St(r=t.toString)&&!wt(e=vt(r,t)))return e;throw Ot("Can't convert object to primitive value")},en=TypeError,on=Yt("toPrimitive"),un=function(t,n){if(!Zt(t)||tn(t))return t;var r,e=nn(t,on);if(e){if(void 0===n&&(n="default"),r=$t(e,t,n),!Zt(r)||tn(r))return r;throw en("Can't convert object to primitive value")}return void 0===n&&(n="number"),rn(t,n)},an=pt,cn=function(t){var n=un(t,"string");return an(n)?n:n+""},fn=W,ln=e.document,sn=fn(ln)&&fn(ln.createElement),pn=function(t){return sn?ln.createElement(t):{}},gn=!u&&!i((function(){return 7!=Object.defineProperty(pn("div"),"a",{get:function(){return 7}}).a})),bn=u,yn=l,dn=s,mn=m,hn=z,vn=cn,Sn=Nt,wn=gn,On=Object.getOwnPropertyDescriptor;o.f=bn?On:function(t,n){if(t=hn(t),n=vn(n),wn)try{return On(t,n)}catch(t){}if(Sn(t,n))return mn(!yn(dn.f,t,n),t[n])};var jn={},Pn=u&&i((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Tn=W,En=String,xn=TypeError,An=function(t){if(Tn(t))return t;throw xn(En(t)+" is not an object")},Cn=u,Rn=gn,Mn=Pn,Fn=An,Dn=cn,In=TypeError,Ln=Object.defineProperty,kn=Object.getOwnPropertyDescriptor,Nn="enumerable",zn="configurable",_n="writable";jn.f=Cn?Mn?function(t,n,r){if(Fn(t),n=Dn(n),Fn(r),"function"==typeof t&&"prototype"===n&&"value"in r&&_n in r&&!r.writable){var e=kn(t,n);e&&e.writable&&(t[n]=r.value,r={configurable:zn in r?r.configurable:e.configurable,enumerable:Nn in r?r.enumerable:e.enumerable,writable:!1})}return Ln(t,n,r)}:Ln:function(t,n,r){if(Fn(t),n=Dn(n),Fn(r),Rn)try{return Ln(t,n,r)}catch(t){}if("get"in r||"set"in r)throw In("Accessors not supported");return"value"in r&&(t[n]=r.value),t};var qn=jn,Bn=m,Gn=u?function(t,n,r){return qn.f(t,n,Bn(1,r))}:function(t,n,r){return t[n]=r,t},Hn={},Un={get exports(){return Hn},set exports(t){Hn=t}},Wn=u,Jn=Nt,Kn=Function.prototype,Qn=Wn&&Object.getOwnPropertyDescriptor,Vn=Jn(Kn,"name"),Xn={EXISTS:Vn,PROPER:Vn&&"something"===function(){}.name,CONFIGURABLE:Vn&&(!Wn||Wn&&Qn(Kn,"name").configurable)},Yn=G,$n=Rt,Zn=O(Function.toString);Yn($n.inspectSource)||($n.inspectSource=function(t){return Zn(t)});var tr,nr,rr,er=$n.inspectSource,or=G,ir=e.WeakMap,ur=or(ir)&&/native code/.test(String(ir)),ar=Gt,cr=jt("keys"),fr={},lr=ur,sr=e,pr=W,gr=Gn,br=Nt,yr=Rt,dr=function(t){return cr[t]||(cr[t]=ar(t))},mr=fr,hr="Object already initialized",vr=sr.TypeError,Sr=sr.WeakMap;if(lr||yr.state){var wr=yr.state||(yr.state=new Sr);wr.get=wr.get,wr.has=wr.has,wr.set=wr.set,tr=function(t,n){if(wr.has(t))throw vr(hr);return n.facade=t,wr.set(t,n),n},nr=function(t){return wr.get(t)||{}},rr=function(t){return wr.has(t)}}else{var Or=dr("state");mr[Or]=!0,tr=function(t,n){if(br(t,Or))throw vr(hr);return n.facade=t,gr(t,Or,n),n},nr=function(t){return br(t,Or)?t[Or]:{}},rr=function(t){return br(t,Or)}}var jr={set:tr,get:nr,has:rr,enforce:function(t){return rr(t)?nr(t):tr(t,{})},getterFor:function(t){return function(n){var r;if(!pr(n)||(r=nr(n)).type!==t)throw vr("Incompatible receiver, "+t+" required");return r}}},Pr=O,Tr=i,Er=G,xr=Nt,Ar=u,Cr=Xn.CONFIGURABLE,Rr=er,Mr=jr.enforce,Fr=jr.get,Dr=String,Ir=Object.defineProperty,Lr=Pr("".slice),kr=Pr("".replace),Nr=Pr([].join),zr=Ar&&!Tr((function(){return 8!==Ir((function(){}),"length",{value:8}).length})),_r=String(String).split("String"),qr=Un.exports=function(t,n,r){"Symbol("===Lr(Dr(n),0,7)&&(n="["+kr(Dr(n),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(n="get "+n),r&&r.setter&&(n="set "+n),(!xr(t,"name")||Cr&&t.name!==n)&&(Ar?Ir(t,"name",{value:n,configurable:!0}):t.name=n),zr&&r&&xr(r,"arity")&&t.length!==r.arity&&Ir(t,"length",{value:r.arity});try{r&&xr(r,"constructor")&&r.constructor?Ar&&Ir(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var e=Mr(t);return xr(e,"source")||(e.source=Nr(_r,"string"==typeof n?n:"")),t};Function.prototype.toString=qr((function(){return Er(this)&&Fr(this).source||Rr(this)}),"toString");var Br=G,Gr=jn,Hr=Hn,Ur=xt,Wr={},Jr=Math.ceil,Kr=Math.floor,Qr=Math.trunc||function(t){var n=+t;return(n>0?Kr:Jr)(n)},Vr=function(t){var n=+t;return n!=n||0===n?0:Qr(n)},Xr=Vr,Yr=Math.max,$r=Math.min,Zr=Vr,te=Math.min,ne=function(t){return t>0?te(Zr(t),9007199254740991):0},re=function(t){return ne(t.length)},ee=z,oe=function(t,n){var r=Xr(t);return r<0?Yr(r+n,0):$r(r,n)},ie=re,ue=function(t){return function(n,r,e){var o,i=ee(n),u=ie(i),a=oe(e,u);if(t&&r!=r){for(;u>a;)if((o=i[a++])!=o)return!0}else for(;u>a;a++)if((t||a in i)&&i[a]===r)return t||a||0;return!t&&-1}},ae={includes:ue(!0),indexOf:ue(!1)},ce=Nt,fe=z,le=ae.indexOf,se=fr,pe=O([].push),ge=function(t,n){var r,e=fe(t),o=0,i=[];for(r in e)!ce(se,r)&&ce(e,r)&&pe(i,r);for(;n.length>o;)ce(e,r=n[o++])&&(~le(i,r)||pe(i,r));return i},be=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ye=ge,de=be.concat("length","prototype");Wr.f=Object.getOwnPropertyNames||function(t){return ye(t,de)};var me={};me.f=Object.getOwnPropertySymbols;var he=V,ve=Wr,Se=me,we=An,Oe=O([].concat),je=he("Reflect","ownKeys")||function(t){var n=ve.f(we(t)),r=Se.f;return r?Oe(n,r(t)):n},Pe=Nt,Te=je,Ee=o,xe=jn,Ae=i,Ce=G,Re=/#|\.prototype\./,Me=function(t,n){var r=De[Fe(t)];return r==Le||r!=Ie&&(Ce(n)?Ae(n):!!n)},Fe=Me.normalize=function(t){return String(t).replace(Re,".").toLowerCase()},De=Me.data={},Ie=Me.NATIVE="N",Le=Me.POLYFILL="P",ke=Me,Ne=e,ze=o.f,_e=Gn,qe=function(t,n,r,e){e||(e={});var o=e.enumerable,i=void 0!==e.name?e.name:n;if(Br(r)&&Hr(r,i,e),e.global)o?t[n]=r:Ur(n,r);else{try{e.unsafe?t[n]&&(o=!0):delete t[n]}catch(t){}o?t[n]=r:Gr.f(t,n,{value:r,enumerable:!1,configurable:!e.nonConfigurable,writable:!e.nonWritable})}return t},Be=xt,Ge=function(t,n,r){for(var e=Te(n),o=xe.f,i=Ee.f,u=0;u<e.length;u++){var a=e[u];Pe(t,a)||r&&Pe(r,a)||o(t,a,i(n,a))}},He=ke,Ue=function(t,n){var r,e,o,i,u,a=t.target,c=t.global,f=t.stat;if(r=c?Ne:f?Ne[a]||Be(a,{}):(Ne[a]||{}).prototype)for(e in n){if(i=n[e],o=t.dontCallGetSet?(u=ze(r,e))&&u.value:r[e],!He(c?e:a+(f?".":"#")+e,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Ge(i,o)}(t.sham||o&&o.sham)&&_e(i,"sham",!0),qe(r,e,i,t)}},We=E,Je=Array.isArray||function(t){return"Array"==We(t)},Ke=TypeError,Qe=cn,Ve=jn,Xe=m,Ye={};Ye[Yt("toStringTag")]="z";var $e="[object z]"===String(Ye),Ze=G,to=E,no=Yt("toStringTag"),ro=Object,eo="Arguments"==to(function(){return arguments}()),oo=O,io=i,uo=G,ao=$e?to:function(t){var n,r,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,n){try{return t[n]}catch(t){}}(n=ro(t),no))?r:eo?to(n):"Object"==(e=to(n))&&Ze(n.callee)?"Arguments":e},co=er,fo=function(){},lo=[],so=V("Reflect","construct"),po=/^\s*(?:class|function)\b/,go=oo(po.exec),bo=!po.exec(fo),yo=function(t){if(!uo(t))return!1;try{return so(fo,lo,t),!0}catch(t){return!1}},mo=function(t){if(!uo(t))return!1;switch(ao(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return bo||!!go(po,co(t))}catch(t){return!0}};mo.sham=!0;var ho=!so||io((function(){var t;return yo(yo.call)||!yo(Object)||!yo((function(){t=!0}))||t}))?mo:yo,vo=Je,So=ho,wo=W,Oo=Yt("species"),jo=Array,Po=function(t){var n;return vo(t)&&(n=t.constructor,(So(n)&&(n===jo||vo(n.prototype))||wo(n)&&null===(n=n[Oo]))&&(n=void 0)),void 0===n?jo:n},To=i,Eo=et,xo=Yt("species"),Ao=Ue,Co=i,Ro=Je,Mo=W,Fo=It,Do=re,Io=function(t){if(t>9007199254740991)throw Ke("Maximum allowed index exceeded");return t},Lo=function(t,n,r){var e=Qe(n);e in t?Ve.f(t,e,Xe(0,r)):t[e]=r},ko=function(t,n){return new(Po(t))(0===n?0:n)},No=function(t){return Eo>=51||!To((function(){var n=[];return(n.constructor={})[xo]=function(){return{foo:1}},1!==n[t](Boolean).foo}))},zo=et,_o=Yt("isConcatSpreadable"),qo=zo>=51||!Co((function(){var t=[];return t[_o]=!1,t.concat()[0]!==t})),Bo=function(t){if(!Mo(t))return!1;var n=t[_o];return void 0!==n?!!n:Ro(t)};Ao({target:"Array",proto:!0,arity:1,forced:!qo||!No("concat")},{concat:function(t){var n,r,e,o,i,u=Fo(this),a=ko(u,0),c=0;for(n=-1,e=arguments.length;n<e;n++)if(Bo(i=-1===n?u:arguments[n]))for(o=Do(i),Io(c+o),r=0;r<o;r++,c++)r in i&&Lo(a,c,i[r]);else Io(c+1),Lo(a,c++,i);return a.length=c,a}});var Go=ge,Ho=be,Uo=Object.keys||function(t){return Go(t,Ho)},Wo=u,Jo=O,Ko=l,Qo=i,Vo=Uo,Xo=me,Yo=s,$o=It,Zo=M,ti=Object.assign,ni=Object.defineProperty,ri=Jo([].concat),ei=!ti||Qo((function(){if(Wo&&1!==ti({b:1},ti(ni({},"a",{enumerable:!0,get:function(){ni(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol(),e="abcdefghijklmnopqrst";return t[r]=7,e.split("").forEach((function(t){n[t]=t})),7!=ti({},t)[r]||Vo(ti({},n)).join("")!=e}))?function(t,n){for(var r=$o(t),e=arguments.length,o=1,i=Xo.f,u=Yo.f;e>o;)for(var a,c=Zo(arguments[o++]),f=i?ri(Vo(c),i(c)):Vo(c),l=f.length,s=0;l>s;)a=f[s++],Wo&&!Ko(u,c,a)||(r[a]=c[a]);return r}:ti,oi=ei;Ue({target:"Object",stat:!0,arity:2,forced:Object.assign!==oi},{assign:oi}),t.fn.bootstrapTable.locales["pt-BR"]={formatCopyRows:function(){return"Copy Rows"},formatPrint:function(){return"Print"},formatLoadingMessage:function(){return"Carregando, aguarde"},formatRecordsPerPage:function(t){return"".concat(t," registros por página")},formatShowingRows:function(t,n,r,e){return void 0!==e&&e>0&&e>r?"Exibindo ".concat(t," até ").concat(n," de ").concat(r," linhas (filtradas de um total de ").concat(e," linhas)"):"Exibindo ".concat(t," até ").concat(n," de ").concat(r," linhas")},formatSRPaginationPreText:function(){return"página anterior"},formatSRPaginationPageText:function(t){return"Para a página ".concat(t)},formatSRPaginationNextText:function(){return"próxima página"},formatDetailPagination:function(t){return"Mostrando ".concat(t," linhas")},formatClearSearch:function(){return"Limpar Pesquisa"},formatSearch:function(){return"Pesquisar"},formatNoMatches:function(){return"Nenhum registro encontrado"},formatPaginationSwitch:function(){return"Ocultar/Exibir paginação"},formatPaginationSwitchDown:function(){return"Mostrar Paginação"},formatPaginationSwitchUp:function(){return"Esconder Paginação"},formatRefresh:function(){return"Recarregar"},formatToggleOn:function(){return"Show card view"},formatToggleOff:function(){return"Hide card view"},formatColumns:function(){return"Colunas"},formatColumnsToggleAll:function(){return"Alternar tudo"},formatFullscreen:function(){return"Tela cheia"},formatAllRows:function(){return"Tudo"},formatAutoRefresh:function(){return"Atualização Automática"},formatExport:function(){return"Exportar dados"},formatJumpTo:function(){return"IR"},formatAdvancedSearch:function(){return"Pesquisa Avançada"},formatAdvancedCloseButton:function(){return"Fechar"},formatFilterControlSwitch:function(){return"Ocultar/Exibir controles"},formatFilterControlSwitchHide:function(){return"Ocultar controles"},formatFilterControlSwitchShow:function(){return"Exibir controles"}},Object.assign(t.fn.bootstrapTable.defaults,t.fn.bootstrapTable.locales["pt-BR"])}));