UNPKG

31.9 kBJavaScriptView Raw
1/*!
2 * CoreUI v2.1.16 (https://coreui.io)
3 * Copyright 2019 Łukasz Holeczek
4 * Licensed under MIT (https://coreui.io)
5 */
6!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("perfect-scrollbar")):"function"==typeof define&&define.amd?define(["exports","jquery","perfect-scrollbar"],e):e((t=t||self).coreui={},t.jQuery,t.PerfectScrollbar)}(this,function(t,e,r){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e,r=r&&r.hasOwnProperty("default")?r.default:r;function f(t){try{return!!t()}catch(t){return!0}}var d=!f(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function o(t,e){return t(e={exports:{}},e.exports),e.exports}function i(t){return t&&t.Math==Math&&t}function p(t){return"object"==typeof t?null!==t:"function"==typeof t}function a(t){return S?w.createElement(t):{}}function O(t){if(!p(t))throw TypeError(String(t)+" is not an object");return t}function u(t,e){if(!p(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!p(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!p(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!p(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}function y(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}function l(e,n){try{_(b,e,n)}catch(t){b[e]=n}return n}function s(t,e){return j.call(t,e)}function c(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++R+M).toString(36)}function h(t){return D[t]||(D[t]=c(t))}var g,v,m,b=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n&&n)||Function("return this")(),w=b.document,S=p(w)&&p(w.createElement),I=!d&&!f(function(){return 7!=Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a}),x=Object.defineProperty,L={f:d?x:function(t,e,n){if(O(t),e=u(e,!0),O(n),I)try{return x(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}},_=d?function(t,e,n){return L.f(t,e,y(1,n))}:function(t,e,n){return t[e]=n,t},E="__core-js_shared__",T=b[E]||l(E,{}),C=o(function(t){(t.exports=function(t,e){return T[t]||(T[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.3.4",mode:"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),j={}.hasOwnProperty,A=C("native-function-to-string",Function.toString),k=b.WeakMap,P="function"==typeof k&&/native code/.test(A.call(k)),R=0,M=Math.random(),D=C("keys"),G={},N=b.WeakMap;if(P){var K=new N,Q=K.get,U=K.has,q=K.set;g=function(t,e){return q.call(K,t,e),e},v=function(t){return Q.call(K,t)||{}},m=function(t){return U.call(K,t)}}else{var V=h("state");G[V]=!0,g=function(t,e){return _(t,V,e),e},v=function(t){return s(t,V)?t[V]:{}},m=function(t){return s(t,V)}}function F(t){return X[t]||(X[t]=J&&W[t]||(J?W:c)("Symbol."+t))}function $(){var t=O(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}var z,B,H={set:g,get:v,has:m,enforce:function(t){return m(t)?v(t):g(t,{})},getterFor:function(n){return function(t){var e;if(!p(t)||(e=v(t)).type!==n)throw TypeError("Incompatible receiver, "+n+" required");return e}}},Y=o(function(t){var e=H.get,u=H.enforce,c=String(A).split("toString");C("inspectSource",function(t){return A.call(t)}),(t.exports=function(t,e,n,r){var o=!!r&&!!r.unsafe,i=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet;"function"==typeof n&&("string"!=typeof e||s(n,"name")||_(n,"name",e),u(n).source=c.join("string"==typeof e?e:"")),t!==b?(o?!a&&t[e]&&(i=!0):delete t[e],i?t[e]=n:_(t,e,n)):i?t[e]=n:l(e,n)})(Function.prototype,"toString",function(){return"function"==typeof this&&e(this).source||A.call(this)})}),J=!!Object.getOwnPropertySymbols&&!f(function(){return!String(Symbol())}),W=b.Symbol,X=C("wks"),Z=RegExp.prototype.exec,tt=String.prototype.replace,et=Z,nt=(z=/a/,B=/b*/g,Z.call(z,"a"),Z.call(B,"a"),0!==z.lastIndex||0!==B.lastIndex),rt=void 0!==/()??/.exec("")[1];(nt||rt)&&(et=function(t){var e,n,r,o,i=this;return rt&&(n=new RegExp("^"+i.source+"$(?!\\s)",$.call(i))),nt&&(e=i.lastIndex),r=Z.call(i,t),nt&&r&&(i.lastIndex=i.global?r.index+r[0].length:e),rt&&r&&1<r.length&&tt.call(r[0],n,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(r[o]=void 0)}),r});function ot(n,t,e,r){var o=F(n),i=!f(function(){var t={};return t[o]=function(){return 7},7!=""[n](t)}),a=i&&!f(function(){var t=!1,e=/a/;return"split"===n&&((e={constructor:{}}).constructor[ht]=function(){return e},e.flags="",e[o]=/./[o]),e.exec=function(){return t=!0,null},e[o](""),!t});if(!i||!a||"replace"===n&&!gt||"split"===n&&!vt){var u=/./[o],c=e(o,""[n],function(t,e,n,r,o){return e.exec===pt?i&&!o?{done:!0,value:u.call(e,n,r)}:{done:!0,value:t.call(n,e,r)}:{done:!1}}),s=c[0],l=c[1];Y(String.prototype,n,s),Y(RegExp.prototype,o,2==t?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}),r&&_(RegExp.prototype[o],"sham",!0)}}function it(t){return yt.call(t).slice(8,-1)}function at(t){if(null==t)throw TypeError("Can't call method on "+t);return t}function ut(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}function ct(t){return isNaN(t=+t)?0:(0<t?St:wt)(t)}function st(u){return function(t,e){var n,r,o=String(at(t)),i=ct(e),a=o.length;return i<0||a<=i?u?"":void 0:(n=o.charCodeAt(i))<55296||56319<n||i+1===a||(r=o.charCodeAt(i+1))<56320||57343<r?u?o.charAt(i):n:u?o.slice(i,i+2):r-56320+(n-55296<<10)+65536}}function lt(t,e,n){return e+(n?xt(t,e).length:1)}function ft(t){return 0<t?Ot(ct(t),9007199254740991):0}function dt(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"!==it(t))throw TypeError("RegExp#exec called on incompatible receiver");return pt.call(t,e)}var pt=et,ht=F("species"),gt=!f(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),vt=!f(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]}),yt={}.toString,mt=F("match"),bt=F("species"),wt=Math.ceil,St=Math.floor,It={codeAt:st(!1),charAt:st(!0)},xt=It.charAt,Ot=Math.min,Lt=[].push,_t=Math.min,Et=4294967295,Tt=!f(function(){return!RegExp(Et,"y")});ot("split",2,function(o,v,y){var m;return m="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||1<".".split(/()()/).length||"".split(/.?/).length?function(t,e){var n=String(at(this)),r=void 0===e?Et:e>>>0;if(0==r)return[];if(void 0===t)return[n];if(!function(t){var e;return p(t)&&(void 0!==(e=t[mt])?!!e:"RegExp"==it(t))}(t))return v.call(n,t,r);for(var o,i,a,u=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),s=0,l=new RegExp(t.source,c+"g");(o=pt.call(l,n))&&!(s<(i=l.lastIndex)&&(u.push(n.slice(s,o.index)),1<o.length&&o.index<n.length&&Lt.apply(u,o.slice(1)),a=o[0].length,s=i,u.length>=r));)l.lastIndex===o.index&&l.lastIndex++;return s===n.length?!a&&l.test("")||u.push(""):u.push(n.slice(s)),u.length>r?u.slice(0,r):u}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:v.call(this,t,e)}:v,[function(t,e){var n=at(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n,e):m.call(String(n),t,e)},function(t,e){var n=y(m,t,this,e,m!==v);if(n.done)return n.value;var r=O(t),o=String(this),i=function(t,e){var n,r=O(t).constructor;return void 0===r||null==(n=O(r)[bt])?e:ut(n)}(r,RegExp),a=r.unicode,u=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(Tt?"y":"g"),c=new i(Tt?r:"^(?:"+r.source+")",u),s=void 0===e?Et:e>>>0;if(0==s)return[];if(0===o.length)return null===dt(c,o)?[o]:[];for(var l=0,f=0,d=[];f<o.length;){c.lastIndex=Tt?f:0;var p,h=dt(c,Tt?o:o.slice(f));if(null===h||(p=_t(ft(c.lastIndex+(Tt?0:f)),o.length))===l)f=lt(o,f,a);else{if(d.push(o.slice(l,f)),d.length===s)return d;for(var g=1;g<=h.length-1;g++)if(d.push(h[g]),d.length===s)return d;f=l=p}}return d.push(o.slice(l)),d}]},!Tt);function Ct(t){return Bt(at(t))}function jt(t){return"function"==typeof t?t:void 0}function At(t,e){return arguments.length<2?jt(Jt[t])||jt(b[t]):Jt[t]&&Jt[t][e]||b[t]&&b[t][e]}function kt(t,e){var n=ct(t);return n<0?Wt(n+e,0):Xt(n,e)}function Pt(u){return function(t,e,n){var r,o=Ct(t),i=ft(o.length),a=kt(n,i);if(u&&e!=e){for(;a<i;)if((r=o[a++])!=r)return!0}else for(;a<i;a++)if((u||a in o)&&o[a]===e)return u||a||0;return!u&&-1}}function Rt(t,e){var n,r=Ct(t),o=0,i=[];for(n in r)!s(G,n)&&s(r,n)&&i.push(n);for(;e.length>o;)s(r,n=e[o++])&&(~Zt(i,n)||i.push(n));return i}function Mt(t,e){for(var n=oe(e),r=L.f,o=Yt.f,i=0;i<n.length;i++){var a=n[i];s(t,a)||r(t,a,o(e,a))}}function Dt(t,e){var n=ue[ae(t)];return n==se||n!=ce&&("function"==typeof e?f(e):!!e)}function Gt(t,e){var n,r,o,i,a,u=t.target,c=t.global,s=t.stat;if(n=c?b:s?b[u]||l(u,{}):(b[u]||{}).prototype)for(r in e){if(i=e[r],o=t.noTargetGet?(a=fe(n,r))&&a.value:n[r],!le(c?r:u+(s?".":"#")+r,t.forced)&&void 0!==o){if(typeof i==typeof o)continue;Mt(i,o)}(t.sham||o&&o.sham)&&_(i,"sham",!0),Y(n,r,i,t)}}function Nt(r,o,t){if(ut(r),void 0===o)return r;switch(t){case 0:return function(){return r.call(o)};case 1:return function(t){return r.call(o,t)};case 2:return function(t,e){return r.call(o,t,e)};case 3:return function(t,e,n){return r.call(o,t,e,n)}}return function(){return r.apply(o,arguments)}}function Kt(t){return Object(at(t))}function Qt(e,t,n,r){try{return r?t(O(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&O(o.call(e)),t}}function Ut(t,e,n){var r=u(e);r in t?L.f(t,r,y(0,n)):t[r]=n}function qt(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),ge))?n:ve?it(e):"Object"==(r=it(e))&&"function"==typeof e.callee?"Arguments":r}var Vt={}.propertyIsEnumerable,Ft=Object.getOwnPropertyDescriptor,$t={f:Ft&&!Vt.call({1:2},1)?function(t){var e=Ft(this,t);return!!e&&e.enumerable}:Vt},zt="".split,Bt=f(function(){return!Object("z").propertyIsEnumerable(0)})?function(t){return"String"==it(t)?zt.call(t,""):Object(t)}:Object,Ht=Object.getOwnPropertyDescriptor,Yt={f:d?Ht:function(t,e){if(t=Ct(t),e=u(e,!0),I)try{return Ht(t,e)}catch(t){}if(s(t,e))return y(!$t.f.call(t,e),t[e])}},Jt=b,Wt=Math.max,Xt=Math.min,Zt={includes:Pt(!0),indexOf:Pt(!1)}.indexOf,te=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ee=te.concat("length","prototype"),ne={f:Object.getOwnPropertyNames||function(t){return Rt(t,ee)}},re={f:Object.getOwnPropertySymbols},oe=At("Reflect","ownKeys")||function(t){var e=ne.f(O(t)),n=re.f;return n?e.concat(n(t)):e},ie=/#|\.prototype\./,ae=Dt.normalize=function(t){return String(t).replace(ie,".").toLowerCase()},ue=Dt.data={},ce=Dt.NATIVE="N",se=Dt.POLYFILL="P",le=Dt,fe=Yt.f,de={},pe=F("iterator"),he=Array.prototype,ge=F("toStringTag"),ve="Arguments"==it(function(){return arguments}()),ye=F("iterator"),me=F("iterator"),be=!1;try{var we=0,Se={next:function(){return{done:!!we++}},return:function(){be=!0}};Se[me]=function(){return this},Array.from(Se,function(){throw 2})}catch(t){}var Ie=!function(t,e){if(!e&&!be)return!1;var n=!1;try{var r={};r[me]=function(){return{next:function(){return{done:n=!0}}}},t(r)}catch(t){}return n}(function(t){Array.from(t)});Gt({target:"Array",stat:!0,forced:Ie},{from:function(t,e,n){var r,o,i,a,u,c=Kt(t),s="function"==typeof this?this:Array,l=arguments.length,f=1<l?e:void 0,d=void 0!==f,p=0,h=function(t){if(null!=t)return t[ye]||t["@@iterator"]||de[qt(t)]}(c);if(d&&(f=Nt(f,2<l?n:void 0,2)),null==h||s==Array&&function(t){return void 0!==t&&(de.Array===t||he[pe]===t)}(h))for(o=new s(r=ft(c.length));p<r;p++)Ut(o,p,d?f(c[p],p):c[p]);else for(u=(a=h.call(c)).next,o=new s;!(i=u.call(a)).done;p++)Ut(o,p,d?Qt(a,f,[i.value,p],!0):i.value);return o.length=p,o}});function xe(t,e){var n;return Ee(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!Ee(n.prototype)?p(n)&&null===(n=n[Te])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===e?0:e)}function Oe(p){var h=1==p,g=2==p,v=3==p,y=4==p,m=6==p,b=5==p||m;return function(t,e,n,r){for(var o,i,a=Kt(t),u=Bt(a),c=Nt(e,n,3),s=ft(u.length),l=0,f=r||xe,d=h?f(t,s):g?f(t,0):void 0;l<s;l++)if((b||l in u)&&(i=c(o=u[l],l,a),p))if(h)d[l]=i;else if(i)switch(p){case 3:return!0;case 5:return o;case 6:return l;case 2:Ce.call(d,o)}else if(y)return!1;return m?-1:v||y?y:d}}var Le,_e,Ee=Array.isArray||function(t){return"Array"==it(t)},Te=F("species"),Ce=[].push,je={forEach:Oe(0),map:Oe(1),filter:Oe(2),some:Oe(3),every:Oe(4),find:Oe(5),findIndex:Oe(6)},Ae=At("navigator","userAgent")||"",ke=b.process,Pe=ke&&ke.versions,Re=Pe&&Pe.v8;Re?_e=(Le=Re.split("."))[0]+Le[1]:Ae&&(Le=Ae.match(/Chrome\/(\d+)/))&&(_e=Le[1]);function Me(e){return 51<=De||!f(function(){var t=[];return(t.constructor={})[Ge]=function(){return{foo:1}},1!==t[e](Boolean).foo})}var De=_e&&+_e,Ge=F("species"),Ne=je.map;Gt({target:"Array",proto:!0,forced:!Me("map")},{map:function(t,e){return Ne(this,t,1<arguments.length?e:void 0)}});var Ke=Object.keys||function(t){return Rt(t,te)},Qe=Object.assign,Ue=!Qe||f(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=Qe({},t)[n]||Ke(Qe({},e)).join("")!=r})?function(t,e){for(var n=Kt(t),r=arguments.length,o=1,i=re.f,a=$t.f;o<r;)for(var u,c=Bt(arguments[o++]),s=i?Ke(c).concat(i(c)):Ke(c),l=s.length,f=0;f<l;)u=s[f++],d&&!a.call(c,u)||(n[u]=c[u]);return n}:Qe;Gt({target:"Object",stat:!0,forced:Object.assign!==Ue},{assign:Ue});var qe,Ve,Fe,$e=!f(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),ze=h("IE_PROTO"),Be=Object.prototype,He=$e?Object.getPrototypeOf:function(t){return t=Kt(t),s(t,ze)?t[ze]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Be:null},Ye=F("iterator"),Je=!1;[].keys&&("next"in(Fe=[].keys())?(Ve=He(He(Fe)))!==Object.prototype&&(qe=Ve):Je=!0),null==qe&&(qe={}),s(qe,Ye)||_(qe,Ye,function(){return this});function We(){}var Xe={IteratorPrototype:qe,BUGGY_SAFARI_ITERATORS:Je},Ze=d?Object.defineProperties:function(t,e){O(t);for(var n,r=Ke(e),o=r.length,i=0;i<o;)L.f(t,n=r[i++],e[n]);return t},tn=At("document","documentElement"),en=h("IE_PROTO"),nn="prototype",rn=function(){var t,e=a("iframe"),n=te.length,r="script";for(e.style.display="none",tn.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write("<script>document.F=Object</"+r+">"),t.close(),rn=t.F;n--;)delete rn[nn][te[n]];return rn()},on=Object.create||function(t,e){var n;return null!==t?(We[nn]=O(t),n=new We,We[nn]=null,n[en]=t):n=rn(),void 0===e?n:Ze(n,e)};G[en]=!0;function an(t,e,n){t&&!s(t=n?t:t.prototype,ln)&&sn(t,ln,{configurable:!0,value:e})}function un(){return this}function cn(){return this}var sn=L.f,ln=F("toStringTag"),fn=Xe.IteratorPrototype,dn=Object.setPrototypeOf||("__proto__"in{}?function(){var n,r=!1,t={};try{(n=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(t,[]),r=t instanceof Array}catch(t){}return function(t,e){return O(t),function(t){if(!p(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype")}(e),r?n.call(t,e):t.__proto__=e,t}}():void 0),pn=Xe.IteratorPrototype,hn=Xe.BUGGY_SAFARI_ITERATORS,gn=F("iterator"),vn="values",yn="entries",mn=It.charAt,bn="String Iterator",wn=H.set,Sn=H.getterFor(bn);!function(t,e,n,r,o,i,a){!function(t,e,n){var r=e+" Iterator";t.prototype=on(fn,{next:y(1,n)}),an(t,r,!1),de[r]=un}(n,e,r);function u(t){if(t===o&&g)return g;if(!hn&&t in p)return p[t];switch(t){case"keys":case vn:case yn:return function(){return new n(this,t)}}return function(){return new n(this)}}var c,s,l,f=e+" Iterator",d=!1,p=t.prototype,h=p[gn]||p["@@iterator"]||o&&p[o],g=!hn&&h||u(o),v="Array"==e&&p.entries||h;if(v&&(c=He(v.call(new t)),pn!==Object.prototype&&c.next&&(He(c)!==pn&&(dn?dn(c,pn):"function"!=typeof c[gn]&&_(c,gn,cn)),an(c,f,!0))),o==vn&&h&&h.name!==vn&&(d=!0,g=function(){return h.call(this)}),p[gn]!==g&&_(p,gn,g),de[e]=g,o)if(s={values:u(vn),keys:i?g:u("keys"),entries:u(yn)},a)for(l in s)!hn&&!d&&l in p||Y(p,l,s[l]);else Gt({target:e,proto:!0,forced:hn||d},s)}(String,"String",function(t){wn(this,{type:bn,string:String(t),index:0})},function(){var t,e=Sn(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=mn(n,r),e.index+=t.length,{value:t,done:!1})});var In=Math.max,xn=Math.min,On=Math.floor,Ln=/\$([$&'`]|\d\d?|<[^>]*>)/g,_n=/\$([$&'`]|\d\d?)/g;ot("replace",2,function(o,S,I){return[function(t,e){var n=at(this),r=null==t?void 0:t[o];return void 0!==r?r.call(t,n,e):S.call(String(n),t,e)},function(t,e){var n=I(S,t,this,e);if(n.done)return n.value;var r=O(t),o=String(this),i="function"==typeof e;i||(e=String(e));var a=r.global;if(a){var u=r.unicode;r.lastIndex=0}for(var c=[];;){var s=dt(r,o);if(null===s)break;if(c.push(s),!a)break;""===String(s[0])&&(r.lastIndex=lt(o,ft(r.lastIndex),u))}for(var l,f="",d=0,p=0;p<c.length;p++){s=c[p];for(var h=String(s[0]),g=In(xn(ct(s.index),o.length),0),v=[],y=1;y<s.length;y++)v.push(void 0===(l=s[y])?l:String(l));var m=s.groups;if(i){var b=[h].concat(v,g,o);void 0!==m&&b.push(m);var w=String(e.apply(void 0,b))}else w=x(h,o,g,v,m,e);d<=g&&(f+=o.slice(d,g)+w,d=g+h.length)}return f+o.slice(d)}];function x(i,a,u,c,s,t){var l=u+i.length,f=c.length,e=_n;return void 0!==s&&(s=Kt(s),e=Ln),S.call(t,e,function(t,e){var n;switch(e.charAt(0)){case"$":return"$";case"&":return i;case"`":return a.slice(0,u);case"'":return a.slice(l);case"<":n=s[e.slice(1,-1)];break;default:var r=+e;if(0==r)return t;if(f<r){var o=On(r/10);return 0===o?t:o<=f?void 0===c[o-1]?e.charAt(1):c[o-1]+e.charAt(1):t}n=c[r-1]}return void 0===n?"":n})}});var En,Tn,Cn=je.forEach,jn=(Tn=[]["forEach"])&&f(function(){Tn.call(null,En||function(){throw 1},1)})?[].forEach:function(t,e){return Cn(this,t,1<arguments.length?e:void 0)};for(var An in{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}){var kn=b[An],Pn=kn&&kn.prototype;if(Pn&&Pn.forEach!==jn)try{_(Pn,"forEach",jn)}catch(t){Pn.forEach=jn}}function Rn(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 Mn(t,e,n){return e&&Rn(t.prototype,e),n&&Rn(t,n),t}var Dn,Gn,Nn,Kn,Qn,Un,qn,Vn,Fn,$n,zn,Bn,Hn,Yn,Jn=(Gn="ajaxLoad",Nn="coreui.ajaxLoad",Kn=(Dn=e).fn[Gn],Qn="active",Un="open",qn="view-script",Vn="click",Fn=".sidebar-nav .nav-dropdown",$n=".sidebar-nav .nav-link",zn=".sidebar-nav .nav-item",Bn=".view-script",Hn={defaultPage:"main.html",errorPage:"404.html",subpagesDirectory:"views/"},Yn=function(){function n(t,e){this._config=this._getConfig(e),this._element=t;var n=location.hash.replace(/^#/,"");""!==n?this.setUpUrl(n):this.setUpUrl(this._config.defaultPage),this._removeEventListeners(),this._addEventListeners()}var t=n.prototype;return t.loadPage=function(r){var o=this._element,t=this._config;Dn.ajax({type:"GET",url:t.subpagesDirectory+r,dataType:"html",beforeSend:function(){Dn(Bn).remove()},success:function(t){var e=document.createElement("div");e.innerHTML=t;var n=Array.from(e.querySelectorAll("script")).map(function(t){return t.attributes.getNamedItem("src").nodeValue});e.querySelectorAll("script").forEach(function(t){return t.parentNode.removeChild(t)}),Dn("body").animate({scrollTop:0},0),Dn(o).html(e),n.length&&function t(e,n){void 0===n&&(n=0);var r=document.createElement("script");r.type="text/javascript",r.src=e[n],r.className=qn,r.onload=r.onreadystatechange=function(){this.readyState&&"complete"!==this.readyState||e.length>n+1&&t(e,n+1)},document.getElementsByTagName("body")[0].appendChild(r)}(n),window.location.hash=r},error:function(){window.location.href=t.errorPage}})},t.setUpUrl=function(t){Dn($n).removeClass(Qn),Dn(Fn).removeClass(Un),Dn(Fn+':has(a[href="'+t.replace(/^\//,"").split("?")[0]+'"])').addClass(Un),Dn(zn+' a[href="'+t.replace(/^\//,"").split("?")[0]+'"]').addClass(Qn),this.loadPage(t)},t.loadBlank=function(t){window.open(t)},t.loadTop=function(t){window.location=t},t._getConfig=function(t){return t=Object.assign({},Hn,{},t)},t._addEventListeners=function(){var e=this;Dn(document).on(Vn,$n+'[href!="#"]',function(t){t.preventDefault(),t.stopPropagation(),"_top"===t.currentTarget.target?e.loadTop(t.currentTarget.href):"_blank"===t.currentTarget.target?e.loadBlank(t.currentTarget.href):e.setUpUrl(t.currentTarget.getAttribute("href"))})},t._removeEventListeners=function(){Dn(document).off(Vn,$n+'[href!="#"]')},n._jQueryInterface=function(e){return this.each(function(){var t=Dn(this).data(Nn);t||(t=new n(this,"object"==typeof e&&e),Dn(this).data(Nn,t))})},Mn(n,null,[{key:"VERSION",get:function(){return"2.1.16"}},{key:"Default",get:function(){return Hn}}]),n}(),Dn.fn[Gn]=Yn._jQueryInterface,Dn.fn[Gn].Constructor=Yn,Dn.fn[Gn].noConflict=function(){return Dn.fn[Gn]=Kn,Yn._jQueryInterface},Yn),Wn=F("species"),Xn=[].slice,Zn=Math.max;Gt({target:"Array",proto:!0,forced:!Me("slice")},{slice:function(t,e){var n,r,o,i=Ct(this),a=ft(i.length),u=kt(t,a),c=kt(void 0===e?a:e,a);if(Ee(i)&&("function"!=typeof(n=i.constructor)||n!==Array&&!Ee(n.prototype)?p(n)&&null===(n=n[Wn])&&(n=void 0):n=void 0,n===Array||void 0===n))return Xn.call(i,u,c);for(r=new(void 0===n?Array:n)(Zn(c-u,0)),o=0;u<c;u++,o++)u in i&&Ut(r,o,i[u]);return r.length=o,r}});function tr(t,e){var n=e.indexOf(t),r=e.slice(0,n+1);!function(t){return-1!==t.map(function(t){return document.body.classList.contains(t)}).indexOf(!0)}(r)?document.body.classList.add(t):r.map(function(t){return document.body.classList.remove(t)})}var er,nr,rr,or,ir,ar,ur,cr,sr,lr=(nr="aside-menu",rr="coreui.aside-menu",or=(er=e).fn[nr],ir={CLICK:"click",LOAD_DATA_API:"load.coreui.aside-menu.data-api",TOGGLE:"toggle"},ar=".aside-menu",ur=".aside-menu-toggler",cr=["aside-menu-show","aside-menu-sm-show","aside-menu-md-show","aside-menu-lg-show","aside-menu-xl-show"],sr=function(){function n(t){this._element=t,this._removeEventListeners(),this._addEventListeners()}var t=n.prototype;return t._addEventListeners=function(){er(document).on(ir.CLICK,ur,function(t){t.preventDefault(),t.stopPropagation();var e=t.currentTarget.dataset?t.currentTarget.dataset.toggle:er(t.currentTarget).data("toggle");tr(e,cr)})},t._removeEventListeners=function(){er(document).off(ir.CLICK,ur)},n._jQueryInterface=function(){return this.each(function(){var t=er(this),e=t.data(rr);e||(e=new n(this),t.data(rr,e))})},Mn(n,null,[{key:"VERSION",get:function(){return"2.1.16"}}]),n}(),er(window).one(ir.LOAD_DATA_API,function(){var t=er(ar);sr._jQueryInterface.call(t)}),er.fn[nr]=sr._jQueryInterface,er.fn[nr].Constructor=sr,er.fn[nr].noConflict=function(){return er.fn[nr]=or,sr._jQueryInterface},sr),fr=F("unscopables"),dr=Array.prototype;null==dr[fr]&&_(dr,fr,on(null));var pr,hr=je.find,gr="find",vr=!0;gr in[]&&Array(1)[gr](function(){vr=!1}),Gt({target:"Array",proto:!0,forced:vr},{find:function(t,e){return hr(this,t,1<arguments.length?e:void 0)}}),pr=gr,dr[fr][pr]=!0,ot("match",1,function(r,s,l){return[function(t){var e=at(this),n=null==t?void 0:t[r];return void 0!==n?n.call(t,e):new RegExp(t)[r](String(e))},function(t){var e=l(s,t,this);if(e.done)return e.value;var n=O(t),r=String(this);if(!n.global)return dt(n,r);for(var o,i=n.unicode,a=[],u=n.lastIndex=0;null!==(o=dt(n,r));){var c=String(o[0]);""===(a[u]=c)&&(n.lastIndex=lt(r,ft(n.lastIndex),i)),u++}return 0===u?null:a}]});function yr(n){return function(t){var e=String(at(t));return 1&n&&(e=e.replace(Sr,"")),2&n&&(e=e.replace(Ir,"")),e}}var mr,br="\t\n\v\f\r                 \u2028\u2029\ufeff",wr="["+br+"]",Sr=RegExp("^"+wr+wr+"*"),Ir=RegExp(wr+wr+"*$"),xr={start:yr(1),end:yr(2),trim:yr(3)},Or=xr.trim;Gt({target:"String",proto:!0,forced:(mr="trim",f(function(){return!!br[mr]()||"​…᠎"!="​…᠎"[mr]()||br[mr].name!==mr}))},{trim:function(){return Or(this)}});function Lr(t,e){return void 0===e&&(e=document.body),function(t){return t.match(/^--.*/i)}(t)&&Boolean(document.documentMode)&&10<=document.documentMode?function(){for(var r={},t=document.styleSheets,e="",n=t.length-1;-1<n;n--){for(var o=t[n].cssRules,i=o.length-1;-1<i;i--)if(".ie-custom-properties"===o[i].selectorText){e=o[i].cssText;break}if(e)break}return(e=e.substring(e.lastIndexOf("{")+1,e.lastIndexOf("}"))).split(";").forEach(function(t){if(t){var e=t.split(": ")[0],n=t.split(": ")[1];e&&n&&(r["--"+e.trim()]=n.trim())}}),r}()[t]:window.getComputedStyle(e,null).getPropertyValue(t).replace(/^\s/,"")}var _r,Er,Tr,Cr,jr,Ar,kr,Pr,Rr,Mr,Dr,Gr,Nr,Kr,Qr,Ur,qr,Vr,Fr,$r,zr,Br,Hr,Yr,Jr,Wr=(Er="sidebar",Tr="coreui.sidebar",Cr=(_r=e).fn[Er],jr=400,Ar="active",kr="brand-minimized",Pr="nav-link-queried",Rr="open",Mr="sidebar-minimized",Dr={CLICK:"click",DESTROY:"destroy",INIT:"init",LOAD_DATA_API:"load.coreui.sidebar.data-api",TOGGLE:"toggle",UPDATE:"update"},Gr="body",Nr=".brand-minimizer",Kr=".nav-dropdown-toggle",Qr=".nav-dropdown-items",Ur=".nav-item",qr=".nav-link",Vr=".sidebar-nav",Fr=".sidebar-nav > .nav",$r=".sidebar",zr=".sidebar-minimizer",Br=".sidebar-toggler",Hr=".sidebar-scroll",Yr=["sidebar-show","sidebar-sm-show","sidebar-md-show","sidebar-lg-show","sidebar-xl-show"],Jr=function(){function n(t){this._element=t,this.mobile=!1,this.ps=null,this.perfectScrollbar(Dr.INIT),this.setActiveLink(),this._breakpointTest=this._breakpointTest.bind(this),this._clickOutListener=this._clickOutListener.bind(this),this._removeEventListeners(),this._addEventListeners(),this._addMediaQuery()}var t=n.prototype;return t.perfectScrollbar=function(t){var e=this;if("undefined"!=typeof r){var n=document.body.classList;t!==Dr.INIT||n.contains(Mr)||(this.ps=this.makeScrollbar()),t===Dr.DESTROY&&this.destroyScrollbar(),t===Dr.TOGGLE&&(n.contains(Mr)?this.destroyScrollbar():(this.destroyScrollbar(),this.ps=this.makeScrollbar())),t!==Dr.UPDATE||n.contains(Mr)||setTimeout(function(){e.destroyScrollbar(),e.ps=e.makeScrollbar()},jr)}},t.makeScrollbar=function(){var t=Hr;if(null===document.querySelector(t)&&(t=Vr,null===document.querySelector(t)))return null;var e=new r(document.querySelector(t),{suppressScrollX:!0});return e.isRtl=!1,e},t.destroyScrollbar=function(){this.ps&&(this.ps.destroy(),this.ps=null)},t.setActiveLink=function(){_r(Fr).find(qr).each(function(t,e){var n,r=e;"#"===(n=r.classList.contains(Pr)?String(window.location):String(window.location).split("?")[0]).substr(n.length-1)&&(n=n.slice(0,-1)),_r(_r(r))[0].href===n&&_r(r).addClass(Ar).parents(Qr).add(r).each(function(t,e){_r(r=e).parent().addClass(Rr)})})},t._addMediaQuery=function(){var t=Lr("--breakpoint-sm");if(t){var e=parseInt(t,10)-1,n=window.matchMedia("(max-width: "+e+"px)");this._breakpointTest(n),n.addListener(this._breakpointTest)}},t._breakpointTest=function(t){this.mobile=Boolean(t.matches),this._toggleClickOut()},t._clickOutListener=function(t){this._element.contains(t.target)||(t.preventDefault(),t.stopPropagation(),this._removeClickOut(),document.body.classList.remove("sidebar-show"))},t._addClickOut=function(){document.addEventListener(Dr.CLICK,this._clickOutListener,!0)},t._removeClickOut=function(){document.removeEventListener(Dr.CLICK,this._clickOutListener,!0)},t._toggleClickOut=function(){this.mobile&&document.body.classList.contains("sidebar-show")?(document.body.classList.remove("aside-menu-show"),this._addClickOut()):this._removeClickOut()},t._addEventListeners=function(){var n=this;_r(document).on(Dr.CLICK,Nr,function(t){t.preventDefault(),t.stopPropagation(),_r(Gr).toggleClass(kr)}),_r(document).on(Dr.CLICK,Kr,function(t){t.preventDefault(),t.stopPropagation();var e=t.target;_r(e).parent().toggleClass(Rr),n.perfectScrollbar(Dr.UPDATE)}),_r(document).on(Dr.CLICK,zr,function(t){t.preventDefault(),t.stopPropagation(),_r(Gr).toggleClass(Mr),n.perfectScrollbar(Dr.TOGGLE)}),_r(document).on(Dr.CLICK,Br,function(t){t.preventDefault(),t.stopPropagation();var e=t.currentTarget.dataset?t.currentTarget.dataset.toggle:_r(t.currentTarget).data("toggle");tr(e,Yr),n._toggleClickOut()}),_r(Fr+" > "+Ur+" "+qr+":not("+Kr+")").on(Dr.CLICK,function(){n._removeClickOut(),document.body.classList.remove("sidebar-show")})},t._removeEventListeners=function(){_r(document).off(Dr.CLICK,Nr),_r(document).off(Dr.CLICK,Kr),_r(document).off(Dr.CLICK,zr),_r(document).off(Dr.CLICK,Br),_r(Fr+" > "+Ur+" "+qr+":not("+Kr+")").off(Dr.CLICK)},n._jQueryInterface=function(){return this.each(function(){var t=_r(this),e=t.data(Tr);e||(e=new n(this),t.data(Tr,e))})},Mn(n,null,[{key:"VERSION",get:function(){return"2.1.16"}}]),n}(),_r(window).one(Dr.LOAD_DATA_API,function(){var t=_r($r);Jr._jQueryInterface.call(t)}),_r.fn[Er]=Jr._jQueryInterface,_r.fn[Er].Constructor=Jr,_r.fn[Er].noConflict=function(){return _r.fn[Er]=Cr,Jr._jQueryInterface},Jr),Xr={};Xr[F("toStringTag")]="z";var Zr="[object z]"!==String(Xr)?function(){return"[object "+qt(this)+"]"}:Xr.toString,to=Object.prototype;Zr!==to.toString&&Y(to,"toString",Zr,{unsafe:!0});var eo="toString",no=RegExp.prototype,ro=no[eo],oo=f(function(){return"/a/b"!=ro.call({source:"a",flags:"b"})}),io=ro.name!=eo;(oo||io)&&Y(RegExp.prototype,eo,function(){var t=O(this),e=String(t.source),n=t.flags;return"/"+e+"/"+String(void 0===n&&t instanceof RegExp&&!("flags"in no)?$.call(t):n)},{unsafe:!0});!function(t){if("undefined"==typeof t)throw new TypeError("CoreUI's JavaScript requires jQuery. jQuery must be included before CoreUI's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("CoreUI's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(e),window.getStyle=Lr,window.hexToRgb=function(t){if("undefined"==typeof t)throw new Error("Hex color is not defined");var e,n,r;if(!t.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(t+" is not a valid hex color");return r=7===t.length?(e=parseInt(t.substring(1,3),16),n=parseInt(t.substring(3,5),16),parseInt(t.substring(5,7),16)):(e=parseInt(t.substring(1,2),16),n=parseInt(t.substring(2,3),16),parseInt(t.substring(3,5),16)),"rgba("+e+", "+n+", "+r+")"},window.hexToRgba=function(t,e){if(void 0===e&&(e=100),"undefined"==typeof t)throw new Error("Hex color is not defined");var n,r,o;if(!t.match(/^#(?:[0-9a-f]{3}){1,2}$/i))throw new Error(t+" is not a valid hex color");return o=7===t.length?(n=parseInt(t.substring(1,3),16),r=parseInt(t.substring(3,5),16),parseInt(t.substring(5,7),16)):(n=parseInt(t.substring(1,2),16),r=parseInt(t.substring(2,3),16),parseInt(t.substring(3,5),16)),"rgba("+n+", "+r+", "+o+", "+e/100+")"},window.rgbToHex=function(t){if("undefined"==typeof t)throw new Error("Hex color is not defined");if("transparent"===t)return"#00000000";var e=t.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i);if(!e)throw new Error(t+" is not a valid rgb color");var n="0"+parseInt(e[1],10).toString(16),r="0"+parseInt(e[2],10).toString(16),o="0"+parseInt(e[3],10).toString(16);return"#"+n.slice(-2)+r.slice(-2)+o.slice(-2)},t.AjaxLoad=Jn,t.AsideMenu=lr,t.Sidebar=Wr,Object.defineProperty(t,"__esModule",{value:!0})});
7//# sourceMappingURL=coreui.min.js.map
\No newline at end of file