DiverseYouthNightSchool/public/assets/js/require-backend.min.js

17 lines
512 KiB
JavaScript
Raw Normal View History

2024-11-04 10:49:10 +08:00
if(!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";function i(t,e,i){var n,o,a=(i=i||ut).createElement("script");if(a.text=t,e)for(n in ht)(o=e[n]||e.getAttribute&&e.getAttribute(n))&&a.setAttribute(n,o);i.head.appendChild(a).parentNode.removeChild(a)}function n(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?nt[ot.call(t)]||"object":typeof t}function o(t){var e=!!t&&"length"in t&&t.length,i=n(t);return!ct(t)&&!dt(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}function a(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function s(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}function r(t,e,i){return ct(e)?mt.grep(t,function(t,n){return!!e.call(t,n,t)!==i}):e.nodeType?mt.grep(t,function(t){return t===e!==i}):"string"!=typeof e?mt.grep(t,function(t){return-1<it.call(e,t)!==i}):mt.filter(e,t,i)}function l(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function c(t){return t}function d(t){throw t}function u(t,e,i,n){var o;try{t&&ct(o=t.promise)?o.call(t).done(e).fail(i):t&&ct(o=t.then)?o.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}function h(){ut.removeEventListener("DOMContentLoaded",h),t.removeEventListener("load",h),mt.ready()}function p(t,e){return e.toUpperCase()}function f(t){return t.replace(It,"ms-").replace(Nt,p)}function m(){this.expando=mt.expando+m.uid++}function g(t,e,i){var n,o;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(zt,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(o=i)||"false"!==o&&("null"===o?null:o===+o+""?+o:Ht.test(o)?JSON.parse(o):o)}catch(t){}Yt.set(t,e,i)}else i=void 0;return i}function v(t,e,i,n){var o,a,s=20,r=n?function(){return n.cur()}:function(){return mt.css(t,e,"")},l=r(),c=i&&i[3]||(mt.cssNumber[e]?"":"px"),d=t.nodeType&&(mt.cssNumber[e]||"px"!==c&&+l)&&Ut.exec(mt.css(t,e));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;s--;)mt.style(t,e,d+c),(1-a)*(1-(a=r()/l||.5))<=0&&(s=0),d/=a;d*=2,mt.style(t,e,d+c),i=i||[]}return i&&(d=+d||+l||0,o=i[1]?d+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=d,n.end=o)),o}function y(t,e){for(var i,n,o,a,s,r,l,c=[],d=0,u=t.length;d<u;d++)(n=t[d]).style&&(i=n.style.display,e?("none"===i&&(c[d]=jt.get(n,"display")||null,c[d]||(n.style.display="")),""===n.style.display&&Xt(n)&&(c[d]=(l=s=a=void 0,s=(o=n).ownerDocument,r=o.nodeName,(l=Qt[r])||(a=s.body.appendChild(s.createElement(r)),l=mt.css(a,"display"),a.parentNode.removeChild(a),"none"===l&&(l="block"),Qt[r]=l)))):"none"!==i&&(c[d]="none",jt.set(n,"display",i)));for(d=0;d<u;d++)null!=c[d]&&(t[d].style.display=c[d]);return t}function b(t,e){var i;return i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&a(t,e)?mt.merge([t],i):i}function x(t,e){for(var i=0,n=t.length;i<n;i++)jt.set(t[i],"globalEval",!e||jt.get(e[i],"globalEval"))}function w(t,e,i,o,a){for(var s,r,l,c,d,u,h=e.createDocumentFragment(),p=[],f=0,m=t.length;f<m;f++)if((s=t[f])||0===s)if("object"===n(s))mt.merge(p,s.nodeType?[s]:s);else if(ne.test(s)){for(r=r||h.appendChild(e.createElement("div")),l=(te.exec(s)||["",""])[1].toLowerCase(),c=ie[l]||ie._default,r.innerHTML=c[1]+mt.htmlPrefilter(s)+c[2],u=c[0];u--;)r=r.lastChild;mt.merge(p,r.childNodes),(r=h.firstChild).textContent=""}else p.push(e.createTextNode(s));for(h.textContent="",f=0;s=p[f++];)if(o&&-1<mt.inArray(s,o))a&&a.push(s);else if(d=Vt(s),r=b(h.appendChild(s),"script"),d&&x(r),i)for(u=0;s=r[u++];)ee.test(s.type||"")&&i.push(s);return h}function k(){return!0}function _(){return!1}function C(t,e,i,n,o,a){var s,r;if("object"==typeof e){for(r in"string"!=typeof i&&(n=n||i,i=void 0),e)C(t,r,i,n,e[r],a);return t}if(null==n&&null==o?(o=i,n=i=void 0):null==o&&("string"==typeof i?(o=n,n=void 0):(o=n,n=
},is:function(t){return!!r(this,"string"==typeof t&&Tt.test(t)?mt(t):t||[],!1).length}});var $t,Et=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(mt.fn.init=function(t,e,i){var n,o;if(!t)return this;if(i=i||$t,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:Et.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof mt?e[0]:e,mt.merge(this,mt.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:ut,!0)),Dt.test(n[1])&&mt.isPlainObject(e))for(n in e)ct(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(o=ut.getElementById(n[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):ct(t)?void 0!==i.ready?i.ready(t):t(mt):mt.makeArray(t,this)}).prototype=mt.fn,$t=mt(ut);var At=/^(?:parents|prev(?:Until|All))/,Ot={children:!0,contents:!0,next:!0,prev:!0};mt.fn.extend({has:function(t){var e=mt(t,this),i=e.length;return this.filter(function(){for(var t=0;t<i;t++)if(mt.contains(this,e[t]))return!0})},closest:function(t,e){var i,n=0,o=this.length,a=[],s="string"!=typeof t&&mt(t);if(!Tt.test(t))for(;n<o;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?-1<s.index(i):1===i.nodeType&&mt.find.matchesSelector(i,t))){a.push(i);break}return this.pushStack(1<a.length?mt.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?it.call(mt(t),this[0]):it.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(mt.uniqueSort(mt.merge(this.get(),mt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),mt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return Ct(t,"parentNode")},parentsUntil:function(t,e,i){return Ct(t,"parentNode",i)},next:function(t){return l(t,"nextSibling")},prev:function(t){return l(t,"previousSibling")},nextAll:function(t){return Ct(t,"nextSibling")},prevAll:function(t){return Ct(t,"previousSibling")},nextUntil:function(t,e,i){return Ct(t,"nextSibling",i)},prevUntil:function(t,e,i){return Ct(t,"previousSibling",i)},siblings:function(t){return St((t.parentNode||{}).firstChild,t)},children:function(t){return St(t.firstChild)},contents:function(t){return null!=t.contentDocument&&Z(t.contentDocument)?t.contentDocument:(a(t,"template")&&(t=t.content||t),mt.merge([],t.childNodes))}},function(t,e){mt.fn[t]=function(i,n){var o=mt.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(o=mt.filter(n,o)),1<this.length&&(Ot[t]||mt.uniqueSort(o),At.test(t)&&o.reverse()),this.pushStack(o)}});var Ft=/[^\x20\t\r\n\f]+/g;mt.Callbacks=function(t){var e,i;t="string"==typeof t?(e=t,i={},mt.each(e.match(Ft)||[],function(t,e){i[e]=!0}),i):mt.extend({},t);var o,a,s,r,l=[],c=[],d=-1,u=function(){for(r=r||t.once,s=o=!0;c.length;d=-1)for(a=c.shift();++d<l.length;)!1===l[d].apply(a[0],a[1])&&t.stopOnFalse&&(d=l.length,a=!1);t.memory||(a=!1),o=!1,r&&(l=a?[]:"")},h={add:function(){return l&&(a&&!o&&(d=l.length-1,c.push(a)),function e(i){mt.each(i,function(i,o){ct(o)?t.unique&&h.has(o)||l.push(o):o&&o.length&&"string"!==n(o)&&e(o)})}(arguments),a&&!o&&u()),this},remove:function(){return mt.each(arguments,function(t,e){for(var i;-1<(i=mt.inArray(e,l,i));)l.splice(i,1),i<=d&&d--}),this},has:function(t){return t?-1<mt.inArray(t,l):0<l.length},empty:function(){return l&&(l=[]),this},disable:function(){return r=c=[],l=a="",this},disabled:function(){return!l},lock:function(){return r=c=[],a||o||(l=a=""),this},locked:function(){return!!r},fireWith:function(t,e){return r||(e=[t,(e=e||[]).slice?e.slice():e],c.push(e),o||u()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!s}};return h},mt.extend({Deferred:function(e){var i=[["notify","progress",mt.Callbacks("memory"),mt.Callbacks("memory"),2],["resolve","done",mt.Callbacks("once memory"),mt.Callbacks("once memory"),0,"resolved"],["reject","fail",mt.Callbacks("once memory"),mt.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},a
fast:200,_default:400},mt.fn.delay=function(e,i){return e=mt.fx&&mt.fx.speeds[e]||e,i=i||"fx",this.queue(i,function(i,n){var o=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(o)}})},we=ut.createElement("input"),ke=ut.createElement("select").appendChild(ut.createElement("option")),we.type="checkbox",lt.checkOn=""!==we.value,lt.optSelected=ke.selected,(we=ut.createElement("input")).value="t",we.type="radio",lt.radioValue="t"===we.value;var Se,Te=mt.expr.attrHandle;mt.fn.extend({attr:function(t,e){return Lt(this,mt.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){mt.removeAttr(this,t)})}}),mt.extend({attr:function(t,e,i){var n,o,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof t.getAttribute?mt.prop(t,e,i):(1===a&&mt.isXMLDoc(t)||(o=mt.attrHooks[e.toLowerCase()]||(mt.expr.match.bool.test(e)?Se:void 0)),void 0!==i?null===i?void mt.removeAttr(t,e):o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(n=o.get(t,e))?n:null==(n=mt.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!lt.radioValue&&"radio"===e&&a(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,o=e&&e.match(Ft);if(o&&1===t.nodeType)for(;i=o[n++];)t.removeAttribute(i)}}),Se={set:function(t,e,i){return!1===e?mt.removeAttr(t,i):t.setAttribute(i,i),i}},mt.each(mt.expr.match.bool.source.match(/\w+/g),function(t,e){var i=Te[e]||mt.find.attr;Te[e]=function(t,e,n){var o,a,s=e.toLowerCase();return n||(a=Te[s],Te[s]=o,o=null!=i(t,e,n)?s:null,Te[s]=a),o}});var De=/^(?:input|select|textarea|button)$/i,$e=/^(?:a|area)$/i;mt.fn.extend({prop:function(t,e){return Lt(this,mt.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[mt.propFix[t]||t]})}}),mt.extend({prop:function(t,e,i){var n,o,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&mt.isXMLDoc(t)||(e=mt.propFix[e]||e,o=mt.propHooks[e]),void 0!==i?o&&"set"in o&&void 0!==(n=o.set(t,i,e))?n:t[e]=i:o&&"get"in o&&null!==(n=o.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=mt.find.attr(t,"tabindex");return e?parseInt(e,10):De.test(t.nodeName)||$e.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),lt.optSelected||(mt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),mt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){mt.propFix[this.toLowerCase()]=this}),mt.fn.extend({addClass:function(t){var e,i,n,o,a,s;return ct(t)?this.each(function(e){mt(this).addClass(t.call(this,e,W(this)))}):(e=q(t)).length?this.each(function(){if(n=W(this),i=1===this.nodeType&&" "+U(n)+" "){for(a=0;a<e.length;a++)o=e[a],i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=U(i),n!==s&&this.setAttribute("class",s)}}):this},removeClass:function(t){var e,i,n,o,a,s;return ct(t)?this.each(function(e){mt(this).removeClass(t.call(this,e,W(this)))}):arguments.length?(e=q(t)).length?this.each(function(){if(n=W(this),i=1===this.nodeType&&" "+U(n)+" "){for(a=0;a<e.length;a++)for(o=e[a];-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");s=U(i),n!==s&&this.setAttribute("class",s)}}):this:this.attr("class","")},toggleClass:function(t,e){var i,n,o,a,s=typeof t,r="string"===s||Array.isArray(t);return ct(t)?this.each(function(i){mt(this).toggleClass(t.call(this,i,W(this),e),e)}):"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):(i=q(t),this.each(function(){if(r)for(a=mt(this),o=0;o<i.length;o++)n=i[o],a.hasClass(n)?a.removeClass(n):a.addClass(n);else void 0!==t&&"boolean"!==s||((n=W(this))&&jt.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":jt.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+U(W(i))+" ").indexOf(e))return!0;return!1}});var Ee=/\r/g;mt.fn.extend({val:function(t)
this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.4.1",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,o=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(o&&o.length&&(e=o.data("bs.collapse"))&&e.transitioning)){var a=t.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){o&&o.length&&(i.call(o,"hide"),e||o.data("bs.collapse",null));var s=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[s](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[s](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var l=t.camelCase(["scroll",s].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[s](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var o=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return o.call(this);this.$element[i](0).one("bsTransitionEnd",t.proxy(o,this)).emulateTransitionEnd(n.TRANSITION_DURATION)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var o=t(n);this.addAriaAndCollapsedClass(e(o),o)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var o=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=o,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var o=t(this);o.attr("data-target")||n.preventDefault();var a=e(o),s=a.data("bs.collapse")?"toggle":o.data();i.call(a,s)})}(jQuery),function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=(i=e.attr("href"))&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n="#"!==i?t(document).find(i):null;return n&&n.length?n:e.parent()}function i(i){i&&3===i.which||(t(".dropdown-backdrop").remove(),t(n).each(function(){var n=t(this),o=e(n),a={relatedTarget:this};o.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(o[0],i.target)||(o.trigger(i=t.Event("hide.bs.dropdown",a)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),o.removeClass("open").trigger(t.Event("hidden.bs.dropdown",a)))))}))}var n='[data-toggle="dropdown"]',o=function(e){t(e).on("click.bs.dropdown",this.toggle)};o.VERSION="3.4.1",o.prototype.toggle=function(n){var o=t(this);if(!o.is(".disabled, :disabled")){var a=e(o),s=a.hasClass("open");if(i(),!s){"ontouchstart"in document.documentElement&&!a.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var r={relatedTarget:this};if(a.trigger(n=t.Event("show.bs.dropdown",r)),n.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),a.toggleClass("open").trigger(t.Event("shown.bs.dropdown",r))}return!1}},o.prototype.keydown=function(i){if(/(38|40|27|32)/.te
"bootstrap-table-export":"../libs/bootstrap-table/dist/extensions/export/bootstrap-table-export.min","bootstrap-table-fixed-columns":"../libs/bootstrap-table/dist/extensions/fixed-columns/bootstrap-table-fixed-columns","bootstrap-table-mobile":"../libs/bootstrap-table/dist/extensions/mobile/bootstrap-table-mobile","bootstrap-table-lang":"../libs/bootstrap-table/dist/locale/bootstrap-table-zh-CN","bootstrap-table-jumpto":"../libs/bootstrap-table/dist/extensions/page-jumpto/bootstrap-table-jumpto","bootstrap-slider":"../libs/bootstrap-slider/bootstrap-slider",tableexport:"../libs/tableExport.jquery.plugin/tableExport.min",dragsort:"../libs/fastadmin-dragsort/jquery.dragsort",sortable:"../libs/Sortable/Sortable.min",addtabs:"../libs/fastadmin-addtabs/jquery.addtabs",slimscroll:"../libs/jquery-slimscroll/jquery.slimscroll",validator:"../libs/nice-validator/dist/jquery.validator","validator-lang":"../libs/nice-validator/dist/local/zh-CN",toastr:"../libs/toastr/toastr",jstree:"../libs/jstree/dist/jstree.min",layer:"../libs/fastadmin-layer/dist/layer",cookie:"../libs/jquery.cookie/jquery.cookie",cxselect:"../libs/fastadmin-cxselect/js/jquery.cxselect",template:"../libs/art-template/dist/template-native",selectpage:"../libs/fastadmin-selectpage/selectpage",citypicker:"../libs/fastadmin-citypicker/dist/js/city-picker.min","citypicker-data":"../libs/fastadmin-citypicker/dist/js/city-picker.data"},shim:{addons:["backend"],bootstrap:["jquery"],"bootstrap-table":{deps:["bootstrap"],exports:"$.fn.bootstrapTable"},"bootstrap-table-lang":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-export":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-fixed-columns":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-mobile":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-advancedsearch":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-commonsearch":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-template":{deps:["bootstrap-table","template"],exports:"$.fn.bootstrapTable.defaults"},"bootstrap-table-jumpto":{deps:["bootstrap-table"],exports:"$.fn.bootstrapTable.defaults"},tableexport:{deps:["jquery"],exports:"$.fn.extend"},slimscroll:{deps:["jquery"],exports:"$.fn.extend"},adminlte:{deps:["bootstrap","slimscroll"],exports:"$.AdminLTE"},"bootstrap-daterangepicker":["moment/locale/zh-cn"],"bootstrap-datetimepicker":["moment/locale/zh-cn"],"bootstrap-select-lang":["bootstrap-select"],jstree:["css!../libs/jstree/dist/themes/default/style.css"],"validator-lang":["validator"],citypicker:["citypicker-data","css!../libs/fastadmin-citypicker/dist/css/city-picker.css"]},baseUrl:requirejs.s.contexts._.config.config.site.cdnurl+"/assets/js/",map:{"*":{css:"../libs/require-css/css.min"}},waitSeconds:60,charset:"utf-8"}),require(["jquery","bootstrap"],function(t,e){var i=requirejs.s.contexts._.config.config;window.Config=i;var n={};n.lang=i.moduleurl+"/ajax/lang?callback=define&controllername="+i.controllername+"&lang="+i.language,n["backend/"]="backend/",require.config({paths:n}),t(function(){require(["fast"],function(t){require(["backend","backend-init","addons"],function(t,e,n){i.jsname&&require([i.jsname],function(t){t.hasOwnProperty(i.actionname)?t[i.actionname]():t.hasOwnProperty("_empty")&&t._empty()},function(t){console.error(t)})})})})}),define("require-backend",function(){}),define("../libs/require-css/css.min",[],function(){if("undefined"==typeof window)return{load:function(t,e,i){i()}};var t=document.getElementsByTagName("head")[0],e=window.navigator.userAgent.match(/Trident\/([^ ;]*)|AppleWebKit\/([^ ;]*)|Opera\/([^ ;]*)|rv\:([^ ;]*)(.*?)Gecko\/([^ ;]*)|MSIE\s([^ ;]*)|AndroidWebKit\/([^ ;]*)/)||0,i=!1,n=!0;e[1]||e[7]?i=parseInt(e[1])<6||parseInt(e[7])<=9:e[2]||e[8]?n=!1:e[4]&&(i=parseInt(e[4])<18);var o={};o.pluginBuilder="./css-builder";var a,s,r,l=function(){a=document.createElement("style"),t.appendChild(a),s=a.styleSheet||a.sheet},c=0,d=[],u=fu
if(!t(":focus",E).length||e)return clearTimeout(M.intervalId),E[i]({duration:n,easing:o,complete:function(){g(E),clearTimeout($),T.onHidden&&"hidden"!==L.state&&T.onHidden(),L.state="hidden",L.endTime=new Date,p(L)}})}function _(){(T.timeOut>0||T.extendedTimeOut>0)&&($=setTimeout(k,T.extendedTimeOut),M.maxHideTime=parseFloat(T.extendedTimeOut),M.hideEta=(new Date).getTime()+M.maxHideTime)}function C(){clearTimeout($),M.hideEta=0,E.stop(!0,!0)[T.showMethod]({duration:T.showDuration,easing:T.showEasing})}function S(){var t=(M.hideEta-(new Date).getTime())/M.maxHideTime*100;F.width(t+"%")}var T=m(),D=e.iconClass||T.iconClass;if("undefined"!=typeof e.optionsOverride&&(T=t.extend(T,e.optionsOverride),D=e.optionsOverride.iconClass||D),!w(T,e)){x++,v=i(T,!0);var $=null,E=t("<div/>"),A=t("<div/>"),O=t("<div/>"),F=t("<div/>"),P=t(T.closeHtml),M={intervalId:null,hideEta:null,maxHideTime:null},L={toastId:x,state:"visible",startTime:new Date,options:T,map:e};return o(),r(),s(),p(L),T.debug&&console&&console.log(L),E}}function m(){return t.extend({},h(),k.options)}function g(t){v||(v=i()),t.is(":visible")||(t.remove(),t=null,0===v.children().length&&(v.remove(),b=void 0))}var v,y,b,x=0,w={error:"error",info:"info",success:"success",warning:"warning"},k={clear:r,remove:l,error:e,getContainer:i,info:n,options:{},subscribe:o,success:a,version:"2.1.3",warning:s};return k}()})}("function"==typeof define&&define.amd?define:function(t,e){"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery")):window.toastr=e(window.jQuery)}),define("fast",["jquery","bootstrap","toastr","layer","lang"],function(t,e,i,n,o){var a={config:{toastr:{closeButton:!0,debug:!1,newestOnTop:!1,progressBar:!1,positionClass:"toast-top-center",preventDuplicates:!1,onclick:null,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"}},events:{onAjaxSuccess:function(t,e){var n="undefined"!=typeof t.data?t.data:null,o="undefined"!=typeof t.msg&&t.msg?t.msg:__("Operation completed");if("function"==typeof e){var a=e.call(this,n,t);if(a===!1)return}i.success(o)},onAjaxError:function(t,e){var n="undefined"!=typeof t.data?t.data:null;if("function"==typeof e){var o=e.call(this,n,t);if(o===!1)return}i.error(t.msg)},onAjaxResponse:function(e){try{var i="object"==typeof e?e:JSON.parse(e);i.hasOwnProperty("code")||t.extend(i,{code:-2,msg:e,data:null})}catch(t){var i={code:-1,msg:t.message,data:null}}return i}},api:{ajax:function(e,i,o){e="string"==typeof e?{url:e}:e;var s;return("undefined"==typeof e.loading||e.loading)&&(s=n.load(e.loading||0)),e=t.extend({type:"POST",dataType:"json",xhrFields:{withCredentials:!0},success:function(t){s&&n.close(s),t=a.events.onAjaxResponse(t),1===t.code?a.events.onAjaxSuccess(t,i):a.events.onAjaxError(t,o)},error:function(t){s&&n.close(s);var e={code:t.status,msg:t.statusText,data:null};a.events.onAjaxError(e,o)}},e),t.ajax(e)},fixurl:function(t){if("/"!==t.substr(0,1)){var e=new RegExp("^(?:[a-z]+:)?//","i");e.test(t)||(t=Config.moduleurl+"/"+t)}else"/addons/"===t.substr(0,8)&&(t=Config.__PUBLIC__.replace(/(\/*$)/g,"")+t);return t},cdnurl:function(t,e){var i=new RegExp("^((?:[a-z]+:)?\\/\\/|data:image\\/)","i"),n=Config.upload.cdnurl;return"undefined"!=typeof e&&e!==!0&&0!==n.indexOf("/")||(t=i.test(t)||n&&0===t.indexOf(n)?t:n+t),e&&!i.test(t)&&(e="string"==typeof e?e:location.origin,t=e+t),t},query:function(t,e){if(e||(e=window.location.href),!t)return"";t=t.replace(/[\[\]]/g,"\\$&");var i=new RegExp("[?&/]"+t+"([=/]([^&#/?]*)|&|#|$)"),n=i.exec(e);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null},open:function(i,o,s){o=s&&s.title?s.title:o?o:"",i=a.api.fixurl(i),i=i+(i.indexOf("?")>-1?"&":"?")+"dialog=1";var r=a.config.openArea!=e?a.config.openArea:[t(window).width()>800?"800px":"95%",t(window).height()>600?"600px":"95%"],l=s&&"function"==typeof s.success?s.success:t.noop;return s&&"function"==typeof s.success&&delete s.success,s=t.extend({type:2,title:o,shadeClose:!0,shade:!1,maxmin:!0,moveOut:!0,area:r,cont
}function de(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function ue(t,e,i){if(t){var n=na.indexOf(t),o=new Date(e[0],e[1],e[2]).getDay();if(n!==o)return p(i).weekdayMismatch=!0,i._isValid=!1,!1}return!0}function he(t,e,i){if(t)return wa[t];if(e)return 0;var n=parseInt(i,10),o=n%100,a=(n-o)/100;return 60*a+o}function pe(t){var e,i=xa.exec(de(t._i));if(i){if(e=le(i[4],i[3],i[2],i[5],i[6],i[7]),!ue(i[1],e,t))return;t._a=e,t._tzm=he(i[8],i[9],i[10]),t._d=bt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function fe(e){var i=ba.exec(e._i);return null!==i?void(e._d=new Date(+i[1])):(re(e),void(e._isValid===!1&&(delete e._isValid,pe(e),e._isValid===!1&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))))}function me(t,e,i){return null!=t?t:null!=e?e:i}function ge(e){var i=new Date(t.now());return e._useUTC?[i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()]:[i.getFullYear(),i.getMonth(),i.getDate()]}function ve(t){var e,i,n,o,a,s=[];if(!t._d){for(n=ge(t),t._w&&null==t._a[zo]&&null==t._a[Ho]&&ye(t),null!=t._dayOfYear&&(a=me(t._a[Yo],n[Yo]),(t._dayOfYear>gt(a)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=bt(a,0,t._dayOfYear),t._a[Ho]=i.getUTCMonth(),t._a[zo]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=n[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Bo]&&0===t._a[Uo]&&0===t._a[Wo]&&0===t._a[qo]&&(t._nextDay=!0,t._a[Bo]=0),t._d=(t._useUTC?bt:yt).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Bo]=24),t._w&&"undefined"!=typeof t._w.d&&t._w.d!==o&&(p(t).weekdayMismatch=!0)}}function ye(t){var e,i,n,o,a,s,r,l,c;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(a=1,s=4,i=me(e.GG,t._a[Yo],kt(De(),1,4).year),n=me(e.W,1),o=me(e.E,1),(o<1||o>7)&&(l=!0)):(a=t._locale._week.dow,s=t._locale._week.doy,c=kt(De(),a,s),i=me(e.gg,t._a[Yo],c.year),n=me(e.w,c.week),null!=e.d?(o=e.d,(o<0||o>6)&&(l=!0)):null!=e.e?(o=e.e+a,(e.e<0||e.e>6)&&(l=!0)):o=a),n<1||n>_t(i,a,s)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(r=wt(i,n,o,a,s),t._a[Yo]=r.year,t._dayOfYear=r.dayOfYear)}function be(e){if(e._f===t.ISO_8601)return void re(e);if(e._f===t.RFC_2822)return void pe(e);e._a=[],p(e).empty=!0;var i,n,o,a,s,r,l,c=""+e._i,d=c.length,u=0;for(o=F(e._f,e._locale).match(co)||[],l=o.length,i=0;i<l;i++)a=o[i],n=(c.match(Z(a,e))||[])[0],n&&(s=c.substr(0,c.indexOf(n)),s.length>0&&p(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),u+=n.length),po[a]?(n?p(e).empty=!1:p(e).unusedTokens.push(a),nt(a,n,e)):e._strict&&!n&&p(e).unusedTokens.push(a);p(e).charsLeftOver=d-u,c.length>0&&p(e).unusedInput.push(c),e._a[Bo]<=12&&p(e).bigHour===!0&&e._a[Bo]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[Bo]=xe(e._locale,e._a[Bo],e._meridiem),r=p(e).era,null!==r&&(e._a[Yo]=e._locale.erasConvertYear(r,e._a[Yo])),ve(e),se(e)}function xe(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?(n=t.isPM(i),n&&e<12&&(e+=12),n||12!==e||(e=0),e):e}function we(t){var e,i,n,o,a,s,r=!1,l=t._f.length;if(0===l)return p(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;o<l;o++)a=0,s=!1,e=g({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[o],be(e),f(e)&&(s=!0),a+=p(e).charsLeftOver,a+=10*p(e).unusedTokens.length,p(e).score=a,r?a<n&&(n=a,i=e):(null==n||a<n||s)&&(n=a,i=e,s&&(r=!0));d(t,i||e)}function ke(t){if(!t._d){var e=Y(t._i),i=void 0===e.day?e.date:e.day;t._a=c([e.year,e.month,i,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ve(t)}}function _e(t){var e=new v(se(Ce(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function Ce(t){var e=t._i,n=t._f;return t._locale=t._locale||oe(t._l),null===e||void 0===n&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),y(e)?new v(se(e)):(l(e)?t._d=e:i(n)?we(t):n?be(t):Se(t),f(t)||(t._d=null),t))}function Se(e){var o=e._i;s(o)?e._d=new Dat
}),Ca=function(){return Date.now?Date.now():+new Date},Sa=["year","quarter","month","week","day","hour","minute","second","millisecond"];Re("Z",":"),Re("ZZ",""),K("Z",Lo),K("ZZ",Lo),et(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=je(Lo,t)});var Ta=/([\+\-]|\d\d)/gi;t.updateOffset=function(){};var Da=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,$a=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Je.fn=Me.prototype,Je.invalid=Pe;var Ea=ni(1,"add"),Aa=ni(-1,"subtract");t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Oa=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)}),Fa=1e3,Pa=60*Fa,Ma=60*Pa,La=3506328*Ma;$("N",0,0,"eraAbbr"),$("NN",0,0,"eraAbbr"),$("NNN",0,0,"eraAbbr"),$("NNNN",0,0,"eraName"),$("NNNNN",0,0,"eraNarrow"),$("y",["y",1],"yo","eraYear"),$("y",["yy",2],0,"eraYear"),$("y",["yyy",3],0,"eraYear"),$("y",["yyyy",4],0,"eraYear"),K("N",nn),K("NN",nn),K("NNN",nn),K("NNNN",on),K("NNNNN",an),et(["N","NN","NNN","NNNN","NNNNN"],function(t,e,i,n){var o=i._locale.erasParse(t,n,i._strict);o?p(i).era=o:p(i).invalidEra=t}),K("y",Fo),K("yy",Fo),K("yyy",Fo),K("yyyy",Fo),K("yo",sn),et(["y","yy","yyy","yyyy"],Yo),et(["yo"],function(t,e,i,n){var o;i._locale._eraYearOrdinalRegex&&(o=t.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[Yo]=i._locale.eraYearOrdinalParse(t,o):e[Yo]=parseInt(t,10)}),$(0,["gg",2],0,function(){return this.weekYear()%100}),$(0,["GG",2],0,function(){return this.isoWeekYear()%100}),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),H("weekYear",1),H("isoWeekYear",1),K("G",Po),K("g",Po),K("GG",To,ko),K("gg",To,ko),K("GGGG",Ao,Co),K("gggg",Ao,Co),K("GGGGG",Oo,So),K("ggggg",Oo,So),it(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=W(t)}),it(["gg","GG"],function(e,i,n,o){i[o]=t.parseTwoDigitYear(e)}),$("Q",0,"Qo","quarter"),R("quarter","Q"),H("quarter",7),K("Q",wo),et("Q",function(t,e){e[Ho]=3*(W(t)-1)}),$("D",["DD",2],"Do","date"),R("date","D"),H("date",9),K("D",To),K("DD",To,ko),K("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),et(["D","DD"],zo),et("Do",function(t,e){e[zo]=W(t.match(To)[0])});var Ia=q("Date",!0);$("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),H("dayOfYear",4),K("DDD",Eo),K("DDDD",_o),et(["DDD","DDDD"],function(t,e,i){i._dayOfYear=W(t)}),$("m",["mm",2],0,"minute"),R("minute","m"),H("minute",14),K("m",To),K("mm",To,ko),et(["m","mm"],Uo);var Na=q("Minutes",!1);$("s",["ss",2],0,"second"),R("second","s"),H("second",15),K("s",To),K("ss",To,ko),et(["s","ss"],Wo);var Ra=q("Seconds",!1);$("S",0,0,function(){return~~(this.millisecond()/100)}),$(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),$(0,["SSS",3],0,"millisecond"),$(0,["SSSS",4],0,function(){return 10*this.millisecond()}),$(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),$(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),$(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),$(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),$(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),H("millisecond",16),K("S",Eo,wo),K("SS",Eo,ko),K("SSS",Eo,_o);var ja,Ya;for(ja="SSSS";ja.length<=9;ja+="S")K(ja,Fo);for(ja="S";ja.length<=9;ja+="S")et(ja,bn);Ya=q("Milliseconds",!1),$("z",0,0,"zoneAbbr"),$("zz",0,0,"zoneName");var Ha=v.prototype;Ha.add=Ea,Ha.calendar=ui,Ha.clone=hi,Ha.diff=bi,Ha.endOf=Li,Ha.format=Ci,Ha.from=Si,Ha.fromNow=Ti,Ha.to=Di,Ha.toNow=$i,Ha.get=X,Ha.invalidAt=Ui,Ha.isAfter=pi,Ha.isBefore=fi,Ha.isBetween=mi,Ha.isSame=gi,Ha.isSameOrAfter=vi,Ha.isSameOrBefore=yi,Ha.isValid=zi,Ha.lang=Oa,Ha.locale=Ei,Ha.localeData=Ai,Ha.max=_a,Ha.min=ka,Ha.parsingFla
a=[e('<div class="columns columns-%s btn-group pull-%s">',this.options.buttonsAlign,this.options.buttonsAlign)],"string"==typeof this.options.icons&&(this.options.icons=o(null,this.options.icons)),this.options.showPaginationSwitch&&a.push(e('<button class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+'" type="button" name="paginationSwitch" aria-label="pagination Switch" title="%s">',this.options.formatPaginationSwitch()),e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.paginationSwitchDown),"</button>"),this.options.showRefresh&&a.push(e('<button class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+'" type="button" name="refresh" aria-label="refresh" title="%s">',this.options.formatRefresh()),e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.refresh),"</button>"),this.options.showToggle&&a.push(e('<button class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+'" type="button" name="toggle" aria-label="toggle" title="%s">',this.options.formatToggle()),e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.toggle),"</button>"),this.options.showColumns&&(a.push(e('<div class="keep-open btn-group" title="%s">',this.options.formatColumns()),'<button type="button" aria-label="columns" class="btn'+e(" btn-%s",this.options.buttonsClass)+e(" btn-%s",this.options.iconSize)+' dropdown-toggle" data-toggle="dropdown">',e('<i class="%s %s"></i>',this.options.iconsPrefix,this.options.icons.columns),' <span class="caret"></span>',"</button>",'<ul class="dropdown-menu" role="menu">'),t.each(this.columns,function(t,i){var o;i.radio||i.checkbox||n.options.cardView&&!i.cardVisible||(o=i.visible?' checked="checked"':"",i.switchable&&(a.push(e('<li role="menuitem"><label><input type="checkbox" data-field="%s" value="%s"%s> %s</label></li>',i.field,t,o,i.title)),r++))}),a.push("</ul>","</div>")),a.push("</div>"),(this.showToolbar||2<a.length)&&this.$toolbar.append(a.join("")),this.options.showPaginationSwitch&&this.$toolbar.find('button[name="paginationSwitch"]').off("click").on("click",t.proxy(this.togglePagination,this)),this.options.showRefresh&&this.$toolbar.find('button[name="refresh"]').off("click").on("click",t.proxy(this.refresh,this)),this.options.showToggle&&this.$toolbar.find('button[name="toggle"]').off("click").on("click",function(){n.toggleView()}),this.options.showColumns&&(i=this.$toolbar.find(".keep-open"),r<=this.options.minimumCountColumns&&i.find("input").prop("disabled",!0),i.find("li").off("click").on("click",function(t){t.stopImmediatePropagation()}),i.find("input").off("click").on("click",function(){var e=t(this);n.toggleColumn(t(this).val(),e.prop("checked"),!1),n.trigger("column-switch",t(this).data("field"),e.prop("checked"))})),this.options.search&&((a=[]).push('<div class="pull-'+this.options.searchAlign+' search">',e('<input class="form-control'+e(" input-%s",this.options.iconSize)+'" type="text" placeholder="%s">',this.options.formatSearch()),"</div>"),this.$toolbar.append(a.join("")),(i=this.$toolbar.find(".search input")).off("keyup drop blur").on("keyup drop blur",function(e){n.options.searchOnEnterKey&&13!==e.keyCode||-1<t.inArray(e.keyCode,[37,38,39,40])||(clearTimeout(s),s=setTimeout(function(){n.onSearch(e)},n.options.searchTimeOut))}),c())&&i.off("mouseup").on("mouseup",function(t){clearTimeout(s),s=setTimeout(function(){n.onSearch(t)},n.options.searchTimeOut)})},d.prototype.onSearch=function(e){var i=t.trim(t(e.currentTarget).val());this.options.trimOnSearch&&t(e.currentTarget).val()!==i&&t(e.currentTarget).val(i),i===this.searchText||""===i&&void 0===this.searchText||(this.searchText=i,this.options.searchText=i,this.options.pageNumber=1,this.initSearch(),this.updatePagination(),this.trigger("search",i))},d.prototype.initSearch=function(){var e,n,a=this;"server"!==this.options.sidePagination&&(this.options.customSearch!==t.noop?this.options.customSearch.apply(this,[this.searchText]):(e=this.searchText&&(this.options.escape?s(this.searchText):this.sear
},d.prototype.refresh=function(t){t&&t.url&&(this.options.url=t.url),t&&t.pageNumber&&(this.options.pageNumber=t.pageNumber),t&&t.pageSize&&(this.options.pageSize=t.pageSize),this.initServer(t&&t.silent,t&&t.query,t&&t.url),this.trigger("refresh",t)},d.prototype.resetWidth=function(){this.options.showHeader&&this.options.height&&this.fitHeader(),this.options.showFooter&&this.fitFooter()},d.prototype.showColumn=function(t){this.toggleColumn(i(this.columns,t),!0,!0)},d.prototype.hideColumn=function(t){this.toggleColumn(i(this.columns,t),!1,!0)},d.prototype.getHiddenColumns=function(){return t.grep(this.columns,function(t){return!t.visible})},d.prototype.getVisibleColumns=function(){return t.grep(this.columns,function(t){return t.visible})},d.prototype.toggleAllColumns=function(e){var i;t.each(this.columns,function(t,i){this.columns[t].visible=e}),this.initHeader(),this.initSearch(),this.initPagination(),this.initBody(),this.options.showColumns&&(i=this.$toolbar.find(".keep-open input").prop("disabled",!1)).filter(":checked").length<=this.options.minimumCountColumns&&i.filter(":checked").prop("disabled",!0)},d.prototype.showAllColumns=function(){this.toggleAllColumns(!0)},d.prototype.hideAllColumns=function(){this.toggleAllColumns(!1)},d.prototype.filterBy=function(e){this.filterColumns=t.isEmptyObject(e)?{}:e,this.options.pageNumber=1,this.initSearch(),this.updatePagination()},d.prototype.scrollTo=function(t){if("number"==typeof(t="string"==typeof t?"bottom"===t?this.$tableBody[0].scrollHeight:0:t)&&this.$tableBody.scrollTop(t),void 0===t)return this.$tableBody.scrollTop()},d.prototype.getScrollPosition=function(){return this.scrollTo()},d.prototype.selectPage=function(t){0<t&&t<=this.options.totalPages&&(this.options.pageNumber=t,this.updatePagination())},d.prototype.prevPage=function(){1<this.options.pageNumber&&(this.options.pageNumber--,this.updatePagination())},d.prototype.nextPage=function(){this.options.pageNumber<this.options.totalPages&&(this.options.pageNumber++,this.updatePagination())},d.prototype.toggleView=function(){this.options.cardView=!this.options.cardView,this.initHeader(),this.initBody(),this.trigger("toggle",this.options.cardView)},d.prototype.refreshOptions=function(e){a(this.options,e,!0)||(this.options=t.extend(this.options,e),this.trigger("refresh-options",this.options),this.destroy(),this.init())},d.prototype.resetSearch=function(t){var e=this.$toolbar.find(".search input");e.val(t||""),this.onSearch({currentTarget:e})},d.prototype.expandRow_=function(t,i){i=this.$body.find(e('> tr[data-index="%s"]',i)),i.next().is("tr.detail-view")===!t&&i.find("> td > .detail-icon").click()},d.prototype.expandRow=function(t){this.expandRow_(!0,t)},d.prototype.collapseRow=function(t){this.expandRow_(!1,t)},d.prototype.expandAllRows=function(i){if(i){var i=this.$body.find(e('> tr[data-index="%s"]',0)),n=this,o=null,a=!1,s=-1;if(i.next().is("tr.detail-view")?i.next().next().is("tr.detail-view")||(i.next().find(".detail-icon").click(),a=!0):(i.find("> td > .detail-icon").click(),a=!0),a)try{s=setInterval(function(){0<(o=n.$body.find("tr.detail-view").last().find(".detail-icon")).length?o.click():clearInterval(s)},1)}catch(t){clearInterval(s)}}else for(var r=this.$body.children(),l=0;l<r.length;l++)this.expandRow_(!0,t(r[l]).data("index"))},d.prototype.collapseAllRows=function(e){if(e)this.expandRow_(!1,0);else for(var i=this.$body.children(),n=0;n<i.length;n++)this.expandRow_(!1,t(i[n]).data("index"))},d.prototype.updateFormatText=function(t,i){this.options[e("format%s",t)]&&("string"==typeof i?this.options[e("format%s",t)]=function(){return i}:"function"==typeof i&&(this.options[e("format%s",t)]=i)),this.initToolbar(),this.initPagination(),this.initBody()},["getOptions","getSelections","getAllSelections","getData","load","append","prepend","remove","removeAll","insertRow","updateRow","updateCell","updateByUniqueId","removeByUniqueId","getRowByUniqueId","showRow","hideRow","getHiddenRows","mergeCells","checkAll","uncheckAll","checkInvert","check","uncheck","checkBy","uncheckBy","refresh","resetView","resetWidth","
}),this.removeEventListeners(),this.disabled=!0,this.files.map(function(e){return t.cancelUpload(e)})}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach(function(t){return t.classList.add("dz-clickable")}),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,i="b";if(t>0){for(var n=["tb","gb","mb","kb","b"],o=0;o<n.length;o++){var a=n[o],s=Math.pow(this.options.filesizeBase,4-o)/10;if(t>=s){e=t/Math.pow(this.options.filesizeBase,4-o),i=a;break}}e=Math.round(10*e)/10}return"<strong>".concat(e,"</strong> ").concat(this.options.dictFileSizeUnits[i])}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],i=0;i<t.dataTransfer.files.length;i++)e[i]=t.dataTransfer.files[i];if(e.length){var n=t.dataTransfer.items;n&&n.length&&null!=n[0].webkitGetAsEntry?this._addFilesFromItems(n):this.handleFiles(e)}this.emit("addedfiles",e)}}},{key:"paste",value:function(t){if(null!=d(null!=t?t.clipboardData:void 0,function(t){return t.items})){this.emit("paste",t);var e=t.clipboardData.items;return e.length?this._addFilesFromItems(e):void 0}}},{key:"handleFiles",value:function(t){var e=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var s=o.value;this.addFile(s)}}catch(t){i=!0,n=t}finally{try{e||null==a.return||a.return()}finally{if(i)throw n}}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){var i=[],n=!0,o=!1,a=void 0;try{for(var s,r=t[Symbol.iterator]();!(n=(s=r.next()).done);n=!0){var l,c=s.value;null!=c.webkitGetAsEntry&&(l=c.webkitGetAsEntry())?l.isFile?i.push(e.addFile(c.getAsFile())):l.isDirectory?i.push(e._addFilesFromDirectory(l,l.name)):i.push(void 0):null!=c.getAsFile&&(null==c.kind||"file"===c.kind)?i.push(e.addFile(c.getAsFile())):i.push(void 0)}}catch(t){o=!0,a=t}finally{try{n||null==r.return||r.return()}finally{if(o)throw a}}return i}()}},{key:"_addFilesFromDirectory",value:function(t,e){var i=this,n=t.createReader(),o=function(t){return u(console,"log",function(e){return e.log(t)})},a=function t(){return n.readEntries(function(n){if(n.length>0){var o=!0,a=!1,s=void 0;try{for(var r,l=n[Symbol.iterator]();!(o=(r=l.next()).done);o=!0){var c=r.value;c.isFile?c.file(function(t){if(!i.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath="".concat(e,"/").concat(t.name),i.addFile(t)}):c.isDirectory&&i._addFilesFromDirectory(c,"".concat(e,"/").concat(c.name))}}catch(t){a=!0,s=t}finally{try{o||null==l.return||l.return()}finally{if(a)throw s}}t()}return null},o)};return a()}},{key:"accept",value:function(t,i){this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?i(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):e.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(i(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,i):i(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var i=this;t.upload={uuid:e.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t)},this.files.push(t),t.status=e.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,function(e){e?(t.accepted=!1,i._errorProcessing([t],e)):(t.accepted=!0,i.options.autoQueue&&i.enqueueFile(t)),i._updateMaxFilesReachedClass()})}},{key:"enqueueFiles",value:function(t){var e=!0,i=!1,n=void 0;try{for(var o,a=t[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var s=o.value;this.enqueueFile(s)}}catch(t){i=!0,n=t}finally{try{e||null==a.return||a.return()}finally{if(i
},chunkSuccess:function(t,e,i){},chunksUploaded:function(e,i){var n=this;Fast.api.ajax({url:this.options.url,data:t.extend({},p,{action:"merge",filesize:e.size,filename:e.name,chunkid:e.upload.uuid,chunkcount:e.upload.totalChunkCount})},function(t,e){return i(JSON.stringify(e)),!1},function(t,i){e.accepted=!1,n._errorProcessing([e],i.msg)})},onUploadSuccess:a,onUploadError:s,onUploadComplete:r},o.options,w)),g&&f&&require(["dragsort"],function(){t("#"+g).dragsort({dragSelector:"li a:not(.btn-trash)",dragEnd:function(){t("#"+g).trigger("fa.preview.change")},placeHolderTemplate:'<li class="col-xs-3"></li>'})});var _=function(e){var i={},n=t("textarea[name='"+e+"']"),o=n.prev("ul");t.each(t("input,select,textarea",o).serializeArray(),function(t,e){var n=/\[?(\w+)\]?\[(\w+)\]$/g,o=n.exec(e.name);return!o||void(isNaN(o[2])?(o[1]="x"+parseInt(o[1]),"undefined"==typeof i[o[1]]&&(i[o[1]]={}),i[o[1]][o[2]]=e.value):i[t]=e.value)});var a=[];t.each(i,function(t,e){a.push(e)}),n.val(JSON.stringify(a))};g&&m&&(t(document.body).on("keyup change","#"+m,function(i){var a=t("#"+m).val(),s=a.split(/\,/),r=t("#"+g);r.empty();var l=r.data("template")?r.data("template"):"",c=r.next().is("textarea")?r.next("textarea").val():"{}",d={};try{d=JSON.parse(c)}catch(t){}t.each(s,function(i,a){if(!a)return!0;var s=/[\.]?([a-zA-Z0-9]+)$/.exec(a);s=s?s[1]:"file";var c=t(e).data(),u="undefined"!=typeof c.cdnurl?Fast.api.cdnurl(a,c.cdnurl):Fast.api.cdnurl(a);a=Config.upload.fullmode?u:a;var h=d&&"undefined"!=typeof d[i]?d[i]:null,p={url:a,fullurl:u,data:c,key:i,index:i,value:h,row:h,suffix:s},f=l?n(l,p):n.render(o.config.previewtpl,p);r.append(f)}),_(r.data("name"))}),t("#"+m).trigger("change")),g&&(t("#"+g).on("change keyup","input,textarea,select",function(){_(t(this).closest("ul").data("name"))}),t(document.body).on("fa.preview.change","#"+g,function(){var e=[];t("#"+g+" [data-url]").each(function(i,n){e.push(t(this).data("url"))}),m&&t("#"+m).val(e.join(",")),_(t("#"+g).data("name"))}),t(document.body).on("click","#"+g+" .btn-trash",function(){t(this).closest("li").remove(),t("#"+g).trigger("fa.preview.change")})),m&&(t("#"+m).closest("form").on("reset",function(){setTimeout(t.proxy(function(){t("#"+m,this).trigger("change")},this),0)}),t("body").on("paste drop","#"+m,function(e){var i=e.originalEvent,n=t(".plupload[data-input-id='"+t(this).attr("id")+"'],.faupload[data-input-id='"+t(this).attr("id")+"']");if("paste"===e.type&&i.clipboardData&&i.clipboardData.items){var a=i.clipboardData.items;if(!(1===a.length&&a[0].type.indexOf("text")>-1||2===a.length&&a[1].type.indexOf("text")>-1))return o.list[n.attr("id")].paste(i),!1}if("drop"===e.type&&i.dataTransfer&&i.dataTransfer.files)return o.list[n.attr("id")].drop(i),!1}))})},plupload:function(t,e,i,n){return o.api.upload(t,e,i,n)},faupload:function(t,e,i,n){return o.api.upload(t,e,i,n)},send:function(e,n,a,s){var r=Layer.msg(__("Uploading"),{offset:"t",time:0}),l="dropzone-"+i.uuidv4();t('<button type="button" id="'+l+'" class="btn btn-danger hidden faupload" />').appendTo("body"),t("#"+l).data("upload-complete",function(t){Layer.close(r),o.list[l].removeAllFiles(!0)}),o.api.upload("#"+l,n,a,s),setTimeout(function(){o.list[l].addFile(e)},1)},custom:{afteruploadcallback:function(t){console.log(this,t),alert("Custom Callback,Response URL:"+t.url)}}}};return o}),function(t){"object"==typeof module&&module.exports?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("validator",["jquery"],t):t(jQuery)}(function(t,e){"use strict";function i(e,n){function o(){a.$el=t(e),a.$el.length?a._init(a.$el[0],n):W(e)&&(X[e]=n)}var a=this;return a instanceof i?void(i.pending?t(window).on("validatorready",o):o()):new i(e,n)}function n(e){function i(){var e=this.options;for(var i in e)i in K&&(this[i]=e[i]);t.extend(this,{_valHook:function(){return"true"===this.element.contentEditable?"text":"val"},getValue:function(){var e=this.element;return"number"===e.type&&e.validity&&e.validity.badInput?"NaN":t(e)[this._valHook()]()},setValue:function(e){t(this.element)[this._valHook()](this.value=e)},
t(this.element).trigger("change")};t(".datetimerange",e).each(function(){var e="function"==typeof t(this).data("callback")?t(this).data("callback"):o;t(this).on("apply.daterangepicker",function(t,i){e.call(i,i.startDate,i.endDate)}),t(this).on("cancel.daterangepicker",function(e,i){t(this).val("").trigger("change")}),t(this).daterangepicker(t.extend(!0,{},n,t(this).data()||{},t(this).data("daterangepicker-options")||{}))})})},plupload:function(t){o.events.faupload(t)},faupload:function(e){t(".plupload,.faupload",e).length>0&&i.api.upload(t(".plupload,.faupload",e))},faselect:function(e){t(".faselect,.fachoose",e).length>0&&t(".faselect,.fachoose",e).off("click").on("click",function(){var e=this,i=!!t(this).data("multiple")&&t(this).data("multiple"),n=t(this).data("mimetype")?t(this).data("mimetype"):"",o=t(this).data("admin-id")?t(this).data("admin-id"):"",a=t(this).data("user-id")?t(this).data("user-id"):"";n=n.replace(/\/\*/gi,"/");var s=t(this).data("url")?t(this).data("url"):"undefined"!=typeof Backend?"general/attachment/select":"user/attachment";return parent.Fast.api.open(s+"?element_id="+t(this).attr("id")+"&multiple="+i+"&mimetype="+n+"&admin_id="+o+"&user_id="+a,__("Choose"),{callback:function(i){var n=t(e),o=t(n).data("maxcount"),a=t(n).data("input-id")?t(n).data("input-id"):"";if(o="undefined"!=typeof o?o:0,a&&i.multiple){var s=[],r=t("#"+a),l=t.trim(r.val());""!==l&&s.push(r.val());var c=""===l?0:l.split(/\,/).length,d=""!==i.url?i.url.split(/\,/):[];if(t.each(d,function(t,e){var i=Config.upload.fullmode?Fast.api.cdnurl(e):e;s.push(i)}),o>0){var u=o-c;if(d.length>u)return Toastr.error(__("You can choose up to %d file%s",u)),!1}var h=s.join(",");r.val(h).trigger("change").trigger("validate")}else if(a){var p=Config.upload.fullmode?Fast.api.cdnurl(i.url):i.url;t("#"+a).val(p).trigger("change").trigger("validate")}}}),!1})},fieldlist:function(e){t(".fieldlist",e).length>0&&require(["dragsort","template"],function(i,n){var a=function(i){var n={},o=i.data("name"),a=t("textarea[name='"+o+"']",e),s=i.data("template");t.each(t("input,select,textarea",i).serializeArray(),function(t,e){var i=/\[(\w+)\]\[(\w+)\]$/g,o=i.exec(e.name);return!o||(o[1]="x"+parseInt(o[1]),"undefined"==typeof n[o[1]]&&(n[o[1]]={}),void(n[o[1]][o[2]]=e.value))});var r=i.data("usearray")||!1,l=i.data("keepempty")||!1,c=s||r?[]:{},d=Object.keys(Object.values(n)[0]||{}),u=!r&&d.indexOf("value")>-1&&(1===d.length||2===d.length&&d.indexOf("key")>-1);u&&2===d.length&&(c={}),t.each(n,function(t,e){e&&(u?2===d.length?(""!=e.key||l)&&(c["__PLACEHOLDKEY__"+e.key]=e.value):c.push(e.value):c.push(e))}),a.val(JSON.stringify(c).replace(/__PLACEHOLDKEY__/g,""))},s=function(e,i,a){var s=e.data("tag")||(e.is("table")?"tr":"dd"),r=e.data("index"),l=e.data("name"),c=e.data("template"),d=e.data();r=r?parseInt(r):0,e.data("index",r+1),i=i?i:{},i="undefined"==typeof i.key||"undefined"==typeof i.value?{key:"",value:i}:i;var u=e.data("fieldlist-options")||{},h={index:r,name:l,data:d,options:u,key:i.key,value:i.value,row:i.value},p=c?n(c,h):n.render(o.config.fieldlisttpl,h),f=t(p);return u.deleteBtn!==!1&&u.removeBtn!==!1||!a||f.find(".btn-remove").remove(),u.dragsortBtn===!1&&a&&f.find(".btn-dragsort").remove(),u.readonlyKey!==!0&&u.disableKey!==!0||!a||f.find("input[name$='[key]']").prop("readonly",!0),f.attr("fieldlist-item",!0),f.insertAfter(t(s+"[fieldlist-item]",e).length>0?t(s+"[fieldlist-item]:last",e):t(s+":first",e)),t(".btn-append,.append",e).length>0?t(".btn-append,.append",e).trigger("fa.event.appendfieldlist",f):e.trigger("fa.event.appendfieldlist",f),f},r=t(".fieldlist",e);e.on("reset",function(){setTimeout(function(){r.trigger("fa.event.refreshfieldlist")})}),t(document).on("change keyup changed",".fieldlist input,.fieldlist textarea,.fieldlist select",function(){var e=t(this).closest(".fieldlist");a(e)}),r.on("click",".btn-append,.append",function(e,i){var n=t(this).closest(".fieldlist");s(n,i),a(n)}),r.on("click",".btn-remove",function(){var e=t(this).closest(".fieldlist"),i=e.data("tag")||(e.is("table")?"tr":"dd");t(this).closest(i).remove(),a(e)})
showExport:!0,exportDataType:"auto",exportTypes:["json","xml","csv","txt","doc","excel"],exportOptions:{fileName:"export_"+i().format("YYYY-MM-DD"),preventInjection:!1,mso:{onMsoNumberFormat:function(e,i,n){return isNaN(t(e).text())?"":"\\@"}},ignoreColumn:[0,"operate"]},pageSize:Config.pagesize||localStorage.getItem("pagesize")||10,pageList:[10,15,20,25,50,"All"],pagination:!0,clickToSelect:!0,dblClickToEdit:!0,singleSelect:!1,showRefresh:!1,showJumpto:!0,locale:"zh-cn"===Config.language?"zh-CN":"en-US",showToggle:!0,showColumns:!0,pk:"id",sortName:"id",sortOrder:"desc",paginationFirstText:__("First"),paginationPreText:__("Previous"),paginationNextText:__("Next"),paginationLastText:__("Last"),cardView:!1,iosCardView:!0,checkOnInit:!0,escape:!0,fixDropdownPosition:!0,dragCheckboxMultiselect:!0,selectedIds:[],selectedData:[],extend:{index_url:"",add_url:"",edit_url:"",del_url:"",import_url:"",multi_url:"",dragsort_url:"ajax/weigh"}},columnDefaults:{align:"center",valign:"middle"},config:{checkboxtd:"tbody>tr>td.bs-checkbox",toolbar:".toolbar",refreshbtn:".btn-refresh",addbtn:".btn-add",editbtn:".btn-edit",delbtn:".btn-del",importbtn:".btn-import",multibtn:".btn-multi",disabledbtn:".btn-disabled",editonebtn:".btn-editone",restoreonebtn:".btn-restoreone",destroyonebtn:".btn-destroyone",restoreallbtn:".btn-restoreall",destroyallbtn:".btn-destroyall",dragsortfield:"weigh"},button:{edit:{name:"edit",icon:"fa fa-pencil",title:__("Edit"),extend:'data-toggle="tooltip" data-container="body"',classname:"btn btn-xs btn-success btn-editone"},del:{name:"del",icon:"fa fa-trash",title:__("Del"),extend:'data-toggle="tooltip" data-container="body"',classname:"btn btn-xs btn-danger btn-delone"},dragsort:{name:"dragsort",icon:"fa fa-arrows",title:__("Drag to sort"),extend:'data-toggle="tooltip"',classname:"btn btn-xs btn-primary btn-dragsort"}},api:{init:function(e,i,o){e=e?e:{},i=i?i:{},o=o?o:{},t.fn.bootstrapTable.Constructor.prototype.getSelectItem=function(){return this.$selectItem};var a=t.fn.bootstrapTable.Constructor.prototype.onPageListChange;t.fn.bootstrapTable.Constructor.prototype.onPageListChange=function(){return a.apply(this,Array.prototype.slice.apply(arguments)),localStorage.setItem("pagesize",this.options.pageSize),!1},t.extend(!0,t.fn.bootstrapTable.defaults,n.defaults,e),t.extend(t.fn.bootstrapTable.columnDefaults,n.columnDefaults,i),t.extend(t.fn.bootstrapTable.locales[n.defaults.locale],{formatCommonSearch:function(){return __("Common search")},formatCommonSubmitButton:function(){return __("Submit")},formatCommonResetButton:function(){return __("Reset")},formatCommonCloseButton:function(){return __("Close")},formatCommonChoose:function(){return __("Choose")},formatJumpto:function(){return __("Go")}},o),t.fn.bootstrapTable.defaults.iosCardView&&navigator.userAgent.match(/(iPod|iPhone|iPad)/)&&(n.defaults.cardView=!0,t.fn.bootstrapTable.defaults.cardView=!0),"undefined"!=typeof e.exportTypes&&(t.fn.bootstrapTable.defaults.exportTypes=e.exportTypes)},bindevent:function(e){var i=e.closest(".bootstrap-table"),o=e.bootstrapTable("getOptions"),a=t(o.toolbar,i),s=t(".btn-selected-tips",i);0===s.length&&(s=t('<a href="javascript:" class="btn btn-warning-light btn-selected-tips hide" data-animation="false" data-toggle="tooltip" data-title="'+__("Click to uncheck all")+'"><i class="fa fa-info-circle"></i> '+__("Multiple selection mode: %s checked","<b>0</b>")+"</a>").appendTo(a)),s.off("click").on("click",function(t){e.trigger("uncheckbox"),e.bootstrapTable("refresh")}),e.on("uncheckbox",function(t,e,i){o.selectedIds=[],o.selectedData=[],s.tooltip("hide"),s.addClass("hide")}),e.on("load-error.bs.table",function(t,e,i){0!==i.status&&Toastr.error(__("Unknown data format"))}),e.on("load-success.bs.table",function(t,e){"undefined"==typeof e.rows&&"undefined"!=typeof e.code&&Toastr.error(e.msg)}),e.on("refresh.bs.table",function(e,i,o){t(n.config.refreshbtn,a).find(".fa").addClass("fa-spin"),t(".layui-layer-autocontent").remove()}),e.on("search.bs.table common-search.bs.table",function(t,i,n){e.trigger("uncheckbox")}),o.dblClickToEdit
var n=t(this).offset();n.right=n.left+t(this).outerWidth(),n.bottom=n.top+t(this).outerHeight(),n.elm=this,e[i]=n}),this.pos=e},dropItem:function(){if(null!=o.draggedItem){var e=o.draggedItem.attr("data-origstyle");if(o.draggedItem.attr("style",e),""==e&&o.draggedItem.removeAttr("style"),o.draggedItem.removeAttr("data-origstyle"),o.styleDragHandlers(!0),o.placeHolderItem.before(o.draggedItem),o.placeHolderItem.remove(),t("[data-droptarget], .dragSortItem").remove(),window.clearInterval(o.scroll.scrollY),window.clearInterval(o.scroll.scrollX),o.draggedItem.attr("data-origpos")!=t(n).index(o)+"-"+t(o.container).children().index(o.draggedItem)&&0==i.dragEnd.apply(o.draggedItem)){var a=o.draggedItem.attr("data-origpos").split("-"),s=t(n[a[0]].container).children().not(o.draggedItem).eq(a[1]);s.length>0?s.before(o.draggedItem):0==a[1]?t(n[a[0]].container).prepend(o.draggedItem):t(n[a[0]].container).append(o.draggedItem)}return o.draggedItem.removeAttr("data-origpos"),o.draggedItem=null,t(document).unbind("mousemove",o.swapItems),t(document).unbind("mouseup",o.dropItem),i.scrollContainer!=window&&t(window).unbind("wheel",o.wheel),!1}},swapItems:function(e){if(null==o.draggedItem)return!1;o.setPos(e.pageX,e.pageY);for(var s=o.findPos(e.pageX,e.pageY),r=o,l=0;s==-1&&i.dragBetween&&l<n.length;l++)s=n[l].findPos(e.pageX,e.pageY),r=n[l];if(s==-1)return!1;var c=function(){return t(r.container).children().not(r.draggedItem)},d=c().not(i.itemSelector).each(function(t){this.idx=c().index(this)});return null==a||a.top>o.draggedItem.offset().top||a.left>o.draggedItem.offset().left?t(r.pos[s].elm).before(o.placeHolderItem):t(r.pos[s].elm).after(o.placeHolderItem),d.each(function(){var e=c().eq(this.idx).get(0);this!=e&&c().index(this)<this.idx?t(this).insertAfter(e):this!=e&&t(this).insertBefore(e)}),t(n).each(function(t,e){e.createDropTargets(),e.buildPositionTable()}),a=o.draggedItem.offset(),!1},findPos:function(t,e){for(var i=0;i<this.pos.length;i++)if(this.pos[i].left<t&&this.pos[i].right>t&&this.pos[i].top<e&&this.pos[i].bottom>e)return i;return-1},createDropTargets:function(){i.dragBetween&&t(n).each(function(){var e=t(this.container).find("[data-placeholder]"),n=t(this.container).find("[data-droptarget]");e.length>0&&n.length>0?n.remove():0==e.length&&0==n.length&&("td"==i.tagName?t(i.placeHolderTemplate).attr("data-droptarget",!0).appendTo(this.container):t(this.container).append(o.placeHolderItem.removeAttr("data-placeholder").clone().attr("data-droptarget",!0)),o.placeHolderItem.attr("data-placeholder",!0))})}};r.init(),n.push(r)}),this},t.fn.dragsort.defaults={tagName:"",itemSelector:"",dragSelector:"",dragSelectorExclude:"input, textarea",dragEnd:function(){},dragBetween:!1,placeHolderTemplate:"",scrollContainer:window,scrollSpeed:5}}(jQuery),define("dragsort",function(){}),function(t){t.fn.addtabs=function(e){var i=t(this);e=t.extend({content:"",close:!0,monitor:"body",nav:".nav-addtabs",tab:".tab-addtabs",iframeUse:!0,simple:!1,iframeHeight:t(window).height()-50,iframeForceRefresh:!1,iframeForceRefreshTable:!1,callback:function(){}},e||{});var n=t(e.nav),o=t(e.tab);history.pushState&&t(window).on("popstate",function(i){var n=i.originalEvent.state;n&&t("a[addtabs="+n.id+"]",e.monitor).data("pushstate",!0).trigger("click")}),t(e.monitor).on("click","[addtabs]",function(i){if(0!==t(this).attr("url").indexOf("javascript:")){t(this).is("a")&&i.preventDefault();var n=t(this).attr("addtabs"),o=t(this).attr("title")?t(this).attr("title"):t.trim(t(this).text()),s=t(this).attr("url"),r=e.content?e.content:t(this).attr("content"),l="1"===t(this).attr("ajax")||"true"===t(this).attr("ajax"),c={url:s,title:o,id:n,content:r,ajax:l};if(document.title=o,history.pushState&&!t(this).data("pushstate")){var d=s.indexOf("ref=addtabs")===-1?s+(s.indexOf("?")>-1?"&":"?")+"ref=addtabs":s;try{window.history.pushState(c,o,d)}catch(t){}}t(this).data("pushstate",null),a.call(this,{id:n,title:t(this).attr("title")?t(this).attr("title"):t(this).html(),content:r,url:s,ajax:l})}}),n.on("click",".close-tab",function(){var e=t(this).prev("a").attr("aria-con
var i=e.option,n=e.elem,o=function(){if("static"!==n.container.css("position")){if(!i.pagination){var e=n.results.find("li:first").outerHeight(!0),o=e*i.listSize;n.results.css({"max-height":o,"overflow-y":"auto"})}var a=t(document).width(),s=t(document).height(),r=t(window).height(),l=n.container.offset(),c=t(window).scrollTop(),d=n.result_area.outerWidth(),o=n.result_area.outerHeight(),u=l.left,h=n.container.outerHeight(),p=l.left+d>a?u-(d-n.container.outerWidth()):u,f=l.top,m=0,g=5,v=f+h+o+g,y=f+o+g,b=s>r;return f-c-g>o&&b&&v>r+c||!b&&v>r&&f>=y?(m=l.top-o-g,n.result_area.removeClass("shadowUp shadowDown").addClass("shadowUp")):(m=l.top+(i.multiple?n.container.outerHeight():h),n.result_area.removeClass("shadowUp shadowDown").addClass("shadowDown"),m+=g),{top:m+"px",left:p+"px"}}var l=n.combo_input.offset();n.result_area.css({top:l.top+n.combo_input.outerHeight()+"px",left:l.left+"px"})};if(n.result_area.is(":visible"))n.result_area.css(o());else{var a=o();n.result_area.css(a).show(1,function(){var t=o();a.top===t.top&&a.left===t.left||n.result_area.css(t)})}},d.prototype.hideResults=function(e){e.prop.key_paging&&(e.scrollWindow(e,!0),e.prop.key_paging=!1),e.setCssFocusedInput(e),e.option.autoFillResult,e.elem.results.empty(),e.elem.result_area.hide(),e.setOpenStatus(e,!1),t(window).off("scroll.SelectPage"),e.abortAjax(e),e.setButtonAttrDefault()},d.prototype.disabled=function(e,i){var n=(e.option,e.elem);return"undefined"===t.type(i)?n.combo_input.prop("disabled"):void("boolean"===t.type(i)&&(n.combo_input.prop("disabled",i),i?n.container.addClass(e.css_class.disabled):n.container.removeClass(e.css_class.disabled)))},d.prototype.firstPage=function(t){t.prop.current_page>1&&(t.prop.current_page=1,t.prop.page_move=!0,t.suggest(t))},d.prototype.prevPage=function(t){t.prop.current_page>1&&(t.prop.current_page--,t.prop.page_move=!0,t.suggest(t))},d.prototype.nextPage=function(t){t.prop.current_page<t.prop.max_page&&(t.prop.current_page++,t.prop.page_move=!0,t.suggest(t))},d.prototype.lastPage=function(t){t.prop.current_page<t.prop.max_page&&(t.prop.current_page=t.prop.max_page,t.prop.page_move=!0,t.suggest(t))},d.prototype.afterAction=function(t,e){t.inputResize(t),t.elem.combo_input.change(),t.setCssFocusedInput(t),t.prop.init_set||(t.option.multiple?(t.option.selectToCloseList&&(t.hideResults(t),t.elem.combo_input.blur()),!t.option.selectToCloseList&&e&&(t.suggest(t),t.elem.combo_input.focus())):(t.hideResults(t),t.elem.combo_input.blur()))},d.prototype.selectCurrentLine=function(e,i){e.scrollWindow(e,!0);var n=e.option,o=e.getCurrentLine(e);if(o){var a=o.data("dataObj"),s=a[n.showField]||o.text(),r=o.attr("pkey");if(n.multiple){e.elem.combo_input.val("");var l={text:s,value:r};e.isAlreadySelected(e,l)||(e.addNewTag(e,a,l),e.tagValuesSet(e))}else e.elem.combo_input.val(s),e.elem.hidden.val(r);n.selectOnly&&e.setButtonAttrDefault(),n.eSelect&&t.isFunction(n.eSelect)&&n.eSelect(a,e),e.prop.prev_value=e.elem.combo_input.val(),e.prop.selected_text=e.elem.combo_input.val(),e.putClearButton()}e.afterAction(e,!0)},d.prototype.putClearButton=function(){this.option.multiple||this.elem.combo_input.prop("disabled")||this.elem.container.append(this.elem.clear_btn)},d.prototype.selectAllLine=function(e){var i=e.option,n=new Array;e.elem.results.find("li").each(function(o,a){var s=t(a),r=s.data("dataObj"),l=r[i.showField]||s.text(),c=s.attr("pkey"),d={text:l,value:c};if(e.isAlreadySelected(e,d)||(e.addNewTag(e,r,d),e.tagValuesSet(e)),n.push(r),"number"===t.type(i.maxSelectLimit)&&i.maxSelectLimit>0&&i.maxSelectLimit===e.elem.element_box.find("li.selected_tag").length)return!1}),i.eSelect&&t.isFunction(i.eSelect)&&i.eSelect(n,e),e.afterAction(e,!0)},d.prototype.unSelectAllLine=function(e){var i=e.option,n=(e.elem.results.find("li").length,[]);e.elem.results.find("li").each(function(i,o){var a=t(o).attr("pkey"),s=e.elem.element_box.find('li.selected_tag[itemvalue="'+a+'"]');s.length&&n.push(s.data("dataObj")),e.removeTag(e,s)}),e.afterAction(e,!0),i.eTagRemove&&t.isFunction(i.eTagRemove)&&i.eTagRemove(n)},d.prototype.clearAll=function(e
this.outsideClick(t)},this),e(document).on("mousedown.daterangepicker",this._outsideClickProxy).on("touchend.daterangepicker",this._outsideClickProxy).on("click.daterangepicker","[data-toggle=dropdown]",this._outsideClickProxy).on("focusin.daterangepicker",this._outsideClickProxy),e(window).on("resize.daterangepicker",e.proxy(function(t){this.move(t)},this)),this.oldStartDate=this.startDate.clone(),this.oldEndDate=this.endDate.clone(),this.previousRightTime=this.endDate.clone(),this.updateView(),this.container.show(),this.move(),this.element.trigger("show.daterangepicker",this),this.isShowing=!0)},hide:function(t){this.isShowing&&(this.endDate||(this.startDate=this.oldStartDate.clone(),this.endDate=this.oldEndDate.clone()),this.startDate.isSame(this.oldStartDate)&&this.endDate.isSame(this.oldEndDate)||this.callback(this.startDate,this.endDate,this.chosenLabel),this.updateElement(),e(document).off(".daterangepicker"),e(window).off(".daterangepicker"),this.container.hide(),this.element.trigger("hide.daterangepicker",this),this.isShowing=!1)},toggle:function(t){this.isShowing?this.hide():this.show()},outsideClick:function(t){var i=e(t.target);"focusin"==t.type||i.closest(this.element).length||i.closest(this.container).length||i.closest(".calendar-table").length||(this.hide(),this.element.trigger("outsideClick.daterangepicker",this))},showCalendars:function(){this.container.addClass("show-calendar"),this.move(),this.element.trigger("showCalendar.daterangepicker",this)},hideCalendars:function(){this.container.removeClass("show-calendar"),this.element.trigger("hideCalendar.daterangepicker",this)},hoverRange:function(t){if(!this.container.find("input[name=daterangepicker_start]").is(":focus")&&!this.container.find("input[name=daterangepicker_end]").is(":focus")){var e=t.target.getAttribute("data-range-key");if(e==this.locale.customRangeLabel)this.updateView();else{var i=this.ranges[e];this.container.find("input[name=daterangepicker_start]").val(i[0].format(this.locale.format)),this.container.find("input[name=daterangepicker_end]").val(i[1].format(this.locale.format))}}},clickRange:function(t){var e=t.target.getAttribute("data-range-key");if(this.chosenLabel=e,e==this.locale.customRangeLabel)this.showCalendars();else{var i=this.ranges[e];this.startDate=i[0],this.endDate=i[1],this.timePicker||(this.startDate.startOf("day"),this.endDate.endOf("day")),this.alwaysShowCalendars||this.hideCalendars(),this.clickApply()}},clickPrev:function(t){var i=e(t.target).parents(".calendar");i.hasClass("left")?(this.leftCalendar.month.subtract(1,"month"),this.linkedCalendars&&this.rightCalendar.month.subtract(1,"month")):this.rightCalendar.month.subtract(1,"month"),this.updateCalendars()},clickNext:function(t){var i=e(t.target).parents(".calendar");i.hasClass("left")?this.leftCalendar.month.add(1,"month"):(this.rightCalendar.month.add(1,"month"),this.linkedCalendars&&this.leftCalendar.month.add(1,"month")),this.updateCalendars()},hoverDate:function(t){if(e(t.target).hasClass("available")){var i=e(t.target).attr("data-title"),n=i.substr(1,1),o=i.substr(3,1),a=e(t.target).parents(".calendar"),s=a.hasClass("left")?this.leftCalendar.calendar[n][o]:this.rightCalendar.calendar[n][o];this.endDate&&!this.container.find("input[name=daterangepicker_start]").is(":focus")?this.container.find("input[name=daterangepicker_start]").val(s.format(this.locale.format)):this.endDate||this.container.find("input[name=daterangepicker_end]").is(":focus")||this.container.find("input[name=daterangepicker_end]").val(s.format(this.locale.format));var r=this.leftCalendar,l=this.rightCalendar,c=this.startDate;this.endDate||this.container.find(".calendar tbody td").each(function(t,i){if(!e(i).hasClass("week")){var n=e(i).attr("data-title"),o=n.substr(1,1),a=n.substr(3,1),d=e(i).parents(".calendar"),u=d.hasClass("left")?r.calendar[o][a]:l.calendar[o][a];u.isAfter(c)&&u.isBefore(s)||u.isSame(s,"day")?e(i).addClass("in-range"):e(i).removeClass("in-range")}})}},clickDate:function(t){if(e(t.target).hasClass("available")){var i=e(t.target).attr("data-title"),n=i.substr(1,1),o=i.subs