1/* @license MIT https://raw.githubusercontent.com/jashkenas/underscore/1.13.8/LICENSE */
vendor: 19,668 bytes, lines 2-7
2!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,function(){var t=n._,e=n._=r();e.noConflict=function(){return n._=t,e}}())}(this,(function(){ 3// Underscore.js 1.13.8 4// https://underscorejs.org 5// (c) 2009-2026 Jeremy Ashkenas, Julian Gonggrijp, and DocumentCloud and Investigative Reporters & Editors 6// Underscore may be freely distributed under the MIT license. 7var n="1.13.8",r="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},t=Array.prototype,e=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,i=t.push,o=t.slice,a=e.toString,f=e.hasOwnProperty,c="undefined"!=typeof ArrayBuffer,l="undefined"!=typeof DataView,s=Array.isArray,p=Object.keys,v=Object.create,h=c&&ArrayBuffer.isView,y=isNaN,d=isFinite,g=!{toString:null}.propertyIsEnumerable("toString"),b=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],m=Math.pow(2,53)-1;function j(n,r){return r=null==r?n.length-1:+r,function(){for(var t=Math.max(arguments.length-r,0),e=Array(t),u=0;u<t;u++)e[u]=arguments[u+r];switch(r){case 0:return n.call(this,e);case 1:return n.call(this,arguments[0],e);case 2:return n.call(this,arguments[0],arguments[1],e)}var i=Array(r+1);for(u=0;u<r;u++)i[u]=arguments[u];return i[r]=e,n.apply(this,i)}}function w(n){var r=typeof n;return"function"===r||"object"===r&&!!n}function _(n){return void 0===n}function A(n){return!0===n||!1===n||"[object Boolean]"===a.call(n)}function x(n){var r="[object "+n+"]";return function(n){return a.call(n)===r}}var S=x("String"),O=x("Number"),M=x("Date"),E=x("RegExp"),B=x("Error"),N=x("Symbol"),k=x("ArrayBuffer"),I=x("Function"),T=r.document&&r.document.childNodes;"function"!=typeof/./&&"object"!=typeof Int8Array&&"function"!=typeof T&&(I=function(n){return"function"==typeof n||!1});var D=I,R=x("Object"),V=l&&(!/\[native code\]/.test(String(DataView))||R(new DataView(new ArrayBuffer(8)))),F="undefined"!=typeof Map&&R(new Map),P=x("DataView");var q=V?function(n){return null!=n&&D(n.getInt8)&&k(n.buffer)}:P,U=s||x("Array");function W(n,r){return null!=n&&f.call(n,r)}var z=x("Arguments");!function(){z(arguments)||(z=function(n){return W(n,"callee")})}();var L=z;function $(n){return O(n)&&y(n)}function C(n){return function(){return n}}function K(n){return function(r){var t=n(r);return"number"==typeof t&&t>=0&&t<=m}}function J(n){return function(r){return null==r?void 0:r[n]}}var G=J("byteLength"),H=K(G),Q=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var X=c?function(n){return h?h(n)&&!q(n):H(n)&&Q.test(a.call(n))}:C(!1),Y=J("length");function Z(n,r){r=function(n){for(var r={},t=n.length,e=0;e<t;++e)r[n[e]]=!0;return{contains:function(n){return!0===r[n]},push:function(t){return r[t]=!0,n.push(t)}}}(r);var t=b.length,u=n.constructor,i=D(u)&&u.prototype||e,o="constructor";for(W(n,o)&&!r.contains(o)&&r.push(o);t--;)(o=b[t])in n&&n[o]!==i[o]&&!r.contains(o)&&r.push(o)}function nn(n){if(!w(n))return[];if(p)return p(n);var r=[];for(var t in n)W(n,t)&&r.push(t);return g&&Z(n,r),r}function rn(n,r){var t=nn(r),e=t.length;if(null==n)return!e;for(var u=Object(n),i=0;i<e;i++){var o=t[i];if(r[o]!==u[o]||!(o in u))return!1}return!0}function tn(n){return n instanceof tn?n:this instanceof tn?void(this._wrapped=n):new tn(n)}function en(n){return new Uint8Array(n.buffer||n,n.byteOffset||0,G(n))}tn.VERSION=n,tn.prototype.value=function(){return this._wrapped},tn.prototype.valueOf=tn.prototype.toJSON=tn.prototype.value,tn.prototype.toString=function(){return String(this._wrapped)};var un="[object DataView]";function on(n){if(!w(n))return[];var r=[];for(var t in n)r.push(t);return g&&Z(n,r),r}function an(n){var r=Y(n);return function(t){if(null==t)return!1;var e=on(t);if(Y(e))return!1;for(var u=0;u<r;u++)if(!D(t[n[u]]))return!1;return n!==vn||!D(t[fn])}}var fn="forEach",cn="has",ln=["clear","delete"],sn=["get",cn,"set"],pn=ln.concat(fn,sn),vn=ln.concat(sn),hn=["add"].concat(ln,fn,cn),yn=F?an(pn):x("Map"),dn=F?an(vn):x("WeakMap"),gn=F?an(hn):x("Set"),bn=x("WeakSet");function mn(n){for(var r=nn(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=n[r[u]];return e}function jn(n){for(var r={},t=nn(n),e=0,u=t.length;e<u;e++)r[n[t[e]]]=t[e];return r}function wn(n){var r=[];for(var t in n)D(n[t])&&r.push(t);return r.sort()}function _n(n,r){return function(t){var e=arguments.length;if(r&&(t=Object(t)),e<2||null==t)return t;for(var u=1;u<e;u++)for(var i=arguments[u],o=n(i),a=o.length,f=0;f<a;f++){var c=o[f];r&&void 0!==t[c]||(t[c]=i[c])}return t}}var An=_n(on),xn=_n(nn),Sn=_n(on,!0);function On(n){if(!w(n))return{};if(v)return v(n);var r=function(){};r.prototype=n;var t=new r;return r.prototype=null,t}function Mn(n){return U(n)?n:[n]}function En(n){return tn.toPath(n)}function Bn(n,r){for(var t=r.length,e=0;e<t;e++){if(null==n)return;n=n[r[e]]}return t?n:void 0}function Nn(n,r,t){var e=Bn(n,En(r));return _(e)?t:e}function kn(n){return n}function In(n){return n=xn({},n),function(r){return rn(r,n)}}function Tn(n){return n=En(n),function(r){return Bn(r,n)}}function Dn(n,r,t){if(void 0===r)return n;switch(null==t?3:t){case 1:return function(t){return n.call(r,t)};case 3:return function(t,e,u){return n.call(r,t,e,u)};case 4:return function(t,e,u,i){return n.call(r,t,e,u,i)}}return function(){return n.apply(r,arguments)}}function Rn(n,r,t){return null==n?kn:D(n)?Dn(n,r,t):w(n)&&!U(n)?In(n):Tn(n)}function Vn(n,r){return Rn(n,r,1/0)}function Fn(n,r,t){return tn.iteratee!==Vn?tn.iteratee(n,r):Rn(n,r,t)}function Pn(){}function qn(n,r){return null==r&&(r=n,n=0),n+Math.floor(Math.random()*(r-n+1))}tn.toPath=Mn,tn.iteratee=Vn;var Un=Date.now||function(){return(new Date).getTime()};function Wn(n){var r=function(r){return n[r]},t="(?:"+nn(n).join("|")+")",e=RegExp(t),u=RegExp(t,"g");return function(n){return n=null==n?"":""+n,e.test(n)?n.replace(u,r):n}}var zn={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},Ln=Wn(zn),$n=Wn(jn(zn)),Cn=tn.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},Kn=/(.)^/,Jn={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},Gn=/\\|'|\r|\n|\u2028|\u2029/g;function Hn(n){return"\\"+Jn[n]}var Qn=/^\s*(\w|\$)+\s*$/;var Xn=0;function Yn(n,r,t,e,u){if(!(e instanceof r))return n.apply(t,u);var i=On(n.prototype),o=n.apply(i,u);return w(o)?o:i}var Zn=j((function(n,r){var t=Zn.placeholder,e=function(){for(var u=0,i=r.length,o=Array(i),a=0;a<i;a++)o[a]=r[a]===t?arguments[u++]:r[a];for(;u<arguments.length;)o.push(arguments[u++]);return Yn(n,e,this,this,o)};return e}));Zn.placeholder=tn;var nr=j((function(n,r,t){if(!D(n))throw new TypeError("Bind must be called on a function");var e=j((function(u){return Yn(n,e,r,this,t.concat(u))}));return e})),rr=K(Y);function tr(n,r,t){r||0===r||(r=1/0);for(var e=[],u=0,i=0,o=Y(n)||0,a=[];1;)if(i>=o){if(!a.length)break;var f=a.pop();i=f.i,n=f.v,o=Y(n)}else{var c=n[i++];a.length>=r?e[u++]=c:rr(c)&&(U(c)||L(c))?(a.push({i:i,v:n}),i=0,o=Y(n=c)):t||(e[u++]=c)}return e}var er=j((function(n,r){var t=(r=tr(r,!1,!1)).length;if(t<1)throw new Error("bindAll must be passed function names");for(;t--;){var e=r[t];n[e]=nr(n[e],n)}return n}));var ur=j((function(n,r,t){return setTimeout((function(){return n.apply(null,t)}),r)})),ir=Zn(ur,tn,1);function or(n){return function(){return!n.apply(this,arguments)}}function ar(n,r){var t;return function(){return--n>0&&(t=r.apply(this,arguments)),n<=1&&(r=null),t}}var fr=Zn(ar,2);function cr(n,r,t){r=Fn(r,t);for(var e,u=nn(n),i=0,o=u.length;i<o;i++)if(r(n[e=u[i]],e,n))return e}function lr(n){return function(r,t,e){t=Fn(t,e);for(var u=Y(r),i=n>0?0:u-1;i>=0&&i<u;i+=n)if(t(r[i],i,r))return i;return-1}}var sr=lr(1),pr=lr(-1);function vr(n,r,t,e){for(var u=(t=Fn(t,e,1))(r),i=0,o=Y(n);i<o;){var a=Math.floor((i+o)/2);t(n[a])<u?i=a+1:o=a}return i}function hr(n,r,t){return function(e,u,i){var a=0,f=Y(e);if("number"==typeof i)n>0?a=i>=0?i:Math.max(i+f,a):f=i>=0?Math.min(i+1,f):i+f+1;else if(t&&i&&f)return e[i=t(e,u)]===u?i:-1;if(u!=u)return(i=r(o.call(e,a,f),$))>=0?i+a:-1;for(i=n>0?a:f-1;i>=0&&i<f;i+=n)if(e[i]===u)return i;return-1}}var yr=hr(1,sr,vr),dr=hr(-1,pr);function gr(n,r,t){var e=(rr(n)?sr:cr)(n,r,t);if(void 0!==e&&-1!==e)return n[e]}function br(n,r,t){var e,u;if(r=Dn(r,t),rr(n))for(e=0,u=n.length;e<u;e++)r(n[e],e,n);else{var i=nn(n);for(e=0,u=i.length;e<u;e++)r(n[i[e]],i[e],n)}return n}function mr(n,r,t){r=Fn(r,t);for(var e=!rr(n)&&nn(n),u=(e||n).length,i=Array(u),o=0;o<u;o++){var a=e?e[o]:o;i[o]=r(n[a],a,n)}return i}function jr(n){var r=function(r,t,e,u){var i=!rr(r)&&nn(r),o=(i||r).length,a=n>0?0:o-1;for(u||(e=r[i?i[a]:a],a+=n);a>=0&&a<o;a+=n){var f=i?i[a]:a;e=t(e,r[f],f,r)}return e};return function(n,t,e,u){var i=arguments.length>=3;return r(n,Dn(t,u,4),e,i)}}var wr=jr(1),_r=jr(-1);function Ar(n,r,t){var e=[];return r=Fn(r,t),br(n,(function(n,t,u){r(n,t,u)&&e.push(n)})),e}function xr(n,r,t){r=Fn(r,t);for(var e=!rr(n)&&nn(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(!r(n[o],o,n))return!1}return!0}function Sr(n,r,t){r=Fn(r,t);for(var e=!rr(n)&&nn(n),u=(e||n).length,i=0;i<u;i++){var o=e?e[i]:i;if(r(n[o],o,n))return!0}return!1}function Or(n,r,t,e){return rr(n)||(n=mn(n)),("number"!=typeof t||e)&&(t=0),yr(n,r,t)>=0}var Mr=j((function(n,r,t){var e,u;return D(r)?u=r:(r=En(r),e=r.slice(0,-1),r=r[r.length-1]),mr(n,(function(n){var i=u;if(!i){if(e&&e.length&&(n=Bn(n,e)),null==n)return;i=n[r]}return null==i?i:i.apply(n,t)}))}));function Er(n,r){return mr(n,Tn(r))}function Br(n,r,t){var e,u,i=-1/0,o=-1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=rr(n)?n:mn(n)).length;a<f;a++)null!=(e=n[a])&&e>i&&(i=e);else r=Fn(r,t),br(n,(function(n,t,e){((u=r(n,t,e))>o||u===-1/0&&i===-1/0)&&(i=n,o=u)}));return i}var Nr=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function kr(n){return n?U(n)?o.call(n):S(n)?n.match(Nr):rr(n)?mr(n,kn):mn(n):[]}function Ir(n,r,t){if(null==r||t)return rr(n)||(n=mn(n)),n[qn(n.length-1)];var e=kr(n),u=Y(e);r=Math.max(Math.min(r,u),0);for(var i=u-1,o=0;o<r;o++){var a=qn(o,i),f=e[o];e[o]=e[a],e[a]=f}return e.slice(0,r)}function Tr(n,r){return function(t,e,u){var i=r?[[],[]]:{};return e=Fn(e,u),br(t,(function(r,u){var o=e(r,u,t);n(i,r,o)})),i}}var Dr=Tr((function(n,r,t){W(n,t)?n[t].push(r):n[t]=[r]})),Rr=Tr((function(n,r,t){n[t]=r})),Vr=Tr((function(n,r,t){W(n,t)?n[t]++:n[t]=1})),Fr=Tr((function(n,r,t){n[t?0:1].push(r)}),!0);function Pr(n,r,t){return r in t}var qr=j((function(n,r){var t={},e=r[0];if(null==n)return t;D(e)?(r.length>1&&(e=Dn(e,r[1])),r=on(n)):(e=Pr,r=tr(r,!1,!1),n=Object(n));for(var u=0,i=r.length;u<i;u++){var o=r[u],a=n[o];e(a,o,n)&&(t[o]=a)}return t})),Ur=j((function(n,r){var t,e=r[0];return D(e)?(e=or(e),r.length>1&&(t=r[1])):(r=mr(tr(r,!1,!1),String),e=function(n,t){return!Or(r,t)}),qr(n,e,t)}));function Wr(n,r,t){return o.call(n,0,Math.max(0,n.length-(null==r||t?1:r)))}function zr(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[0]:Wr(n,n.length-r)}function Lr(n,r,t){return o.call(n,null==r||t?1:r)}var $r=j((function(n,r){return r=tr(r,!0,!0),Ar(n,(function(n){return!Or(r,n)}))})),Cr=j((function(n,r){return $r(n,r)}));function Kr(n,r,t,e){A(r)||(e=t,t=r,r=!1),null!=t&&(t=Fn(t,e));for(var u=[],i=[],o=0,a=Y(n);o<a;o++){var f=n[o],c=t?t(f,o,n):f;r&&!t?(o&&i===c||u.push(f),i=c):t?Or(i,c)||(i.push(c),u.push(f)):Or(u,f)||u.push(f)}return u}var Jr=j((function(n){return Kr(tr(n,!0,!0))}));function Gr(n){for(var r=n&&Br(n,Y).length||0,t=Array(r),e=0;e<r;e++)t[e]=Er(n,e);return t}var Hr=j(Gr);function Qr(n,r){return n._chain?tn(r).chain():r}function Xr(n){return br(wn(n),(function(r){var t=tn[r]=n[r];tn.prototype[r]=function(){var n=[this._wrapped];return i.apply(n,arguments),Qr(this,t.apply(tn,n))}})),tn}br(["pop","push","reverse","shift","sort","splice","unshift"],(function(n){var r=t[n];tn.prototype[n]=function(){var t=this._wrapped;return null!=t&&(r.apply(t,arguments),"shift"!==n&&"splice"!==n||0!==t.length||delete t[0]),Qr(this,t)}})),br(["concat","join","slice"],(function(n){var r=t[n];tn.prototype[n]=function(){var n=this._wrapped;return null!=n&&(n=r.apply(n,arguments)),Qr(this,n)}}));var Yr=Xr({__proto__:null,VERSION:n,restArguments:j,isObject:w,isNull:function(n){return null===n},isUndefined:_,isBoolean:A,isElement:function(n){return!(!n||1!==n.nodeType)},isString:S,isNumber:O,isDate:M,isRegExp:E,isError:B,isSymbol:N,isArrayBuffer:k,isDataView:q,isArray:U,isFunction:D,isArguments:L,isFinite:function(n){return!N(n)&&d(n)&&!isNaN(parseFloat(n))},isNaN:$,isTypedArray:X,isEmpty:function(n){if(null==n)return!0;var r=Y(n);return"number"==typeof r&&(U(n)||S(n)||L(n))?0===r:0===Y(nn(n))},isMatch:rn,isEqual:function(n,r){for(var t=[{a:n,b:r}],e=[],i=[];t.length;){var o=t.pop();if(!0!==o){if((n=o.a)===(r=o.b)){if(0!==n||1/n==1/r)continue;return!1}if(null==n||null==r)return!1;if(n!=n){if(r!=r)continue;return!1}var f=typeof n;if("function"!==f&&"object"!==f&&"object"!=typeof r)return!1;n instanceof tn&&(n=n._wrapped),r instanceof tn&&(r=r._wrapped);var c=a.call(n);if(c!==a.call(r))return!1;if(V&&"[object Object]"==c&&q(n)){if(!q(r))return!1;c=un}switch(c){case"[object RegExp]":case"[object String]":if(""+n==""+r)continue;return!1;case"[object Number]":t.push({a:+n,b:+r});continue;case"[object Date]":case"[object Boolean]":if(+n==+r)continue;return!1;case"[object Symbol]":if(u.valueOf.call(n)===u.valueOf.call(r))continue;return!1;case"[object ArrayBuffer]":case un:t.push({a:en(n),b:en(r)});continue}var l="[object Array]"===c;if(!l&&X(n)){if(G(n)!==G(r))return!1;if(n.buffer===r.buffer&&n.byteOffset===r.byteOffset)continue;l=!0}if(!l){if("object"!=typeof n||"object"!=typeof r)return!1;var s=n.constructor,p=r.constructor;if(s!==p&&!(D(s)&&s instanceof s&&D(p)&&p instanceof p)&&"constructor"in n&&"constructor"in r)return!1}for(var v=e.length;v--;)if(e[v]===n){if(i[v]===r)break;return!1}if(!(v>=0))if(e.push(n),i.push(r),t.push(!0),l){if((v=n.length)!==r.length)return!1;for(;v--;)t.push({a:n[v],b:r[v]})}else{var h,y=nn(n);if(v=y.length,nn(r).length!==v)return!1;for(;v--;){if(!W(r,h=y[v]))return!1;t.push({a:n[h],b:r[h]})}}}else e.pop(),i.pop()}return!0},isMap:yn,isWeakMap:dn,isSet:gn,isWeakSet:bn,keys:nn,allKeys:on,values:mn,pairs:function(n){for(var r=nn(n),t=r.length,e=Array(t),u=0;u<t;u++)e[u]=[r[u],n[r[u]]];return e},invert:jn,functions:wn,methods:wn,extend:An,extendOwn:xn,assign:xn,defaults:Sn,create:function(n,r){var t=On(n);return r&&xn(t,r),t},clone:function(n){return w(n)?U(n)?n.slice():An({},n):n},tap:function(n,r){return r(n),n},get:Nn,has:function(n,r){for(var t=(r=En(r)).length,e=0;e<t;e++){var u=r[e];if(!W(n,u))return!1;n=n[u]}return!!t},mapObject:function(n,r,t){r=Fn(r,t);for(var e=nn(n),u=e.length,i={},o=0;o<u;o++){var a=e[o];i[a]=r(n[a],a,n)}return i},identity:kn,constant:C,noop:Pn,toPath:Mn,property:Tn,propertyOf:function(n){return null==n?Pn:function(r){return Nn(n,r)}},matcher:In,matches:In,times:function(n,r,t){var e=Array(Math.max(0,n));r=Dn(r,t,1);for(var u=0;u<n;u++)e[u]=r(u);return e},random:qn,now:Un,escape:Ln,unescape:$n,templateSettings:Cn,template:function(n,r,t){!r&&t&&(r=t),r=Sn({},r,tn.templateSettings);var e=RegExp([(r.escape||Kn).source,(r.interpolate||Kn).source,(r.evaluate||Kn).source].join("|")+"|$","g"),u=0,i="__p+='";n.replace(e,(function(r,t,e,o,a){return i+=n.slice(u,a).replace(Gn,Hn),u=a+r.length,t?i+="'+\n((__t=("+t+"))==null?'':_.escape(__t))+\n'":e?i+="'+\n((__t=("+e+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),r})),i+="';\n";var o,a=r.variable;if(a){if(!Qn.test(a))throw new Error("variable is not a bare identifier: "+a)}else i="with(obj||{}){\n"+i+"}\n",a="obj";i="var __t,__p='',__j=Array.prototype.join,"+"print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{o=new Function(a,"_",i)}catch(n){throw n.source=i,n}var f=function(n){return o.call(this,n,tn)};return f.source="function("+a+"){\n"+i+"}",f},result:function(n,r,t){var e=(r=En(r)).length;if(!e)return D(t)?t.call(n):t;for(var u=0;u<e;u++){var i=null==n?void 0:n[r[u]];void 0===i&&(i=t,u=e),n=D(i)?i.call(n):i}return n},uniqueId:function(n){var r=++Xn+"";return n?n+r:r},chain:function(n){var r=tn(n);return r._chain=!0,r},iteratee:Vn,partial:Zn,bind:nr,bindAll:er,memoize:function(n,r){var t=function(e){var u=t.cache,i=""+(r?r.apply(this,arguments):e);return W(u,i)||(u[i]=n.apply(this,arguments)),u[i]};return t.cache={},t},delay:ur,defer:ir,throttle:function(n,r,t){var e,u,i,o,a=0;t||(t={});var f=function(){a=!1===t.leading?0:Un(),e=null,o=n.apply(u,i),e||(u=i=null)},c=function(){var c=Un();a||!1!==t.leading||(a=c);var l=r-(c-a);return u=this,i=arguments,l<=0||l>r?(e&&(clearTimeout(e),e=null),a=c,o=n.apply(u,i),e||(u=i=null)):e||!1===t.trailing||(e=setTimeout(f,l)),o};return c.cancel=function(){clearTimeout(e),a=0,e=u=i=null},c},debounce:function(n,r,t){var e,u,i,o,a,f=function(){var c=Un()-u;r>c?e=setTimeout(f,r-c):(e=null,t||(o=n.apply(a,i)),e||(i=a=null))},c=j((function(c){return a=this,i=c,u=Un(),e||(e=setTimeout(f,r),t&&(o=n.apply(a,i))),o}));return c.cancel=function(){clearTimeout(e),e=i=a=null},c},wrap:function(n,r){return Zn(r,n)},negate:or,compose:function(){var n=arguments,r=n.length-1;return function(){for(var t=r,e=n[r].apply(this,arguments);t--;)e=n[t].call(this,e);return e}},after:function(n,r){return function(){if(--n<1)return r.apply(this,arguments)}},before:ar,once:fr,findKey:cr,findIndex:sr,findLastIndex:pr,sortedIndex:vr,indexOf:yr,lastIndexOf:dr,find:gr,detect:gr,findWhere:function(n,r){return gr(n,In(r))},each:br,forEach:br,map:mr,collect:mr,reduce:wr,foldl:wr,inject:wr,reduceRight:_r,foldr:_r,filter:Ar,select:Ar,reject:function(n,r,t){return Ar(n,or(Fn(r)),t)},every:xr,all:xr,some:Sr,any:Sr,contains:Or,includes:Or,include:Or,invoke:Mr,pluck:Er,where:function(n,r){return Ar(n,In(r))},max:Br,min:function(n,r,t){var e,u,i=1/0,o=1/0;if(null==r||"number"==typeof r&&"object"!=typeof n[0]&&null!=n)for(var a=0,f=(n=rr(n)?n:mn(n)).length;a<f;a++)null!=(e=n[a])&&e<i&&(i=e);else r=Fn(r,t),br(n,(function(n,t,e){((u=r(n,t,e))<o||u===1/0&&i===1/0)&&(i=n,o=u)}));return i},shuffle:function(n){return Ir(n,1/0)},sample:Ir,sortBy:function(n,r,t){var e=0;return r=Fn(r,t),Er(mr(n,(function(n,t,u){return{value:n,index:e++,criteria:r(n,t,u)}})).sort((function(n,r){var t=n.criteria,e=r.criteria;if(t!==e){if(t>e||void 0===t)return 1;if(t<e||void 0===e)return-1}return n.index-r.index})),"value")},groupBy:Dr,indexBy:Rr,countBy:Vr,partition:Fr,toArray:kr,size:function(n){return null==n?0:rr(n)?n.length:nn(n).length},pick:qr,omit:Ur,first:zr,head:zr,take:zr,initial:Wr,last:function(n,r,t){return null==n||n.length<1?null==r||t?void 0:[]:null==r||t?n[n.length-1]:Lr(n,Math.max(0,n.length-r))},rest:Lr,tail:Lr,drop:Lr,compact:function(n){return Ar(n,Boolean)},flatten:function(n,r){return tr(n,r,!1)},without:Cr,uniq:Kr,unique:Kr,union:Jr,intersection:function(n){for(var r=[],t=arguments.length,e=0,u=Y(n);e<u;e++){var i=n[e];if(!Or(r,i)){var o;for(o=1;o<t&&Or(arguments[o],i);o++);o===t&&r.push(i)}}return r},difference:$r,unzip:Gr,transpose:Gr,zip:Hr,object:function(n,r){for(var t={},e=0,u=Y(n);e<u;e++)r?t[n[e]]=r[e]:t[n[e][0]]=n[e][1];return t},range:function(n,r,t){null==r&&(r=n||0,n=0),t||(t=r<n?-1:1);for(var e=Math.max(Math.ceil((r-n)/t),0),u=Array(e),i=0;i<e;i++,n+=t)u[i]=n;return u},chunk:function(n,r){if(null==r||r<1)return[];for(var t=[],e=0,u=n.length;e<u;)t.push(o.call(n,e,e+=r));return t},mixin:Xr,default:tn});return Yr._=Yr,Yr}));
7; 8/* @license GPL-2.0-or-later https://git.drupalcode.org/project/once/-/raw/v1.0.1/LICENSE.md */ 9/*! @drupal/once - v1.0.1 - 2021-06-12 */ 10var once=function(){"use strict";var n=/[\11\12\14\15\40]+/,e="data-once",t=document;function r(n,t,r){return n[t+"Attribute"](e,r)}function o(e){if("string"!=typeof e)throw new TypeError("once ID must be a string");if(""===e||n.test(e))throw new RangeError("once ID must not be empty or contain spaces");return'[data-once~="'+e+'"]'}function u(n){if(!(n instanceof Element))throw new TypeError("The element must be an instance of Element");return!0}function i(n,e){void 0===e&&(e=t);var r=n;if(null===n)r=[];else{if(!n)throw new TypeError("Selector must not be empty");"string"!=typeof n||e!==t&&!u(e)?n instanceof Element&&(r=[n]):r=e.querySelectorAll(n)}return Array.prototype.slice.call(r)}function c(n,e,t){return e.filter((function(e){var r=u(e)&&e.matches(n);return r&&t&&t(e),r}))}function f(e,t){var o=t.add,u=t.remove,i=[];r(e,"has")&&r(e,"get").trim().split(n).forEach((function(n){i.indexOf(n)<0&&n!==u&&i.push(n)})),o&&i.push(o);var c=i.join(" ");r(e,""===c?"remove":"set",c)}function a(n,e,t){return c(":not("+o(n)+")",i(e,t),(function(e){return f(e,{add:n})}))}return a.remove=function(n,e,t){return c(o(n),i(e,t),(function(e){return f(e,{remove:n})}))},a.filter=function(n,e,t){return c(o(n),i(e,t))},a.find=function(n,e){return i(n?o(n):"[data-once]",e)},a}(); 11 12; 13/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 14(function(){const settingsElement=document.querySelector('head > script[type="application/json"][data-drupal-selector="drupal-settings-json"], body > script[type="application/json"][data-drupal-selector="drupal-settings-json"]');window.drupalSettings={};if(settingsElement!==null)window.drupalSettings=JSON.parse(settingsElement.textContent);})();; 15window.Drupal={behaviors:{},locale:{}};(function(Drupal,drupalSettings,drupalTranslations,console,Proxy,Reflect){Drupal.throwError=function(error){setTimeout(()=>{throw error;},0);};Drupal.attachBehaviors=function(context,settings){context=context||document;settings=settings||drupalSettings;const behaviors=Drupal.behaviors;Object.keys(behaviors||{}).forEach((i)=>{if(typeof behaviors[i].attach==='function')try{behaviors[i].attach(context,settings);}catch(e){Drupal.throwError(e);}});};Drupal.detachBehaviors=function(context,settings,trigger){context=context||document;settings=settings||drupalSettings;trigger=trigger||'unload';const behaviors=Drupal.behaviors;Object.keys(behaviors||{}
15).forEach((i)=>{if(typeof behaviors[i].detach==='function')try{behaviors[i].detach(context,settings,trigger);}catch(e){Drupal.throwError(e);}});};Drupal.checkPlain=function(str){str=str.toString().replace(/&/g,'&').replace(/</g,'<').replace(/>/g,'>').replace(/"/g,'"').replace(/'/g,''');return str;};Drupal.formatString=function(str,args){const processedArgs={};Object.keys(args||{}).forEach((key)=>{switch(key.charAt(0)){case '@':processedArgs[key]=Drupal.checkPlain(args[key]);break;case '!':processedArgs[key]=args[key];break;default:processedArgs[key]=Drupal.theme('placeholder',args[key]);break;}});return Drupal.stringReplace(str,processedArgs,null);};Drupal.stringReplace=function(str,args,keys){if(str.length===0)return str;if(!Array.isArray(keys)){keys=Object.keys(args||{});keys.sort((a,b)=>a.length-b.length);}if(keys.length===0)return str;const key=keys.pop();const fragments=str.split(key);if(keys.length){for(let i=0;i<fragments.length;i++)fragments[i]=Drupal.stringReplace(fragments[i],args,keys.slice(0));}return fragments.join(args[key]);};Drupal.t=function(str,args,options){options=options||{};options.context=options.context||'';if(drupalTranslations?.strings?.[options.context]?.[str])str=drupalTranslations.strings[options.context][str];if(args)str=Drupal.formatString(str,args);return str;};Drupal.url=function(path){return drupalSettings.path.baseUrl+drupalSettings.path.pathPrefix+path;};Drupal.url.toAbsolute=function(url){const urlParsingNode=document.createElement('a');urlParsingNode.setAttribute('href',url);return urlParsingNode.href;};Drupal.url.isLocal=function(url){let absoluteUrl=Drupal.url.toAbsolute(url);let {protocol}=window.location;if(protocol==='http:'&&absoluteUrl.startsWith('https:'))protocol='https:';let baseUrl=`${protocol}//${window.location.host}${drupalSettings.path.baseUrl.slice(0,-1)}`;try{absoluteUrl=decodeURIComponent(absoluteUrl);}catch(e){}try{baseUrl=decodeURIComponent(baseUrl);}catch(e){}return absoluteUrl===baseUrl||absoluteUrl.startsWith(`${baseUrl}/`);};Drupal.formatPlural=function(count,singular,plural,args,options){args=args||{};args['@count']=count;const pluralDelimiter=drupalSettings.pluralDelimiter;const translations=Drupal.t(singular+pluralDelimiter+plural,args,options).split(pluralDelimiter);let index=0;if(drupalTranslations?.pluralFormula)index=count in drupalTranslations.pluralFormula?drupalTranslations.pluralFormula[count]:drupalTranslations.pluralFormula.default;else{if(args['@count']!==1)index=1;}return translations[index];};Drupal.encodePath=function(item){return window.encodeURIComponent(item).replace(/%2F/g,'/');};Drupal.deprecationError=({message})=>{if(drupalSettings.suppressDeprecationErrors===false&&console?.warn)console.warn(`[Deprecation] ${message}`);};Drupal.deprecatedProperty=({target,deprecatedProperty,message})=>{if(!Proxy||!Reflect)return target;return new Proxy(target,{get:(target,key,...rest)=>{if(key===deprecatedProperty)Drupal.deprecationError({message});return Reflect.get(target,key,...rest);}});};Drupal.theme=function(func,...args){if(typeof Drupal.theme?.[func]==='function')return Drupal.theme[func](...args);Drupal.throwError(new TypeError(`Drupal.theme.${func} must be function type.`));};Drupal.theme.placeholder=function(str){return `<em class="placeholder">${Drupal.checkPlain(str)}</em>`;};Drupal.elementIsVisible=function(elem){return !!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};Drupal.elementIsHidden=function(elem){return !Drupal.elementIsVisible(elem);};})(Drupal,window.drupalSettings,window.drupalTranslations,window.console,window.Proxy,window.Reflect);; 16if(window.jQuery)jQuery.noConflict();document.documentElement.className+=' js';(function(Drupal,drupalSettings){const domReady=(callback)=>{const listener=()=>{callback();document.removeEventListener('DOMContentLoaded',listener);};if(document.readyState!=='loading')setTimeout(callback,0);else document.addEventListener('DOMContentLoaded',listener);};domReady(()=>{Drupal.attachBehaviors(document,drupalSettings);});})(Drupal,window.drupalSettings);; 17!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.14.2"}); 18 19/*! 20 * jQuery UI :data 1.14.2 21 * https://jqueryui.com 22 * 23 * Copyright OpenJS Foundation and other contributors 24 * Released under the MIT license. 25 * https://jquery.org/license 26 */ 27!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(n){return function(t){return!!e.data(t,n)}})})}); 28 29/*! 30 * jQuery UI Disable Selection 1.14.2 31 * https://jqueryui.com 32 * 33 * Copyright OpenJS Foundation and other contributors 34 * Released under the MIT license. 35 * https://jquery.org/license 36 */ 37!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n}); 38 39/*! 40 * jQuery UI Legacy jQuery Core patches 1.14.2 41 * https://jqueryui.com 42 * 43 * Copyright OpenJS Foundation and other contributors 44 * Released under the MIT license. 45 * https://jquery.org/license 46 * 47 */ 48!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";e.escapeSelector||(e.escapeSelector=function(e){return CSS.escape(e+"")}),e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter(function(e){return e%2==0}
48)},odd:function(){return this.filter(function(e){return e%2==1})}})}); 49 50/*! 51 * jQuery UI Scroll Parent 1.14.2 52 * https://jqueryui.com 53 * 54 * Copyright OpenJS Foundation and other contributors 55 * Released under the MIT license. 56 * https://jquery.org/license 57 */ 58!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.scrollParent=function(e){var s=this.css("position"),n="absolute"===s,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==s&&i.length?i:t(this[0].ownerDocument||document)}}); 59 60/*! 61 * jQuery UI Unique ID 1.14.2 62 * https://jqueryui.com 63 * 64 * Copyright OpenJS Foundation and other contributors 65 * Released under the MIT license. 66 * https://jquery.org/license 67 */ 68!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}(function(i){"use strict";return i.fn.extend({uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")})}});var e}); 69 70/*! 71 * jQuery UI Focusable 1.14.2 72 * https://jqueryui.com 73 * 74 * Copyright OpenJS Foundation and other contributors 75 * Released under the MIT license. 76 * https://jquery.org/license 77 */ 78!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.focusable=function(t,i){var s,n,u,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=(s=t.parentNode).name,!(!t.href||!n||"map"!==s.nodeName.toLowerCase())&&((u=e("img[usemap='#"+n+"']")).length>0&&u.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(r)?(a=!t.disabled)&&(o=e(t).closest("fieldset")[0])&&(a=!o.disabled):a="a"===r&&t.href||i,a&&e(t).is(":visible")&&"visible"===e(t).css("visibility"))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable}); 79 80/*! 81 * jQuery UI Keycode 1.14.2 82 * https://jqueryui.com 83 * 84 * Copyright OpenJS Foundation and other contributors 85 * Released under the MIT license. 86 * https://jquery.org/license 87 */ 88!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}); 89 90!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}(function(e){"use strict";return e.ui.plugin={add:function(n,i,t){var u,o=e.ui[n].prototype;for(u in t)o.plugins[u]=o.plugins[u]||[],o.plugins[u].push([i,t[u]])},call:function(e,n,i,t){var u,o=e.plugins[n];if(o&&(t||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(u=0;u<o.length;u++)e.options[o[u][0]]&&o[u][1].apply(e.element,i)}}}); 91 92/*! 93 * jQuery UI Widget 1.14.2 94 * https://jqueryui.com 95 * 96 * Copyright OpenJS Foundation and other contributors 97 * Released under the MIT license. 98 * https://jquery.org/license 99 */ 100!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";var e,i=0,s=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove");e(i)}),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var u=l+"-"+e;return s||(s=i,i=t.Widget),Array.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,function(t,e){r[t]="function"==typeof e?function(){function s(){return i.prototype[t].apply(this,arguments)}function n(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=s,this._superApply=n,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e}),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),n?(t.each(n._childConstructors,function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)}),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o}
vendor: 4,414 bytes, line 100
100,t.widget.extend=function(e){for(var i,o,a=n.call(arguments,1),r=0,l=a.length;r<l;r++)for(i in a[r])o=a[r][i],s.call(a[r],i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=n.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each(function(){var i,n=t.data(this,s);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,r))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each(function(){var e=t.data(this,s);e?(e.option(o||{}),e._init&&e._init()):t.data(this,s,new i(o,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;function n(){var i=[];e.element.each(function(e,n){t.map(s.classesElementLookup,function(t){return t}).some(function(t){return t.is(n)})||i.push(n)}),s._on(t(i),{remove:"_untrackClassesElement"})}function o(o,a){var r,l;for(l=0;l<o.length;l++)r=s.classesElementLookup[o[l]]||t(),e.add?(n(),r=t(t.uniqueSort(r.get().concat(e.element.get())))):r=t(r.not(e.element).get()),s.classesElementLookup[o[l]]=r,i.push(o[l]),a&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))}),this._off(t(e.target))}
vendor: 15,885 bytes, lines 100-213
100,_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,function(s,a){function r(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,h=l[2];h?n.on(u,h,r):i.on(u,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){var a;"string"==typeof n&&(n={effect:n});var r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue(function(i){t(this)[e](),o&&o.call(s[0]),i()})}}),t.widget}); 101 102/*! 103 * jQuery UI Labels 1.14.2 104 * https://jqueryui.com 105 * 106 * Copyright OpenJS Foundation and other contributors 107 * Released under the MIT license. 108 * https://jquery.org/license 109 */ 110!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}(function(t){"use strict";return t.fn.labels=function(){var t,s,e,i,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(e=this.attr("id"))&&(n=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),s="label[for='"+CSS.escape(e)+"']",i=i.add(n.find(s).addBack(s))),this.pushStack(i)):this.pushStack([])}}); 111 112/* @license Public Domain https://raw.githubusercontent.com/jquery/jquery-ui/1.13.2/LICENSE.txt */ 113!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}((function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.13.2"})); 114 115/*! 116 * jQuery UI :data 1.13.2 117 * http://jqueryui.com 118 * 119 * Copyright jQuery Foundation and other contributors 120 * Released under the MIT license. 121 * http://jquery.org/license 122 */ 123!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo((function(n){return function(t){return!!e.data(t,n)}})):function(n,t,r){return!!e.data(n,r[3])}})})); 124 125/*! 126 * jQuery UI Disable Selection 1.13.2 127 * http://jqueryui.com 128 * 129 * Copyright jQuery Foundation and other contributors 130 * Released under the MIT license. 131 * http://jquery.org/license 132 */ 133!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.fn.extend({disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(n+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var n})); 134 135/*! 136 * jQuery UI Focusable 1.13.2 137 * http://jqueryui.com 138 * 139 * Copyright jQuery Foundation and other contributors 140 * Released under the MIT license. 141 * http://jquery.org/license 142 */ 143!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.focusable=function(i,t){var n,s,r,u,a,o=i.nodeName.toLowerCase();return"area"===o?(s=(n=i.parentNode).name,!(!i.href||!s||"map"!==n.nodeName.toLowerCase())&&((r=e("img[usemap='#"+s+"']")).length>0&&r.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(o)?(u=!i.disabled)&&(a=e(i).closest("fieldset")[0])&&(u=!a.disabled):u="a"===o&&i.href||t,u&&e(i).is(":visible")&&function(e){var i=e.css("visibility");for(;"inherit"===i;)i=(e=e.parent()).css("visibility");return"visible"===i}(e(i)))},e.extend(e.expr.pseudos,{focusable:function(i){return e.ui.focusable(i,null!=e.attr(i,"tabindex"))}}),e.ui.focusable})); 144 145!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";return t.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)}})); 146 147!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})); 148 149/*! 150 * jQuery UI Keycode 1.13.2 151 * http://jqueryui.com 152 * 153 * Copyright jQuery Foundation and other contributors 154 * Released under the MIT license. 155 * http://jquery.org/license 156 */ 157!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})); 158 159/*! 160 * jQuery UI Labels 1.13.2 161 * http://jqueryui.com 162 * 163 * Copyright jQuery Foundation and other contributors 164 * Released under the MIT license. 165 * http://jquery.org/license 166 */ 167!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";return t.fn.labels=function(){var e,s,i,n,a;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(n=this.eq(0).parents("label"),(i=this.attr("id"))&&(a=(e=this.eq(0).parents().last()).add(e.length?e.siblings():this.siblings()),s="label[for='"+t.escapeSelector(i)+"']",n=n.add(a.find(s).addBack(s))),this.pushStack(n)):this.pushStack([])}})); 168 169!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.plugin={add:function(n,i,t){var u,o=e.ui[n].prototype;for(u in t)o.plugins[u]=o.plugins[u]||[],o.plugins[u].push([i,t[u]])},call:function(e,n,i,t){var u,o=e.plugins[n];if(o&&(t||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(u=0;u<o.length;u++)e.options[o[u][0]]&&o[u][1].apply(e.element,i)}}})); 170 171!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.safeActiveElement=function(e){var n;try{n=e.activeElement}catch(t){n=e.body}return n||(n=e.body),n.nodeName||(n=e.body),n}})); 172 173!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.safeBlur=function(n){n&&"body"!==n.nodeName.toLowerCase()&&e(n).trigger("blur")}})); 174 175/*! 176 * jQuery UI Scroll Parent 1.13.2 177 * http://jqueryui.com 178 * 179 * Copyright jQuery Foundation and other contributors 180 * Released under the MIT license. 181 * http://jquery.org/license 182 */ 183!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";return t.fn.scrollParent=function(e){var s=this.css("position"),n="absolute"===s,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,i=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==s&&i.length?i:t(this[0].ownerDocument||document)}})); 184 185/*! 186 * jQuery UI Tabbable 1.13.2 187 * http://jqueryui.com 188 * 189 * Copyright jQuery Foundation and other contributors 190 * Released under the MIT license. 191 * http://jquery.org/license 192 */ 193!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version","./focusable"],e):e(jQuery)}((function(e){"use strict";return e.extend(e.expr.pseudos,{tabbable:function(n){var t=e.attr(n,"tabindex"),u=null!=t;return(!u||t>=0)&&e.ui.focusable(n,u)}})})); 194 195/*! 196 * jQuery UI Unique ID 1.13.2 197 * http://jqueryui.com 198 * 199 * Copyright jQuery Foundation and other contributors 200 * Released under the MIT license. 201 * http://jquery.org/license 202 */ 203!function(i){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],i):i(jQuery)}((function(i){"use strict";return i.fn.extend({uniqueId:(e=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++e)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&i(this).removeAttr("id")}))}});var e})); 204 205/*! 206 * jQuery UI Widget 1.13.2 207 * http://jqueryui.com 208 * 209 * Copyright jQuery Foundation and other contributors 210 * Released under the MIT license. 211 * http://jquery.org/license 212 */ 213!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";var e,i=0,s=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=(e=t.cleanData,function(i){var s,n,o;for(o=0;null!=(n=i[o]);o++)(s=t._data(n,"events"))&&s.remove&&t(n).triggerHandler("remove");e(i)}),t.widget=function(e,i,s){var n,o,a,r={},l=e.split(".")[0],u=l+"-"+(e=e.split(".")[1]);return s||(s=i,i=t.Widget),Array.isArray(s)&&(s=t.extend.apply(null,[{}].concat(s))),t.expr.pseudos[u.toLowerCase()]=function(e){return!!t.data(e,u)},t[l]=t[l]||{},n=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,n,{version:s.version,_proto:t.extend({},s),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(s,(function(t,e){r[t]="function"==typeof e?function(){function s(){return i.prototype[t].apply(this,arguments)}function n(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,o=this._superApply;return this._super=s,this._superApply=n,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}}():e})),o.prototype=t.widget.extend(a,{widgetEventPrefix:n&&a.widgetEventPrefix||e},r,{constructor:o,namespace:l,widgetName:e,widgetFullName:u}),n?(t.each(n._childConstructors,(function(e,i){var s=i.prototype;t.widget(s.namespace+"."+s.widgetName,o,i._proto)})),delete n._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,o,a=n.call(arguments,1),r=0,l=a.length;r<l;r++)for(i in a[r])o=a[r][i],s.call(a[r],i)&&void 0!==o&&(t.isPlainObject(o)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],o):t.widget.extend({},o):e[i]=o);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(o){var a="string"==typeof o,r=n.call(arguments,1),l=this;return a?this.length||"instance"!==o?this.each((function(){var i,n=t.data(this,s);return"instance"===o?(l=n,!1):n?"function"!=typeof n[o]||"_"===o.charAt(0)?t.error("no such method '"+o+"' for "+e+" widget instance"):(i=n[o].apply(n,r))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(r.length&&(o=t.widget.extend.apply(null,[o].concat(r))),this.each((function(){var e=t.data(this,s);e?(e.option(o||{}),e._init&&e._init()):t.data(this,s,new i(o,this))}))),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,s){s=t(s||this.defaultElement||this)[0],this.element=t(s),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},s!==this&&(t.data(s,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===s&&this.destroy()}}),this.document=t(s.style?s.ownerDocument:s.document||s),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var s,n,o,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},s=e.split("."),e=s.shift(),s.length){for(n=a[e]=t.widget.extend({},this.options[e]),o=0;o<s.length-1;o++)n[s[o]]=n[s[o]]||{},n=n[s[o]];if(e=s.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,s,n;for(i in e)n=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&n&&n.length&&(s=t(n.get()),this._removeClass(n,i),s.addClass(this._classes({element:s,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],s=this;function n(){var i=[];e.element.each((function(e,n){t.map(s.classesElementLookup,(function(t){return t})).some((function(t){return t.is(n)}))||i.push(n)})),s._on(t(i),{remove:"_untrackClassesElement"})}function o(o,a){var r,l;for(l=0;l<o.length;l++)r=s.classesElementLookup[o[l]]||t(),e.add?(n(),r=t(t.uniqueSort(r.get().concat(e.element.get())))):r=t(r.not(e.element).get()),s.classesElementLookup[o[l]]=r,i.push(o[l]),a&&e.classes[o[l]]&&i.push(e.classes[o[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&o(e.keys.match(/\S+/g)||[],!0),e.extra&&o(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(s,n){-1!==t.inArray(e.target,n)&&(i.classesElementLookup[s]=t(n.not(e.target).get()))})),this._off(t(e.target))}
vendor: 6,253 bytes, lines 213-235
213,_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){s="boolean"==typeof s?s:i;var n="string"==typeof t||null===t,o={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s};return o.element.toggleClass(this._classes(o),s),this},_on:function(e,i,s){var n,o=this;"boolean"!=typeof e&&(s=i,i=e,e=!1),s?(i=n=t(i),this.bindings=this.bindings.add(i)):(s=i,i=this.element,n=this.widget()),t.each(s,(function(s,a){function r(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?o[a]:a).apply(o,arguments)}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=s.match(/^([\w:-]*)\s*(.*)$/),u=l[1]+o.eventNamespace,h=l[2];h?n.on(u,h,r):i.on(u,r)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,s){var n,o,a=this.options[e];if(s=s||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(n in o)n in i||(i[n]=o[n]);return this.element.trigger(i,s),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(s))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(s,n,o){var a;"string"==typeof n&&(n={effect:n});var r=n?!0===n||"number"==typeof n?i:n.effect||i:e;"number"==typeof(n=n||{})?n={duration:n}:!0===n&&(n={}),a=!t.isEmptyObject(n),n.complete=o,n.delay&&s.delay(n.delay),a&&t.effects&&t.effects.effect[r]?s[e](n):r!==e&&s[r]?s[r](n.duration,n.easing,o):s.queue((function(i){t(this)[e](),o&&o.call(s[0]),i()}))}})),t.widget})); 214 215/*! 216 * jQuery UI Mouse 1.13.2 217 * http://jqueryui.com 218 * 219 * Copyright jQuery Foundation and other contributors 220 * Released under the MIT license. 221 * http://jquery.org/license 222 */ 223!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}((function(e){"use strict";var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var s=this,o=1===i.which,n=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&e(i.target).closest(this.options.cancel).length;return!(o&&!n&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){s.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return s._mouseMove(e)},this._mouseUpDelegate=function(e){return s._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&e.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,i.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})); 224 225/*! 226 * jQuery UI Position 1.13.2 227 * http://jqueryui.com 228 * 229 * Copyright jQuery Foundation and other contributors 230 * Released under the MIT license. 231 * http://jquery.org/license 232 * 233 * http://api.jqueryui.com/position/ 234 */ 235!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],t):t(jQuery)}((function(t){"use strict";
vendor: 40,921 bytes, lines 235-255
235return function(){var i,o=Math.max,e=Math.abs,n=/left|center|right/,l=/top|center|bottom/,f=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,h=/%$/,r=t.fn.position;function c(t,i,o){return[parseFloat(t[0])*(h.test(t[0])?i/100:1),parseFloat(t[1])*(h.test(t[1])?o/100:1)]}function p(i,o){return parseInt(t.css(i,o),10)||0}function a(t){return null!=t&&t===t.window}function d(t){var i=t[0];return 9===i.nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:a(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()}}t.position={scrollbarWidth:function(){if(void 0!==i)return i;var o,e,n=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),l=n.children()[0];return t("body").append(n),o=l.offsetWidth,n.css("overflow","scroll"),o===(e=l.offsetWidth)&&(e=n[0].clientWidth),n.remove(),i=o-e},getScrollInfo:function(i){var o=i.isWindow||i.isDocument?"":i.element.css("overflow-x"),e=i.isWindow||i.isDocument?"":i.element.css("overflow-y"),n="scroll"===o||"auto"===o&&i.width<i.element[0].scrollWidth;return{width:"scroll"===e||"auto"===e&&i.height<i.element[0].scrollHeight?t.position.scrollbarWidth():0,height:n?t.position.scrollbarWidth():0}},getWithinInfo:function(i){var o=t(i||window),e=a(o[0]),n=!!o[0]&&9===o[0].nodeType;return{element:o,isWindow:e,isDocument:n,offset:!e&&!n?t(i).offset():{left:0,top:0},scrollLeft:o.scrollLeft(),scrollTop:o.scrollTop(),width:o.outerWidth(),height:o.outerHeight()}}},t.fn.position=function(i){if(!i||!i.of)return r.apply(this,arguments);var h,a,g,u,m,w,W="string"==typeof(i=t.extend({},i)).of?t(document).find(i.of):t(i.of),v=t.position.getWithinInfo(i.within),y=t.position.getScrollInfo(v),H=(i.collision||"flip").split(" "),b={};return w=d(W),W[0].preventDefault&&(i.at="left top"),a=w.width,g=w.height,u=w.offset,m=t.extend({},u),t.each(["my","at"],(function(){var t,o,e=(i[this]||"").split(" ");1===e.length&&(e=n.test(e[0])?e.concat(["center"]):l.test(e[0])?["center"].concat(e):["center","center"]),e[0]=n.test(e[0])?e[0]:"center",e[1]=l.test(e[1])?e[1]:"center",t=f.exec(e[0]),o=f.exec(e[1]),b[this]=[t?t[0]:0,o?o[0]:0],i[this]=[s.exec(e[0])[0],s.exec(e[1])[0]]})),1===H.length&&(H[1]=H[0]),"right"===i.at[0]?m.left+=a:"center"===i.at[0]&&(m.left+=a/2),"bottom"===i.at[1]?m.top+=g:"center"===i.at[1]&&(m.top+=g/2),h=c(b.at,a,g),m.left+=h[0],m.top+=h[1],this.each((function(){var n,l,f=t(this),s=f.outerWidth(),r=f.outerHeight(),d=p(this,"marginLeft"),w=p(this,"marginTop"),x=s+d+p(this,"marginRight")+y.width,T=r+w+p(this,"marginBottom")+y.height,L=t.extend({},m),P=c(b.my,f.outerWidth(),f.outerHeight());"right"===i.my[0]?L.left-=s:"center"===i.my[0]&&(L.left-=s/2),"bottom"===i.my[1]?L.top-=r:"center"===i.my[1]&&(L.top-=r/2),L.left+=P[0],L.top+=P[1],n={marginLeft:d,marginTop:w},t.each(["left","top"],(function(o,e){t.ui.position[H[o]]&&t.ui.position[H[o]][e](L,{targetWidth:a,targetHeight:g,elemWidth:s,elemHeight:r,collisionPosition:n,collisionWidth:x,collisionHeight:T,offset:[h[0]+P[0],h[1]+P[1]],my:i.my,at:i.at,within:v,elem:f})})),i.using&&(l=function(t){var n=u.left-L.left,l=n+a-s,h=u.top-L.top,c=h+g-r,p={target:{element:W,left:u.left,top:u.top,width:a,height:g},element:{element:f,left:L.left,top:L.top,width:s,height:r},horizontal:l<0?"left":n>0?"right":"center",vertical:c<0?"top":h>0?"bottom":"middle"};a<s&&e(n+l)<a&&(p.horizontal="center"),g<r&&e(h+c)<g&&(p.vertical="middle"),o(e(n),e(l))>o(e(h),e(c))?p.important="horizontal":p.important="vertical",i.using.call(this,t,p)}),f.offset(t.extend(L,{using:l}))}))},t.ui.position={fit:{left:function(t,i){var e,n=i.within,l=n.isWindow?n.scrollLeft:n.offset.left,f=n.width,s=t.left-i.collisionPosition.marginLeft,h=l-s,r=s+i.collisionWidth-f-l;i.collisionWidth>f?h>0&&r<=0?(e=t.left+h+i.collisionWidth-f-l,t.left+=h-e):t.left=r>0&&h<=0?l:h>r?l+f-i.collisionWidth:l:h>0?t.left+=h:r>0?t.left-=r:t.left=o(t.left-s,t.left)},top:function(t,i){var e,n=i.within,l=n.isWindow?n.scrollTop:n.offset.top,f=i.within.height,s=t.top-i.collisionPosition.marginTop,h=l-s,r=s+i.collisionHeight-f-l;i.collisionHeight>f?h>0&&r<=0?(e=t.top+h+i.collisionHeight-f-l,t.top+=h-e):t.top=r>0&&h<=0?l:h>r?l+f-i.collisionHeight:l:h>0?t.top+=h:r>0?t.top-=r:t.top=o(t.top-s,t.top)}},flip:{left:function(t,i){var o,n,l=i.within,f=l.offset.left+l.scrollLeft,s=l.width,h=l.isWindow?l.scrollLeft:l.offset.left,r=t.left-i.collisionPosition.marginLeft,c=r-h,p=r+i.collisionWidth-s-h,a="left"===i.my[0]?-i.elemWidth:"right"===i.my[0]?i.elemWidth:0,d="left"===i.at[0]?i.targetWidth:"right"===i.at[0]?-i.targetWidth:0,g=-2*i.offset[0];c<0?((o=t.left+a+d+g+i.collisionWidth-s-f)<0||o<e(c))&&(t.left+=a+d+g):p>0&&((n=t.left-i.collisionPosition.marginLeft+a+d+g-h)>0||e(n)<p)&&(t.left+=a+d+g)},top:function(t,i){var o,n,l=i.within,f=l.offset.top+l.scrollTop,s=l.height,h=l.isWindow?l.scrollTop:l.offset.top,r=t.top-i.collisionPosition.marginTop,c=r-h,p=r+i.collisionHeight-s-h,a="top"===i.my[1]?-i.elemHeight:"bottom"===i.my[1]?i.elemHeight:0,d="top"===i.at[1]?i.targetHeight:"bottom"===i.at[1]?-i.targetHeight:0,g=-2*i.offset[1];c<0?((n=t.top+a+d+g+i.collisionHeight-s-f)<0||n<e(c))&&(t.top+=a+d+g):p>0&&((o=t.top-i.collisionPosition.marginTop+a+d+g-h)>0||e(o)<p)&&(t.top+=a+d+g)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position})); 236 237/*! 238 * jQuery UI Draggable 1.13.2 239 * http://jqueryui.com 240 * 241 * Copyright jQuery Foundation and other contributors 242 * Released under the MIT license. 243 * http://jquery.org/license 244 */ 245!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../safe-active-element","../safe-blur","../scroll-parent","../version","../widget"],t):t(jQuery)}((function(t){"use strict";return t.widget("ui.draggable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var s=this.options;return!(this.helper||s.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===s.iframeFix?"iframe":s.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var s=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(s).length||t.ui.safeBlur(s)},_mouseStart:function(e){var s=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,s){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!s){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var s=this,i=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(i=t.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,i)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==s._trigger("stop",e)&&s._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var s=this.options,i="function"==typeof s.helper,o=i?t(s.helper.apply(this.element[0],[e])):"clone"===s.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===s.appendTo?this.element[0].parentNode:s.appendTo),i&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),s=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==s&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,s,i,o=this.options,n=this.document[0];this.relativeContainer=null,o.containment?"window"!==o.containment?"document"!==o.containment?o.containment.constructor!==Array?("parent"===o.containment&&(o.containment=this.helper[0].parentNode),(i=(s=t(o.containment))[0])&&(e=/(scroll|auto)/.test(s.css("overflow")),this.containment=[(parseInt(s.css("borderLeftWidth"),10)||0)+(parseInt(s.css("paddingLeft"),10)||0),(parseInt(s.css("borderTopWidth"),10)||0)+(parseInt(s.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(s.css("borderRightWidth"),10)||0)-(parseInt(s.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(s.css("borderBottomWidth"),10)||0)-(parseInt(s.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=s)):this.containment=o.containment:this.containment=[0,0,t(n).width()-this.helperProportions.width-this.margins.left,(t(n).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||n.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var s="absolute"===t?1:-1,i=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*s+this.offset.parent.top*s-("fixed"===this.cssPosition?-this.offset.scroll.top:i?0:this.offset.scroll.top)*s,left:e.left+this.offset.relative.left*s+this.offset.parent.left*s-("fixed"===this.cssPosition?-this.offset.scroll.left:i?0:this.offset.scroll.left)*s}},_generatePosition:function(t,e){var s,i,o,n,r=this.options,l=this._isRootNode(this.scrollParent[0]),a=t.pageX,h=t.pageY;return l&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(i=this.relativeContainer.offset(),s=[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):s=this.containment,t.pageX-this.offset.click.left<s[0]&&(a=s[0]+this.offset.click.left),t.pageY-this.offset.click.top<s[1]&&(h=s[1]+this.offset.click.top),t.pageX-this.offset.click.left>s[2]&&(a=s[2]+this.offset.click.left),t.pageY-this.offset.click.top>s[3]&&(h=s[3]+this.offset.click.top)),r.grid&&(o=r.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,h=s?o-this.offset.click.top>=s[1]||o-this.offset.click.top>s[3]?o:o-this.offset.click.top>=s[1]?o-r.grid[1]:o+r.grid[1]:o,n=r.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,a=s?n-this.offset.click.left>=s[0]||n-this.offset.click.left>s[2]?n:n-this.offset.click.left>=s[0]?n-r.grid[0]:n+r.grid[0]:n),"y"===r.axis&&(a=this.originalPageX),"x"===r.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:l?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,s,i){return i=i||this._uiHash(),t.ui.plugin.call(this,e,[s,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,s,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,s,i){var o=t.extend({},s,{item:i.element});i.sortables=[],t(i.options.connectToSortable).each((function(){var s=t(this).sortable("instance");s&&!s.options.disabled&&(i.sortables.push(s),s.refreshPositions(),s._trigger("activate",e,o))}))},stop:function(e,s,i){var o=t.extend({},s,{item:i.element});i.cancelHelperRemoval=!1,t.each(i.sortables,(function(){var t=this;t.isOver?(t.isOver=0,i.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))}))},drag:function(e,s,i){t.each(i.sortables,(function(){var o=!1,n=this;n.positionAbs=i.positionAbs,n.helperProportions=i.helperProportions,n.offset.click=i.offset.click,n._intersectsWith(n.containerCache)&&(o=!0,t.each(i.sortables,(function(){return this.positionAbs=i.positionAbs,this.helperProportions=i.helperProportions,this.offset.click=i.offset.click,this!==n&&this._intersectsWith(this.containerCache)&&t.contains(n.element[0],this.element[0])&&(o=!1),o}))),o?(n.isOver||(n.isOver=1,i._parent=s.helper.parent(),n.currentItem=s.helper.appendTo(n.element).data("ui-sortable-item",!0),n.options._helper=n.options.helper,n.options.helper=function(){return s.helper[0]},e.target=n.currentItem[0],n._mouseCapture(e,!0),n._mouseStart(e,!0,!0),n.offset.click.top=i.offset.click.top,n.offset.click.left=i.offset.click.left,n.offset.parent.left-=i.offset.parent.left-n.offset.parent.left,n.offset.parent.top-=i.offset.parent.top-n.offset.parent.top,i._trigger("toSortable",e),i.dropped=n.element,t.each(i.sortables,(function(){this.refreshPositions()})),i.currentItem=i.element,n.fromOutside=i),n.currentItem&&(n._mouseDrag(e),s.position=n.position)):n.isOver&&(n.isOver=0,n.cancelHelperRemoval=!0,n.options._revert=n.options.revert,n.options.revert=!1,n._trigger("out",e,n._uiHash(n)),n._mouseStop(e,!0),n.options.revert=n.options._revert,n.options.helper=n.options._helper,n.placeholder&&n.placeholder.remove(),s.helper.appendTo(i._parent),i._refreshOffsets(e),s.position=i._generatePosition(e,!0),i._trigger("fromSortable",e),i.dropped=!1,t.each(i.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,s,i){var o=t("body"),n=i.options;o.css("cursor")&&(n._cursor=o.css("cursor")),o.css("cursor",n.cursor)},stop:function(e,s,i){var o=i.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("opacity")&&(n._opacity=o.css("opacity")),o.css("opacity",n.opacity)},stop:function(e,s,i){var o=i.options;o._opacity&&t(s.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&"HTML"!==s.scrollParentNotHidden[0].tagName&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(e,s,i){var o=i.options,n=!1,r=i.scrollParentNotHidden[0],l=i.document[0];r!==l&&"HTML"!==r.tagName?(o.axis&&"x"===o.axis||(i.overflowOffset.top+r.offsetHeight-e.pageY<o.scrollSensitivity?r.scrollTop=n=r.scrollTop+o.scrollSpeed:e.pageY-i.overflowOffset.top<o.scrollSensitivity&&(r.scrollTop=n=r.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(i.overflowOffset.left+r.offsetWidth-e.pageX<o.scrollSensitivity?r.scrollLeft=n=r.scrollLeft+o.scrollSpeed:e.pageX-i.overflowOffset.left<o.scrollSensitivity&&(r.scrollLeft=n=r.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t(l).scrollTop()<o.scrollSensitivity?n=t(l).scrollTop(t(l).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(l).scrollTop())<o.scrollSensitivity&&(n=t(l).scrollTop(t(l).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(l).scrollLeft()<o.scrollSensitivity?n=t(l).scrollLeft(t(l).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(l).scrollLeft())<o.scrollSensitivity&&(n=t(l).scrollLeft(t(l).scrollLeft()+o.scrollSpeed)))),!1!==n&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(i,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,s,i){var o=i.options;i.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each((function(){var e=t(this),s=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:s.top,left:s.left})}))},drag:function(e,s,i){var o,n,r,l,a,h,p,c,f,d,g=i.options,u=g.snapTolerance,m=s.offset.left,v=m+i.helperProportions.width,_=s.offset.top,P=_+i.helperProportions.height;for(f=i.snapElements.length-1;f>=0;f--)h=(a=i.snapElements[f].left-i.margins.left)+i.snapElements[f].width,c=(p=i.snapElements[f].top-i.margins.top)+i.snapElements[f].height,v<a-u||m>h+u||P<p-u||_>c+u||!t.contains(i.snapElements[f].item.ownerDocument,i.snapElements[f].item)?(i.snapElements[f].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=!1):("inner"!==g.snapMode&&(o=Math.abs(p-P)<=u,n=Math.abs(c-_)<=u,r=Math.abs(a-v)<=u,l=Math.abs(h-m)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p-i.helperProportions.height,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h}).left)),d=o||n||r||l,"outer"!==g.snapMode&&(o=Math.abs(p-_)<=u,n=Math.abs(c-P)<=u,r=Math.abs(a-m)<=u,l=Math.abs(h-v)<=u,o&&(s.position.top=i._convertPositionTo("relative",{top:p,left:0}).top),n&&(s.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),r&&(s.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),l&&(s.position.left=i._convertPositionTo("relative",{top:0,left:h-i.helperProportions.width}).left)),!i.snapElements[f].snapping&&(o||n||r||l||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,t.extend(i._uiHash(),{snapItem:i.snapElements[f].item})),i.snapElements[f].snapping=o||n||r||l||d)}}),t.ui.plugin.add("draggable","stack",{start:function(e,s,i){var o,n=i.options,r=t.makeArray(t(n.stack)).sort((function(e,s){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(s).css("zIndex"),10)||0)}));r.length&&(o=parseInt(t(r[0]).css("zIndex"),10)||0,t(r).each((function(e){t(this).css("zIndex",o+e)})),this.css("zIndex",o+r.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,s,i){var o=t(s.helper),n=i.options;o.css("zIndex")&&(n._zIndex=o.css("zIndex")),o.css("zIndex",n.zIndex)},stop:function(e,s,i){var o=i.options;o._zIndex&&t(s.helper).css("zIndex",o._zIndex)}}),t.ui.draggable})); 246 247/*! 248 * jQuery UI Resizable 1.13.2 249 * http://jqueryui.com 250 * 251 * Copyright jQuery Foundation and other contributors 252 * Released under the MIT license. 253 * http://jquery.org/license 254 */ 255!function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../disable-selection","../plugin","../version","../widget"],t):t(jQuery)}((function(t){"use strict";return t.widget("ui.resizable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(i,e){if("hidden"===t(i).css("overflow"))return!1;var s=e&&"left"===e?"scrollLeft":"scrollTop",h=!1;if(i[s]>0)return!0;try{i[s]=1,h=i[s]>0,i[s]=0}catch(t){}return h},_create:function(){var i,e=this.options,s=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!e.aspectRatio,aspectRatio:e.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:e.helper||e.ghost||e.animate?e.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,i={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(i),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(i),this._proportionallyResize()),this._setupHandles(),e.autoHide&&t(this.element).on("mouseenter",(function(){e.disabled||(s._removeClass("ui-resizable-autohide"),s._handles.show())})).on("mouseleave",(function(){e.disabled||s.resizing||(s._addClass("ui-resizable-autohide"),s._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var i,e=function(i){t(i).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(e(this.element),i=this.element,this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_setOption:function(t,i){switch(this._super(t,i),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!i}},_setupHandles:function(){var i,e,s,h,n,o=this.options,a=this;if(this.handles=o.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),s=this.handles.split(","),this.handles={},e=0;e<s.length;e++)h="ui-resizable-"+(i=String.prototype.trim.call(s[e])),n=t("<div>"),this._addClass(n,"ui-resizable-handle "+h),n.css({zIndex:o.zIndex}),this.handles[i]=".ui-resizable-"+i,this.element.children(this.handles[i]).length||(this.element.append(n),this._addedHandles=this._addedHandles.add(n));this._renderAxis=function(i){var e,s,h,n;for(e in i=i||this.element,this.handles)this.handles[e].constructor===String?this.handles[e]=this.element.children(this.handles[e]).first().show():(this.handles[e].jquery||this.handles[e].nodeType)&&(this.handles[e]=t(this.handles[e]),this._on(this.handles[e],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(s=t(this.handles[e],this.element),n=/sw|ne|nw|se|n|s/.test(e)?s.outerHeight():s.outerWidth(),h=["padding",/ne|nw|n/.test(e)?"Top":/se|sw|s/.test(e)?"Bottom":/^e$/.test(e)?"Right":"Left"].join(""),i.css(h,n),this._proportionallyResize()),this._handles=this._handles.add(this.handles[e])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){a.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=n&&n[1]?n[1]:"se")})),o.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(i){var e,s,h=!1;for(e in this.handles)((s=t(this.handles[e])[0])===i.target||t.contains(s,i.target))&&(h=!0);return!this.options.disabled&&h},_mouseStart:function(i){var e,s,h,n=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),e=this._num(this.helper.css("left")),s=this._num(this.helper.css("top")),n.containment&&(e+=t(n.containment).scrollLeft()||0,s+=t(n.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:e,top:s},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:e,top:s},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof n.aspectRatio?n.aspectRatio:this.originalSize.width/this.originalSize.height||1,h=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===h?this.axis+"-resize":h),this._addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(i){var e,s,h=this.originalMousePosition,n=this.axis,o=i.pageX-h.left||0,a=i.pageY-h.top||0,l=this._change[n];return this._updatePrevProperties(),!!l&&(e=l.apply(this,[i,o,a]),this._updateVirtualBoundaries(i.shiftKey),(this._aspectRatio||i.shiftKey)&&(e=this._updateRatio(e,i)),e=this._respectSize(e,i),this._updateCache(e),this._propagate("resize",i),s=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(s)||(this._updatePrevProperties(),this._trigger("resize",i,this.ui()),this._applyChanges()),!1)},_mouseStop:function(i){this.resizing=!1;var e,s,h,n,o,a,l,r=this.options,p=this;return this._helper&&(h=(s=(e=this._proportionallyResizeElements).length&&/textarea/i.test(e[0].nodeName))&&this._hasScroll(e[0],"left")?0:p.sizeDiff.height,n=s?0:p.sizeDiff.width,o={width:p.helper.width()-n,height:p.helper.height()-h},a=parseFloat(p.element.css("left"))+(p.position.left-p.originalPosition.left)||null,l=parseFloat(p.element.css("top"))+(p.position.top-p.originalPosition.top)||null,r.animate||this.element.css(t.extend(o,{top:l,left:a})),p.helper.height(p.size.height),p.helper.width(p.size.width),this._helper&&!r.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",i),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var i,e,s,h,n,o=this.options;n={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||t)&&(i=n.minHeight*this.aspectRatio,s=n.minWidth/this.aspectRatio,e=n.maxHeight*this.aspectRatio,h=n.maxWidth/this.aspectRatio,i>n.minWidth&&(n.minWidth=i),s>n.minHeight&&(n.minHeight=s),e<n.maxWidth&&(n.maxWidth=e),h<n.maxHeight&&(n.maxHeight=h)),this._vBoundaries=n},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var i=this.position,e=this.size,s=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===s&&(t.left=i.left+(e.width-t.width),t.top=null),"nw"===s&&(t.top=i.top+(e.height-t.height),t.left=i.left+(e.width-t.width)),t},_respectSize:function(t){var i=this._vBoundaries,e=this.axis,s=this._isNumber(t.width)&&i.maxWidth&&i.maxWidth<t.width,h=this._isNumber(t.height)&&i.maxHeight&&i.maxHeight<t.height,n=this._isNumber(t.width)&&i.minWidth&&i.minWidth>t.width,o=this._isNumber(t.height)&&i.minHeight&&i.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,r=/sw|nw|w/.test(e),p=/nw|ne|n/.test(e);return n&&(t.width=i.minWidth),o&&(t.height=i.minHeight),s&&(t.width=i.maxWidth),h&&(t.height=i.maxHeight),n&&r&&(t.left=a-i.minWidth),s&&r&&(t.left=a-i.maxWidth),o&&p&&(t.top=l-i.minHeight),h&&p&&(t.top=l-i.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var i=0,e=[],s=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],h=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];i<4;i++)e[i]=parseFloat(s[i])||0,e[i]+=parseFloat(h[i])||0;return{height:e[0]+e[2],width:e[1]+e[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,i=0,e=this.helper||this.element;i<this._proportionallyResizeElements.length;i++)t=this._proportionallyResizeElements[i],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:e.height()-this.outerDimensions.height||0,width:e.width()-this.outerDimensions.width||0})},_renderProxy:function(){var i=this.element,e=this.options;this.elementOffset=i.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++e.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,i){return{width:this.originalSize.width+i}},w:function(t,i){var e=this.originalSize;return{left:this.originalPosition.left+i,width:e.width-i}},n:function(t,i,e){var s=this.originalSize;return{top:this.originalPosition.top+e,height:s.height-e}},s:function(t,i,e){return{height:this.originalSize.height+e}},se:function(i,e,s){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[i,e,s]))},sw:function(i,e,s){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[i,e,s]))},ne:function(i,e,s){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[i,e,s]))},nw:function(i,e,s){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[i,e,s]))}},_propagate:function(i,e){t.ui.plugin.call(this,i,[e,this.ui()]),"resize"!==i&&this._trigger(i,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(i){var e=t(this).resizable("instance"),s=e.options,h=e._proportionallyResizeElements,n=h.length&&/textarea/i.test(h[0].nodeName),o=n&&e._hasScroll(h[0],"left")?0:e.sizeDiff.height,a=n?0:e.sizeDiff.width,l={width:e.size.width-a,height:e.size.height-o},r=parseFloat(e.element.css("left"))+(e.position.left-e.originalPosition.left)||null,p=parseFloat(e.element.css("top"))+(e.position.top-e.originalPosition.top)||null;e.element.animate(t.extend(l,p&&r?{top:p,left:r}:{}),{duration:s.animateDuration,easing:s.animateEasing,step:function(){var s={width:parseFloat(e.element.css("width")),height:parseFloat(e.element.css("height")),top:parseFloat(e.element.css("top")),left:parseFloat(e.element.css("left"))};h&&h.length&&t(h[0]).css({width:s.width,height:s.height}),e._updateCache(s),e._propagate("resize",i)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var i,e,s,h,n,o,a,l=t(this).resizable("instance"),r=l.options,p=l.element,d=r.containment,g=d instanceof t?d.get(0):/parent/.test(d)?p.parent().get(0):d;g&&(l.containerElement=t(g),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(i=t(g),e=[],t(["Top","Right","Left","Bottom"]).each((function(t,s){e[t]=l._num(i.css("padding"+s))})),l.containerOffset=i.offset(),l.containerPosition=i.position(),l.containerSize={height:i.innerHeight()-e[3],width:i.innerWidth()-e[1]},s=l.containerOffset,h=l.containerSize.height,n=l.containerSize.width,o=l._hasScroll(g,"left")?g.scrollWidth:n,a=l._hasScroll(g)?g.scrollHeight:h,l.parentData={element:g,left:s.left,top:s.top,width:o,height:a}))},resize:function(i){var e,s,h,n,o=t(this).resizable("instance"),a=o.options,l=o.containerOffset,r=o.position,p=o._aspectRatio||i.shiftKey,d={top:0,left:0},g=o.containerElement,u=!0;g[0]!==document&&/static/.test(g.css("position"))&&(d=l),r.left<(o._helper?l.left:0)&&(o.size.width=o.size.width+(o._helper?o.position.left-l.left:o.position.left-d.left),p&&(o.size.height=o.size.width/o.aspectRatio,u=!1),o.position.left=a.helper?l.left:0),r.top<(o._helper?l.top:0)&&(o.size.height=o.size.height+(o._helper?o.position.top-l.top:o.position.top),p&&(o.size.width=o.size.height*o.aspectRatio,u=!1),o.position.top=o._helper?l.top:0),h=o.containerElement.get(0)===o.element.parent().get(0),n=/relative|absolute/.test(o.containerElement.css("position")),h&&n?(o.offset.left=o.parentData.left+o.position.left,o.offset.top=o.parentData.top+o.position.top):(o.offset.left=o.element.offset().left,o.offset.top=o.element.offset().top),e=Math.abs(o.sizeDiff.width+(o._helper?o.offset.left-d.left:o.offset.left-l.left)),s=Math.abs(o.sizeDiff.height+(o._helper?o.offset.top-d.top:o.offset.top-l.top)),e+o.size.width>=o.parentData.width&&(o.size.width=o.parentData.width-e,p&&(o.size.height=o.size.width/o.aspectRatio,u=!1)),s+o.size.height>=o.parentData.height&&(o.size.height=o.parentData.height-s,p&&(o.size.width=o.size.height*o.aspectRatio,u=!1)),u||(o.position.left=o.prevPosition.left,o.position.top=o.prevPosition.top,o.size.width=o.prevSize.width,o.size.height=o.prevSize.height)},stop:function(){var i=t(this).resizable("instance"),e=i.options,s=i.containerOffset,h=i.containerPosition,n=i.containerElement,o=t(i.helper),a=o.offset(),l=o.outerWidth()-i.sizeDiff.width,r=o.outerHeight()-i.sizeDiff.height;i._helper&&!e.animate&&/relative/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r}),i._helper&&!e.animate&&/static/.test(n.css("position"))&&t(this).css({left:a.left-h.left-s.left,width:l,height:r})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var i=t(this).resizable("instance").options;t(i.alsoResize).each((function(){var i=t(this);i.data("ui-resizable-alsoresize",{width:parseFloat(i.width()),height:parseFloat(i.height()),left:parseFloat(i.css("left")),top:parseFloat(i.css("top"))})}))},resize:function(i,e){var s=t(this).resizable("instance"),h=s.options,n=s.originalSize,o=s.originalPosition,a={height:s.size.height-n.height||0,width:s.size.width-n.width||0,top:s.position.top-o.top||0,left
255:s.position.left-o.left||0};t(h.alsoResize).each((function(){var i=t(this),s=t(this).data("ui-resizable-alsoresize"),h={},n=i.parents(e.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(n,(function(t,i){var e=(s[i]||0)+(a[i]||0);e&&e>=0&&(h[i]=e||null)})),i.css(h)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var i=t(this).resizable("instance"),e=i.size;i.ghost=i.originalElement.clone(),i.ghost.css({opacity:.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}),i._addClass(i.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof i.options.ghost&&i.ghost.addClass(this.options.ghost),i.ghost.appendTo(i.helper)},resize:function(){var i=t(this).resizable("instance");i.ghost&&i.ghost.css({position:"relative",height:i.size.height,width:i.size.width})},stop:function(){var i=t(this).resizable("instance");i.ghost&&i.helper&&i.helper.get(0).removeChild(i.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var i,e=t(this).resizable("instance"),s=e.options,h=e.size,n=e.originalSize,o=e.originalPosition,a=e.axis,l="number"==typeof s.grid?[s.grid,s.grid]:s.grid,r=l[0]||1,p=l[1]||1,d=Math.round((h.width-n.width)/r)*r,g=Math.round((h.height-n.height)/p)*p,u=n.width+d,c=n.height+g,f=s.maxWidth&&s.maxWidth<u,m=s.maxHeight&&s.maxHeight<c,z=s.minWidth&&s.minWidth>u,w=s.minHeight&&s.minHeight>c;s.grid=l,z&&(u+=r),w&&(c+=p),f&&(u-=r),m&&(c-=p),/^(se|s|e)$/.test(a)?(e.size.width=u,e.size.height=c):/^(ne)$/.test(a)?(e.size.width=u,e.size.height=c,e.position.top=o.top-g):/^(sw)$/.test(a)?(e.size.width=u,e.size.height=c,e.position.left=o.left-d):((c-p<=0||u-r<=0)&&(i=e._getPaddingPlusBorderDimensions(this)),c-p>0?(e.size.height=c,e.position.top=o.top-g):(c=p-i.height,e.size.height=c,e.position.top=o.top+n.height-c),u-r>0?(e.size.width=u,e.position.left=o.left-d):(u=r-i.width,e.size.width=u,e.position.left=o.left+n.width-u))}}),t.ui.resizable})); 256 257/* @license MIT https://raw.githubusercontent.com/focus-trap/tabbable/v6.3.0/LICENSE */ 258/*! 259* tabbable 6.3.0 260* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE 261*/ 262!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):(t="undefined"!=typeof globalThis?globalThis:t||self,function(){var n=t.tabbable,o=t.tabbable={};e(o),o.noConflict=function(){return t.tabbable=n,o}}())}(this,(function(t){"use strict";var e=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],n=e.join(","),o="undefined"==typeof Element,r=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,i=!o&&Element.prototype.getRootNode?function(t){var e;return null==t||null===(e=t.getRootNode)||void 0===e?void 0:e.call(t)}:function(t){return null==t?void 0:t.ownerDocument},a=function(t,e){var n;void 0===e&&(e=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||e&&t&&a(t.parentNode)},l=function(t,e,o){if(a(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(n));return e&&r.call(t,n)&&i.unshift(t),i=i.filter(o)},u=function(t,e,o){for(var i=[],l=Array.from(t);l.length;){var c=l.shift();if(!a(c,!1))if("SLOT"===c.tagName){var d=c.assignedElements(),f=d.length?d:c.children,s=u(f,!0,o);o.flatten?i.push.apply(i,s):i.push({scopeParent:c,candidates:s})}else{r.call(c,n)&&o.filter(c)&&(e||!t.includes(c))&&i.push(c);var p=c.shadowRoot||"function"==typeof o.getShadowRoot&&o.getShadowRoot(c),h=!a(p,!1)&&(!o.shadowRootFilter||o.shadowRootFilter(c));if(p&&h){var v=u(!0===p?c.children:p.children,!0,o);o.flatten?i.push.apply(i,v):i.push({scopeParent:c,candidates:v})}else l.unshift.apply(l,c.children)}}return i},c=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},d=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||function(t){var e,n=null==t||null===(e=t.getAttribute)||void 0===e?void 0:e.call(t,"contenteditable");return""===n||"true"===n}(t))&&!c(t)?0:t.tabIndex},f=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},s=function(t){return"INPUT"===t.tagName},p=function(t){return function(t){return s(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,n=t.form||i(t),o=function(t){return n.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=o(window.CSS.escape(t.name));else try{e=o(t.name)}catch(t){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",t.message),!1}var r=function(t,e){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===e)return t[n]}(e,t.form);return!r||r===t}(t)},h=function(t){var e=t.getBoundingClientRect(),n=e.width,o=e.height;return 0===n&&0===o},v=function(t,e){var n=e.displayCheck,o=e.getShadowRoot;if("full-native"===n&&"checkVisibility"in t)return!t.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});if("hidden"===getComputedStyle(t).visibility)return!0;var a=r.call(t,"details>summary:first-of-type")?t.parentElement:t;if(r.call(a,"details:not([open]) *"))return!0;
262if(n&&"full"!==n&&"full-native"!==n&&"legacy-full"!==n){if("non-zero-area"===n)return h(t)}else{if("function"==typeof o){for(var l=t;t;){var u=t.parentElement,c=i(t);if(u&&!u.shadowRoot&&!0===o(u))return h(t);t=t.assignedSlot?t.assignedSlot:u||c===t.ownerDocument?u:c.host}t=l}if(function(t){var e,n,o,r,a=t&&i(t),l=null===(e=a)||void 0===e?void 0:e.host,u=!1;if(a&&a!==t)for(u=!!(null!==(n=l)&&void 0!==n&&null!==(o=n.ownerDocument)&&void 0!==o&&o.contains(l)||null!=t&&null!==(r=t.ownerDocument)&&void 0!==r&&r.contains(t));!u&&l;){var c,d,f;u=!(null===(d=l=null===(c=a=i(l))||void 0===c?void 0:c.host)||void 0===d||null===(f=d.ownerDocument)||void 0===f||!f.contains(l))}return u}(t))return!t.getClientRects().length;if("legacy-full"!==n)return!0}return!1},b=function(t,e){return!(e.disabled||a(e)||function(t){return s(t)&&"hidden"===t.type}(e)||v(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var n=0;n<e.children.length;n++){var o=e.children.item(n);if("LEGEND"===o.tagName)return!!r.call(e,"fieldset[disabled] *")||!o.contains(t)}return!0}e=e.parentElement}return!1}(e))},y=function(t,e){return!(p(e)||d(e)<0||!b(t,e))},m=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},g=function(t){var e=[],n=[];return t.forEach((function(t,o){var r=!!t.scopeParent,i=r?t.scopeParent:t,a=function(t,e){var n=d(t);return n<0&&e&&!c(t)?0:n}(i,r),l=r?g(t.candidates):i;0===a?r?e.push.apply(e,l):e.push(i):n.push({documentOrder:o,tabIndex:a,item:t,isScope:r,content:l})})),n.sort(f).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(e)},w=e.concat("iframe").join(",");t.focusable=function(t,e){return(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:b.bind(null,e),flatten:!0,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e))},t.getTabIndex=d,t.isFocusable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,w)&&b(e,t)},t.isTabbable=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==r.call(t,n)&&y(e,t)},t.tabbable=function(t,e){var n;return n=(e=e||{}).getShadowRoot?u([t],e.includeContainer,{filter:y.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:m}):l(t,e.includeContainer,y.bind(null,e)),g(n)}})); 263 264; 265/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 266/** 267 * tua-body-scroll-lock v1.6.0 268 * (c) 2025 Evinma, BuptStEve 269 * @license MIT 270 */ 271!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bodyScrollLock={})}(this,(function(e){"use strict";var t=function(){return"undefined"==typeof window},n=function(e){e=e||navigator.userAgent;var t=/(iPad).*OS\s([\d_]+)/.test(e);return{ios:!t&&/(iPhone\sOS)\s([\d_]+)/.test(e)||t,android:/(Android);?[\s/]+([\d.]+)?/.test(e)}};function o(e){if(t())return!1;if(!e)throw new Error("options must be provided");var n=!1,o={get passive(){n=!0}},i=function(){},l="__TUA_BSL_TEST_PASSIVE__";window.addEventListener(l,i,o),window.removeEventListener(l,i,o);var c=e.capture;return n?e:void 0!==c&&c}function i(){return"__BSL_PREVENT_DEFAULT__"in window||(window.__BSL_PREVENT_DEFAULT__=function(e){e.cancelable&&e.preventDefault()}),window.__BSL_PREVENT_DEFAULT__}function l(e){return e?Array.isArray(e)?e:[e]:[]}var c={lockedNum:0,lockedElements:[],unLockCallback:null,documentListenerAdded:!1,initialClientPos:{clientX:0,clientY:0}};function r(e){if(t())return c;if(!(null==e?void 0:e.useGlobalLockState))return r.lockState;var n="__BSL_LOCK_STATE__"in window?Object.assign(Object.assign({},c),window.__BSL_LOCK_STATE__):c;return window.__BSL_LOCK_STATE__=n,n}function d(e){var t=document.documentElement,n=Object.assign({},t.style),o=(void 0,!0);if(t.style.overflow="hidden",t.style.boxSizing="border-box",o){var i=window.innerWidth-t.clientWidth,l=parseInt(window.getComputedStyle(t).paddingRight,10);t.style.paddingRight="".concat(i+l,"px")}return function(){["overflow","boxSizing","paddingRight"].forEach((function(e){t.style[e]=n[e]||""}))}}function s(e){e.documentListenerAdded&&(document.removeEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!1)}r.lockState=c,e.clearBodyLocks=function(e){var o;if(!t()){var i=r(e);
271if(i.lockedNum=0,null===(o=i.unLockCallback)||void 0===o||o.call(i),n().ios){if(i.lockedElements.length)for(var l=i.lockedElements.pop();l;)l.ontouchmove=null,l.ontouchstart=null,l=i.lockedElements.pop();s(i)}}},e.getLockState=r,e.lock=function(e,c){if(!t()){var s=n(),u=r(c);s.ios?(l(e).filter((function(e){return e&&-1===u.lockedElements.indexOf(e)})).forEach((function(e){e.ontouchstart=function(e){var t=e.targetTouches[0],n=t.clientX,o=t.clientY;u.initialClientPos={clientX:n,clientY:o}},e.ontouchmove=function(t){!function(e,t,n){if(t){var o=t.scrollTop,l=t.scrollLeft,c=t.scrollWidth,r=t.scrollHeight,d=t.clientWidth,s=t.clientHeight,u=e.targetTouches[0].clientX-n.clientX,a=e.targetTouches[0].clientY-n.clientY,f=Math.abs(a)>Math.abs(u);if(f&&(a>0&&0===o||a<0&&o+s+1>=r)||!f&&(u>0&&0===l||u<0&&l+d+1>=c))return i()(e)}e.stopPropagation()}(t,e,u.initialClientPos)},u.lockedElements.push(e)})),function(e){if(!n().ios)return;if(e.documentListenerAdded)return;document.addEventListener("touchmove",i(),o({passive:!1})),e.documentListenerAdded=!0}(u),(null==c?void 0:c.setOverflowForIOS)&&(u.unLockCallback=d())):u.lockedNum<=0&&(u.unLockCallback=s.android?function(e){var t=document.documentElement,n=document.body,o=t.scrollTop||n.scrollTop,i=Object.assign({},t.style),l=Object.assign({},n.style);return t.style.height="100%",t.style.overflow="hidden",n.style.top="-".concat(o,"px"),n.style.width="100%",n.style.height="auto",n.style.position="fixed",n.style.overflow=(null==e?void 0:e.overflowType)||"hidden",function(){t.style.height=i.height||"",t.style.overflow=i.overflow||"",["top","width","height","overflow","position"].forEach((function(e){n.style[e]=l[e]||""})),"scrollBehavior"in document.documentElement.style?window.scrollTo({top:o,behavior:"instant"}):window.scrollTo(0,o)}}(c):d()),u.lockedNum+=1}},e.unlock=function(e,o){var i;if(!t()){var c=r(o);c.lockedNum-=1,c.lockedNum>0||(null===(i=c.unLockCallback)||void 0===i||i.call(c),n().ios&&(l(e).forEach((function(e){var t=c.lockedElements.indexOf(e);e&&-1!==t&&(e.ontouchmove=null,e.ontouchstart=null,c.lockedElements.splice(t,1))})),s(c)))}}})); 272; 273/* @license MIT https://github.com/jquery-validation/jquery-validation/blob/master/LICENSE.md */ 274(function(factory){if(typeof define==="function"&&define.amd)define(["jquery"],factory);else if(typeof module==="object"&&module.exports)module.exports=factory(require("jquery"));else factory(jQuery);}(function($){$.extend($.fn,{validate:function(options){if(!this.length){if(options&&options.debug&&window.console)console.warn("Nothing selected, can't validate, returning nothing.");return;}var validator=$.data(this[0],"validator");if(validator)return validator;this.attr("novalidate","novalidate");validator=new $.validator(options,this[0]);$.data(this[0],"validator",validator);if(validator.settings.onsubmit){this.on("click.validate",":submit",function(event){validator.submitButton=event.currentTarget;if($(this).hasClass("cancel"))validator.cancelSubmit=true;if($(this).attr("formnovalidate")!==undefined)validator.cancelSubmit=true;});this.on("submit.validate",function(event){if(validator.settings.debug)event.preventDefault();function handle(){var hidden,result;if(validator.submitButton&&(validator.settings.submitHandler||validator.formSubmitted))hidden=$("<input type='hidden'/>").attr("name",validator.submitButton.name).val($(validator.submitButton).val()).appendTo(validator.currentForm);if(validator.settings.submitHandler&&!validator.settings.debug){result=validator.settings.submitHandler.call(validator,validator.currentForm,event);if(hidden)hidden.remove();if(result!==undefined)return result;return false;}return true;}if(validator.cancelSubmit){validator.cancelSubmit=false;return handle();}if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;return false;}return handle();}
274else{validator.focusInvalid();return false;}});}return validator;},valid:function(){var valid,validator,errorList;if($(this[0]).is("form"))valid=this.validate().form();else{errorList=[];valid=true;validator=$(this[0].form).validate();this.each(function(){valid=validator.element(this)&&valid;if(!valid)errorList=errorList.concat(validator.errorList);});validator.errorList=errorList;}return valid;},rules:function(command,argument){var element=this[0],isContentEditable=typeof this.attr("contenteditable")!=="undefined"&&this.attr("contenteditable")!=="false",settings,staticRules,existingRules,data,param,filtered;if(element==null)return;if(!element.form&&isContentEditable){element.form=this.closest("form")[0];element.name=this.attr("name");}if(element.form==null)return;if(command){settings=$.data(element.form,"validator").settings;staticRules=settings.rules;existingRules=$.validator.staticRules(element);switch(command){case "add":$.extend(existingRules,$.validator.normalizeRule(argument));delete existingRules.messages;staticRules[element.name]=existingRules;if(argument.messages)settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);break;case "remove":if(!argument){delete staticRules[element.name];return existingRules;}filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method];});return filtered;}}data=$.validator.normalizeRules($.extend({},$.validator.classRules(element),$.validator.attributeRules(element),$.validator.dataRules(element),$.validator.staticRules(element)),element);if(data.required){param=data.required;delete data.required;data=$.extend({required:param},data);}if(data.remote){param=data.remote;delete data.remote;data=$.extend(data,{remote:param});}return data;}});var trim=function(str){return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};$.extend($.expr.pseudos||$.expr[":"],{blank:function(a){return !trim(""+$(a).val());},filled:function(a){var val=$(a).val();return val!==null&&!!trim(""+val);},unchecked:function(a){return !$(a).prop("checked");}});$.validator=function(options,form){this.settings=$.extend(true,{},$.validator.defaults,options);this.currentForm=form;this.init();};$.validator.format=function(source,params){if(arguments.length===1)return function(){var args=$.makeArray(arguments);args.unshift(source);return $.validator.format.apply(this,args);};if(params===undefined)return source;if(arguments.length>2&¶ms.constructor!==Array)params=$.makeArray(arguments).slice(1);if(params.constructor!==Array)params=[params];$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),function(){return n;});});return source;};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:false,focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:":hidden",ignoreTitle:false,customElements:[],onfocusin:function(element){this.lastActive=element;if(this.settings.focusCleanup){if(this.settings.unhighlight)this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass);this.hideThese(this.errorsFor(element));}},onfocusout:function(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element)))this.element(element);},onkeyup:function(element,event){var excludedKeys=[16,17,18,20,35,36,37,38,39,40,45,144,225];if(event.which===9&&this.elementValue(element)===""||$.inArray(event.keyCode,excludedKeys)!==-1)return;else{if(element.name in this.submitted||element.name in this.invalid)this.element(element);}},onclick:function(element){if(element.name in this.submitted)this.element(element);else{if(element.parentNode.name in this.submitted)this.element(element.parentNode);}},highlight:function(element,errorClass,validClass){if(element.type==="radio")this.findByName(element.name).addClass(errorClass).removeClass(validClass);else $(element).addClass(errorClass).removeClass(validClass);},unhighlight:function(element,errorClass,validClass){if(element.type==="radio")this.findByName(element.name).removeClass(errorClass).addClass(validClass);else $(element).removeClass(errorClass).addClass(validClass);}},setDefaults:function(settings){$.extend($.validator.defaults,settings);},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}."),step:$.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var currentForm=this.currentForm,groups=(this.groups={}),rules;$.each(this.settings.groups,function(key,value){if(typeof value==="string")value=value.split(/\s/);$.each(value,function(index,name){groups[name]=key;});});rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value);});function delegate(event){var isContentEditable=typeof $(this).attr("contenteditable")!=="undefined"&&$(this).attr("contenteditable")!=="false";if(!this.form&&isContentEditable){this.form=$(this).closest("form")[0];this.name=$(this).attr("name");}if(currentForm!==this.form)return;var validator=$.data(this.form,"validator"),eventType="on"+event.type.replace(/^validate/,""),settings=validator.settings;if(settings[eventType]&&!$(this).is(settings.ignore))settings[eventType].call(validator,this,event);}var focusListeners=[":text","[type='password']","[type='file']","select","textarea","[type='number']","[type='search']","[type='tel']","[type='url']","[type='email']","[type='datetime']","[type='date']","[type='month']","[type='week']","[type='time']","[type='datetime-local']","[type='range']","[type='color']","[type='radio']","[type='checkbox']","[contenteditable]","[type='button']"];var clickListeners=["select","option","[type='radio']","[type='checkbox']"];$(this.currentForm).on("focusin.validate focusout.validate keyup.validate",focusListeners.concat(this.settings.customElements).join(", "),delegate).on("click.validate",clickListeners.concat(this.settings.customElements).join(", "),delegate);if(this.settings.invalidHandler)$(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler);},form:function(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid())$(this.currentForm).triggerHandler("invalid-form",[this]);this.showErrors();return this.valid();},checkForm:function(){this.prepareForm();for(var i=0,elements=(this.currentElements=this.elements());elements[i];i++)this.check(elements[i]);return this.valid();},element:function(element){var cleanElement=this.clean(element),checkElement=this.validationTargetFor(cleanElement),v=this,result=true,rs,group;if(checkElement===undefined)delete this.invalid[cleanElement.name];else{this.prepareElement(checkElement);this.currentElements=$(checkElement);group=this.groups[checkElement.name];if(group)$.each(this.groups,function(name,testgroup){if(testgroup===group&&name!==checkElement.name){cleanElement=v.validationTargetFor(v.clean(v.findByName(name)));
274if(cleanElement&&cleanElement.name in v.invalid){v.currentElements.push(cleanElement);result=v.check(cleanElement)&&result;}}});rs=this.check(checkElement)!==false;result=result&&rs;if(rs)this.invalid[checkElement.name]=false;else this.invalid[checkElement.name]=true;if(!this.numberOfInvalids())this.toHide=this.toHide.add(this.containers);this.showErrors();$(element).attr("aria-invalid",!rs);}return result;},showErrors:function(errors){if(errors){var validator=this;$.extend(this.errorMap,errors);this.errorList=$.map(this.errorMap,function(message,name){return {message,element:validator.findByName(name)[0]};});this.successList=$.grep(this.successList,function(element){return !(element.name in errors);});}if(this.settings.showErrors)this.settings.showErrors.call(this,this.errorMap,this.errorList);else this.defaultShowErrors();},resetForm:function(){if($.fn.resetForm)$(this.currentForm).resetForm();this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var elements=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(elements);},resetElements:function(elements){var i;if(this.settings.unhighlight)for(i=0;elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,"");this.findByName(elements[i].name).removeClass(this.settings.validClass);}else elements.removeClass(this.settings.errorClass).removeClass(this.settings.validClass);},numberOfInvalids:function(){return this.objectLength(this.invalid);},objectLength:function(obj){var count=0,i;for(i in obj)if(obj[i]!==undefined&&obj[i]!==null&&obj[i]!==false)count++;return count;},hideErrors:function(){this.hideThese(this.toHide);},hideThese:function(errors){errors.not(this.containers).text("");this.addWrapper(errors).hide();},valid:function(){return this.size()===0;},size:function(){return this.errorList.length;},focusInvalid:function(){if(this.settings.focusInvalid)try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin");}catch(e){}},findLastActive:function(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name===lastActive.name;}).length===1&&lastActive;},elements:function(){var validator=this,rulesCache={},selectors=["input","select","textarea","[contenteditable]"];return $(this.currentForm).find(selectors.concat(this.settings.customElements).join(", ")).not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var name=this.name||$(this).attr("name");var isContentEditable=typeof $(this).attr("contenteditable")!=="undefined"&&$(this).attr("contenteditable")!=="false";if(!name&&validator.settings.debug&&window.console)console.error("%o has no name assigned",this);if(isContentEditable){this.form=$(this).closest("form")[0];this.name=name;}if(this.form!==validator.currentForm)return false;if(name in rulesCache||!validator.objectLength($(this).rules()))return false;rulesCache[name]=true;return true;});},clean:function(selector){return $(selector)[0];},errors:function(){var errorClass=this.settings.errorClass.split(" ").join(".");return $(this.settings.errorElement+"."+errorClass,this.errorContext);},resetInternals:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([]);},reset:function(){this.resetInternals();this.currentElements=$([]);},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers);},prepareElement:function(element){this.reset();this.toHide=this.errorsFor(element);},elementValue:function(element){var $element=$(element),type=element.type,isContentEditable=typeof $element.attr("contenteditable")!=="undefined"&&$element.attr("contenteditable")!=="false",val,idx;if(type==="radio"||type==="checkbox")return this.findByName(element.name).filter(":checked").val();else{if(type==="number"&&typeof element.validity!=="undefined")return element.validity.badInput?"NaN":$element.val();}if(isContentEditable)val=$element.text();else val=$element.val();if(type==="file"){if(val.substr(0,12)==="C:\\fakepath\\")return val.substr(12);idx=val.lastIndexOf("/");if(idx>=0)return val.substr(idx+1);idx=val.lastIndexOf("\\");if(idx>=0)return val.substr(idx+1);return val;}if(typeof val==="string")return val.replace(/\r/g,"");return val;},check:function(element){element=this.validationTargetFor(this.clean(element));var rules=$(element).rules(),rulesCount=$.map(rules,function(n,i){return i;}).length,dependencyMismatch=false,val=this.elementValue(element),result,method,rule,normalizer;
274this.abortRequest(element);if(typeof rules.normalizer==="function")normalizer=rules.normalizer;else{if(typeof this.settings.normalizer==="function")normalizer=this.settings.normalizer;}if(normalizer){val=normalizer.call(element,val);delete rules.normalizer;}for(method in rules){rule={method,parameters:rules[method]};try{result=$.validator.methods[method].call(this,val,element,rule.parameters);if(result==="dependency-mismatch"&&rulesCount===1){dependencyMismatch=true;continue;}dependencyMismatch=false;if(result==="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return;}if(!result){this.formatAndAdd(element,rule);return false;}}catch(e){if(this.settings.debug&&window.console)console.log("Exception occurred when checking element "+element.id+", check the '"+rule.method+"' method.",e);if(e instanceof TypeError)e.message+=". Exception occurred when checking element "+element.id+", check the '"+rule.method+"' method.";throw e;}}if(dependencyMismatch)return;if(this.objectLength(rules))this.successList.push(element);return true;},customDataMessage:function(element,method){return $(element).data("msg"+method.charAt(0).toUpperCase()+method.substring(1).toLowerCase())||$(element).data("msg");},customMessage:function(name,method){var m=this.settings.messages[name];return m&&(m.constructor===String?m:m[method]);},findDefined:function(){for(var i=0;i<arguments.length;i++)if(arguments[i]!==undefined)return arguments[i];return undefined;},defaultMessage:function(element,rule){if(typeof rule==="string")rule={method:rule};var message=this.findDefined(this.customMessage(element.name,rule.method),this.customDataMessage(element,rule.method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[rule.method],"<strong>Warning: No message defined for "+element.name+"</strong>"),theregex=/\$?\{(\d+)\}/g;if(typeof message==="function")message=message.call(this,rule.parameters,element);else{if(theregex.test(message))message=$.validator.format(message.replace(theregex,"{$1}"),rule.parameters);}return message;},formatAndAdd:function(element,rule){var message=this.defaultMessage(element,rule);this.errorList.push({message,element,method:rule.method});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function(toToggle){if(this.settings.wrapper)toToggle=toToggle.add(toToggle.parent(this.settings.wrapper));return toToggle;},defaultShowErrors:function(){var i,elements,error;for(i=0;this.errorList[i];i++){error=this.errorList[i];if(this.settings.highlight)this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);this.showLabel(error.element,error.message);}if(this.errorList.length)this.toShow=this.toShow.add(this.containers);if(this.settings.success)for(i=0;this.successList[i];i++)this.showLabel(this.successList[i]);if(this.settings.unhighlight)for(i=0,elements=this.validElements();elements[i];i++)this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},validElements:function(){return this.currentElements.not(this.invalidElements());},invalidElements:function(){return $(this.errorList).map(function(){return this.element;});},showLabel:function(element,message){var place,group,errorID,v,error=this.errorsFor(element),elementID=this.idOrName(element),describedBy=$(element).attr("aria-describedby");if(error.length){error.removeClass(this.settings.validClass).addClass(this.settings.errorClass);if(this.settings&&this.settings.escapeHtml)error.text(message||"");else error.html(message||"");}else{error=$("<"+this.settings.errorElement+">").attr("id",elementID+"-error").addClass(this.settings.errorClass);if(this.settings&&this.settings.escapeHtml)error.text(message||"");else error.html(message||"");place=error;if(this.settings.wrapper)place=error.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();if(this.labelContainer.length)this.labelContainer.append(place);else if(this.settings.errorPlacement)this.settings.errorPlacement.call(this,place,$(element));else place.insertAfter(element);if(error.is("label"))error.attr("for",elementID);else{if(error.parents("label[for='"+this.escapeCssMeta(elementID)+"']").length===0){errorID=error.attr("id");if(!describedBy)describedBy=errorID;else{if(!describedBy.match(new RegExp("\\b"+this.escapeCssMeta(errorID)+"\\b")))describedBy+=" "+errorID;}$(element).attr("aria-describedby",describedBy);group=this.groups[element.name];if(group){v=this;$.each(v.groups,function(name,testgroup){if(testgroup===group)$("[name='"+v.escapeCssMeta(name)+"']",v.currentForm).attr("aria-describedby",error.attr("id"));});}}}}if(!message&&this.settings.success){error.text("");
274if(typeof this.settings.success==="string")error.addClass(this.settings.success);else this.settings.success(error,element);}this.toShow=this.toShow.add(error);},errorsFor:function(element){var name=this.escapeCssMeta(this.idOrName(element)),describer=$(element).attr("aria-describedby"),selector="label[for='"+name+"'], label[for='"+name+"'] *";if(describer)selector=selector+", #"+this.escapeCssMeta(describer).replace(/\s+/g,", #");return this.errors().filter(selector);},escapeCssMeta:function(string){if(string===undefined)return "";return string.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1");},idOrName:function(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name);},validationTargetFor:function(element){if(this.checkable(element))element=this.findByName(element.name);return $(element).not(this.settings.ignore)[0];},checkable:function(element){return (/radio|checkbox/i).test(element.type);},findByName:function(name){return $(this.currentForm).find("[name='"+this.escapeCssMeta(name)+"']");},getLength:function(value,element){switch(element.nodeName.toLowerCase()){case "select":return $("option:selected",element).length;case "input":if(this.checkable(element))return this.findByName(element.name).filter(":checked").length;}return value.length;},depend:function(param,element){return this.dependTypes[typeof param]?this.dependTypes[typeof param](param,element):true;},dependTypes:{"boolean":function(param){return param;},"string":function(param,element){return !!$(param,element.form).length;},"function":function(param,element){return param(element);}},optional:function(element){var val=this.elementValue(element);return !$.validator.methods.required.call(this,val,element)&&"dependency-mismatch";},elementAjaxPort:function(element){return "validate"+element.name;},startRequest:function(element){if(!this.pending[element.name]){this.pendingRequest++;$(element).addClass(this.settings.pendingClass);this.pending[element.name]=true;}},stopRequest:function(element,valid){this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];$(element).removeClass(this.settings.pendingClass);if(valid&&this.pendingRequest===0&&this.formSubmitted&&this.form()&&this.pendingRequest===0){$(this.currentForm).trigger("submit");if(this.submitButton)$("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove();this.formSubmitted=false;}else{if(!valid&&this.pendingRequest===0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false;}}},abortRequest:function(element){var port;if(this.pending[element.name]){port=this.elementAjaxPort(element);$.ajaxAbort(port);this.pendingRequest--;if(this.pendingRequest<0)this.pendingRequest=0;delete this.pending[element.name];$(element).removeClass(this.settings.pendingClass);}},previousValue:function(element,method){method=typeof method==="str
274ing"&&method||"remote";return $.data(element,"previousValue")||$.data(element,"previousValue",{old:null,valid:true,message:this.defaultMessage(element,{method})});},destroy:function(){this.resetForm();$(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur");}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},number:{number:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(className,rules){if(className.constructor===String)this.classRuleSettings[className]=rules;else $.extend(this.classRuleSettings,className);},classRules:function(element){var rules={},classes=$(element).attr("class");if(classes)$.each(classes.split(" "),function(){if(this in $.validator.classRuleSettings)$.extend(rules,$.validator.classRuleSettings[this]);});return rules;},normalizeAttributeRule:function(rules,type,method,value){if(/min|max|step/.test(method)&&(type===null||/number|range|text/.test(type))){value=Number(value);if(isNaN(value))value=undefined;}if(value||value===0)rules[method]=value;else{if(type===method&&type!=="range")rules[type==="date"?"dateISO":method]=true;}},attributeRules:function(element){var rules={},$element=$(element),type=element.getAttribute("type"),method,value;for(method in $.validator.methods){if(method==="required"){value=element.getAttribute(method);if(value==="")value=true;value=!!value;}else value=$element.attr(method);this.normalizeAttributeRule(rules,type,method,value);}if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength))delete rules.maxlength;return rules;},dataRules:function(element){var rules={},$element=$(element),type=element.getAttribute("type"),method,value;for(method in $.validator.methods){value=$element.data("rule"+method.charAt(0).toUpperCase()+method.substring(1).toLowerCase());if(value==="")value=true;this.normalizeAttributeRule(rules,type,method,value);}return rules;},staticRules:function(element){var rules={},validator=$.data(element.form,"validator");if(validator.settings.rules)rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{};return rules;},normalizeRules:function(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];return;}if(val.param||val.depends){var keepRule=true;switch(typeof val.depends){case "string":keepRule=!!$(val.depends,element.form).length;break;case "function":keepRule=val.depends.call(element,element);break;}if(keepRule)rules[prop]=val.param!==undefined?val.param:true;else{$.data(element.form,"validator").resetElements($(element));delete rules[prop];}}});$.each(rules,function(rule,parameter){rules[rule]=typeof parameter==="function"&&rule!=="normalizer"?parameter(element):parameter;});$.each(["minlength","maxlength"],function(){if(rules[this])rules[this]=Number(rules[this]);});$.each(["rangelength","range"],function(){var parts;if(rules[this])if(Array.isArray(rules[this]))rules[this]=[Number(rules[this][0]),Number(rules[this][1])];else{if(typeof rules[this]==="string"){parts=rules[this].replace(/[\[\]]/g,"").split(/[\s,]+/);rules[this]=[Number(parts[0]),Number(parts[1])];}}});if($.validator.autoCreateRanges){if(rules.min!=null&&rules.max!=null){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max;}if(rules.minlength!=null&&rules.maxlength!=null){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength;}}return rules;},normalizeRule:function(data){if(typeof data==="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=true;});data=transformed;}return data;},addMethod:function(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message!==undefined?message:$.validator.messages[name];if(method.length<3)$.validator.addClassRules(name,$.validator.normalizeRule(name));},methods:{required:function(value,element,param){if(!this.depend(param,element))return "dependency-mismatch";if(element.nodeName.toLowerCase()==="select"){var val=$(element).val();return val&&val.length>0;}if(this.checkable(element))return this.getLength(value,element)>0;return value!==undefined&&value!==null&&value.length>0;},email:function(value,element){return this.optional(element)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(value);},url:function(value,element){return this.optional(element)||/^(?:(?:(?
274:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(value);},date:(function(){var called=false;return function(value,element){if(!called){called=true;if(this.settings.debug&&window.console)console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\n"+"Please don't use it, since it relies on the Date constructor, which\n"+"behaves very differently across browsers and locales. Use `dateISO`\n"+"instead or one of the locale specific methods in `localizations/`\n"+"and `additional-methods.js`.");}return this.optional(element)||!/Invalid|NaN/.test(new Date(value).toString());};}()),dateISO:function(value,element){return this.optional(element)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);},number:function(value,element){return this.optional(element)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:-?\.\d+)?$/.test(value);},digits:function(value,element){return this.optional(element)||/^\d+$/.test(value);},minlength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length>=param;},maxlength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length<=param;},rangelength:function(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||(length>=param[0]&&length<=param[1]);},min:function(value,element,param){return this.optional(element)||value>=param;},max:function(value,element,param){return this.optional(element)||value<=param;},range:function(value,element,param){return this.optional(element)||(value>=param[0]&&value<=param[1]);},step:function(value,element,param){var type=$(element).attr("type"),errorMessage="Step attribute on input type "+type+" is not supported.",supportedTypes=["text","number","range"],re=new RegExp("\\b"+type+"\\b"),notSupported=type&&!re.test(supportedTypes.join()),decimalPlaces=function(num){var match=(""+num).match(/(?:\.(\d+))?$/);if(!match)return 0;return match[1]?match[1].length:0;},toInt=function(num){return Math.round(num*Math.pow(10,decimals));},valid=true,decimals;if(notSupported)throw new Error(errorMessage);decimals=decimalPlaces(param);if(decimalPlaces(value)>decimals||toInt(value)%toInt(param)!==0)valid=false;return this.optional(element)||valid;},equalTo:function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-equalTo-blur").length)target.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){$(element).valid();});return value===target.val();},remote:function(value,element,param,method){if(this.optional(element))return "dependency-mismatch";
274method=typeof method==="string"&&method||"remote";var previous=this.previousValue(element,method),validator,data,optionDataString;if(!this.settings.messages[element.name])this.settings.messages[element.name]={};previous.originalMessage=previous.originalMessage||this.settings.messages[element.name][method];this.settings.messages[element.name][method]=previous.message;param=typeof param==="string"&&{url:param}||param;optionDataString=$.param($.extend({data:value},param.data));if(previous.valid!==null&&previous.old===optionDataString)return previous.valid;previous.old=optionDataString;previous.valid=null;validator=this;this.startRequest(element);data={};data[element.name]=value;$.ajax($.extend(true,{mode:"abort",port:this.elementAjaxPort(element),dataType:"json",data,context:validator.currentForm,success:function(response){var valid=response===true||response==="true",errors,message,submitted;validator.settings.messages[element.name][method]=previous.originalMessage;if(valid){submitted=validator.formSubmitted;validator.toHide=validator.errorsFor(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.invalid[element.name]=false;validator.showErrors();}else{errors={};message=response||validator.defaultMessage(element,{method,parameters:value});errors[element.name]=previous.message=message;validator.invalid[element.name]=true;validator.showErrors(errors);}previous.valid=valid;validator.stopRequest(element,valid);}},param));return "pending";}}});var pendingRequests={},ajax;if($.ajaxPrefilter)$.ajaxPrefilter(function(settings,_,xhr){var port=settings.port;if(settings.mode==="abort"){$.ajaxAbort(port);pendingRequests[port]=xhr;}});else{ajax=$.ajax;$.ajax=function(settings){var mode=("mode" in settings?settings:$.ajaxSettings).mode,port=("port" in settings?settings:$.ajaxSettings).port;if(mode==="abort"){$.ajaxAbort(port);pendingRequests[port]=ajax.apply(this,arguments);return pendingRequests[port];}return ajax.apply(this,arguments);};}$.ajaxAbort=function(port){if(pendingRequests[port]){pendingRequests[port].abort();delete pendingRequests[port];}};return $;}));; 275(function(factory){if(typeof define==="function"&&define.amd)define(["jquery","./jquery.validate"],factory);else if(typeof module==="object"&&module.exports)module.exports=factory(require("jquery"));else factory(jQuery);}(function($){(function(){function stripHtml(value){return value.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-âââ]*/g,"");}$.validator.addMethod("maxWords",function(value,element,params){return this.optional(element)||stripHtml(value).match(/\b\w+\b/g).length<=params;},$.validator.format("Please enter {0} words or less."));$.validator.addMethod("minWords",function(value,element,params){return this.optional(element)||stripHtml(value).match(/\b\w+\b/g).length>=params;},$.validator.format("Please enter at least {0} words."));$.validator.addMethod("rangeWords",function(value,element,params){var valueStripped=stripHtml(value),regex=/\b\w+\b/g;return this.optional(element)||valueStripped.match(regex).length>=params[0]&&valueStripped.match(regex).length<=params[1];},$.validator.format("Please enter between {0} and {1} words."));}());$.validator.addMethod("abaRoutingNumber",function(value){var checksum=0;var tokens=value.split("");var length=tokens.length;if(length!==9)return false;for(var i=0;i<length;i+=3)checksum+=parseInt(tokens[i],10)*3+parseInt(tokens[i+1],10)*7+parseInt(tokens[i+2],10);if(checksum!==0&&checksum%10===0)return true;return false;},"Please enter a valid routing number.");$.validator.addMethod("accept",function(value,element,param){var typeParam=typeof param==="string"?param.replace(/\s/g,""):"image/*",optionalValue=this.optional(element),i,file,regex;if(optionalValue)return optionalValue;if($(element).attr("type")==="file"){typeParam=typeParam.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g,"\\$&").replace(/,/g,"|").replace(/\/\*/g,"/.*");if(element.files&&element.files.length){regex=new RegExp(".?("+typeParam+")$","i");for(i=0;i<element.files.length;i++){file=element.files[i];if(!file.type.match(regex))return false;}}}return true;},$.validator.format("Please enter a value with a valid mimetype."));$.validator.addMethod("alphanumeric",function(value,element){return this.optional(element)||/^\w+$/i.test(value);},"Letters, numbers, and underscores only please.");$.validator.addMethod("bankaccountNL",function(value,element){if(this.optional(element))return true;if(!(/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(value)))return false;var account=value.replace(/ /g,""),sum=0,len=account.length,pos,factor,digit;for(pos=0;pos<len;pos++){factor=len-pos;digit=account.substring(pos,pos+1);sum=sum+factor*digit;}return sum%11===0;},"Please specify a valid bank account number.");$.validator.addMethod("bankorgiroaccountNL",function(value,element){return this.optional(element)||($.validator.methods.bankaccountNL.call(this,value,element))||($.validator.methods.giroaccountNL.call(this,value,element));},"Please specify a valid bank or giro account number.");$.validator.addMethod("bic",function(value,element){return this.optional(element)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(value.toUpperCase());},"Please specify a valid BIC code.");$.validator.addMethod("cifES",function(value,element){"use strict";if(this.optional(element))return true;var cifRegEx=new RegExp(/^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/gi);var letter=value.substring(0,1),number=value.substring(1,8),control=value.substring(8,9),all_sum=0,even_sum=0,odd_sum=0,i,n,control_digit,control_letter;function isOdd(n){return n%2===0;}if(value.length!==9||!cifRegEx.test(value))return false;for(i=0;i<number.length;i++){n=parseInt(number[i],10);if(isOdd(i)){n*=2;odd_sum+=n<10?n:n-9;}else even_sum+=n;}all_sum=even_sum+odd_sum;
275control_digit=(10-(all_sum).toString().substr(-1)).toString();control_digit=parseInt(control_digit,10)>9?"0":control_digit;control_letter="JABCDEFGHI".substr(control_digit,1).toString();if(letter.match(/[ABEH]/))return control===control_digit;else{if(letter.match(/[KPQS]/))return control===control_letter;}return control===control_digit||control===control_letter;},"Please specify a valid CIF number.");$.validator.addMethod("cnhBR",function(value){value=value.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"");if(value.length!==11)return false;var sum=0,dsc=0,firstChar,firstCN,secondCN,i,j,v;firstChar=value.charAt(0);if(new Array(12).join(firstChar)===value)return false;for(i=0,j=9,v=0;i<9;++i,--j)sum+=+(value.charAt(i)*j);firstCN=sum%11;if(firstCN>=10){firstCN=0;dsc=2;}sum=0;for(i=0,j=1,v=0;i<9;++i,++j)sum+=+(value.charAt(i)*j);secondCN=sum%11;if(secondCN>=10)secondCN=0;else secondCN=secondCN-dsc;return (String(firstCN).concat(secondCN)===value.substr(-2));},"Please specify a valid CNH number.");$.validator.addMethod("cnpjBR",function(value,element){"use strict";if(this.optional(element))return true;value=value.replace(/[^\d]+/g,"");if(value.length!==14)return false;if(value==="00000000000000"||value==="11111111111111"||value==="22222222222222"||value==="33333333333333"||value==="44444444444444"||value==="55555555555555"||value==="66666666666666"||value==="77777777777777"||value==="88888888888888"||value==="99999999999999")return false;var tamanho=(value.length-2);var numeros=value.substring(0,tamanho);var digitos=value.substring(tamanho);var soma=0;var pos=tamanho-7;for(var i=tamanho;i>=1;i--){soma+=numeros.charAt(tamanho-i)*pos--;if(pos<2)pos=9;}var resultado=soma%11<2?0:11-soma%11;if(resultado!==parseInt(digitos.charAt(0),10))return false;tamanho=tamanho+1;numeros=value.substring(0,tamanho);soma=0;pos=tamanho-7;for(var il=tamanho;il>=1;il--){soma+=numeros.charAt(tamanho-il)*pos--;if(pos<2)pos=9;}resultado=soma%11<2?0:11-soma%11;if(resultado!==parseInt(digitos.charAt(1),10))return false;return true;},"Please specify a CNPJ value number.");$.validator.addMethod("cpfBR",function(value,element){"use strict";if(this.optional(element))return true;value=value.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"");if(value.length!==11)return false;var sum=0,firstCN,secondCN,checkResult,i;firstCN=parseInt(value.substring(9,10),10);secondCN=parseInt(value.substring(10,11),10);checkResult=function(sum,cn){var result=(sum*10)%11;if((result===10)||(result===11))result=0;return (result===cn);};if(value===""||value==="00000000000"||value==="11111111111"||value==="22222222222"||value==="33333333333"||value==="44444444444"||value==="55555555555"||value==="66666666666"||value==="77777777777"||value==="88888888888"||value==="99999999999")return false;for(i=1;i<=9;i++)sum=sum+parseInt(value.substring(i-1,i),10)*(11-i);if(checkResult(sum,firstCN)){sum=0;for(i=1;i<=10;i++)sum=sum+parseInt(value.substring(i-1,i),10)*(12-i);return checkResult(sum,secondCN);}return false;},"Please specify a valid CPF number.");$.validator.addMethod("creditcard",function(value,element){if(this.optional(element))return "dependency-mismatch";if(/[^0-9 \-]+/.test(value))return false;var nCheck=0,nDigit=0,bEven=false,n,cDigit;value=value.replace(/\D/g,"");if(value.length<13||value.length>19)return false;for(n=value.length-1;n>=0;n--){cDigit=value.charAt(n);nDigit=parseInt(cDigit,10);if(bEven)if((nDigit*=2)>9)nDigit-=9;nCheck+=nDigit;bEven=!bEven;}return (nCheck%10)===0;},"Please enter a valid credit card number.");$.validator.addMethod("creditcardtypes",function(value,element,param){if(/[^0-9\-]+/.test(value))return false;value=value.replace(/\D/g,"");var validTypes=0x0000;if(param.mastercard)validTypes|=0x0001;if(param.visa)validTypes|=0x0002;if(param.amex)validTypes|=0x0004;if(param.dinersclub)validTypes|=0x0008;if(param.enroute)validTypes|=0x0010;if(param.discover)validTypes|=0x0020;if(param.jcb)validTypes|=0x0040;if(param.unknown)validTypes|=0x0080;if(param.all)validTypes=0x0001|0x0002|0x0004|0x0008|0x0010|0x0020|0x0040|0x0080;if(validTypes&0x0001&&(/^(5[12345])/.test(value)||/^(2[234567])/.test(value)))return value.length===16;if(validTypes&0x0002&&/^(4)/.test(value))return value.length===16;if(validTypes&0x0004&&/^(3[47])/.test(value))return value.length===15;if(validTypes&0x0008&&/^(3(0[012345]|[68]))/.test(value))return value.length===14;if(validTypes&0x0010&&/^(2(014|149))/.test(value))return value.length===15;if(validTypes&0x0020&&/^(6011)/.test(value))return value.length===16;if(validTypes&0x0040&&/^(3)/.test(value))return value.length===16;if(validTypes&0x0040&&/^(2131|1800)/.test(value))return value.length===15;if(validTypes&0x0080)return true;return false;},"Please enter a valid credit card number.");$.validator.addMethod("currency",function(value,element,param){var isParamString=typeof param==="string",symbol=isParamString?param:param[0],soft=isParamString?true:param[1],regex;symbol=symbol.replace(/,/g,"");symbol=soft?symbol+"]":symbol+"]?";regex="^["+symbol+"([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$";regex=new RegExp(regex);return this.optional(element)||regex.test(value);},"Please specify a valid currency.");$.validator.addMethod("dateFA",function(value,element){return this.optional(element)||/^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(value);},$.validator.messages.date);$.validator.addMethod("dateITA",function(value,element){var check=false,re=/^\d{1,2}\/\d{1,2}\/\d{4}$/,adata,gg,mm,aaaa,xdata;if(re.test(value)){adata=value.split("/");gg=parseInt(adata[0],10);mm=parseInt(adata[1],10);aaaa=parseInt(adata[2],10);xdata=new Date(Date.UTC(aaaa,mm-1,gg,12,0,0,0));if((xdata.getUTCFullYear()===aaaa)&&(xdata.getUTCMonth()===mm-1)&&(xdata.getUTCDate()===gg))check=true;else check=false;}else check=false;return this.optional(element)||check;},$.validator.messages.date);$.validator.addMethod("dateNL",function(value,element){return this.optional(element)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(value);},$.validator.messages.date);$.validator.addMethod("extension",function(value,element,param){param=typeof param==="string"?param.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(element)||value.match(new RegExp("\\.("+param+")$","i"));},$.validator.format("Please enter a value with a valid extension."));$.validator.addMethod("giroaccountNL",function(value,element){return this.optional(element)||/^[0-9]{1,7}$/.test(value);},"Please specify a valid giro account number.");$.validator.addMethod("greaterThan",function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-greaterThan-blur").length)target.addClass("val
275idate-greaterThan-blur").on("blur.validate-greaterThan",function(){$(element).valid();});return value>target.val();},"Please enter a greater value.");$.validator.addMethod("greaterThanEqual",function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-greaterThanEqual-blur").length)target.addClass("validate-greaterThanEqual-blur").on("blur.validate-greaterThanEqual",function(){$(element).valid();});return value>=target.val();},"Please enter a greater value.");$.validator.addMethod("iban",function(value,element){if(this.optional(element))return true;var iban=value.replace(/ /g,"").toUpperCase(),ibancheckdigits="",leadingZeroes=true,cRest="",cOperator="",countrycode,ibancheck,charAt,cChar,bbanpattern,bbancountrypatterns,ibanregexp,i,p;var minimalIBANlength=5;if(iban.length<minimalIBANlength)return false;countrycode=iban.substring(0,2);bbancountrypatterns={"AL":"\\d{8}[\\dA-Z]{16}","AD":"\\d{8}[\\dA-Z]{12}","AT":"\\d{16}","AZ":"[\\dA-Z]{4}\\d{20}","BE":"\\d{12}","BH":"[A-Z]{4}[\\dA-Z]{14}","BA":"\\d{16}","BR":"\\d{23}[A-Z][\\dA-Z]","BG":"[A-Z]{4}\\d{6}[\\dA-Z]{8}","CR":"\\d{17}","HR":"\\d{17}","CY":"\\d{8}[\\dA-Z]{16}","CZ":"\\d{20}","DK":"\\d{14}","DO":"[A-Z]{4}\\d{20}","EE":"\\d{16}","FO":"\\d{14}","FI":"\\d{14}","FR":"\\d{10}[\\dA-Z]{11}\\d{2}","GE":"[\\dA-Z]{2}\\d{16}","DE":"\\d{18}","GI":"[A-Z]{4}[\\dA-Z]{15}","GR":"\\d{7}[\\dA-Z]{16}","GL":"\\d{14}","GT":"[\\dA-Z]{4}[\\dA-Z]{20}","HU":"\\d{24}","IS":"\\d{22}","IE":"[\\dA-Z]{4}\\d{14}","IL":"\\d{19}","IT":"[A-Z]\\d{10}[\\dA-Z]{12}","KZ":"\\d{3}[\\dA-Z]{13}","KW":"[A-Z]{4}[\\dA-Z]{22}","LV":"[A-Z]{4}[\\dA-Z]{13}","LB":"\\d{4}[\\dA-Z]{20}","LI":"\\d{5}[\\dA-Z]{12}","LT":"\\d{16}","LU":"\\d{3}[\\dA-Z]{13}","MK":"\\d{3}[\\dA-Z]{10}\\d{2}","MT":"[A-Z]{4}\\d{5}[\\dA-Z]{18}","MR":"\\d{23}","MU":"[A-Z]{4}\\d{19}[A-Z]{3}","MC":"\\d{10}[\\dA-Z]{11}\\d{2}","MD":"[\\dA-Z]{2}\\d{18}","ME":"\\d{18}","NL":"[A-Z]{4}\\d{10}","NO":"\\d{11}","PK":"[\\dA-Z]{4}\\d{16}","PS":"[\\dA-Z]{4}\\d{21}","PL":"\\d{24}","PT":"\\d{21}","RO":"[A-Z]{4}[\\dA-Z]{16}","SM":"[A-Z]\\d{10}[\\dA-Z]{12}","SA":"\\d{2}[\\dA-Z]{18}","RS":"\\d{18}","SK":"\\d{20}","SI":"\\d{15}","ES":"\\d{20}","SE":"\\d{20}","CH":"\\d{5}[\\dA-Z]{12}","TN":"\\d{20}","TR":"\\d{5}[\\dA-Z]{17}","AE":"\\d{3}\\d{16}","GB":"[A-Z]{4}\\d{14}","VG":"[\\dA-Z]{4}\\d{16}"};bbanpattern=bbancountrypatterns[countrycode];if(typeof bbanpattern!=="undefined"){ibanregexp=new RegExp("^[A-Z]{2}\\d{2}"+bbanpattern+"$","");if(!(ibanregexp.test(iban)))return false;}ibancheck=iban.substring(4,iban.length)+iban.substring(0,4);for(i=0;i<ibancheck.length;i++){charAt=ibancheck.charAt(i);if(charAt!=="0")leadingZeroes=false;if(!leadingZeroes)ibancheckdigits+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(charAt);}for(p=0;p<ibancheckdigits.length;p++){cChar=ibancheckdigits.charAt(p);cOperator=""+cRest+""+cChar;cRest=cOperator%97;}return cRest===1;},"Please specify a valid IBAN.");$.validator.addMethod("integer",function(value,element){return this.optional(element)||/^-?\d+$/.test(value);},"A positive or negative non-decimal number please.");$.validator.addMethod("ipv4",function(value,element){return this.optional(element)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(value);},"Please enter a valid IP v4 address.");$.validator.addMethod("ipv6",function(value,element){return this.optional(element)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(value);},"Please enter a valid IP v6 address.");$.validator.addMethod("lessThan",function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-lessThan-blur").length)target.addClass("val
275idate-lessThan-blur").on("blur.validate-lessThan",function(){$(element).valid();});return value<target.val();},"Please enter a lesser value.");$.validator.addMethod("lessThanEqual",function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-lessThanEqual-blur").length)target.addClass("validate-lessThanEqual-blur").on("blur.validate-lessThanEqual",function(){$(element).valid();});return value<=target.val();},"Please enter a lesser value.");$.validator.addMethod("lettersonly",function(value,element){return this.optional(element)||/^[a-z]+$/i.test(value);},"Letters only please.");$.validator.addMethod("letterswithbasicpunc",function(value,element){return this.optional(element)||/^[a-z\-.,()'"\s]+$/i.test(value);},"Letters or punctuation only please.");$.validator.addMethod("maxfiles",function(value,element,param){if(this.optional(element))return true;if($(element).attr("type")==="file")if(element.files&&element.files.length>param)return false;return true;},$.validator.format("Please select no more than {0} files."));$.validator.addMethod("maxsize",function(value,element,param){if(this.optional(element))return true;if($(element).attr("type")==="file")if(element.files&&element.files.length)for(var i=0;i<element.files.length;i++)if(element.files[i].size>param)return false;return true;},$.validator.format("File size must not exceed {0} bytes each."));$.validator.addMethod("maxsizetotal",function(value,element,param){if(this.optional(element))return true;if($(element).attr("type")==="file")if(element.files&&element.files.length){var totalSize=0;for(var i=0;i<element.files.length;i++){totalSize+=element.files[i].size;if(totalSize>param)return false;}}return true;},$.validator.format("Total size of all files must not exceed {0} bytes."));$.validator.addMethod("mobileNL",function(value,element){return this.optional(element)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(value);},"Please specify a valid mobile number.");$.validator.addMethod("mobileRU",function(phone_number,element){var ruPhone_number=phone_number.replace(/\(|\)|\s+|-/g,"");return this.optional(element)||ruPhone_number.length>9&&/^((\+7|7|8)+([0-9]){10})$/.test(ruPhone_number);},"Please specify a valid mobile number.");$.validator.addMethod("mobileUK",function(phone_number,element){phone_number=phone_number.replace(/\(|\)|\s+|-/g,"");return this.optional(element)||phone_number.length>9&&phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/);},"Please specify a valid mobile number.");$.validator.addMethod("netmask",function(value,element){return this.optional(element)||/^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(254|252|248|240|224|192|128|0)/i.test(value);},"Please enter a valid netmask.");$.validator.addMethod("nieES",function(value,element){"use strict";if(this.optional(element))return true;var nieRegEx=new RegExp(/^[MXYZ]{1}[0-9]{7,8}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/gi);var validChars="TRWAGMYFPDXBNJZSQVHLCKET",letter=value.substr(value.length-1).toUpperCase(),number;value=value.toString().toUpperCase();if(value.length>10||value.length<9||!nieRegEx.test(value))return false;value=value.replace(/^[X]/,"0").replace(/^[Y]/,"1").replace(/^[Z]/,"2");number=value.length===9?value.substr(0,8):value.substr(0,9);return validChars.charAt(parseInt(number,10)%23)===letter;},"Please specify a valid NIE number.");$.validator.addMethod("nifES",function(value,element){"use strict";if(this.optional(element))return true;value=value.toUpperCase();if(!value.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)"))return false;if(/^[0-9]{8}[A-Z]{1}$/.test(value))return ("TRWAGMYFPDXBNJZSQVHLCKE".charAt(value.substring(8,0)%23)===value.charAt(8));if(/^[KLM]{1}/.test(value))return (value[8]==="TRWAGMYFPDXBNJZSQVHLCKE".charAt(value.substring(8,1)%23));return false;},"Please specify a valid NIF number.");$.validator.addMethod("nipPL",function(value){"use strict";value=value.replace(/[^0-9]/g,"");if(value.length!==10)return false;var arrSteps=[6,5,7,2,3,4,5,6,7];var intSum=0;for(var i=0;i<9;i++)intSum+=arrSteps[i]*value[i];var int2=intSum%11;var intControlNr=(int2===10)?0:int2;return (intControlNr===parseInt(value[9],10));},"Please specify a valid NIP number.");$.validator.addMethod("nisBR",function(value){var number;var cn;var sum=0;var dv;var count;var multiplier;value=value.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"");if(value.length!==11)return false;cn=parseInt(value.substring(10,11),10);number=parseInt(value.substring(0,10),10);for(count=2;count<12;count++){multiplier=count;if(count===10)multiplier=2;if(count===11)multiplier=3;sum+=((number%10)*multiplier);number=parseInt(number/10,10);}dv=(sum%11);if(dv>1)dv=(11-dv);else dv=0;if(cn===dv)return true;else return false;},"Please specify a valid NIS/PIS number.");$.validator.addMethod("notEqualTo",function(value,element,param){return this.optional(element)||!$.validator.methods.equalTo.call(this,value,element,param);},"Please enter a different value, values must not be the same.");$.validator.addMethod("nowhitespace",function(value,element){return this.optional(element)||/^\S+$/i.test(value);},"No white space please.");$.validator.addMethod("pattern",function(value,element,param){if(this.optional(element))return true;if(typeof param==="string")param=new RegExp("^(?:"+param+")$");return param.test(value);},"Invalid format.");$.validator.addMethod("phoneNL",function(value,element){return this.optional(element)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(value);},"Please specify a valid phone number.");$.validator.addMethod("phonePL",function(phone_number,element){phone_number=phone_number.replace(/\s+/g,"");
vendor: 4,856 bytes, line 275
275var regexp=/^(?:(?:(?:\+|00)?48)|(?:\(\+?48\)))?(?:1[2-8]|2[2-69]|3[2-49]|4[1-68]|5[0-9]|6[0-35-9]|[7-8][1-9]|9[145])\d{7}$/;return this.optional(element)||regexp.test(phone_number);},"Please specify a valid phone number.");$.validator.addMethod("phonesUK",function(phone_number,element){phone_number=phone_number.replace(/\(|\)|\s+|-/g,"");return this.optional(element)||phone_number.length>9&&phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/);},"Please specify a valid uk phone number.");$.validator.addMethod("phoneUK",function(phone_number,element){phone_number=phone_number.replace(/\(|\)|\s+|-/g,"");return this.optional(element)||phone_number.length>9&&phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/);},"Please specify a valid phone number.");$.validator.addMethod("phoneUS",function(phone_number,element){phone_number=phone_number.replace(/\s+/g,"");return this.optional(element)||phone_number.length>9&&phone_number.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]\d{2}-?\d{4}$/);},"Please specify a valid phone number.");$.validator.addMethod("postalcodeBR",function(cep_value,element){return this.optional(element)||/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(cep_value);},"Informe um CEP válido.");$.validator.addMethod("postalCodeCA",function(value,element){return this.optional(element)||/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] *\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i.test(value);},"Please specify a valid postal code.");$.validator.addMethod("postalcodeIT",function(value,element){return this.optional(element)||/^\d{5}$/.test(value);},"Please specify a valid postal code.");$.validator.addMethod("postalcodeNL",function(value,element){return this.optional(element)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(value);},"Please specify a valid postal code.");$.validator.addMethod("postcodeUK",function(value,element){return this.optional(element)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(value);},"Please specify a valid UK postcode.");$.validator.addMethod("require_from_group",function(value,element,options){var $fields=$(options[1],element.form),$fieldsFirst=$fields.eq(0),validator=$fieldsFirst.data("valid_req_grp")?$fieldsFirst.data("valid_req_grp"):$.extend({},this),isValid=$fields.filter(function(){return validator.elementValue(this);}).length>=options[0];$fieldsFirst.data("valid_req_grp",validator);if(!$(element).data("being_validated")){$fields.data("being_validated",true);$fields.each(function(){validator.element(this);});$fields.data("being_validated",false);}return isValid;},$.validator.format("Please fill at least {0} of these fields."));$.validator.addMethod("skip_or_fill_minimum",function(value,element,options){var $fields=$(options[1],element.form),$fieldsFirst=$fields.eq(0),validator=$fieldsFirst.data("valid_skip")?$fieldsFirst.data("valid_skip"):$.extend({},this),numberFilled=$fields.filter(function(){return validator.elementValue(this);}).length,isValid=numberFilled===0||numberFilled>=options[0];$fieldsFirst.data("valid_skip",validator);if(!$(element).data("being_validated")){$fields.data("being_validated",true);$fields.each(function(){validator.element(this);});$fields.data("being_validated",false);}return isValid;},$.validator.format("Please either skip these fields or fill at least {0} of them."));$.validator.addMethod("stateUS",function(value,element,options){var isDefault=typeof options==="undefined",caseSensitive=(isDefault||typeof options.caseSensitive==="undefined")?false:options.caseSensitive,includeTerritories=(isDefault||typeof options.includeTerritories==="undefined")?false:options.includeTerritories,includeMilitary=(isDefault||typeof options.includeMilitary==="undefined")?false:options.includeMilitary,regex;if(!includeTerritories&&!includeMilitary)regex="^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$";else if(includeTerritories&&includeMilitary)regex="^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$";else if(includeTerritories)regex="^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$";else regex="^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$";regex=caseSensitive?new RegExp(regex):new RegExp(regex,"i");return this.optional(element)||regex.test(value);},"Please specify a valid state.");
275$.validator.addMethod("strippedminlength",function(value,element,param){return $(value).text().length>=param;},$.validator.format("Please enter at least {0} characters."));$.validator.addMethod("time",function(value,element){return this.optional(element)||/^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(value);},"Please enter a valid time, between 00:00 and 23:59.");$.validator.addMethod("time12h",function(value,element){return this.optional(element)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(value);},"Please enter a valid time in 12-hour am/pm format.");$.validator.addMethod("url2",function(value,element){return this.optional(element)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?)|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff])|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62}\.)))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(value);},$.validator.messages.url);$.validator.addMethod("vinUS",function(v){if(v.length!==17)return false;var LL=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],VL=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],FL=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],rs=0,i,n,d,f,cd,cdv;for(i=0;i<17;i++){f=FL[i];d=v.slice(i,i+1);if(isNaN(d)){d=d.toUpperCase();n=VL[LL.indexOf(d)];}else n=parseInt(d,10);if(i===8){cdv=n;if(d==="X")cdv=10;}rs+=n*f;}cd=rs%11;if(cd===cdv)return true;return false;}
275,"The specified vehicle identification number (VIN) is invalid.");$.validator.addMethod("zipcodeUS",function(value,element){return this.optional(element)||/^\d{5}(-\d{4})?$/.test(value);},"The specified US ZIP Code is invalid.");$.validator.addMethod("ziprange",function(value,element){return this.optional(element)||/^90[2-5]\d\{2\}-\d{4}$/.test(value);},"Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx.");return $;}));; 276/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 277!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).mobiscroll={},e.jQuery);}(this,(function(e,t){"use strict";function a(e){return e&&"object"==typeof e&&"default" in e?e:{default:e};}var n=a(t),i='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M217.9 256L345 129c9.4-9.4 9.4-24.6 0-33.9-9.4-9.4-24.6-9.3-34 0L167 239c-9.1 9.1-9.3 23.7-.7 33.1L310.9 417c4.7 4.7 10.9 7 17 7s12.3-2.3 17-7c9.4-9.4 9.4-24.6 0-33.9L217.9 256z"/></svg>',s='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 294.1L383 167c9.4-9.4 24.6-9.4 33.9 0s9.3 24.6 0 34L273 345c-9.1 9.1-23.7 9.3-33.1.7L95 201.1c-4.7-4.7-7-10.9-7-17s2.3-12.3 7-17c9.4-9.4 24.6-9.4 33.9 0l127.1 127z"/></svg>',r='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M294.1 256L167 129c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.3 34 0L345 239c9.1 9.1 9.3 23.7.7 33.1L201.1 417c-4.7 4.7-10.9 7-17 7s-12.3-2.3-17-7c-9.4-9.4-9.4-24.6 0-33.9l127-127.1z"/></svg>',o='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M256 217.9L383 345c9.4 9.4 24.6 9.4 33.9 0 9.4-9.4 9.3-24.6 0-34L273 167c-9.1-9.1-23.7-9.3-33.1-.7L95 310.9c-4.7 4.7-7 10.9-7 17s2.3 12.3 7 17c9.4 9.4 24.6 9.4 33.9 0l127.1-127z"/></svg>',l='<svg xmlns="http://www.w3.org/2000/svg" height="17" viewBox="0 0 17 17" width="17"><path d="M8.5 0a8.5 8.5 0 110 17 8.5 8.5 0 010-17zm3.364 5.005a.7.7 0 00-.99 0l-2.44 2.44-2.439-2.44-.087-.074a.7.7 0 00-.903 1.064l2.44 2.439-2.44 2.44-.074.087a.7.7 0 001.064.903l2.439-2.441 2.44 2.441.087.074a.7.7 0 00.903-1.064l-2.441-2.44 2.441-2.439.074-.087a.7.7 0 00-.074-.903z" fill="currentColor" fill-rule="evenodd"/></svg>',c=function(e,t){return c=Object.setPrototypeOf||{__proto__:[]} instanceof Array&&function(e,t){e.__proto__=t;}||function(e,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);},c(e,t);};function d(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function a(){this.constructor=e;}c(e,t),e.prototype=null===t?Object.create(t):(a.prototype=t.prototype,new a());}var h=function(){return h=Object.assign||function(e){for(var t,a=1,n=arguments.length;a<n;a++)for(var i in t=arguments[a])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e;},h.apply(this,arguments);};function u(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]]);}return a;}var m,p,_=function(){function e(){this.nr=0,this.keys=1,this.subscribers={};}return e.prototype.subscribe=function(e){var t=this.keys++;return this.subscribers[t]=e,this.nr++,t;},e.prototype.unsubscribe=function(e){this.nr--,delete this.subscribers[e];},e.prototype.next=function(e){for(var t=this.subscribers,a=0,n=Object.keys(t);a<n.length;a++){var i=n[a];t[i]&&t[i](e);}},e;}(),v=[],f=!1,g="undefined"!=typeof window,x=g&&window.matchMedia&&window.matchMedia("(prefers-color-scheme:dark)"),y=g?navigator.userAgent:"",T=g?navigator.platform:"",b=g?navigator.maxTouchPoints:0,D=y&&y.match(/Android|iPhone|iPad|iPod|Windows Phone|Windows|MSIE/i),S=y&&/Safari/.test(y);/Android/i.test(D)?(m="android",p=y.match(/Android\s+([\d.]+)/i),f=!0,p&&(v=p[0].replace("Android ","").split("."))):/iPhone|iPad|iPod/i.test(D)||/iPhone|iPad|iPod/i.test(T)||"MacIntel"===T&&b>1?(m="ios",p=y.match(/OS\s+([\d_]+)/i),f=!0,p&&(v=p[0].replace(/_/g,".").replace("OS ","").split("."))):/Windows Phone/i.test(D)?(m="wp",f=!0):/Windows|MSIE/i.test(D)&&(m="windows");var M=+v[0],w=+v[1],k={},C={},Y={},I=new _();function E(){var e="",t="",a="";for(var n in t="android"===m?"material":"wp"===m||"windows"===m?"windows":"ios",C){if
277(C[n].baseTheme===t&&!1!==C[n].auto&&n!==t+"-dark"){e=n;break;}n===t?e=n:a||(a=n);}return e||a;}function N(e,t,a){var n=C[t];C[e]=h({},n,{auto:a,baseTheme:t}),Y.theme=E();}var H={majorVersion:M,minorVersion:w,name:m},F={clearIcon:l,labelStyle:"inline"};C.ios={Calendar:{nextIconH:r,nextIconV:s,prevIconH:i,prevIconV:o},Checkbox:{position:"end"},Datepicker:{clearIcon:l,display:"bottom"},Dropdown:F,Eventcalendar:{chevronIconDown:s,nextIconH:r,nextIconV:s,prevIconH:i,prevIconV:o},Input:F,Radio:{position:"end"},Scroller:{itemHeight:34,minWheelWidth:55,rows:5,scroll3d:!0},SegmentedGroup:{drag:!0},Select:{clearIcon:l,display:"bottom"},Textarea:F},N("ios-dark","ios");var L='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',P='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7 14l5-5 5 5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',V='<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M23.12 11.12L21 9l-9 9 9 9 2.12-2.12L16.24 18z"/></svg>',O='<svg xmlns="http://www.w3.org/2000/svg" width="36" height="36" viewBox="0 0 36 36"><path d="M15 9l-2.12 2.12L19.76 18l-6.88 6.88L15 27l9-9z"/></svg>',z='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>',A='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/><path fill="none" d="M0 0h24v24H0V0z"/></svg>',R='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>',W={clearIcon:z,dropdownIcon:L,inputStyle:"box",labelStyle:"floating",notch:!0,ripple:!0},U="material";C.material={Button:{ripple:!0},Calendar:{downIcon:L,nextIconH:O,nextIconV:A,prevIconH:V,prevIconV:R,upIcon:P},Datepicker:{clearIcon:z,display:"center"},Dropdown:W,Eventcalendar:{chevronIconDown:A,colorEventList:!0,downIcon:L,nextIconH:O,nextIconV:A,prevIconH:V,prevIconV:R,upIcon:P},Input:W,ListItem:{ripple:!0},Scroller:{rows:3},Select:{clearIcon:z,display:"center",rows:3},Textarea:W},N("material-dark",U),Y.theme=E();var j=void 0,J=ie(3),B=ie(4),K=ie(7);function G(e,t,a){return Math.max(t,Math.min(e,a));}function q(e,t){return h({},e,t);}function X(e){return Array.isArray(e);}function Z(e){return e-parseFloat(e)>=0;}function Q(e){return "number"==typeof e;}function $(e){return "string"==typeof e;}function ee(e){return e===j||null===e||""===e;}function te(e){return void 0===e;}function ae(e){return "object"==typeof e;}function ne(e){return null!==e&&e!==j&&""+e!="false";}function ie(e){return Array.apply(0,Array(Math.max(0,e)));}function se(e){return e!==j?e+(Z(e)?"px":""):"";}function re(){}function oe(e,t){void 0===t&&(t=2);for(var a=e+"";a.length<t;)a="0"+a;return a;}function le(e){return Math.round(e);}function ce(e,t){return de(e/t)*t;}function de(e){return Math.floor(e);}function he(e,t){var a;return void 0===t&&(t=100),function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];clearTimeout(a),a=setTimeout((function(){e.apply(void 0,n);}),t);};}function ue(e,t){e._cdr?setTimeout(t):t();}function me(e,t){return pe(e,t);}function pe(e,t,a){for(var n=e.length,i=0;i<n;i++){var s=e[i];if(t(s,i))return a?i:s;}return a?-1:j;}function _e(e,t){return X(e)?e.map(t):t(e,0,[e]);}ie(24);var ve=g?document:j,fe=g?window:j,ge=["Webkit","Moz"],xe=ve&&ve.createElement("div").style,ye=ve&&ve.createElement("canvas"),Te=ye&&ye.getContext&&ye.getContext("2d",{willReadFrequently:!0}),be=fe&&fe.CSS,De=be&&be.supports,Se={},Me=fe&&fe.requestAnimationFrame||function(e){return setTimeout(e,20);},we=fe&&fe.cancelAnimationFrame||function(e){clearTimeout(e);},ke=xe&&xe.animationName!==j,Ce="ios"===m&&!S,Ye=Ce&&fe&&fe.webkit&&fe.webkit.messageHandlers,Ie=xe&&xe.touchAction===j||Ce&&!Ye,Ee=function(){if(!xe||xe.transform!==j)return "";for(var e=0,t=ge;e<t.length;e++){var a=t[e];if(xe[a+"Transform"]!==j)return a;}return "";}(),Ne=Ee?"-"+Ee.toLowerCase()+"-":"",He=De&&De("(transform-style: preserve-3d)");function Fe(e,t,a,n){e&&e.addEventListener(t,a,n);}function Le(e,t,a,n){e&&e.removeEventListener(t,a,n);}function Pe(e){return g?e&&e.ownerDocument?e.ownerDocument:ve:j;}function Ve(e,t){return parseFloat(getComputedStyle(e)[t]||"0");}function Oe(e){return e.scrollLeft!==j?e.scrollLeft:e.pageXOffset;}function ze(e){return e.scrollTop!==j?e.scrollTop:e.pageYOffset;}function Ae(e){return g?e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:fe:j;}function Re(e,t){var a=getComputedStyle(e),n=(Ee?a[Ee+"Transform"]:a.transform).split(")")[0].split(", ");return +(t?n[13]||n[5]:n[12]||n[4])||0;}function We(e){if(!Te||!e)return "#000";if(Se[e])return Se[e];Te.fillStyle=e,Te.fillRect(0,0,1,1);var t=Te.getImageData(0,0,1,1),a=t?t.data:[0,0,0],n=.299*+a[0]+.587*+a[1]+.114*+a[2]<130?"#fff":"#000";return Se[e]=n,n;}function Ue(e){var t=e.getBoundingClientRect(),a={left:t.left,top:t.top},n=Ae(e);return n!==j&&(a.top+=ze(n),a.left+=Oe(n)),a;}function je(e,t){var a=e&&(e.matches||e.msMatchesSelector);return a&&a.call(e,t);}function Je(e,t,a){for(;e&&!je(e,t);){if(e===a||e.nodeType===e.DOCUMENT_NODE)return null;e=e.parentNode;}return e;}function Be(e,t,a){var n;try{n=new CustomEvent(t,{bubbles:!0,cancelable:!0,detail:a});}catch(e){(n=document.createEvent("Event")).initEvent(t,!0,!0),n.detail=a;}e.dispatchEvent(n);}function Ke(e,t){for(var a=0;a<e.length;a++)t(e[a],a);}De&&(De("position","sticky")||De("position","-webkit-sticky"));var Ge={},qe=[],Xe=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Ze(e,t){for(var a in t)e[a]=t[a];return e;}function Qe(e){var t=e.parentNode;t&&t.removeChild(e);}
vendor: 6,884 bytes, line 277
277var $e={_catchError:function(e,t){for(var a,n,i;t=t._parent;)if((a=t._component)&&!a._processingException)try{if((n=a.constructor)&&null!=n.getDerivedStateFromError&&(a.setState(n.getDerivedStateFromError(e)),i=a._dirty),null!=a.componentDidCatch&&(a.componentDidCatch(e),i=a._dirty),i)return a._pendingError=a;}catch(t){e=t;}throw e;},_vnodeId:0};function et(e,t,a){var n,i,s,r={};for(s in t)"key"==s?n=t[s]:"ref"==s?i=t[s]:r[s]=t[s];if(arguments.length>3)for(a=[a],s=3;s<arguments.length;s++)a.push(arguments[s]);if(null!=a&&(r.children=a),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===r[s]&&(r[s]=e.defaultProps[s]);return tt(e,r,n,i,null);}function tt(e,t,a,n,i){var s={type:e,props:t,key:a,ref:n,_children:null,_parent:null,_depth:0,_dom:null,_nextDom:void 0,_component:null,_hydrating:null,constructor:void 0,_original:null==i?++$e._vnodeId:i};return null!=$e.vnode&&$e.vnode(s),s;}function at(e){return e.children;}function nt(e,t){this.props=e,this.context=t;}function it(e,t){if(null==t)return e._parent?it(e._parent,e._parent._children.indexOf(e)+1):null;for(var a;t<e._children.length;t++)if(null!=(a=e._children[t])&&null!=a._dom)return a._dom;return "function"==typeof e.type?it(e):null;}function st(e){var t=e._vnode,a=t._dom,n=e._parentDom;if(n){var i=[],s=Ze({},t);s._original=t._original+1,yt(n,t,s,e._globalContext,void 0!==n.ownerSVGElement,null!=t._hydrating?[a]:null,i,null==a?it(t):a,t._hydrating),Tt(i,t),t._dom!=a&&rt(t);}}function rt(e){if(null!=(e=e._parent)&&null!=e._component){e._dom=e._component.base=null;for(var t=0;t<e._children.length;t++){var a=e._children[t];if(null!=a&&null!=a._dom){e._dom=e._component.base=a._dom;break;}}return rt(e);}}nt.prototype.setState=function(e,t){var a;a=null!=this._nextState&&this._nextState!==this.state?this._nextState:this._nextState=Ze({},this.state),"function"==typeof e&&(e=e(Ze({},a),this.props)),e&&Ze(a,e),null!=e&&this._vnode&&(t&&this._renderCallbacks.push(t),dt(this));},nt.prototype.forceUpdate=function(e){this._vnode&&(this._force=!0,e&&this._renderCallbacks.push(e),dt(this));},nt.prototype.render=at;var ot,lt=[],ct="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout;function dt(e){(!e._dirty&&(e._dirty=!0)&<.push(e)&&!ht._rerenderCount++||ot!==$e.debounceRendering)&&((ot=$e.debounceRendering)||ct)(ht);}function ht(){for(var e;ht._rerenderCount=lt.length;)e=lt.sort((function(e,t){return e._vnode._depth-t._vnode._depth;})),lt=[],e.some((function(e){e._dirty&&st(e);}));}function ut(e,t,a,n,i,s,r,o,l,c){var d,h,u,m,p,_,v,f=n&&n._children||qe,g=f.length;for(a._children=[],d=0;d<t.length;d++)if(null!=(m=null==(m=t[d])||"boolean"==typeof m?a._children[d]=null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?a._children[d]=tt(null,m,null,null,m):Array.isArray(m)?a._children[d]=tt(at,{children:m},null,null,null):m._depth>0?a._children[d]=tt(m.type,m.props,m.key,null,m._original):a._children[d]=m)){if(m._parent=a,m._depth=a._depth+1,null===(u=f[d])||u&&m.key==u.key&&m.type===u.type)f[d]=void 0;else for(h=0;h<g;h++){if((u=f[h])&&m.key==u.key&&m.type===u.type){f[h]=void 0;break;}u=null;}yt(e,m,u=u||Ge,i,s,r,o,l,c),p=m._dom,(h=m.ref)&&u.ref!=h&&(v||(v=[]),u.ref&&v.push(u.ref,null,m),v.push(h,m._component||p,m)),null!=p?(null==_&&(_=p),"function"==typeof m.type&&null!=m._children&&m._children===u._children?m._nextDom=l=mt(m,l,e):l=_t(e,m,u,f,p,l),c||"option"!==a.type?"function"==typeof a.type&&(a._nextDom=l):e.value=""):l&&u._dom==l&&l.parentNode!=e&&(l=it(u));}for(a._dom=_,d=g;d--;)null!=f[d]&&("function"==typeof a.type&&null!=f[d]._dom&&f[d]._dom==a._nextDom&&(a._nextDom=pt(n).nextSibling),Dt(f[d],f[d]));if(v)for(d=0;d<v.length;d++)bt(v[d],v[++d],v[++d]);}function mt(e,t,a){for(var n=0;n<e._children.length;n++){var i=e._children[n];i&&(i._parent=e,t="function"==typeof i.type?mt(i,t,a):_t(a,i,i,e._children,i._dom,t));}return t;}function pt(e){if(null==e.type||"string"==typeof e.type)return e._dom;if(e._children)for(var t=e._children.length-1;t>=0;t--){var a=e._children[t];if(a){var n=pt(a);if(n)return n;}}return null;}function _t(e,t,a,n,i,s){var r;if(void 0!==t._nextDom)r=t._nextDom,t._nextDom=void 0;else{if(null==a||i!=s||null==i.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(i),r=null;else{for(var o=s,l=0;(o=o.nextSibling)&&l<n.length;l+=2)if(o==i)break e;e.insertBefore(i,s),r=s;}}return s=void 0!==r?r:i.nextSibling;}function vt(e,t,a){"-"===t[0]?e.setProperty(t,a):null==a?e[t]="":"number"!=typeof a||Xe.test(t)?e[t]=a:e[t]=a+"px";}function ft(e,t,a,n,i){var s;e:if("style"===t)if("string"==typeof a)e.style.cssText=a;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)a&&t in a||vt(e.style,t,"");if(a)for(t in a)n&&a[t]===n[t]||vt(e.style,t,a[t]);}else if("o"===t[0]&&"n"===t[1])if(s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase() in e?t.toLowerCase().slice(2):t.slice(2),e._listeners||(e._listeners={}),e._listeners[t+s]=a,a){if(!n){var r=s?xt:gt;e.addEventListener(t,r,s);}}else{var o=s?xt:gt;e.removeEventListener(t,o,s);}else{if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else{if("href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==a?"":a;break e;}catch(e){}}"function"==typeof a||(null!=a&&(!1!==a||"a"===t[0]&&"r"===t[1])?e.setAttribute(t,a):e.removeAttribute(t));}}}function gt(e){this._listeners[e.type+!1]($e.event?$e.event(e):e);}function xt(e){this._listeners[e.type+!0]($e.event?$e.event(e):e);}function yt(e,t,a,n,i,s,r,o,l){var c,d=t.type;if(void 0!==t.constructor)return null;null!=a._hydrating&&(l=a._hydrating,o=t._dom=a._dom,t._hydrating=null,s=[o]),(c=$e._diff)&&c(t);try{e:if("function"==typeof d){var h,u,m,p,_,v,f=t.props,g=(c=d.contextType)&&n[c._id],x=c?g?g.props.value:c._defaultValue:n;if(a._component?v=(h=t._component=a._component)._processingException=h._pendingError:("prototype" in d&&d.prototype.render?t._component=h=new d(f,x):(t._component=h=new nt(f,x),h.constructor=d,h.render=St),g&&g.sub(h),h.props=f,h.state||(h.state={}),h.context=x,h._globalContext=n,u=h._dirty=!0,h._renderCallbacks=[]),null==h._nextState&&(h._nextState=h.state),null!=d.getDerivedStateFromProps&&(h._nextState==h.state&&(h._nextState=Ze({},h._nextState)),Ze(h._nextState,d.getDerivedStateFromProps(f,h._nextState))),m=h.props,p=h.state,u)null==d.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),null!=h.componentDidMount&&h._renderCallbacks.push(h.componentDidMount);else{if(null==d.getDerivedStateFromProps&&f!==m&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(f,x),!h._force&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(f,h._nextState,x)||t._original===a._original){h.props=f,h.state=h._nextState,t._original!==a._original&&(h._dirty=!1),h._vnode=t,t._dom=a._dom,t._children=a._children,t._children.forEac
277h((function(e){e&&(e._parent=t);})),h._renderCallbacks.length&&r.push(h);break e;}null!=h.componentWillUpdate&&h.componentWillUpdate(f,h._nextState,x),null!=h.componentDidUpdate&&h._renderCallbacks.push((function(){h.componentDidUpdate(m,p,_);}));}h.context=x,h.props=f,h.state=h._nextState,(c=$e._render)&&c(t),h._dirty=!1,h._vnode=t,h._parentDom=e,c=h.render(h.props,h.state,h.context),h.state=h._nextState,null!=h.getChildContext&&(n=Ze(Ze({},n),h.getChildContext())),u||null==h.getSnapshotBeforeUpdate||(_=h.getSnapshotBeforeUpdate(m,p));var y=null!=c&&c.type===at&&null==c.key?c.props.children:c;ut(e,Array.isArray(y)?y:[y],t,a,n,i,s,r,o,l),h.base=t._dom,t._hydrating=null,h._renderCallbacks.length&&r.push(h),v&&(h._pendingError=h._processingException=null),h._force=!1;}else null==s&&t._original===a._original?(t._children=a._children,t._dom=a._dom):t._dom=function(e,t,a,n,i,s,r,o){var l=a.props,c=t.props,d=t.type,h=0;"svg"===d&&(i=!0);if(null!=s)for(;h<s.length;h++){var u=s[h];if(u&&(u===e||(d?u.localName==d:3==u.nodeType))){e=u,s[h]=null;break;}}if(null==e){if(null===d)return document.createTextNode(c);e=i?document.createElementNS("http://www.w3.org/2000/svg",d):document.createElement(d,c.is&&c),s=null,o=!1;}if(null===d)l===c||o&&e.data===c||(e.data=c);else{s=s&&qe.slice.call(e.childNodes);var m=(l=a.props||Ge).dangerouslySetInnerHTML,p=c.dangerouslySetInnerHTML;if(o||(null!=s&&(l={}),(p||m)&&(p&&(m&&p.__html==m.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))),function(e,t,a,n,i){var s;for(s in a)"children"===s||"key"===s||s in t||ft(e,s,null,a[s],n);for(s in t)i&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||a[s]===t[s]||ft(e,s,t[s],a[s],n);}(e,c,l,i,o),p)t._children=[];else{if(h=t.props.children,ut(e,Array.isArray(h)?h:[h],t,a,n,i&&"foreignObject"!==d,s,r,e.firstChild,o),null!=s)for(h=s.length;h--;)null!=s[h]&&Qe(s[h]);}o||("value" in c&&void 0!==(h=c.value)&&(h!==e.value||"progress"===d&&!h)&&ft(e,"value",h,l.value,!1),"checked" in c&&void 0!==(h=c.checked)&&h!==e.checked&&ft(e,"checked",h,l.checked,!1));}return e;}(a._dom,t,a,n,i,s,r,l);(c=$e.diffed)&&c(t);}catch(e){t._original=null,(l||null!=s)&&(t._dom=o,t._hydrating=!!l,s[s.indexOf(o)]=null),$e._catchError(e,t,a);}}function Tt(e,t){$e._commit&&$e._commit(t,e),e.some((function(t){try{e=t._renderCallbacks,t._renderCallbacks=[],e.some((function(e){e.call(t);}));}catch(e){$e._catchError(e,t._vnode);}}));}function bt(e,t,a){try{"function"==typeof e?e(t):e.current=t;}catch(e){$e._catchError(e,a);}}function Dt(e,t,a){var n,i;if($e.unmount&&$e.unmount(e),(n=e.ref)&&(n.current&&n.current!==e._dom||bt(n,null,t)),a||"function"==typeof e.type||(a=null!=(i=e._dom)),e._dom=e._nextDom=void 0,null!=(n=e._component)){if(n.componentWillUnmount)try{n.componentWillUnmount();}catch(e){$e._catchError(e,t);}n.base=n._parentDom=null;}if(n=e._children)for(var s=0;s<n.length;s++)n[s]&&Dt(n[s],t,a);null!=i&&Qe(i);}function St(e,t,a){return this.constructor(e,a);}function Mt(e,t,a){$e._root&&$e._root(e,t);var n="function"==typeof a,i=n?null:a&&a._children||t._children,s=[];yt(t,e=(!n&&a||t)._children=et(at,null,[e]),i||Ge,Ge,void 0!==t.ownerSVGElement,!n&&a?[a]:i?null:t.firstChild?qe.slice.call(t.childNodes):null,s,!n&&a?a:i?i._dom:t.firstChild,n),Tt(s,e);}ht._rerenderCount=0;var wt=0;function kt(e,t){var a={_id:t="__cC"+wt++,_defaultValue:e,Consumer:function(e,t){return e.children(t);},Provider:function(e){if(!this.getChildContext){var a=[],n={};n[t]=this,this.getChildContext=function(){return n;},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&a.some(dt);},this.sub=function(e){a.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){a.splice(a.indexOf(e),1),t&&t.call(e);};};}return e.children;}};return a.Provider._contextRef=a.Consumer.contextType=a;}var Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype.render=function(){},t.prototype.shouldComponentUpdate=function(e,t){return Yt(e,this.props)||Yt(t,this.state);},t;}(nt);function Yt(e,t){for(var a in e)if(e[a]!==t[a])return !0;for(var a in t)if(!(a in e))return !0;return !1;}$e.vnode=function(e){var t=e.props,a={};if($(e.type)){for(var n in t){var i=t[n];/^onAni/.test(n)?n=n.toLowerCase():/ondoubleclick/i.test(n)&&(n="ondblclick"),a[n]=i;}e.props=a;}};var It={},Et=0;function Nt(e,t,a,n,i){je(e,t)?e.__mbscFormInst||Ht(a,e,i,n,!0):Ke(e.querySelectorAll(t),(function(e){e.__mbscFormInst||Ht(a,e,i,n,!0);}));}function Ht(e,t,a,n,i){var s,r,o=[],l=[],c={},d=n||{},u=d.renderToParent?t.parentNode:t,m=u.parentNode,p=d.useOwnChildren?t:u,_=t.getAttribute("class"),v=t.value,f=h({className:u.getAttribute("class")},t.dataset,a,{ref:function(e){r=e;}});d.readProps&&d.readProps.forEach((function(e){var a=t[e];a!==j&&(f[e]=a);}
277)),d.readAttrs&&d.readAttrs.forEach((function(e){var a=t.getAttribute(e);null!==a&&(f[e]=a);}));var g=d.slots;if(g)for(var x=0,y=Object.keys(g);x<y.length;x++){var T=y[x],b=g[T],D=u.querySelector("[mbsc-"+b+"]");D&&(c[T]=D,D.parentNode.removeChild(D),f[T]=et("span",{className:"mbsc-slot-"+b}));}if(d.hasChildren&&(Ke(p.childNodes,(function(e){e!==t&&8!==e.nodeType&&(3!==e.nodeType||3===e.nodeType&&/\S/.test(e.nodeValue))&&o.push(e),l.push(e);})),Ke(o,(function(e){p.removeChild(e);})),o.length&&(f.hasChildren=!0)),t.id||(t.id="mbsc-control-"+Et++),d.before&&d.before(t,f,o),Mt(et(e,f),m,u),_&&d.renderToParent&&(s=t.classList).add.apply(s,_.replace(/^\s+|\s+$/g,"").replace(/\s+|^\s|\s$/g," ").split(" ")),d.hasChildren){var S="."+d.parentClass,M=je(u,S)?u:u.querySelector(S);M&&Ke(o,(function(e){M.appendChild(e);}));}if(d.hasValue&&(t.value=v),g)for(var w=function(e){var t=g[e],a=c[e];Ke(u.querySelectorAll(".mbsc-slot-"+t),(function(e,t){var n=t>0?a.cloneNode(!0):a;e.appendChild(n);}));},k=0,C=Object.keys(c);k<C.length;k++)w(T=C[k]);return r.destroy=function(){var e=u.parentNode,a=ve.createComment("");e.insertBefore(a,u),Mt(null,u),delete t.__mbscInst,delete t.__mbscFormInst,delete u._listeners,u.innerHTML="",u.setAttribute("class",f.className),e.replaceChild(u,a),d.hasChildren&&Ke(l,(function(e){p.appendChild(e);})),d.renderToParent&&t.setAttribute("class",_||"");},i?(t.__mbscInst||(t.__mbscInst=r),t.__mbscFormInst=r):t.__mbscInst=r,r;}function Ft(e,t){if(e)for(var a=0,n=Object.keys(It);a<n.length;a++){var i=n[a],s=It[i];Nt(e,s._selector,s,s._renderOpt,t);}}var Lt=n.default.extend,Pt={};function Vt(e){e._selector&&function(e){It[e._name]=e;}(e),Pt[e._fname]=function(t){return e&&this.each((function(){Ht(e,this,t,e._renderOpt);})),this;};}n.default.fn.mobiscroll=function(e){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];if(Lt(this,Pt),$(e)){var n=this;return this.each((function(){var a,i=this.__mbscInst;if(i&&i[e]&&(a=i[e].apply(i,t))!==j)return n=a,!1;})),n;}return this;},g&&(n.default((function(){Ft(ve);})),n.default(ve).on("mbsc-enhance",(function(e){Ft(e.target);})));var Ot={rtl:!0,setText:"تعÙÙÙ",cancelText:"Ø¥ÙØºØ§Ø¡",clearText:"Ù
سØ",closeText:"Ø¥ØºÙØ§Ù",selectedText:"{count} اÙÙ
ØØ¯Ø¯",dateFormat:"DD/MM/YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD. D MMM YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["Ø§ÙØ£ØØ¯","Ø§ÙØ§Ø«ÙÙÙ","Ø§ÙØ«Ùاثاء","Ø§ÙØ£Ø±Ø¨Ø¹Ø§Ø¡","Ø§ÙØ®Ù
ÙØ³","Ø§ÙØ¬Ù
عة","Ø§ÙØ³Ø¨Øª"],dayNamesShort:["Ø£ØØ¯","اثÙÙÙ","Ø«ÙØ§Ø«Ø§Ø¡","أربعاء","Ø®Ù
ÙØ³","جÙ
عة","سبت"],dayNamesMin:["Ø","Ù","Ø«","ر","Ø®","ج","س"],dayText:"ÙÙÙ
",hourText:"ساعات",minuteText:"Ø§ÙØ¯ÙائÙ",fromText:"ÙØ¨Ø¯Ø§",monthNames:["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","ابرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"],monthNamesShort:["ÙÙØ§Ùر","ÙØ¨Ø±Ø§Ùر","Ù
ارس","ابرÙÙ","Ù
اÙÙ","ÙÙÙÙÙ","ÙÙÙÙÙ","أغسطس","سبتÙ
بر","Ø£ÙØªÙبر","ÙÙÙÙ
بر","Ø¯ÙØ³Ù
بر"],monthText:"Ø´ÙØ±",secondText:"Ø«ÙØ§ÙÙ",amText:"ص",pmText:"Ù
",timeFormat:"hh:mm A",yearText:"عاÙ
",timeWheels:"Ammhh",toText:"ÙÙØªÙÙ",nowText:"Ø§ÙØ¢Ù",firstDay:0,dateText:"ØªØ§Ø±ÙØ®",timeText:"ÙÙØª",todayText:"اÙÙÙÙ
",allDayText:"اÙÙÙÙ
ÙÙÙ",noEventsText:"ÙØ§ ØªÙØ¬Ø¯ Ø§ØØ¯Ø§Ø«",eventText:"Ø§ÙØØ¯Ø«",eventsText:"Ø£ØØ¯Ø§Ø«",moreEventsText:"ÙØ§ØØ¯ آخر",moreEventsPluralText:"Ø§Ø«ÙØ§Ù آخرا٠{count}",weekText:"Ø£Ø³Ø¨ÙØ¹ {count}",rangeEndHelp:"أختر",rangeEndLabel:"ÙÙØªÙÙ",rangeStartHelp:"أختر",rangeStartLabel:"ÙØ¨Ø¯Ø§",filterEmptyText:"ÙØ§ ÙØªÙجة",filterPlaceholderText:"Ø¨ØØ«"},zt={setText:"Ðадаване",cancelText:"ÐÑмÑна",clearText:"ÐзÑиÑÑване",closeText:"заÑвоÑи",selectedText:"{count} подбÑан",dateFormat:"DD.MM.YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD, D MMMM YYYY",dateWheelFormat:"|DDD MM.DD|",dayNames:["ÐеделÑ","Ðонеделник","ÐÑоÑник","СÑÑда","ЧеÑвÑÑÑÑк","ÐеÑÑк","СÑбоÑа"],dayNamesShort:["Ðед","Ðон","ÐÑо","СÑÑ","ЧеÑ","ÐеÑ","СÑб"],dayNamesMin:["Ðе","Ðо","ÐÑ","СÑ","Че","Ðе","СÑ"],dayText:"ден",hourText:"ÑаÑ",minuteText:"минÑÑа",fromText:"ÐТ",monthNames:["ЯнÑаÑи","ФевÑÑаÑи","ÐаÑÑ","ÐпÑил","Ðай","Юни","Юли","ÐвгÑÑÑ","СепÑемвÑи","ÐкÑомвÑи","ÐоемвÑи","ÐекемвÑи"],monthNamesShort:["ЯнÑ","Фев","ÐаÑ","ÐпÑ","Ðай","Юни","Юли","Ðвг","Сеп","ÐкÑ","Ðов","Ðек"],monthText:"меÑеÑ",secondText:"ÑекÑнди",timeFormat:"H:mm",toText:"ÐÐ",nowText:"Сега",pmText:"pm",amText:"am",yearText:"година",firstDay:1,dateText:"ÐаÑа",timeText:"пÑÑ",todayText:"днеÑ",eventText:"СÑбиÑие",eventsText:"СÑбиÑиÑ
277",allDayText:"ЦÑл ден",noEventsText:"ÐÑма ÑÑбиÑиÑ",moreEventsText:"ÐÑе {count}",weekText:"СедмиÑа {count}",rangeStartLabel:"ÐТ",rangeEndLabel:"ÐÐ",rangeStartHelp:"ÐзбиÑам",rangeEndHelp:"ÐзбиÑам",filterEmptyText:"Ðез ÑезÑлÑаÑ",filterPlaceholderText:"ТÑÑÑене"},At={setText:"Acceptar",cancelText:"Cancel·lar",clearText:"Esborrar",closeText:"Tancar",selectedText:"{count} seleccionat",selectedPluralText:"{count} seleccionats",dateFormat:"DD/MM/YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD, D MMM YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"],dayNamesShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayNamesMin:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayText:"Dia",hourText:"Hores",minuteText:"Minuts",fromText:"Iniciar",monthNames:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],monthNamesShort:["Gen","Feb","Mar","Abr","Mai","Jun","Jul","Ago","Set","Oct","Nov","Des"],monthText:"Mes",secondText:"Segons",timeFormat:"H:mm",yearText:"Any",toText:"Final",nowText:"Ara",pmText:"pm",amText:"am",todayText:"Avui",firstDay:1,dateText:"Data",timeText:"Temps",allDayText:"Tot el dia",noEventsText:"Cap esdeveniment",eventText:"Esdeveniments",eventsText:"Esdeveniments",moreEventsText:"{count} més",weekText:"Setmana {count}",rangeStartLabel:"Iniciar",rangeEndLabel:"Final",rangeStartHelp:"Seleccionar",rangeEndHelp:"Seleccionar",filterEmptyText:"Cap resultat",filterPlaceholderText:"Buscar"},Rt={setText:"Zadej",cancelText:"Storno",clearText:"Vymazat",closeText:"ZavÅÃt",selectedText:"OznaÄený: {count}",dateFormat:"DD.MM.YYYY",dateFormatFull:"DDDD, D. MMMM YYYY",dateFormatLong:"DDD, D.M.YYYY",dateWheelFormat:"|DDD D. M.|",dayNames:["NedÄle","PondÄlÃ","Ãterý","StÅeda","Ätvrtek","Pátek","Sobota"],dayNamesShort:["Ne","Po","Ãt","St","Ät","Pá","So"],dayNamesMin:["N","P","Ã","S","Ä","P","S"],dayText:"Den",hourText:"Hodiny",minuteText:"Minuty",fromText:"ZaÄátek",monthNames:["Leden","Ãnor","BÅezen","Duben","KvÄten","Äerven","Äervenec","Srpen","ZáÅÃ","ÅÃjen","Listopad","Prosinec"],monthNamesShort:["Led","Ãno","BÅe","Dub","KvÄ","Äer","Ävc","Spr","ZáÅ","ÅÃj","Lis","Pro"],monthText:"MÄsÃc",secondText:"Sekundy",timeFormat:"H:mm",yearText:"Rok",toText:"Konec",nowText:"TeÄ",amText:"am",pmText:"pm",todayText:"Dnes",firstDay:1,dateText:"Datum",timeText:"Äas",allDayText:"Celý den",noEventsText:"Žádné události",eventText:"UdálostÃ",eventsText:"Události",moreEventsText:"{count} dalÅ¡Ã",weekText:"{count}. týden",rangeStartLabel:"ZaÄátek",rangeEndLabel:"Konec",rangeStartHelp:"Vybrat",rangeEndHelp:"Vybrat",filterEmptyText:"Žádné výsledky",filterPlaceholderText:"Hledat"},Wt={setText:"Sæt",cancelText:"Annuller",clearText:"Ryd",closeText:"Luk",selectedText:"{count} valgt",selectedPluralText:"{count} valgt",dateFormat:"DD/MM/YYY",dateFormatFull:"DDDD, D. MMMM YYYY",dateFormatLong:"DDD. D. MMM. YYYY.",dateWheelFormat:"|DDD. D. MMM.|",dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["S","M","T","O","T","F","L"],dayText:"Dag",hourText:"Timer",minuteText:"Minutter",fromText:"Start",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],monthText:"MÃ¥ned",secondText:"Sekunder",amText:"am",pmText:"pm",timeFormat:"HH.mm",yearText:"Ã
r",toText:"Slut",nowText:"Nu",todayText:"I dag",firstDay:1,dateText:"Dato",timeText:"Tid",allDayText:"Hele dagen",noEventsText:"Ingen begivenheder",eventText:"Begivenheder",eventsText:"Begivenheder",moreEventsText:"{count} mere",weekText:"Uge {count}",rangeStartLabel:"Start",rangeEndLabel:"Slut",rangeStartHelp:"Vælg",rangeEndHelp:"Vælg",filterEmptyText:"Ingen resultater",filterPlaceholderText:"Søg"},Ut={setText:"OK",cancelText:"Abbrechen",clearText:"Löschen",closeText:"SchlieÃen",selectedText:"{count} ausgewählt",dateFormat:"DD.MM.YYYY",dateFormatFull:"DDDD, D. MMMM YYYY",dateFormatLong:"DDD. D. MMM. YYYY",dateWheelFormat:"|DDD. D. MMM.|",dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["S","M","D","M","D","F","S"],dayText:"Tag",hourText:"Stunde",minuteText:"Minuten",fromText:"Von",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],monthText:"Monat",secondText:"Sekunden",timeFormat:"HH:mm",yearText:"Jahr",nowText:"Jetzt",pmText:"pm",amText:"am",todayText:"Heute",toText:"Bis",firstDay:1,dateText:"Datum",timeText:"Zeit",allDayText:"Ganztägig",noEventsText:"Keine Ereignisse",eventText:"Ereignis",eventsText:"Ereignisse",moreEventsText:"{count} weiteres Element",moreEventsPluralText:"{count} weitere Elemente",weekText:"Woche {count}",rangeStartLabel:"Von",rangeEndLabel:"Bis",rangeStartHelp:"Auswählen",rangeEndHelp:"Auswählen",filterEmptyText:"Keine Treffer",filterPlaceholderText:"Suchen"},jt={setText:"ÎÏιÏμοÏ",cancelText:"ÎκÏ
ÏÏÏη",clearText:"ÎιαγÏαÏη",closeText:"ÎλείÏιμο",selectedText:"{count} εÏιλεγμÎνα",dateFormat:"DD/MM/YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD, D MMM YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["ÎÏ
Ïιακή","ÎεÏ
ÏÎÏα","ΤÏίÏη","ΤεÏάÏÏη","Î ÎμÏÏη","ΠαÏαÏκεÏ
ή","ΣάββαÏο"],dayNamesShort:["ÎÏ
Ï","ÎεÏ
","ΤÏι","ΤεÏ","Πεμ","ΠαÏ","Σαβ"],dayNamesMin:["ÎÏ
","Îε","ΤÏ","Τε","Πε","Πα","Σα"],dayText:"ημÎÏα",hourText:"ÏÏα",minuteText:"λεÏÏÏ",fromText:"ÎÏÏή",monthNames:["ÎανοÏ
άÏιοÏ","ΦεβÏοÏ
άÏιοÏ","ÎάÏÏιοÏ","ÎÏÏίλιοÏ","ÎάιοÏ","ÎοÏνιοÏ","ÎοÏλιοÏ","ÎÏγοÏ
ÏÏοÏ","ΣεÏÏÎμβÏιοÏ","ÎκÏÏβÏιοÏ","ÎοÎμβÏιοÏ","ÎεκÎμβÏιοÏ"],monthNamesShort:["Îαν","Φεβ","ÎαÏ","ÎÏÏ","Îαι","ÎοÏ
ν","ÎοÏ
λ","ÎÏ
γ","ΣεÏ","ÎκÏ","Îοε","Îεκ"],monthText:"ÎήναÏ",secondText:"δεÏ
ÏεÏÏλεÏÏα",timeFormat:"H:mm",yearText:"ÎÏοÏ",toText:"ΤÎλοÏ",nowText:"ÏÏÏα",pmText:"μμ",amText:"Ïμ",firstDay:1,dateText:"ÎμεÏομηνία",timeText:"ÏοÏά",todayText:"ΣήμεÏα",eventText:"ÎεγονÏÏα",eventsText:"ÎεγονÏÏα",allDayText:"ÎλοήμεÏο",noEventsText:"Îεν Ï
ÏάÏÏοÏ
ν γεγονÏÏα",moreEventsText:"{count} ακÏμη",weekText:"Îβδομάδα {count}",rangeStartLabel:"ÎÏÏή",rangeEndLabel:"ΤÎλοÏ",rangeStartHelp:"ÎÏιλογή",rangeEndHelp:"ÎÏιλογή",filterEmptyText:"ÎανÎνα αÏοÏÎλεÏμα",filterPlaceholderText:"ÎναζήÏηÏη"},Jt={dateFormat:"DD/MM/YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateWheelFormat:"|DDD D MMM|",timeFormat:"H:mm"},Bt={setText:"Aceptar",cancelText:"Cancelar",clearText:"Borrar",closeText:"Cerrar",selectedText:"{count} seleccionado",selectedPluralText:"{count} seleccionados",dateFormat:"DD/MM/YYYY",dateFormatFull:"DDDD, MMMM D. YYYY",dateFormatLong:"DDD, MMM. D. YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort:["Do","Lu","Ma","Mi","Ju","Vi","Sá"],dayNamesMin:["D","L","M","M","J","V","S"],dayText:"DÃa",hourText:"Horas",minuteText:"Minutos",fromText:"Iniciar",monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],monthText:"Mes",secondText:"Segundos",timeFormat:"H:mm",yearText:"Año",toText:"Final",nowText:"Ahora",pmText:"pm",amText:"am",todayText:"Hoy",firstDay:1,dateText:"Fecha",timeText:"Tiempo",allDayText:"Todo el dÃa",noEventsText:"No hay eventos",eventText:"Evento",eventsText:"Eventos",moreEventsText:"{count} más",weekText:"Semana {count}",rangeStartLabel:"Iniciar",rangeEndLabel:"Final",rangeStartHelp:"Seleccionar",rangeEndHelp:"Seleccionar",filterEmptyText:"Sin resultados",filterPlaceholderText:"Buscar"},Kt=[31,28,31,30,31,30,31,31,30,31,30,31],Gt=[31,31,31,31,31,31,30,30,30,30,30,29];function qt(e,t,a){var n,i=e-1600,s=t-1,r=a-1,o=365*i+de((i+3)/4)-de((i+99)/100)+de((i+399)/400);for(n=0;n<s;++n)o+=Kt[n];s>1&&(i%4==0&&i%100!=0||i%400==0)&&++o;var l=(o+=r)-79,c=979+33*de(l/12053)+4*de((l%=12053)/1461);for((l%=1461)>=366&&(c+=de((l-1)/365),l=(l-1)%365),n=0;n<11&&l>
277=Gt[n];++n)l-=Gt[n];return [c,n+1,l+1];}var Xt={getYear:function(e){return qt(e.getFullYear(),e.getMonth()+1,e.getDate())[0];},getMonth:function(e){return --qt(e.getFullYear(),e.getMonth()+1,e.getDate())[1];},getDay:function(e){return qt(e.getFullYear(),e.getMonth()+1,e.getDate())[2];},getDate:function(e,t,a,n,i,s,r){t<0&&(e+=de(t/12),t=t%12?12+t%12:0),t>11&&(e+=de(t/12),t%=12);var o=function(e,t,a){var n,i=e-979,s=t-1,r=a-1,o=365*i+8*de(i/33)+de((i%33+3)/4);for(n=0;n<s;++n)o+=Gt[n];var l=(o+=r)+79,c=1600+400*de(l/146097),d=!0;for((l%=146097)>=36525&&(c+=100*de(--l/36524),(l%=36524)>=365?l++:d=!1),c+=4*de(l/1461),(l%=1461)>=366&&(d=!1,c+=de(--l/365),l%=365),n=0;l>=Kt[n]+(1===n&&d?1:0);n++)l-=Kt[n]+(1===n&&d?1:0);return [c,n+1,l+1];}(e,+t+1,a);return new Date(o[0],o[1]-1,o[2],n||0,i||0,s||0,r||0);},getMaxDayOfMonth:function(e,t){var a,n,i,s=31;for(t<0&&(e+=de(t/12),t=t%12?12+t%12:0),t>11&&(e+=de(t/12),t%=12);n=t+1,i=s,((a=e)<0||a>32767||n<1||n>12||i<1||i>Gt[n-1]+(12===n&&(a-979)%33%4==0?1:0))&&s>29;)s--;return s;}},Zt={setText:"تاÙÙØ¯",cancelText:"Ø§ÙØµØ±Ø§Ù",clearText:"ÙØ§Ø¶Ø ",closeText:"ÙØ²Ø¯ÛÚ©",selectedText:"{count} Ù
ÙØªØ®Ø¨",rtl:!0,calendarSystem:Xt,dateFormat:"YYYY/MM/DD",dateFormatFull:"DDDD D MMMM YYYY",dateFormatLong:"DDD D MMM YYYY",dateWheelFormat:"|DDDD MMM D|",dayNames:["ÙÚ©Ø´ÙØ¨Ù","Ø¯ÙØ´ÙبÙ","سÙâØ´ÙØ¨Ù","ÚÙØ§Ø±Ø´ÙبÙ","Ù¾ÙØ¬âØ´ÙØ¨Ù","جÙ
عÙ","Ø´ÙØ¨Ù"],dayNamesShort:["Û","د","س","Ú","Ù¾","ج","Ø´"],dayNamesMin:["Û","د","س","Ú","Ù¾","ج","Ø´"],dayText:"Ø±ÙØ²",hourText:"ساعت",minuteText:"دÙÙÙÙ",fromText:"Ø´Ø±ÙØ¹ ",monthNames:["ÙØ±ÙردÙÙ","Ø§Ø±Ø¯ÙØ¨Ùشت","خرداد","ØªÙØ±","Ù
رداد","Ø´ÙØ±ÙÙØ±","Ù
ÙØ±","آباÙ","آذر","دÛ","بÙÙ
Ù","اسÙÙØ¯"],monthNamesShort:["ÙØ±ÙردÙÙ","Ø§Ø±Ø¯ÙØ¨Ùشت","خرداد","ØªÙØ±","Ù
رداد","Ø´ÙØ±ÙÙØ±","Ù
ÙØ±","آباÙ","آذر","دÛ","بÙÙ
Ù","اسÙÙØ¯"],monthText:"Ù
اÙ",secondText:"ثاÙÙÙ",timeFormat:"HH:mm",timeWheels:"mmHH",yearText:"ساÙ",toText:"Ù¾Ø§ÛØ§Ù",nowText:"اکÙÙÙ",amText:"ب",pmText:"ص",todayText:"اÙ
Ø±ÙØ²",firstDay:6,dateText:"ØªØ§Ø±ÛØ® ",timeText:"زÙ
ا٠",allDayText:"تÙ
اÙ
Ø±ÙØ²",noEventsText:"ÙÛÚ Ø±ÙÛØ¯Ø§Ø¯",eventText:"رÙÛØ¯Ø§Ø¯",eventsText:"رÙÛØ¯Ø§Ø¯Ùا",moreEventsText:"{count} Ù
ÙØ±Ø¯ دÛگر",weekText:"{count} ÙÙØªÙ",rangeStartLabel:"Ø´Ø±ÙØ¹ ",rangeEndLabel:"Ù¾Ø§ÛØ§Ù",rangeStartHelp:"Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯",rangeEndHelp:"Ø§ÙØªØ®Ø§Ø¨ Ú©ÙÛØ¯",filterEmptyText:"ÙØªÛØ¬Ù Ø§Û ÙØ¯Ø§Ø±Ø¯",filterPlaceholderText:"جستج٠کردÙ"},Qt={setText:"Aseta",cancelText:"Peruuta",clearText:"Tyhjennä",closeText:"Sulje",selectedText:"{count} valita",dateFormat:"D. MMMM YYYY",dateFormatFull:"DDDD, D. MMMM YYYY",dateFormatLong:"DDD, D. MMMM, YYYY",dateWheelFormat:"|DDD D. M.|",dayNames:["Sunnuntai","Maanantai","Tiistai","Keskiviiko","Torstai","Perjantai","Lauantai"],dayNamesShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayNamesMin:["S","M","T","K","T","P","L"],dayText:"Päivä",hourText:"Tuntia",minuteText:"Minuutti",fromText:"Alkaa",monthNames:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],monthNamesShort:["Tam","Hel","Maa","Huh","Tou","Kes","Hei","Elo","Syy","Lok","Mar","Jou"],monthText:"Kuukausi",secondText:"Sekunda",timeFormat:"H:mm",yearText:"Vuosi",toText:"Päättyy",nowText:"Nyt",pmText:"pm",amText:"am",firstDay:1,dateText:"Päiväys",timeText:"Aika",todayText:"Tänään",eventText:"Tapahtumia",eventsText:"Tapahtumia",allDayText:"Koko päivä",noEventsText:"Ei tapahtumia",moreEventsText:"{count} muu",moreEventsPluralText:"{count} muuta",weekText:"Viikko {count}",rangeStartLabel:"Alkaa",rangeEndLabel:"Päättyy",rangeStartHelp:"Valitse",rangeEndHelp:"Valitse",filterEmptyText:"Ei tuloksia",filterPlaceholderText:"Haku"},$t={setText:"Terminer",cancelText:"Annuler",clearText:"Effacer",closeText:"Fermer",selectedText:"{count} sélectionné",selectedPluralText:"{count} sélectionnés",dateFormat:"DD/MM/YYYY",dateFormatFull:"DDDD D MMMM YYYY",dateFormatLong:"DDD D MMM YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim.","Lun.","Mar.","Mer.","Jeu.","Ven.","Sam."],dayNamesMin:["D","L","M","M","J","V","S"],dayText:"Jour",monthText:"Mois",fromText:"Démarrer",monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Janv.","Févr.","Mars","Avril","Mai","Juin","Juil.","Août","Sept.","Oct.","Nov.","Déc."],hourText:"Heures",minuteText:"Minutes",secondText:"Secondes",t
277imeFormat:"HH:mm",yearText:"Année",toText:"Fin",nowText:"Maintenant",pmText:"pm",amText:"am",todayText:"Aujourd'hui",firstDay:1,dateText:"Date",timeText:"Heure",allDayText:"Toute la journée",noEventsText:"Aucun événement",eventText:"Ãvénement",eventsText:"Ãvénements",moreEventsText:"{count} autre",moreEventsPluralText:"{count} autres",weekText:"Semaine {count}",rangeStartLabel:"Début",rangeEndLabel:"Fin",rangeStartHelp:"Choisir",rangeEndHelp:"Choisir",filterEmptyText:"Aucun résultat",filterPlaceholderText:"Rechercher"},ea={rtl:!0,setText:"ש××ר×",cancelText:"×××××",clearText:"× ×§×",closeText:"ס××ר×",selectedText:"{count} × ××ר",selectedPluralText:"{count} × ××ר×",dateFormat:"DD/MM/YYYY",dateFormatFull:"DDDD, D ×MMMM YYYY",dateFormatLong:"DDD, D ×MMM YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["ר×ש××","×©× ×","ש××ש×","ר×××¢×","×××ש×","ש×ש×","ש×ת"],dayNamesShort:["×'","×'","×'","×'","×'","×'","ש'"],dayNamesMin:["×","×","×","×","×","×","ש"],dayText:"×××",hourText:"שע×ת",minuteText:"××§×ת",fromText:"×ת×××",monthNames:["×× ××ר","פ×ר××ר","×רץ","×פר××","×××","××× ×","××××","××××ס×","ספ×××ר","×××§×××ר","× ××××ר","×צ××ר"],monthNamesShort:["×× ×","פ×ר","×רץ","×פר","×××","××× ","×××","×××","ספ×","×××§","× ××","×צ×"],monthText:"×××ש",secondText:"×©× ××ת",amText:"am",pmText:"pm",timeFormat:"H:mm",timeWheels:"mmH",yearText:"×©× ×",toText:"ס×××",nowText:"×¢×ש××",firstDay:0,dateText:"ת×ר××",timeText:"×××",todayText:"××××",allDayText:"×× ××××",noEventsText:"××× ××ר××¢××",eventText:"×ִקרֶ×",eventsText:"×ִקרֶ×",moreEventsText:"××ר××¢ ××× × ×סף",moreEventsPluralText:"{count} ××ר××¢×× × ×ספ××",weekText:"{count} ש×××¢",rangeStartLabel:"×ת×××",rangeEndLabel:"ס×××",rangeStartHelp:"××ר",rangeEndHelp:"××ר",filterEmptyText:"××× ×ª×צ×××",filterPlaceholderText:"××פש"},ta={setText:"सà¥à¤ à¤à¤°à¥à¤",cancelText:"रदà¥à¤¦ à¤à¤°à¥à¤",clearText:"साॠà¤à¥",closeText:"बà¤à¤¦",selectedText:"{count} à¤à¤¯à¤¨à¤¿à¤¤",dateFormat:"DD/MM/YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD, D MMM YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["रविवार","सà¥à¤®à¤µà¤¾à¤°","मà¤à¤à¤²à¤µà¤¾à¤°","बà¥à¤§à¤µà¤¾à¤°","à¤à¥à¤°à¥à¤µà¤¾à¤°","शà¥à¤à¥à¤°à¤µà¤¾à¤°","शनिवार"],dayNamesShort:["रवि","सà¥à¤®","मà¤à¤à¤²","बà¥à¤§","à¤à¥à¤°à¥","शà¥à¤à¥à¤°","शनि"],dayNamesMin:["रवि","सà¥à¤®","मà¤à¤à¤²","बà¥à¤§","à¤à¥à¤°à¥","शà¥à¤à¥à¤°","शनि"],dayText:"दिन",hourText:"à¤à¤à¤à¤¾",minuteText:"मिनà¤",fromText:"सà¥",monthNames:["à¤à¤¨à¤µà¤°à¥ ","फरवरà¥","मारà¥à¤","à¤
पà¥à¤°à¥à¤²","मà¤","à¤à¥à¤¨","à¤à¥à¤²à¤¾à¤","à¤
à¤à¤¸à¥à¤¤ ","सितमà¥à¤¬à¤°","à¤
à¤à¥à¤à¥à¤¬à¤°","नवमà¥à¤¬à¤°","दिसमà¥à¤¬à¤°"],monthNamesShort:["à¤à¤¨","फर","मारà¥à¤","à¤
पà¥à¤°à¥à¤²","मà¤","à¤à¥à¤¨","à¤à¥à¤²à¤¾à¤","à¤
à¤","सित","à¤
à¤à¥à¤","नव","दि"],monthText:"महà¥à¤¨à¤¾",secondText:"सà¥à¤à¤à¤¡",timeFormat:"H:mm",yearText:"साल",toText:"तà¤",nowText:"à¤
ब",pmText:"à¤
पराहà¥à¤¨",amText:"पà¥à¤°à¥à¤µà¤¾à¤¹à¥à¤¨",firstDay:1,dateText:"तिथि",timeText:"समय",todayText:"à¤à¤",eventText:"à¤à¤µà¥à¤à¥©",eventsText:"à¤à¤µà¥à¤à¥©",allDayText:"पà¥à¤°à¥ दिन",noEventsText:"Ei tapahtumia",moreEventsText:"{count} à¤à¤°",weekText:"सपà¥à¤¤à¤¾à¤¹ {count}",rangeStartLabel:"सà¥",rangeEndLabel:"तà¤",rangeStartHelp:"à¤à¥à¤¨à¥à¤",rangeEndHelp:"à¤à¥à¤¨à¥à¤",filterEmptyText:"à¤à¥à¤ परिणाम नहà¥",filterPlaceholderText:"à¤à¥à¤"},aa={setText:"Postavi",cancelText:"Izlaz",clearText:"IzbriÅ¡i",closeText:"Zatvori",selectedText:"{count} odabran",dateFormat:"DD.MM.YYYY",dateFormatFull:"DDDD, D. MMMM YYYY.",dateFormatLong:"DDD, D. MMM. YYYY.",dateWheelFormat:"|DDD D MMM|",dayNames:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Äetvrtak","Petak","Subota"],dayNamesShort:["Ned","Pon","Uto","Sri","Äet","Pet","Sub"],dayNamesMin:["Ne","Po","Ut","Sr","Äe","Pe","Su"],dayText:"Dan",hourText:"Sat",minuteText:"Minuta",fromText:"PoÄinje",monthNames:["SijeÄanj","VeljaÄa","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],monthNamesShort:["Sij","Velj","Ožu","Tra","Svi","Lip","Srp","Kol","Ruj","Lis","Stu","Pro"],monthText:"Mjesec",secondText:"Sekunda",timeFormat:"H:mm",yearText:"Godina",toText:"ZavrÅ¡ava",nowText:"Sada",pmText:"pm",amText:"am",firstDay:1,dateText:"Datum",timeText:"Vrijeme",todayText:"Danas",eventText:"DogaÄaj",eventsText:"dogaÄaja",allDayText:"Cijeli dan",noEventsText:"Bez dogaÄaja",moreEventsText:"JoÅ¡ {count}",weekText:"{count}. tjedan",rangeStartLabel:"PoÄinje",rangeEndLabel:"ZavrÅ¡ava",rangeStartHelp:"Odaberite",rangeEndHelp:"Odaberite",filterEmptyText:"Bez rezultata",filterPlaceholderText:"Traži"},na={setText:"OK",cancelText:"Mégse",clearText:"Törlés",closeText:"Bezár",selectedText:"{count} kiválasztva",dateFormat:"YYYY.MM.DD.",dateFormatFull:"YYYY. MMMM D., DDDD",dateFormatLong:"YYYY. MMM. D., DDD",dateWheelFormat:"|MMM. D. DDD|",dayNames:["Vasárnap","HétfÅ","Kedd","Szerda","Csütörtök","Péntek","Szombat"],dayNamesShort:["Va","Hé","Ke","Sze","Csü","Pé","Szo"],dayNamesMin:["V","H","K","Sz","Cs","P","Sz"],dayText:"Nap",hourText:"Ãra",minuteText:"Perc",fromText:"Eleje",monthNames:["Január","Február","Március","Ãprilis","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],monthNamesShort:["Jan","Feb","Már","Ãpr","Máj","Jún","Júl","Aug","Szep","Okt","Nov","Dec"],monthText:"Hónap",secondText:"Másodperc",timeFormat:"H:mm",yearText:"Ãv",toText:"Vége",nowText:"Most",pmText:"pm",amText:"am",firstDay:1,dateText:"Dátum",timeText:"IdÅ",todayText:"Ma",eventText:"esemény",eventsText:"esemény",allDayText:"Egész nap",noEventsText:"Nincs esemény",moreEventsText:"{count} további",weekText:"{count}. hét",rangeStartLabel:"Eleje",rangeEndLabel:"Vége",rangeStartHelp:"Válasszon",rangeEndHelp:"Válasszon",filterEmptyText:"Nincs találat",filterPlaceholderText:"Keresés"},ia={setText:"OK",cancelText:"Annulla",clearText:"Chiarire",closeText:"Chiudere",selectedText:"{count} selezionato",selectedPluralText:"{count} selezionati",dateFormat:"DD/MM/YYYY",dateFormatFull:"DDDD D MMMM YYYY",dateFormatLong:"DDD D MMM YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Do","Lu","Ma","Me","Gi","Ve","Sa"],dayNamesMin:["D","L","M","M","G","V","S"],dayText:"Giorno",hourText:"Ore",minuteText:"Minuti",fromText:"Inizio",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],monthText:"Mese",secondText:"Secondi",timeFormat:"HH:mm",yearText:"Anno",toText:"Fine",nowText:"Ora",pmText:"pm",amText:"am",todayText:"Oggi",firstDay:1,dateText:"Data",timeText:"Volta",allDayText:"Tutto il giorno",noEventsText:"Nessun evento",eventText:"Evento",eventsText:"Eventi",moreEventsText:"{count} altro",moreEventsPluralText:"altri {count}",weekText:"Settimana {count}",rangeStartLabel:"Inizio",rangeEndLabel:"Fine",rangeStartHelp:"Scegli",rangeEndHelp:"Scegli",filterEmptyText:"Nessun risultato",filterPlaceholderText:"Cerca"},sa={setText:"ã»ãã",cancelText:"ãã£ã³ã»ã«",clearText:"ã¯ãªã¢",closeText:"ã¯ãã¼ãº",selectedText:"{count} 鏿",dateFormat:"YYYYå¹´MMæDDæ¥",dateFormatFull:"YYYYå¹´MMæDDæ¥",dateFormatLong:"YYYYå¹´MMæDDæ¥",dateWheelFormat:"|MæDæ¥ DDD|",dayNames:["æ¥","æ","ç«","æ°´","æ¨","é","å"],dayNamesShort:["æ¥","æ","ç«","æ°´","æ¨","é","å"],dayNamesMin:["æ¥","æ","ç«","æ°´","æ¨","é","å"],dayText:"æ¥",hourText:"æ",minuteText:"å",fromText:"éå§",monthNames:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],monthNamesShort:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],monthText:"æ",secondText:"ç§",timeFormat:"H:mm",yearText:"å¹´",toText:"çµãã",nowText:"ä»",pmText:"åå¾",amText:"åå",yearSuffix:"å¹´",monthSuffix:"æ",daySuffix:"æ¥",todayText:"仿¥",dateText:"æ¥ä»",timeText:"æé",allDayText:"çµæ¥",noEventsText:"ã¤ãã³ãã¯ããã¾ãã",eventText:"ã¤ãã³ã",eventsText:"ã¤ãã³ã",moreEventsText:"ä» {count} ä»¶",weekText:"{count}é±ç®",rangeStartLabel:"éå§",rangeEndLabel:"çµãã",rangeStartHelp:"鏿",rangeEndHelp:"鏿",filterEmptyText:"æ¤ç´¢çµæã
277¯ããã¾ãã",filterPlaceholderText:"æ¢ã"},ra={setText:"ì¤ì ",cancelText:"ì·¨ì",clearText:"ìì ",closeText:"ë«ê¸°",selectedText:"{count} ì íë",dateFormat:"YYYYë
MMìDDì¼",dateFormatFull:"YYYYë
MMìDDì¼",dateFormatLong:"YYYYë
MMìDDì¼",dateWheelFormat:"|Mì Dì¼ DDD|",dayNames:["ì¼ìì¼","ììì¼","íìì¼","ììì¼","목ìì¼","ê¸ìì¼","í ìì¼"],dayNamesShort:["ì¼","ì","í","ì","목","ê¸","í "],dayNamesMin:["ì¼","ì","í","ì","목","ê¸","í "],dayText:"ì¼",hourText:"ìê°",minuteText:"ë¶",fromText:"ìì",monthNames:["1ì","2ì","3ì","4ì","5ì","6ì","7ì","8ì","9ì","10ì","11ì","12ì"],monthNamesShort:["1ì","2ì","3ì","4ì","5ì","6ì","7ì","8ì","9ì","10ì","11ì","12ì"],monthText:"ë¬",secondText:"ì´",timeFormat:"H:mm",yearText:"ë
",toText:"ì¢
ë£",nowText:"ì§ê¸",pmText:"ì¤í",amText:"ì¤ì ",yearSuffix:"ë
",monthSuffix:"ì",daySuffix:"ì¼",firstDay:0,dateText:"ë ì§",timeText:"ìê°",todayText:"ì¤ë",eventText:"ì´ë²¤í¸",eventsText:"ì´ë²¤í¸",allDayText:"ì¢
ì¼",noEventsText:"ì´ë²¤í¸ ìì",moreEventsText:"{count}ê° ë보기",weekText:"{count}주차",rangeStartLabel:"ìì",rangeEndLabel:"ì¢
ë£",rangeStartHelp:"ì í",rangeEndHelp:"ì í",filterEmptyText:"ê²°ê³¼ê° ìë¤",filterPlaceholderText:"ì°¾ë¤"},oa={setText:"OK",cancelText:"AtÅ¡aukti",clearText:"IÅ¡valyti",closeText:"Uždaryti",selectedText:"Pasirinktas {count}",selectedPluralText:"Pasirinkti {count}",dateFormat:"YYYY-MM-DD",dateFormatFull:"YYYY MMMM D DDDD",dateFormatLong:"YYYY-MM-DD",dateWheelFormat:"|MM-DD DDD|",dayNames:["Sekmadienis","Pirmadienis","Antradienis","TreÄiadienis","Ketvirtadienis","Penktadienis","Å eÅ¡tadienis"],dayNamesShort:["S","Pr","A","T","K","Pn","Å "],dayNamesMin:["S","Pr","A","T","K","Pn","Å "],dayText:"Diena",hourText:"Valanda",minuteText:"Minutes",fromText:"Nuo",monthNames:["Sausis","Vasaris","Kovas","Balandis","GegužÄ","Birželis","Liepa","RugpjÅ«tis","RugsÄjis","Spalis","Lapkritis","Gruodis"],monthNamesShort:["Sau","Vas","Kov","Bal","Geg","Bir","Lie","Rugp","Rugs","Spa","Lap","Gruo"],monthText:"MÄnuo",secondText:"Sekundes",amText:"am",pmText:"pm",timeFormat:"HH:mm",yearText:"Metai",toText:"Iki",nowText:"Dabar",todayText:"Å iandien",firstDay:1,dateText:"Data",timeText:"Laikas",allDayText:"VisÄ
dienÄ
",noEventsText:"NÄra įvykių",eventText:"Ä®vykių",eventsText:"Ä®vykiai",moreEventsText:"Dar {count}",weekText:"{count} savaitÄ",rangeStartLabel:"Nuo",rangeEndLabel:"Iki",rangeStartHelp:"Pasirinkti",rangeEndHelp:"Pasirinkti",filterEmptyText:"NÄra rezultatų",filterPlaceholderText:"PaieÅ¡ka"},la={setText:"Instellen",cancelText:"Annuleren",clearText:"Leegmaken",closeText:"Sluiten",selectedText:"{count} gekozen",dateFormat:"DD-MM-YYYY",dateFormatFull:"DDDD D MMMM YYYY",dateFormatLong:"DD-MM-YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"],dayNamesShort:["Zo","Ma","Di","Wo","Do","Vr","Za"],dayNamesMin:["Z","M","D","W","D","V","Z"],dayText:"Dag",hourText:"Uur",minuteText:"Minuten",fromText:"Start",monthNames:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mrt","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],monthText:"Maand",secondText:"Seconden",timeFormat:"HH:mm",yearText:"Jaar",toText:"Einde",nowText:"Nu",pmText:"pm",amText:"am",todayText:"Vandaag",firstDay:1,dateText:"Datum",timeText:"Tijd",allDayText:"Hele dag",noEventsText:"Geen activiteiten",eventText:"Activiteit",eventsText:"Activiteiten",moreEventsText:"nog {count}",weekText:"Week {count}",rangeStartLabel:"Start",rangeEndLabel:"Einde",rangeStartHelp:"Kies",rangeEndHelp:"Kies",filterEmptyText:"Niets gevonden",filterPlaceholderText:"Zoek"},ca={setText:"OK",cancelText:"Avbryt",clearText:"Tømme",closeText:"Lukk",selectedText:"{count} valgt",dateFormat:"DD.MM.YYY",dateFormatFull:"DDDD D. MMMM YYYY",dateFormatLong:"DDD. D. MMM. YYYY",dateWheelFormat:"|DDD. D. MMM.|",dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Sø","Ma","Ti","On","To","Fr","Lø"],dayNamesMin:["S","M","T","O","T","F","L"],dayText:"Dag",hourText:"Time",minuteText:"Minutt",fromText:"Start",monthNames:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],monthNamesShort:["Jan","Feb","Mar","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Des"],monthText:"MÃ¥ned",secondText:"Sekund",timeFormat:"HH:mm",yearText:"Ã
r",toText:"End",nowText:"NÃ¥",pmText:"pm",amText:"am",todayText:"I dag",firstDay:1,dateText:"Dato",timeText:"Tid",allDayText:"Hele dagen",noEventsText:"Ingen hendelser",eventText:"Hendelse",eventsText:"Hendelser",moreEventsText:"{count} mere",weekText:"Uke {count}",rangeStartLabel:"Start",rangeEndLabel:"End",rangeStartHelp:"Velg",rangeEndHelp:"Velg",filterEmptyText:"Ingen treff",filterPlaceholderText:"Søk"},da={setText:"Zestaw",cancelText:"Anuluj",clearText:"OczyÅciÄ",closeText:"ZakoÅczenie",selectedText:"Wybór: {count}",dateFormat:"YYYY-MM-DD",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD, D MMM YYYY",dateWheelFormat:"|DDD D.MM|",dayNames:["Niedziela","PoniedziaÅek","Wtorek","Åroda","Czwartek","PiÄ
tek","Sobota"],dayNamesShort:["Nie.","Pon.","Wt.","År.","Czw.","Pt.","Sob."],dayNamesMin:["N","P","W","Å","C","P","S"],dayText:"DzieÅ",hourText:"Godziny",minuteText:"Minuty",fromText:"RozpoczÄcie",monthNames:["StyczeÅ","Luty","Marzec","KwiecieÅ
277","Maj","Czerwiec","Lipiec","SierpieÅ","WrzesieÅ","Październik","Listopad","GrudzieÅ"],monthNamesShort:["Sty","Lut","Mar","Kwi","Maj","Cze","Lip","Sie","Wrz","Paź","Lis","Gru"],monthText:"MiesiÄ
c",secondText:"Sekundy",timeFormat:"HH:mm",yearText:"Rok",toText:"Koniec",nowText:"Teraz",amText:"am",pmText:"pm",todayText:"Dzisiaj",firstDay:1,dateText:"Data",timeText:"Czas",allDayText:"CaÅy dzieÅ",noEventsText:"Brak wydarzeÅ",eventText:"WydarzeÅ",eventsText:"Wydarzenia",moreEventsText:"Jeszcze {count}",weekText:"TydzieÅ {count}",rangeStartLabel:"RozpoczÄcie",rangeEndLabel:"Koniec",rangeStartHelp:"Wybierz",rangeEndHelp:"Wybierz",filterEmptyText:"Brak wyników",filterPlaceholderText:"Szukaj"},ha={setText:"Seleccionar",cancelText:"Cancelar",clearText:"Claro",closeText:"Fechar",selectedText:"{count} selecionado",selectedPluralText:"{count} selecionados",dateFormat:"DD-MM-YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD, D MMM, YYYY",dateWheelFormat:"|DDD D de MMM|",dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["D","S","T","Q","Q","S","S"],dayText:"Dia",hourText:"Horas",minuteText:"Minutos",fromText:"InÃcio",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],monthText:"Mês",secondText:"Segundo",timeFormat:"HH:mm",yearText:"Ano",toText:"Fim",nowText:"Actualizar",pmText:"pm",amText:"am",todayText:"Hoje",firstDay:1,dateText:"Data",timeText:"Tempo",allDayText:"Todo o dia",noEventsText:"Nenhum evento",eventText:"Evento",eventsText:"Eventos",moreEventsText:"Mais {count}",weekText:"Semana {count}",rangeStartLabel:"InÃcio",rangeEndLabel:"Fim",rangeStartHelp:"Escolha",rangeEndHelp:"Escolha",filterEmptyText:"Nenhum resultado",filterPlaceholderText:"Pesquisa"},ua=q(ha,{setText:"Selecionar",dateFormat:"DD/MM/YYYY",nowText:"Agora",allDayText:"Dia inteiro",filterPlaceholderText:"Buscar"}),ma={setText:"Setare",cancelText:"Anulare",clearText:"Återgere",closeText:"Ãnchidere",selectedText:"{count} selectat",selectedPluralText:"{count} selectate",dateFormat:"DD.MM.YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD., D MMM YYYY",dateWheelFormat:"|DDD. D MMM|",dayNames:["DuminicÄ","Luni","MarÈi","Miercuri","Joi","Vineri","SâmbÄtÄ"],dayNamesShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayNamesMin:["D","L","M","M","J","V","S"],dayText:" Ziua",hourText:" Ore ",minuteText:"Minute",fromText:"Start",monthNames:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthNamesShort:["Ian.","Feb.","Mar.","Apr.","Mai","Iun.","Iul.","Aug.","Sept.","Oct.","Nov.","Dec."],monthText:"Luna",secondText:"Secunde",timeFormat:"HH:mm",yearText:"Anul",toText:"Final",nowText:"Acum",amText:"am",pmText:"pm",todayText:"AstÄzi",eventText:"Eveniment",eventsText:"Evenimente",allDayText:"ToatÄ ziua",noEventsText:"Niciun eveniment",moreEventsText:"ÃncÄ unul",moreEventsPluralText:"ÃncÄ {count}",firstDay:1,dateText:"Data",timeText:"Ora",weekText:"SÄptÄmâna {count}",rangeStartLabel:"Start",rangeEndLabel:"Final",rangeStartHelp:"Selectare",rangeEndHelp:"Selectare",filterEmptyText:"Niciun rezultat",filterPlaceholderText:"CÄutare"},pa={setText:"УÑÑановиÑÑ",cancelText:"ÐÑмена",clearText:"ÐÑиÑÑиÑÑ",closeText:"ÐакÑÑÑÑ",selectedText:"{count} ÐÑбÑаÑÑ",dateFormat:"DD.MM.YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD, D MMM YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["воÑкÑеÑенÑе","понеделÑник","вÑоÑник","ÑÑеда","ÑеÑвеÑг","пÑÑниÑа","ÑÑббоÑа"],dayNamesShort:["вÑ","пн","вÑ","ÑÑ","ÑÑ","пÑ","Ñб"],dayNamesMin:["в","п","в","Ñ","Ñ","п","Ñ"],dayText:"ÐенÑ",hourText:"ЧаÑ",minuteText:"ÐинÑÑ",fromText:"ÐаÑало",monthNames:["ЯнваÑÑ","ФевÑалÑ","ÐаÑÑ","ÐпÑелÑ","Ðай","ÐÑнÑ","ÐÑлÑ","ÐвгÑÑÑ","СенÑÑбÑÑ","ÐкÑÑбÑÑ","ÐоÑбÑÑ","ÐекабÑÑ"],monthNamesShort:["Янв","Фев","ÐаÑ","ÐпÑ","Ðай","ÐÑн","ÐÑл","Ðвг","Сен","ÐкÑ","ÐоÑ","Ðек"],monthText:"ÐеÑÑÑ",secondText:"СекÑнд",timeFormat:"HH:mm",yearText:"Ðод",toText:"ÐонеÑ",nowText:"СейÑаÑ",amText:"am",pmText:"pm",todayText:"CегоднÑ",firstDay:1,dateText:"ÐаÑа",timeText:"ÐÑемÑ",allDayText:"ÐеÑÑ Ð´ÐµÐ½Ñ",noEventsText:"ÐÐµÑ ÑобÑÑий",eventText:"ÐеÑопÑиÑÑиÑ",eventsText:"ÐеÑопÑиÑÑиÑ",moreEventsText:"ÐÑÑ {
277count}",weekText:"ÐÐµÐ´ÐµÐ»Ñ {count}",rangeStartLabel:"ÐаÑало",rangeEndLabel:"ÐонеÑ",rangeStartHelp:"вÑбиÑаÑÑ",rangeEndHelp:"вÑбиÑаÑÑ",filterEmptyText:"ÐÐµÑ ÑезÑлÑÑаÑов",filterPlaceholderText:"ÐоиÑк"},_a=q(pa,{cancelText:"ÐÑмениÑÑ",clearText:"ÐÑиÑÑиÑÑr",selectedText:"{count} ÐÑбÑаÑÑ",monthNamesShort:["Янв.","ФевÑ.","ÐаÑÑ","ÐпÑ.","Ðай","ÐÑнÑ","ÐÑлÑ","Ðвг.","СенÑ.","ÐкÑ.","ÐоÑб.","Ðек."],filterEmptyText:"ÐÑÑкага вÑнÑкÑ",filterPlaceholderText:"ÐоÑÑк"}),va={setText:"Zadaj",cancelText:"ZruÅ¡iÅ¥",clearText:"VymazaÅ¥",closeText:"ZavrieÅ¥",selectedText:"OznaÄený: {count}",dateFormat:"D.M.YYYY",dateFormatFull:"DDDD D. MMMM YYYY",dateFormatLong:"DDD D. MMM YYYY",dateWheelFormat:"|DDD D. MMM|",dayNames:["Nedeľa","Pondelok","Utorok","Streda","Å tvrtok","Piatok","Sobota"],dayNamesShort:["Ne","Po","Ut","St","Å t","Pi","So"],dayNamesMin:["N","P","U","S","Å ","P","S"],dayText:"ÄeÅ",hourText:"Hodiny",minuteText:"Minúty",fromText:"ZaÄiatok",monthNames:["Január","Február","Marec","AprÃl","Máj","Jún","Júl","August","September","Október","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Máj","Jún","Júl","Aug","Sep","Okt","Nov","Dec"],monthText:"Mesiac",secondText:"Sekundy",timeFormat:"H:mm",yearText:"Rok",toText:"Koniec",nowText:"Teraz",amText:"am",pmText:"pm",todayText:"Dnes",firstDay:1,dateText:"Datum",timeText:"Äas",allDayText:"Celý deÅ",noEventsText:"Žiadne udalosti",eventText:"UdalostÃ",eventsText:"Udalosti",moreEventsText:"{count} ÄalÅ¡ia",moreEventsPluralText:"{count} ÄalÅ¡ie",weekText:"{count}. týždeÅ",rangeStartLabel:"ZaÄiatok",rangeEndLabel:"Koniec",rangeStartHelp:"VybraÅ¥",rangeEndHelp:"VybraÅ¥",filterEmptyText:"Žiadne výsledky",filterPlaceholderText:"Vyhľadávanie"},fa={setText:"ÐоÑÑави",cancelText:"ÐÑкажи",clearText:"ÐбÑиÑи",selectedText:"{count} изабÑана",dateFormat:"DD.MM.YYYY",dateFormatFull:"DDDD, D. MMMM YYYY.",dateFormatLong:"DDD, D. MMM YYYY.",dateWheelFormat:"|DDD D. MMM|",dayNames:["ÐедеÑа","ÐонедеÑак","УÑоÑак","СÑеда","ЧеÑвÑÑак","ÐеÑак","СÑбоÑа"],dayNamesShort:["Ðед","Ðон","УÑо","СÑе","ЧеÑ","ÐеÑ","СÑб"],dayNamesMin:["Ðе","Ðо","УÑ","СÑ","Че","Ðе","СÑ"],dayText:"Ðан",hourText:"ЧаÑ",minuteText:"ÐинÑÑ",fromText:"Ðд",monthNames:["ÐанÑаÑ","ФебÑÑаÑ","ÐаÑÑ","ÐпÑил","ÐаÑ","ÐÑн","ÐÑл","ÐвгÑÑÑ","СепÑембаÑ","ÐкÑобаÑ","ÐовембаÑ","ÐеÑембаÑ"],monthNamesShort:["Ðан","Феб","ÐаÑ","ÐпÑ","ÐаÑ","ÐÑн","ÐÑл","Ðвг","Сеп","ÐкÑ","Ðов","ÐеÑ"],monthText:"меÑеÑ",secondText:"СекÑнд",timeFormat:"HH:mm",yearText:"година",toText:"Ðо",nowText:"Ñада",pmText:"pm",amText:"am",firstDay:1,dateText:"ÐаÑÑм",timeText:"вÑеме",todayText:"ÐанаÑ",closeText:"ÐаÑвоÑи",eventText:"ÐогаÑаÑ",eventsText:"ÐогаÑаÑи",allDayText:"Цео дан",noEventsText:"Ðема догаÑаÑа",moreEventsText:"ÐÐ¾Ñ {count}",weekText:"{count}. недеÑа",rangeStartLabel:"Ðд",rangeEndLabel:"Ðо",rangeStartHelp:"ÐзабеÑиÑе",rangeEndHelp:"ÐзабеÑиÑе",filterEmptyText:"Ðез ÑезÑлÑаÑа",filterPlaceholderText:"ÐÑеÑÑага"},ga={setText:"OK",cancelText:"Avbryt",clearText:"Klara",closeText:"Stäng",selectedText:"{count} vald",dateFormat:"YYYY-MM-DD",dateFormatFull:"DDDD D MMMM YYYY",dateFormatLong:"DDD D MMM. YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["Söndag","MÃ¥ndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesShort:["Sö","MÃ¥","Ti","On","To","Fr","Lö"],dayNamesMin:["S","M","T","O","T","F","L"],dayText:"Dag",hourText:"Timme",minuteText:"Minut",fromText:"Start",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],monthText:"MÃ¥nad",secondText:"Sekund",timeFormat:"HH:mm",yearText:"Ã
r",toText:"Slut",nowText:"Nu",pmText:"pm",amText:"am",todayText:"I dag",firstDay:1,dateText:"Datum",timeText:"Tid",allDayText:"Heldag",noEventsText:"Inga aktiviteter",eventText:"Händelse",eventsText:"Händelser",moreEventsText:"{count} till",weekText:"Vecka {count}",rangeStartLabel:"Start",rangeEndLabel:"Slut",rangeStartHelp:"Välj",rangeEndHelp:"Välj",filterEmptyText:"Inga träffar",filterPlaceholderText:"Sök"},xa={setText:"à¸à¸±à¹à¸à¸à¹à¸²",cancelText:"ยà¸à¹à¸¥à¸´à¸",clearText:"ลà¹à¸²à¸",closeText:"à¸à¸´à¸",selectedText:"{count} à¹à¸¥à¸·à¸à¸",dateFormat:"DD/MM/YYYY",dateFormatFull:"วัà¸DDDDà¸à¸µà¹ D MMMM YYYY",dateFormatLong:"วัà¸DDDà¸à¸µà¹ D MMM YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["à¸à¸²à¸à¸´à¸à¸¢à¹","à¸à¸±à¸à¸à¸£à¹","à¸à¸±à¸à¸à¸²à¸£","à¸à¸¸à¸","à¸à¸¤à¸«à¸±à¸ªà¸à¸à¸µ","ศุà¸à¸£à¹","à¹à¸ªà¸²à¸£à¹"],dayNamesShort:["à¸à¸².","à¸.","à¸.","à¸.","à¸à¸¤.","ศ.","ส."],dayNamesMin:["à¸à¸².","à¸.","à¸.","à¸.","à¸à¸¤.","ศ.","ส."],dayText:"วัà¸",hourText:"à¸à¸±à¹à¸§à¹à¸¡à¸",minuteText:"à¸à¸²à¸à¸µ",fromText:"à¸à¸²à¸",monthNames:["มà¸à¸£à¸²à¸à¸¡","à¸à¸¸à¸¡à¸ าà¸à¸±à¸à¸à¹","มีà¸à¸²à¸à¸¡","à¹à¸¡à¸©à¸²à¸¢à¸","à¸à¸¤à¸©à¸ าà¸à¸¡","มิà¸à¸¸à¸à¸²à¸¢à¸","à¸à¸£à¸à¸à¸²à¸à¸¡","สิà¸à¸«à¸²à¸à¸¡","à¸à¸±à¸à¸¢à¸²à¸¢à¸","à¸à¸¸à¸¥à¸²à¸à¸¡","à¸à¸¤à¸¨à¸à¸´à¸à¸²à¸¢à¸","à¸à¸±à¸à¸§à¸²à¸à¸¡"],monthNamesShort:["ม.à¸.","à¸.à¸.","มี.à¸.","à¹à¸¡.ย.","à¸.à¸.","มิ.ย.","à¸.à¸.","ส.à¸.","à¸.ย.","à¸.à¸.","à¸.ย.","à¸.à¸."],monthText:"à¹à¸à¸·à¸à¸",secondText:"วิà¸à¸²à¸à¸µ",timeFormat:"HH:mm",yearText:"à¸à¸µ",toText:"à¸à¸¶à¸",nowText:"à¸à¸à¸à¸à¸µà¹",pmText:"pm",amText:"am",firstDay:0,dateText:"วัà¸",timeText:"à¹à¸§à¸¥à¸²",todayText:"วัà¸à¸à¸µà¹",eventText:"à¹à¸«à¸à¸¸à¸à¸²à¸£à¸à¹",eventsText:"à¹à¸«à¸à¸¸à¸à¸²à¸£à¸à¹",allDayText:"à¸à¸¥à¸à¸à¸§à¸±à¸",noEventsText:"à¹à¸¡à¹à¸¡à¸µà¸à¸´à¸à¸à¸£à¸£à¸¡",moreEventsText:"à¸à¸µà¸ {c
277ount} à¸à¸´à¸à¸à¸£à¸£à¸¡",weekText:"สัà¸à¸à¸²à¸«à¹à¸à¸µà¹ {count}",rangeStartLabel:"à¸à¸²à¸",rangeEndLabel:"à¸à¸¶à¸",rangeStartHelp:"à¹à¸¥à¸·à¸à¸",rangeEndHelp:"à¹à¸¥à¸·à¸à¸",filterEmptyText:"à¹à¸¡à¹à¸¡à¸µà¸à¸¥à¸¥à¸±à¸à¸à¹",filterPlaceholderText:"à¸à¹à¸à¸«à¸²"},ya={setText:"Seç",cancelText:"İptal",clearText:"Temizleyin",closeText:"Kapatmak",selectedText:"{count} seçilmiÅ",dateFormat:"DD.MM.YYYY",dateFormatFull:"D MMMM DDDD YYYY",dateFormatLong:"D MMMM DDD, YYYY",dateWheelFormat:"|D MMM DDD|",dayNames:["Pazar","Pazartesi","Salı","ÃarÅamba","PerÅembe","Cuma","Cumartesi"],dayNamesShort:["Paz","Pzt","Sal","Ãar","Per","Cum","Cmt"],dayNamesMin:["P","P","S","Ã","P","C","C"],dayText:"Gün",hourText:"Saat",minuteText:"Dakika",fromText:"BaÅla",monthNames:["Ocak","Åubat","Mart","Nisan","Mayıs","Haziran","Temmuz","AÄustos","Eylül","Ekim","Kasım","Aralık"],monthNamesShort:["Oca","Åub","Mar","Nis","May","Haz","Tem","AÄu","Eyl","Eki","Kas","Ara"],monthText:"Ay",secondText:"Saniye",timeFormat:"HH:mm",yearText:"Yıl",toText:"Son",nowText:"Åimdi",pmText:"pm",amText:"am",todayText:"Bugün",firstDay:1,dateText:"Tarih",timeText:"Zaman",allDayText:"Tüm gün",noEventsText:"Etkinlik Yok",eventText:"Etkinlik",eventsText:"Etkinlikler",moreEventsText:"{count} tane daha",weekText:"{count}. Hafta",rangeStartLabel:"BaÅla",rangeEndLabel:"Son",rangeStartHelp:"Seç",rangeEndHelp:"Seç",filterEmptyText:"Sonuç Yok",filterPlaceholderText:"Arayın"},Ta={setText:"вÑÑановиÑи",cancelText:"вÑдмÑна",clearText:"оÑиÑÑиÑи",closeText:"ÐакÑиÑи",selectedText:"{count} вибÑанÑ",dateFormat:"DD.MM.YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD, D MMM. YYYY",dateWheelFormat:"|DDD D MMM.|",dayNames:["недÑлÑ","понедÑлок","вÑвÑоÑок","ÑеÑеда","ÑеÑвеÑ","пâÑÑниÑÑ","ÑÑбоÑа"],dayNamesShort:["нед","пнд","вÑв","ÑÑд","ÑÑв","пÑн","ÑбÑ"],dayNamesMin:["Ðд","Ðн","ÐÑ","СÑ","ЧÑ","ÐÑ","Сб"],dayText:"ÐенÑ",hourText:"година",minuteText:"Ñ
вилина",fromText:"вÑд",monthNames:["СÑÑенÑ","ÐÑÑий","ÐеÑезенÑ","ÐвÑÑенÑ","ТÑавенÑ","ЧеÑвенÑ","ÐипенÑ","СеÑпенÑ","ÐеÑеÑенÑ","ÐовÑенÑ","ÐиÑÑопад","ÐÑÑденÑ"],monthNamesShort:["СÑÑ","ÐÑÑ","ÐеÑ","ÐвÑ","ТÑа","ЧеÑ","Ðип","СеÑ","ÐеÑ","Ðов","ÐиÑ","ÐÑÑ"],monthText:"ÐÑÑÑÑÑ",secondText:"СекÑнд",timeFormat:"H:mm",yearText:"Ð Ñк",toText:"кÑнеÑÑ",nowText:"ÐаÑаз",pmText:"pm",amText:"am",firstDay:1,dateText:"даÑа",timeText:"ЧаÑ",todayText:"СÑогоднÑ",eventText:"подÑÑ",eventsText:"подÑÑ",allDayText:"УвеÑÑ Ð´ÐµÐ½Ñ",noEventsText:"ÐÐ¾Ð´Ð½Ð¾Ñ Ð¿Ð¾Ð´ÑÑ",moreEventsText:"Ñа Ñе {count}",weekText:"{count} ÑижденÑ",rangeStartLabel:"вÑд",rangeEndLabel:"кÑнеÑÑ",rangeEndHelp:"ÐбÑаÑи",rangeStartHelp:"ÐбÑаÑи",filterEmptyText:"ÐÑÑкого ÑезÑлÑÑаÑÑ",filterPlaceholderText:"ÐоÑÑк"},ba={setText:"Äặt",cancelText:"Há»§y bò",clearText:"Xóa",closeText:"Äóng",selectedText:"{count} chá»n",dateFormat:"DD/MM/YYYY",dateFormatFull:"DDDD, D MMMM YYYY",dateFormatLong:"DDD D, MMM YYYY",dateWheelFormat:"|DDD D MMM|",dayNames:["Chá»§ Nháºt","Thứ Hai","Thứ Ba","Thứ Tư","Thứ NÄm","Thứ Sáu","Thứ Bảy"],dayNamesShort:["CN","T2","T3","T4","T5","T6","T7"],dayNamesMin:["CN","T2","T3","T4","T5","T6","T7"],dayText:"",hourText:"Giá»",minuteText:"Phút",fromText:"Từ",monthNames:["Tháng Má»t","Tháng Hai","Tháng Ba","Tháng Tư","Tháng NÄm","Tháng Sáu","Tháng Bảy","Tháng Tám","Tháng ChÃn","Tháng Mưá»i","Tháng Mưá»i Má»t","Tháng Mưá»i Hai"],monthNamesShort:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],monthText:"Tháng",secondText:"Giây",timeFormat:"H:mm",yearText:"NÄm",toText:"Tá»i",nowText:"Bây giá»",pmText:"pm",amText:"am",firstDay:0,dateText:"Ngà y",timeText:"HôÍi",todayText:"Hôm nay",eventText:"Sá»± kiá»n",eventsText:"Sá»± kiá»n",allDayText:"Cả ngà y",noEventsText:"Không có sá»± kiá»n",moreEventsText:"{count} thẻ khác",weekText:"Tuần {count}",rangeStartLabel:"Từ",rangeEndLabel:"Tá»i",rangeStartHelp:"Chá»n",rangeEndHelp:"Chá»n",filterEmptyText:"Không kết quả",filterPlaceholderText:"Tìm kiếm"},Da={setText:"ç¡®å®",cancelText:"åæ¶",clearText:"æç¡®",closeText:"å
³é",selectedText:"{count} é",dateFormat:"YYYYå¹´MæDæ¥",dateFormatFull:"YYYYå¹´MæDæ¥",dateFormatLong:"YYYYå¹´MæDæ¥",dateWheelFormat:"|MæDæ¥ DDD|",dayNames:["卿¥","å¨ä¸","å¨äº","å¨ä¸","å¨å","å¨äº","å¨å
"],dayNamesShort:["æ¥","ä¸","äº","ä¸","å","äº","å
"],dayNamesMin:["æ¥","ä¸","äº","ä¸","å","äº","å
"],dayText:"æ¥",hourText:"æ¶",minuteText:"å",fromText:"å¼å§æ¶é´",monthNames:["1æ","2æ","3æ","4æ","5æ","6æ","7æ","8æ","9æ","10æ","11æ","12æ"],monthNamesShort:["ä¸","äº","ä¸","å","äº","å
","ä¸","å
«","ä¹","å","åä¸","åäº"],monthText:"æ",secondText:"ç§",timeFormat:"H:mm",yearText:"å¹´",toText:"ç»ææ¶é´",nowText:"å½å",pmText:"ä¸å",amText:"ä¸å",yearSuffix:"å¹´",monthSuffix:"æ",daySuffix:"æ¥",todayText:"ä»å¤©",dateText:"æ¥",timeText:"æ¶é´",allDayText:"å
¨å¤©",noEventsText:"æ äºä»¶",eventText:"æ´»å¨",eventsText:"æ´»å¨",moreEventsText:"ä» {count} ä»¶",weekText:"第 {count} é±",rangeStartLabel:"å¼å§æ¶é´",rangeEndLabel:"ç»ææ¶é´",rangeStartHelp:"éå",rangeEndHelp:"éå",filterEmptyText:"没æç»æ",filterPlaceholderText:"æç´¢"};
277function Sa(e){return e<-1e-7?Math.ceil(e-1e-7):Math.floor(e+1e-7);}function Ma(e,t,a){var n,i,s=[0,0,0];n=e>1582||1582===e&&t>10||1582===e&&10===t&&a>14?Sa(1461*(e+4800+Sa((t-14)/12))/4)+Sa(367*(t-2-12*Sa((t-14)/12))/12)-Sa(3*Sa((e+4900+Sa((t-14)/12))/100)/4)+a-32075:367*e-Sa(7*(e+5001+Sa((t-9)/7))/4)+Sa(275*t/9)+a+1729777;var r=Sa(((i=n-1948440+10632)-1)/10631),o=Sa((10985-(i=i-10631*r+354))/5316)*Sa(50*i/17719)+Sa(i/5670)*Sa(43*i/15238);return i=i-Sa((30-o)/15)*Sa(17719*o/50)-Sa(o/16)*Sa(15238*o/43)+29,t=Sa(24*i/709),a=i-Sa(709*t/24),e=30*r+o-30,s[2]=a,s[1]=t,s[0]=e,s;}var wa={getYear:function(e){return Ma(e.getFullYear(),e.getMonth()+1,e.getDate())[0];},getMonth:function(e){return --Ma(e.getFullYear(),e.getMonth()+1,e.getDate())[1];},getDay:function(e){return Ma(e.getFullYear(),e.getMonth()+1,e.getDate())[2];},getDate:function(e,t,a,n,i,s,r){t<0&&(e+=Math.floor(t/12),t=t%12?12+t%12:0),t>11&&(e+=Math.floor(t/12),t%=12);var o=function(e,t,a){var n,i,s,r,o,l=new Array(3),c=Sa((11*e+3)/30)+354*e+30*t-Sa((t-1)/2)+a+1948440-385;return c>2299160?(s=Sa(4*(n=c+68569)/146097),n-=Sa((146097*s+3)/4),r=Sa(4e3*(n+1)/1461001),n=n-Sa(1461*r/4)+31,i=Sa(80*n/2447),a=n-Sa(2447*i/80),t=i+2-12*(n=Sa(i/11)),e=100*(s-49)+r+n):(o=Sa(((i=c+1402)-1)/1461),s=Sa(((n=i-1461*o)-1)/365)-Sa(n/1461),i=Sa(80*(r=n-365*s+30)/2447),a=r-Sa(2447*i/80),t=i+2-12*(r=Sa(i/11)),e=4*o+s+r-4716),l[2]=a,l[1]=t,l[0]=e,l;}(e,+t+1,a);return new Date(o[0],o[1]-1,o[2],n||0,i||0,s||0,r||0);},getMaxDayOfMonth:function(e,t){t<0&&(e+=Math.floor(t/12),t=t%12?12+t%12:0),t>11&&(e+=Math.floor(t/12),t%=12);return [30,29,30,29,30,29,30,29,30,29,30,29][t]+(11===t&&(11*e+14)%30<11?1:0);}},ka={},Ca={ar:Ot,bg:zt,ca:At,cs:Rt,da:Wt,de:Ut,el:jt,en:ka,"en-GB":Jt,es:Bt,fa:Zt,fi:Qt,fr:$t,he:ea,hi:ta,hr:aa,hu:na,it:ia,ja:sa,ko:ra,lt:oa,nl:la,no:ca,pl:da,"pt-BR":ua,"pt-PT":ha,ro:ma,ru:pa,"ru-UA":_a,sk:va,sr:fa,sv:ga,th:xa,tr:ya,ua:Ta,vi:ba,zh:Da},Ya=new Date(1970,0,1);function Ia(e){return !!e._mbsc;}var Ea={amText:"am",dateFormat:"MM/DD/YYYY",dateFormatFull:"DDDD, MMMM D, YYYY",dateFormatLong:"D DDD MMM YYYY",dateText:"Date",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesMin:["S","M","T","W","T","F","S"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daySuffix:"",dayText:"Day",firstDay:0,fromText:"Start",getDate:Ja,hourText:"Hour",minuteText:"Minute",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],monthSuffix:"",monthText:"Month",pmText:"pm",quarterText:"Q{count}",secondText:"Second",separator:" ",shortYearCutoff:"+10",timeFormat:"h:mm A",timeText:"Time",toText:"End",todayText:"Today",weekText:"Week {count}",yearSuffix:"",yearText:"Year",getMonth:function(e){return e.getMonth();},getDay:function(e){return e.getDate();},getYear:function(e){return e.getFullYear();},getMaxDayOfMonth:function(e,t){return 32-new Date(e,t,32,12).getDate();},getWeekNumber:function(e){var t=new Date(+e);t.setHours(0,0,0),t.setDate(t.getDate()+4-(t.getDay()||7));var a=new Date(t.getFullYear(),0,1);return Math.ceil(((t-a)/864e5+1)/7);}},Na=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[T\s](\d{2}):?(\d{2})(?::?(\d{2})(?:\.(\d{3}))?)?((Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/,Ha=/^((\d{2}):(\d{2})(?::(\d{2})(?:\.(\d{3}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function Fa(e,t,a){var n,i,s={y:1,m:2,d:3,h:4,i:5,s:6,u:7,tz:8};if(a)for(var r=0,o=Object.keys(s);r<o.length;r++)(i=e[s[n=o[r]]-t])&&(a[n]="tz"===n?i:1);}function La(e,t){var a=qa(e,t);return a.setHours(0,0,0,0),a;}function Pa(e,t){var a=qa(e,t);return a.setHours(23,59,59,999),a;}function Va(e,t,a,n,i){return (!t&&!i||e.exclusiveEndDates)&&a&&n&&a<n?qa(t?j:e,+n-1):n;}function Oa(e){return e.getFullYear()+"-"+oe(e.getMonth()+1)+"-"+oe(e.getDate());}function za(e,t){return Ia(e)&&!t?e.createDate(e.getFullYear(),e.getMonth(),e.getDate()):Ja(e.getFullYear(),e.getMonth(),e.getDate());}function Aa(e){return Date.UTC(e.getFullYear(),e.getMonth(),e.getDate());}function Ra(e,t){return le((Aa(t)-Aa(e))/864e5);}function Wa(e,t,a){var n=e.getFullYear(),i=e.getMonth(),s=e.getDay(),r=a===j?t.firstDay:a;return new Date(n,i,r-(r-s>0?7:0)-s+e.getDate());}function Ua(e,t){return e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate();}function ja(e,t,a){return a.getYear(e)===a.getYear(t)&&a.getMonth(e)===a.getMonth(t);}function Ja(e,t,a,n,i,s,r){var o=new Date(e,t,a,n||0,i||0,s||0,r||0);return 23===o.getHours()&&0===(n||0)&&o.setHours(o.getHours()+2),o;}function Ba(e){return e.getTime;}function Ka(e,t){return qa(e,t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds());}function Ga(e){return e?new Date(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()):e;}function qa(e,t,a,n,i,s,r,o){return null===t?null:t&&(Q(t)||$(t))&&te(a)?Xa(t,e):e&&e.timezonePlugin?e.timezonePlugin.createDate(e,t,a,n,i,s,r,o):ae(t)?new Date(t):te(t)?new Date():new Date(t,a||
2770,n||1,i||0,s||0,r||0,o||0);}function Xa(e,t,a,n,i){var s;if($(e)&&(e=e.trim()),!e)return null;var r=t&&t.timezonePlugin;if(r&&!i){var o=Ia(e)?e:r.parse(e,t);return o.setTimezone(t.displayTimezone),o;}if(Ba(e))return e;if(e._isAMomentObject)return e.toDate();if(Q(e))return new Date(e);s=Ha.exec(e);var l=t&&t.defaultValue,c=Xa((X(l)?l[0]:l)||new Date()),d=c.getFullYear(),h=c.getMonth(),u=c.getDate();return s?(Fa(s,2,n),new Date(d,h,u,s[2]?+s[2]:0,s[3]?+s[3]:0,s[4]?+s[4]:0,s[5]?+s[5]:0)):(s=Na.exec(e))?(Fa(s,0,n),new Date(s[1]?+s[1]:d,s[2]?s[2]-1:h,s[3]?+s[3]:u,s[4]?+s[4]:0,s[5]?+s[5]:0,s[6]?+s[6]:0,s[7]?+s[7]:0)):$a(a,e,t);}function Za(e,t,a,n,i){var s=g&&window.moment||t.moment,r=t.timezonePlugin&&(t.dataTimezone||t.displayTimezone),o=r?"iso8601":t.returnFormat;if(r&&i)return function(e,t,a){var n=a||t.dataTimezone||t.displayTimezone,i=t.timezonePlugin;if(n&&i&&Ia(e)){var s=e.clone();return s.setTimezone(n),s.toISOString();}return e;}(e,t);if(e){if("moment"===o&&s)return s(e);if("locale"===o)return Qa(a,e,t);if("iso8601"===o)return function(e,t){var a="",n="";return e&&(t.h&&(n+=oe(e.getHours())+":"+oe(e.getMinutes()),t.s&&(n+=":"+oe(e.getSeconds())),t.u&&(n+="."+oe(e.getMilliseconds(),3)),t.tz&&(n+=t.tz)),t.y?(a+=e.getFullYear(),t.m&&(a+="-"+oe(e.getMonth()+1),t.d&&(a+="-"+oe(e.getDate())),t.h&&(a+="T"+n))):t.h&&(a=n)),a;}(e,n);}return e;}function Qa(e,t,a){var n,i,s="",r=!1,o=function(t){for(var a=0,i=n;i+1<e.length&&e.charAt(i+1)===t;)a++,i++;return a;},l=function(e){var t=o(e);return n+=t,t;},c=function(e,t,a){var n=""+t;if(l(e))for(;n.length<a;)n="0"+n;return n;},d=function(e,t,a,n){return 3===l(e)?n[t]:a[t];};for(n=0;n<e.length;n++)if(r)"'"!==e.charAt(n)||l("'")?s+=e.charAt(n):r=!1;else switch(e.charAt(n)){case "D":s+=o("D")>1?d("D",t.getDay(),a.dayNamesShort,a.dayNames):c("D",a.getDay(t),2);break;case "M":s+=o("M")>1?d("M",a.getMonth(t),a.monthNamesShort,a.monthNames):c("M",a.getMonth(t)+1,2);break;case "Y":i=a.getYear(t),s+=3===l("Y")?i:(i%100<10?"0":"")+i%100;break;case "h":var h=t.getHours();s+=c("h",h>12?h-12:0===h?12:h,2);break;case "H":s+=c("H",t.getHours(),2);break;case "m":s+=c("m",t.getMinutes(),2);break;case "s":s+=c("s",t.getSeconds(),2);break;case "a":s+=t.getHours()>11?a.pmText:a.amText;break;case "A":s+=t.getHours()>11?a.pmText.toUpperCase():a.amText.toUpperCase();break;
277case "'":l("'")?s+="'":r=!0;break;default:s+=e.charAt(n);}return s;}function $a(e,t,a){var n=h({},Ea,a),i=Xa(n.defaultValue||new Date());if(!t)return i;e||(e=n.dateFormat+n.separator+n.timeFormat);var s,r=n.shortYearCutoff,o=n.getYear(i),l=n.getMonth(i)+1,c=n.getDay(i),d=i.getHours(),u=i.getMinutes(),m=0,p=-1,_=!1,v=0,f=function(t){for(var a=0,n=s;n+1<e.length&&e.charAt(n+1)===t;)a++,n++;return a;},g=function(e){var t=f(e);return s+=t,t;},x=function(e){var a=g(e),n=new RegExp("^\\d{1,"+(a>=2?4:2)+"}"),i=t.substr(v).match(n);return i?(v+=i[0].length,parseInt(i[0],10)):0;},y=function(e,a,n){for(var i=3===g(e)?n:a,s=0;s<i.length;s++)if(t.substr(v,i[s].length).toLowerCase()===i[s].toLowerCase())return v+=i[s].length,s+1;return 0;},T=function(){v++;};for(s=0;s<e.length;s++)if(_)"'"!==e.charAt(s)||g("'")?T():_=!1;else switch(e.charAt(s)){case "Y":o=x("Y");break;case "M":l=f("M")<2?x("M"):y("M",n.monthNamesShort,n.monthNames);break;case "D":f("D")<2?c=x("D"):y("D",n.dayNamesShort,n.dayNames);break;case "H":d=x("H");break;case "h":d=x("h");break;case "m":u=x("m");break;case "s":m=x("s");break;case "a":p=y("a",[n.amText,n.pmText],[n.amText,n.pmText])-1;break;case "A":p=y("A",[n.amText,n.pmText],[n.amText,n.pmText])-1;break;
277case "'":g("'")?T():_=!0;break;default:T();}if(o<100){var b=void 0;b=o<=($(r)?(new Date()).getFullYear()%100+parseInt(r,10):+r)?0:-100,o+=(new Date()).getFullYear()-(new Date()).getFullYear()%100+b;}d=-1===p?d:p&&d<12?d+12:p||12!==d?d:0;var D=n.getDate(o,l-1,c,d,u,m);return n.getYear(D)!==o||n.getMonth(D)+1!==l||n.getDay(D)!==c?i:D;}function en(e,t,a){if(e===t)return !0;if(X(e)&&!e.length&&null===t||X(t)&&!t.length&&null===e)return !0;if(null===e||null===t||e===j||t===j)return !1;if($(e)&&$(t))return e===t;var n=a&&a.dateFormat;if(X(e)||X(t)){if(e.length!==t.length)return !1;for(var i=0;i<e.length;i++){var s=e[i],r=t[i];if(!($(s)&&$(r)?s===r:+Xa(s,a,n)==+Xa(r,a,n)))return !1;}return !0;}return +Xa(e,a,n)==+Xa(t,a,n);}function tn(e,t){var a=function(e){return Ia(e)?e.clone():new Date(e);}(e);return a.setDate(a.getDate()+t),a;}function an(e,t,a){return t&&e<t?new Date(t):a&&e>a?new Date(a):e;}g&&"undefined"==typeof Symbol&&(window.Symbol={toPrimitive:"toPrimitive"});var nn={0:"SU",1:"MO",2:"TU",3:"WE",4:"TH",5:"FR",6:"SA"},sn={SU:0,MO:1,TU:2,WE:3,TH:4,FR:5,SA:6},rn={byday:"weekDays",bymonth:"month",bymonthday:"day",bysetpos:"pos",dtstart:"from",freq:"repeat",wkst:"weekStart"};function on(e,t,a,n){var i=Xa(t.start,t.allDay?j:a),s=Xa(t.end,t.allDay?j:a),r=s-i;for(n&&(t.start=i,t.end=s),i=za(i),s=a.exclusiveEndDates?s:za(tn(s,1));i<s||!r;)ln(e,i,t),i=tn(i,1),r=1;}function ln(e,t,a){var n=Oa(t);e[n]||(e[n]=[],e[n].date=za(t,!0)),e[n].push(a);}function cn(e,t,a,n,i,s){var r={};if(i)for(var o=function(e){if(e)return X(e)?e:$(e)?e.split(","):[e];return [];}(i),l=0,c=o;l<c.length;l++)r[Oa(Xa(c[l]))]=!0;if(s)for(var d=0,h=pn(s,e,e,t,a,n);d<h.length;d++)r[Oa(h[d].d)]=!0;return r;}function dn(e){return $(e)||e.getTime||e.toDate?e:e.start||e.date;}function hn(e,t,a){var n=t.original?t.original.start:t.start,i=t.allDay||!n,s=e.timezonePlugin,r=t.timezone||e.dataTimezone||e.displayTimezone;return s&&!i?{dataTimezone:r,displayTimezone:a?r:e.displayTimezone,timezonePlugin:s}:j;}function un(e,t,a,n){for(var i=null,s=0,r=e;s<r.length;s++){var o=r[s];if(o.recurring){var l=Xa(o.start||o.date),c=pn(o.recurring,l,l,t,j,a,o.reccurringException,o.recurringExceptionRule,"first");(!i||c<i)&&(i=c);}else if(o.start&&o.end){var d=Xa(o.start,a,n);Xa(o.end,a,n)>t&&(i=d<=t?t:i&&i<d?i:d);}else{var h=Xa(dn(o),a,n);h>t&&(!i||h<i)&&(i=h);}}return i;}function mn(e,t,a,n){var i=t;e.sort((function(e,t){return Xa(dn(e),a,n)-Xa(dn(t),a,n);}));for(var s=0,r=e;s<r.length;s++){var o=r[s];if(o.recurring){var l=Xa(o.start||o.date),c=pn(o.recurring,l,l,t,j,a,o.reccurringException,o.recurringExceptionRule,"last");c>i&&(i=c);}else if(o.start&&o.end){var d=Xa(o.start,a,n),h=Xa(o.end,a,n);h>i&&Ra(i,d)<=1&&(i=h);}else{var u=Xa(dn(o),a,n);u>i&&Ra(i,u)<=1&&(i=u);}}return i;}function pn(e,t,a,n,i,s,r,o,l){$(e)&&(e=function(e){for(var t={},a=0,n=e.split(";");a<n.length;a++){var i=n[a].split("="),s=i[0].trim().toLowerCase(),r=i[1].trim();t[rn[s]||s]=r;}return t;}(e));for(var c,d,h=s.getYear,u=s.getMonth,m=s.getDay,p=s.getDate,_=s.getMaxDayOfMonth,v=(e.repeat||"").toLowerCase(),f=e.interval||1,g=e.count,x=e.from?Xa(e.from):t||(1!==f||g!==j||"monthly"===v||"yearly"===v?new Date():n),y=za(x),T=h(x),b=u(x),D=m(x),S=a?a.getHours():0,M=a?a.getMinutes():0,w=a?a.getSeconds():0,k=e.until?Xa(e.until):1/0,C=x<n,Y=C?n:za(x),I="first"===l,E="last"===l,N=I||E||!i||k<i?k:i,H=g===j?1/0:g,F=(e.weekDays||nn[x.getDay()]).split(","),L=sn[(e.weekStart||"MO").trim().toUpperCase()],P=e.day,V=e.month,O=X(P)?P.length?P:[D]:((P||D)+"").split(","),z=X(V)?V.length?V:[b]:((V||b+1)+"").split(","),A=[],R=e.pos!==j,W=R?+e.pos:1,U=[],J=i?cn(t,n,i,s,r,o):{},B=!0,K=0,G=0,q=null,Z=n,Q=0,ee=F;Q<ee.length;Q++){var te=ee[Q];U.push(sn[te.trim().toUpperCase()]);}var ae=function(){if(i||(J=cn(d,d,tn(d,1),s,r,o)),!J[Oa(d)]&&d>=Y)if(I)q=!q||d<q?d:q,B=!1;else if(E){var e=Ra(Z,d);Z=d>Z&&e<=1?d:Z,B=e<=1;}else A.push({d,i:G});G++;},ne=function(e,t){for(var a=[],n=0,i=U;n<i.length;n++)for(var s=Wa(e,{firstDay:i[n]});s<t;s.setDate(s.getDate()+7))s.getMonth()===e.getMonth()&&a.push(+s);a.sort();var r=a[W<0?a.length+W:W-1];d=r?new Date(r):t,(d=p(h(d),u(d),m(d),S,M,w))>=x&&(d<=N&&G<H?r&&ae():B=!1);};switch(v){case "daily":for(G=g&&C?de(Ra(x,n)/f):0;B;)(d=p(T,b,D+G*f,S,M,w))<=N&&G<H?ae():B=!1;break;case "weekly":var ie=U,se=Wa(x,{firstDay:L}),re=se.getDay();for(ie.sort((function(e,t){return (e=(e-=re)<0?e+7:e)-(t=(t-=re)<0?t+7:t);}));B;){for(var oe=0,le=ie;oe<le.length;oe++)c=tn(se,(te=le[oe])<L?te-L+7:te-L),(d=p(h(c),u(c),m(c)+7*K*f,S,M,w))<=N&&G<H?d>=y&&ae():B=!1;K++;}break;case "monthly":for(;B;){var ce=_(T,b+K*f);if(R)ne(p(T,b+K*f,1),p(T,b+K*f+1,1));else for(var he=0,ue=O;he<ue.length;he++){var me=ue[he];(d=p(T,b+K*f,(xe=+me)<0?ce+xe+1:xe,S,M,w))<=N&&G<H?ce>=xe&&d>=y&&ae():B=!1;}K++;}break;case "yearly":for(;B;){for(var pe=0,_e=z;pe<_e.length;pe++){var ve=+_e[pe];ce=_(T+K*f,ve-1);if(R)ne(p(T+K*f,ve-1,1),p(T+K*f,ve,1));else for(var fe=0,ge=O;fe<ge.length;fe++){var xe;me=ge[fe];(d=p(T+K*f,ve-1,(xe=+me)<0?ce+xe+1:xe,S,M,w))<=N&&G<H?ce>=xe&&d>=y&&ae():B=!1;}}K++;}}return I?q:E?Z:A;}function _n(e,t,a,n,i){var s={};if(!e)return j;for(var r=0,o=e;r<o.length;r++){var l=o[r],c=hn(n,l,!0),d=hn(n,l),u=dn(l),m=Xa(u,d);if(l.recurring)for(var p=Ha.test(u)?null:Xa(u),_=qa(c,m),v=l.end?Xa(l.end,c):_,f="00:00"===l.end?tn(v,1):v,g=+f-+_,x=tn(t,-1),y=tn(a,1),T=0,b=pn(l.recurring,p,_,x,y,n,l.recurringException,l.recurringExceptionRule);T<b.length;T++){var D=b[T],S=D.d,M=h({},l);if(l.start?M.start=qa(c,S.getFullYear(),S.getMonth(),S.getDate(),_.getHours(),_.getMinutes(),_.getSeconds()):(M.allDay=!0,M.start=qa(j,S.getFullYear(),S.getMonth(),S.getDate())),l.end)if(l.allDay){var w=tn(S,Ra(_,f));M.end=new Date(w.getFullYear(),w.getMonth(),w.getDate(),f.getHours(),f.getMinutes(),f.getSeconds());}else M.end=qa(c,+M.start+g);M.nr=D.i,M.occurrenceId=M.id+"_"+Oa(M.start),M.original=l,M.start&&M.end?on(s,M,n,i):ln(s,S,M);}else l.start&&l.end?on(s,l,n,i):m&&ln(s,m,l);}return s;}var vn=1,fn="multi-year",gn="year",xn="month",yn="page",Tn=296,bn=q(Ea,{dateText:"Date",eventText:"event",eventsText:"events",moreEventsText:"{count} more",nextPageText:"Next page",prevPageText:"Previous page",showEventTooltip:!0,showToday:!0,timeText:"Time"});function Dn(e,t){var a=t.refDate?Xa(t.refDate):Ya,n=t.showCalendar?t.calendarType:t.eventRange,i=(t.showCalendar?"year"===n?1:"week"===n?t.weeks:t.size:t.eventRangeSize)||1,s=t.getDate,r="week"===n?Wa(a,t):a,o=t.getYear(r),l=t.getMonth(r),c=t.getDay(r);switch(n){case "year":return s(o+e*i,0,1);case "week":return s(o,l,c+7*i*e);case "day":return s(o,l,c+i*e);default:return s(o,l+e*i,1);}}function Sn(e,t){var a,n=t.refDate?Xa(t.refDate):Ya,i=t.getYear,s=t.getMonth,r=t.showCalendar?t.calendarType:t.eventRange,o=(t.showCalendar?"year"===r?1:"week"===r?t.weeks:t.size:t.eventRangeSize)||1;switch(r){case "year":a=i(e)-i(n);break;case "week":a=Ra(Wa(n,t),Wa(e,t))/7;break;case "day":a=Ra(n,e);break;case "month":a=s(e)-s(n)+12*(i(e)-i(n));break;default:return j;}return de(a/o);}function Mn(e,t){var a=t.refDate?Xa(t.refDate):Ya;return de((t.getYear(e)-t.getYear(a))/12);}function wn(e,t){var a=t.refDate?Xa(t.refDate):Ya;return t.getYear(e)-t.getYear(a);}function kn(e,t){var a=t.refDate?Xa(t.refDate):Ya;return t.getMonth(e)-t.getMonth(a)+12*(t.getYear(e)-t.getYear(a));}function Cn(e,t){var a=Xa(e.start||e.date),n=Xa(t.start||e.date),i=e.title||e.text,s=t.title||t.text,r=e.order!==j&&t.order!==j,o=r?e.order:a?+a*(e.allDay?1:10):0,l=r?t.order:n?+n*(t.allDay?1:10):0;return o===l?i>s?1:-1:o-l;}function Yn(e,t){return "auto"===e?Math.max(1,Math.min(3,Math.floor(t?t/Tn:1))):e?+e:1;}function In(e,t){return e&&e.slice(0).sort(t||Cn);}var En,Nn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._newProps={},t._setEl=function(e){t._el=e?e._el||e:null;},t;}return d(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.__value;},set:function(e){this.__value=e;},enumerable:!0,configurable:!0}),t.prototype.componentDidMount=function(){this.__init(),this._init(),this._mounted(),this._updated(),this._enhance();},t.prototype.componentDidUpdate=function(){this._updated(),this._enhance();},t.prototype.componentWillUnmount=function(){this._destroy(),this.__destroy();},t.prototype.render=function(){return this._willUpdate(),this._template(this.s,this.state);},t.prototype.getInst=function(){return this;},t.prototype.setOptions=function(e){for(var t in e)this.props[t]=e[t];this.forceUpdate();},t.prototype._safeHtml=function(e){return {__html:e};},t.prototype._init=function(){},t.prototype.__init=function(){},t.prototype._emit=function(e,t){},t.prototype._template=function(e,t){},t.prototype._mounted=function(){},t.prototype._updated=function(){},t.prototype._destroy=function(){},t.prototype.__destroy=function(){},t.prototype._willUpdate=function(){},t.prototype._enhance=function(){var e=this._shouldEnhance;e&&(Ft(!0===e?this._el:e),this._shouldEnhance=!1);},t;}(Ct),Hn=0,Fn={large:992,medium:768,small:576,xlarge:1200,xsmall:0};x&&(En=x.matches,x.addListener((function(e){En=e.matches,I.next();})));var Ln,Pn,Vn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.s={},t.state={},t._mbsc=!0,t._v={version:"5.31.0"},t._uid=++Hn,t._proxyHook=function(e){t._hook(e.type,e);},t;}return d(t,e),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this._el;},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){},t.prototype._hook=function(e,t){var a=this.s;if(t.inst=this,t.type=e,a[e])return a[e](t,this);this._emit(e,t);},t.prototype.__init=function(){var e=this;if(this.constructor.defaults){this._optChange=I.subscribe((function(){e.forceUpdate();}));var t=this.props.modules;if(t)for(var a=0,n=t;a<n.length;a++){var i=n[a];i.init&&i.init(this);}}this._hook("onInit",{});},t.prototype.__destroy=function(){this._optChange!==j&&I.unsubscribe(this._optChange),this._hook("onDestroy",{});},t.prototype._render=function(e,t){},t.prototype._willUpdate=function(){this._merge(),this._render(this.s,this.state);},t.prototype._resp=function(e){var t,a=e.responsive,n=-1,i=this.state.width;if(i===j&&(i=375),a&&i)for(var s=0,r=Object.keys(a);s<r.length;s++){var o=r[s],l=a[o],c=l.breakpoint||Fn[o];i>=c&&c>n&&(t=l,n=c);}return t;},t.prototype._merge=function(){var e,t,a=this.constructor,n=a.defaults,i=this._opt||{},s={};if(this._prevS=this.s||{},n){for(var r in this.props)this.props[r]!==j&&(s[r]=this.props[r]);var o=s.locale||i.locale||k.locale||{},l=s.calendarSystem||o.calendarSystem||i.calendarSystem||k.calendarSystem,c=s.theme||i.theme||k.theme,d=s.themeVariant||i.themeVariant||k.themeVariant;"auto"!==c&&c||(c=Y.theme||""),"dark"!==d&&(!En||"auto"!==d&&d)||!C[c+"-dark"]||(c+="-dark"),s.theme=c;var u=(t=C[c])&&t[a._name];e=h({},n,u,o,k,i,l,s);var p=this._resp(e);this._respProps=p,p&&(e=h({},e,p));}else e=h({},this.props),t=C[e.theme];var _=t&&t.baseTheme;e.baseTheme=_,this.s=e,this._className=e.cssClass||e.class||e.className||"",this._rtl=" mbsc-"+(e.rtl?"rtl":"ltr"),this._theme=" mbsc-"+e.theme+(_?" mbsc-"+_:""),this._touchUi="auto"===e.touchUi||e.touchUi===j?f:e.touchUi,this._hb="ios"!==m||"ios"!==e.theme&&"ios"!==_?"":" mbsc-hb";},t.defaults=j,t._name="",t;}(Nn),On="animationstart",zn="blur",An="change",Rn="click",Wn="contextmenu",Un="dblclick",jn="focus",Jn="focusin",Bn="input",Kn="keydown",Gn="mousedown",qn="mousemove",Xn="mouseup",Zn="mouseenter",Qn="mouseleave",$n="mousewheel",ei="resize",ti="scroll",ai="touchstart",ni="touchmove",ii="touchend",si="touchcancel",ri="wheel",oi=13,li=32,ci=33,di=34,hi=35,ui=36,mi=37,pi=38,_i=39,vi=40,fi=0;function gi(e,t,a){var n,i,s,r,o,l,c,d=0;function h(){i.style.width="100000px",i.style.height="100000px",n.scrollLeft=1e5,n.scrollTop=1e5,l.scrollLeft=1e5,l.scrollTop=1e5;}function u(){var e=+new Date();r=0,c||(e-d>200&&!n.scrollTop&&!n.scrollLeft&&(d=e,h()),r||(r=Me(u)));}function m(){o||(o=Me(p));}function p(){o=0,h(),t();}return fe&&fe.ResizeObserver?(Ln||(Ln=new fe.ResizeObserver((function(e){o||(o=Me((function(){for(var t=0,a=e;t<a.length;t++){var n=a[t];n.target.__mbscResize&&n.target.__mbscResize();}o=0;})));}))),fi++,e.__mbscResize=function(){a?a.run(t):t();},Ln.observe(e)):s=ve&&ve.createElement("div"),s&&(s.innerHTML='<div class="mbsc-resize"><div class="mbsc-resize-i mbsc-resize-x"></div></div><div class="mbsc-resize"><div class="mbsc-resize-i mbsc-resize-y"></div></div>',s.dir="ltr",l=s.childNodes[1],n=s.childNodes[0],i=n.childNodes[0],e.appendChild(s),Fe(n,"scroll",m),Fe(l,"scroll",m),a?a.runOutsideAngular((function(){Me(u);})):Me(u)),{detach:function(){Ln?(fi--,delete e.__mbscResize,Ln.unobserve(e),fi||(Ln=j)):(s&&(Le(n,"scroll",m),Le(l,"scroll",m),e.removeChild(s),we(o),s=j),c=!0);}};}var xi="input,select,textarea,button",yi='textarea,button,input[type="button"],input[type="submit"]',Ti=xi+',[tabindex="0"]',bi={enter:oi,esc:27,space:li},Di=g&&/(iphone|ipod)/i.test(y)&&M>=7&&M<15;function Si(e,t){var a=e.s,n=[],i={cancel:{cssClass:"mbsc-popup-button-close",name:"cancel",text:a.cancelText},close:{cssClass:"mbsc-popup-button-close",name:"close",text:a.closeText},ok:{cssClass:"mbsc-popup-button-primary",keyCode:oi,name:"ok",text:a.okText},set:{cssClass:"mbsc-popup-button-primary",keyCode:oi,name:"set",text:a.setText}};return t&&t.length?(t.forEach((function(t){var a=$(t)?i[t]||{text:t}:t;a.handler&&!$(a.handler)||($(a.handler)&&(a.name=a.handler),a.handler=function(t){e._onButtonClick({domEvent:t,button:a});}),n.push(a);})),n):j;}function Mi(e,t){void 0===t&&(t=0);var a=e._prevModal;return a&&a!==e&&t<10?a.isVisible()?a:Mi(a,t+1):j;}var wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._lastFocus=+new Date(),t._setActive=function(e){t._active=e;},t._setContent=function(e){t._content=e;},t._setLimitator=function(e){t._limitator=e;},t._setPopup=function(e){t._popup=e;},t._setWrapper=function(e){t._wrapper=e;},t._onOverlayClick=function(){t._isOpen&&t.s.closeOnOverlayClick&&!t._preventClose&&t._close("overlay"),t._preventClose=!1;},t._onDocClick=function(e){t.s.showOverlay||e.target===t.s.focusElm||Pn!==t||t._onOverlayClick();},t._onMouseDown=function(e){t.s.showOverlay||(t._target=e.target);},t._onMouseUp=function(e){t._target&&t._popup&&t._popup.contains(t._target)&&!t._popup.contains(e.target)&&(t._preventClose=!0),t._target=!1;},t._onPopupClick=function(){t.s.showOverlay||(t._preventClose=!0);},t._onAnimationEnd=function(e){e.target===t._popup&&(t._isClosing&&(t._onClosed(),t._isClosing=!1,t.state.isReady?t.setState({isReady:!1}):t.forceUpdate()),t._isOpening&&(t._onOpened(),t._isOpening=!1,t.forceUpdate()));},t._onButtonClick=function(e){var a=e.domEvent,n=e.button;t._hook("onButtonClick",{domEvent:a,button:n}),/cancel|close|ok|set/.test(n.name)&&t._close(n.name);},t._onFocus=function(e){var a=+new Date();Pn===t&&e.target.nodeType&&t._ctx.contains(e.target)&&t._popup&&!t._popup.contains(e.target)&&a-t._lastFocus>100&&e.target!==t.s.focusElm&&(t._lastFocus=a,t._active.focus());},t._onKeyDown=function(e){var a=t.s,n=e.keyCode,i=a.focusElm&&!a.focusOnOpen?a.focusElm:j;if((n===li&&!je(e.target,xi)||t._lock&&(n===pi||n===vi))&&e.preventDefault(),a.focusTrap&&9===n){var s=t._popup.querySelectorAll(Ti),r=[],o=-1,l=0,c=-1,d=j;Ke(s,(function(e){e.disabled||!e.offsetHeight&&!e.offsetWidth||(r.push(e),o++,e===t._doc.activeElement&&(c=o));})),e.shiftKey&&(l=o,o=0),c===o?d=i||r[l]:e.target===i&&(d=r[l]),d&&(d.focus(),e.preventDefault());}},t._onContentScroll=function(e){!t._lock||e.type===ni&&"stylus"===e.touches[0].touchType||e.preventDefault();},t._onScroll=function(e){var a=t.s;a.closeOnScroll?t._close("scroll"):(t._hasContext||"anchored"===a.display)&&t.position();},t._onWndKeyDown=function(e){var a=t.s,n=e.keyCode;
277if(Pn===t&&n!==j){if(t._hook("onKeyDown",{keyCode:n}),a.closeOnEsc&&27===n&&t._close("esc"),n===oi&&je(e.target,yi)&&!e.shiftKey)return;if(t._buttons)for(var i=0,s=t._buttons;i<s.length;i++)for(var r=s[i],o=0,l=X(r.keyCode)?r.keyCode:[r.keyCode];o<l.length;o++){var c=l[o];if(!r.disabled&&c!==j&&(c===n||bi[c]===n))return void r.handler(e);}}},t._onResize=function(){var e=t._wrapper,a=t._hasContext;if(e){t._vpWidth=Math.min(e.clientWidth,a?1/0:t._win.innerWidth),t._vpHeight=Math.min(e.clientHeight,a?1/0:t._win.innerHeight),t._maxWidth=t._limitator.offsetWidth,t._maxHeight=t.s.maxHeight!==j||t._vpWidth<768||t._vpHeight<650?t._limitator.offsetHeight:600,t._round=!1===t.s.touchUi||t._popup.offsetWidth<t._vpWidth&&t._vpWidth>t._maxWidth;var n={isLarge:t._round,maxPopupHeight:t._maxHeight,maxPopupWidth:t._maxWidth,target:e,windowHeight:t._vpHeight,windowWidth:t._vpWidth};!1===t._hook("onResize",n)||n.cancel||t.position();}},t;}return d(t,e),t.prototype.open=function(){this._isOpen||this.setState({isOpen:!0});},t.prototype.close=function(){this._close();},t.prototype.isVisible=function(){return !!this._isOpen;},t.prototype.position=function(){if(this._isOpen){var e=this.s,t=this.state,a=this._wrapper,n=this._popup,i=this._hasContext,s=e.anchor,r=e.anchorAlign,o=e.rtl,l=ze(this._scrollCont),c=Oe(this._scrollCont),d=this._vpWidth,h=this._vpHeight,u=this._maxWidth,m=this._maxHeight,p=Math.min(n.offsetWidth,u),_=Math.min(n.offsetHeight,m),v=e.showArrow;this._lock=e.scrollLock&&this._content.scrollHeight<=this._content.clientHeight,i&&(a.style.top=l+"px",a.style.left=c+"px");var f=!1===this._hook("onPosition",{isLarge:this._round,maxPopupHeight:m,maxPopupWidth:u,target:this._wrapper,windowHeight:h,windowWidth:d});if("anchored"!==e.display||f)this.setState({height:h,isReady:!0,showArrow:v,width:d});else{var g=0,x=0,y=G(t.modalLeft||0,8,d-p-8),T=t.modalTop||8,b="bottom",D={},S=v?16:4,M=(a.offsetWidth-d)/2,w=(a.offsetHeight-h)/2;if(i){var k=this._ctx.getBoundingClientRect();x=k.top,g=k.left;}if(s&&this._ctx.contains(s)){var C=s.getBoundingClientRect(),Y=C.top-x,I=C.left-g,E=s.offsetWidth,N=s.offsetHeight;if(y=G(y="start"===r&&!o||"end"===r&&o?I:"end"===r&&!o||"start"===r&&o?I+E-p:I-(p-E)/2,8,d-p-8),T=Y+N+S,D={left:G(I+E/2-y-M,30,p-30)+"px"},T+_+S>h)if(Y-_-S>0)b="top",T=Y-_-S;else{if(!e.disableLeftRight){var H=I-p-8>0;(H||I+E+p+8<=d)&&((T=G(Y-(_-N)/2,8,h-_-8))+_+8>h&&(T=Math.max(h-_-8,0)),D={top:G(Y+N/2-T-w,30,_-30)+"px"},b=H?"left":"right",y=H?I-p:I+E);}}}"top"!==b&&"bottom"!==b||T+_+S>h&&(T=Math.max(h-_-S,0),v=!1),this.setState({arrowPos:D,bubblePos:b,height:h,isReady:!0,modalLeft:y,modalTop:T,showArrow:v,width:d});}}},t.prototype._render=function(e,t){"bubble"===e.display&&(e.display="anchored");var a=e.animation,n=e.display,i=this._prevS,s="anchored"===n,r="inline"!==n,o=e.fullScreen&&r,l=!!r&&(e.isOpen===j?t.isOpen:e.isOpen);if(l&&(e.windowWidth!==i.windowWidth||e.display!==i.display||e.showArrow!==i.showArrow||e.anchor!==i.anchor&&"anchored"===e.display)&&(this._shouldPosition=!0),this._limits={maxHeight:se(e.maxHeight),maxWidth:se(e.maxWidth)},this._style={height:o?"100%":se(e.height),left:s&&t.modalLeft?t.modalLeft+"px":"",maxHeight:se(this._maxHeight||e.maxHeight),maxWidth:se(this._maxWidth||e.maxWidth),top:s&&t.modalTop?t.modalTop+"px":"",width:o?"100%":se(e.width)},this._hasContext="body"!==e.context&&e.context!==j,this._needsLock=Di&&!this._hasContext&&"anchored"!==n&&e.scrollLock,this._isModal=r,this._flexButtons="center"===n||!this._touchUi&&!o&&("top"===n||"bottom"===n),a!==j&&!0!==a)this._animation=$(a)?a:"";else switch(n){case "bottom":this._animation="slide-up";break;case "top":this._animation="slide-down";break;default:this._animation="pop";}e.buttons?e.buttons!==i.buttons&&(this._buttons=Si(this,e.buttons)):this._buttons=j,e.headerText!==i.headerText&&(this._headerText=e.headerText?this._safeHtml(e.headerText):j),e.context!==i.context&&(this._contextChanged=!0),l&&!this._isOpen&&this._onOpen(),!l&&this._isOpen&&this._onClose(),this._isOpen=l,this._isVisible=l||this._isClosing;},t.prototype._updated=function(){var e=this,t=this.s,a=this._wrapper;if(ve&&(this._contextChanged||!this._ctx)&&((n=$(t.context)?ve.querySelector(t.context):t.context)||(n=ve.body),this._ctx=n,this._contextChanged=!1,this._justOpened))return void ue(this,(function(){e.forceUpdate();}));if(a){if(this._justOpened){var n=this._ctx,i=this._hasContext,s=this._doc=Pe(a),r=this._win=Ae(a),o=s.activeElement;if(!this._hasWidth&&t.responsive){var l=Math.min(a.clientWidth,i?1/0:r.innerWidth),c=Math.min(a.clientHeight,i?1/0:r.innerHe
277ight);if(this._hasWidth=!0,l!==this.state.width||c!==this.state.height)return void ue(this,(function(){e.setState({height:c,width:l});}));}if(this._scrollCont=i?n:r,this._observer=gi(a,this._onResize,this._zone),this._prevFocus=t.focusElm||o,n.__mbscModals=(n.__mbscModals||0)+1,this._needsLock){if(!n.__mbscIOSLock){var d=ze(this._scrollCont),h=Oe(this._scrollCont);n.style.left=-h+"px",n.style.top=-d+"px",n.__mbscScrollLeft=h,n.__mbscScrollTop=d,n.classList.add("mbsc-popup-open-ios"),n.parentElement.classList.add("mbsc-popup-open-ios");}n.__mbscIOSLock=(n.__mbscIOSLock||0)+1;}i&&n.classList.add("mbsc-popup-ctx"),t.focusTrap&&Fe(r,Jn,this._onFocus),t.focusElm&&!t.focusOnOpen&&Fe(t.focusElm,Kn,this._onKeyDown),Fe(this._scrollCont,ni,this._onContentScroll,{passive:!1}),Fe(this._scrollCont,ri,this._onContentScroll,{passive:!1}),Fe(this._scrollCont,$n,this._onContentScroll,{passive:!1}),setTimeout((function(){t.focusOnOpen&&o&&o.blur(),ke&&e._animation||e._onOpened(),Fe(s,Gn,e._onMouseDown),Fe(s,Xn,e._onMouseUp),Fe(s,Rn,e._onDocClick);})),this._hook("onOpen",{target:this._wrapper});}this._shouldPosition&&ue(this,(function(){e._onResize();})),this._justOpened=!1,this._justClosed=!1,this._shouldPosition=!1;}},t.prototype._destroy=function(){this._isOpen&&(this._onClosed(),this._unlisten(),Pn===this&&(Pn=Mi(this)));},t.prototype._onOpen=function(){var e=this;ke&&this._animation&&(this._isOpening=!0,this._isClosing=!1),this._justOpened=!0,this._preventClose=!1,this.s.setActive&&Pn!==this&&setTimeout((function(){e._prevModal=Pn,Pn=e;}));},t.prototype._onClose=function(){var e=this;ke&&this._animation?(this._isClosing=!0,this._isOpening=!1):setTimeout((function(){e._onClosed(),e.setState({isReady:!1});})),this._hasWidth=!1,this._unlisten();},t.prototype._onOpened=function(){var e=this.s;if(e.focusOnOpen){var t=e.activeElm,a=t?$(t)?this._popup.querySelector(t)||this._active:t:this._active;a&&a.focus&&a.focus();}Fe(this._win,Kn,this._onWndKeyDown),Fe(this._scrollCont,ti,this._onScroll);},t.prototype._onClosed=function(){var e=this,t=this._ctx,a=this._prevFocus,n=this.s.focusOnClose&&a&&a.focus&&a!==this._doc.activeElement;t.__mbscModals&&t.__mbscModals--,this._justClosed=!0,this._needsLock&&(t.__mbscIOSLock&&t.__mbscIOSLock--,t.__mbscIOSLock||(t.classList.remove("mbsc-popup-open-ios"),t.parentElement.classList.remove("mbsc-popup-open-ios"),t.style.left="",t.style.top="",function(e,t){e.scrollTo?e.scrollTo(t,e.scrollY):e.scrollLeft=t;}(this._scrollCont,t.__mbscScrollLeft||0),function(e,t){e.scrollTo?e.scrollTo(e.scrollX,t):e.scrollTop=t;}(this._scrollCont,t.__mbscScrollTop||0))),this._hasContext&&!t.__mbscModals&&t.classList.remove("mbsc-popup-ctx"),this._hook("onClosed",{focus:n}),n&&a.focus(),setTimeout((function(){Pn===e&&(Pn=Mi(e));}));},t.prototype._unlisten=function(){Le(this._win,Kn,this._onWndKeyDown),Le(this._scrollCont,ti,this._onScroll),Le(this._scrollCont,ni,this._onContentScroll,{passive:!1}),Le(this._scrollCont,ri,this._onContentScroll,{passive:!1}),Le(this._scrollCont,$n,this._onContentScroll,{passive:!1}),Le(this._doc,Gn,this._onMouseDown),Le(this._doc,Xn,this._onMouseUp),Le(this._doc,Rn,this._onDocClick),this.s.focusTrap&&Le(this._win,Jn,this._onFocus),this.s.focusElm&&Le(this.s.focusElm,Kn,this._onKeyDown),this._observer&&(this._observer.detach(),this._observer=null);},t.prototype._close=function(e){this._isOpen&&(this.s.isOpen===j&&this.setState({isOpen:!1}),this._hook("onClose",{source:e}));},t.defaults={buttonVariant:"flat",cancelText:"Cancel",closeOnEsc:!0,closeOnOverlayClick:!0,closeText:"Close",contentPadding:!0,display:"center",focusOnClose:!0,focusOnOpen:!0,focusTrap:!0,maxWidth:600,okText:"Ok",scrollLock:!0,setActive:!0,setText:"Set",showArrow:!0,showOverlay:!0},t;}(Vn);function ki(e,t,a){void 0===a&&(a=0),a>10?(delete e.__mbscTimer,t(e)):(clearTimeout(e.__mbscTimer),e.__mbscTimer=setTimeout((function(){e.getInputElement?e.getInputElement().then((function(n){n?(delete e.__mbscTimer,t(n)):ki(e,t,a+1);})):ki(e,t,a+1);}),10));}function Ci(e,t){if(e)if(function(e){return e.getInputElement||e.tagName&&"ion-input"===e.tagName.toLowerCase();}(e))ki(e,t);else if(e.vInput)t(e.vInput.nativeElement);else if(e._el)t(e._el);else if(e.instance&&e.instance._el)t(e.instance._el);else if(1===e.nodeType)t(e);else{if($(e)){var a=ve.querySelector(e);a&&t(a);}}}function Yi(e,t,a,n){if(!e||1!==e.nodeType)return re;var i,s=function(){(t.s.showOnClick||t.s.showOnFocus)&&p&&!t._allowTyping&&(_.readOnly=!0);},r=function(a){var i=t.s;s(),n&&n(a),!i.showOnClick||i.disabled||t._popup._isVisible&&e===t._popup._prevFocus||setTimeout((function(){t._focusElm=e,t._anchor=i.anch
277or||e,t.open();}));},o=function(e){t.s.showOnClick&&(t.s.showOnFocus&&(t._preventShow=!0),t._allowTyping||e.preventDefault());},l=function(e){t.s.showOnClick&&(t._isOpen?e.keyCode===oi&&t._allowTyping&&e.stopPropagation():(e.keyCode===li&&e.preventDefault(),e.keyCode!==oi&&e.keyCode!==li||r(e)));},c=function(e){s(),t.s.showOnFocus&&(t._preventShow?t._preventShow=!1:r(e));},d=function(){p&&(_.readOnly=i);},h=function(e){a&&a(e);},u=function(){m.document.activeElement===e&&(s(),t._preventShow=!0);},m=Ae(e),p=je(e,"input,select"),_=e;return p&&(_.autocomplete="off",i=_.readOnly),Fe(e,Rn,r),Fe(e,Gn,o),Fe(e,Kn,l),Fe(e,jn,c),Fe(e,zn,d),Fe(e,An,h),Fe(m,jn,u),function(){p&&(_.readOnly=i),Le(e,Rn,r),Le(e,Gn,o),Le(e,Kn,l),Le(e,jn,c),Le(e,zn,d),Le(e,An,h),Le(m,jn,u);};}var Ii=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._nullSupport=!0,t._onInputChange=function(e,a){var n=e.detail||(a!==j?a:e.target.value);if(n!==t._tempValueText&&!t._preventChange){t._readValue(n,!0),t._valueTextChange=n!==t._tempValueText;var i=ee(n)?null:t._get(t._tempValueRep);t.value=i,t._valueChange(i);}t._preventChange=!1;},t._onResize=function(e){t._hook("onResize",e);},t._onWrapperResize=function(){t._wrapper&&t._onResize({windowWidth:t._wrapper.offsetWidth});},t._onPopupClose=function(e){/cancel|esc|overlay|scroll/.test(e.source)&&t._hook("onCancel",{value:t.value,valueText:t._valueText}),t.close();},t._onPopupClosed=function(e){e.focus&&(t._preventShow=!0),t._hook("onClosed",e),t._onClosed();},t._onPopupKey=function(e){13===e.keyCode&&t._onEnterKey(e);},t._onPopupOpen=function(e){e.value=t.value,e.valueText=t._valueText,t._hook("onOpen",e);},t._onButtonClick=function(e){var a=e.domEvent,n=e.button;"set"===n.name&&t.set(),t._popup&&t._popup._onButtonClick({domEvent:a,button:n});},t._setInput=function(e){t._el=e&&e.nativeElement?e.nativeElement:e;},t._setPopup=function(e){t._popup=e;},t._setWrapper=function(e){t._wrapper=e;},t;}return d(t,e),t.prototype.open=function(){this._inst?this._inst.open():this.s.isOpen===j&&this.setState({isOpen:!0});},t.prototype.close=function(){if("inline"!==this.s.display)if(this._inst)this._inst.close();else{var e={value:this.value,valueText:this._valueText};this.s.isOpen===j&&this.setState({isOpen:!1}),this._hook("onClose",e);}},t.prototype.set=function(){this._valueRep=this._copy(this._tempValueRep),this._valueText=this._tempValueText,this._value=this.value=this._get(this._valueRep),this._valueChange(this.value);},t.prototype.position=function(){this._inst?this._inst.position():this._popup&&this._popup.position();},t.prototype.isVisible=function(){return this._inst?this._inst.isVisible():!!this._popup&&this._popup.isVisible();},t.prototype.getVal=function(){return this._nullSupport&&ee(this._value)?this.s.selectMultiple?[]:null:this._get(this._valueRep);},t.prototype.setVal=function(e){this.value=e,this.setState({value:e});},t.prototype.getTempVal=function(){return this._get(this._tempValueRep);},t.prototype.setTempVal=function(e){this._tempValueSet=!0,this._tempValueRep=this._parse(e),this._setOrUpdate(!0);},t.prototype._shouldValidate=function(e,t){return !1;},t.prototype._valueEquals=function(e,t){return e===t;},t.prototype._change=function(e){},t.prototype._render=function(e,t){var a=this,n=this.props||{},i=this._respProps||{},s=this._opt||{},r=this._prevS;this._touchUi||(e.display=i.display||n.display||s.display||k.display||"anchored",e.showArrow=i.showArrow||n.showArrow||!1),"bubble"===e.display&&(e.display="anchored"),this._scrollLock=e.scrollLock;var o=e.isOpen!==j?e.isOpen:t.isOpen,l=e.modelValue!==j?e.modelValue:e.value,c=l!==j?l:t.value===j?e.defaultValue:t.value;if(this._showInput=e.showInput!==j?e.showInput:"inline"!==e.display&&e.element===j,(!this._buttons||e.buttons!==r.buttons||e.display!==r.display||e.setText!==r.setText||e.cancelText!==r.cancelText||e.closeText!==r.closeText||e.touchUi!==r.touchUi)&&(this._buttons=Si(this,e.buttons||("inline"===e.display||"anchored"===e.display&&!this._touchUi?[]:["cancel","set"])),this._live=!0,this._buttons&&this._buttons.length))for(var d=0,h=this._buttons;d<h.length;d++){var u=h[d];"ok"!==u.name&&"set"!==u.name||(this._live=!1);}if(this._onRender(e),!this._valueEquals(c,this._value)||this._tempValueRep===j||this._shouldValidate(e,r)||e.defaultSelection!==r.defaultSelection||e.invali
277d!==r.invalid||e.valid!==r.valid){this._readValue(c);var m=this._get(this._tempValueRep),p=!(this._valueEquals(c,m)||this._nullSupport&&ee(c));this._setHeader(),clearTimeout(this._handler),this._handler=setTimeout((function(){a.value=c,p&&a._valueChange(m),a._valueEquals(a._tempValue,m)||a._inst!==j||a._hook("onTempChange",{value:m});}));}if(e.headerText!==r.headerText&&this._setHeader(),o&&!this._isOpen){if(!this._tempValueSet||this._live){var _=this._get(this._tempValueRep),v=this._get(this._valueRep);this._tempValueRep=this._copy(this._valueRep),this._tempValueText=this._format(this._tempValueRep),this._tempValue=_,this._setHeader(),this._valueEquals(_,v)||setTimeout((function(){a._hook("onTempChange",{value:v});}));}this._onOpen();}this._allowTyping=e.inputTyping&&!f&&!this._touchUi,this._anchorAlign=e.anchorAlign||(this._touchUi?"center":"start"),this._cssClass="mbsc-picker "+(e.cssClass||""),this._isOpen=o,this._maxWidth=e.maxWidth,this._valueTextChange=this._valueTextChange||this._oldValueText!==this._valueText,this._oldValueText=this._valueText,this._value=c,this._shouldInitInput=this._shouldInitInput||r.display===j||"inline"===e.display&&"inline"!==r.display||"inline"!==e.display&&"inline"===r.display||e.element!==r.element;},t.prototype._updated=function(){var e=this,t=this.s,a=this._input;this._shouldInitInput&&!this._inst&&(this._unlisten(),this._wrapper&&"inline"===t.display&&(this._observer=gi(this._wrapper,this._onWrapperResize,this._zone)),Ci(t.element||this._el,(function(a){e._el=a,"inline"!==t.display&&(e._resetEl=Yi(a,e,e._onInputChange)),je(a,"input,select")&&(e._input=a,e._write(a));}))),this._valueTextChange&&a&&this._write(a),setTimeout((function(){t.responsive&&"inline"!==t.display&&fe&&e.state.width===j&&e._onResize({windowWidth:fe.innerWidth});})),this._shouldInitInput=!1,this._valueTextChange=!1,this._anchor=t.anchor||this._focusElm||t.element||this._el;},t.prototype._writeValue=function(e,t,a){var n=e.value;return e.value=t,n!==t;},t.prototype._destroy=function(){this._unlisten(),this._shouldInitInput=!0;},t.prototype._setHeader=function(){var e=this.s.headerText;this._headerText=e?e.replace(/\{value\}/i,this._tempValueText||" "):j;},t.prototype._setOrUpdate=function(e){var t=this._get(this._tempValueRep);this._tempValue=t,this._tempValueText=this._format(this._tempValueRep),this._setHeader(),e||this._hook("onTempChange",{value:t}),this._live?this.set():this.forceUpdate();},t.prototype._copy=function(e){return e;},t.prototype._format=function(e){return e;},t.prototype._get=function(e){return e;},t.prototype._parse=function(e,t){return e;},t.prototype._validate=function(){},t.prototype._onRender=function(e){},t.prototype._onClosed=function(){},t.prototype._onOpen=function(){},t.prototype._onEnterKey=function(e){this.set(),this.close();},t.prototype._valueChange=function(e){this.s.value===j&&this.setState({value:e}),this._change(e),this._hook("onChange",{value:e,valueText:this._tempValueText});},t.prototype._readValue=function(e,t){this._tempValueRep=this._parse(e,t),this._validate(),this._tempValueText=this._format(this._tempValueRep),this._valueRep=this._copy(this._tempValueRep),this._valueText=ee(e)?"":this._tempValueText;},t.prototype._unlisten=function(){this._resetEl&&(this._resetEl(),this._resetEl=j),this._observer&&(this._observer.detach(),this._observer=j);},t.prototype._write=function(e){var t=this,a=this._value;this._writeValue(e,this._valueText||"",a)&&setTimeout((function(){t._preventChange=!0,Be(e,Bn),Be(e,An);}));var n=e.__mbscFormInst;n&&n.setOptions({pickerMap:this.s.valueMap,pickerValue:a});},t.defaults={cancelText:"Cancel",closeText:"Close",focusOnClose:"android"!==m,okText:"Ok",setText:"Set",showOnFocus:f},t;}(Vn);function Ei(e,t,a,n,i,s){var r=Oa(t);if(i&&+t<i||s&&+t>s)return !0;if(n&&n[r])return !1;var o=a&&a[r];if(o)for(var l=0,c=o;l<c.length;l++){var d=c[l],h=d.start,u=d.end,m=d.allDay;if(!h||!u||m)return d;var p=Va(e,m,h,u),_=La(e,t),v=Pa(e,p);if(!Ua(h,u)&&(+h==+_||+p==+v||!Ua(t,h)&&!Ua(t,u)&&t>h&&t<u))return d;}return !1;}function Ni(e,t,a,n,i,s,r){var o,l,c=!0,d=!0,h=0,u=0;+e<a&&(e=qa(t,a)),+e>n&&(e=qa(t,n));
277var m=t.getYear(e),p=t.getMonth(e),_=t.getDate(m,p-1,1),v=t.getDate(m,p+2,1),f=+_>a?+_:a,g=+v<n?+v:n;if(i||(s=_n(t.valid,_,v,t,!0),i=_n(t.invalid,_,v,t,!0)),!Ei(t,e,i,s,a,n))return e;for(o=e,l=e;c&&+o<g&&h<100;)c=Ei(t,o=tn(o,1),i,s,a,n),h++;for(;d&&+l>f&&u<100;)d=Ei(t,l=tn(l,-1),i,s,a,n),u++;return c&&d?e:1!==r||c?-1!==r||d?ja(e,o,t)&&!c?o:ja(e,l,t)&&!d?l:d||u>=h&&!c?o:l:l:o;}var Hi={},Fi=" - ",Li=["calendar"],Pi=[{recurring:{repeat:"daily"}}];function Vi(e){return "start"===e?"end":"start";}function Oi(e,t){var a=Wa(new Date(e),t,t.firstSelectDay!==j?t.firstSelectDay:t.firstDay),n=new Date(a.getFullYear(),a.getMonth(),a.getDate()+t.selectSize-1);return {start:a,end:n};}var zi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._iso={},t._onActiveChange=function(e){t._active=e.date,t.forceUpdate();},t._onResize=function(e){var a=e.windowWidth;e.cancel=t.state.width!==a,t.setState({isLarge:e.isLarge,maxPopupWidth:e.maxPopupWidth,width:a,widthType:a>600?"md":"sm"});},t._onDayHoverIn=function(e){var a=e.date,n=e.hidden;t.setState({hoverDate:n?j:+a});},t._onDayHoverOut=function(e){var a=e.date;t.state.hoverDate===+a&&t.setState({hoverDate:j});},t._onCellClick=function(e){t._lastSelected=Ka(t.s,e.date),e.active=t._activeSelect,t._hook("onCellClick",e);},t._onCalendarChange=function(e){t._tempValueSet=!1;var a=t.s,n=t._copy(t._tempValueRep),i=_e(e.value,(function(e){return Ka(a,e);})),s="preset-range"===a.select,r="range"===a.select,o=r&&t._newSelection,l=(r||s)&&a.exclusiveEndDates&&!t._hasTime;if(l&&n.end&&(n.end=+La(a,qa(a,n.end-1))),t._hasTime&&t._selectedTime&&!r)if(t.s.selectMultiple){var c=i[i.length-1];c&&c.setHours(t._selectedTime.getHours(),t._selectedTime.getMinutes());}else i.setHours(t._selectedTime.getHours(),t._selectedTime.getMinutes());if(r||s){var d=t._getDate(n),h=d.filter((function(e){return null!==e;})),u=h.map((function(e){return +e;})),m=h.map((function(e){return +za(e);})),p=i.filter((function(e){return m.indexOf(+e)<0;}))[0];if(s){if(p){var _=Oi(+p,a),v=_.start,f=_.end;n.start=+v,n.end=+f;}}else{var g=!t._hasTime,x=t._renderControls,y=t._activeSelect,T=Vi(y);if(p){switch(t._hasTime&&t._selectedTime&&p.setHours(t._selectedTime.getHours(),t._selectedTime.getMinutes(),t._selectedTime.getSeconds(),t._selectedTime.getMilliseconds()),u.length){case 0:(n={})[y]=+p;break;case 1:if(x){n[y]=+p;break;}u[0]>+p||"start"===t._activeSelect?t._hasTime?n[y]=+p:(n={start:+p},g=!1):n.end=+p;break;case 2:if(x){n[y]=+p;break;}u[0]>+p||"start"===t._activeSelect?t._hasTime?n[y]=+p:(n={start:+p},"end"===t._activeSelect&&(g=!1)):"end"===t._activeSelect&&(n.end=+p);}x&&n.start&&n.end&&n.start>n.end&&(n={start:+p},t._setActiveSelect("end"));}else{var b=void 0;b=1===u.length?qa(a,u[0]):t._lastSelected,t._hasTime&&t._selectedTime?b.setHours(t._selectedTime.getHours(),t._selectedTime.getMinutes(),t._selectedTime.getSeconds(),t._selectedTime.getMilliseconds()):!a.exclusiveEndDates&&!t._hasTime&&"end"===t._activeSelect&&d[0]&&Ua(b,d[0])&&b.setHours(23,59,59,999),x||t._hasTime?n[y]=+b:"start"===t._activeSelect?n={start:+b}:n.end=+b;}if(n.start&&n.end){if(n.start>n.end){var D=qa(a,n.start),S=qa(a,n.end);Ua(D,S)?(S.setHours(D.getHours(),D.getMinutes(),D.getSeconds(),D.getMilliseconds()),n.end=+S):n.end=j;}if(a.minRange&&n.end){var M=t._hasTime?n.start+a.minRange:+tn(qa(a,n.start),a.minRange-1);n.end<M&&(!t._hasTime||"start"===y)&&(n.end=j);}if(a.maxRange&&n.end){M=t._hasTime?n.start+a.maxRange:+tn(qa(a,n.start),a.maxRange)-1;n.end>M&&(!t._hasTime||"start"===y)&&(n.end=j);}if(n.end&&"start"===y&&!a.inRangeInvalid){var w=a.valid?tn(mn(a.valid,qa(a,n.start),a),1):un(a.invalid||[],qa(a,n.start),a);null!==w&&+w<n.end&&(n.end=j);}}g&&(t._newSelection||!t._renderControls||t._newSelection===j&&"inline"===t.s.display)&&(t._setActiveSelect(T),t._newSelection=!1);}}else if(n={date:{}},t.s.selectMultiple)for(var k=0,C=i;k<C.length;k++){var Y=C[k];n.date[+Y]=Y;}else{if(t._hasTime){var I=t._selectedTime||new Date();i.setHours(I.getHours(),I.getMinutes(),I.getSeconds(),I.getMilliseconds());}n.date[+i]=i;}t._tempValueRep=n,l&&n.end&&(n.end=+La(a,tn(qa(a,n.end),1))),t._setOrUpd
277ate(),!t._live||t.s.selectMultiple&&!r||t._hasTime||r&&(!n.start||!n.end||o)||t.close();},t._onDatetimeChange=function(e){var a=t.s,n="range"===a.select,i=Ka(a,e.value),s=t._hasTime?i:za(i),r=+s;t._tempValueSet=!1;var o=t._copy(t._tempValueRep),l=n&&a.exclusiveEndDates&&!t._hasTime;if(l&&o.end&&(o.end=+La(a,qa(a,o.end-1))),n)if("start"===t._activeSelect){if(t._hasTime&&t._selectedTime&&s.setHours(t._selectedTime.getHours(),t._selectedTime.getMinutes(),t._selectedTime.getSeconds(),t._selectedTime.getMilliseconds()),o.start=r,o.end){var c=a.minRange&&!t._hasTime?24*(a.minRange-1)*60*60*1e3-1:a.minRange||0;o.end-o.start<c&&(o.end=j);}}else t._hasTime?t._selectedTime&&s.setHours(t._selectedTime.getHours(),t._selectedTime.getMinutes(),t._selectedTime.getSeconds(),t._selectedTime.getMilliseconds()):o.start!==+za(s)||a.exclusiveEndDates||s.setHours(23,59,59,999),o.end=+s;else{if(t._hasTime&&t._hasDate&&a.controls.indexOf("datetime")<0){var d=t._selectedTime||new Date();s.setHours(d.getHours(),d.getMinutes(),d.getSeconds(),d.getMilliseconds());}else t._selectedTime=qa(a,s);(o={date:{}}).date[+s]=s;}t._tempValueRep=o,l&&o.end&&(o.end=+La(a,tn(qa(a,o.end),1))),t._setOrUpdate();},t._onTimePartChange=function(e){t._tempValueSet=!1;var a=t.s,n="range"===a.select,i=Ka(a,e.value);if(t._selectedTime=i,n){var s=t._getDate(t._tempValueRep),r="start"===t._activeSelect?0:1;if(s[r])(o=qa(a,s[r])).setHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),s[r]=o,"start"===t._activeSelect&&+o>+s[1]&&(s.length=1),t._tempValueRep=t._parse(s);else t._selectedTime.setHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds());}else{if(!a.selectMultiple){var o;(o=t._getDate(t._tempValueRep))?(o.setHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),t._tempValueRep={date:{}},t._tempValueRep.date[+o]=o):(t._selectedTime.setHours(i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()),t._live&&t.forceUpdate());}}t._setOrUpdate();},t._changeActiveTab=function(e){t.setState({activeTab:e.target.value});},t._changeActiveSelect=function(e){var a=e.target.value;t._setActiveSelect(a),t.setActiveDate(a);},t._clearEnd=function(){t._tempValueRep.end=j,t._hasTimegrid&&(t._selectedTime=j),t._setOrUpdate();},t._clearStart=function(){t._tempValueRep={},t._newSelection=!0,t._hasTimegrid&&(t._selectedTime=j),t._setOrUpdate();},t._onInputClickRange=function(e){var a=e.target===t._startInput||t._renderControls?"start":"end";t._setActiveSelect(a);},t._onInputChangeRange=function(e){var a=t._startInput,n=t._endInput,i=(a?a.value:"")+(n&&n.value?Fi+n.value:"");t._onInputChange(e,i);},t;}return d(t,e),t.prototype.setActiveDate=function(e){var t=Vi(e);this._activeSelect=e;var a=this._tempValueRep[e],n=this._tempValueRep[t];this._tempValueRep.start&&this._tempValueRep.end||!a&&n?this._newSelection=!1:a&&!n&&(this._newSelection=!0),a&&(this._active=a),!a&&this._hasTimegrid&&(this._selectedTime=j),this.forceUpdate();},t.prototype.getTempVal=function(){return e.prototype.getTempVal.call(this);},t.prototype.setTempVal=function(t){e.prototype.setTempVal.call(this,t);},t.prototype.navigate=function(e){this._active=+Xa(e),this.forceUpdate();},t.prototype._shouldValidate=function(e,t){return e.controls!==t.controls||e.dataTimezone!==t.dataTimezone||e.displayTimezone!==t.displayTimezone||e.dateFormat!==t.dateFormat||e.timeFormat!==t.timeFormat||e.locale!==t.locale||e.min!==t.min||e.max!==t.max;},t.prototype._valueEquals=function(e,t){var a=X(e)&&0===e.length||e===j||null===e,n=X(t)&&0===t.length||t===j||null===t;return a&&a===n||en(e,t,this.s);},t.prototype.setVal=function(t){if("range"===this.s.select&&t){var a=t[0],n=t[1];this._savedStartValue=+Xa(a,this.s,this._valueFormat),this._savedEndValue=+Xa(n,this.s,this._valueFormat);}e.prototype.setVal.call(this,t);},t.prototype._render=function(t,a){var n=this;t.inRangeInvalid&&(t.rangeEndInvalid=!1),"preset-range"===t.select&&(t.controls=Li),t.exclusiveEndDates===j&&(t.exclusiveEndDates=!!t.displayTimezone);var i=this._hasTime,s=this._hasDate=!!me(t.controls,(function(e){return /date|calendar/.test(e);})),r=this._hasTime=!!me(t.controls,(function(e){return /time/.test(e);}));r||(t.timezonePlugin=t.dataTimezone=t.displayTimezone=j),!t.valid||t.invalid&&!r||(t.invali
277d=Pi);var o=this._prevS;t.buttons;var l=t.calendarSize;t.children,t.className;var c=t.controls;t.cssClass,t.element,t.modelValue,t.onDestroy,t.onInit,t.onTempChange,t.responsive;var d=t.select,m=t.selectMultiple,p=t.tabs,_=u(t,["buttons","calendarSize","children","className","controls","cssClass","element","modelValue","onDestroy","onInit","onTempChange","responsive","select","selectMultiple","tabs"]),v=a.widthType||"sm",f="date"!==d;if(this._renderTabs=c.length>1&&("auto"===p?"sm"===v:p),d!==o.select&&this._tempValueRep)if(f&&this._tempValueRep.date){var g=Object.keys(this._tempValueRep.date).map((function(e){return +e;})).sort(),x=g[0],y=g[1];this._tempValueRep.start=x,this._tempValueRep.end=y,this._tempValueRep.date=j,this._tempValueText=this._format(this._tempValueRep),setTimeout((function(){n.set();}));}else{if(!f&&(this._tempValueRep.start||this._tempValueRep.end)){this._tempValueRep.date||(this._tempValueRep.date={});var T=this._tempValueRep.start||this._tempValueRep.end;this._tempValueRep.date[T]=new Date(T);var b=this._tempValueRep.end||this._tempValueRep.start;b!==T&&t.selectMultiple&&(this._tempValueRep.date[b]=new Date(b)),this._tempValueRep.start=j,this._tempValueRep.end=j,this._tempValueText=this._format(this._tempValueRep),setTimeout((function(){n.set();}));}}t.min!==o.min&&(this._min=ee(t.min)?j:Xa(t.min,t,t.dateFormat)),t.max!==o.max&&(this._max=ee(t.max)?j:Xa(t.max,t,t.dateFormat)),t.minTime!==o.minTime&&(this._minTime=ee(t.minTime)?j:Xa(t.minTime,t,t.timeFormat)),t.maxTime!==o.maxTime&&(this._maxTime=ee(t.maxTime)?j:Xa(t.maxTime,t,t.timeFormat));var D=this._tempValueRep&&this._tempValueRep.end,S=this._tempValueRep&&this._tempValueRep.start,M=(s?t.dateFormat:"")+(r?(s?t.separator:"")+t.timeFormat:""),w=c!==o.controls;if(w){this._controls=[],this._controlsClass="",this._hasCalendar=!1,this._hasTimegrid=!1;for(var k=0,C=c;k<C.length;k++)"timegrid"===(Z=C[k])&&(this._hasTimegrid=!0),"calendar"===Z&&(this._hasCalendar=!0),this._controls.push({Component:Hi["calendar"===Z?"Calendar":"timegrid"===Z?"Timegrid":"Datetime"],name:Z,title:"time"===Z||"timegrid"===Z?t.timeText:t.dateText}),this._controlsClass+=" mbsc-datepicker-control-"+Z;r||(this._selectedTime=j);}if(this._renderControls=f&&"preset-range"!==d&&(t.showRangeLabels===j||t.showRangeLabels),this._nullSupport="inline"!==t.display||"date"!==d||!0===t.selectMultiple,this._valueFormat=M,this._activeTab=a.activeTab||c[0],e.prototype._render.call(this,t,a),w&&f&&t.exclusiveEndDates&&r!==i&&(D||S)){var Y=this._savedStartValue,I=this._savedEndValue;setTimeout((function(){if(r)n._tempValueRep.start=Y||S,n._tempValueRep.end=I||D;else{n._savedStartValue=S,n._savedEndValue=D,n._clearSaved=!1;var e=h({},t,{dataTimezone:n.props.dataTimezone,displayTimezone:n.props.displayTimezone,timezonePlugin:n.props.timezonePlugin});if(S&&(n._tempValueRep.start=+Ga(La(e,qa(e,S)))),D){var a=qa(e,D-1);n._tempValueRep.end=+Ga(qa(e,+Pa(e,a)+1));}}n._valueText=n._tempValueText=n._format(n._tempValueRep),n._valueTextChange=!0,n.set();})),this._valueTextChange=!1;}var E,N=t.value!==j?t.value!==o.value:a.value!==this._prevStateValue;if(f&&this._clearSaved&&N&&(this._savedEndValue=this._savedStartValue=j),this._clearSaved=!0,t.headerText===o.headerText&&t.selectCounter===o.selectCounter&&t.selectMultiple===o.selectMultiple||this._setHeader(),this._scrollLock=t.scrollLock!==j?t.scrollLock:!this._hasTimegrid,this._showInput=t.showInput!==j?t.showInput:this._showInput&&(!f||!t.startInput&&!t.endInput),this._shouldInitInputs=this._shouldInitInputs||d!==o.select||t.startInput!==o.startInput||t.endInput!==o.endInput,this._shouldInitInput=this._shouldInitInput||this._shouldInitInputs,w||t.dateWheels!==o.dateWheels||t.timeWheels!==o.timeWheels||t.dateFormat!==o.dateFormat||t.timeFormat!==o.timeFormat){var H=t.dateWheels||t.dateFormat,F=t.timeWheels||t.timeFormat,L=this._iso={};s&&(/y/i.test(H)&&(L.y=1),/M/.test(H)&&(L.y=1,L.m=1),/d/i.test(H)&&(L.y=1,L.m=1,L.d=1)),r&&(/h/i.test(F)&&(L.h=1),/m/.test(F)&&(L.i=1),/s/i.test(F)&&(L.s=1));}if(f?(this._activeSelect===j&&this._setActiveSelect("start",!0),E=this._selectionNotReady()):(this._activeSelect=j,E=!1),this._buttons){var P=me(this._buttons,(function(e){return "set"===e.name;}));P&&P.disabled!==E&&(P.disabled=E,this._buttons=this._buttons.slice());}var V=this._activeSelect;this._needsWidth=("anchored"===t.display||"center"===t.display||"inline"!==t.display&&a.isLarge||c.length>1&&!p)&&t.width===j;var O=t.max!==j?Xa(t.max,t,M):j,z=t.min!==j?Xa(t.min,t,M):j;this._maxLimited=O,this._minLimited=z;var A=this._tempValueRep.start;if(A&&(this._prevStart!==A||o.valid!==t.valid||o.invalid!==t.invali
277d)){var R=qa(t,A);this._nextInvalid=t.valid?tn(mn(t.valid,R,t),1):un(t.invalid||[],R,t);}var W="end"===V&&A;if(W){if(!t.inRangeInvalid){var U=this._nextInvalid;U&&(t.rangeEndInvalid?this._maxLimited=qa(t,+tn(U,1)-1):this._maxLimited=qa(t,+U-1));}this._hasCalendar&&!r||(!this._minLimited||Xa(this._minLimited,t,M)<qa(t,A))&&(this._minLimited=qa(t,this._tempValueRep.start));}if(this._minTimeLimited=this._minLimited,W){if(t.minRange){var J=r?this._tempValueRep.start+t.minRange:+tn(qa(t,this._tempValueRep.start),t.minRange)-1;(!this._minLimited||+Xa(this._minLimited,t,M)<J)&&(this._minLimited=qa(t,J),this._minTimeLimited=this._minLimited);}if(this._minTimeLimited===j&&this._tempValueRep.start&&this._tempValueRep.end&&(this._minTimeLimited=qa(t,+this._tempValueRep.start)),t.maxRange!==j){var B=r?this._tempValueRep.start+t.maxRange:+tn(qa(t,this._tempValueRep.start),t.maxRange)-1;(!this._maxLimited||+Xa(this._maxLimited,t,M)>B)&&(this._maxLimited=qa(t,B));}}for(var K=0,q=this._controls;K<q.length;K++){var Z=q[K],Q=h({},_,{display:"inline",isOpen:t.isOpen||a.isOpen,max:this._maxLimited,min:this._minLimited});if(t.rangeEndInvalid&&W&&this._nextInvalid&&(Q.valid=(Q.valid||[]).concat([this._nextInvalid])),"calendar"===Z.name){Q.min=this._minLimited?za(this._minLimited):j,Q.max=this._maxLimited?za(this._maxLimited):j,Q.selectRange=f,Q.width=this._needsWidth?Tn*Yn(t.pages,a.maxPopupWidth):j,"week"===t.calendarType&&l?Q.weeks=l:Q.size=l;var $="auto"===t.pages?3:t.pages||1;if(this._maxWidth=t.maxWidth||($>2?Tn*$:j),f){var te=this._getDate(this._tempValueRep),ae=te[1];ae&&t.exclusiveEndDates&&!r&&(te[1]=qa(t,+ae-1));var ne=te.filter((function(e){return null!==e;})).map((function(e){return +za(e);})).filter((function(e,t,a){return a.indexOf(e)===t;})).map((function(e){return new Date(e);}));if(Q.value=ne,t.rangeHighlight)if(Q.rangeStart=te[0]&&+za(Ga(te[0])),Q.rangeEnd=te[1]&&+za(Ga(te[1])),Q.onDayHoverIn=this._onDayHoverIn,Q.onDayHoverOut=this._onDayHoverOut,"preset-range"===d){if(a.hoverDate){var ie=Oi(a.hoverDate,t);x=ie.start,y=ie.end;Q.hoverStart=+x,Q.hoverEnd=+y;}}else "end"===V&&te[0]&&(Q.hoverStart=Q.rangeEnd||Q.rangeStart,Q.hoverEnd=a.hoverDate),"start"===V&&te[1]&&this._renderControls&&(Q.hoverStart=a.hoverDate,Q.hoverEnd=Q.rangeStart||Q.rangeEnd);}else Q.selectMultiple=m,Q.value=this._getDate(this._tempValueRep);for(var se=X(Q.value)?Q.value:[Q.value],re=Q.min?+Q.min:-1/0,oe=Q.max?+Q.max:1/0,le=void 0,ce=0,de=se;ce<de.length;ce++){var he=de[ce];!le&&he>=re&&he<=oe&&(le=+he);}!le&&f&&se.length&&(le=+se[0]),le===this._selectedDate&&this._active!==j&&t.min===o.min&&t.max===o.max||(this._selectedDate=le,this._active=le?+za(new Date(le)):G(this._active||+za(new Date()),re,oe));var ue=t.dateWheels||t.dateFormat,pe=/d/i.test(ue)?yn:/m/i.test(ue)?gn:/y/i.test(ue)?fn:yn;Q.active=this._active,Q.onActiveChange=this._onActiveChange,Q.onChange=this._onCalendarChange,Q.onCellClick=this._onCellClick,Q.onCellHoverIn=this._proxyHook,Q.onCellHoverOut=this._proxyHook,Q.onLabelClick=this._proxyHook,Q.onPageChange=this._proxyHook,Q.onPageLoaded=this._proxyHook,Q.onPageLoading=this._proxyHook,Q.selectView=pe;}else{var _e=Object.keys(this._tempValueRep.date||{});if(Q.displayStyle="bottom"!==t.display&&"top"!==t.display||!this._hasCalendar&&!this._renderTabs?t.display:"center",Q.mode=Z.name,"time"!==Z.name&&"timegrid"!==Z.name||!s)if(Q.onChange=this._onDatetimeChange,f){var ve=this._tempValueRep[V],fe=this._tempValueRep[Vi(V)];Q.value=ve?qa(t,ve):fe?qa(t,fe):null,"end"===V&&t.exclusiveEndDates&&!r&&(Q.value=qa(t,+Q.value-1));}else{var ge=this._tempValueRep.date&&this._tempValueRep.date[_e[0]],xe=ge;ge&&(r||(xe=za(ge))),Q.value=xe||null;}else{if(Q.onChange=this._onTimePartChange,f){var ye=this._tempValueRep[V],Te=void 0;this._selectedTime&&(!this._minTimeLimited||this._selectedTime>this._minTimeLimited?Te=this._selectedTime:(Te=qa(t,this._minTimeLimited)).setHours(this._selectedTime.getHours(),this._selectedTime.getMinutes(),this._selectedTime.getSeconds(),this._selectedTime.getMilliseconds()));var be=qa(t);be.setSeconds(0,0),this._selectedTime=ye?qa(t,ye):Te||("time"===Z.name?be:j),Q.value=this._selectedTime;}else{if(!t.selectMultiple){var De=this._tempValueRep.date&&this._tempValueRep.date[_e[0]]||this._selectedTime;this._selectedTime=Q.value=De;}}Q.min=this._minTimeLimited,Q.max=this._maxLimited;}if("time"===Z.name||"timegrid"===Z.name){var Se=Q.value||an(new Date(),Q.min,Q.max);if(this._minTime){var Me=this._minTime;re=new Date(Se.getFullYear(),Se.getMonth(),Se.getDate(),Me.getHours(),Me.getMinutes(),Me.getSeconds(),Me.getMilliseconds());(!Q.min||re>Q.min)&&(Q.min=re);}if(this._maxTime){var we=this._maxTime;oe=new Date(Se.getFullYear(),Se.getMonth(),Se.getDate(),we.getHours(),we.getMinutes(),we.getSeconds(),we.getMilliseconds());(!Q.max||oe<Q.max)&&(Q.max=oe);}}}Z.options=Q;}this._prevStart=this._tempValueRep.start,this._prevStateValue=a.value;},t.prototype._updated=function(){var t=this,a=this.s;if(this._shouldInitInputs){if(this._resetInputs(),"range"===a.select){var n=a.startInput;n&&this._setupInput("start",n);var i=a.endInput;i&&this._setupInput("end",i),!a.element||this._startInput!==a.element&&this._endInput!==a.element||(this._shouldInitInput=!1,clearTimeout(a.element.__mbscTimer));}this._shouldInitInputs=!1;}var s=this._valueTextChange;if(e.prototype._updated.call(this),"range"===a.select&&s){var r=function(e,a){e.value=a,setTimeout((function(){t._preventChange=!0,Be(e,Bn),Be(e,An);}));};this._startInput&&r(this._startInput,this._getValueText("start")),this._endInput&&r(this._endInput,this._getValueText("end"));}},t.prototype._onEnterKey=function(t){this._selectionNotReady()||e.prototype._onEnterKey.call(this,t);},t.prototype._setupInput=function(e,t){var a=this;Ci(t,(function(t){var n=Yi(t,a,a._onInputChangeRange,a._onInputClickRange);"start"===e?(a._startInput=t,a._resetStartInput=n):(a._endInput=t,a._resetEndInput=n);var i=a._getValueText(e),s=i!==t.value;t.value=i,s&&setTimeout((function(){a._preventChange=!0,Be(t,Bn),Be(t,An);}));}));},t.prototype._destroy=function(){this._resetInputs(),e.prototype._destroy.call(this);},t.prototype._setHeader=function(){var t=this.s;if(t.selectCounter&&t.selectMultiple){var a=Object.keys(this._tempValueRep&&this._tempValueRep.date||{}).length;this._headerText=(a>1&&t.selectedPluralText||t.selectedText).replace(/{count}/,""+a);}else e.prototype._setHeader.call(this);},t.prototype._validate=function(){if(!(this._max<=this._min)){var e=this.s,t=this._min?+this._min:-1/0,a=this._max?+this._max:1/0;if("date"===e.select){var n=this._tempValueRep.date;if(!e.selectMultiple)for(var i=0,s=Object.keys(n);i<s.length;i++){var r=s[i],o=n[r],l=Ni(o,e,t,a);+l!=+o&&(delete n[r],n[+za(l)]=l);}}else{var c=this._getDate(this._tempValueRep),d=c[0],h=c[1];d&&(d=Ni(d,e,t,a),e.inRangeInvalid||this._prevStart&&this._prevStart===+d||(this._nextInvalid=e.valid?tn(mn(e.valid,d,e),1):un(e.invalid||[],d,e))),h&&(h=!e.inRangeInvalid&&this._nextInvalid&&this._nextInvalid<=h?e.rangeEndInvali
277d?this._nextInvalid:tn(this._nextInvalid,-1):Ni(h,e,t,a)),d&&h&&d>h&&("end"===this._activeSelect?d=h:h=d),d&&(this._prevStart=this._tempValueRep.start=+d),h&&(this._tempValueRep.end=+h);}}},t.prototype._copy=function(e){var t=e.date?h({},e.date):e.date;return h({},e,{date:t});},t.prototype._format=function(e){var t=this.s,a=[];if(!t)return "";if("date"===t.select){var n=e.date;for(var i in n)n[i]!==j&&null!==n[i]&&a.push(Qa(this._valueFormat,n[i],t));return t.selectMultiple?a.join(", "):a[0];}if(e.start&&a.push(Qa(this._valueFormat,qa(t,e.start),t)),e.end){a.length||a.push("");var s=qa(t,e.end-(t.exclusiveEndDates&&!this._hasTime?1:0));a.push(Qa(this._valueFormat,s,t));}return this._tempStartText=a[0]||"",this._tempEndText=a[1]||"",a.join(Fi);},t.prototype._parse=function(e,t){var a=this.s,n={},i="date"!==a.select,s=a.selectMultiple,r=[];if(ee(e)){var o=a.defaultSelection;e=s||i?o:null===o||this._live&&"inline"!==a.display?null:o||new Date();}if($(e)&&(i||s)?r=e.split(i?Fi:","):X(e)?r=e:e&&!X(e)&&(r=[e]),i){var l=r[0],c=r[1],d=Xa(l,a,this._valueFormat,this._iso),h=Xa(c,a,this._valueFormat,this._iso);n.start=d?+d:j,n.end=h?+h:j;}else{n.date={};for(var u=0,m=r;u<m.length;u++){var p=m[u];if(!ee(p)){var _=Xa(p,a,this._valueFormat,this._iso,t);if(_){t&&(_=Ka(a,_));var v=+za(_);n.date[v]=_,this._hasTime&&(this._selectedTime=new Date(_));}}}}return n;},t.prototype._getDate=function(e){var t=this.s;if("date"!==t.select){var a=e.start?qa(t,e.start):null,n=e.end?qa(t,e.end):null;return a||n?[a,n]:[];}if(t.selectMultiple){var i=[],s=e.date;if(s)for(var r=0,o=Object.keys(s);r<o.length;r++){var l=o[r];i.push(qa(t,+l));}return i;}var c=Object.keys(e.date||{});return c.length?qa(t,e.date[c[0]]):null;},t.prototype._get=function(e){var t=this,a=this.s,n=this._valueFormat,i=this._iso,s=this._getDate(e);return X(s)?s.map((function(e){return e?Za(e,a,n,i,t._hasTime):null;})):null===s?null:Za(s,a,n,i,this._hasTime);},t.prototype._onClosed=function(){this._active=this._activeSelect=j,this._hasTimegrid&&(this._selectedTime=j);},t.prototype._onOpen=function(){this._newSelection=!0;},t.prototype._resetInputs=function(){this._resetStartInput&&(this._resetStartInput(),this._resetStartInput=j),this._resetEndInput&&(this._resetEndInput(),this._resetEndInput=j);},t.prototype._getValueText=function(e){return this._valueText.split(Fi)["start"===e?0:1]||"";},t.prototype._selectionNotReady=function(){var e=!1;if("range"===this.s.select){var t=(this._get(this._tempValueRep||{})||[]).filter((function(e){return e;}));(e=!t.length)||(e=this._hasCalendar&&!this._hasTime||this._renderControls?t.length<2:!this._tempValueRep[this._activeSelect]);}return e;},t.prototype._setActiveSelect=function(e,t){var a=this;this._activeSelect!==e&&(t?setTimeout((function(){return a._hook("onActiveDateChange",{active:e});})):this._hook("onActiveDateChange",{active:e})),this._activeSelect=e;},t.defaults=h({},Ea,Ii.defaults,{activeElm:'.mbsc-calendar-cell[tabindex="0"]',controls:Li,inRangeInvalid:!1,inputTyping:!0,rangeEndHelp:"Please select",rangeEndLabel:"End",rangeHighlight:!0,rangeStartHelp:"Please select",rangeStartLabel:"Start",select:"date",selectSize:7,selectedText:"{count} selected",showOnClick:!0}),t._name="Datepicker",t;}(Ii),Ai=function(){function e(){this.pageSize=0,this._prevS={},this._s={};}return e.prototype.options=function(e,t){var a=this._s=h({},this._s,e),n=this._prevS,i=a.getDate,s=a.getYear,r=a.getMonth,o=a.showCalendar,l=a.calendarType,c=a.startDay,d=a.endDay,u=a.firstDay,m="week"===l,p=o?m?a.weeks:6:0,_=a.min===n.min&&this.minDate?this.minDate:ee(a.min)?-1/0:Xa(a.min),v=a.max===n.max&&this.maxDate?this.maxDate:ee(a.max)?1/0:Xa(a.max),f=a.activeDate||+new Date(),g=G(f,+_,+v),x=this.forcePageChange||g!==f,y=new Date(g),T=g!==n.activeDate,b=a.calendarType!==n.calendarType||a.eventRange!==n.eventRange||a.firstDay!==n.firstDay||a.eventRangeSize!==n.eventRangeSize||a.refDate!==n.refDate||o!==n.showCalendar||a.size!==n.size||a.weeks!==n.weeks,D=x||this.pageIndex===j||b||!this.preventPageChange&&T&&(g<+this.firstDay||g>=+this.lastDay)?Sn(y,a):this.pageIndex,S="year"===l?12:a.size||1,M=S>1&&!m,w=M?1:Yn(a.pages,this.pageSize),k="vertical"===a.calendarScroll&&"auto"!==a.pages&&(a.pages===j||1===a.pages),C=a.showOuterDays!==j?a.showOuterDays:!k&&w<2&&(m||!S||S<2),Y=M?0:1,I=Dn(D,a),E=Dn(D+w,a);o||"week"!==a.eventRange||c===j||d===j||(I=tn(I,c-u+(c<u?7:0)),E=tn(I,7*a.eventRangeSize+d-c+1-(d<c?0:7)));var N=o&&C?Wa(I,a):I,H=M?i(s(E),r(E)-1,1):Dn(D+w-1,a),F=o&&C?tn(Wa(H,a),7*p):E,L=o?Wa(Dn(D-Y,a),a):I,P=o?Wa(Dn(D+w+Y-1,a),a):E,V=o?t
277n(M?Wa(H,a):P,7*p):E,O=this.pageIndex===j,z=L,A=V;if(!o&&"week"===a.resolution&&("year"===a.eventRange||"month"===a.eventRange)){var R=d-c+1+(d<c?7:0);if(I.getDay()!==c)z=(U=tn(W=Wa(I,a,c),R))<=I?tn(W,7):W;if(E.getDay()!==c){var W,U=tn(W=Wa(E,a,c),R);A=W>E?tn(U,-7):U;}}var J=!1;D!==j&&(J=+z!=+this.viewStart||+A!=+this.viewEnd,this.pageIndex=D),this.firstDay=I,this.lastDay=E,this.firstPageDay=N,this.lastPageDay=F,this.viewStart=z,this.viewEnd=A,this.forcePageChange=!1,this.preventPageChange=!1,this.minDate=_,this.maxDate=v,this._prevS=a,D!==j&&(J||t)&&(J&&!O&&this.pageChange(),this.pageLoading(J));},e.prototype.pageChange=function(){this._s.onPageChange&&this._s.onPageChange({firstDay:this.firstPageDay,lastDay:this.lastPageDay,month:"month"===this._s.calendarType?this.firstDay:j,type:"onPageChange",viewEnd:this.viewEnd,viewStart:this.viewStart});},e.prototype.pageLoading=function(e){this._s.onPageLoading&&this._s.onPageLoading({firstDay:this.firstPageDay,lastDay:this.lastPageDay,month:"month"===this._s.calendarType?this.firstDay:j,type:"onPageLoading",viewChanged:e,viewEnd:this.viewEnd,viewStart:this.viewStart});},e;}(),Ri=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._navService=new Ai(),t._update=0,t._onDayClick=function(e){var a=t.s,n=Ka(a,e.date),i=+n;if(!e.disabled){if(a.selectMultiple){var s=t._tempValueRep;s[i]?delete s[i]:(a.selectMax===j||Object.keys(s).length<a.selectMax)&&(s[i]=n),t._tempValueRep=h({},s);}else a.selectRange||(t._tempValueRep={}),t._tempValueRep[i]=n;t._navService.preventPageChange=a.selectRange,t._hook("onCellClick",e),t._hook("onChange",{value:t._get()});}},t._onTodayClick=function(){var e=new Date(),a=+za(e);t.s.selectRange||t.s.selectMultiple||(t._tempValueRep={},t._tempValueRep[a]=e,t._hook("onChange",{value:t._get()}));},t._onActiveChange=function(e){t._navService.forcePageChange=e.pageChange,t._update++,t._hook("onActiveChange",e);},t._setCal=function(e){t._calendarView=e;},t;}return d(t,e),t.prototype._render=function(e){for(var t={},a=e.value,n=0,i=a?X(a)?a:[a]:[];n<i.length;n++){var s=i[n];if(null!==s){var r=Xa(s,e,e.dateFormat);t[+za(r)]=r;}}this._tempValueRep=t,this._navService.options({activeDate:e.active,calendarType:e.calendarType,firstDay:e.firstDay,getDate:e.getDate,getDay:e.getDay,getMonth:e.getMonth,getYear:e.getYear,max:e.max,min:e.min,onPageChange:e.onPageChange,onPageLoading:e.onPageLoading,pages:e.pages,refDate:e.refDate,showCalendar:!0,showOuterDays:e.showOuterDays,size:e.size,weeks:e.weeks});},t.prototype._get=function(){var e=this.s,t=e.selectRange,a=this._tempValueRep;if(e.selectMultiple||t){for(var n=[],i=0,s=Object.keys(a);i<s.length;i++){var r=s[i];n.push(qa(e,+a[r]));}return n;}var o=Object.keys(a||{});return o.length?qa(e,a[o[0]]):null;},t.defaults=h({},bn,{calendarScroll:"horizontal",calendarType:"month",selectedText:"{count} selected",showControls:!0,weeks:1}),t._name="Calendar",t;}(Vn),Wi=function(){function e(){this.onInstanceReady=new _(),this.onComponentChange=new _();}return Object.defineProperty(e.prototype,"instance",{get:function(){return this.inst;},set:function(e){this.inst=e,this.onInstanceReady.next(e);},enumerable:!0,configurable:!0}),e;}(),Ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._render=function(e){this._hasChildren=e.name!==j&&!$(e.name),this._cssClass=this._className+" mbsc-icon"+this._theme+(e.name&&!this._hasChildren?-1!==e.name.indexOf(" ")?" "+e.name:" mbsc-font-icon mbsc-icon-"+e.name:""),this._svg=e.svg?this._safeHtml(e.svg):j;},t;}(Vn);var ji,Ji,Bi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return function(e,t){return t._hasChildren?et("span",{onClick:e.onClick,className:t._cssClass},e.name):et("span",{onClick:e.onClick,className:t._cssClass,dangerouslySetInnerHTML:t._svg,"v-html":j});}(e,this);},t;}(Ui),Ki=0;function Gi(e,t,a){var n=(a?"page":"client")+t;return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0][n]:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0][n]:e[n];}function qi(e,t){if(!t.mbscClick){var a=(e.originalEvent||e).changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,1,a.screenX,a.screenY,a.clientX,a.clientY,!1,!1,!1,!1,0,null),n.isMbscTap=!0,n.isIonicTap=!0,ji=!0,t.mbscChange=!0,t.mbscClick=!0,t.dispatchEvent(n),ji=!1,Ki++,setTimeout((function(){Ki--;}),500),setTimeout((function(){delete t.mbscClick;}));}}function Xi(e){!Ki||ji||e.isMbscTap||"TEXTAREA"===e.target.nodeName&&e.type===Gn||(e.stopPropagation(),e.preventDefault());}function Zi(e){Ae(e.target).__mbscFocusVisible=!1;}function Qi(e){Ae(e.target).__mbscFocusVisible=!0;}
277function $i(e){e&&setTimeout((function(){e.style.opacity="0",e.style.transition="opacity linear .4s",setTimeout((function(){e&&e.parentNode&&e.parentNode.removeChild(e);}),400);}),200);}function es(e,t){var a,n,i,s,r,o,l,c,d,h,u,m,p,_,v,f={},g=Ae(e),x=Pe(e);function y(e){if(e.type===ai)Ji=!0;else{if(Ji)return e.type===Gn&&(Ji=!1),!0;}return !1;}function T(){l&&($i(s),s=function(e,t,a){var n=e.getBoundingClientRect(),i=t-n.left,s=a-n.top,r=Math.max(i,e.offsetWidth-i),o=Math.max(s,e.offsetHeight-s),l=2*Math.sqrt(Math.pow(r,2)+Math.pow(o,2)),c=ve.createElement("span");c.classList.add("mbsc-ripple");var d=c.style;return d.backgroundColor=getComputedStyle(e).color,d.width=l+"px",d.height=l+"px",d.top=a-n.top-l/2+"px",d.left=t-n.left-l/2+"px",e.appendChild(c),setTimeout((function(){d.opacity=".2",d.transform="scale(1)",d.transition="opacity linear .1s, transform cubic-bezier(0, 0, 0.2, 1) .4s";}),30),c;}(e,u,m)),t.onPress(),a=!0;}function b(e,s){n=!1,$i(e),clearTimeout(i),i=setTimeout((function(){a&&(t.onRelease(),a=!1);}),s);}function D(e){if(!y(e)&&(e.type!==Gn||0===e.button&&!e.ctrlKey)){if(d=Gi(e,"X"),h=Gi(e,"Y"),u=d,m=h,a=!1,n=!1,c=!1,v=!0,f.moved=c,f.startX=d,f.startY=h,f.endX=u,f.endY=m,f.deltaX=0,f.deltaY=0,f.domEvent=e,f.isTouch=Ji,$i(s),t.onStart){var r=t.onStart(f);l=r&&r.ripple;}t.onPress&&(n=!0,clearTimeout(i),i=setTimeout(T,50)),e.type===Gn&&(Fe(x,qn,S),Fe(x,Xn,M)),Fe(x,Wn,F);}}function S(e){v&&(u=Gi(e,"X"),m=Gi(e,"Y"),p=u-d,_=m-h,!c&&(Math.abs(p)>9||Math.abs(_)>9)&&(c=!0,b(s)),f.moved=c,f.endX=u,f.endY=m,f.deltaX=p,f.deltaY=_,f.domEvent=e,f.isTouch=e.type===ni,t.onMove&&t.onMove(f));}function M(e){v&&(n&&!a&&(clearTimeout(i),i=null,T()),f.domEvent=e,f.isTouch=e.type===ii,t.onEnd&&t.onEnd(f),b(s,75),v=!1,e.type===ii&&t.click&&Ie&&!c&&qi(e,e.target),e.type===Xn&&(Le(x,qn,S),Le(x,Xn,M)),Le(x,Wn,F));}function w(e){y(e)||(o=!0,t.onHoverIn(e));}function k(e){o&&t.onHoverOut(e),o=!1;}function C(e){t.onKeyDown(e);}function Y(e){(t.keepFocus||g.__mbscFocusVisible)&&(r=!0,t.onFocus(e));}function I(e){r&&t.onBlur(e),r=!1;}function E(e){t.onChange(e);}function N(e){t.onInput(e);}function H(e){f.domEvent=e,Ji||t.onDoubleClick(f);}function F(e){Ji&&e.preventDefault();}if(Fe(e,Gn,D),Fe(e,ai,D,{passive:!0}),Fe(e,ni,S,{passive:!1}),Fe(e,ii,M),Fe(e,si,M),t.onChange&&Fe(e,An,E),t.onInput&&Fe(e,Bn,N),t.onHoverIn&&Fe(e,Zn,w),t.onHoverOut&&Fe(e,Qn,k),t.onKeyDown&&Fe(e,Kn,C),t.onFocus&&g&&(Fe(e,jn,Y),!t.keepFocus)){var L=g.__mbscFocusCount||0;0===L&&(Fe(g,Gn,Zi,!0),Fe(g,Kn,Qi,!0)),g.__mbscFocusCount=++L;}return t.onBlur&&Fe(e,zn,I),t.onDoubleClick&&Fe(e,Un,H),function(){if(i&&clearTimeout(i),t.onFocus&&g&&!t.keepFocus){var a=g.__mbscFocusCount||0;g.__mbscFocusCount=--a,a<=0&&(Le(g,Gn,Zi),Le(g,Kn,Qi));}Le(e,Bn,N),Le(e,Gn,D),Le(e,ai,D,{passive:!0}),Le(e,ni,S,{passive:!1}),Le(e,ii,M),Le(e,si,M),Le(x,qn,S),Le(x,Xn,M),Le(x,Wn,F),Le(e,An,E),Le(e,Zn,w),Le(e,Qn,k),Le(e,Kn,C),Le(e,jn,Y),Le(e,zn,I),Le(e,Un,H);};}g&&(["mousedown",Zn,Gn,Xn,Rn].forEach((function(e){ve.addEventListener(e,Xi,!0);})),"android"===m&&M<5&&ve.addEventListener(An,(function(e){var t=e.target;Ki&&"checkbox"===t.type&&!t.mbscChange&&(e.stopPropagation(),e.preventDefault()),delete t.mbscChange;}),!0));var ts=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._mounted=function(){var e=this;this._unlisten=es(this._el,{click:!0,onBlur:function(){e.setState({hasFocus:!1});},onFocus:function(){e.setState({hasFocus:!0});},onHoverIn:function(){e.s.disabled||e.setState({hasHover:!0});},onHoverOut:function(){e.setState({hasHover:!1});},onKeyDown:function(t){switch(t.keyCode){case oi:case li:e._el.click(),t.preventDefault();}},onPress:function(){e.setState({isActive:!0});},onRelease:function(){e.setState({isActive:!1});},onStart:function(){return {ripple:e.s.ripple&&!e.s.disabled};}});},t.prototype._render=function(e,t){var a=this,n=e.disabled;this._isIconOnly=!(!e.icon&&!e.iconSvg),this._hasStartIcon=!(!e.startIcon&&!e.startIconSvg),this._hasEndIcon=!(!e.endIcon&&!e.endIconSvg),this._tabIndex=n?j:e.tabIndex||0,this._cssClass=this._className+" mbsc-reset mbsc-font mbsc-button"+this._theme+this._rtl+" mbsc-button-"+e.variant+(this._isIconOnly?" mbsc-icon-button":"")+(n?" mbsc-disabled":"")+(e.color?" mbsc-button-"+e.color:"")+(t.hasFocus&&!n?" mbsc-focus":"")+(t.isActive&&!n?" mbsc-active":"")+(t.hasHover&&!n?" mbsc-hover":""),this._iconClass="mbsc-button-icon"+this._rtl,this._startIconClass=this._iconClass+" mbsc-button-icon-start",this._endIconClass=this._iconClass+" mbsc-button-icon-end",e.disabled&&t.hasHover&&setTimeout((function(){a.setState({hasHover:!1});}));},t.prototype._destroy=function(){this._unlisten&&this._unlisten();},t.defaults={ripple:!1,role:"button",tag:"button",variant:"standard"},t._name="Button",t;}(Vn);var as=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return function(e,t,a){var n=t.props,i=n.ariaLabel;n.children,n.className,n.color;var s=n.endIcon;n.endIconSrc;var r=n.endIconSvg;n.hasChildren;var o=n.icon;n.iconSrc;var l=n.iconSvg;n.ripple,n.rtl;var c=n.role,d=n.startIcon;n.startIconSrc;var m=n.startIconSvg;n.tag,n.tabIndex,n.theme,n.themeVariant,n.variant;var p=u(n,["ariaLabel","children","className","color","endIcon","endIconSrc","endIconSvg","hasChildren","icon","iconSrc","iconSvg","ripple","rtl","role","startIcon","startIconSrc","startIconSvg","tag","tabIndex","theme","themeVariant","variant"]),_=h({"aria-label":i,className:t._cssClass,ref:t._setEl},p),v=et(at,null,t._isIconOnly&&et(Bi,{className:t._iconClass,name:o,svg:l,theme:e.theme}),t._hasStartIcon&&et(Bi,{className:t._startIconClass,name:d,svg:m,theme:e.theme}),a,t._hasEndIcon&&et(Bi,{className:t._endIconClass,name:s,svg:r,theme:e.theme}));return "span"===e.tag?et("span",h({role:c,"aria-disabled":e.disabled,tabIndex:t._tabIndex},_),v):"a"===e.tag?et("a",h({"aria-disabled":e.disabled,tabIndex:t._tabIndex},_),v):et("button",h({role:c,tabIndex:t._tabIndex},_),v);}(e,this,e.children);},t;}(ts),ns=kt({}),is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype.componentWillUnmount=function(){this._changes&&this._changes.unsubscribe(this._handler);},t.prototype.render=function(){var e=this,t=this.props,a=t.host,n=t.component,i=t.view,s=u(t,["host","component","view"]),r=i||a&&a._calendarView;return r&&!this._changes&&(this._changes=r.s.instanceService.onComponentChange,this._handler=this._changes.subscribe((function(){e.forceUpdate();}))),et(ns.Consumer,null,(function(e){var t=e.instance||i||a&&a._calendarView;return t&&et(n,h({inst:t},s));}));},t;}(Ct),ss=function(e){var t=e.inst,a=e.className;return et(as,{ariaLabel:t.s.prevPageText,className:"mbsc-calendar-button "+(a||""),disabled:t._isPrevDisabled(),iconSvg:t._prevIcon,onClick:t.prevPage,theme:t.s.theme,themeVariant:t.s.themeVariant,type:"button",variant:"flat"});},rs=function(e){var t=e.inst,a=e.className;return et(as,{ariaLabel:t.s.nextPageText,disabled:t._isNextDisabled(),className:"mbsc-calendar-button "+(a||""),iconSvg:t._nextIcon,onClick:t.nextPage,theme:t.s.theme,themeVariant:t.s.themeVariant,type:"button",variant:"flat"});},os=function(e){var t=e.inst,a=e.className;return et(as,{className:"mbsc-calendar-button mbsc-calendar-button-today "+(a||""),onClick:t._onTodayClick,theme:t.s.theme,themeVariant:t.s.themeVariant,type:"button",variant:"flat"},t.s.todayText);},ls=function(e){var t=e.inst,a=e.className,n=t.s,i=t._theme,s=t._view;return et("div",{"aria-live":"polite",className:(a||"")+i},t._title.map((function(e,a){return (1===t._pageNr||0===a||t._hasPicker||s===yn)&&et(as,{className:"mbsc-calendar-button"+(t._pageNr>1?" mbsc-flex-1-1":""),"data-index":a,onClick:t._onPickerBtnClick,key:a,theme:n.theme,themeVariant:n.themeVariant,type:"button",variant:"flat"},(t._hasPicker||s===yn)&&(e.title?et("span",{className:"mbsc-calendar-title"+i},e.title):et(at,null,t._yearFirst&&et("span",{className:"mbsc-calendar-title mbsc-calendar-year"+i},e.yearTitle),et("span",{className:"mbsc-calendar-title mbsc-calendar-month"+i},e.monthTitle),!t._yearFirst&&et("span",{className:"mbsc-calendar-title mbsc-calendar-year"+i},e.yearTitle))),!t._hasPicker&&s!==yn&&et("span",{className:"mbsc-calendar-title"+i},t._viewTitle),n.downIcon&&1===t._pageNr?et(Bi,{svg:s===yn?n.downIcon:n.upIcon,theme:n.theme}):null);})));},cs=function(e){var t=e.calendar,a=e.view,n=u(e,["calendar","view"]);return et(is,h({component:ss,host:t,view:a},n));};cs._name="CalendarPrev";var ds=function(e){var t=e.calendar,a=e.view,n=u(e,["calendar","view"]);return et(is,h({component:rs,host:t,view:a},n));};ds._name="CalendarNext";var hs=function(e){var t=e.calendar,a=e.view,n=u(e,["calendar","view"]);return et(is,h({component:os,host:t,view:a},n));};hs._name="CalendarToday";var us=function(e){var t=e.calendar,a=e.view,n=u(e,["calendar","view"]);return et(is,h({component:ls,host:t,view:a},n));};us._name="CalendarNav";var ms=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={height:"sm",pageSize:0,pickerSize:0,width:"sm"},t._dim={},t._months=[1,2,3],t._title=[],t.PAGE_VIEW=yn,t.MONTH_VIEW=xn,t.YEAR_VIEW=gn,t.MULTI_YEAR_VIEW=fn,t.nextPage=function(){switch(t._prevDocClick(),t._view){case xn:t._activeMonthChange(1);break;case fn:t._activeYearsChange(1);break;case gn:t._activeYearChange(1);break;default:t._activeChange(1);}},t.prevPage=function(){switch(t._prevDocClick(),t._view){case xn:t._activeMonthChange(-1);break;case fn:t._activeYearsChange(-1);break;case gn:t._activeYearChange(-1);break;default:t._activeChange(-1);}},t._changeView=function(e){var a=t.s,n=t._view,i=t._hasPicker,s=a.selectView,r=a.navView,o=a.showCalendar&&"year"===a.calendarType;if(!e){switch(n){case yn:e=r||(o?fn:gn);break;case xn:e=gn;break;case fn:e=o||r===fn?yn:gn;break;default:e=i&&r===gn||s===gn||t._prevView!==fn?fn:r===xn?xn:yn;}s!==fn&&r!==fn||(e=fn);}n===yn&&(t._activeMonth=t._active);var l=i&&e===s;t._prevView=n,t.setState({view:e,viewClosing:l?j:n,viewOpening:l?j:e});},t._onDayHoverIn=function(e){t._disableHover||(t._hook("onDayHoverIn",e),t._hoverTimer=setTimeout((function(){var a=Oa(e.date);t._labels&&(e.labels=t._labels[a]),t._marked&&(e.marked=t._marked[a]),t._isHover=!0,t._hook("onCellHoverIn",e);}),150));},t._onDayHoverOut=function(e){if(!t._disableHover&&(t._hook("onDayHoverOut",e),clearTimeout(t._hoverTimer),t._isHover)){var a=Oa(e.date);t._labels&&(e.labels=t._labels[a]),t._marked&&(e.marked=t._marked[a]),t._isHover=!1,t._hook("onCellHoverOut",e);}},t._onLabelClick=function(e){t._isLabelClick=!0,t._hook("onLabelClick",e);}
277,t._onDayClick=function(e){t._shouldFocus=!t._isLabelClick,t._prevAnim=!1,t._isLabelClick=!1,t._hook("onDayClick",e);},t._onTodayClick=function(e){t._prevAnim=!1,t._hook("onActiveChange",{date:+Ga(qa(t.s)),today:!0}),t._hook("onTodayClick",{});},t._onNavDayClick=function(e){if(!e.disabled){var a=e.date,n=Sn(a,t.s);t._prevDocClick(),t._changeView(yn),t._shouldFocus=!0,t._prevAnim=!t._hasPicker,t._hook("onActiveChange",{date:+a,nav:!0,pageChange:n!==t._pageIndex,today:!0});}},t._onMonthClick=function(e){if(!e.disabled){var a=t.s,n=new Date(e.date);if(a.selectView===gn)t._hook("onDayClick",e);else if(t._prevDocClick(),t._shouldFocus=!0,t._prevAnim=!t._hasPicker,t._activeMonth=+n,a.navView===gn||a.navView===j){var i=Sn(n,a);t._changeView(yn),t._hook("onActiveChange",{date:+n,nav:!0,pageChange:i!==t._pageIndex,today:!0});}else t._changeView(xn);}},t._onYearClick=function(e){if(!e.disabled){var a=e.date,n=t.s,i=n.selectView;if(i===fn)t._hook("onDayClick",e);else if(t._shouldFocus=!0,t._prevAnim=i===gn,t._activeMonth=+a,t._prevDocClick(),n.navView===fn||"year"===n.calendarType){var s=Sn(a,n);t._changeView(yn),t._hook("onActiveChange",{date:+a,pageChange:s!==t._pageIndex,today:!0});}else t._changeView(gn);}},t._onPageChange=function(e){t._isSwipeChange=!0,t._activeChange(e.diff);},t._onMonthPageChange=function(e){t._activeMonthChange(e.diff);},t._onYearPageChange=function(e){t._activeYearChange(e.diff);},t._onYearsPageChange=function(e){t._activeYearsChange(e.diff);},t._onAnimationEnd=function(e){t._disableHover=!1,t._isIndexChange&&(t._pageLoaded(),t._isIndexChange=!1);},t._onStart=function(){clearTimeout(t._hoverTimer);},t._onGestureStart=function(e){t._disableHover=!0,t._hook("onGestureStart",e);},t._onGestureEnd=function(e){t._prevDocClick();},t._onPickerClose=function(){t.setState({view:yn});},t._onPickerOpen=function(){var e=t._pickerCont.clientHeight,a=t._pickerCont.clientWidth;t.setState({pickerSize:t._isVertical?e:a});},t._onPickerBtnClick=function(e){t._view===yn&&(t._pickerBtn=e.currentTarget),t._prevDocClick(),t._changeView();},t._onDocClick=function(){var e=t.s.selectView;t._prevClick||t._hasPicker||t._view===e||t._changeView(e);},t._onViewAnimationEnd=function(){t.state.viewClosing&&t.setState({viewClosing:j}),t.state.viewOpening&&t.setState({viewOpening:j});},t._onResize=function(){if(t._body&&g){var e=t.s,a=t.state,n=e.showCalendar,i=n?t._body.querySelector(".mbsc-calendar-body-inner"):t._body,s=t._el.offsetWidth,r=t._el.offsetHeight,o=i.clientHeight,l=i.clientWidth,c=t._isVertical?o:l,d=t._hasPicker?a.pickerSize:c,h=n!==j,u="sm",m="sm",p=j,_=!1,v=0,f=0;if(e.responsiveStyle&&!t._isGrid&&(o>300&&(m="md"),l>767&&(u="md")),u!==a.width||m!==a.height)t._shouldCheckSize=!0,t.setState({width:u,height:m});else{if(t._labels&&n){var x=i.querySelector(".mbsc-calendar-text"),y=i.querySelector(".mbsc-calendar-day-inner"),T=y.querySelector(".mbsc-calendar-labels"),b=x?Ve(x,"marginBottom"):2,D=x?x.offsetHeight:18;v=T.offsetTop,_=i.scrollHeight>i.clientHeight,f=D+b,p=Math.max(1,de((y.clientHeight-v)/f));}t._hook("onResize",{height:r,target:t._el,width:s}),e.navService.pageSize=c;var S=t._shouldPageLoad?(a.update||0)+1:a.update;t.setState({cellTextHeight:v,hasScrollY:_,labelHeight:f,maxLabels:p,pageSize:c,pickerSize:d,ready:h,update:S});}}},t._onKeyDown=function(e){var a,n=t.s,i=t._view,s=i===yn?t._active:t._activeMonth,r=new Date(s),o=n.getYear(r),l=n.getMonth(r),c=n.getDay(r),d=n.getDate,h=n.weeks,u="month"===n.calendarType;if(i===fn){var m=void 0;switch(e.keyCode){case mi:m=o-1*t._rtlNr;break;case _i:m=o+1*t._rtlNr;break;case pi:m=o-3;break;case vi:m=o+3;break;case ui:m=t._getPageYears(t._yearsIndex);break;case hi:m=t._getPageYears(t._yearsIndex)+11;break;case ci:m=o-12;break;case di:m=o+12;}m&&t._minYears<=m&&t._maxYears>=m&&(e.preventDefault(),t._shouldFocus=!0,t._prevAnim=!1,t._activeMonth=+d(m,0,1),t.forceUpdate());}else if(i===gn){switch(e.keyCode){case mi:a=d(o,l-1*t._rtlNr,1);break;case _i:a=d(o,l+1*t._rtlNr,1);break;case pi:a=d(o,l-3,1);break;case vi:a=d(o,l+3,1);break;case ui:a=d(o,0,1);break;case hi:a=d(o,11,1);break;case ci:a=d(o-1,l,1);break;case di:a=d(o+1,l,1);}a&&t._minYear<=a&&t._maxYear>=a&&(e.preventDefault(),t._shouldFocus=!0,t._prevAnim=!1,t._activeMonth=+a,t.forceUpdate());}else{switch(e.keyCode){case mi:a=d(o,l,c-1*t._rtlNr);break;case _i:a=d(o,l,c+1*t._rtlNr);break;case pi:a=d(o,l,c-7);break;case vi:a=d(o,l,c+7);break;case ui:a=d(o,l,1);break;case hi:a=d(o,l+1,0);break;case ci:a=e.altKey?d(o-1,l,c):u?d(o,l-1,c):d(o,l,c-7*h);break;case di:a=e.altKey?d(o+1,l,c):u?d(o,l+1,c):d(o,l,c+7*h);}if(a&&t._minDate<=a&&t._maxDate>=a){e.preventDefault();var p=Sn(a,n);t._shouldFocus=!0,t._prevAnim=!1,i===xn?(t._activeMonth=+a,t.forceUpdate()):(t._pageChange=n.noOuterChange&&p!==t._pageIndex,t._hook("onActiveChange",{date:+a,pageChange:t._pageChange}));}}
277},t._setHeader=function(e){t._headerElement=e;},t._setBody=function(e){t._body=e;},t._setPickerCont=function(e){t._pickerCont=e;},t;}return d(t,e),t.prototype._getPageDay=function(e){return +Dn(e,this.s);},t.prototype._getPageStyle=function(e,t,a,n){var i;return (i={})[(Ee?Ee+"T":"t")+"ransform"]="translate"+this._axis+"("+100*(e-t)*this._rtlNr+"%)",i.position=e===a?"relative":"",i.width=100/(n||1)+"%",i;},t.prototype._getPageMonth=function(e){var t=this.s,a=t.refDate?Xa(t.refDate):Ya,n=t.getYear(a),i=t.getMonth(a);return +t.getDate(n,i+e,1);},t.prototype._getPageYear=function(e){var t=this.s,a=t.refDate?Xa(t.refDate):Ya;return t.getYear(a)+e;},t.prototype._getPageYears=function(e){var t=this.s,a=t.refDate?Xa(t.refDate):Ya;return t.getYear(a)+12*e;},t.prototype._getPickerClass=function(e){var t,a=e===this.s.selectView?" mbsc-calendar-picker-main":"",n="mbsc-calendar-picker",i=this._hasPicker,s=this.state,r=s.viewClosing,o=s.viewOpening;switch(e){case yn:t=i?"":(o===yn?"in-down":"")+(r===yn?"out-down":"");break;case xn:t=i&&r===yn?"":(o===xn?"in-down":"")+(r===xn?"out-down":"");break;case fn:t=i&&r===yn?"":(o===fn?"in-up":"")+(r===fn?"out-up":"");break;default:t=!i||o!==yn&&r!==yn?(o===gn?r===fn?"in-down":"in-up":"")+(r===gn?o===fn?"out-down":"out-up":""):"";}return n+a+(ke&&t?" "+n+"-"+t:"");},t.prototype._isNextDisabled=function(e){if(!this._hasPicker||e){var t=this._view;if(t===fn)return this._yearsIndex+1>this._maxYearsIndex;if(t===gn)return this._yearIndex+1>this._maxYearIndex;if(t===xn)return this._monthIndex+1>this._maxMonthIndex;}return this._pageIndex+1>this._maxIndex;},t.prototype._isPrevDisabled=function(e){if(!this._hasPicker||e){var t=this._view;if(t===fn)return this._yearsIndex-1<this._minYearsIndex;if(t===gn)return this._yearIndex-1<this._minYearIndex;if(t===xn)return this._monthIndex-1<this._minMonthIndex;}return this._pageIndex-1<this._minIndex;},t.prototype._render=function(e,t){var a=e.getDate,n=e.getYear,i=e.getMonth,s=e.showCalendar,r=e.calendarType,o=e.eventRange,l=e.eventRangeSize||1,c=e.firstDay,d="week"===r,h="month"===r,u="year"===r?12:+(e.size||1),m=u>1&&!d,p=s?d?e.weeks:6:0,_=e.activeDate||this._active||+new Date(),v=_!==this._active,f=new Date(_),g=this._prevS,x=e.dateFormat,y=e.monthNames,T=e.yearSuffix,b=Z(e.labelList)?+e.labelList+1:"all"===e.labelList?-1:0,D=e.labelList!==g.labelList,S=e.navService,M=S.pageIndex,w=S.firstDay,k=S.lastDay,C=S.viewStart,Y=S.viewEnd;if(this._minDate=S.minDate,this._maxDate=S.maxDate,ee(e.min))this._minIndex=-1/0,this._minYears=-1/0,this._minYearsIndex=-1/0,this._minYear=-1/0,this._minYearIndex=-1/0,this._minMonthIndex=-1/0;else{var I=za(this._minDate);this._minDate=za(I),this._minYear=a(n(I),i(I),1),this._minYears=n(I),this._minIndex=Sn(I,e),this._minYearIndex=wn(I,e),this._minYearsIndex=Mn(I,e),this._minMonthIndex=kn(I,e);}if(ee(e.max))this._maxIndex=1/0,this._maxYears=1/0,this._maxYearsIndex=1/0,this._maxYear=1/0,this._maxYearIndex=1/0,this._maxMonthIndex=1/0;else{var E=this._maxDate;this._maxYear=a(n(E),i(E)+1,1),this._maxYears=n(E),this._maxIndex=Sn(E,e),this._maxYearIndex=wn(E,e),this._maxYearsIndex=Mn(E,e),this._maxMonthIndex=kn(E,e);}var N=r!==g.calendarType||o!==g.eventRange||c!==g.firstDay||e.eventRangeSize!==g.eventRangeSize||e.refDate!==g.refDate||e.showCalendar!==g.showCalendar||e.weeks!==g.weeks;N&&this._pageIndex!==j&&(this._prevAnim=!0),v&&(this._activeMonth=_),this._view=t.view||e.selectView,this._yearsIndex=Mn(new Date(this._activeMonth),e),this._yearIndex=wn(new Date(this._activeMonth),e),this._monthIndex=kn(new Date(this._activeMonth),e);var H=m?1:Yn(e.pages,t.pageSize),F="vertical"===e.calendarScroll&&"auto"!==e.pages&&(e.pages===j||1===e.pages),L=e.showOuterDays!==j?e.showOuterDays:!F&&H<2&&(d||!u||u<2),P=x.search(/m/i),V=x.search(/y/i);if(this._view===xn){var O=new Date(this._getPageMonth(this._monthIndex)),z=y[i(O)],A=n(O)+T;this._viewTitle=V<P?A+" "+z:z+" "+A;}else if(this._view===gn)this._viewTitle=this._getPageYear(this._yearIndex)+"";else{if(this._view===fn){var R=this._getPageYears(this._yearsIndex);this._viewTitle=R+" - "+(R+11);}}if(m&&(this._monthsMulti=[],M!==j)){for(var W=de(.96*t.pageSize/325.6)||1;u%W;)W--;for(var U=0;U<u/W;++U){for(var J=[],B=0;B<W;
277++B)J.push(+a(n(w),i(w)+U*W+B,1));this._monthsMulti.push(J);}}(r!==g.calendarType||e.theme!==g.theme||e.calendarScroll!==g.calendarScroll||e.hasContent!==g.hasContent||e.showCalendar!==g.showCalendar||e.showSchedule!==g.showSchedule||e.showWeekNumbers!==g.showWeekNumbers||e.weeks!==g.weeks||D)&&(this._shouldCheckSize=!0),g.width===e.width&&g.height===e.height||(this._dim={height:se(e.height),width:se(e.width)}),this._cssClass="mbsc-calendar mbsc-font mbsc-flex-col"+this._theme+this._rtl+(t.ready?"":" mbsc-hidden")+(m?" mbsc-calendar-grid-view":" mbsc-calendar-height-"+t.height+" mbsc-calendar-width-"+t.width)+" "+e.cssClass,this._dayNames="sm"===t.width||m?e.dayNamesMin:e.dayNamesShort,this._isSwipeChange=!1,this._yearFirst=V<P,this._pageNr=H,this._variableRow=b;var K=e.pageLoad!==g.pageLoad,G=+C!=+this._viewStart||+Y!=+this._viewEnd;if(this._pageIndex!==j&&G&&(this._isIndexChange=!this._isSwipeChange&&!N),M!==j&&(this._pageIndex=M),M!==j&&(e.marked!==g.marked||e.colors!==g.colors||e.labels!==g.labels||e.invalid!==g.invalid||e.valid!==g.valid||t.maxLabels!==this._maxLabels||G||D||K)){this._maxLabels=t.maxLabels,this._viewStart=C,this._viewEnd=Y;var q=e.labelsMap||_n(e.labels,C,Y,e),X=q&&function(e,t,a,n,i,s,r,o,l,c,d,h,u,m){t=t||{};for(var p={},_=new Map(),v={},f=a,g=0,x=i,y=n;f<n;){var T=Oa(f),b=f.getDay(),D=e.getDay(f),S=d&&e.getDate(e.getYear(f),e.getMonth(f)+1,0),M=l&&(b===o||1===D&&d)||+f==+a,w=Wa(f,e),k=In(t[T]||[],c),C=void 0,Y=void 0,I=void 0,E=0,N=0,H=0;M&&(v={},y=l?tn(w,s):n),r&&(k=k.filter((function(e){return e.allDay;}))),-1===i&&(x=k.length+1);var F=k.length,L=[];for(h&&(L.push({id:"count_"+ +f,count:F,placeholder:0===F}),E=x);F&&E<x;){C=null;for(var P=0;P<k.length;P++)v[E]===k[P]&&(C=k[P],I=P);if(Y=C&&_.get(C)||[],E===x-1&&(N<F-1||H===F&&!C)&&-1!==i){var V=F-N,O=u||"",z=(V>1&&m||O).replace(/{count}/,V);if(V&&L.push({id:"more_"+ ++g,more:z,label:z}),C){v[E]=null;for(var A=0,R=Y;A<R.length;A++){var W=R[A],U=O.replace(/{count}/,"1");p[Oa(W)].data[E]={id:"more_"+ ++g,more:U,label:U};}}N++,E++;}else if(C)I===H&&H++,Ua(f,Xa(C.end,hn(e,C)))&&(v[E]=null),L.push({id:C.occurrenceId||C.id,event:C}),E++,N++,Y.push(f);else if(H<F){var J=k[H],B=J.allDay,K=hn(e,J),G=J.start&&Xa(J.start,K);if(!G||Ua(f,G)||M){var q=Va(e,B,G,J.end&&Xa(J.end,K),!0),X=q&&!Ua(G,q),Z=S&&S<q?S:q,Q=G?", "+e.fromText+": "+Qa("DDDD, MMMM D, YYYY",G,e):"",$=q?", "+e.toText+": "+Qa("DDDD, MMMM D, YYYY",q,e):"";J.id===j&&(J.id="mbsc_"+vn++),X&&(v[E]=J),_.set(J,[f]),L.push({event:J,id:J.occurrenceId||J.id,label:(J.title||J.text||"")+Q+$,lastDay:S?tn(S,1):j,multiDay:X,showText:!0,width:X?100*Math.min(Ra(f,Z)+1,Ra(f,y)):100}),E++,N++;}H++;}else N<F&&L.push({id:"ph_"+ ++g,placeholder:!0}),E++;}p[T]={data:L,events:k},f=za(tn(f,1));}return p;}(e,q,C,Y,this._variableRow||this._maxLabels||1,7,!1,c,!0,e.eventOrder,!L,e.showLabelCount,e.moreEventsText,e.moreEventsPluralText);X&&!this._labels&&(this._shouldCheckSize=!0),(X&&t.maxLabels||!X)&&(this._shouldPageLoad=!this._isIndexChange||this._prevAnim||!s||K||m||!!b),this._labelsLayout=X,this._labels=q,this._marked=q?j:e.marksMap||_n(e.marked,C,Y,e),this._colors=_n(e.colors,C,Y,e),this._valid=_n(e.valid,C,Y,e,!0),this._invalid=_n(e.invalid,C,Y,e,!0);}if(G||v||o!==g.eventRange||l!==g.eventRangeSize||e.monthNames!==g.monthNames){this._title=[];var Q=tn(k,-1),$=M===j?f:w;if(d){$=f;for(var te=0,ae=Object.keys(e.selectedDates);te<ae.length;te++){var ne=ae[te];if(+ne>=+w&&+ne<+k){$=new Date(+ne);break;}}}if(this._pageNr>1)for(U=0;U<H;U++){var ie=a(n(w),i(w)+U,1),re=n(ie)+T,oe=y[i(ie)];this._title.push({yearTitle:re,monthTitle:oe});}else{var le={yearTitle:n($)+T,monthTitle:y[i($)]},ce=e.showSchedule&&1===l?o:s?r:o,he=o&&!s&&(!e.showSchedule||l>1);switch(ce){case "year":le.title=n(w)+T,l>1&&(le.title+=" - "+(n(Q)+T));break;case "month":if(l>1&&!s){var ue=y[i(w)],me=n(w)+T,pe=this._yearFirst?me+" "+ue:ue+" "+me,_e=y[i(Q)],ve=n(Q)+T,fe=this._yearFirst?ve+" "+_e:_e+" "+ve;le.title=pe+" - "+fe;}else m&&(le.title=n(w)+T);break;case "day":case "week":if(he){var ge=x.search(/d/i)<P?"D MMM, YYYY":"MMM D, YYYY";le.title=Qa(ge,w,e),("week"===ce||l>1)&&(le.title+=" - "+Qa(ge,Q,e));}}this._title.push(le);}}this._active=_,this._hasPicker=e.hasPicker||m||!h||!s||"md"===t.width&&!1!==e.hasPicker,this._axis=F?"Y":"X",this._rtlNr=!F&&e.rtl?-1:1,this._weeks=p,this._nextIcon=F?e.nextIconV:e.rtl?e.prevIconH:e.nextIconH,this._prevIcon=F?e.prevIconV:e.rtl?e.nextIconH:e.prevIconH,this._mousewheel=e.mousewheel===j?F:e.mousewheel,this._isGrid=m,this._isVertical=F,this._showOuter=L,this._showDaysTop=F||!!b&&1===u;},t.prototype._mounted=function(){this._observer=gi(this._el,this._onResize,this._zone),this._doc=Pe(this._el),Fe(this._doc,Rn,this._onDocClick);},t.prototype._updated=function(){var e=this;if(this._shouldCheckSize?(setTimeout((function(){e._onResize();})),this._shouldCheckSize=!1):this._shouldPageLoad&&(this._pageLoaded(),this._shouldPageLoad=!1),this._shouldFocus&&setTimeout((function(){e._focusActive(),e._shouldFocus=!1;})),this.s.instanceService&&this.s.instanceService.onComponentChange.next({}),this._pageChange=!1,this._variableRow&&this.s.showCalendar){var t=this._body.querySelector(".mbsc-calendar-body-inner"),a=t.scrollHeight>t.clientHeight;a!==this.state.hasScrollY&&(this._shouldCheckSize=!0,this.setState({hasScrollY:a}));}},t.prototype._destroy=function(){this._observer&&this._observer.detach(),Le(this._doc,Rn,this._onDocClick),clearTimeout(this._hoverTimer);},t.prototype._getActiveCell=function(){var e=this._view,t=e===yn?this._body:this._pickerCont,a=e===fn?"year":e===gn?"month":"cell";return t&&t.querySelector(".mbsc-calendar-"+a+'[tabindex="0"]');},t.prototype._focusActive=function(){var e=this._getActiveCell();e&&e.focus();},t.prototype._pageLoaded=function(){var e=this.s.navService;this._hook("onPageLoaded",{activeElm:this._getActiveCell(),firstDay:e.firstPageDay,lastDay:e.lastPageDay,month:"month"===this.s.calendarType?e.firstDay:j,viewEnd:e.viewEnd,viewStart:e.viewStart});},t.prototype._activeChange=function(e){var t=this._pageIndex+e;this._minIndex<=t&&this._maxIndex>=t&&(this._prevAnim=!1,this._pageChange=!0,this._hook("onActiveChange",{date:this._getPageDay(t),dir:e,pageChange:!0}));},t.prototype._activeMonthChange=function(e){var t=this._monthIndex+e;this._minMonthIndex<=t&&this._maxMonthIndex>=t&&(this._prevAnim=!1,this._activeMonth=this._getPageMonth(t),this.forceUpdate());},t.prototype._activeYearsChange=function(e){var t=this._yearsIndex+e;if(this._minYearsIndex<=t&&this._maxYearsIndex>=t){var a=this._getPageYears(t);this._prevAnim=!1,this._activeMonth=+this.s.getDate(a,0,1),this.forceUpdate();}},t.prototype._activeYearChange=function(e){var t=this._yearIndex+e;if(this._minYearIndex<=t&&this._maxYearIndex>=t){var a=this._getPageYear(t);this._prevAnim=!1,this._activeMonth=+this.s.getDate(a,0,1),this.forceUpdate();}},t.prototype._prevDocClick=function(){var e=this;this._prevClick=!0,setTimeout((function(){e._prevClick=!1;}));},t;}(Vn);function ps(e){return this.getChildContext=function(){return e.context;},e.children;}function _s(e){var t=this,a=e._container;t.componentWillUnmount=function(){Mt(null,t._temp),t._temp=null,t._container=null;},t._container&&t._container!==a&&t.componentWillUnmount(),e._vnode?(t._temp||(t._container=a,t._temp={nodeType:1,parentNode:a,childNodes:[],appendChild:function(e){this.childNodes.push(e),t._
277container.appendChild(e);},insertBefore:function(e,a){this.childNodes.push(e),t._container.appendChild(e);},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t._container.removeChild(e);}}),Mt(et(ps,{context:t.context},e._vnode),t._temp)):t._temp&&t.componentWillUnmount();}function vs(e,t){return et(_s,{_vnode:e,_container:t});}var fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype.render=function(){var e=this.props.context;return e?vs(this.props.children,e):null;},t;}(nt),gs=fs;var xs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e,t){return function(e,t,a,n){var i,s,r=a._hb,o=a._rtl,l=a._theme,c=e.display,d=((i={}).onKeyDown=a._onKeyDown,i),u=((s={}).onAnimationEnd=a._onAnimationEnd,s);return a._isModal?a._isVisible?et(gs,{context:a._ctx},et("div",h({className:"mbsc-font mbsc-flex mbsc-popup-wrapper mbsc-popup-wrapper-"+c+l+o+" "+a._className+(e.fullScreen?" mbsc-popup-wrapper-"+c+"-full":"")+(a._touchUi?"":" mbsc-popup-pointer")+(a._round?" mbsc-popup-round":"")+(a._hasContext?" mbsc-popup-wrapper-ctx":"")+(t.isReady?"":" mbsc-popup-hidden"),ref:a._setWrapper},d),e.showOverlay&&et("div",{className:"mbsc-popup-overlay mbsc-popup-overlay-"+c+l+(a._isClosing?" mbsc-popup-overlay-out":"")+(a._isOpening&&t.isReady?" mbsc-popup-overlay-in":""),onClick:a._onOverlayClick}),et("div",{className:"mbsc-popup-limits mbsc-popup-limits-"+c,ref:a._setLimitator,style:a._limits}),et("div",h({className:"mbsc-flex-col mbsc-popup mbsc-popup-"+c+l+r+(e.fullScreen?"-full":"")+(t.bubblePos&&t.showArrow&&"anchored"===c?" mbsc-popup-anchored-"+t.bubblePos:"")+(a._isClosing?" mbsc-popup-"+a._animation+"-out":"")+(a._isOpening&&t.isReady?" mbsc-popup-"+a._animation+"-in":""),role:"dialog","aria-modal":"true",ref:a._setPopup,style:a._style,onClick:a._onPopupClick},u),"anchored"===c&&t.showArrow&&et("div",{className:"mbsc-popup-arrow-wrapper mbsc-popup-arrow-wrapper-"+t.bubblePos+l},et("div",{className:"mbsc-popup-arrow mbsc-popup-arrow-"+t.bubblePos+l,style:t.arrowPos})),et("div",{className:"mbsc-popup-focus",tabIndex:-1,ref:a._setActive}),et("div",{className:"mbsc-flex-col mbsc-flex-1-1 mbsc-popup-body mbsc-popup-body-"+c+l+r+(e.fullScreen?" mbsc-popup-body-"+c+"-full":"")+(a._round?" mbsc-popup-body-round":"")},a._headerText&&et("div",{className:"mbsc-flex-none mbsc-popup-header mbsc-popup-header-"+c+l+r+(a._buttons?"":" mbsc-popup-header-no-buttons"),dangerouslySetInnerHTML:a._headerText,"v-html":j}),et("div",{className:"mbsc-flex-1-1 mbsc-popup-content"+(e.contentPadding?" mbsc-popup-padding":""),ref:a._setContent},n),a._buttons&&et("div",{className:"mbsc-flex-none mbsc-popup-buttons mbsc-popup-buttons-"+c+l+o+r+(a._flexButtons?" mbsc-flex":"")+(e.fullScreen?" mbsc-popup-buttons-"+c+"-full":"")},a._buttons.map((function(t,n){return et(as,{color:t.color,className:"mbsc-popup-button mbsc-popup-button-"+c+o+r+(a._flexButtons?" mbsc-popup-button-flex":"")+" "+(t.cssClass||""),icon:t.icon,disabled:t.disabled,key:n,theme:e.theme,themeVariant:e.themeVariant,variant:t.variant||e.buttonVariant,onClick:t.handler},t.text);}))))))):null:et(at,null,n);}(e,t,this,e.children);},t;}(wi),ys={},Ts=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onClick=function(e){if(t._isDrag)e.stopPropagation();else{t._triggerEvent("onClick",e);var a=t.s,n=ys[a.id];n&&a.selected&&n.next({hasFocus:!1});}},t._onRightClick=function(e){t._triggerEvent("onRightClick",e);},t._onDocTouch=function(e){Le(t._doc,ai,t._onDocTouch),Le(t._doc,Gn,t._onDocTouch),t._isDrag=!1,t._hook("onDragModeOff",{domEvent:e,event:t.s.event});},t._updateState=function(e){t.s.showText&&t.setState(e);},t._triggerEvent=function(e,a){t._hook(e,{domEvent:a,label:t.s.event,target:t._el});},t;}return d(t,e),t.prototype._mounted=function(){var e,t=this,a=this.s,n=this._el,i=a.id,s=a.isPicker,r=ys[i];r||(r=new _(),ys[i]=r),this._unsubscribe=r.subscribe(this._updateState),this._doc=Pe(n),this._unlisten=es(n,{keepFocus:!0,onBlur:function(){s||r.next({hasFocus:!1});},onDoubleClick:function(e){e.domEvent.stopPropagation(),t._hook("onDoubleClick",{domEvent:e.domEvent,label:t.s.event,target:n});}
277,onEnd:function(a){if(t._isDrag){var i=t.s,s=h({},a);s.domEvent.preventDefault(),s.event=i.event,i.resize&&e?(s.resize=!0,s.direction=e):i.drag&&(s.drag=!0),t._hook("onDragEnd",s),i.isUpdate||(t._isDrag=!1),n&&s.moved&&n.blur();}clearTimeout(t._touchTimer),e=j;},onFocus:function(){s||r.next({hasFocus:!0});},onHoverIn:function(e){t._isDrag||s||(r.next({hasHover:!0}),t._triggerEvent("onHoverIn",e));},onHoverOut:function(e){r.next({hasHover:!1}),t._triggerEvent("onHoverOut",e);},onKeyDown:function(e){var a=t.s.event;switch(e.keyCode){case oi:case li:n.click(),e.preventDefault();break;case 8:case 46:a&&!1!==a.editable&&t._hook("onDelete",{domEvent:e,event:a,source:"calendar"});}},onMove:function(a){var n=t.s,i=h({},a);if(i.event=n.event,e)i.resize=!0,i.direction=e;else{if(!n.drag)return;i.drag=!0;}n.event&&!1!==n.event.editable&&(t._isDrag?(i.domEvent.preventDefault(),t._hook("onDragMove",i)):(Math.abs(i.deltaX)>7||Math.abs(i.deltaY)>7)&&(clearTimeout(t._touchTimer),i.isTouch||(t._isDrag=!0,t._hook("onDragStart",i))));},onStart:function(a){var n=t.s,i=h({},a),s=i.domEvent.target;if(i.event=n.event,n.resize&&s.classList.contains("mbsc-calendar-label-resize"))e=s.classList.contains("mbsc-calendar-label-resize-start")?"start":"end",i.resize=!0,i.direction=e;else{if(!n.drag)return;i.drag=!0;}n.event&&!1!==n.event.editable&&(!t._isDrag&&i.isTouch||i.domEvent.stopPropagation(),t._isDrag?t._hook("onDragStart",i):i.isTouch&&(t._touchTimer=setTimeout((function(){t._hook("onDragModeOn",i),t._hook("onDragStart",i),t._isDrag=!0;}),350)));}}),this._isDrag&&(Fe(this._doc,ai,this._onDocTouch),Fe(this._doc,Gn,this._onDocTouch));},t.prototype._destroy=function(){if(this._el&&this._el.blur(),this._unsubscribe){var e=this.s.id,t=ys[e];t&&(t.unsubscribe(this._unsubscribe),t.nr||delete ys[e]);}this._unlisten&&this._unlisten(),Le(this._doc,ai,this._onDocTouch),Le(this._doc,Gn,this._onDocTouch);},t.prototype._render=function(e,t){var a,n,i,s,r,o,l=e.event,c=new Date(e.date),d=e.render||e.renderContent,h=!1;if(this._isDrag=this._isDrag||e.isUpdate,this._content=j,this._title=e.more||e.count||!e.showEventTooltip?j:function(e){if(ve&&e){var t=ve.createElement("div");return t.innerHTML=e,t.textContent.trim();}return e||"";}(l.tooltip||l.title||l.text),this._tabIndex=e.isActiveMonth&&e.showText&&!e.count&&!e.isPicker?0:-1,l){var u=l.allDay,m=u?j:e;a=l.start?Xa(l.start,m):null,n=l.end?Xa(l.end,m):null;var p=a&&n&&Va(e,u,a,n,!0),_=tn(Wa(c,e),7),v=e.lastDay&&e.lastDay<_?e.lastDay:_;i=!(h=a&&p&&!Ua(a,p))||a&&Ua(a,c),s=!h||p&&Ua(p,c),r=!h||(e.showText?p<v:s),this._hasResizeStart=e.resize&&i,this._hasResizeEnd=e.resize&&r;var f=l.color;if(!f&&l.resource&&e.resourcesMap){var g=e.resourcesMap[X(l.resource)?l.resource[0]:l.resource];f=g&&g.color;}e.showText&&(this._textColor=f?We(f):j),this._color=e.render||e.template?j:l.textColor&&!f?"transparent":f;}if(l&&e.showText&&(d||e.contentTemplate||e.template)){var x=l.allDay||!a||h&&!i&&!s;if(this._data={end:!x&&s&&n?Qa(e.timeFormat,n,e):"",id:l.id,isMultiDay:h,original:l,start:!x&&i&&a?Qa(e.timeFormat,a,e):"",title:this._title},d){var y=d(this._data);$(y)?o=y:this._content=y;}}else o=e.more||e.count||e.showText&&(l.title||l.text)||"";o!==this._text&&(this._text=o,this._html=o?this._safeHtml(o):j,this._shouldEnhance=o&&l&&e.showText&&!!d),this._cssClass="mbsc-calendar-text"+this._theme+this._rtl+(t.hasFocus&&!e.inactive&&!e.selected||e.selected&&e.showText?" mbsc-calendar-label-active ":"")+(!t.hasHover||e.inactive||this._isDrag?"":" mbsc-calendar-label-hover")+(e.more?" mbsc-calendar-text-more":e.render||e.template?" mbsc-calendar-custom-label":" mbsc-calendar-label")+(e.inactive?" mbsc-calendar-label-inactive":"")+(e.isUpdate?" mbsc-calendar-label-dragging":"")+(e.hidden?" mbsc-calendar-label-hidden":"")+(i?" mbsc-calendar-label-start":"")+(r?" mbsc-calendar-label-end":"")+(l&&!1===l.editable?" mbsc-readonly-event":"")+(l&&l.cssClass?" "+l.cssClass:"");},t;}(Vn);var bs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return function(e,t){var a,n=e.event&&!1!==e.event.editable,i=((a={}).onContextMenu=t._onRightClick,a);return et("div",h({"aria-hidden":e.showText?j:"true",className:t._cssClass,"data-id":e.showText&&e.event?e.event.i
277d:null,onClick:t._onClick,ref:t._setEl,role:e.showText?"button":j,style:{color:t._color},tabIndex:t._tabIndex,title:t._title},i),t._hasResizeStart&&n&&et("div",{className:"mbsc-calendar-label-resize mbsc-calendar-label-resize-start"+t._rtl+(e.isUpdate?" mbsc-calendar-label-resize-start-touch":"")}),t._hasResizeEnd&&n&&et("div",{className:"mbsc-calendar-label-resize mbsc-calendar-label-resize-end"+t._rtl+(e.isUpdate?" mbsc-calendar-label-resize-end-touch":"")}),e.showText&&!e.more&&!e.render&&et("div",{className:"mbsc-calendar-label-background"+t._theme}),e.showText&&!e.more&&e.render?t._html?et("div",{dangerouslySetInnerHTML:t._html},j):t._content:et("div",{className:"mbsc-calendar-label-inner"+t._theme,style:{color:t._textColor}},et("div",{"aria-hidden":"true",className:"mbsc-calendar-label-text"+t._theme,dangerouslySetInnerHTML:t._html,style:{color:e.event&&e.event.textColor}},t._content),e.label&&et("div",{className:"mbsc-hidden-content"},e.label)));}(e,this);},t;}(Ts),Ds=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;
277return t._onClick=function(e){t._cellClick("onDayClick",e);},t._onRightClick=function(e){t._cellClick("onDayRightClick",e);},t._onLabelClick=function(e){t._labelClick("onLabelClick",e);},t._onLabelDoubleClick=function(e){t._labelClick("onLabelDoubleClick",e);},t._onLabelRightClick=function(e){t._labelClick("onLabelRightClick",e);},t._onLabelHoverIn=function(e){t._labelClick("onLabelHoverIn",e);},t._onLabelHoverOut=function(e){t._labelClick("onLabelHoverOut",e);},t;}return d(t,e),t.prototype._mounted=function(){var e,t,a,n=this;this._unlisten=es(this._el,{click:!0,onBlur:function(){n.setState({hasFocus:!1});},onDoubleClick:function(e){var t=n.s;t.clickToCreate&&"single"!==t.clickToCreate&&t.labels&&!t.disabled&&t.display&&(n._hook("onLabelUpdateStart",e),n._hook("onLabelUpdateEnd",e)),n._cellClick("onDayDoubleClick",e.domEvent);},onEnd:function(i){e&&(i.domEvent.preventDefault(),n._hook("onLabelUpdateEnd",i),e=!1),clearTimeout(a),e=!1,t=!1;},onFocus:function(){n.setState({hasFocus:!0});},onHoverIn:function(e){var t=n.s;t.disabled||n.setState({hasHover:!0}),n._hook("onHoverIn",{date:new Date(t.date),domEvent:e,hidden:!t.display,outer:t.outer,target:n._el});},onHoverOut:function(e){var t=n.s;n.setState({hasHover:!1}),n._hook("onHoverOut",{date:new Date(t.date),domEvent:e,hidden:!t.display,outer:t.outer,target:n._el});},onKeyDown:function(e){switch(e.keyCode){case oi:case li:e.preventDefault(),n._onClick(e);}},onMove:function(i){e&&n.s.dragToCreate?(i.domEvent.preventDefault(),n._hook("onLabelUpdateMove",i)):t&&n.s.dragToCreate&&(Math.abs(i.deltaX)>7||Math.abs(i.deltaY)>7)?(e=!i.isTouch,n._hook("onLabelUpdateStart",i)):clearTimeout(a);},onStart:function(i){var s=n.s;(i.create=!0,s.disabled||!s.dragToCreate&&!s.clickToCreate||!s.labels||e)||(Je(i.domEvent.target,".mbsc-calendar-text",n._el)||(i.isTouch&&s.dragToCreate?a=setTimeout((function(){n._hook("onLabelUpdateStart",i),n._hook("onLabelUpdateModeOn",i),e=!0;}),350):"single"===s.clickToCreate?(n._hook("onLabelUpdateStart",i),e=!0):t=!i.isTouch));}});},t.prototype._render=function(e,t){var a=qa(e),n=e.date,i=e.colors,s=e.display,r=e.dragData,o=e.hoverEnd,l=e.hoverStart,c=e.labels,d=e.rangeEnd,h=e.rangeStart,u=new Date(n),m=Oa(u),p=Ua(a,u),_=c&&c.events,v=i&&i[0],f=v&&v.background,g=v&&v.highlight,x="",y="";this._draggedLabel=r&&r.draggedDates&&r.draggedDates[m],this._draggedLabelOrig=r&&r.originDates&&r.originDates[m],this._todayClass=p?" mbsc-calendar-today":"",this._cellStyles=f&&s?{backgroundColor:f,color:We(f)}:j,this._circleStyles=g?{backgroundColor:g,color:We(v.highlight)}:j,this._ariaLabel="day"===e.type?(p?e.todayText+", ":"")+e.day+", "+e.month+" "+e.text+", "+e.year:"month"===e.type?e.month:"",s&&((h&&n>=h&&n<=(d||h)||d&&n<=d&&n>=(h||d))&&(y=" mbsc-range-day"+(n===(h||d)?" mbsc-range-day-start":"")+(n===(d||h)?" mbsc-range-day-end":"")),l&&o&&n>=l&&n<=o&&(y+=" mbsc-range-hover"+(n===l?" mbsc-range-hover-start mbsc-hover":"")+(n===o?" mbsc-range-hover-end mbsc-hover":""))),e.marks&&e.marks.forEach((function(e){x+=e.cellCssClass?" "+e.cellCssClass:"";})),i&&i.forEach((function(e){x+=e.cellCssClass?" "+e.cellCssClass:"";})),_&&_.forEach((function(e){x+=e.cellCssClass?" "+e.cellCssClass:"";})),this._cssClass="mbsc-calendar-cell mbsc-flex-1-0-0 mbsc-calendar-"+e.type+this._theme+this._rtl+this._hb+x+(c?" mbsc-calendar-day-labels":"")+(i?" mbsc-calendar-day-colors":"")+(e.outer?" mbsc-calendar-day-outer":"")+(e.hasMarks?" mbsc-calendar-day-marked":"")+(e.disabled?" mbsc-disabled":"")+(s?"":" mbsc-calendar-day-empty")+(e.selected?" mbsc-selected":"")+(t.hasFocus?" mbsc-focus":"")+(!t.hasHover||n!==l&&n!==o&&(l||o)?"":" mbsc-hover")+(this._draggedLabel?" mbsc-calendar-day-highlight":"")+y,this._data={date:u,events:e.events||[],selected:e.selected};},t.prototype._destroy=function(){this._unlisten&&this._unlisten();},t.prototype._cellClick=function(e,t){var a=this.s;a.display&&this._hook(e,{date:new Date(a.date),disabled:a.disabled,domEvent:t,outer:a.outer,selected:a.selected,source:"calendar",target:this._el});},t.prototype._labelClick=function(e,t){var a=this.s;t.date=new Date(a.date),t.labels=a.labels.events,this._hook(e,t);},t;}(Vn);function Ss(e,t,a,n,i,s,r){return et(bs,{key:r,amText:t.amText,count:a.count?a.count+" "+(a.count>1?t.eventsText:t.eventText):j,date:t.date,dataTimezone:t.dataTimezone,displayTimezone:t.displayTimezone,drag:t.dragToMove,resize:(o=a.event&&a.event.resize,l=t.dragToResize,!(!1===o||!1===c||!l)),event:a.event,exclusiveEndDates:t.exclusiveEndDates,firstDay:t.firstDay,hidden:i,id:a.id,inactive:!s&&a.event&&t.dragData&&t.dragData.draggedEvent&&a.event.id===t.dragData.draggedEvent.id,isActiveMonth:t.isActiveMonth,isPicker:t.isPicker,isUpdate:s,label:a.label,lastDay:a.lastDay,more:a.more,pmText:t.pmText,resourcesMap:t.resourcesMap,rtl:t.rtl,selected:a.event&&t.selectedEventsMap&&!(!t.selectedEventsMap[a.id]&&!t.selectedEventsMap[a.event.id]),showEventTooltip:t.showEventTooltip,showText:n,theme:t.theme,timeFormat:t.timeFormat,timezonePlugin:t.timezonePlugin,render:t.renderLabel,renderContent:t.renderLabelContent,onClick:e._onLabelClick,onDoubleClick:e._onLabelDoubleClick,onRightClick:e._onLabelRightClick,onHoverIn:e._onLabelHoverIn,onHoverOut:e._onLabelHoverOut,onDelete:t.onLabelDelete,onDragStart:t.onLabelUpdateStart,onDragMove:t.onLabelUpdateMove,onDragEnd:t.onLabelUpdateEnd,onDragModeOn:t.onLabelUpdateModeOn,onDragModeOff:t.onLabelUpdateModeOff});var o,l,c;}function Ms(e,t){var a,n,i=t._draggedLabel,s=t._draggedLabelOrig,r=t._theme,o=((a={}).onContextMenu=t._onRightClick,a);return e.renderDay&&(n=e.renderDay(t._data)),e.renderDayContent&&(n=e.renderDayContent(t._data)),$(n)&&(n=et("div",{dangerouslySetInnerHTML:t._safeHtml(n)}),t._shouldEnhance=!0),et("div",h({ref:t._setEl,className:t._cssClass,onClick:t._onClick,style:t._cellStyles,tabIndex:e.disabled?j:e.active?0:-1},o),et("div",{className:"mbsc-calendar-cell-inner mbsc-calendar-"+e.type+"-inner"+r+("day"===e.type?"":t._hb)+(e.display?"":" mbsc-calendar-day-hidden")},e.renderDay?n:et(at,null,1===e.text&&et("div",{"aria-hidden":"true",className:"mbsc-calendar-month-name"+r+t._rtl},e.monthShort),et("div",{"aria-disabled":e.disabled?"true":j,"aria-label":t._ariaLabel,"aria-pressed":e.selected,className:"mbsc-calendar-cell-text mbsc-calendar-"+e.type+"-text"+r+t._todayClass,role:"button",style:t._circleStyles},e.text),e.marks&&et("div",null,et("div",{className:"mbsc-calendar-marks"+r+t._rtl},e.marks.map((function(e,t){return et("div",{className:"mbsc-calendar-mark "+(e.markCssClass||"")+r,key:t,style:{background:e.color}});})))),e.renderDayContent&&n),e.labels&&et("div",null,s&&s.event&&et("div",{className:"mbsc-calendar-labels mbsc-calendar-labels-dragging"},et("div",{style:{width:s.width+"%"||"100%"}},Ss(t,e,{id:0,event:s.event},!0,!!e.dragData.draggedDates,!0))),i&&i.event&&et("div",{className:"mbsc-calendar-labels mbsc-calendar-labels-dragging"},et("div",{className:"mbsc-calendar-label-wrapper",style:{width:i.width+"%"||"100%"}},Ss(t,e,{id:0,event:i.event},!0,!1,!0))),et("div",{className:"mbsc-calendar-labels"},e.labels.data.map((function(a){return function(e,t,a){var n=a.id;return a.placeholder?et("div",{className:"mbsc-calendar-text mbsc-calendar-text-placeholder",key:n}):a.more||a.count?Ss(e,t,a,!0,!1,!1,n):a.multiDay?[et("div",{className:"mbsc-calendar-label-wrapper",style:{width:a.width+"%"},key:n},Ss(e,t,a,!0)),Ss(e,t,a,!1,!1,!1,"-"+n)]:Ss(e,t,a,a.showText,!1,!1,n);}(t,e,a);}))),et("div",{className:"mbsc-calendar-text mbsc-calendar-text-placeholder"}))));}var ws=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return Ms(e,this);},t;}(Ds),ks=function(e){var t=e.firstDay,a=e.hidden,n=e.rtl,i=e.theme,s=e.dayNamesShort,r=e.showWeekNumbers,o=e.hasScroll;return et("div",{"aria-hidden":"true",className:"mbsc-calendar-week-days mbsc-flex"+(a?" mbsc-hidden":"")},r&&et("div",{className:"mbsc-calendar-week-day mbsc-flex-none mbsc-calendar-week-nr"+i+n}),K.map((function(e,a){return et("div",{className:"mbsc-calendar-week-day mbsc-flex-1-0-0"+i+n,key:a},s[(a+t)%7]);})),o&&et("div",{className:"mbsc-schedule-fake-scroll-y"}));},Cs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._isActive=function(e){return this.s.isActive&&e===this.s.activeDate;},t.prototype._isInvalid=function(e){var t=this.s;return Ei(t,Ka(t,new Date(e)),t.invalid,t.valid,+t.min,+t.max);},t.prototype._isSelected=function(e){var t=new Date(e),a=Ka(this.s,t);return !!this.s.selectedDates[+a];},t.prototype._getWeekNr=function(e,t){var a=new Date(t);return ""+e.getWeekNumber(e.getDate(a.getFullYear(),a.getMonth(),a.getDate()+(7-e.firstDay+1)%7));},t.prototype._render=function(e){var t=e.weeks||6,a=e.firstDay,n=new Date(e.firstPageDay),i=e.getYear(n),s=e.getMonth(n),r=e.getDay(n),o=e.getDate(i,s,r).getDay(),l=a-o>0?7:0,c=[],d=0;this._rowHeights=[],this._rows=[],this._days=K;for(var h=0;h<7*t;h++){var u=e.getDate(i,s,h+a-l-o+r),m=Oa(u),p=e.getMonth(u),_=p!==s&&"week"!==e.calendarType,v=e.marked&&e.marked[m],f=v?e.showSingleMark?[{}]:v:null,g=e.labels&&e.labels[m],x=g?g.data.length:0,y=h%7==0;if(e.variableRow){if(y&&_&&h)break;x>d&&(d=x),h%7==6&&(this._rowHeights.push(d*(e.labelHeight||20)+(e.cellTextHeight||0)+3),d=0);}y&&(c=[],this._rows.push(c)),c.push({colors:e.colors&&e.colors[m],date:+u,day:e.dayNames[u.getDay()],display:!_||e.showOuter,events:e.events&&e.events[m],labels:g,marks:f,month:e.monthNames[p],monthShort:e.monthNamesShort[p],outer:_,text:e.getDay(u),year:e.getYear(u)});}},t;}(Vn);var Ys=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return function(e,t){var a=e.showWeekNumbers,n=e.showWeekDays?et(ks,{dayNamesShort:e.dayNamesShort,firstDay:e.firstDay,rtl:t._rtl,showWeekNumbers:a,theme:t._theme}):null;return et("div",{"aria-hidden":e.isActive?j:"true",className:"mbsc-calendar-table mbsc-flex-col mbsc-flex-1-1"+(e.isActive?" mbsc-calendar-table-active":"")},n,t._rows.map((function(n,i){var s=a?t._getWeekNr(e,n[0].date):"";return et("div",{className:"mbsc-calendar-row mbsc-flex mbsc-flex-1-0",key:i,style:{minHeight:t._rowHeights[i]+"px"}},a&&et("div",{className:"mbsc-calendar-cell mbsc-flex-none mbsc-calendar-day mbsc-calendar-week-nr"+t._theme},et("div",{"aria-hidden":"true"},s),et("div",{className:"mbsc-hidden-content"},e.weekText.replace("{count}",s))),n.map((function(a,n){return et(ws,{active:a.display&&t._isActive(a.date),amText:e.amText,clickToCreate:e.clickToCreate,colors:a.colors,date:a.date,day:a.day,disabled:t._isInvalid(a.date),display:a.display,dataTimezone:e.dataTimezone,displayTimezone:e.displayTimezone,dragData:e.dragData,dragToCreate:e.dragToCreate,dragToResize:e.dragToResize,dragToMove:e.dragToMove,eventText:e.eventText,events:a.events,eventsText:e.eventsText,exclusiveEndDates:e.exclusiveEndDates,firstDay:e.firstDay,hasMarks:e.hasMarks,hoverEnd:e.hoverEnd,hoverStart:e.hoverStart,isActiveMonth:e.isActive,isPicker:e.isPicker,key:a.date,labels:a.labels,pmText:e.pmText,marks:a.marks,month:a.month,monthShort:a.monthShort,onDayClick:e.onDayClick,onDayDoubleClick:e.onDayDoubleClick,onDayRightClick:e.onDayRightClick,onLabelClick:e.onLabelClick,onLabelDoubleClick:e.onLabelDoubleClick,onLabelRightClick:e.onLabelRightClick,onLabelHoverIn:e.onLabelHoverIn,onLabelHoverOut:e.onLabelHoverOut,onLabelDelete:e.onLabelDelete,onLabelUpdateStart:e.onLabelUpdateStart,onLabelUpdateMove:e.onLabelUpdateMove,onLabelUpdateEnd:e.onLabelUpdateEnd,onLabelUpdateModeOn:e.onLabelUpdateModeOn,onLabelUpdateModeOff:e.onLabelUpdateModeOff,outer:a.outer,renderDay:e.renderDay,renderDayContent:e.renderDayContent,renderLabel:e.renderLabel,renderLabelContent:e.renderLabelContent,rangeEnd:e.rangeEnd,rangeStart:e.rangeStart,resourcesMap:e.resourcesMap,selectedEventsMap:e.selectedEventsMap,rtl:e.rtl,showEventTooltip:e.showEventTooltip,selected:t._isSelected(a.date),text:a.text,theme:e.theme,timeFormat:e.timeFormat,timezonePlugin:e.timezonePlugin,todayText:e.todayText,type:"day",year:a.year,onHoverIn:e.onDayHoverIn,onHoverOut:e.onDayHoverOut});})));})));}(e,this);},t;}(Cs);function Is(e,t,a,n){var i;
277if(!(t<a||t>n)){if(X(e)){var s=e.length,r=t%s;i=e[r>=0?r:r+s];}else i=e(t);return i;}}var Es=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._currPos=0,t._delta=0,t._endPos=0,t._lastRaf=0,t._maxSnapScroll=0,t._margin=0,t._scrollEnd=he((function(){we(t._raf),t._raf=!1,t._onEnd(),t._hasScrolled=!1;}),200),t._setInnerEl=function(e){t._innerEl=e;},t._setScrollEl=function(e){t._scrollEl=e;},t._setScrollEl3d=function(e){t._scrollEl3d=e;},t._setScrollbarEl=function(e){t._scrollbarEl=e;},t._setScrollbarContEl=function(e){t._scrollbarContEl=e;},t._onStart=function(e){var a=t.s;t._hook("onStart",{}),a.changeOnEnd&&t._isScrolling||!a.mouseSwipe&&!e.isTouch||!a.swipe||(t._started=!0,t._hasScrolled=t._isScrolling,t._currX=e.startX,t._currY=e.startY,t._delta=0,t._velocityX=0,t._velocityY=0,t._startPos=Re(t._scrollEl,t._isVertical),t._timestamp=+new Date(),t._isScrolling&&(we(t._raf),t._raf=!1,t._scroll(t._startPos)));},t._onMove=function(e){var a=e.domEvent,n=t.s;t._isVertical||n.scrollLock||t._hasScrolled?a.cancelable&&a.preventDefault():a.type===ni&&(Math.abs(e.deltaY)>7||!n.swipe)&&(t._started=!1),t._started&&(t._delta=t._isVertical?e.deltaY:e.deltaX,(t._hasScrolled||Math.abs(t._delta)>t._threshold)&&(t._hasScrolled||t._hook("onGestureStart",{}),t._hasScrolled=!0,t._isScrolling=!0,t._raf||(t._raf=Me((function(){return t._move(e);})))));},t._onEnd=function(){if(t._started=!1,t._hasScrolled){var e,a=t.s,n=17*(t._isVertical?t._velocityY:t._velocityX),i=t._maxSnapScroll,s=t._delta;s+=n*n*.5*(n<0?-1:1),i&&(s=G(s,-t._round*i,t._round*i));var r=G(le((t._startPos+s)/t._round)*t._round,t._min,t._max),o=le(-r*t._rtlNr/a.itemSize)+t._offset,l=s>0?t._isVertical?270:360:t._isVertical?90:180,c=o-a.selectedIndex;e=a.time||Math.max(1e3,3*Math.abs(r-t._currPos)),t._hook("onGestureEnd",{direction:l,index:o}),t._delta=0,t._scroll(r,e),c&&!a.changeOnEnd&&(t._hook("onIndexChange",{index:o,diff:c}),a.selectedIndex===t._prevIndex&&a.selectedIndex!==o&&t.forceUpdate());}},t._onClick=function(e){t._hasScrolled&&(t._hasScrolled=!1,e.stopPropagation(),e.preventDefault());},t._onScroll=function(e){e.target.scrollTop=0,e.target.scrollLeft=0;},t._onMouseWheel=function(e){var a=t._isVertical?e.deltaY===j?e.wheelDelta||e.detail:e.deltaY:e.deltaX;if(a&&t.s.mousewheel){if(e.preventDefault(),t._hook("onStart",{}),t._started||(t._delta=0,t._velocityX=0,t._velocityY=0,t._startPos=t._currPos,t._hook("onGestureStart",{})),e.deltaMode&&1===e.deltaMode&&(a*=15),a=G(-a,-t._scrollSnap,t._scrollSnap),t._delta+=a,t._maxSnapScroll&&Math.abs(t._delta)>t._round*t._maxSnapScroll&&(a=0),t._startPos+t._delta<t._min&&(t._startPos=t._min,t._delta=0,a=0),t._startPos+t._delta>t._max&&(t._startPos=t._max,t._delta=0,a=0),t._raf||(t._raf=Me((function(){return t._move();}))),!a&&t._started)return;t._hasScrolled=!0,t._isScrolling=!0,t._started=!0,t._scrollEnd();}},t._onTrackStart=function(e){e.stopPropagation();var a={domEvent:e,startX:Gi(e,"X",!0),startY:Gi(e,"Y",!0)};if(t._onStart(a),t._trackStartX=a.startX,t._trackStartY=a.startY,e.target===t._scrollbarEl)Fe(t._doc,Xn,t._onTrackEnd),Fe(t._doc,qn,t._onTrackMove);else{var n=Ue(t._scrollbarContEl).top,i=(a.startY-n)/t._barContSize;t._startPos=t._currPos=t._max+(t._min-t._max)*i,t._hasScrolled=!0,t._onEnd();}},t._onTrackMove=function(e){var a=t._barContSize,n=Gi(e,"X",!0),i=Gi(e,"Y",!0),s=(t._isVertical?i-t._trackStartY:n-t._trackStartX)/a;t._isInfinite?t._delta=-(t._maxSnapScroll*t._round*2+a)*s:t._delta=(t._min-t._max-a)*s,(t._hasScrolled||Math.abs(t._delta)>t._threshold)&&(t._hasScrolled||t._hook("onGestureStart",{}),t._hasScrolled=!0,t._isScrolling=!0,t._raf||(t._raf=Me((function(){return t._move({endX:n,endY:i},!t._isInfinite);}))));},t._onTrackEnd=function(){t._delta=0,t._startPos=t._currPos,t._onEnd(),Le(t._doc,Xn,t._onTrackEnd),Le(t._doc,qn,t._onTrackMove);},t._onTrackClick=function(e){e.stopPropagation();},t;}return d(t,e),t.prototype._render=function(e,t){var a=this._prevS,n=e.batchSize,i=e.batchSize3d,s=e.itemNr||1,r=e.itemSize,o=e.selectedIndex,l=a.selectedIndex,c=t.index===j?o:t.index,d=[],h=[],u=o-l,m=c-this._currIndex,p=e.minIndex,_=e.maxIndex,v=e.items,f=e.offset;this._currIndex=c,this._isVertical="Y"===e.axis,this._threshold=this._isVertical?e.thresholdY:e.thresholdX,this._rtlNr=!this._isVertical&&e.rtl?-1:1,this._round=e.snap?r:1;for(var g=this._round;g>44;)g/=2;if(this._scrollSnap=le(44/g)*g,v){for(var x=c-n;x<c+s+n;x++)d.push({key:x,data:Is(v,x,p,_)});if(e.scroll3d)for(x=c-i;x<c+s+i;x++)h.push({key:x,data:Is(v,x,p,_)});this.visibleItems=d,this.visible3dItems=h,this._maxSnapScroll=n,this._isInfinite="function"==typeof v;}this._offset===j&&(this._offset=o);var y=-(o-this._offset)*r*this._rtlNr;if(Math.abs(u)>n&&y!==this._endPos){var T=u+n*(u>0?-1:1);this._offset+=T,this._margin-=T;}if(f&&f!==a.offset&&(this._offset+=f,this._margin-=f),m&&(this._margin+=m),this._max=p!==j?-(p-this._offset)*r*this._rtlNr:1/0,this._min=_!==j?-(_-this._offset-(e.spaceAround?0:s-1))*r*this._rtlNr:-1/0,-1===this._rtlNr){var b=this._min;this._min=this._max,this._max=b;}this._min>this._max&&(this._min=this._max);var D=e.visibleSize*r;this._barContSize=D,this._barSize=Math.max(20,D*D/(this._max-this._min+D)),this._cssClass=this._className+" mbsc-ltr";},t.prototype._mounted=function(){var e=this._el,t=this._scrollbarContEl;this._doc=Pe(e),Fe(this.s.scroll3d?this._innerEl:e,ti,this._onScroll),Fe(e,Rn,this._onClick,!0),Fe(e,$n,this._onMouseWheel,{passive:!1}),Fe(e,ri,this._onMouseWheel,{passive:!1}),Fe(t,Gn,this._onTrackStart),Fe(t,Rn,this._onTrackClick),this._unlisten=es(e,{onEnd:this._onEnd,onHoverIn:function(){t.classList.add("mbsc-scroller-bar-hover");},onHoverOut:function(){t.classList.remove("mbsc-scroller-bar-hover");},onMove:this._onMove,onStart:this._onStart,prevDef:!0});},t.prototype._updated=function(){var e=this.s,t=e.batchSize,a=e.itemSize,n=e.selectedIndex,i=this._prevIndex,s=!e.prevAnim&&(i!==j&&i!==n||this._isAnimating),r=-(n-this._offset)*a*this._rtlNr;e.margin&&(this._scrollEl.style.marginTop=this._isVertical?(this._margin-t)*a+"px":""),this._started||this._scroll(r,s?this._isAnimating||e.time||1e3:0),this._prevIndex=n;},t.prototype._destroy=function(){Le(this.s.scroll3d?this._innerEl:this._el,ti,this._onScroll),Le(this._el,Rn,this._onClick,!0),Le(this._el,$n,this._onMouseWheel,{passive:!1}),Le(this._el,ri,this._onMouseWheel,{passive:!1}),Le(this._scrollbarContEl,Gn,this._onTrackStart),Le(this._scrollbarContEl,Rn,this._onTrackClick),we(this._raf),this._raf=!1,this._scroll(0),this._unlisten();},t.prototype._anim=function(e){var t=this;return this._raf=Me((function(){var a=t.s,n=+new Date();if(t._raf){if((t._currPos-t._endPos)*-e<4)return t._currPos=t._endPos,t._raf=!1,t._isAnimating=0,t._isScrolling=!1,t._infinite(t._currPos),t._hook("onAnimationEnd",{}),void t._scrollbarContEl.classList.remove("mbsc-scroller-bar-started");n-t._lastRaf>100&&(t._lastRaf=n,t._currPos=Re(t._scrollEl,t._isVertical),a.changeOnEnd||t._infinite(t._currPos)),t._raf=t._anim(e);}}));},t.prototype._infinite=function(e){var t=this.s;if(t.itemSize){var a=le(-e*this._rtlNr/t.itemSize)+this._offset,n=a-this._currIndex;n&&(t.changeOnEnd?this._hook("onIndexChange",{index:a,diff:n}):this.setState({index:a}));}},t.prototype._scroll=function(e,t){var a=this.s,n=a.itemSize,i=this._isVertical,s=this._scrollEl.style,r=Ee?Ee+"T":"t",o=t?Ne+"transform "+le(t)+"ms "+a.easing:"";if(s[r+"ransform"]="translate3d("+(i?"0,"+e+"px,":e+"px,0,")+"0)",s[r+"ransition"]=o,this._endPos=e,a.scroll3d){var l=this._scrollEl3d.style,c=360/(2*a.batchSize3d);l[r+"ransform"]="translateY(-50%) rotateX("+-e/n*c+"deg)",l[r+"ransition"]=o;}if(this._scrollbarEl){var d=this._scrollbarEl.style,h=this._isInfinite?(this._maxSnapScroll*this._round-this._delta)/(this._maxSnapScroll*this._round*2):(e-this._max)/(this._min-this._max),u=G((this._barContSize-this._barSize)*h,0,this._barContSize-this._barSize);d[r+"ransform"]="translate3d("+(i?"0,"+u+"px,":u+"px,0,")+"0)",d[r+"ransition"]=o;}t?(we(this._raf),this._isAnimating=t,this._scrollbarContEl.classList.add("mbsc-scroller-bar-started"),this._raf=this._anim(e>this._currPos?1:-1)):(this._currPos=e,a.changeOnEnd||this._infinite(e));},t.prototype._move=function(e,t){var a=this._currX,n=this._currY,i=this._timestamp,s=this._maxSnapScroll;if(e){this._currX=e.endX,this._currY=e.endY,this._timestamp=+new Date();var r=this._timestamp-i;if(r>0&&r<100){var o=(this._currX-a)/r,l=(this._currY-n)/r;this._velocityX=.7*o+.3*this._velocityX,this._velocityY=.7*l+.3*this._velocityY;}}s&&!t&&(this._delta=G(this._delta,-this._round*s,this._round*s)),this._scroll(G(this._startPos+this._delta,this._min-this.s.itemSize,this._max+this.s.itemSize)),this._raf=!1;},t.defaults={axis:"Y",batchSize:40,easing:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",mouseSwipe:!0,mou
277sewheel:!0,prevDef:!0,selectedIndex:0,spaceAround:!0,stopProp:!0,swipe:!0,thresholdX:10,thresholdY:5},t;}(Vn);var Ns=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return function(e,t,a){var n;return e.itemRenderer&&(a=t.visibleItems.map((function(a){return e.itemRenderer(a,t._offset);})),e.scroll3d&&(n=t.visible3dItems.map((function(a){return e.itemRenderer(a,t._offset,!0);})))),et("div",{ref:t._setEl,className:t._cssClass,style:e.styles},et("div",{ref:t._setInnerEl,className:e.innerClass,style:e.innerStyles},et("div",{ref:t._setScrollEl,className:"mbsc-scrollview-scroll"+t._rtl},a)),e.scroll3d&&et("div",{ref:t._setScrollEl3d,style:{height:e.itemSize+"px"},className:"mbsc-scroller-items-3d"},n),et("div",{ref:t._setScrollbarContEl,className:"mbsc-scroller-bar-cont "+t._rtl+(e.scrollBar&&t._barSize!==t._barContSize?"":" mbsc-scroller-bar-hidden")+(t._started?" mbsc-scroller-bar-started":"")},et("div",{className:"mbsc-scroller-bar"+t._theme,ref:t._setScrollbarEl,style:{height:t._barSize+"px"}})));}(e,this,e.children);},t;}(Es),Hs=0;var Fs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e,t){return function(e,t,a,n){var i,s;Hs++;var r=a._variableRow,o=a._view!==yn,l=((i={}).onAnimationEnd=a._onViewAnimationEnd,i),c=((s={}).onKeyDown=a._onKeyDown,s),d=function(n,i){return et(Ys,h({},i,{activeDate:a._active,amText:e.amText,calendarType:e.calendarType,cellTextHeight:t.cellTextHeight,clickToCreate:e.clickToCreate,colors:a._colors,dayNames:e.dayNames,dayNamesShort:a._dayNames,dataTimezone:e.dataTimezone,displayTimezone:e.displayTimezone,eventText:e.eventText,events:e.eventMap,eventsText:e.eventsText,exclusiveEndDates:e.exclusiveEndDates,firstDay:e.firstDay,firstPageDay:n,getDate:e.getDate,getDay:e.getDay,getMonth:e.getMonth,getWeekNumber:e.getWeekNumber,getYear:e.getYear,hasMarks:!!a._marked,hoverEnd:e.hoverEnd,hoverStart:e.hoverStart,isPicker:e.isPicker,invalid:a._invalid,labels:a._labelsLayout,labelHeight:t.labelHeight,marked:a._marked,max:a._maxDate,min:a._minDate,monthNames:e.monthNames,monthNamesShort:e.monthNamesShort,onDayClick:a._onDayClick,onDayDoubleClick:e.onDayDoubleClick,onDayRightClick:e.onDayRightClick,onDayHoverIn:a._onDayHoverIn,onDayHoverOut:a._onDayHoverOut,onLabelClick:a._onLabelClick,onLabelDoubleClick:e.onLabelDoubleClick,onLabelRightClick:e.onLabelRightClick,onLabelHoverIn:e.onLabelHoverIn,onLabelHoverOut:e.onLabelHoverOut,onLabelDelete:e.onLabelDelete,pmText:e.pmText,rangeEnd:e.rangeEnd,rangeStart:e.rangeStart,resourcesMap:e.resourcesMap,rtl:e.rtl,selectedDates:e.selectedDates,selectedEventsMap:e.selectedEventsMap,showEventTooltip:e.showEventTooltip,showOuter:a._showOuter,showWeekDays:!a._showDaysTop,showWeekNumbers:e.showWeekNumbers,showSingleMark:!!e.marksMap,todayText:e.todayText,theme:e.theme,timeFormat:e.timeFormat,timezonePlugin:e.timezonePlugin,valid:a._valid,weeks:a._weeks,weekText:e.weekText,renderDay:e.renderDay,renderDayContent:e.renderDayContent,renderLabel:e.renderLabel,renderLabelContent:e.renderLabelContent,variableRow:a._variableRow}));},u=a._showDaysTop&&e.showCalendar?et(ks,{dayNamesShort:a._dayNames,rtl:a._rtl,theme:a._theme,firstDay:e.firstDay,hasScroll:t.hasScrollY,hidden:a._view!==yn&&!a._hasPicker,showWeekNumbers:e.showWeekNumbers}):null,m={axis:a._axis,batchSize:1,changeOnEnd:!0,className:"mbsc-calendar-scroll-wrapper"+a._theme,data:Hs,easing:"ease-out",itemSize:t.pickerSize,items:a._months,mousewheel:a._mousewheel,prevAnim:a._prevAnim,rtl:e.rtl,snap:!0,time:200},p=et("div",{ref:a._setPickerCont,className:a._hasPicker?"mbsc-calendar-picker-wrapper":""},(t.view===fn||t.viewClosing===fn||e.selectView===fn)&&et("div",h({className:a._getPickerClass(fn)},l),et(Ns,h({key:"years",itemRenderer:function(t,n){var i=t.key,s=a._getPageYears(i),r=e.getYear(new Date(a._active)),o=e.getYear(new Date(a._activeMonth));return et("div",{"aria-hidden":a._yearsIndex===i?j:"true",className:"mbsc-calendar-picker-slide mbsc-calendar-slide"+a._theme+a._rtl,key:i,style:a._getPageStyle(i,n,a._yearsIndex)},et("div",{className:"mbsc-calendar-table mbsc-flex-col"},B.map((function(t,n){return et("div",{className:"mbsc-calendar-row mbsc-flex mbsc-flex-1-0",key:n}
277,J.map((function(t,i){var l=s+3*n+i,c=+e.getDate(l,0,1);return et(ws,{active:l===o,date:c,display:!0,selected:l===r,disabled:l<a._minYears||l>a._maxYears,rtl:e.rtl,text:l+e.yearSuffix,theme:e.theme,type:"year",onDayClick:a._onYearClick,key:l});})));}))));},maxIndex:a._maxYearsIndex,minIndex:a._minYearsIndex,onGestureEnd:a._onGestureEnd,onIndexChange:a._onYearsPageChange,selectedIndex:a._yearsIndex},m))),(t.view===gn||t.viewClosing===gn||e.selectView===gn)&&et("div",h({className:a._getPickerClass(gn)},l),et(Ns,h({key:"year",itemRenderer:function(t,n){var i=t.key,s=a._getPageYear(i),r=new Date(a._activeMonth),o=e.getYear(r),l=e.getMonth(r),c=new Date(a._active),d=e.getYear(c),h=e.getMonth(c);return et("div",{"aria-hidden":a._yearIndex===i?j:"true",className:"mbsc-calendar-picker-slide mbsc-calendar-slide"+a._theme+a._rtl,key:i,style:a._getPageStyle(i,n,a._yearIndex)},et("div",{className:"mbsc-calendar-table mbsc-flex-col"},B.map((function(t,n){return et("div",{className:"mbsc-calendar-row mbsc-flex mbsc-flex-1-0",key:n},J.map((function(t,i){var r=e.getDate(s,3*n+i,1),c=e.getYear(r),u=e.getMonth(r);return et(ws,{active:c===o&&u===l,date:+r,display:!0,selected:c===d&&u===h,disabled:r<a._minYear||r>=a._maxYear,month:e.monthNames[u],rtl:e.rtl,text:e.monthNamesShort[u],theme:e.theme,type:"month",onDayClick:a._onMonthClick,key:+r});})));}))));},maxIndex:a._maxYearIndex,minIndex:a._minYearIndex,onGestureEnd:a._onGestureEnd,onIndexChange:a._onYearPageChange,selectedIndex:a._yearIndex},m))),a._hasPicker&&(t.view===xn||t.viewClosing===xn)&&et("div",h({className:a._getPickerClass(xn)},l),et(Ns,h({key:"month",itemRenderer:function(t,n){var i=t.key;return et("div",{className:"mbsc-calendar-picker-slide mbsc-calendar-slide"+a._theme+a._rtl,key:i,style:a._getPageStyle(i,n,1)},et(Ys,{activeDate:a._activeMonth,dataTimezone:e.dataTimezone,dayNames:e.dayNames,dayNamesShort:e.dayNamesMin,displayTimezone:e.displayTimezone,firstDay:e.firstDay,firstPageDay:a._getPageMonth(i),getDate:e.getDate,getDay:e.getDay,getMonth:e.getMonth,getYear:e.getYear,isActive:i>=a._monthIndex&&i<a._monthIndex+1,max:a._maxDate,min:a._minDate,monthNames:e.monthNames,monthNamesShort:e.monthNamesShort,onDayClick:a._onNavDayClick,rtl:e.rtl,selectedDates:e.selectedDates,showOuter:!0,showWeekDays:!a._showDaysTop,theme:e.theme,timezonePlugin:e.timezonePlugin,todayText:e.todayText}));},maxIndex:a._maxMonthIndex,minIndex:a._minMonthIndex,onGestureEnd:a._onGestureEnd,onIndexChange:a._onMonthPageChange,selectedIndex:a._monthIndex},m))));return et("div",{className:a._cssClass,ref:a._setEl,style:a._dim,onClick:re},et("div",{className:"mbsc-calendar-wrapper mbsc-flex-col"+a._theme+a._hb+(e.hasContent||!e.showCalendar?" mbsc-calendar-wrapper-fixed mbsc-flex-none":" mbsc-flex-1-1")},et("div",{className:"mbsc-calendar-header"+a._theme+a._hb+(a._showDaysTop?" mbsc-calendar-header-vertical":""),ref:a._setHeader},e.showControls&&function(){var t,n;if(e.renderHeader)$(t=e.renderHeader())&&(t!==a._headerHTML&&(a._headerHTML=t,a._shouldEnhanceHeader=!0),n=a._safeHtml(t));else{var i=a._pageNr>1;t=et(at,null,et(us,{className:"mbsc-flex mbsc-flex-1-1 mbsc-calendar-title-wrapper"}),et(cs,{className:"mbsc-calendar-button-prev"+(i?" mbsc-calendar-button-prev-multi":"")}),e.showToday&&et(hs,{className:"mbsc-calendar-header-today"}),et(ds,{className:"mbsc-calendar-button-next"+(i?" mbsc-calendar-button-next-multi":"")}));}var s=et("div",{className:"mbsc-calendar-controls mbsc-flex"+a._theme,dangerouslySetInnerHTML:n},t);return et(ns.Provider,{children:s,value:{instance:a}});}(),u),et("div",h({className:"mbsc-calendar-body mbsc-flex-col mbsc-flex-1-1"+a._theme,ref:a._setBody},c),e.showCalendar&&et("div",{className:"mbsc-calendar-body-inner mbsc-flex-col mbsc-flex-1-1"+(r?" mbsc-calendar-body-inner-variable":"")},a._isGrid?et("div",{"aria-hidden":o?"true":j,className:"mbsc-calendar-grid mbsc-flex-1-1 mbsc-flex-col"+a._theme+a._hb},a._monthsMulti.map((function(t,n){return et("div",{key:n,className:"mbsc-calendar-grid-row mbsc-flex mbsc-flex-1-1"},t.map((function(t,n){return et("div",{key:n,className:"mbsc-calendar-grid-item mbsc-flex-col mbsc-flex-1-1"+a._theme},et("div",{className:"mbsc-calendar-month-title"+a._theme},e.monthNames[new Date(t).getMonth()]),d(t,{isActive:!0}));})));}))):r?et("div",{"aria-hidden":o?"true":j,className:"mbsc-calendar-slide mbsc-calendar-slide-active "+a._getPickerClass(yn)},d(+e.navService.firstDay,{dragData:e.dragData,dragToCreate:e.dragToCreate,dragToMove:e.dragToMove,dragToResize:e.dragToResize,isActive:!0,onLabelUpdateEnd:e.onLabelUpdateEnd,onLabelUpdateModeOff:e.onLabelUpdateModeOff,onLabelUpdateModeOn:e.onLabelUpdateModeOn,onLabelUpdateMove:e.onLabelUpdateMove,onLabelUpdateStart:e.onLabelUpdateStart})):e.selectView===yn&&et("div",h({"aria-hidden":o?"true":j,className:a._getPickerClass(yn)},l),et(Ns,h({},m,{itemNr:a._pageNr,itemSize:t.pageSize/a._pageNr,itemRenderer:function(t,n){var i=t.key,s=i>=a._pageIndex&&i<a._pageIndex+a._pageNr&&a._view===yn,r={dragData:e.dragData,dragToCreate:e.dragToCreate,dragToMove:e.dragToMove,dragToResize:e.dragToResize,isActive:s,onLabelUpdateEnd:e.onLabelUpdateEnd,onLabelUpdateModeOff:e.onLabelUpdateModeOff,onLabelUpdateModeOn:e.onLabelUpdateModeOn,onLabelUpdateMove:e.onLabelUpdateMove,onLabelUpdateStart:e.onLabelUpdateStart};return et("div",{className:"mbsc-calendar-slide"+(s?" mbsc-calendar-slide-active":"")+a._theme+a._rtl,key:i,style:a._getPageStyle(i,n,a._pageIndex,a._pageNr)},d(a._getPageDay(i),r));},maxIndex:a._maxIndex,minIndex:a._minIndex,mouseSwipe:e.mouseSwipe,onAnimationEnd:a._onAnimationEnd,onGestureStart:a._onGestureStart,onIndexChange:a._onPageChange,onStart:a._onStart,selectedIndex:a._pageIndex,swipe:e.swipe}
277))),!a._hasPicker&&p))),n,a._hasPicker&&et(xs,{anchor:a._pickerBtn,closeOnScroll:!0,contentPadding:!1,context:e.context,cssClass:"mbsc-calendar-popup",display:"anchored",isOpen:a._view!==yn,locale:e.locale,onClose:a._onPickerClose,onOpen:a._onPickerOpen,rtl:e.rtl,scrollLock:!1,showOverlay:!1,theme:e.theme,themeVariant:e.themeVariant},et("div",h({},c),et("div",{className:"mbsc-calendar-controls mbsc-flex"+a._theme},et("div",{"aria-live":"polite",className:"mbsc-calendar-picker-button-wrapper mbsc-calendar-title-wrapper mbsc-flex mbsc-flex-1-1"+a._theme},et(as,{className:"mbsc-calendar-button",onClick:a._onPickerBtnClick,theme:e.theme,themeVariant:e.themeVariant,type:"button",variant:"flat"},a._viewTitle)),et(as,{className:"mbsc-calendar-button",ariaLabel:e.prevPageText,disabled:a._isPrevDisabled(!0),iconSvg:a._prevIcon,onClick:a.prevPage,theme:e.theme,themeVariant:e.themeVariant,type:"button",variant:"flat"}),et(as,{className:"mbsc-calendar-button",ariaLabel:e.nextPageText,disabled:a._isNextDisabled(!0),iconSvg:a._nextIcon,onClick:a.nextPage,theme:e.theme,themeVariant:e.themeVariant,type:"button",variant:"flat"})),p)));}(e,t,this,e.children);},t.prototype._updated=function(){e.prototype._updated.call(this),this._shouldEnhanceHeader&&(Ft(this._headerElement,{view:this}),this._shouldEnhanceHeader=!1);},t;}(ms);var Ls=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._instanceService=new Wi(),t;}return d(t,e),t.prototype._template=function(e){return function(e,t){return et(Fs,{ref:t._setCal,refDate:e.refDate,activeDate:e.active,amText:e.amText,cssClass:t._className+" mbsc-flex-1-1 mbsc-calendar-"+e.display,calendarScroll:e.calendarScroll,calendarType:e.calendarType,colors:e.colors,context:e.context,dataTimezone:e.dataTimezone,displayTimezone:e.displayTimezone,timezonePlugin:e.timezonePlugin,downIcon:e.downIcon,exclusiveEndDates:e.exclusiveEndDates,hoverEnd:e.hoverEnd,hoverStart:e.hoverStart,invalid:e.invalid,instanceService:t._instanceService,isPicker:!0,labels:e.labels,marked:e.marked,max:e.max,min:e.min,mousewheel:e.mousewheel,navService:t._navService,nextIconH:e.nextIconH,nextIconV:e.nextIconV,nextPageText:e.nextPageText,noOuterChange:e.selectRange,onActiveChange:t._onActiveChange,onCellHoverIn:e.onCellHoverIn,onCellHoverOut:e.onCellHoverOut,onDayClick:t._onDayClick,onDayHoverIn:e.onDayHoverIn,onDayHoverOut:e.onDayHoverOut,onLabelClick:e.onLabelClick,onPageChange:e.onPageChange,onPageLoaded:e.onPageLoaded,onPageLoading:e.onPageLoading,onTodayClick:t._onTodayClick,pages:e.pages,pmText:e.pmText,prevIconH:e.prevIconH,prevIconV:e.prevIconV,prevPageText:e.prevPageText,renderDay:e.renderDay,renderDayContent:e.renderDayContent,renderHeader:e.renderCalendarHeader,rangeEnd:e.rangeEnd,rangeStart:e.rangeStart,rtl:e.rtl,selectedDates:t._tempValueRep,selectView:e.selectView,showCalendar:!0,showControls:e.showControls,showOuterDays:e.showOuterDays,showToday:!1,showWeekNumbers:e.showWeekNumbers,size:e.size,theme:e.theme,themeVariant:e.themeVariant,update:t._update,upIcon:e.upIcon,valid:e.valid,weeks:e.weeks,width:e.width,getDate:e.getDate,getDay:e.getDay,getMaxDayOfMonth:e.getMaxDayOfMonth,getMonth:e.getMonth,getWeekNumber:e.getWeekNumber,getYear:e.getYear,dateFormat:e.dateFormat,dayNames:e.dayNames,dayNamesMin:e.dayNamesMin,dayNamesShort:e.dayNamesShort,eventText:e.eventText,eventsText:e.eventsText,firstDay:e.firstDay,fromText:e.fromText,monthNames:e.monthNames,monthNamesShort:e.monthNamesShort,moreEventsPluralText:e.moreEventsPluralText,moreEventsText:e.moreEventsText,todayText:e.todayText,toText:e.toText,weekText:e.weekText,yearSuffix:e.yearSuffix});}(e,this);},t;}(Ri);function Ps(e,t,a,n){var i=e.min===j?-1/0:e.min,s=e.max===j?1/0:e.max,r=zs(e,t),o=As(e,r),l=o,c=o,d=0,h=0;if(a&&a.get(o)){for(;r-d>=i&&a.get(l)&&d<100;)l=As(e,r-++d);for(;r+h<s&&a.get(c)&&h<100;)c=As(e,r+ ++h);if(a.get(l)&&a.get(c))return o;o=(h<d&&h&&-1!==n||!d||r-d<0||1===n)&&!a.get(c)?c:l;}return o;}function Vs(e){return e!==j?e.value!==j?e.value:e.display!==j?e.display:e:e;}function Os(e,t){if(e.getItem)return e.getItem(t);var a=e.data||[],n=a.length,i=t%n;return e._circular?a[i>=0?i:i+n]:a[G(t,0,n-1)];}function zs(e,t){var a=e.multiple?t&&t.length&&t[0]||j:t;return (e.getIndex?+e.getIndex(t):e._map.get(a))||0;}function As(e,t){return Vs(Os(e,t));}var Rs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._indexes=[],t._activeIndexes=[],t._wheels=[],t._batches=[],t._lastIndexes=[],t._onSet=function(){t._hook("onChange",{value:t._get(t._tempValueRep)});},t._onActiveChange=function(e){var a=e.wheel,n=e.index,i=a._key;t._activeIndexes[i]=n;var s=t._indexes,r=s[i];t._scroll3d?r=n:n-r>=t._rows?r++:n<r&&r--,s[i]=r,t.forceUpdate();},t._onWheelIndexChange=function(e){var a=t.s,n=e.wheel,i=n._key,s=n.multiple,r=As(n,e.index),o=t._disabled&&t._disabled[i]&&t._disabled[i].get(r),l=[],c=a.selectOnScroll;(c||!e.click)&&(t._lastIndexes[i]=t._indexes[i]=e.index,t._indexes.forEac
277h((function(e,a){var n=t._wheelMap[a],i=n.data?n.data.length:0;t._batches[a]=i?de(e/i):0,l[a]=i;}))),t._activeIndexes[i]=e.index;var d=t._get(t._tempValueRep),h=!!e.click&&!o,u=c||h;if(s){if(h){var m=(t._tempValueRep[i]||[]).slice();!1===e.selected?m.push(r):!0===e.selected&&m.splice(m.indexOf(r),1),t._tempValueRep[i]=m;}}else u&&(t._tempValueRep[i]=r);if(a.onWheelMove&&e.index!==j){var p=a.onWheelMove({dataItem:Os(n,e.index),selection:u,wheelIndex:i});p&&p.forEach((function(e,a){if(e!==j&&(t._tempValueRep[a]=e),!u){var n=t._wheelMap[a],i=zs(n,e);t._constrainIndex(i,n);}}));}u&&t._validate(i,e.diff>0?1:-1),c&&t._tempValueRep.forEach((function(e,a){var n=t._wheelMap[a],i=n.data?n.data.length:0,s=t._indexes[a],r=zs(n,e)+t._batches[a]*i;t._activeIndexes[a]=t._lastIndexes[a]=t._indexes[a]=r,n._offset=i!==l[a]?r-s:0;}));var _=t._get(t._tempValueRep);!t._valueEquals(d,_)?t._hook("onChange",{value:_,itemTap:h,closeOnTap:n.closeOnTap}):t.forceUpdate();},t;}return d(t,e),t.prototype._initWheels=function(){var e=this,t=0,a=this.s.wheels||[];this._wheelMap=[],a.forEach((function(a){a.forEach((function(a){!function(e,t,a,n){e._key=t,e._map=new Map(),e._circular=a===j?e.circular===j?e.data&&e.data.length>(n||5):e.circular:X(a)?a[t]:a,e.data&&(e.min=e._circular?j:0,e.max=e._circular?j:e.data.length-1,e.data.forEach((function(t,a){e._map.set(Vs(t),a);})));}(a,t,e._circular,e._rows),e._wheelMap[t]=a,t++;}));})),this._wheels=a;},t.prototype._render=function(e,t){var a=this,n=this.props||{},i=this._respProps||{},s=this._prevS,r=!!this._touchUi&&e.circular,o=this._touchUi?e.rows:i.rows||n.rows||7;if(this._displayStyle=e.displayStyle||e.display,this._scroll3d=e.scroll3d&&this._touchUi&&He,(e.itemHeight!==s.itemHeight||o!==this._rows)&&(this._rows=o,this._lineStyle={height:e.itemHeight+"px"},this._scroll3d)){var l="translateZ("+(e.itemHeight*o/2+3)+"px";this._overlayStyle={},this._overlayStyle[Ne+"transform"]=l,this._lineStyle[Ne+"transform"]="translateY(-50%) "+l;}if(e.wheels===s.wheels&&r===this._circular||(this._batches=[],this._shouldSetIndex=!0,this._circular=r,this._initWheels()),!this._valueEquals(e.value,s.value)||this._tempValueRep===j||this._shouldValidate(e,s)||e.invalid!==s.invalid||e.valid!==s.valid){this._tempValueRep=this._parse(e.value),this._shouldSetIndex=!0,this._validate();var c=this._get(this._tempValueRep),d=!this._valueEquals(e.value,c);setTimeout((function(){d&&a._hook("onChange",{value:c});}));}this._shouldSetIndex&&(this._setIndexes(),this._shouldSetIndex=this._indexFromValue=!1),e.wheels!==s.wheels&&s.wheels!==j&&setTimeout((function(){for(var e=0,t=a._wheelMap;e<t.length;e++){var n=t[e];a._onWheelIndexChange({diff:0,index:a._indexes[n._key],wheel:n});}}));},t.prototype._validate=function(e,t){var a=this;if(this.s.validate){var n=this.s.validate.call(this._el,{direction:t,index:e,values:this._tempValueRep.slice(0),wheels:this._wheelMap});this._disabled=n.disabled,n.init&&this._initWheels(),n.indexes&&n.indexes.forEach((function(e,t){if(e!==j){var n=a._wheelMap[t],i=zs(n,e);a._constrainIndex(i,n);}})),n.valid?this._tempValueRep=n.valid.slice(0):this._wheelMap.forEach((function(e,n){a._tempValueRep[n]=Ps(e,a._tempValueRep[n],a._disabled&&a._disabled[n],t);}));}},t.prototype._setIndexes=function(){var e=this,t=this._indexes||[];this._indexes=[],this._activeIndexes=[],this._tempValueRep.forEach((function(a,n){var i=e._wheelMap[n],s=i.data?i.data.length:0,r=zs(i,a);if(e.s.selectOnScroll)e._activeIndexes[n]=e._indexes[n]=r+(e._batches[n]||0)*s;else{var o=r;e._indexFromValue||(o=e._prevS.wheels!==e.s.wheels?0:t[n])!==j&&(o=function(e,t){if(e.getItem&&e.getIndex)return e.getIndex(Vs(e.getItem(t)));var a=(e.data||[]).length,n=t%a;return a?n>=0?n:n+a:0;}(i,o)+(e._batches[n]||0)*s),e._constrainIndex(o,i);}}));},t.prototype._constrainIndex=function(e,t){var a=t._key;e!==j&&t.data?(t.spaceAround||(e=G(e,0,Math.max(t.data.length-this._rows,0))),this._activeIndexes[a]=this._indexes[a]=e):this._activeIndexes[a]=this._indexes[a]=this._lastIndexes[a]||0;},t.prototype._shouldValidate=function(e,t){return !!e.shouldValidate&&e.shouldValidate(e,t);},t.prototype._valueEquals=function(e,t){return this.s.valueEquality?this.s.valueEquality(e,t):e===t;},t.prototype._get=function(e){return this.s.getValue?this.s.getValue(e):e;},t.prototype._parse=function(e){return this.s.parseValue?this.s.parseValue(e):e;},t.defaults={itemHeight:40,rows:5,selectOnScroll:!0},t._name="Scroller",t;}(Vn),Ws=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onClick=function(){var e=t.s;e.text===j||e.isGroup||t._hook("onClick",{index:e.index,selected:e.selected,disabled:e.disabled});},t;}return d(t,e),t.prototype._mounted=function(){var e=this;this._unlisten=es(this._el,{click:!0,keepFocus:!1,onBlur:function(){e.setState({hasFocus:!1});},onFocus:function(){e.setState({hasFocus:!0});},onHoverIn:function(){e.s.text!==j&&e.setState({hasHover:!0});},onHoverOut:function(){e.s.text!==j&&e.setState({hasHover:!1});},onKeyDown:function(t){(t.keyCode===li||!e.s.multiple&&t.keyCode===oi)&&e._onClick();},onPress:function(){e.s.text!==j&&e.setState({isActive:!0});},onRelease:function(){e.s.text!==j&&e.setState({isActive:!1});}});},t.prototype._destroy=function(){this._unlisten();},t.prototype._render=function(e,t){var a=e.height;this._cssClass="mbsc-scroller-wheel-"+(e.isGroup?"header":"item")+this._theme+this._rtl+(e.checkmark&&!e.isGroup?" mbsc-wheel-item-checkmark":"")+(e.is3d?" mbsc-scroller-wheel-item-3d":"")+(e.scroll3d&&!e.is3d?" mbsc-scroller-wheel-item-2d":"")+(e.selected&&!e.is3d?" mbsc-selected":"")+(e.selected&&e.is3d?" mbsc-selected-3d":"")+(e.disabled?" mbsc-disabled":"")+(e.multiple&&!e.isGroup?" mbsc-wheel-item-multi":"")+(t.hasHover?" mbsc-hover":"")+(t.hasFocus?" mbsc-focus":"")+(t.isActive?" mbsc-active":""),this._style={height:a+"px",lineHeight:a+"px"},this._checkmarkClass=this._theme+this._rtl+" mbsc-wheel-checkmark"+(e.selected?" mbsc-selected":""),e.is3d&&(this._transform="rotateX("+(e.offset-e.index)*e.angle3d%360+"deg) translateZ("+a*e.rows/2+"px)",this._style[Ne+"transform"]=this._transform);},t;}(Vn);var Us=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return function(e,t){var a;if(e.renderItem&&e.data!==j){var n=e.renderItem(e.data),i=$(n)?{__html:n}:j;a=i?et("div",{dangerouslySetInnerHTML:i}):et("div",null,n);}else a=e.text;return et("div",{"aria-disabled":e.disabled?"true":j,"aria-hidden":a===j||e.is3d?"true":j,"aria-selected":e.selected?"true":j,ref:t._setEl,tabIndex:e.active?0:j,className:t._cssClass,role:"option",style:t._style,onClick:t._onClick},e.checkmark&&et("span",{className:t._checkmarkClass}),a);}(e,this);},t;}(Ws),js=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onIndexChange=function(e){e.wheel=t.s.wheel,t._hook("onIndexChange",e);},t._onItemClick=function(e){t._hook("onIndexChange",{click:!0,index:e.index,wheel:t.s.wheel,selected:e.selected});},t._onKeyDown=function(e){var a=0;e.keyCode===pi?a=-1:e.keyCode===vi&&(a=1);var n=t.s,i=n.activeIndex+a,s=!(i<n.minIndex||i>n.maxIndex);if(a&&e.preventDefault(),a&&s){var r=n.selectOnScroll?"onIndexChange":"onActiveChange";t._shouldFocus=!0,t._hook(r,{diff:a,index:i,wheel:n.wheel});}else e.keyCode===oi&&n.multiple&&t._hook("onSet",{});},t;}return d(t,e),t.prototype._getText=function(e){return e!==j?e.display!==j?e.display:e:j;},t.prototype._getValue=function(e){return e?e.value!==j?e.value:e.display!==j?e.display:e:e;},t.prototype._isActive=function(e,t,a){var n=this.s,i=n.scroll3d&&n.multiple?a:!a;
277return n.activeIndex===e.key&&t&&i;},t.prototype._isSelected=function(e){var t=this.s,a=t.selectedValues,n=this._getValue(e.data);return t.multiple?!(!a||!a.indexOf)&&a.indexOf(n)>=0:t.selectOnScroll?e.key===t.selectedIndex:n!==j&&n===a;},t.prototype._isDisabled=function(e){var t=this.s.disabled,a=e&&e.disabled,n=this._getValue(e);return !!(a||t&&t.get(n));},t.prototype._render=function(e){var t=e.rows,a=e.itemHeight,n=e.wheel._key,i=2*le((a-.03*(a*t/2+3))/2);this._items=e.wheel.getItem||e.wheel.data||[],this._batchSize3d=le(1.8*t),this._angle3d=360/(2*this._batchSize3d),this._style={height:2*le(t*a*(e.scroll3d?1.1:1)/2)+"px"},this._itemNr=e.wheel.spaceAround?1:t,this._innerStyle={height:(e.scroll3d?i:e.wheel.spaceAround?a:a*t)+"px"},this._wheelStyle=e.wheelWidth?{width:(X(e.wheelWidth)?e.wheelWidth[n]:e.wheelWidth)+"px"}:{maxWidth:(X(e.maxWheelWidth)?e.maxWheelWidth[n]:e.maxWheelWidth)+"px",minWidth:(X(e.minWheelWidth)?e.minWheelWidth[n]:e.minWheelWidth)+"px"},e.scroll3d&&(this._innerStyle[Ne+"transform"]="translateY(-50%) translateZ("+(a*t/2+3)+"px");},t.prototype._updated=function(){if(this._shouldFocus){var e=this._el.querySelector('[tabindex="0"]');e&&setTimeout((function(){e.focus();})),this._shouldFocus=!1;}},t;}(Vn);var Js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return function(e,t){var a,n=((a={}).onKeyDown=t._onKeyDown,a);return et("div",h({"aria-multiselectable":e.multiple?"true":j,"aria-label":e.wheel.label,className:"mbsc-scroller-wheel-wrapper mbsc-scroller-wheel-wrapper-"+e.wheel._key+" "+(e.wheel.cssClass||"")+(e.scroll3d?" mbsc-scroller-wheel-wrapper-3d":"")+t._theme+t._rtl,ref:t._setEl,role:"listbox",style:t._wheelStyle},n),et(Ns,{batchSize3d:t._batchSize3d,className:"mbsc-scroller-wheel"+(e.scroll3d?" mbsc-scroller-wheel-3d":"")+t._theme,innerClass:"mbsc-scroller-wheel-cont mbsc-scroller-wheel-cont-"+e.display+(e.scroll3d?" mbsc-scroller-wheel-cont-3d":"")+(e.multiple?" mbsc-scroller-wheel-multi":"")+t._theme,innerStyles:t._innerStyle,items:t._items,itemSize:e.itemHeight,itemRenderer:function(a,n,i){if(a!==j){var s=t._getText(a.data);return et(Us,{active:t._isActive(a,s,i),angle3d:t._angle3d,data:a.data,disabled:t._isDisabled(a.data),height:e.itemHeight,index:a.key,is3d:i,isGroup:a.data&&a.data.isGroup,key:a.key,multiple:e.multiple,onClick:t._onItemClick,offset:n,checkmark:e.wheel.checkmark,renderItem:e.renderItem,rows:e.rows,rtl:e.rtl,scroll3d:e.scroll3d,selected:t._isSelected(a),text:s,theme:e.theme});}return null;},itemNr:t._itemNr,margin:!0,maxIndex:e.maxIndex,minIndex:e.minIndex,onIndexChange:t._onIndexChange,offset:e.wheel._offset,rtl:e.rtl,scroll3d:e.scroll3d,scrollBar:!t._touchUi,selectedIndex:e.selectedIndex,snap:!0,spaceAround:e.wheel.spaceAround,styles:t._style,visibleSize:e.rows}));}(e,this);},t;}(js);var Bs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return function(e,t){var a=e.renderPreContent?e.renderPreContent(e.preContentData):"",n=e.renderInContent?e.renderInContent(e.preContentData):"";return et(at,null,a,et("div",{className:"mbsc-scroller mbsc-scroller-"+t._displayStyle+t._theme+t._rtl+(t._touchUi?" mbsc-scroller-touch":" mbsc-scroller-pointer")+("inline"===e.display?" mbsc-font ":" ")+t._className},n,t._wheels.map((function(a,n){return et("div",{key:n,className:"mbsc-scroller-wheel-group-cont"+(e.scroll3d?" mbsc-scroller-wheel-group-cont-3d":"")+t._theme},e.selectOnScroll&&et("div",{className:"mbsc-scroller-wheel-line"+t._theme,style:t._lineStyle}),et("div",{className:"mbsc-flex mbsc-scroller-wheel-group"+(e.scroll3d?" mbsc-scroller-wheel-group-3d":"")+t._theme},et("div",{className:"mbsc-scroller-wheel-overlay mbsc-scroller-wheel-overlay-"+t._displayStyle+t._theme,style:t._overlayStyle}),a.map((function(a,n){return et(Js,{activeIndex:t._activeIndexes[a._key],disabled:t._disabled&&t._disabled[a._key],display:t._displayStyle,key:n,itemHeight:e.itemHeight,onActiveChange:t._onActiveChange,onIndexChange:t._onWheelIndexChange,onSet:t._onSet,max
277Index:a.max,maxWheelWidth:e.maxWheelWidth,minIndex:a.min,minWheelWidth:e.minWheelWidth,multiple:a.multiple,renderItem:e.renderItem,rows:t._rows,scroll3d:t._scroll3d,selectedIndex:t._indexes[a._key],selectedValues:t._tempValueRep[a._key],selectOnScroll:e.selectOnScroll,theme:e.theme,touchUi:e.touchUi,rtl:e.rtl,wheel:a,wheelWidth:e.wheelWidth});}))));}))));}(e,this);},t;}(Rs),Ks={ios:50,material:46,windows:50},Gs=["a","h","i","s","tt"];function qs(e,t,a,n,i,s,r,o,l,c,d,h,u,m,p,_){for(var v=Ua(u,m),f=v||!Ua(h,m)?u:La(e,u),g=v||!Ua(h,u)?m:Pa(e,m),x=s.a(f),y=s.a(g),T=!0,b=!0,D=!1,S=0,M=0,w=0;w<a;w++){var k=n[i[I=Gs[w]]];if(k!==j){var C=T?s[I](f):0,Y=b?s[I](g):r[I];t&&1===w&&(C+=x?12:0,Y+=y?12:0,k+=n[i.a]?12:0),(T||b)&&C<k&&k<Y&&(D=!0),k!==C&&(T=!1),k!==Y&&(b=!1);}}if(!p){for(w=a+1;w<4;w++){var I;i[I=Gs[w]]!==j&&(s[I](f)>0&&T&&(S=o[l]),s[I](g)<r[I]&&b&&(M=o[l]));}b&&_&&!M&&(M=999!==g.getMilliseconds()?o[l]:0);}if(T||b||D)for(C=T&&!D?s[l](f)+S:0,Y=b&&!D?s[l](g)-M:r[l],w=C;w<=Y;w+=o[l])c[d].set(w,!p);}function Xs(e,t){var a=new Date(e);return t?de(+a/864e5):a.getMonth()+12*(a.getFullYear()-1970);}function Zs(e){return e.getFullYear()+"-"+oe(e.getMonth()+1)+"-"+oe(e.getDate());}function Qs(e){return e.getMilliseconds();}function $s(e){return e.getHours()>11?1:0;}var er=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._preset="date",t._innerValues={},t._parseDate=function(e){var a=t.s;return e||(t._innerValues={}),t._getArray(Xa(e||a.defaultSelection||new Date(),a,t._format),!!e);},t._getDate=function(e){var a,n,i=t.s,s=t._getArrayPart,r=t._wheelOrder,o=new Date((new Date()).setHours(0,0,0,0));if(null===e||e===j)return null;if(r.dd!==j){var l=e[r.dd].split("-");a=new Date(l[0],l[1]-1,l[2]);}r.tt!==j&&(n=a||o,n=new Date(n.getTime()+e[r.tt]%86400*1e3));var c=s(e,"y",a,o),d=s(e,"m",a,o),h=Math.min(s(e,"d",a,o),i.getMaxDayOfMonth(c,d)),u=s(e,"h",n,o);return i.getDate(c,d,h,t._hasAmPm&&s(e,"a",n,o)?u+12:u,s(e,"i",n,o),s(e,"s",n,o),s(e,"u",n,o));},t._validate=function(e){var a=e.direction,n=e.index,i=e.values,s=e.wheels,r=[],o=t.s,l=o.stepHour,c=o.stepMinute,d=o.stepSecond,h=o.mode||t._preset,u=t._wheelOrder,m=t._getDatePart,p=t._max,_=t._min,v=Ka(o,t._getDate(i)),f=o.getYear(v),g=o.getMonth(v),x=o.getDate(f,g-1,1),y=o.getDate(f,g+2,1);n!==u.y&&n!==u.m&&n!==u.d&&n!==u.dd&&n!==j||(t._valids=_n(o.valid,x,y,o,!0),t._invalids=_n(o.invalid,x,y,o,!0));var T=t._valids,b=t._invalids,D=Ni(v,o,_?+_:-1/0,p?+p:1/0,b,T,a),S=t._getArray(D),M=t._wheels&&t._wheels[0][u.d],w=m.y(D),k=m.m(D),C=o.getMaxDayOfMonth(w,k),Y={y:_?_.getFullYear():-1/0,m:0,d:1,h:0,i:0,s:0,a:0,tt:0},I={y:p?p.getFullYear():1/0,m:11,d:31,h:ce(t._hasAmPm?11:23,l),i:ce(59,c),s:ce(59,d),a:1,tt:86400},E={y:1,m:1,d:1,h:l,i:c,s:d,a:1,tt:t._timeStep},N=!1,H=!0,F=!0;if(["dd","y","m","d","tt","a","h","i","s"].forEach((function(e){var t=Y[e],a=I[e],n=m[e](D),i=u[e];if(H&&_&&(t=m[e](_)),F&&p&&(a=m[e](p)),n<t&&(n=t),n>a&&(n=a),"dd"===e||"tt"===e||"a"===e&&i===j||(H&&(H=n===t),F&&(F=n===a)),i!==j){if(r[i]=new Map(),"y"!==e&&"dd"!==e)for(var s=Y[e];s<=I[e];s+=E[e])(s<t||s>a)&&r[i].set(s,!0);if("d"===e&&b)for(var l in b)if(!T||!T[l]){var c=Xa(l,o),d=o.getYear(c),h=o.getMonth(c);d===w&&h===k&&Ei(o,c,b,T)&&r[i].set(o.getDay(c),!0);}}})),/time/i.test(h)){var L=b&&b[Oa(D)],P=T&&T[Oa(D)];Gs.forEach((function(e,n){var i=u[e];if(i!==j){var l=o.valid?P:L;if(l){if(o.valid)for(var c=0;c<=I[e];c++)r[i].set(c,!0);for(var d=0,h=l;d<h.length;d++){var p=h[d],_=p.start,v=p.end;_&&v&&qs(o,t._hasAmPm,n,S,u,m,I,E,e,r,i,D,_,v,!!o.valid,o.exclusiveEndDates);}}S[i]=Ps(s[i],m[e](D),r[i],a);}}));}var V=t._dateDisplay;if(M&&(M.data.length!==C||/DDD/.test(V))){for(var O=[],z=V.replace(/[my|]/gi,"").replace(/DDDD/,"{dddd}").replace(/DDD/,"{ddd}").replace(/DD/,"{dd}").replace(/D/,"{d}"),A=1;A<=C;A++){var R=o.getDate(w,k,A).getDay(),W=z.replace(/{dddd}/,o.dayNames[R]).replace(/{ddd}/,o.dayNamesShort[R]).replace(/{dd}/,oe(A)+o.daySuffix).replace(/{d}/,A+o.daySuffix);O.push({display:W,value:A});}M.data=O,N=!0;}return {disabled:r,init:N,valid:S};},t._shouldValidate=function(e,t){return !!(e.min&&+e.min!=+t.min||e.max&&+e.max!=+t.max)||e.wheels!==t.wheels||e.dataTimezone!==t.dataTimezone||e.displayTimezone!==t.displayTimezone;},t._getYearValue=function(e){return {display:(/yy/i.test(t._dateDisplay)?e:(e+"").substr(2,2))+t.s.yearSuffix,value:e};},t._getYearIndex=function(e){return +e;},t._getDateIndex=function(e){return Xs(e,t._hasDay);},t._getDateItem=function(e){var a=t.s,n=t._hasDay,i=new Date((new Date()).setHours(0,0,0,0)),s=n?new Date(864e5*e):new Date(1970,e,1);return n&&(s=new Date(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate())),{disabled:n&&Ei(a,s,t._invalids,t._valids),display:i.getTime()===s.getTime()?a.todayText:Qa(t._dateTemplate,s,a),value:Zs(s)};},t._getArrayPart=function(e,a,n,i){var s;return t._wheelOrder[a]===j||(s=+e[t._wheelOrder[a]],isNaN(s))?n?t._getDatePart[a](n):t._innerValues[a]!==j?t._innerValues[a]:t._getDatePart[a](i):s;},t._getHours=function(e){var a=e.getHours();return ce(a=t._hasAmPm&&a>=12?a-12:a,t.s.stepHour);},t._getMinutes=function(e){return ce(e.getMinutes(),t.s.stepMinute);},t._getSeconds=function(e){return ce(e.getSeconds(),t.s.stepSecond);},t._getFullTime=function(e){return ce(le((e.getTime()-new Date(e).setHours(0,0,0,0))/1e3),t._timeStep||1);},t;}return d(t,e),t.prototype._valueEquals=function(e,t){return en(e,t,this.s);},t.prototype._render=function(e,t){var a=!1,n=this._prevS,i=e.dateFormat,s=e.timeFormat,r=e.mode||this._preset,o="datetime"===r?i+e.separator+s:"time"===r?s:i;this._minWheelWidth=e.minWheelWidth||("datetime"===r?Ks[e.baseTheme||e.theme]:j),this._dateWheels=e.dateWheels||("datetime"===r?e.dateWheelFormat:i),this._dateDisplay=e.dateWheels||e.dateDisplay,this._timeWheels=e.timeWheels||s,this._timeDisplay=this._timeWheels,this._format=o,this._hasAmPm=/h/.test(this._timeDisplay),this._getDatePart={y:e.getYear,m:e.getMonth,d:e.getDay,h:this._getHours,i:this._getMinutes,s:this._getSeconds,u:Qs,a:$s,dd:Zs,tt:this._getFullTime},+Xa(n.min)!=+Xa(e.min)&&(a=!0,this._min=ee(e.min)?j:Xa(e.min,e,o)),+Xa(n.max)!=+Xa(e.max)&&(a=!0,this._max=ee(e.max)?j:Xa(e.max,e,o)),(e.theme!==n.theme||e.mode!==n.mode||e.locale!==n.locale||e.dateWheels!==n.dateWheels||e.timeWheels!==n.timeWheels||a)&&(this._wheels=this._getWheels());},t.prototype._getWheels=function(){this._wheelOrder={};var e,t=this.s,a=t.mode||this._preset,n=this._hasAmPm,i=this._dateDisplay,s=this._timeDisplay,r=this._wheelOrder,o=[],l=[],c=[],d=0;if(/date/i.test(a)){for(var h=0,u=this._dateWheels.split(/\|/.test(this._dateWheels)?"|":"");h<u.length;h++){var m=0;if((x=u[h]).length)if(/y/i.test(x)&&m++,/m/i.test(x)&&m++,/d/i.test(x)&&m++,m>1&&r.dd===j)r.dd=d,d++,l.push(this._getDateWheel(x)),c=l;else if(/y/i.test(x)&&r.y===j)r.y=d,d++,l.push({cssClass:"mbsc-datetime-year-wheel",getIndex:this._getYearIndex,getItem:this._getYearValue,label:t.yearText,max:this._max?t.getYear(this._max):j,min:this._min?t.getYear(this._min):j,spaceAround:!0});else if(/m/i.test(x)&&r.m===j){r.m=d,e=[],d++;for(var p=i.replace(/[dy|]/gi,"").replace(/MMMM/,"{mmmm}").replace(/MMM/,"{mmm}").replace(/MM/,"{mm}").replace(/M/,"{m}"),_=0;_<12;_++){var v=p.replace(/{mmmm}/,t.monthNames[_]).replace(/{mmm}/,t.monthNamesShort[_]).replace(/{mm}/,oe(_+1)+(t.monthSuffix||"")).replace(/{m}/,_+1+(t.monthSuffix||""));e.push({display:v,value:_});}l.push({cssClass:"mbsc-datetime-month-wheel",data:e,label:t.monthText,spaceAround:!0});}else{if(/d/i.test(x)&&r.d===j){r.d=d,e=[],d++;for(_=1;_<32;_++)e.push({display:(/dd/i.test(i)?oe(_):_)+t.daySuffix,value:_});l.push({cssClass:"mbsc-datetime-day-wheel",data:e,label:t.dayText,spaceAround:!0});}}}o.push(l);}if(/time/i.test(a)){for(var f=0,g=this._timeWheels.split(/\|/.test(this._timeWheels)?"|":"");f<g.length;f++){var x;m=0;
277if((x=g[f]).length&&(/h/i.test(x)&&m++,/m/i.test(x)&&m++,/s/i.test(x)&&m++,/a/i.test(x)&&m++),m>1&&r.tt===j)r.tt=d,d++,c.push(this._getTimeWheel(x));else if(/h/i.test(x)&&r.h===j){e=[],r.h=d,d++;for(_=0;_<(n?12:24);_+=t.stepHour)e.push({display:n&&0===_?12:/hh/i.test(s)?oe(_):_,value:_});c.push({cssClass:"mbsc-datetime-hour-wheel",data:e,label:t.hourText,spaceAround:!0});}else if(/m/i.test(x)&&r.i===j){e=[],r.i=d,d++;for(_=0;_<60;_+=t.stepMinute)e.push({display:/mm/i.test(s)?oe(_):_,value:_});c.push({cssClass:"mbsc-datetime-minute-wheel",data:e,label:t.minuteText,spaceAround:!0});}else if(/s/i.test(x)&&r.s===j){e=[],r.s=d,d++;for(_=0;_<60;_+=t.stepSecond)e.push({display:/ss/i.test(s)?oe(_):_,value:_});c.push({cssClass:"mbsc-datetime-second-wheel",data:e,label:t.secondText,spaceAround:!0});}else /a/i.test(x)&&r.a===j&&(r.a=d,d++,c.push({cssClass:"mbsc-dt-whl-a",data:/A/.test(x)?[{display:t.amText.toUpperCase(),value:0},{display:t.pmText.toUpperCase(),value:1}]:[{display:t.amText,value:0},{display:t.pmText,value:1}],spaceAround:!0}));}c!==l&&o.push(c);}return o;},t.prototype._getDateWheel=function(e){var t=/d/i.test(e);return this._hasDay=t,this._dateTemplate=e,{cssClass:"mbsc-datetime-date-wheel",getIndex:this._getDateIndex,getItem:this._getDateItem,label:this.s.dateText,max:this._max?Xs(Zs(this._max),t):j,min:this._min?Xs(Zs(this._min),t):j,spaceAround:!0};},t.prototype._getTimeWheel=function(e){var t=this.s,a=[],n=1;/s/i.test(e)?n=t.stepSecond:/m/i.test(e)?n=60*t.stepMinute:/h/i.test(e)&&(n=3600*t.stepHour),this._timeStep=n;for(var i=0;i<86400;i+=n){var s=new Date((new Date()).setHours(0,0,0,0)+1e3*i);a.push({display:Qa(e,s,t),value:i});}return {data:a,label:t.timeText,spaceAround:!0};},t.prototype._getArray=function(e,t){var a=[],n=this._wheelOrder;if(null===e||e===j)return a;for(var i=0,s=["y","m","d","a","h","i","s","u","dd","tt"];i<s.length;i++){var r=s[i],o=this._getDatePart[r](e);n[r]!==j&&(a[n[r]]=o),t&&(this._innerValues[r]=o);}return a;},t.defaults=h({},Ea,{dateDisplay:"MMMMDDYYYY",dateWheelFormat:"|DDD MMM D|",stepHour:1,stepMinute:1,stepSecond:1}),t._name="Datetime",t;}(Vn);var tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return function(e,t){return et(Bs,{display:e.display,circular:e.circular,displayStyle:e.displayStyle,getValue:t._getDate,invalid:e.invalid,itemHeight:e.itemHeight,maxWheelWidth:e.maxWheelWidth,minWheelWidth:t._minWheelWidth,parseValue:t._parseDate,rows:e.rows,rtl:e.rtl,shouldValidate:t._shouldValidate,theme:e.theme,themeVariant:e.themeVariant,touchUi:t._touchUi,valid:e.valid,validate:t._validate,value:e.value,valueEquality:t._valueEquals,wheels:t._wheels,wheelWidth:e.wheelWidth,onChange:t._proxyHook},e.children);}(e,this);},t;}(er),ar=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._preset="datetime",t;}return d(t,e),t;}(tr),nr=kt({}),ir={};function sr(e,t,a){var n=ir[e];n&&(a!==j&&(n.selectedIndex=a),t!==j&&(n.value=t),n.change.next(n.value));}function rr(e){return ir[e]&&ir[e].selectedIndex;}var or=1,lr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._id="mbsc-segmented-group"+or++,t._onChange=function(e,a){var n=t.s,i=n.modelValue!==j?n.modelValue:t.value;if("multiple"===n.select){if(i!==j){var s=(i=i||[]).indexOf(a);-1!==s?i.splice(s,1):i.push(a),t.value=i.slice();}}else t.value=a;t._change(t.value),n.onChange&&n.onChange(e);},t;}return d(t,e),t.prototype._change=function(e){},t.prototype._render=function(e){this._name=e.name===j?this._id:e.name,this._groupClass="mbsc-segmented mbsc-flex "+this._className+this._theme+this._rtl+(e.color?" mbsc-segmented-"+e.color:"")+(this.state.dragging?" mbsc-segmented-dragging":""),this._groupOpt={color:e.color,disabled:e.disabled,name:this._name,onChange:this._onChange,select:e.select,value:e.modelValue!==j?e.modelValue:e.value};},t.prototype._updated=function(){this.s.drag&&"multiple"!==this.s.select?this._unlisten||this._setupDrag():this._cleanupDrag();},t.prototype._destroy=function(){this._cleanupDrag();},t.prototype._setupDrag=function(){var e,t,a,n,i,s,r=this,o=[],l=[];this._unlisten=es(this._el,{onEnd:function(){a&&n!==i&&!o[n]&&r._el.querySelectorAll(".mbsc-segmented-input")[n].click();a=!1,r.setState({dragging:!1});},onMove:function(i){if(a){for(var c=Math.min(Math.max(i.endX-t,0),e),d=0,h=l[0];c>h&&l.length>d+1;)d++,h+=l[d];(d=r.s.rtl?l.length-1-d:d)===n||o[d]||sr(s,j,n=d);}},onStart:function(c){var d=Je(c.domEvent.target,".mbsc-segmented-item",r._el);
277if(d){var h=d.querySelector(".mbsc-segmented-input");if(h.classList.contains("mbsc-selected")){o=[],Ke(r._el.querySelectorAll(".mbsc-segmented-button"),(function(e){o.push(e.classList.contains("mbsc-disabled"));})),l=[],Ke(r._el.querySelectorAll(".mbsc-segmented-item"),(function(e){l.push(e.clientWidth);}));e=r._el.clientWidth-30,t=Ue(r._el).left+15,s=h.name,n=rr(s),i=n,l.length&&"radio"===h.type&&(a=!0,r.setState({dragging:!0}));}}}});},t.prototype._cleanupDrag=function(){this._unlisten&&(this._unlisten(),this._unlisten=null);},t.defaults={select:"single"},t._name="SegmentedGroup",t;}(Vn);var cr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return et(nr.Provider,{children:(t=this,a=e.children,et("div",{className:t._groupClass,ref:t._setEl},a)),value:this._groupOpt});var t,a;},t;}(lr),dr=1,hr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onChange=function(e){var a=t.s,n=e.target.checked;n!==t._checked&&(t._change(n),t._onGroupChange&&t._onGroupChange(e,t._value),t._toggle(n),a.onChange&&a.onChange(e));},t._onValueChange=function(e){var a=t.s,n=t._isMultiple?X(e)&&-1!==e.indexOf(t._value):e===t._value;a.checked===j&&n!==t.state.selected?t.setState({selected:n}):t.forceUpdate(),t._change(n);},t._setBox=function(e){t._box=e;},t;}return d(t,e),t.prototype._change=function(e){},t.prototype._groupOptions=function(e){var t=this,a=e.color,n=e.disabled,i=e.name,s=e.onChange,r=e.select,o=e.value,l=this.s,c=this.state,d=this._checked,h=l.modelValue!==j?l.modelValue===l.value:l.checked,u=h!==j?ne(h):c.selected===j?ne(l.defaultChecked):c.selected;this._id=l.id===j?this._id||"mbsc-segmented-"+dr++:l.id,this._value=l.value===j?this._id:l.value,this._onGroupChange=s,this._isMultiple="multiple"===(r||l.select),this._name=i===j?l.name:i,this._disabled=n===j?l.disabled===j?c.disabled:ne(l.disabled):ne(n),this._color=a===j?l.color:a,this._checked=o===j?u:this._isMultiple?o&&-1!==o.indexOf(this._value):o===this._value,this._isMultiple||d||!this._checked||setTimeout((function(){t._checked&&sr(t._name,t._value,t._index);})),this._selectedIndex=rr(this._name),this._cssClass="mbsc-segmented-item "+this._className+this._theme+this._rtl+(this._checked?" mbsc-segmented-item-checked":"")+(c.hasFocus?" mbsc-focus":"")+(this._index===this._selectedIndex||this._index===j&&this._checked||this._isMultiple&&this._checked?" mbsc-segmented-item-selected":"");},t.prototype._toggle=function(e){this.s.checked===j&&this.setState({selected:e});},t.prototype._mounted=function(){var e=this;Fe(this._el,Rn,this._onChange),this._unlisten=es(this._el,{onBlur:function(){e.setState({hasFocus:!1});},onFocus:function(){e.setState({hasFocus:!0});}});},t.prototype._updated=function(){var e,t;if(this._name&&!this._unsubscribe&&(this._unsubscribe=(e=this._name,t=this._onValueChange,ir[e]||(ir[e]={change:new _(),selectedIndex:-1}),ir[e].change.subscribe(t))),!this._isMultiple){var a=Je(this._el,".mbsc-segmented"),n=-1,i=-1;if(a)for(var s=a.querySelectorAll('.mbsc-segmented-input[name="'+this._name+'"]'),r=0;r<s.length;r++)s[r]===this._el&&(n=r),s[r].checked&&(i=r);this._index!==n&&-1!==i&&function(e,t){ir[e]&&(ir[e].selectedIndex=t);}(this._name,i),-1!==this._selectedIndex&&(this._box.style.transform="translateX("+(this.s.rtl?-1:1)*(this._selectedIndex-n)*100+"%)",this._animate=!0),-1!==n&&(this._index=n);}},t.prototype._destroy=function(){var e,t,a;Le(this._el,Rn,this._onChange),this._unsubscribe&&(e=this._name,t=this._unsubscribe,(a=ir[e])&&(a.change.unsubscribe(t),a.change.nr||delete ir[e]),this._unsubscribe=j),this._unlisten&&this._unlisten();},t.defaults={select:"single"},t._name="Segmented",t;}(Vn);var ur=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),Object.defineProperty(t.prototype,"checked",{get:function(){return this._checked;},set:function(e){this._toggle(e);},enumerable:!0,configurable:!0}),t.prototype._template=function(e,t){var a=this;return et(nr.Consumer,null,(function(n){return function(e,t,a,n,i){return a._groupOptions(i),et("label",{className:a._cssClass},et("input",{ref:a._setEl,"aria-labelledby":a._id,checked:a._checked,className:"mbsc-segmented-input mbsc-reset "+(e.inputClass||"")+a._theme+(a._checked?" mbsc-selected":""),disabled:a._disabled,name:a._isMultiple?e.name:a._name,onChange:re,type:a._isMultiple?"checkbox":"radio",value:a._value}),et("div",{ref:a._setBox,className:"mbsc-segmented-selectbox"+a._theme+(a._animate?" mbsc-segmented-selectbox-animate":"")+(a._checked?" mbsc-selected":"")},et("div",{className:"mbsc-segmented-selectbox-inner"+a._theme+(a._index===a._selectedIndex||a._checked?" mbsc-segmented-selectbox-inner-visible":"")+(a._checked?" mbsc-selected":"")}
277)),et(as,{"aria-hidden":!0,ariaLabel:e.ariaLabel,className:"mbsc-segmented-button"+(a._checked?" mbsc-selected":"")+(t.hasFocus?" mbsc-focus":""),color:a._color,disabled:a._disabled,endIcon:e.endIcon,endIconSrc:e.endIconSrc,endIconSvg:e.endIconSvg,icon:e.icon,iconSrc:e.iconSrc,iconSvg:e.iconSvg,id:a._id,ripple:e.ripple,rtl:e.rtl,startIcon:e.startIcon,startIconSrc:e.startIconSrc,startIconSvg:e.startIconSvg,tag:"span",tabIndex:-1,theme:e.theme,themeVariant:e.themeVariant},n));}(e,t,a,e.children,n);}));},t;}(hr);var mr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._setTime=function(e){t._hook("onChange",{value:qa(t.s,e.value)});},t._isDisabled=function(e){if(e){var a=Oa(qa(t.s,e)),n=t._invalids&&t._invalids[a],i=t._valids&&t._valids[a],s=t.s.exclusiveEndDates;if(i){for(var r=0,o=i;r<o.length;r++){var l=o[r],c=l.end&&(s?e<+l.end:e<=+l.end);if(l.start&&e>=+l.start&&c||l.allDay)return !1;}return !0;}if(n){for(var d=0,h=n;d<h.length;d++){var u=h[d];c=u.end&&(s?e<+u.end:e<=+u.end);if(u.start&&e>=+u.start&&c||u.allDay)return !0;}return !1;}}return !1;},t._onKeyDown=function(e){if(e.keyCode===li)e.target.click(),e.preventDefault();},t._setCont=function(e){t._gridContEl=e&&e.parentElement;},t;}return d(t,e),t.prototype._render=function(e,t){var a=this,n=this._prevS;this._cssClass="mbsc-timegrid-container mbsc-font"+this._theme+this._rtl;var i=e.min!==n.min,s=e.max!==n.max,r=e.timeFormat,o=n.value&&!e.value||e.value&&+e.value!==this._value;i&&(this._min=ee(e.min)?j:Xa(e.min,e,r)),s&&(this._max=ee(e.max)?j:Xa(e.max,e,r));var l=za(e.value||qa(e)),c=tn(l,1),d=this._selectedDate!==+l,h=e.invalid!==n.invalid,u=e.valid!==n.valid;(h||d)&&(this._invalids=_n(e.invalid,l,c,e,!0)),(u||d)&&(this._valids=_n(e.valid,l,c,e,!0)),o&&(this._value=e.value&&+e.value);var m=d||h||i||s||r!==n.timeFormat;if(m){this._selectedDate=+l;var p=Math.max(+l,+(this._min||-1/0)),_=Math.min(+c,+(this._max||1/0)+1),v=36e5*e.stepHour+6e4*e.stepMinute;this._timeSlots=[],this._validTimes=[];for(var f=[],g=0,x=+l;x<+c;x+=v)if(_>=p?x>=p&&x<_:x>=p||x<_){var y={formattedValue:Qa(r,qa(e,x),e),value:x};f.push(y),2===g&&(this._timeSlots.push(f),f=[],g=-1),this._isDisabled(x)||this._validTimes.push(y),g++;}f.length&&this._timeSlots.push(f);}if(this._isDisabled(this._value)||(o||m)&&-1===function(e,t){return pe(e,t,!0);}(this._validTimes,(function(e){return e.value===a._value;}))){var T=function(e,t){if(null==t||!e.length)return null;for(var a=0;a<e.length&&t>=e[a];)a++;if(a===e.length)return e[a-1];if(0===a)return e[0];var n=e[a-1],i=e[a];return t-n<i-t?n:i;}(this._validTimes.map((function(e){return e.value;})),this._value);
277T&&(clearTimeout(this._validationHandle),this._validationHandle=setTimeout((function(){var e=me(a._validTimes,(function(e){return e.value===T;}));a._setTime(e);})));}else m&&clearTimeout(this._validationHandle);this._valueChanged=this._valueChanged||o;},t.prototype._updated=function(){var e=this.s.isOpen;if(g&&this._value!==j&&(this._valueChanged||this._isOpen!==e&&e)){var t=this._lastValue!==j,a=this._gridContEl,n=a.querySelector('[data-timeslot="'+this._value+'"]');n&&setTimeout((function(){var e,i,s,r,o,l,c,d,h,u,m,p=n.getBoundingClientRect(),_=p.top,v=p.height,f=a.getBoundingClientRect(),g=f.top,x=f.height,y=ze(a);(_+v>g+x||_<g)&&(e=a,i=j,s=_-g+y-5,r=t,c=+new Date(),d=le(e.scrollLeft),h=le(e.scrollTop),u=i===j?d:Math.max(0,le(i))*(o?-1:1),m=s===j?h:Math.max(0,le(s)),r?(!0,function t(){var a=Math.min(1,(+new Date()-c)/468),n=.5*(1-Math.cos(Math.PI*a)),i=le(d+(u-d)*n),s=le(h+(m-h)*n);e.scrollLeft=i,e.scrollTop=s,i!==u||s!==m?Me((function(){t();})):l&&(!1,l());}()):(e.scrollLeft=u,e.scrollTop=m,l&&l()));})),this._valueChanged=!1,this._lastValue=this._value;}this._isOpen=e;},t.defaults=h({},Ea,{stepHour:0,stepMinute:30}),t._name="Timegrid",t;}(Vn);var pr,_r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t.prototype._template=function(e){return (a={}).onKeyDown=(t=this)._onKeyDown,n=a,et("div",{className:t._cssClass,ref:t._setCont},t._timeSlots.map((function(e,a){return et("div",{className:"mbsc-timegrid-row",key:a},e.map((function(e,a){var i=t._isDisabled(e.value);return et("div",{className:"mbsc-timegrid-cell"+(i?" mbsc-disabled":""),key:a},et("div",h({className:"mbsc-timegrid-item"+(t._value===e.value?" mbsc-selected":"")+(i?" mbsc-disabled":"")+t._theme,onClick:function(){return t._setTime(e);},tabIndex:i?j:0,"data-timeslot":e.value},n),e.formattedValue));})));})));var t,a,n;},t;}(mr),vr=new _(),fr=0;function gr(){clearTimeout(pr),pr=setTimeout((function(){vr.next();}),100);}function xr(e){try{return je(e,"*:-webkit-autofill");}catch(e){return !1;}}var yr=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._tag="input",t._onClick=function(){t._hidePass=!t._hidePass;},t._onMouseDown=function(e){t.s.tags&&(t._preventFocus=!0);},t._onTagClear=function(e,a){if(e.stopPropagation(),e.preventDefault(),!t.s.disabled){var n=t.s.pickerValue.slice();n.splice(a,1),Be(t._el,An,n);}},t._sizeTextArea=function(){var e,a,n,i=t._el,s=t.s.rows;i.offsetHeight&&(i.style.height="",n=i.scrollHeight-i.offsetHeight,e=i.offsetHeight+(n>0?n:0),(a=Math.round(e/24))>s?(e=24*s+(e-24*a),i.style.overflow="auto"):i.style.overflow="",e&&(i.style.height=e+"px"));},t._onAutoFill=function(){"floating"===t.s.labelStyle&&xr(t._el)&&t.setState({isFloatingActive:!0});},t;}return d(t,e),t.prototype._change=function(e){},t.prototype._checkFloating=function(){var e=this,t=this._el,a=this.s,n=xr(t),i=this.state.hasFocus||n||!ee(this.value);if(t&&"floating"===a.labelStyle){if("select"===this._tag){var s=t,r=s.options[0];i=!!(i||s.multiple||s.value||s.selectedIndex>-1&&r&&r.label);}else{if(this.value===j)i=!(!i&&!t.value);}this._valueChecked=!0,ue(this,(function(){e.setState({isFloatingActive:i});}));}},t.prototype._mounted=function(){var e,t=this,a=this.s,n=this._el;Fe(n,On,this._onAutoFill),"textarea"===this._tag&&(Fe(n,Bn,this._sizeTextArea),this._unsubscribe=(e=this._sizeTextArea,fr||Fe(fe,ei,gr),fr++,vr.subscribe(e))),this._unlisten=es(n,{keepFocus:!0,onBlur:function(){t.setState({hasFocus:!1,isFloatingActive:!!n.value});},onChange:function(e){if("file"===a.type){for(var n=[],i=0,s=e.target.files;i<s.length;i++){var r=s[i];n.push(r.name);}t.setState({files:n.join(", ")});}a.tags&&a.value===j&&a.defaultValue===j&&t.setState({value:e.target.value}),t._checkFloating(),t._change(e.target.value),t._emit("onChange",e);},onFocus:function(){t._preventFocus||t.setState({hasFocus:!0,isFloatingActive:!0}),t._preventFocus=!1;},onHoverIn:function(){t._disabled||t.setState({hasHover:!0});},onHoverOut:function(){t.setState({hasHover:!1});},onInput:function(e){t._change(e.target.value);}});},t.prototype._render=function(e,t){var a=!(!e.endIconSvg&&!e.endIcon),n=e.pickerValue,i=!(!e.startIconSvg&&!e.startIcon),s=e.label!==j||e.hasChildren,r=e.error,o=e.rtl?"right":"left",l=e.rtl?"left":"right",c=e.inputStyle,d=e.labelStyle,h="floating"===d,u=!(!h||!s||!t.isFloatingActive&&ee(e.value)),m=e.disabled===j?t.disabled:e.disabled,p=this._prevS,_=e.modelValue!==j?e.modelValue:e.value,v=_!==j?_:t.value!==j?t.value:e.defaultValue,f=this._theme+this._rtl+(r?" mbsc-error":"")+(m?" mbsc-disabled":"")+(t.hasHover?" mbsc-hover":"")+(t.hasFocus&&!m?" mbsc-focus":"");"file"!==e.type||a||(e.endIconSvg='<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/>
277<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z"/></svg>',a=!0),e.tags&&(ee(n)&&(n=[]),X(n)||(n=[n]),this._tagsArray=e.pickerMap?n.map((function(t){return e.pickerMap.get(t);})):ee(v)?[]:v.split(", ")),e.passwordToggle&&(a=!0,this._passIconClass=f+" mbsc-toggle-icon mbsc-textfield-icon mbsc-textfield-icon-"+c+" mbsc-textfield-icon-"+l+" mbsc-textfield-icon-"+c+"-"+l+(s?" mbsc-textfield-icon-"+d:""),this._hidePass=this._hidePass===j?"password"===e.type:this._hidePass),this._hasStartIcon=i,this._hasEndIcon=a,this._hasError=r,this._disabled=m,this._value=v,this._cssClass=this._className+this._hb+f+" mbsc-form-control-wrapper mbsc-textfield-wrapper mbsc-font mbsc-textfield-wrapper-"+c+(m?" mbsc-disabled":"")+(s?" mbsc-textfield-wrapper-"+d:"")+(i?" mbsc-textfield-wrapper-has-icon-"+o+" ":"")+(a?" mbsc-textfield-wrapper-has-icon-"+l+" ":""),s&&(this._labelClass=f+" mbsc-label mbsc-label-"+d+" mbsc-label-"+c+"-"+d+(i?" mbsc-label-"+c+"-"+d+"-has-icon-"+o+" ":"")+(a?" mbsc-label-"+c+"-"+d+"-has-icon-"+l+" ":"")+(h&&this._animateFloating?" mbsc-label-floating-animate":"")+(u?" mbsc-label-floating-active":"")),this._innerClass=f+" mbsc-textfield-inner mbsc-textfield-inner-"+c+(s?" mbsc-textfield-inner-"+d:""),i&&(this._startIconClass=f+" mbsc-textfield-icon mbsc-textfield-icon-"+c+" mbsc-textfield-icon-"+o+" mbsc-textfield-icon-"+c+"-"+o+(s?" mbsc-textfield-icon-"+d:"")),a&&(this._endIconClass=f+" mbsc-textfield-icon mbsc-textfield-icon-"+c+" mbsc-textfield-icon-"+l+" mbsc-textfield-icon-"+c+"-"+l+(s?" mbsc-textfield-icon-"+d:"")),this._nativeElmClass=f+" "+(e.inputClass||"")+" mbsc-textfield mbsc-textfield-"+c+(e.dropdown?" mbsc-select":"")+(s?" mbsc-textfield-"+d+" mbsc-textfield-"+c+"-"+d:"")+(u?" mbsc-textfield-floating-active":"")+(i?" mbsc-textfield-has-icon-"+o+" mbsc-textfield-"+c+"-has-icon-"+o+(s?" mbsc-textfield-"+c+"-"+d+"-has-icon-"+o:""):"")+(a?" mbsc-textfield-has-icon-"+l+" mbsc-textfield-"+c+"-has-icon-"+l+(s?" mbsc-textfield-"+c+"-"+d+"-has-icon-"+l:""):""),("select"===this._tag||e.dropdown)&&(this._selectIconClass="mbsc-select-icon mbsc-select-icon-"+c+this._rtl+this._theme+(s?" mbsc-select-icon-"+d:"")+(i?" mbsc-select-icon-"+o:"")+(a?" mbsc-select-icon-"+l:"")),("textarea"===this._tag||e.tags)&&(this._cssClass+=" mbsc-textarea-wrapper",this._innerClass+=" mbsc-textarea-inner",this._nativeElmClass+=" mbsc-textarea","textarea"!==this._tag||v===this._prevValue&&e.inputStyle===p.inputStyle&&e.labelStyle===p.labelStyle&&e.rows===p.rows&&e.theme===p.theme||(this._shouldSize=!0),this._prevValue=v),e.tags&&(this._innerClass+=" mbsc-textfield-tags-inner"),"file"===e.type&&(this._dummyElmClass=this._nativeElmClass,this._nativeElmClass+=" mbsc-textfield-file"),this._errorClass=this._theme+this._rtl+" mbsc-error-message mbsc-error-message-"+c+(s?" mbsc-error-message-"+d:"")+(i?" mbsc-error-message-has-icon-"+o:"")+(a?" mbsc-error-message-has-icon-"+l:""),e.notch&&"outline"===c&&(this._fieldSetClass="mbsc-textfield-fieldset"+f+(i?" mbsc-textfield-fieldset-has-icon-"+o:"")+(a?" mbsc-textfield-fieldset-has-icon-"+l:""),this._legendClass="mbsc-textfield-legend"+this._theme+(u||s&&"stacked"===d?" mbsc-textfield-legend-active":"")),e.ripple&&"outline"!==e.inputStyle&&(this._rippleClass="mbsc-textfield-ripple"+this._theme+(r?" mbsc-error":"")+(t.hasFocus?" mbsc-textfield-ripple-active":"")),this._valueChecked&&(this._animateFloating=!0);},t.prototype._updated=function(){var e=this;this._shouldSize&&(this._shouldSize=!1,ue(this,(function(){e._sizeTextArea();}))),this._checkFloating();},t.prototype._destroy=function(){Le(this._el,On,this._onAutoFill),Le(this._el,Bn,this._sizeTextArea),this._unsubscribe&&function(e){fr--,vr.unsubscribe(e),fr||Le(fe,ei,gr);}(this._unsubscribe),this._unlisten&&this._unlisten();},t.defaults={dropdown:!1,dropdownIcon:s,hideIcon:"eye-blocked",inputStyle:"underline",labelStyle:"stacked",placeholder:"",ripple:!1,rows:6,showIcon:"eye",type:"text"},t._name="Input",t;}(Vn);var Tr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._el&&this._el.value;},set:function(e){this._el.value=e,this._checkFloating(),"textarea"===this._tag&&this._sizeTextArea();},enumerable:!0,configurable:!0}),t.prototype._template=function(e,t){return function(e,t,a,n,i){var s,r=a.props;r.children;var o=r.dropdown;r.dropdownIcon,r.endIcon,r.endIconSrc,r.endIconSvg,r.error;var l=r.errorMessage,c=r.hasChildren;r.hideIcon,r.hideIconSvg,r.inputClass,r.inputStyle,r.label,r.labelStyle,r.modelValue,r.notch,r.passwordToggle,r.pickerMap,r.pickerValue,r.ripple,r.rows,r.rtl,r.showIcon,r.showIconSvg,r.startIcon,r.startIconSrc,r.startIconSvg;var d=r.tags;r.theme,r.themeVariant;var m=r.type,p=u(r,["children","dropdown","dropdownIcon","endIcon","endIconSrc","endIconSvg","error","errorMessage","hasChildren","hideIcon","hideIconSvg","inputClass","inputStyle","label","labelStyle","modelValue","notch","passwordToggle","pickerMap","pickerValue","ripple","rows","rtl","showIcon","showIconSvg","startIcon","startIconSrc","startIconSvg","tags","theme","themeVariant","type"]),_=e.label,v=((s={}).onMouseDown=a._onMouseDown,s),f=p;return et("label",h({className:a._cssClass},v),(_||c)&&et("span",{className:a._labelClass},c?"":_),et("span",{className:a._innerClass},"input"===a._tag&&et("input",h({},f,{ref:a._setEl,className:a._nativeElmClass+(e.tags?" mbsc-textfield-hidden":""),disabled:a._disabled,type:e.passwordToggle?a._hidePass?"password":"text":m})),"file"===m&&et("input",{className:a._dummyElmClass,disabled:a._disabled,placeholder:e.placeholder,readOnly:!0,t
277ype:"text",value:t.files||""}),"select"===a._tag&&et("select",h({},f,{ref:a._setEl,className:"mbsc-select"+a._nativeElmClass,disabled:a._disabled}),n),"textarea"===a._tag&&et("textarea",h({},f,{ref:a._setEl,className:a._nativeElmClass,disabled:a._disabled})),d&&et("span",{className:"mbsc-textfield-tags"+a._nativeElmClass},a._tagsArray.length?a._tagsArray.map((function(t,n){return t&&et("span",{key:n,className:"mbsc-textfield-tag"+a._theme+a._rtl},et("span",{className:"mbsc-textfield-tag-text"+a._theme},t),et(Bi,{className:"mbsc-textfield-tag-clear",onClick:function(e){return a._onTagClear(e,n);},svg:e.clearIcon,theme:e.theme}));})):et("span",{className:"mbsc-textfield-tags-placeholder"+a._theme},e.placeholder)),("select"===a._tag||o)&&et(Bi,{className:a._selectIconClass,svg:e.dropdownIcon,theme:e.theme}),a._hasStartIcon&&et(Bi,{className:a._startIconClass,name:e.startIcon,svg:e.startIconSvg,theme:e.theme}),a._hasEndIcon&&!e.passwordToggle&&et(Bi,{className:a._endIconClass,name:e.endIcon,svg:e.endIconSvg,theme:e.theme}),e.passwordToggle&&et(Bi,{onClick:a._onClick,className:a._passIconClass,name:a._hidePass?e.showIcon:e.hideIcon,svg:a._hidePass?e.showIconSvg:e.hideIconSvg,theme:e.theme}),a._hasError&&et("span",{className:a._errorClass},l),e.notch&&"outline"===e.inputStyle&&et("fieldset",{"aria-hidden":"true",className:a._fieldSetClass},et("legend",{className:a._legendClass},_&&"inline"!==e.labelStyle?_:" ")),e.ripple&&"outline"!==e.inputStyle&&et("span",{className:a._rippleClass})));}(e,t,this,e.children);},t;}(yr),br={hasChildren:!0,parentClass:"mbsc-label",readAttrs:["placeholder","rows"],readProps:["disabled","type"],renderToParent:!0,slots:{endIcon:"end-icon",label:"label",startIcon:"start-icon"},before:function(e,t,a){var n=e.parentNode,i=ve.createElement("span");if(n.insertBefore(i,e),i.appendChild(e),t.inputClass=e.getAttribute("class")||"","SELECT"===e.nodeName&&delete t.hasChildren,!t.label&&t.hasChildren&&(t.label=a[0].textContent),t.label){var s=ve.createElement("span");n.insertBefore(s,i);}}};h({},br,{hasValue:!0,parentClass:"mbsc-select",useOwnChildren:!0}),h({},br,{hasValue:!0});var Dr=function(e){function t(t){return Hi.Datetime=ar,Hi.Calendar=Ls,Hi.Timegrid=_r,e.call(this,t)||this;}return d(t,e),t.prototype._template=function(e){return function(e,t,a){var n=t.inputComponent,i=h({defaultValue:e._value&&e._valueText||"",placeholder:t.placeholder,ref:e._setInput},t.inputProps);t.inputComponent||(n=Tr,i=h({"aria-expanded":!!e._isOpen,"aria-haspopup":"dialog","aria-label":t.ariaLabel,disabled:t.disabled,dropdown:t.dropdown,endIcon:t.endIcon,endIconSrc:t.endIconSrc,endIconSvg:t.endIconSvg,error:t.error,errorMessage:t.errorMessage,inputStyle:t.inputStyle,label:t.label,labelStyle:t.labelStyle,name:t.name,pickerMap:t.valueMap,pickerValue:e._value,placeholder:t.placeholder,role:"combobox",rtl:t.rtl,startIcon:t.startIcon,startIconSrc:t.startIconSrc,startIconSvg:t.startIconSvg,tags:t.tagInput===j?t.selectMultiple:t.tagInput,theme:t.theme,themeVariant:t.themeVariant},i));var s=et(n,i);return et(at,null,e._showInput&&s,et(xs,{activeElm:t.activeElm,anchor:e._anchor,anchorAlign:e._anchorAlign,animation:t.animation,buttons:e._buttons,cancelText:t.cancelText,closeOnEsc:t.closeOnEsc,closeOnOverlayClick:t.closeOnOverlayClick,closeOnScroll:t.closeOnScroll,closeText:t.closeText,contentPadding:!1,context:t.context,cssClass:e._cssClass,disableLeftRight:!0,display:t.display,focusElm:e._focusElm,focusOnClose:t.focusOnClose,focusOnOpen:!e._allowTyping,focusTrap:t.focusTrap,fullScreen:t.fullScreen,headerText:e._headerText,height:t.height,isOpen:e._isOpen,maxHeight:t.maxHeight,maxWidth:e._maxWidth,onClose:e._onPopupClose,onClosed:e._onPopupClosed,onKeyDown:e._onPopupKey,onOpen:e._onPopupOpen,onResize:e._onResize,setText:t.setText,showArrow:t.showArrow,showOverlay:!e._allowTyping&&t.showOverlay,ref:e._setPopup,rtl:t.rtl,scrollLock:e._scrollLock,theme:t.theme,themeVariant:t.themeVariant,touchUi:e._touchUi,windowWidth:e.state.width,width:t.width},a));}(this,e,function(e,t,a,n){var i=t._renderTabs,s=t._controls,r=t._activeSelect,o=t._rtl,l=t._theme;return et(at,null,et("div",{className:"mbsc-datepicker mbsc-flex-col mbsc-datepicker-"+e.dis
277play+l+("inline"===e.display?" "+t._className+t._hb:"")+t._controlsClass},t._headerText&&"inline"===e.display&&et("div",{className:"mbsc-picker-header"+l+t._hb},t._headerText),i&&et(cr,{rtl:e.rtl,theme:e.theme,themeVariant:e.themeVariant,value:t._activeTab,onChange:t._changeActiveTab},s.map((function(t,a){return et(ur,{key:a,rtl:e.rtl,theme:e.theme,themeVariant:e.themeVariant,value:t.name},t.title);}))),t._renderControls&&et("div",{className:"mbsc-range-control-wrapper"+l},et(cr,{theme:e.theme,themeVariant:e.themeVariant,rtl:e.rtl,value:r,onChange:t._changeActiveSelect},et(ur,{rtl:e.rtl,theme:e.theme,themeVariant:e.themeVariant,value:"start",className:"mbsc-range-start"+(t._tempStartText?" mbsc-range-value-nonempty":"")},et("div",{className:"mbsc-range-control-label"+l+o+("start"===r?" active":"")},e.rangeStartLabel),et("div",{className:"mbsc-range-control-value"+l+o+("start"===r?" active":"")+(t._tempStartText?"":" mbsc-range-control-text-empty")},t._tempStartText||e.rangeStartHelp),"start"===r&&t._tempStartText&&et(Bi,{className:"mbsc-range-label-clear"+o,onClick:t._clearStart,svg:e.clearIcon,theme:e.theme})),et(ur,{rtl:e.rtl,theme:e.theme,themeVariant:e.themeVariant,value:"end",className:"mbsc-range-end"+(t._tempEndText?" mbsc-range-value-nonempty":"")},et("div",{className:"mbsc-range-control-label"+l+o+("end"===r?" active":"")},e.rangeEndLabel),et("div",{className:"mbsc-range-control-value"+l+o+("end"===r?" active":"")+(t._tempEndText?"":" mbsc-range-control-text-empty")},t._tempEndText||e.rangeEndHelp),"end"===r&&t._tempEndText&&et(Bi,{className:"mbsc-range-label-clear"+o,onClick:t._clearEnd,svg:e.clearIcon,theme:e.theme})))),et("div",{className:"mbsc-datepicker-tab-wrapper mbsc-flex mbsc-flex-1-1"+l,ref:t._setWrapper},s.map((function(e,a){var r=e.options;return n&&(r.renderCalendarHeader=n.header,r.renderDay=n.day,r.renderDayContent=n.dayContent),et("div",{key:a,className:"mbsc-flex mbsc-datepicker-tab mbsc-datepicker-tab-"+e.name+l+(i&&e.name===t._activeTab||!i?" mbsc-datepicker-tab-active":"")+(i&&"time"===e.name?" mbsc-datepicker-time-modal":"")+(i||1===s.length?" mbsc-datepicker-tab-expand mbsc-flex-1-1":"")},et(e.Component,h({},r)));})))),a);}(e,this,e.children));},t;}(zi);function Sr(e){return $(e)?ve.querySelector(e):e;}var Mr,wr={before:function(e,t){var a=t.select,n=t.startInput,i=t.endInput;if("range"===a&&n&&i){var s=Sr(n),r=Sr(i),o=s&&s.value,l=r&&r.value;o&&l&&(t.defaultValue=o+Fi+l);}else t.defaultValue=e.value;t.element=e;}},kr=0;function Cr(e){return Mr||(Mr=Ir.luxon.DateTime.local().zoneName),e&&"local"!==e?e:Mr;}var Yr=function(){function e(e,t){void 0===t&&(t="utc"),this._mbsc=!0,t=Cr(t);var a=Ir.luxon.DateTime,n={zone:t};if(this.zone=t,te(e))this.dt=a.utc().setZone(t);else if(Ba(e)||Q(e))this.dt=a.fromMillis(+e,n);else if($(e))this.dt=a.fromISO(e,n);else{if(X(e)){for(var i=["year","month","day","hour","minute","second","millisecond"],s={},r=0;r<e.length&&r<7;r++)s[i[r]]=e[r]+(1===r?1:0);Ir.version=Ir.version||function(e){var t=e.fromObject.toString().trim();return /^(function )?\w*\(\w+\)/.test(t)?1:2;}(a),1===Ir.version?this.dt=a.fromObject(h({},s,n)):this.dt=a.fromObject(s,n);}}}return e.prototype.clone=function(){return new e(this,this.zone);},e.prototype.createDate=function(e,t,a,n,i,s,r){return Ir.createDate({displayTimezone:this.zone},e,t,a,n,i,s,r);},e.prototype[Symbol.toPrimitive]=function(e){return this.dt.toJSDate()[Symbol.toPrimitive](e);},e.prototype.toDateString=function(){return this.dt.toFormat("ccc MMM dd yyyy");},e.prototype.toISOString=function(){return this.dt.toISO();},e.prototype.toJSON=function(){return this.dt.toISO();},e.prototype.valueOf=function(){return this.dt.valueOf();},e.prototype.getDate=function(){return this.dt.day;},e.prototype.getDay=function(){return this.dt.weekday%7;},e.prototype.getFullYear=function(){return this.dt.year;},e.prototype.getHours=function(){return this.dt.hour;},e.prototype.getMilliseconds=function(){return this.dt.millisecond;},e.prototype.getMinutes=function(){return this.dt.minute;},e.prototype.getMonth=function(){return this.dt.month-1;},e.prototype.getSeconds=function(){return this.dt.second;},e.prototype.getTime=function(){return this.valueOf();},e.prototype.getTimezoneOffset=function(){return -this.dt.offset;},e.prototype.getUTCDate=function(){return this.dt.toUTC().day;},e.prototype.getUTCDay=function(){return this.dt.toUTC().weekday%7;},e.prototype.getUTCFullYear=function(){return this.dt.toUTC().year;},e.prototype.getUTCHours=function(){return this.dt.toUTC().hour;},e.prototype.getUTCMilliseconds=function(){return this.dt.toUTC().millisecond;},e.prototype.getUTCMinutes=function(){return this.dt.toUTC().minute;},e.prototype.getUTCMonth=function(){return this.dt.toUTC().month-1;},e.prototype.getUTCSeconds=function(){return this.dt.toUTC().second;},e.prototype.setMilliseconds=function(e){return this.setter({millisecond:e});},e.prototype.setSeconds=function(e,t){return this.setter({second:e,millisecond:t});},e.prototype.setMinutes=function(e,t,a){return this.setter({minute:e,second:t,millisecond:a});},e.prototype.setHours=function(e,t,a,n){return this.setter({hour:e,minute:t,second:a,millisecond:n});},e.prototype.setDate=function(e){return this.setter({day:e});},e.prototype.setMonth=function(e,t){return e++,this.setter({month:e,day:t});},e.prototype.setFullYear=function(e,t,a){return this.setter({year:e,month:t,day:a});},e.prototype.setTime=function(e){return this.dt=Ir.luxon.DateTime.fromMillis(e),this.dt.valueOf();},e.prototype.setTimezone=function(e){e=Cr(e),this.zone=e,this.dt=this.dt.setZone(e);},e.prototype.setUTCMilliseconds=function(e){return 0;},e.prototype.setUTCSeconds=function(e,t){return 0;},e.prototype.setUTCMinutes=function(e,t,a){return 0;},e.prototype.setUTCHours=function(e,t,a,n){return 0;},e.prototype.setUTCDate=function(e){return 0;},e.prototype.setUTCMonth=function(e,t){return 0;},e.prototype.setUTCFullYear=function(e,t,a){return 0;},e.prototype.toUTCString=function(){return "";}
277,e.prototype.toTimeString=function(){return "";},e.prototype.toLocaleDateString=function(){return "";},e.prototype.toLocaleTimeString=function(){return "";},e.prototype.setter=function(e){return this.dt=this.dt.set(e),this.dt.valueOf();},e;}(),Ir={luxon:j,version:j,parse:function(e,t){return new Yr(e,t.dataTimezone||t.displayTimezone);},createDate:function(e,t,a,n,i,s,r,o){var l=e.displayTimezone;return ae(t)||$(t)||te(a)?new Yr(t,l):new Yr([t||1970,a||0,n||1,i||0,s||0,r||0,o||0],l);}};function Er(e){return e&&"local"!==e?e:Hr.moment.tz.guess();}var Nr=function(){function e(e,t){this._mbsc=!0,this.timezone=Er(t),this.init(e);}return e.prototype.clone=function(){return new e(this,this.timezone);},e.prototype.createDate=function(e,t,a,n,i,s,r){return Hr.createDate({displayTimezone:this.timezone},e,t,a,n,i,s,r);},e.prototype[Symbol.toPrimitive]=function(e){return this.m.toDate()[Symbol.toPrimitive](e);},e.prototype.toDateString=function(){return this.m.format("ddd MMM DD YYYY");},e.prototype.toISOString=function(){return this.m.toISOString(!0);},e.prototype.toJSON=function(){return this.m.toISOString();},e.prototype.valueOf=function(){return this.m.valueOf();},e.prototype.getDate=function(){return this.m.date();},e.prototype.getDay=function(){return this.m.day();},e.prototype.getFullYear=function(){return this.m.year();},e.prototype.getHours=function(){return this.m.hours();},e.prototype.getMilliseconds=function(){return this.m.milliseconds();},e.prototype.getMinutes=function(){return this.m.minutes();},e.prototype.getMonth=function(){return this.m.month();},e.prototype.getSeconds=function(){return this.m.seconds();},e.prototype.getTime=function(){return this.m.valueOf();},e.prototype.getTimezoneOffset=function(){return -this.m.utcOffset();},e.prototype.getUTCDate=function(){return this.utc().date();},e.prototype.getUTCDay=function(){return this.utc().day();},e.prototype.getUTCFullYear=function(){return this.utc().year();},e.prototype.getUTCHours=function(){return this.utc().hours();},e.prototype.getUTCMilliseconds=function(){return this.utc().milliseconds();},e.prototype.getUTCMinutes=function(){return this.utc().minutes();},e.prototype.getUTCMonth=function(){return this.utc().month();},e.prototype.getUTCSeconds=function(){return this.utc().seconds();},e.prototype.setMilliseconds=function(e){return +this.m.set({millisecond:e});},e.prototype.setSeconds=function(e,t){return +this.m.set({seconds:e,milliseconds:t});},e.prototype.setMinutes=function(e,t,a){return +this.m.set({minutes:e,seconds:t,milliseconds:a});},e.prototype.setHours=function(e,t,a,n){return +this.m.set({hours:e,minutes:t,seconds:a,milliseconds:n});},e.prototype.setDate=function(e){return +this.m.set({date:e});},e.prototype.setMonth=function(e,t){return +this.m.set({month:e,date:t});},e.prototype.setFullYear=function(e,t,a){return +this.m.set({year:e,month:t,date:a});},e.prototype.setTime=function(e){return this.init(e),this.m.valueOf();},e.prototype.setTimezone=function(e){this.timezone=Er(e),this.m.tz(this.timezone);},e.prototype.setUTCMilliseconds=function(e){return 0;},e.prototype.setUTCSeconds=function(e,t){return 0;},e.prototype.setUTCMinutes=function(e,t,a){return 0;},e.prototype.setUTCHours=function(e,t,a,n){return 0;},e.prototype.setUTCDate=function(e){return 0;},e.prototype.setUTCMonth=function(e,t){return 0;},e.prototype.setUTCFullYear=function(e,t,a){return 0;},e.prototype.toUTCString=function(){return "";},e.prototype.toTimeString=function(){return "";},e.prototype.toLocaleDateString=function(){return "";},e.prototype.toLocaleTimeString=function(){return "";},e.prototype.init=function(e){var t=Hr.moment.tz,a=te(e)||$(e)||Q(e)||X(e)?e:+e,n=$(e)&&Ha.test(e);this.m=n?t(a,"HH:mm:ss",this.timezone):t(a,this.timezone);},e.prototype.utc=function(){return this.m.clone().utc();},e;}(),Hr={moment:j,parse:function(e,t){return new Nr(e,t.dataTimezone||t.displayTimezone);},createDate:function(e,t,a,n,i,s,r,o){var l=e.displayTimezone;return ae(t)||$(t)||te(a)?new Nr(t,l):new Nr([t||1970,a||0,n||1,i||0,s||0,r||0,o||0],l);}},Fr=(us._fname="calendarNav",us._selector="[mbsc-calendar-nav]",us),Lr=(ds._fname="calendarNext",ds._selector="[mbsc-calendar-next]",ds),Pr=(cs._fname="calendarPrev",cs._selector="[mbsc-calendar-prev]",cs),Vr=(hs._fname="calendarToday",hs._selector="[mbsc-calendar-today]",hs),Or=function(e){function t(){return null!==e&&e.apply(this,arguments)||this;}return d(t,e),t._fname="datepicker",t._renderOpt=wr,t;}(Dr);Vt(Or),Vt(Fr),Vt(Lr),Vt(Pr),Vt(Vr),e.CalendarNav=Fr,e.CalendarNext=Lr,e.CalendarPrev=Pr,e.CalendarToday=Vr,e.Datepicker=Or,e.autoDetect=Y,e.createCustomTheme=N,e.enhance=Ft,e.formatDate=function(e,t,a){return Qa(e,t,h({},Ea,k.locale,a));},e.getAutoTheme=E,e.getInst=function(e,t){return t?e.__mbscFormInst:e.__mbscInst;},e.getJson=function(e,t,a){"jsonp"===a?function(e,t){if(fe){var a=ve.createElement("script"),n="mbscjsonp"+ ++kr;fe[n]=function(e){a.parentNode.removeChild(a),delete fe[n],e&&t(e);},a.src=e+(e.indexOf("?")>=0?"&":"?")+"callback="+n,ve.body.appendChild(a);}}(e,t):function(e,t){var a=new XMLHttpRequest();a.open("GET",e,!0),a.onload=function(){a.status>=200&&a.status<400&&t(JSON.parse(a.response));},a.onerror=function(){},a.send();}(e,t);},e.globalChanges=I,e.hijriCalendar=wa,e.jalaliCalendar=Xt,e.locale=Ca,e.localeAr=Ot,e.localeBg=zt,e.localeCa=At,e.localeCs=Rt,e.localeDa=Wt,e.localeDe=Ut,e.localeEl=jt,e.localeEn=ka,e.localeEnGB=Jt,e.localeEs=Bt,e.localeFa=Zt,e.localeFi=Qt,e.localeFr=$t,e.localeHe=ea,e.localeHi=ta,e.localeHr=aa,e.localeHu=na,e.localeIt=ia,e.localeJa=sa,e.localeKo=ra,e.localeLt=oa,e.localeNl=la,e.localeNo=ca,e.localePl=da,e.localePtBR=ua,e.localePtPT=ha,e.localeRo=ma,e.localeRu=pa,e.localeRuUA=_a,e.localeSk=va,e.localeSr=fa,e.localeSv=ga,e.localeTh=xa,e.localeTr=ya,e.localeUa=Ta,e.localeVi=ba,e.localeZh=Da,e.luxonTimezone=Ir,e.momentTimezone=Hr,e.options=k,e.parseDate=$a,e.platform=H,e.registerComponent=Vt,e.setOptions=function(e){for(var t=0,a=Object.keys(e);t<a.length;t++){var n=a[t];k[n]=e[n];}g&&I.next(k);},e.themes=C,e.util={}
277,Object.defineProperty(e,"__esModule",{value:!0});}));; 278/* @license MIT https://raw.githubusercontent.com/js-cookie/js-cookie/v3.0.5/LICENSE */ 279!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self,function(){var n=e.Cookies,o=e.Cookies=t();o.noConflict=function(){return e.Cookies=n,o;};}());}(this,(function(){"use strict";function e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)e[o]=n[o];}return e;}var t=function t(n,o){function r(t,r,i){if("undefined"!=typeof document){"number"==typeof (i=e({},o,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),t=encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var c="";for(var u in i)i[u]&&(c+="; "+u,!0!==i[u]&&(c+="="+i[u].split(";")[0]));return document.cookie=t+"="+n.write(r,t)+c;}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var t=document.cookie?document.cookie.split("; "):[],o={},r=0;r<t.length;r++){var i=t[r].split("="),c=i.slice(1).join("=");try{var u=decodeURIComponent(i[0]);if(o[u]=n.read(c,u),e===u)break;}catch(e){}}return e?o[e]:o;}},remove:function(t,n){r(t,"",e({},n,{expires:-1}));},withAttributes:function(n){return t(this.converter,e({},this.attributes,n));},withConverter:function(n){return t(e({},this.converter,n),this.attributes);}},{attributes:{value:Object.freeze(o)},converter:{value:Object.freeze(n)}});}({read:function(e){return '"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent);}},{path:"/"});return t;}));; 280/* @license MIT http://www.opensource.org/licenses/mit-license.php */ 281(function($){var platform=navigator.platform,settings={tabPause:800,focusChange:null,iOS:(platform==='iPad'||platform==='iPhone'||platform==='iPod'),firefox:(typeof InstallTrigger!=='undefined'),ie11:!(window.ActiveXObject)&&"ActiveXObject" in window};var setSettings=function(e,settings){if(settings===null||typeof settings==='undefined')return;for(var key in settings)$(e).data('autotab-'+key,settings[key]);};var getSettings=function(e){var settings={arrowKey:false,format:'all',loaded:false,disabled:false,pattern:null,uppercase:false,lowercase:false,nospace:false,maxlength:2147483647,target:null,previous:null,trigger:null,originalValue:'',changed:false,editable:(e.type==='text'||e.type==='password'||e.type==='textarea'||e.type==='tel'||e.type==='number'||e.type==='email'||e.type==='search'||e.type==='url'),filterable:(e.type==='text'||e.type==='password'||e.type==='textarea'),tabOnSelect:false};if($.autotab.selectFilterByClass===true&&typeof $(e).data('autotab-format')==='undefined'){var classes=['all','text','alpha','number','numeric','alphanumeric','hex','hexadecimal','custom'];
281for(var key in classes)if($(e).hasClass(classes[key])){settings.format=classes[key];break;}}for(var key in settings)if(typeof $(e).data('autotab-'+key)!=='undefined')settings[key]=$(e).data('autotab-'+key);if(!settings.loaded){if(settings.trigger!==null&&typeof settings.trigger==='string')settings.trigger=settings.trigger.toString();setSettings(e,settings);}return settings;};var queryObject=function(e){return (typeof e!=='undefined'&&(typeof e==='string'||!(e instanceof jQuery)));};var getSelection=function(e){var start=0,end=0,selectionType=0;if(e.type==='text'||e.type==='password'||e.type==='textarea')if(typeof e.selectionStart==='number'&&typeof e.selectionEnd==='number'){start=e.selectionStart;end=e.selectionEnd;selectionType=1;}else{if(document.selection&&document.selection.createRange){var selectionRange=document.selection.createRange(),textInputRange=e.createTextRange(),precedingRange=e.createTextRange(),bookmark=selectionRange.getBookmark();textInputRange.moveToBookmark(bookmark);precedingRange.setEndPoint("EndToStart",textInputRange);start=precedingRange.text.length;end=start+selectionRange.text.length;selectionType=2;}}return {start,end,selectionType};};$.autotab=function(options){if(typeof options!=='object')options={};$(':input').autotab(options);};$.autotab.selectFilterByClass=false;
281$.autotab.next=function(){var e=$(document.activeElement);if(e.length)e.trigger('autotab-next');};$.autotab.previous=function(){var e=$(document.activeElement);if(e.length)e.trigger('autotab-previous');};$.autotab.remove=function(e){queryObject(e)?$(e).autotab('remove'):$(':input').autotab('remove');};$.autotab.restore=function(e){queryObject(e)?$(e).autotab('restore'):$(':input').autotab('restore');};$.autotab.refresh=function(e){queryObject(e)?$(e).autotab('refresh'):$(':input').autotab('refresh');};$.fn.autotab=function(method,options){if(!this.length)return this;var filtered=$.grep(this,function(e,i){return e.type!='hidden';});if(method=='filter'){if(typeof options==='string'||typeof options==='function')options={format:options};for(var i=0,length=filtered.length;i<length;i++){var defaults=getSettings(filtered[i]),newOptions=options;newOptions.target=defaults.target;newOptions.previous=defaults.previous;$.extend(defaults,newOptions);if(!defaults.loaded){defaults.disabled=true;autotabBind(filtered[i],newOptions);}else setSettings(filtered[i],defaults);}}else if(method=='remove'||method=='destroy'||method=='disable')for(var i=0,length=filtered.length;i<length;i++){var defaults=getSettings(filtered[i]);defaults.disabled=true;setSettings(filtered[i],defaults);}else if(method=='restore'||method=='enable')for(var i=0,length=filtered.length;i<length;i++){var defaults=getSettings(filtered[i]);defaults.disabled=false;setSettings(filtered[i],defaults);}else if(method=='refresh')for(var i=0,length=filtered.length;i<length;i++){var defaults=getSettings(filtered[i]),n=i+1,p=i-1,selectTarget=function(){if(i>0&&n<length)defaults.target=filtered[n];else if(i>0)defaults.target=null;else defaults.target=filtered[n];},selectPrevious=function(){if(i>0&&n<length)defaults.previous=filtered[p];else if(i>0)defaults.previous=filtered[p];else defaults.previous=null;};if(defaults.target===null||defaults.target.selector==='')selectTarget();else{if(typeof defaults.target==='string'||defaults.target.selector){defaults.target=$(typeof defaults.target==='string'?defaults.target:defaults.target.selector);if(defaults.target.length===0)selectTarget();}}if(defaults.previous===null||defaults.previous.selector==='')selectPrevious();else{if(typeof defaults.previous==='string'||defaults.previous.selector){defaults.previous=$(typeof defaults.previous==='string'?defaults.previous:defaults.previous.selector);if(defaults.previous.length===0)selectPrevious();}}if(!defaults.loaded)autotabBind(filtered[i],defaults);else{if(queryObject(defaults.target))defaults.target=$(defaults.target);if(queryObject(defaults.previous))defaults.previous=$(defaults.previous);setSettings(filtered[i],defaults);}}else{if(method===null||typeof method==='undefined')options={};else if(typeof method==='string'||typeof method==='function')options={format:method};else{if(typeof method==='object')options=method;}if(filtered.length>1)for(var i=0,length=filtered.length;i<length;i++){var n=i+1,p=i-1,newOptions=options;if(i>0&&n<length){newOptions.target=filtered[n];newOptions.previous=filtered[p];}else if(i>0){newOptions.target=null;newOptions.previous=filtered[p];}else{newOptions.target=filtered[n];newOptions.previous=null;}autotabBind(filtered[i],newOptions);}else autotabBind(filtered[0],options);}return this;};var filterValue=function(e,value,defaults){if(typeof defaults.format==='function')return defaults.format(value,e);var pattern=null;switch(defaults.format){case 'text':pattern=new RegExp('[0-9]+','g');break;case 'alpha':pattern=new RegExp('[^a-zA-Z]+','g');break;case 'number':case 'numeric':pattern=new RegExp('[^0-9]+','g');break;case 'alphanumeric':pattern=new RegExp('[^0-9a-zA-Z]+','g');break;case 'hex':case 'hexadecimal':pattern=new RegExp('[^0-9A-Fa-f]+','g');break;case 'custom':pattern=new RegExp(defaults.pattern,'g');break;case 'all':default:break;}if(pattern!==null)value=value.replace(pattern,'');if(defaults.nospace){pattern=new RegExp('[ ]+','g');value=value.replace(pattern,'');}if(defaults.uppercase)value=value.toUpperCase();if(defaults.lowercase)value=value.toLowerCase();return value;};var autotabBind=function(element,options){var defaults=getSettings(element);if(defaults.disabled){defaults.disabled=false;defaults.target=null;defaults.previous=null;}$.extend(defaults,options);if(queryObject(defaults.target))defaults.target=$(defaults.target);if(queryObject(defaults.previous))defaults.previous=$(defaults.previous);var oldMaxlength=element.maxLength;if(typeof element.maxLength==='undefined'&&element.type=='textarea')oldMaxlength=element.maxLength=element.getAttribute('maxlength');
281if(defaults.maxlength==2147483647&&oldMaxlength!=2147483647&&oldMaxlength!=-1)defaults.maxlength=oldMaxlength;else if(defaults.maxlength>0)element.maxLength=defaults.maxlength;else defaults.target=null;if(!defaults.loaded){defaults.loaded=true;setSettings(element,defaults);}else{setSettings(element,defaults);return;}if(element.type=='select-one')$(element).on('change',function(e){var defaults=getSettings(this);if(defaults.tabOnSelect)$(this).trigger('autotab-next');});$(element).on('autotab-next',function(event,defaults){var self=this;setTimeout(function(){if(!defaults)defaults=getSettings(self);var target=defaults.target;if(!defaults.disabled&&target.length)if(!settings.iOS){if(target.prop('disabled')||target.prop('readonly'))target.trigger('autotab-next');else if(defaults.arrowKey)target.focus();else target.focus().select();settings.focusChange=new Date();}},1);}).on('autotab-previous',function(event,defaults){var self=this;setTimeout(function(){if(!defaults)defaults=getSettings(self);var previous=defaults.previous;if(!defaults.disabled&&previous.length){var value=previous.val();if(previous.prop('disabled')||previous.prop('readonly'))previous.trigger('autotab-previous');else if(value.length&&previous.data('autotab-editable')&&!defaults.arrowKey){if(settings.ie11)previous.val(value.substring(0,value.length-1)).focus();else previous.focus().val(value.substring(0,value.length-1));setSettings(previous,{changed:true});}else{if(defaults.arrowKey)setSettings(this,{arrowKey:false});if(settings.ie11)previous.val(value).focus();else previous.focus().val(value);}settings.focusChange=null;}},1);}).on('focus',function(){setSettings(this,{originalValue:this.value});}).on('blur',function(){var defaults=getSettings(this);if(defaults.changed&&this.value!=defaults.originalValue){setSettings(this,{changed:false});$(this).change();}}).on('keydown.autotab',function(e){var defaults=getSettings(this);if(!defaults||defaults.disabled)return true;var selection=getSelection(this),keyCode=e.which||e.charCode;if(keyCode==8){defaults.arrowKey=false;if(!defaults.editable){$(this).trigger('autotab-previous',defaults);return false;}setSettings(this,{changed:(this.value!==defaults.originalValue)});if(this.value.length===0){$(this).trigger('autotab-previous',defaults);return;}}else if(keyCode==9&&settings.focusChange!==null){if(e.shiftKey){settings.focusChange=null;return;}if((new Date().getTime()-settings.focusChange.getTime())<settings.tabPause){settings.focusChange=null;return false;}}else{if(this.type!=='range'&&this.type!=='select-one'&&this.type!=='select-multiple')if((this.type!=='tel'&&this.type!=='number')||((this.type==='tel'||this.type==='number')&&this.value.length==0))if(keyCode==37&&(!defaults.editable||selection.start==0)){defaults.arrowKey=true;$(this).trigger('autotab-previous',defaults);}else{if(keyCode==39&&(!defaults.editable||!defaults.filterable||selection.end==this.value.length||this.value.length==0)){defaults.arrowKey=true;$(this).trigger('autotab-next',defaults);}}}}).on('keypress.autotab',function(e){var defaults=getSettings(this),keyCode=e.which||e.keyCode;if(!defaults||defaults.disabled||(settings.firefox&&e.charCode===0)||e.ctrlKey||e.altKey||keyCode==13||this.disabled)return true;var keyChar=String.fromCharCode(keyCode);if(this.type!='text'&&this.type!='password'&&this.type!='textarea'){if((this.value.length+1)>=defaults.maxlength){defaults.arrowKey=false;$(this).trigger('autotab-next',defaults);}return !(this.value.length==defaults.maxlength);}if(defaults.trigger!==null&&defaults.trigger.indexOf(keyChar)>=0){if(settings.focusChange!==null&&(new Date().getTime()-settings.focusChange.getTime())<settings.tabPause)settings.focusChange=null;else{defaults.arrowKey=false;$(this).trigger('autotab-next',defaults);}return false;}settings.focusChange=null;var hasValue=document.selection&&document.selection.createRange?true:(keyCode>0);keyChar=filterValue(this,keyChar,defaults);if(hasValue&&(keyChar===null||keyChar===''))return false;if(hasValue&&(this.value.length<=this.maxLength)){var selection=getSelection(this);if(selection.start===0&&selection.end==this.value.length){this.value=keyChar;setSettings(this,{changed:(this.value!=defaults.originalValue)});}else{if(this.value.length==this.maxLength&&selection.start===selection.end){defaults.arrowKey=false;$(this).trigger('autotab-next',defaults);return false;}this.value=this.value.slice(0,selection.start)+keyChar+this.value.slice(selection.end);setSettings(this,{changed:(this.value!=defaults.originalValue)});}if(this.value.length!=defaults.maxlength){selection.start++;if(selection.selectionType==1)this.selectionStart=this.selectionEnd=selection.start;else{if(selection.selectionType==2){var range=this.createTextRange();range.collapse(true);range.moveEnd('character',selection.start);range.moveStart('character',selection.start);range.select();}}}}if(this.value.length==defaults.maxlength){defaults.arrowKey=false;$(this).trigger('autotab-next',defaults);}return false;}).on('drop paste',function(e){var defaults=getSettings(this);if(!defaults)return true;this.maxLength=2147483647;(function(e,originDefaults){setTimeout(function(){var lastIndex=-1,hiddenInput=document.createElement('input');hiddenInput.type='hidden';hiddenInput.value=e.value.toLowerCase();hiddenInput.originalValue=e.value;e.value=filterValue(e,e.value,originDefaults).substr(0,originDefaults.maxlength);var handlePaste=function(e,previousValue){if(!e)return;var defaults=getSettings(e);if($(e).prop('disabled')||$(e).prop('readonly')||!defaults.editable){$(e).trigger('autotab-next');
281if(!settings.iOS)handlePaste(defaults.target[0],previousValue);return;}for(var i=0,count=previousValue.length;i<count;i++)lastIndex=hiddenInput.value.indexOf(previousValue.charAt(i).toLowerCase(),lastIndex)+1;var trimmedValue=hiddenInput.originalValue.substr(lastIndex),filteredValue=filterValue(e,trimmedValue,defaults).substr(0,defaults.maxlength);if(!filteredValue)return;e.value=filteredValue;if(filteredValue.length==defaults.maxlength){defaults.arrowKey=false;$(e).trigger('autotab-next',defaults);if(settings.firefox)setTimeout(function(){e.selectionStart=e.value.length;},1);if(!settings.iOS)handlePaste(defaults.target[0],filteredValue);}};if(e.value.length==originDefaults.maxlength){defaults.arrowKey=false;$(e).trigger('autotab-next',defaults);if(!settings.iOS)handlePaste(originDefaults.target[0],e.value.toLowerCase());}e.maxLength=originDefaults.maxlength;},1);})(this,defaults);});};$.fn.autotab_magic=function(focus){return $(this).autotab();};$.fn.autotab_filter=function(options){var defaults={};if(typeof options==='string'||typeof options==='function')defaults.format=options;else $.extend(defaults,options);return $(this).autotab('filter',defaults);};})(jQuery);; 282/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 283;(function($,window,document,undefined){var pluginName='av',dataPlugin='plugin_'+pluginName,defaults={avUrl:'/av',avFailUrl:'/av/fail',avZipcodeFailUrl:'/av/zipcode-fail',avBypassUrls:['/av','/av/fail','/av/zipcode-fail','/legal/privacy','/legal/terms','/user/login','/user'],avToken:null,url:'',user:'anonymous',content:'#page',avFailRedirectURL:'',enableAVFailRedirect:'0',avMobileFailRedirectURL:'',enableMobileAVFailRedirect:'0',enableAvStoreProvince:'0',enableAvStoreDob:'0',avCheckToken:'',avBypassScriptTokenChecker:'0',avBypassTest:'0',avSearchUserAgents:['Googlebot','Googlebot-Mobile','Googlebot-Image']};function Plugin(element,options){this.element=element;this.settings=$.extend({},defaults,options);this._defaults=defaults;this._name=pluginName;}var getParameterByName=function(name){name=name.replace(/[\[\]]/g,'\\$&');var url=window.location.href;var regex=new RegExp('[?&]'+name+'(=([^&#]*)|&|#|$)'),results=regex.exec(url);if(!results)return null;if(!results[2])return '';return decodeURIComponent(results[2].replace(/\+/g,' '));};var removeParameterFromUrl=function(url,parameter){return url.replace(new RegExp('[?&]'+parameter+'=[^&#]*(#.*)?$'),'$1').replace(new RegExp('([?&])'+parameter+'=[^&]*&'),'$1');};if(drupalSettings.ageverification){if(drupalSettings.ageverification.enableAvStoreProvince||drupalSettings.ageverification.enableAvStoreDob)document.addEventListener(`click`,(e)=>{if(e.target.tagName.toLowerCase()==='a'){var linkHref=e.target.href;var avBypass=drupalSettings.ageverification.avCheckToken.replace('check','gate');avBypass=avBypass.replace('check','gate');if(linkHref.includes(avBypass)){e.preventDefault();if(drupalSettings.ageverification.enableAvStoreDob&&$.cookie('dob')!=undefined)linkHref=linkHref+'&avDOB='+$.cookie('dob');if(drupalSettings.ageverification.enableAvStoreProvince&&$.cookie('province')!=undefined&&$.cookie('province_iso')!=undefined)linkHref=linkHref+'&avProvince='+$.cookie('province')+'&avProvince_iso='+$.cookie('province_iso');if(e.target.getAttribute('target')==='_blank')window.open(linkHref);else location.href=linkHref;}}});if(drupalSettings.ageverification.avBypassScriptTokenChecker)var checkToken=function(settings){var validToken=false;if(settings.avToken!=null&&settings.avToken!='undefined')$.ajax({dataType:'json',async:false,url:drupalSettings.ageverification.avCheckToken+'?token='+settings.avToken}).done(function(response){if(response.IsValid==true){$.cookie('AV','pass',{path:'/'});if(drupalSettings.ageverification.avBypassTest){console.log('Province: '+response.avProvince);console.log('Province ISO: '+response.avProvince_iso);console.log('DOB: '+response.avDOB);}}
283checkAgeVerification(settings);});else checkAgeVerification(settings);return validToken;};}var checkAgeVerification=function(settings){var nongate=getParameterByName('non-gate');var isAvFail=settings.url.includes('fail')?true:false;if(nongate=='true'){$.cookie('AV','pass',{path:'/'});$(settings.content).removeClass('hidden');if($('body').hasClass('visually-hidden'))$('body').removeClass('visually-hidden');var new_url=removeParameterFromUrl(window.location.href,'non-gate');window.location.href=new_url;return false;}if(settings.user=='active')$.cookie('AV','pass',{path:'/'});if(settings.avUrl.toLowerCase()==settings.url){if($.cookie('AV')=='pass'){window.location='/';console.log('AV Pass');}else{$(settings.content).removeClass('hidden');if($('body').hasClass('visually-hidden'))$('body').removeClass('visually-hidden');var urlRedirect=getParameterByName('url');$('#redirect_url').val(urlRedirect);}return false;}if(settings.avFailUrl.toLowerCase()==settings.url){if($.cookie('AV')&&$.cookie('AV').includes('fail')){$(settings.content).removeClass('hidden');if($('body').hasClass('visually-hidden'))$('body').removeClass('visually-hidden');$.removeCookie('AV',{path:'/'});}else window.location='/';return false;}var userAgent=navigator.userAgent;var userAgentsSearchStrArray=settings.avSearchUserAgents;for(var i=0;i<userAgentsSearchStrArray.length;i++){var searchStr=userAgentsSearchStrArray[i];if(userAgent.indexOf(searchStr)>-1){$(settings.content).removeClass('hidden');if($('body').hasClass('visually-hidden'))$('body').removeClass('visually-hidden');return true;}}settings.avBypassUrls=settings.avBypassUrls.map(function(obj){return obj.toLowerCase();});var isBypassedURL=settings.avBypassUrls.indexOf(settings.url)>-1?true:false;if(settings.avBypassUrls.indexOf('/*')>-1||window.location.href.indexOf('user')>-1)$.cookie('AV','pass');if(isBypassedURL&&!$.cookie('AV')){$(settings.content).removeClass('hidden');if($('body').hasClass('visually-hidden'))$('body').removeClass('visually-hidden');return true;}if($.cookie('AV')==undefined){const redirectUrl=settings.avUrl+'?url='+window.location.href;window.location=redirectUrl;return false;}if($.cookie('AV').includes('fail')&&!isBypassedURL){window.location=$.cookie('AV')=='fail'?settings.avFailUrl:settings.avZipcodeFailUrl;return false;}if($.cookie('AV').includes('fail')&&isBypassedURL){$.removeCookie('AV',{path:'/'});return false;}if($.cookie('AV')=='pass'){$(settings.content).removeClass('hidden');if($('body').hasClass('visually-hidden'))$('body').removeClass('visually-hidden');$('.menu--main li').each(function(){if($(this).children('a').hasClass('av-bypass')){var avByPass='https://avbypass2.millercoors.com/av/gate/?url=';var link=$(this).children().attr('href');$(this).children().attr('href',avByPass+link);}});$('.menu--footer li').each(function(){if($(this).children('a').hasClass('av-bypass')){var avByPass='https://avbypass2.millercoors.com/av/gate/?url=';var link=$(this).children().attr('href');$(this).children().attr('href',avByPass+link);}});if(isBypassedURL&&$.cookie('AV')!='pass')window.location="/";return true;}};Plugin.prototype={init:function(){this.settings.url=window.location.pathname.toLowerCase();this.settings.avToken=getParameterByName('avtoken');if(this.settings.avToken==null||this.settings.avToken=='undefined')checkAgeVerification(this.settings);else{console.log('token check '+this.settings);checkToken(this.settings);}}};$.fn[pluginName]=function(arg){var args,instance;if(!this.length)return this;if(!(this.data(dataPlugin) instanceof Plugin))this.data(dataPlugin,new Plugin(this,arg));instance=this.data(dataPlugin);if(!(instance instanceof Plugin)){instance=new Plugin(this,arg);this.data(dataPlugin,instance);}instance.element=this;if(typeof arg==='undefined'||typeof arg==='object'){if(typeof instance['init']==='function')instance.init(arg);}else if(typeof arg==='string'&&typeof instance[arg]==='function'){args=Array.prototype.slice.call(arguments,1);return instance[arg].apply(instance,args);}else $.error('Method '+arg+' does not exist on jQuery.'+pluginName);};})(jQuery,window,document);; 284jQuery.validator.addMethod("alphanumericspace",function(value,element){return this.optional(element)||/^[a-zA-Z0-9\u0027-\u0027 -]*$/.test(value);},"Letter, numbers and spaces only please");jQuery.validator.addMethod("mcname",function(value,element){return this.optional(element)||/^[a-zA-Z0-9\u0027-\u0027 -]*$/.test(value);},"Letter, numbers and spaces only please");jQuery.validator.addMethod("mcaddress",function(value,element){return this.optional(element)||/^[a-zA-Z0-9 .]*$/.test(value);},"Letter, numbers and spaces only please");jQuery.validator.addMethod("mccity",function(value,element){return this.optional(element)||/^[a-zA-Z0-9\u0027-\u0027 .-]*$/.test(value);},"Letter, numbers and spaces only please");jQuery.validator.addMethod("birthdate",function(value,element){var birthmonth=parseInt(j
284Query("#edit-birthmonth").val(),10);var birthday=parseInt(jQuery("#edit-birthday").val(),10);var birthyear=parseInt(jQuery("#edit-birthyear").val(),10);var birthdate=new Date(birthyear,birthmonth-1,birthday);return this.optional(element)||(!/Invalid|NaN/.test(birthdate.toString())&&(birthdate.getMonth()===(birthmonth-1)));},Drupal.t("Please enter a valid date of birth."));jQuery.validator.addMethod("maxallowed",function(value,element){var birthmonth=parseInt(jQuery("#edit-birthmonth").val(),10);var birthday=parseInt(jQuery("#edit-birthday").val(),10);var birthyear=parseInt(jQuery("#edit-birthyear").val(),10);var today=new Date();var maxage=new Date(today.getFullYear()-120,today.getMonth(),today.getDate());var birthdate=new Date(birthyear,birthmonth-1,birthday);return birthdate>maxage;},Drupal.t("Please enter a valid date of birth."));jQuery.validator.addMethod("phone",function(value,element){var phone=jQuery("#edit-phoneareacode").val()+jQuery("#edit-phoneprefix").val()+jQuery("#edit-phonesuffix").val();return (jQuery.trim(phone).length==0)||(jQuery.trim(phone).length==10);},"Please enter a valid phone.");jQuery.validator.addMethod("zipcode",function(value,element){return this.optional(element)||/^[0-9]*$/.test(value);},Drupal.t("Please enter a valid zip code."));jQuery.validator.addMethod("legaldrinkingage",function(value,element){var birthmonth=parseInt(jQuery("#edit-birthmonth").val(),10);var birthday=parseInt(jQuery("#edit-birthday").val(),10);var birthyear=parseInt(jQuery("#edit-birthyear").val(),10);var today=new Date();var drinkingage=new Date(today.getFullYear()-21,today.getMonth(),today.getDate());var birthdate=new Date(birthyear,birthmonth-1,birthday);var legaldrinkingage=false;if(birthdate>drinkingage){jQuery("#BirthDatePopover").css('display','block');legaldrinkingage=false;}else{jQuery("#BirthDatePopover").css('display','none');legaldrinkingage=true;}return legaldrinkingage;},Drupal.t("You must be of legal drinking age"));jQuery.validator.addMethod("requireddesktop",function(value,element,param){if(!jQuery.browser.mobile){if(!this.depend(param,element))return "dependency-mismatch";if(element.nodeName.toLowerCase()==="select"){var val=jQuery(element).val();return val&&val.length>0;}if(this.checkable(element))return this.getLength(value,element)>0;return jQuery.trim(value).length>0;}},Drupal.t("This field is required."));jQuery.validator.addClassRules({alphanumericspace:{alphanumericspace:true},mcname:{mcname:true},mcaddress:{mcaddress:true},mccity:{mccity:true},requireddesktop:{requireddesktop:true},birthdate:{birthdate:true},legaldrinkingage:{legaldrinkingage:true},phone:{phone:true},maxallowed:{maxallowed:true}});; 285(function(factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof exports==='object')factory(require('jquery'));else factory(jQuery);}(function($){var pluses=/\+/g;function encode(s){return config.raw?s:encodeURIComponent(s);}function decode(s){return config.raw?s:decodeURIComponent(s);}function stringifyCookieValue(value){return encode(config.json?JSON.stringify(value):String(value));}function parseCookieValue(s){if(s.indexOf('"')===0)s=s.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,'\\');try{s=decodeURIComponent(s.replace(pluses,' '));return config.json?JSON.parse(s):s;}catch(e){}}function read(s,converter){var value=config.raw?s:parseCookieValue(s);return $.isFunction(converter)?converter(value):value;}var config=$.cookie=function(key,value,options){if(arguments.length>1&&!$.isFunction(value)){options=$.extend({},config.defaults,options);if(typeof options.expires==='number'){var days=options.expires,t=options.expires=new Date();t.setTime(+t+days*864e+5);}return (document.cookie=[encode(key),'=',stringifyCookieValue(value),options.expires?'; expires='+options.expires.toUTCString():'',options.path?'; path='+options.path:'',options.domain?'; domain='+options.domain:'',options.secure?'; secure':''].join(''));}var result=key?undefined:{};var cookies=document.cookie?document.cookie.split('; '):[];for(var i=0,l=cookies.length;i<l;i++){var parts=cookies[i].split('=');var name=decode(parts.shift());var cookie=parts.join('=');if(key&&key===name){result=read(cookie,value);break;}if(!key&&(cookie=read(cookie))!==undefined)result[name]=cookie;}return result;};config.defaults={};
285$.removeCookie=function(key,options){if($.cookie(key)===undefined)return false;$.cookie(key,'',$.extend({},options,{expires:-1}));return !$.cookie(key);};}));; 286;(function(window,document,$){var isOperaMini=Object.prototype.toString.call(window.operamini)=='[object OperaMini]';var isInputSupported='placeholder' in document.createElement('input')&&!isOperaMini;var isTextareaSupported='placeholder' in document.createElement('textarea')&&!isOperaMini;var prototype=$.fn;var valHooks=$.valHooks;var propHooks=$.propHooks;var hooks;var placeholder;if(isInputSupported&&isTextareaSupported){placeholder=prototype.placeholder=function(){return this;};placeholder.input=placeholder.textarea=true;}else{placeholder=prototype.placeholder=function(){var $this=this;$this.filter((isInputSupported?'textarea':':input')+'[placeholder]').not('.placeholder').bind({'focus.placeholder':clearPlaceholder,'blur.placeholder':setPlaceholder}).data('placeholder-enabled',true).trigger('blur.placeholder');return $this;};placeholder.input=isInputSupported;placeholder.textarea=isTextareaSupported;hooks={'get':function(element){var $element=$(element);var $passwordInput=$element.data('placeholder-password');if($passwordInput)return $passwordInput[0].value;return $element.data('placeholder-enabled')&&$element.hasClass('placeholder')?'':element.value;},'set':function(element,value){var $element=$(element);var $passwordInput=$element.data('placeholder-password');if($passwordInput)return $passwordInput[0].value=value;if(!$element.data('placeholder-enabled'))return element.value=value;if(value==''){element.value=value;if(element!=safeActiveElement())setPlaceholder.call(element);}else if($element.hasClass('placeholder'))clearPlaceholder.call(element,true,value)||(element.value=value);else element.value=value;return $element;}};if(!isInputSupported){valHooks.input=hooks;propHooks.value=hooks;}if(!isTextareaSupported){valHooks.textarea=hooks;propHooks.value=hooks;}$(function(){$(document).delegate('form','submit.placeholder',function(){var $inputs=$('.placeholder',this).each(clearPlaceholder);setTimeout(function(){$inputs.each(setPlaceholder);},10);});});$(window).bind('beforeunload.placeholder',function(){$('.placeholder').each(function(){this.value='';});});}function args(elem){var newAttrs={};var rinlinejQuery=/^jQuery\d+$/;$.each(elem.attributes,function(i,attr){if(attr.specified&&!rinlinejQuery.test(attr.name))newAttrs[attr.name]=attr.value;});return newAttrs;}function clearPlaceholder(event,value){var input=this;var $input=$(input);if(input.value==$input.attr('placeholder')&&$input.hasClass('placeholder'))if($input.data('placeholder-password')){$input=$input.hide().next().show().attr('id',$input.removeAttr('id').data('placeholder-id'));if(event===true)return $input[0].value=value;$input.focus();}else{input.value='';$input.removeClass('placeholder');input==safeActiveElement()&&input.select();}}function setPlaceholder(){var $replacement;var input=this;var $input=$(input);var id=this.id;if(input.value==''){if(input.type=='password'){if(!$input.data('placeholder-textinput')){try{$replacement=$input.clone().attr({'type':'text'});}catch(e){$replacement=$('<input>').attr($.extend(args(this),{'type':'text'}));}$replacement.removeAttr('name').data({'placeholder-password':$input,'placeholder-id':id}).bind('focus.placeholder',clearPlaceholder);$input.data({'placeholder-textinput':$replacement,'placeholder-id':id}).before($replacement);}$input=$input.removeAttr('id').hide().prev().attr('id',id).show();}$input.addClass('placeholder');$input[0].value=$input.attr('placeholder');}else $input.removeClass('placeholder');}function safeActiveElement(){try{return document.activeElement;}catch(err){}}}(this,document,jQuery));; 287!function(a,b,c){var d=window.matchMedia;"undefined"!=typeof module&&module.exports?module.exports=c(d):"function"==typeof define&&define.amd?define(function(){return b[a]=c(d);}):b[a]=c(d);}("enquire",this,function(a){"use strict";function b(a,b){var c,d=0,e=a.length;for(d;e>d&&(c=b(a[d],d),c!==!1);d++);}function c(a){return "[object Array]"===Object.prototype.toString.apply(a);}function d(a){return "function"==typeof a;}function e(a){this.options=a,!a.deferSetup&&this.setup();}function f(b,c){this.query=b,this.isUnconditional=c,this.handlers=[],this.mql=a(b);var d=this;this.listener=function(a){d.mql=a,d.assess();},this.mql.addListener(this.listener);}
287function g(){if(!a)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!a("only all").matches;}return e.prototype={setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0;},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match();},off:function(){this.options.unmatch&&this.options.unmatch();},destroy:function(){this.options.destroy?this.options.destroy():this.off();},equals:function(a){return this.options===a||this.options.match===a;}},f.prototype={addHandler:function(a){var b=new e(a);this.handlers.push(b),this.matches()&&b.on();},removeHandler:function(a){var c=this.handlers;b(c,function(b,d){return b.equals(a)?(b.destroy(),!c.splice(d,1)):void 0;});},matches:function(){return this.mql.matches||this.isUnconditional;},clear:function(){b(this.handlers,function(a){a.destroy();}),this.mql.removeListener(this.listener),this.handlers.length=0;},assess:function(){var a=this.matches()?"on":"off";b(this.handlers,function(b){b[a]();});}},g.prototype={register:function(a,e,g){var h=this.queries,i=g&&this.browserIsIncapable;return h[a]||(h[a]=new f(a,i)),d(e)&&(e={match:e}),c(e)||(e=[e]),b(e,function(b){d(b)&&(b={match:b}),h[a].addHandler(b);}),this;},unregister:function(a,b){var c=this.queries[a];return c&&(b?c.removeHandler(b):(c.clear(),delete this.queries[a])),this;}},new g();});; 288jQuery(document).ready(function(){jQuery('input, textarea').placeholder();jQuery('#edit-birthmonth, #edit-birthday, #edit-birthyear').autotab();let validateObject={errorClass:"error",validClass:"valid",errorPlacement:function(error,element){},rules:{birthdate:'required',maxallowed:'required',legaldrinkingage:'required',regions:'required',zipcode:'required'},messages:{birthdate:Drupal.t("Please enter a valid date."),maxallowed:Drupal.t("Please enter a valid date of birth."),legaldrinkingage:Drupal.t("You must be of legal drinking age."),regions:Drupal.t('Please enter a valid Region.'),zipcode:Drupal.t('Please enter a valid Zip code.')},errorPlacement:function(error,element){if(element.attr("name")==="regions")error.insertBefore('#edit-submit').addClass('edit-region-error');if(element.attr("name")==="zipcode")error.insertBefore('#edit-submit').addClass('edit-zipcode-error');if(drupalSettings.ageverification&&drupalSettings.ageverification.detailedErrors==1){if(element.attr("name")==="birthmonth")error.appendTo('#edit-birthdate').addClass('edit-birthmonth-error');if(element.attr("name")==="birthyear")error.appendTo('#edit-birthdate').addClass('edit-birthyear-error');if(element.attr("name")==="birthday")error.appendTo('#edit-birthdate').addClass('edit-birthday-error');}},highlight:function(element,errorClass,validClass){jQuery(element).addClass("error");jQuery(element).parents("div.fieldset-wrapper").addClass("has-error");},unhighlight:function(element,errorClass,validClass){jQuery(element).removeClass("error");jQuery(element).parents("div.fieldset-wrapper").removeClass("has-error");if(jQuery(element).parents("div.fieldset-wrapper").find("input").hasClass("error"))jQuery(element).parents("div.fieldset-wrapper").addClass("has-error");if(jQuery("#edit-birthmonth").attr("aria-invalid")==="false"&&jQuery("#edit-birthday").attr("aria-invalid")==="false"&&jQuery("#edit-birthyear").attr("aria-invalid")==="false")jQuery(".ageverification-form-error").html("");jQuery("body").removeClass('av-form-error');},submitHandler:function(form){jQuery("#edit-enter").attr("disabled","disabled");jQuery("#edit-enter").fadeTo("slow",0.33);form.submit();}};if(drupalSettings.ageverification&&drupalSettings.ageverification.detailedErrors==1)validateObject.showErrors=function(errorMap,errorList){var i=0;var labelText=new Array(this.numberOfInvalids());jQuery.each(errorMap,function(name,value){labelText[i]=jQuery("label[for='edit-"+name+"']:not(.error)").text();i++;});i=0;jQuery.each(errorList,function(name,value){this.message="<span aria-hidden='true'>"+labelText[i]+": </span>"+Drupal.t(this.message);i++;});this.defaultShowErrors();};else validateObject.invalidHandler=function(form,validator){if(drupalSettings.ageverification&&drupalSettings.ageverification.detailedErrors!==1){var errors=validator.numberOfInvalids();if(errors){validator.errorList[0].element.focus();
288var invalidInput="#"+validator.errorList[0].element.id;jQuery(invalidInput).attr('aria-describedby','edit-birthdate-error');}jQuery(".ageverification-form-error").html(validator.errorList[0].message);jQuery(".ageverification-form-error").attr('id','edit-birthdate-error');jQuery(".ageverification-form-error").removeClass("hidden");jQuery("body").addClass('av-form-error');}};if(jQuery.validator&&jQuery.validator.messages){jQuery.validator.messages.digits=Drupal.t('Please enter only digits.');jQuery.validator.messages.max=jQuery.validator.format(Drupal.t('Please enter a value less than or equal to {0}.'));jQuery.validator.messages.min=jQuery.validator.format(Drupal.t('Please enter a value greater than or equal to {0}.'));jQuery.validator.messages.minlength=jQuery.validator.format(Drupal.t('Please enter at least {0} characters.'));}jQuery("#age-verification-form").validate(validateObject);jQuery('#edit-enter').removeAttr('disabled');});; 289(function(){Drupal.behaviors.ageverification={attach:function(context,settings){var $page=jQuery('#page');if(!$page.length)return;var ageverification=drupalSettings.ageverification;if(ageverification!=undefined)$page.av({avUrl:ageverification.avUrl,avFailUrl:ageverification.avFailUrl,avBypassUrls:ageverification.avBypassUrls,avToken:null,url:"",user:ageverification.user,content:"#page",avSearchUserAgents:ageverification.avSearchUserAgents});else $page.av({});}};})(jQuery);(function(){Drupal.behaviors.ageverificationFail={attach:function(context,settings){var ageverificationFail=drupalSettings.ageverification;var failurl="";var enablefail="";var failredirecturl="";var mobileEnablefail="";var mobilefailredirecturl="";if(ageverificationFail!=undefined){failurl=ageverificationFail.avFailUrl;enablefail=ageverificationFail.enableAVFailRedirect;failredirecturl=ageverificationFail.avFailRedirectURL;mobileEnablefail=ageverificationFail.enableMobileAVFailRedirect;mobilefailredirecturl=ageverificationFail.avMobileFailRedirectURL;}if(ageverificationFail!=undefined&&enablefail==1)jQuery(document).ready(function(){enquire.register("screen and (min-width:768px)",{match:function(){redirectAVfail(failurl,failredirecturl);}});});if(ageverificationFail!=undefined&&mobileEnablefail==1)jQuery(document).ready(function(){enquire.register("screen and (max-width:768px)",{match:function(){redirectAVfail(failurl,mobilefailredirecturl);}});});}};})(jQuery);jQuery(document).ready(function(){enquire.register("screen and (max-width:768px)",{match:function(){initMobiScroll();}});checkInstaBrowser();});function initMobiScroll(){var control=jQuery('#edit-birthdate');
289if(!control.length||typeof mobiscroll==='undefined'||!jQuery.fn.mobiscroll)return;var language=jQuery('html').attr('lang');var lang=language.substring(0,2);const now=new Date();control.parent().prop('disabled',true);control.mobiscroll().datepicker({theme:'material',themeVariant:'dark',animation:'slide-up',display:'bottom',controls:['date'],locale:mobiscroll.locale[lang],rows:5,touchUi:true,min:new Date(now.getFullYear()-120,0,1),max:new Date(now.getFullYear(),11,31),focusOnClose:false,onClose:function(valueText,inst){var date=inst.getVal();var birthDay=date.getDate();var birthMonth=date.getMonth()+1;var birthYear=date.getFullYear();jQuery('input[id*="edit-birthday"]').val(birthDay);jQuery('input[id*="edit-birthmonth"]').val(birthMonth);jQuery('input[id*="edit-birthyear"]').val(birthYear);}});}function redirectAVfail(fu,fru){if(document.location.pathname==fu)setTimeout(function(){window.location=fru;},5000);}function checkInstaBrowser(){var ua=navigator.userAgent||navigator.vendor||window.opera;var isInstagram=(ua.indexOf('Instagram')>-1)?true:false;if(isInstagram)window.document.body.classList.add('instagram-browser');}; 290(function(Drupal){'use strict';Drupal.behaviors.bootstrapBootstrapPreInit={attach(context,settings){if(jQuery==='undefined')jQuery=$;}};}(Drupal));; 291if(typeof jQuery==='undefined')throw new Error('Bootstrap\'s JavaScript requires jQuery');+function($){'use strict';var version=$.fn.jquery.split(' ')[0].split('.');if((version[0]<2&&version[1]<9)||(version[0]==1&&version[1]==9&&version[2]<1)||(version[0]>3))throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4');}(jQuery);+function($){'use strict';function transitionEnd(){var el=document.createElement('bootstrap');var transEndEventNames={WebkitTransition:'webkitTransitionEnd',MozTransition:'transitionend',OTransition:'oTransitionEnd otransitionend',transition:'transitionend'};for(var name in transEndEventNames)if(el.style[name]!==undefined)return {end:transEndEventNames[name]};return false;}$.fn.emulateTransitionEnd=function(duration){var called=false;var $el=this;$(this).one('bsTransitionEnd',function(){called=true;});var callback=function(){if(!called)$($el).trigger($.support.transition.end);};setTimeout(callback,duration);return this;};$(function(){$.support.transition=transitionEnd();if(!$.support.transition)return;$.event.special.bsTransitionEnd={bindType:$.support.transition.end,delegateType:$.supp
291ort.transition.end,handle:function(e){if($(e.target).is(this))return e.handleObj.handler.apply(this,arguments);}};});}(jQuery);+function($){'use strict';var dismiss='[data-dismiss="alert"]';var Alert=function(el){$(el).on('click',dismiss,this.close);};Alert.VERSION='3.3.7';Alert.TRANSITION_DURATION=150;Alert.prototype.close=function(e){var $this=$(this);var selector=$this.attr('data-target');if(!selector){selector=$this.attr('href');selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'');}var $parent=$(selector==='#'?[]:selector);if(e)e.preventDefault();if(!$parent.length)$parent=$this.closest('.alert');$parent.trigger(e=$.Event('close.bs.alert'));if(e.isDefaultPrevented())return;$parent.removeClass('in');function removeElement(){$parent.detach().trigger('closed.bs.alert').remove();}$.support.transition&&$parent.hasClass('fade')?$parent.one('bsTransitionEnd',removeElement).emulateTransitionEnd(Alert.TRANSITION_DURATION):removeElement();};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.alert');if(!data)$this.data('bs.alert',(data=new Alert(this)));if(typeof option=='string')data[option].call($this);});}var old=$.fn.alert;$.fn.alert=Plugin;$.fn.alert.Constructor=Alert;$.fn.alert.noConflict=function(){$.fn.alert=old;return this;};$(document).on('click.bs.alert.data-api',dismiss,Alert.prototype.close);}(jQuery);+function($){'use strict';var Button=function(element,options){this.$element=$(element);this.options=$.extend({},Button.DEFAULTS,options);this.isLoading=false;};Button.VERSION='3.3.7';Button.DEFAULTS={loadingText:'loading...'};Button.prototype.setState=function(state){var d='disabled';var $el=this.$element;var val=$el.is('input')?'val':'html';var data=$el.data();state+='Text';if(data.resetText==null)$el.data('resetText',$el[val]());setTimeout($.proxy(function(){$el[val](data[state]==null?this.options[state]:data[state]);if(state=='loadingText'){this.isLoading=true;$el.addClass(d).attr(d,d).prop(d,true);}else{if(this.isLoading){this.isLoading=false;$el.removeClass(d).removeAttr(d).prop(d,false);}}},this),0);};Button.prototype.toggle=function(){var changed=true;var $parent=this.$element.closest('[data-toggle="buttons"]');if($parent.length){var $input=this.$element.find('input');if($input.prop('type')=='radio'){if($input.prop('checked'))changed=false;$parent.find('.active').removeClass('active');this.$element.addClass('active');}else{if($input.prop('type')=='checkbox'){if(($input.prop('checked'))!==this.$element.hasClass('active'))changed=false;this.$element.toggleClass('active');}}$input.prop('checked',this.$element.hasClass('active'));if(changed)$input.trigger('change');}else{this.$element.attr('aria-pressed',!this.$element.hasClass('active'));this.$element.toggleClass('active');}};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.button');var options=typeof option=='object'&&option;if(!data)$this.data('bs.button',(data=new Button(this,options)));if(option=='toggle')data.toggle();else{if(option)data.setState(option);}});}var old=$.fn.button;$.fn.button=Plugin;$.fn.button.Constructor=Button;$.fn.button.noConflict=function(){$.fn.button=old;return this;};$(document).on('click.bs.button.data-api','[data-toggle^="button"]',function(e){var $btn=$(e.target).closest('.btn');Plugin.call($btn,'toggle');if(!($(e.target).is('input[type="radio"], input[type="checkbox"]'))){e.preventDefault();if($btn.is('input,button'))$btn.trigger('focus');else $btn.find('input:visible,button:visible').first().trigger('focus');}}).on('focus.bs.button.data-api blur.bs.button.data-api','[data-toggle^="button"]',function(e){$(e.target).closest('.btn').toggleClass('focus',/^focus(in)?$/.test(e.type));});}(jQuery);+function($){'use strict';var Carousel=function(element,options){this.$element=$(element);this.$indicators=this.$element.find('.carousel-indicators');this.options=options;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on('keydown.bs.carousel',$.proxy(this.keydown,this));this.options.pause=='hover'&&!('ontouchstart' in document.documentElement)&&this.$element.on('mouseenter.bs.carousel',$.proxy(this.pause,this)).on('mouseleave.bs.carousel',$.proxy(this.cycle,this));};Carousel.VERSION='3.3.7';Carousel.TRANSITION_DURATION=600;Carousel.DEFAULTS={interval:5000,pause:'hover',wrap:true,keyboard:true};Carousel.prototype.keydown=function(e){if(/input|textarea/i.test(e.target.tagName))return;switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return;}e.preventDefault();};Carousel.prototype.cycle=function(e){e||(this.paused=false);this.interval&&clearInterval(this.interval);this.options.interval&&!this.paused&&(this.interval=setInterval($.proxy(this.next,this),this.options.interval));return this;};Carousel.prototype.getItemIndex=function(item){this.$items=item.parent().children('.item');return this.$items.index(item||this.$active);};Carousel.prototype.getItemForDirection=function(direction,active){var activeIndex=this.getItemIndex(active);var willWrap=(direction=='prev'&&activeIndex===0)||(direction=='next'&&activeIndex==(this.$items.length-1));if(willWrap&&!this.options.wrap)return active;var delta=direction=='prev'?-1:1;var itemIndex=(activeIndex+delta)%this.$items.length;return this.$items.eq(itemIndex);};Carousel.prototype.to=function(pos){var that=this;var activeIndex=this.getItemIndex(this.$active=this.$element.find('.item.active'));if(pos>(this.$items.length-1)||pos<0)return;if(this.sliding)return this.$element.one('slid.bs.carousel',function(){that.to(pos);});if(activeIndex==pos)return this.pause().cycle();return this.slide(pos>activeIndex?'next':'prev',this.$items.eq(pos));};Carousel.prototype.pause=function(e){e||(this.paused=true);if(this.$element.find('.next, .prev').length&&$.support.transition){this.$element.trigger($.support.transition.end);this.cycle(true);}this.interval=clearInterval(this.interval);return this;};Carousel.prototype.next=function(){if(this.sliding)return;return this.slide('next');};Carousel.prototype.prev=function(){if(this.sliding)return;return this.slide('prev');};Carousel.prototype.slide=function(type,next){var $active=this.$element.find('.item.active');var $next=next||this.getItemForDirection(type,$active);var isCycling=this.interval;var direction=type=='next'?'left':'right';var that=this;if($next.hasClass('active'))return (this.sliding=false);var relatedTarget=$next[0];var slideEvent=$.Event('slide.bs.carousel',{relatedTarget,direction});this.$element.trigger(slideEvent);if(slideEvent.isDefaultPrevented())return;this.sliding=true;isCycling&&this.pause();if(this.$indicators.length){this.$indicators.find('.active').removeClass('active');var $nextIndicator=$(this.$indicators.children()[this.getItemIndex($next)]);$nextIndicator&&$nextIndicator.addClass('active');}var slidEvent=$.Event('slid.bs.carousel',{relatedTarget,direction});
291if($.support.transition&&this.$element.hasClass('slide')){$next.addClass(type);$next[0].offsetWidth;$active.addClass(direction);$next.addClass(direction);$active.one('bsTransitionEnd',function(){$next.removeClass([type,direction].join(' ')).addClass('active');$active.removeClass(['active',direction].join(' '));that.sliding=false;setTimeout(function(){that.$element.trigger(slidEvent);},0);}).emulateTransitionEnd(Carousel.TRANSITION_DURATION);}else{$active.removeClass('active');$next.addClass('active');this.sliding=false;this.$element.trigger(slidEvent);}isCycling&&this.cycle();return this;};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.carousel');var options=$.extend({},Carousel.DEFAULTS,$this.data(),typeof option=='object'&&option);var action=typeof option=='string'?option:options.slide;if(!data)$this.data('bs.carousel',(data=new Carousel(this,options)));if(typeof option=='number')data.to(option);else if(action)data[action]();else{if(options.interval)data.pause().cycle();}});}var old=$.fn.carousel;$.fn.carousel=Plugin;$.fn.carousel.Constructor=Carousel;$.fn.carousel.noConflict=function(){$.fn.carousel=old;return this;};var clickHandler=function(e){var href;var $this=$(this);var $target=$($this.attr('data-target')||(href=$this.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,''));if(!$target.hasClass('carousel'))return;var options=$.extend({},$target.data(),$this.data());var slideIndex=$this.attr('data-slide-to');if(slideIndex)options.interval=false;Plugin.call($target,options);if(slideIndex)$target.data('bs.carousel').to(slideIndex);e.preventDefault();};$(document).on('click.bs.carousel.data-api','[data-slide]',clickHandler).on('click.bs.carousel.data-api','[data-slide-to]',clickHandler);$(window).on('load',function(){$('[data-ride="carousel"]').each(function(){var $carousel=$(this);Plugin.call($carousel,$carousel.data());});});}(jQuery);+function($){'use strict';var Collapse=function(element,options){this.$element=$(element);this.options=$.extend({},Collapse.DEFAULTS,options);this.$trigger=$('[data-toggle="collapse"][href="#'+element.id+'"],'+'[data-toggle="collapse"][data-target="#'+element.id+'"]');this.transitioning=null;if(this.options.parent)this.$parent=this.getParent();else this.addAriaAndCollapsedClass(this.$element,this.$trigger);if(this.options.toggle)this.toggle();};Collapse.VERSION='3.3.7';Collapse.TRANSITION_DURATION=350;Collapse.DEFAULTS={toggle:true};Collapse.prototype.dimension=function(){var hasWidth=this.$element.hasClass('width');return hasWidth?'width':'height';};Collapse.prototype.show=function(){if(this.transitioning||this.$element.hasClass('in'))return;var activesData;var actives=this.$parent&&this.$parent.children('.panel').children('.in, .collapsing');if(actives&&actives.length){activesData=actives.data('bs.collapse');if(activesData&&activesData.transitioning)return;}var startEvent=$.Event('show.bs.collapse');this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;if(actives&&actives.length){Plugin.call(actives,'hide');activesData||actives.data('bs.collapse',null);}var dimension=this.dimension();this.$element.removeClass('collapse').addClass('collapsing')[dimension](0).attr('aria-expanded',true);this.$trigger.removeClass('collapsed').attr('aria-expanded',true);this.transitioning=1;var complete=function(){this.$element.removeClass('collapsing').addClass('collapse in')[dimension]('');this.transitioning=0;this.$element.trigger('shown.bs.collapse');};if(!$.support.transition)return complete.call(this);var scrollSize=$.camelCase(['scroll',dimension].join('-'));this.$element.one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize]);};Collapse.prototype.hide=function(){if(this.transitioning||!this.$element.hasClass('in'))return;var startEvent=$.Event('hide.bs.collapse');this.$element.trigger(startEvent);if(startEvent.isDefaultPrevented())return;var dimension=this.dimension();this.$element[dimension](this.$element[dimension]())[0].offsetHeight;this.$element.addClass('collapsing').removeClass('collapse in').attr('aria-expanded',false);this.$trigger.addClass('collapsed').attr('aria-expanded',false);this.transitioning=1;var complete=function(){this.transitioning=0;this.$element.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse');};if(!$.support.transition)return complete.call(this);this.$element[dimension](0).one('bsTransitionEnd',$.proxy(complete,this)).emulateTransitionEnd(Collapse.TRANSITION_DURATION);};Collapse.prototype.toggle=function(){this[this.$element.hasClass('in')?'hide':'show']();};Collapse.prototype.getParent=function(){return $(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each($.proxy(function(i,element){var $element=$(element);this.addAriaAndCollapsedClass(getTargetFromTrigger($element),$element);},this)).end();};Collapse.prototype.addAriaAndCollapsedClass=function($element,$trigger){var isOpen=$element.hasClass('in');$element.attr('aria-expanded',isOpen);$trigger.toggleClass('collapsed',!isOpen).attr('aria-expanded',isOpen);};function getTargetFromTrigger($trigger){var href;var target=$trigger.attr('data-target')||(href=$trigger.attr('href'))&&href.replace(/.*(?=#[^\s]+$)/,'');return $(target);}function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.collapse');var options=$.extend({},Collapse.DEFAULTS,$this.data(),typeof option=='object'&&option);if(!data&&options.toggle&&/show|hide/.test(option))options.toggle=false;if(!data)$this.data('bs.collapse',(data=new Collapse(this,options)));if(typeof option=='string')data[option]();});}var old=$.fn.collapse;$.fn.collapse=Plugin;$.fn.collapse.Constructor=Collapse;$.fn.collapse.noConflict=function(){$.fn.collapse=old;return this;};$(document).on('click.bs.collapse.data-api','[data-toggle="collapse"]',function(e){var $this=$(this);if(!$this.attr('data-target'))e.preventDefault();var $target=getTargetFromTrigger($this);var data=$target.data('bs.collapse');var option=data?'toggle':$this.data();Plugin.call($target,option);});}(jQuery);+function($){'use strict';var backdrop='.dropdown-backdrop';var toggle='[data-toggle="dropdown"]';var Dropdown=function(element){$(element).on('click.bs.dropdown',this.toggle);};Dropdown.VERSION='3.3.7';function getParent($this){var selector=$this.attr('data-target');if(!selector){selector=$this.attr('href');selector=selector&&/#[A-Za-z]/.test(selector)&&selector.replace(/.*(?=#[^\s]*$)/,'');}var $parent=selector&&$(selector);return $parent&&$parent.length?$parent:$this.parent();}function clearMenus(e){if(e&&e.which===3)return;$(backdrop).remove();$(toggle).each(function(){var $this=$(this);var $parent=getParent($this);var relatedTarget={relatedTarget:this};if(!$parent.hasClass('open'))return;if(e&&e.type=='click'&&/input|textarea/i.test(e.target.tagName)&&$.contains($parent[0],e.target))return;$parent.trigger(e=$.Event('hide.bs.dropdown',relatedTarget));if(e.isDefaultPrevented())return;$this.attr('aria-expanded','false');$parent.removeClass('open').trigger($.Event('hidden.bs.dropdown',relatedTarget));});}Dropdown.prototype.toggle=function(e){var $this=$(this);if($this.is('.disabled, :disabled'))return;var $parent=getParent($this);var isActive=$parent.hasClass('open');clearMenus();if(!isActive){if('ontouchstart' in document.documentElement&&!$parent.closest('.navbar-nav').length)$(document.createElement('div')).addClass('dropdown-backdrop').insertAfter($(this)).on('click',clearMenus);var relatedTarget={relatedTarget:this};$parent.trigger(e=$.Event('show.bs.dropdown',relatedTarget));if(e.isDefaultPrevented())return;$this.trigger('focus').attr('aria-expanded','true');$parent.toggleClass('open').trigger($.Event('shown.bs.dropdown',relatedTarget));}return false;};Dropdown.prototype.keydown=function(e){if(!/(38|40|27|32)/.test(e.which)||/input|textarea/i.test(e.target.tagName))return;var $this=$(this);e.preventDefault();e.stopPropagation();if($this.is('.disabled, :disabled'))return;var $parent=getParent($this);var isActive=$parent.hasClass('open');if(!isActive&&e.which!=27||isActive&&e.which==27){if(e.which==27)$parent.find(toggle).trigger('focus');return $this.trigger('click');}var desc=' li:not(.disabled):visible a';var $items=$parent.find('.dropdown-menu'+desc);if(!$items.length)return;var index=$items.index(e.target);if(e.which==38&&index>0)index--;if(e.which==40&&index<$items.length-1)index++;
291if(!~index)index=0;$items.eq(index).trigger('focus');};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.dropdown');if(!data)$this.data('bs.dropdown',(data=new Dropdown(this)));if(typeof option=='string')data[option].call($this);});}var old=$.fn.dropdown;$.fn.dropdown=Plugin;$.fn.dropdown.Constructor=Dropdown;$.fn.dropdown.noConflict=function(){$.fn.dropdown=old;return this;};$(document).on('click.bs.dropdown.data-api',clearMenus).on('click.bs.dropdown.data-api','.dropdown form',function(e){e.stopPropagation();}).on('click.bs.dropdown.data-api',toggle,Dropdown.prototype.toggle).on('keydown.bs.dropdown.data-api',toggle,Dropdown.prototype.keydown).on('keydown.bs.dropdown.data-api','.dropdown-menu',Dropdown.prototype.keydown);}(jQuery);+function($){'use strict';var Modal=function(element,options){this.options=options;this.$body=$(document.body);this.$element=$(element);this.$dialog=this.$element.find('.modal-dialog');this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=false;if(this.options.remote)this.$element.find('.modal-content').load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal');},this));};Modal.VERSION='3.3.7';Modal.TRANSITION_DURATION=300;Modal.BACKDROP_TRANSITION_DURATION=150;Modal.DEFAULTS={backdrop:true,keyboard:true,show:true};Modal.prototype.toggle=function(_relatedTarget){return this.isShown?this.hide():this.show(_relatedTarget);};Modal.prototype.show=function(_relatedTarget){var that=this;var e=$.Event('show.bs.modal',{relatedTarget:_relatedTarget});this.$element.trigger(e);if(this.isShown||e.isDefaultPrevented())return;this.isShown=true;this.checkScrollbar();this.setScrollbar();this.$body.addClass('modal-open');this.escape();this.resize();this.$element.on('click.dismiss.bs.modal','[data-dismiss="modal"]',$.proxy(this.hide,this));this.$dialog.on('mousedown.dismiss.bs.modal',function(){that.$element.one('mouseup.dismiss.bs.modal',function(e){if($(e.target).is(that.$element))that.ignoreBackdropClick=true;});});this.backdrop(function(){var transition=$.support.transition&&that.$element.hasClass('fade');if(!that.$element.parent().length)that.$element.appendTo(that.$body);that.$element.show().scrollTop(0);that.adjustDialog();if(transition)that.$element[0].offsetWidth;that.$element.addClass('in');that.enforceFocus();var e=$.Event('shown.bs.modal',{relatedTarget:_relatedTarget});transition?that.$dialog.one('bsTransitionEnd',function(){that.$element.trigger('focus').trigger(e);}).emulateTransitionEnd(Modal.TRANSITION_DURATION):that.$element.trigger('focus').trigger(e);});};Modal.prototype.hide=function(e){if(e)e.preventDefault();e=$.Event('hide.bs.modal');this.$element.trigger(e);if(!this.isShown||e.isDefaultPrevented())return;this.isShown=false;this.escape();this.resize();$(document).off('focusin.bs.modal');this.$element.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal');this.$dialog.off('mousedown.dismiss.bs.modal');$.support.transition&&this.$element.hasClass('fade')?this.$element.one('bsTransitionEnd',$.proxy(this.hideModal,this)).emulateTransitionEnd(Modal.TRANSITION_DURATION):this.hideModal();};Modal.prototype.enforceFocus=function(){$(document).off('focusin.bs.modal').on('focusin.bs.modal',$.proxy(function(e){if(document!==e.target&&this.$element[0]!==e.target&&!this.$element.has(e.target).length)this.$element.trigger('focus');},this));};Modal.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on('keydown.dismiss.bs.modal',$.proxy(function(e){e.which==27&&this.hide();},this));else{if(!this.isShown)this.$element.off('keydown.dismiss.bs.modal');}};Modal.prototype.resize=function(){if(this.isShown)$(window).on('resize.bs.modal',$.proxy(this.handleUpdate,this));else $(window).off('resize.bs.modal');};Modal.prototype.hideModal=function(){var that=this;this.$element.hide();this.backdrop(function(){that.$body.removeClass('modal-open');that.resetAdjustments();that.resetScrollbar();that.$element.trigger('hidden.bs.modal');});};Modal.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null;};Modal.prototype.backdrop=function(callback){var that=this;var animate=this.$element.hasClass('fade')?'fade':'';if(this.isShown&&this.options.backdrop){var doAnimate=$.support.transition&&animate;this.$backdrop=$(document.createElement('div')).addClass('modal-backdrop '+animate).appendTo(this.$body);this.$element.on('click.dismiss.bs.modal',$.proxy(function(e){if(this.ignoreBackdropClick){this.ignoreBackdropClick=false;return;}if(e.target!==e.currentTarget)return;this.options.backdrop=='static'?this.$element[0].focus():this.hide();},this));if(doAnimate)this.$backdrop[0].offsetWidth;this.$backdrop.addClass('in');if(!callback)return;doAnimate?this.$backdrop.one('bsTransitionEnd',callback).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callback();}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass('in');var callbackRemove=function(){that.removeBackdrop();callback&&callback();};$.support.transition&&this.$element.hasClass('fade')?this.$backdrop.one('bsTransitionEnd',callbackRemove).emulateTransitionEnd(Modal.BACKDROP_TRANSITION_DURATION):callbackRemove();}else{if(callback)callback();}};Modal.prototype.handleUpdate=function(){this.adjustDialog();};Modal.prototype.adjustDialog=function(){var modalIsOverflowing=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&modalIsOverflowing?this.scrollbarWidth:'',paddingRight:this.bodyIsOverflowing&&!modalIsOverflowing?this.scrollbarWidth:''});};Modal.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:'',paddingRight:''});};Modal.prototype.checkScrollbar=function(){var fullWindowWidth=window.innerWidth;if(!fullWindowWidth){var documentElementRect=document.documentElement.getBoundingClientRect();fullWindowWidth=documentElementRect.right-Math.abs(documentElementRect.left);}this.bodyIsOverflowing=document.body.clientWidth<fullWindowWidth;this.scrollbarWidth=this.measureScrollbar();};Modal.prototype.setScrollbar=function(){var bodyPad=parseInt((this.$body.css('padding-right')||0),10);this.originalBodyPad=document.body.style.paddingRight||'';if(this.bodyIsOverflowing)this.$body.css('padding-right',bodyPad+this.scrollbarWidth);};Modal.prototype.resetScrollbar=function(){this.$body.css('padding-right',this.originalBodyPad);};Modal.prototype.measureScrollbar=function(){var scrollDiv=document.createElement('div');scrollDiv.className='modal-scrollbar-measure';this.$body.append(scrollDiv);var scrollbarWidth=scrollDiv.offsetWidth-scrollDiv.clientWidth;this.$body[0].removeChild(scrollDiv);return scrollbarWidth;};function Plugin(option,_relatedTarget){return this.each(function(){var $this=$(this);var data=$this.data('bs.modal');var options=$.extend({},Modal.DEFAULTS,$this.data(),typeof option=='object'&&option);if(!data)$this.data('bs.modal',(data=new Modal(this,options)));if(typeof option=='string')data[option](_relatedTarget);else{if(options.show)data.show(_relatedTarget);}});}var old=$.fn.modal;$.fn.modal=Plugin;$.fn.modal.Constructor=Modal;$.fn.modal.noConflict=function(){$.fn.modal=old;return this;};$(document).on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this);var href=$this.attr('href');var $target=$($this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,'')));var option=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data());if($this.is('a'))e.preventDefault();$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return;$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus');});});Plugin.call($target,option,this);});}(jQuery);+function($){'use strict';var Tooltip=function(element,options){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init('tooltip',element,options);};Tooltip.VERSION='3.3.7';Tooltip.TRANSITION_DURATION=150;Tooltip.DEFAULTS={animation:true,placement:'top',selector:false,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:false,container:false,viewport:{selector:'body',padding:0}};Tooltip.prototype.init=function(type,element,options){this.enabled=true;this.type=type;this.$element=$(element);this.options=this.getOptions(options);this.$viewport=this.options.viewport&&$($.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):(this.options.viewport.selector||this.options.viewport));this.inState={click:false,hover:false,focus:false};if(this.$element[0] instanceof document.constructor&&!this.options.selector)throw new Error('`selector` option must be specified when initializing '+this.type+' on the window.document object!');var triggers=this.options.trigger.split(' ');for(var i=triggers.length;i--;){var trigger=triggers[i];if(trigger=='click')this.$element.on('click.'+this.type,this.options.selector,$.proxy(this.toggle,this));else{if(trigger!='manual'){var eventIn=trigger=='hover'?'mouseenter':'focusin';var eventOut=trigger=='hover'?'mouseleave':'focusout';this.$element.on(eventIn+'.'+this.type,this.options.selector,$.proxy(this.enter,this));this.$element.on(eventOut+'.'+this.type,this.options.selector,$.proxy(this.leave,this));}}}this.options.selector?(this._options=$.extend({},this.options,{trigger:'manual',selector:''})):this.fixTitle();};Tooltip.prototype.getDefaults=function(){return Tooltip.DEFAULTS;};Tooltip.prototype.getOptions=function(options){options=$.extend({},this.getDefaults(),this.$element.data(),options);if(options.delay&&typeof options.delay=='number')options.delay={show:options.delay,hide:options.delay};return options;};Tooltip.prototype.getDelegateOptions=function(){var options={};var defaults=this.getDefaults();this._options&&$.each(this._options,function(key,value){if(defaults[key]!=value)options[key]=value;});return options;};Tooltip.prototype.enter=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type);if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions());$(obj.currentTarget).data('bs.'+this.type,self);}if(obj instanceof $.Event)self.inState[obj.type=='focusin'?'focu
291s':'hover']=true;if(self.tip().hasClass('in')||self.hoverState=='in'){self.hoverState='in';return;}clearTimeout(self.timeout);self.hoverState='in';if(!self.options.delay||!self.options.delay.show)return self.show();self.timeout=setTimeout(function(){if(self.hoverState=='in')self.show();},self.options.delay.show);};Tooltip.prototype.isInStateTrue=function(){for(var key in this.inState)if(this.inState[key])return true;return false;};Tooltip.prototype.leave=function(obj){var self=obj instanceof this.constructor?obj:$(obj.currentTarget).data('bs.'+this.type);if(!self){self=new this.constructor(obj.currentTarget,this.getDelegateOptions());$(obj.currentTarget).data('bs.'+this.type,self);}if(obj instanceof $.Event)self.inState[obj.type=='focusout'?'focus':'hover']=false;if(self.isInStateTrue())return;clearTimeout(self.timeout);self.hoverState='out';if(!self.options.delay||!self.options.delay.hide)return self.hide();self.timeout=setTimeout(function(){if(self.hoverState=='out')self.hide();},self.options.delay.hide);};Tooltip.prototype.show=function(){var e=$.Event('show.bs.'+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var inDom=$.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!inDom)return;var that=this;var $tip=this.tip();var tipId=this.getUID(this.type);this.setContent();$tip.attr('id',tipId);this.$element.attr('aria-describedby',tipId);if(this.options.animation)$tip.addClass('fade');var placement=typeof this.options.placement=='function'?this.options.placement.call(this,$tip[0],this.$element[0]):this.options.placement;var autoToken=/\s?auto?\s?/i;var autoPlace=autoToken.test(placement);if(autoPlace)placement=placement.replace(autoToken,'')||'top';$tip.detach().css({top:0,left:0,display:'block'}).addClass(placement).data('bs.'+this.type,this);this.options.container?$tip.appendTo(this.options.container):$tip.insertAfter(this.$element);this.$element.trigger('inserted.bs.'+this.type);var pos=this.getPosition();var actualWidth=$tip[0].offsetWidth;var actualHeight=$tip[0].offsetHeight;if(autoPlace){var orgPlacement=placement;var viewportDim=this.getPosition(this.$viewport);placement=placement=='bottom'&&pos.bottom+actualHeight>viewportDim.bottom?'top':placement=='top'&&pos.top-actualHeight<viewportDim.top?'bottom':placement=='right'&&pos.right+actualWidth>viewportDim.width?'left':placement=='left'&&pos.left-actualWidth<viewportDim.left?'right':placement;$tip.removeClass(orgPlacement).addClass(placement);}var calculatedOffset=this.getCalculatedOffset(placement,pos,actualWidth,actualHeight);this.applyPlacement(calculatedOffset,placement);var complete=function(){var prevHoverState=that.hoverState;that.$element.trigger('shown.bs.'+that.type);that.hoverState=null;if(prevHoverState=='out')that.leave(that);};$.support.transition&&this.$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete();}};Tooltip.prototype.applyPlacement=function(offset,placement){var $tip=this.tip();var width=$tip[0].offsetWidth;var height=$tip[0].offsetHeight;var marginTop=parseInt($tip.css('margin-top'),10);var marginLeft=parseInt($tip.css('margin-left'),10);if(isNaN(marginTop))marginTop=0;if(isNaN(marginLeft))marginLeft=0;offset.top+=marginTop;offset.left+=marginLeft;$.offset.setOffset($tip[0],$.extend({using:function(props){$tip.css({top:Math.round(props.top),left:Math.round(props.left)});}},offset),0);$tip.addClass('in');var actualWidth=$tip[0].offsetWidth;var actualHeight=$tip[0].offsetHeight;if(placement=='top'&&actualHeight!=height)offset.top=offset.top+height-actualHeight;var delta=this.getViewportAdjustedDelta(placement,offset,actualWidth,actualHeight);if(delta.left)offset.left+=delta.left;else offset.top+=delta.top;var isVertical=/top|bottom/.test(placement);var arrowDelta=isVertical?delta.left*2-width+actualWidth:delta.top*2-height+actualHeight;var arrowOffsetPosition=isVertical?'offsetWidth':'offsetHeight';$tip.offset(offset);this.replaceArrow(arrowDelta,$tip[0][arrowOffsetPosition],isVertical);};Tooltip.prototype.replaceArrow=function(delta,dimension,isVertical){this.arrow().css(isVertical?'left':'top',50*(1-delta/dimension)+'%').css(isVertical?'top':'left','');};Tooltip.prototype.setContent=function(){var $tip=this.tip();var title=this.getTitle();$tip.find('.tooltip-inner')[this.options.html?'html':'text'](title);$tip.removeClass('fade in top bottom left right');};Tooltip.prototype.hide=function(callback){var that=this;var $tip=$(this.$tip);var e=$.Event('hide.bs.'+this.type);function complete(){if(that.hoverState!='in')$tip.detach();if(that.$element)that.$element.removeAttr('aria-describedby').trigger('hidden.bs.'+that.type);callback&&callback();}this.$element.trigger(e);if(e.isDefaultPrevented())return;$tip.removeClass('in');$.support.transition&&$tip.hasClass('fade')?$tip.one('bsTransitionEnd',complete).emulateTransitionEnd(Tooltip.TRANSITION_DURATION):complete();this.hoverState=null;return this;};Tooltip.prototype.fixTitle=function(){var $e=this.$element;if($e.attr('title')||typeof $e.attr('data-original-title')!='string')$e.attr('data-original-title',$e.attr('title')||'').attr('title','');};Tooltip.prototype.hasContent=function(){return this.getTitle();};Tooltip.prototype.getPosition=function($element){$element=$element||this.$element;var el=$element[0];var isBody=el.tagName=='BODY';var elRect=el.getBoundingClientRect();if(elRect.width==null)elRect=$.extend({},elRect,{width:elRect.right-elRect.left,height:elRect.bottom-elRect.top});
291var isSvg=window.SVGElement&&el instanceof window.SVGElement;var elOffset=isBody?{top:0,left:0}:(isSvg?null:$element.offset());var scroll={scroll:isBody?document.documentElement.scrollTop||document.body.scrollTop:$element.scrollTop()};var outerDims=isBody?{width:$(window).width(),height:$(window).height()}:null;return $.extend({},elRect,scroll,outerDims,elOffset);};Tooltip.prototype.getCalculatedOffset=function(placement,pos,actualWidth,actualHeight){return placement=='bottom'?{top:pos.top+pos.height,left:pos.left+pos.width/2-actualWidth/2}:placement=='top'?{top:pos.top-actualHeight,left:pos.left+pos.width/2-actualWidth/2}:placement=='left'?{top:pos.top+pos.height/2-actualHeight/2,left:pos.left-actualWidth}:{top:pos.top+pos.height/2-actualHeight/2,left:pos.left+pos.width};};Tooltip.prototype.getViewportAdjustedDelta=function(placement,pos,actualWidth,actualHeight){var delta={top:0,left:0};if(!this.$viewport)return delta;var viewportPadding=this.options.viewport&&this.options.viewport.padding||0;var viewportDimensions=this.getPosition(this.$viewport);if(/right|left/.test(placement)){var topEdgeOffset=pos.top-viewportPadding-viewportDimensions.scroll;var bottomEdgeOffset=pos.top+viewportPadding-viewportDimensions.scroll+actualHeight;if(topEdgeOffset<viewportDimensions.top)delta.top=viewportDimensions.top-topEdgeOffset;else{if(bottomEdgeOffset>viewportDimensions.top+viewportDimensions.height)delta.top=viewportDimensions.top+viewportDimensions.height-bottomEdgeOffset;}}else{var leftEdgeOffset=pos.left-viewportPadding;var rightEdgeOffset=pos.left+viewportPadding+actualWidth;if(leftEdgeOffset<viewportDimensions.left)delta.left=viewportDimensions.left-leftEdgeOffset;else{if(rightEdgeOffset>viewportDimensions.right)delta.left=viewportDimensions.left+viewportDimensions.width-rightEdgeOffset;}}return delta;};Tooltip.prototype.getTitle=function(){var title;var $e=this.$element;var o=this.options;title=$e.attr('data-original-title')||(typeof o.title=='function'?o.title.call($e[0]):o.title);return title;};Tooltip.prototype.getUID=function(prefix){do prefix+=~~(Math.random()*1000000);while(document.getElementById(prefix));return prefix;};Tooltip.prototype.tip=function(){if(!this.$tip){this.$tip=$(this.options.template);if(this.$tip.length!=1)throw new Error(this.type+' `template` option must consist of exactly 1 top-level element!');}return this.$tip;};Tooltip.prototype.arrow=function(){return (this.$arrow=this.$arrow||this.tip().find('.tooltip-arrow'));};Tooltip.prototype.enable=function(){this.enabled=true;};Tooltip.prototype.disable=function(){this.enabled=false;};Tooltip.prototype.toggleEnabled=function(){this.enabled=!this.enabled;};Tooltip.prototype.toggle=function(e){var self=this;if(e){self=$(e.currentTarget).data('bs.'+this.type);if(!self){self=new this.constructor(e.currentTarget,this.getDelegateOptions());$(e.currentTarget).data('bs.'+this.type,self);}}if(e){self.inState.click=!self.inState.click;if(self.isInStateTrue())self.enter(self);else self.leave(self);}else self.tip().hasClass('in')?self.leave(self):self.enter(self);};Tooltip.prototype.destroy=function(){var that=this;clearTimeout(this.timeout);this.hide(function(){that.$element.off('.'+that.type).removeData('bs.'+that.type);if(that.$tip)that.$tip.detach();that.$tip=null;that.$arrow=null;that.$viewport=null;that.$element=null;});};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tooltip');var options=typeof option=='object'&&option;if(!data&&/destroy|hide/.test(option))return;if(!data)$this.data('bs.tooltip',(data=new Tooltip(this,options)));if(typeof option=='string')data[option]();});}var old=$.fn.tooltip;$.fn.tooltip=Plugin;$.fn.tooltip.Constructor=Tooltip;$.fn.tooltip.noConflict=function(){$.fn.tooltip=old;return this;};}(jQuery);+function($){'use strict';var Popover=function(element,options){this.init('popover',element,options);};if(!$.fn.tooltip)throw new Error('Popover requires tooltip.js');Popover.VERSION='3.3.7';Popover.DEFAULTS=$.extend({},$.fn.tooltip.Constructor.DEFAULTS,{placement:'right',trigger:'click',content:'',template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'});Popover.prototype=$.extend({},$.fn.tooltip.Constructor.prototype);Popover.prototype.constructor=Popover;Popover.prototype.getDefaults=function(){return Popover.DEFAULTS;};Popover.prototype.setContent=function(){var $tip=this.tip();var title=this.getTitle();var content=this.getContent();$tip.find('.popover-title')[this.options.html?'html':'text'](title);$tip.find('.popover-content').children().detach().end()[this.options.html?(typeof content=='string'?'html':'append'):'text'](content);$tip.removeClass('fade top bottom left right in');if(!$tip.find('.popover-title').html())$tip.find('.popover-title').hide();};Popover.prototype.hasContent=function(){return this.getTitle()||this.getContent();};Popover.prototype.getContent=function(){var $e=this.$element;var o=this.options;return $e.attr('data-content')||(typeof o.content=='function'?o.content.call($e[0]):o.content);};Popover.prototype.arrow=function(){return (this.$arrow=this.$arrow||this.tip().find('.arrow'));};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.popover');var options=typeof option=='object'&&option;if(!data&&/destroy|hide/.test(option))return;if(!data)$this.data('bs.popover',(data=new Popover(this,options)));if(typeof option=='string')data[option]();});}var old=$.fn.popover;$.fn.popover=Plugin;$.fn.popover.Constructor=Popover;$.fn.popover.noConflict=function(){$.fn.popover=old;return this;};}(jQuery);+function($){'use strict';function ScrollSpy(element,options){this.$body=$(document.body);this.$scrollElement=$(element).is(document.body)?$(window):$(element);this.options=$.extend({},ScrollSpy.DEFAULTS,options);this.selector=(this.options.target||'')+' .nav li > a';this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on('scroll.bs.scrollspy',$.proxy(this.process,this));this.refresh();this.process();}ScrollSpy.VERSION='3.3.7';ScrollSpy.DEFAULTS={offset:10};ScrollSpy.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight);};ScrollSpy.prototype.refresh=function(){var that=this;var offsetMethod='offset';var offsetBase=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();if(!$.isWindow(this.$scrollElement[0])){offsetMethod='position';offsetBase=this.$scrollElement.scrollTop();}this.$body.find(this.selector).map(function(){var $el=$(this);var href=$el.data('target')||$el.attr('href');var $href=/^#./.test(href)&&$(href);return ($href&&$href.length&&$href.is(':visible')&&[[$href[offsetMethod]().top+offsetBase,href]]
291)||null;}).sort(function(a,b){return a[0]-b[0];}).each(function(){that.offsets.push(this[0]);that.targets.push(this[1]);});};ScrollSpy.prototype.process=function(){var scrollTop=this.$scrollElement.scrollTop()+this.options.offset;var scrollHeight=this.getScrollHeight();var maxScroll=this.options.offset+scrollHeight-this.$scrollElement.height();var offsets=this.offsets;var targets=this.targets;var activeTarget=this.activeTarget;var i;if(this.scrollHeight!=scrollHeight)this.refresh();if(scrollTop>=maxScroll)return activeTarget!=(i=targets[targets.length-1])&&this.activate(i);if(activeTarget&&scrollTop<offsets[0]){this.activeTarget=null;return this.clear();}for(i=offsets.length;i--;)activeTarget!=targets[i]&&scrollTop>=offsets[i]&&(offsets[i+1]===undefined||scrollTop<offsets[i+1])&&this.activate(targets[i]);};ScrollSpy.prototype.activate=function(target){this.activeTarget=target;this.clear();var selector=this.selector+'[data-target="'+target+'"],'+this.selector+'[href="'+target+'"]';var active=$(selector).parents('li').addClass('active');if(active.parent('.dropdown-menu').length)active=active.closest('li.dropdown').addClass('active');active.trigger('activate.bs.scrollspy');};ScrollSpy.prototype.clear=function(){$(this.selector).parentsUntil(this.options.target,'.active').removeClass('active');};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.scrollspy');var options=typeof option=='object'&&option;if(!data)$this.data('bs.scrollspy',(data=new ScrollSpy(this,options)));if(typeof option=='string')data[option]();});}var old=$.fn.scrollspy;$.fn.scrollspy=Plugin;$.fn.scrollspy.Constructor=ScrollSpy;$.fn.scrollspy.noConflict=function(){$.fn.scrollspy=old;return this;};$(window).on('load.bs.scrollspy.data-api',function(){$('[data-spy="scroll"]').each(function(){var $spy=$(this);Plugin.call($spy,$spy.data());});});}(jQuery);+function($){'use strict';var Tab=function(element){this.element=$(element);};Tab.VERSION='3.3.7';Tab.TRANSITION_DURATION=150;Tab.prototype.show=function(){var $this=this.element;var $ul=$this.closest('ul:not(.dropdown-menu)');var selector=$this.data('target');if(!selector){selector=$this.attr('href');selector=selector&&selector.replace(/.*(?=#[^\s]*$)/,'');}if($this.parent('li').hasClass('active'))return;var $previous=$ul.find('.active:last a');var hideEvent=$.Event('hide.bs.tab',{relatedTarget:$this[0]});var showEvent=$.Event('show.bs.tab',{relatedTarget:$previous[0]});$previous.trigger(hideEvent);$this.trigger(showEvent);if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented())return;var $target=$(selector);this.activate($this.closest('li'),$ul);this.activate($target,$target.parent(),function(){$previous.trigger({type:'hidden.bs.tab',relatedTarget:$this[0]});$this.trigger({type:'shown.bs.tab',relatedTarget:$previous[0]});});};Tab.prototype.activate=function(element,container,callback){var $active=container.find('> .active');var transition=callback&&$.support.transition&&($active.length&&$active.hasClass('fade')||!!container.find('> .fade').length);function next(){$active.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',false);element.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded',true);if(transition){element[0].offsetWidth;element.addClass('in');}else element.removeClass('fade');if(element.parent('.dropdown-menu').length)element.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded',true);callback&&callback();}$active.length&&transition?$active.one('bsTransitionEnd',next).emulateTransitionEnd(Tab.TRANSITION_DURATION):next();$active.removeClass('in');};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tab');if(!data)$this.data('bs.tab',(data=new Tab(this)));if(typeof option=='string')data[option]();});}var old=$.fn.tab;$.fn.tab=Plugin;$.fn.tab.Constructor=Tab;$.fn.tab.noConflict=function(){$.fn.tab=old;return this;};var clickHandler=function(e){e.preventDefault();Plugin.call($(this),'show');};
291$(document).on('click.bs.tab.data-api','[data-toggle="tab"]',clickHandler).on('click.bs.tab.data-api','[data-toggle="pill"]',clickHandler);}(jQuery);+function($){'use strict';var Affix=function(element,options){this.options=$.extend({},Affix.DEFAULTS,options);this.$target=$(this.options.target).on('scroll.bs.affix.data-api',$.proxy(this.checkPosition,this)).on('click.bs.affix.data-api',$.proxy(this.checkPositionWithEventLoop,this));this.$element=$(element);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition();};Affix.VERSION='3.3.7';Affix.RESET='affix affix-top affix-bottom';Affix.DEFAULTS={offset:0,target:window};Affix.prototype.getState=function(scrollHeight,height,offsetTop,offsetBottom){var scrollTop=this.$target.scrollTop();var position=this.$element.offset();var targetHeight=this.$target.height();if(offsetTop!=null&&this.affixed=='top')return scrollTop<offsetTop?'top':false;if(this.affixed=='bottom'){if(offsetTop!=null)return (scrollTop+this.unpin<=position.top)?false:'bottom';return (scrollTop+targetHeight<=scrollHeight-offsetBottom)?false:'bottom';}var initializing=this.affixed==null;var colliderTop=initializing?scrollTop:position.top;var colliderHeight=initializing?targetHeight:height;if(offsetTop!=null&&scrollTop<=offsetTop)return 'top';if(offsetBottom!=null&&(colliderTop+colliderHeight>=scrollHeight-offsetBottom))return 'bottom';return false;};Affix.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(Affix.RESET).addClass('affix');var scrollTop=this.$target.scrollTop();var position=this.$element.offset();return (this.pinnedOffset=position.top-scrollTop);};Affix.prototype.checkPositionWithEventLoop=function(){setTimeout($.proxy(this.checkPosition,this),1);};Affix.prototype.checkPosition=function(){if(!this.$element.is(':visible'))return;var height=this.$element.height();var offset=this.options.offset;var offsetTop=offset.top;var offsetBottom=offset.bottom;var scrollHeight=Math.max($(document).height(),$(document.body).height());if(typeof offset!='object')offsetBottom=offsetTop=offset;if(typeof offsetTop=='function')offsetTop=offset.top(this.$element);if(typeof offsetBottom=='function')offsetBottom=offset.bottom(this.$element);var affix=this.getState(scrollHeight,height,offsetTop,offsetBottom);if(this.affixed!=affix){if(this.unpin!=null)this.$element.css('top','');var affixType='affix'+(affix?'-'+affix:'');var e=$.Event(affixType+'.bs.affix');this.$element.trigger(e);if(e.isDefaultPrevented())return;this.affixed=affix;this.unpin=affix=='bottom'?this.getPinnedOffset():null;this.$element.removeClass(Affix.RESET).addClass(affixType).trigger(affixType.replace('affix','affixed')+'.bs.affix');}if(affix=='bottom')this.$element.offset({top:scrollHeight-height-offsetBottom});};function Plugin(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.affix');var options=typeof option=='object'&&option;if(!data)$this.data('bs.affix',(data=new Affix(this,options)));if(typeof option=='string')data[option]();});}var old=$.fn.affix;$.fn.affix=Plugin;$.fn.affix.Constructor=Affix;$.fn.affix.noConflict=function(){$.fn.affix=old;return this;};$(window).on('load',function(){$('[data-spy="affix"]').each(function(){var $spy=$(this);var data=$spy.data();data.offset=data.offset||{};if(data.offsetBottom!=null)data.offset.bottom=data.offsetBottom;if(data.offsetTop!=null)data.offset.top=data.offsetTop;Plugin.call($spy,data);});});}(jQuery);; 292!function($){"use strict";var TabCollapse=function(el,options){this.options=options;this.$tabs=$(el);this._accordionVisible=false;this._initAccordion();this._checkStateOnResize();var that=this;setTimeout(function(){that.checkState();},0);};TabCollapse.DEFAULTS={accordionClass:'visible-xs',tabsClass:'hidden-xs',accordionTemplate:function(heading,groupId,parentId,active){return '<div class="panel panel-default">'+' <div class="panel-heading">'+' <h4 class="panel-title">'+' </h4>'+' </div>'+' <div id="'+groupId+'" class="panel-collapse collapse '+(active?'in':'')+'">'+' <div class="panel-body js-tabcollapse-panel-body">'+' </div>'+' </div>'+'</div>';}};TabCollapse.prototype.checkState=function(){if(this.$tabs.is(':visible')&&this._accordionVisible){this.showTabs();this._accordionVisible=false;}else{if(this.$accordion.is(':visible')&&!this._accordionVisible){this.showAccordion();this._accordionVisible=true;}}};TabCollapse.prototype.showTabs=function(){var view=this;this.$tabs.trigger($.Event('show-tabs.bs.tabcollapse'));var $panelHeadings=this.$accordion.find('.js-tabcollapse-panel-heading').detach();$panelHeadings.each(function(){var $panelHeading=$(this),$parentLi=$panelHeading.data('bs.tabcollapse.parentLi');var $oldHeading=view._panelHeadingToTabHeading($panelHeading);$parentLi.removeClass('active');if($parentLi.parent().hasClass('dropdown-menu')&&!$parentLi.siblings('li').hasClass('active'))$parentLi.parent().parent().removeClass('active');if(!$oldHeading.hasClass('collapsed')){$parentLi.addClass('active');if($parentLi.parent().hasClass('dropdown-menu'))$parentLi.parent().parent().addClass('active');}else $oldHeading.removeClass('collapsed');$parentLi.append($panelHeading);});if(!$('li').hasClass('active'))$('li').first().addClass('active');var $panelBodies=this.$accordion.find('.js-tabcollapse-panel-body');$panelBodies.each(function(){var $panelBody=$(this),$tabPane=$panelBody.data('bs.tabcollapse.tabpane');$tabPane.append($panelBody.contents().detach());});this.$accordion.html('');if(this.options.updateLinks){var $tabContents=this.getTabContentElement();$tabContents.find('[data-toggle-was="tab"], [data-toggle-was="pill"]').each(function(){var $el=$(this);var href=$el.attr('href').replace(/-collapse$/g,'');$el.attr({'data-toggle':$el.attr('data-toggle-was'),'data-toggle-was':'','data-
292parent':'',href});});}this.$tabs.trigger($.Event('shown-tabs.bs.tabcollapse'));};TabCollapse.prototype.getTabContentElement=function(){var $tabContents=$(this.options.tabContentSelector);if($tabContents.length===0)$tabContents=this.$tabs.siblings('.tab-content');return $tabContents;};TabCollapse.prototype.showAccordion=function(){this.$tabs.trigger($.Event('show-accordion.bs.tabcollapse'));var $headings=this.$tabs.find('li:not(.dropdown) [data-toggle="tab"], li:not(.dropdown) [data-toggle="pill"]'),view=this;$headings.each(function(){var $heading=$(this),$parentLi=$heading.parent();$heading.data('bs.tabcollapse.parentLi',$parentLi);view.$accordion.append(view._createAccordionGroup(view.$accordion.attr('id'),$heading.detach()));});if(this.options.updateLinks){var parentId=this.$accordion.attr('id');var $selector=this.$accordion.find('.js-tabcollapse-panel-body');$selector.find('[data-toggle="tab"], [data-toggle="pill"]').each(function(){var $el=$(this);var href=$el.attr('href')+'-collapse';$el.attr({'data-toggle-was':$el.attr('data-toggle'),'data-toggle':'collapse','data-parent':'#'+parentId,href});});}this.$tabs.trigger($.Event('shown-accordion.bs.tabcollapse'));};TabCollapse.prototype._panelHeadingToTabHeading=function($heading){var href=$heading.attr('href').replace(/-collapse$/g,'');$heading.attr({'data-toggle':'tab','href':href,'data-parent':''});return $heading;};TabCollapse.prototype._tabHeadingToPanelHeading=function($heading,groupId,parentId,active){$heading.addClass('js-tabcollapse-panel-heading '+(active?'':'collapsed'));$heading.attr({'data-toggle':'collapse','data-parent':'#'+parentId,'href':'#'+groupId});return $heading;};TabCollapse.prototype._checkStateOnResize=function(){var view=this;$(window).resize(function(){clearTimeout(view._resizeTimeout);view._resizeTimeout=setTimeout(function(){view.checkState();},100);});};TabCollapse.prototype._initAccordion=function(){var randomString=function(){var result="",possible="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(var i=0;i<5;i++)result+=possible.charAt(Math.floor(Math.random()*possible.length));return result;};var srcId=this.$tabs.attr('id'),accordionId=(srcId?srcId:randomString())+'-accordion';this.$accordion=$('<div class="panel-group '+this.options.accordionClass+'" id="'+accordionId+'"></div>');this.$tabs.after(this.$accordion);this.$tabs.addClass(this.options.tabsClass);this.getTabContentElement().addClass(this.options.tabsClass);};TabCollapse.prototype._createAccordionGroup=function(parentId,$heading){var tabSelector=$heading.attr('data-target'),active=$heading.data('bs.tabcollapse.parentLi').is('.active');if(!tabSelector){tabSelector=$heading.attr('href');tabSelector=tabSelector&&tabSelector.replace(/.*(?=#[^\s]*$)/,'');}var $tabPane=$(tabSelector),groupId=$tabPane.attr('id')+'-collapse',$panel=$(this.options.accordionTemplate($heading,groupId,parentId,active));$panel.find('.panel-heading > .panel-title').append(this._tabHeadingToPanelHeading($heading,groupId,parentId,active));$panel.find('.panel-body').append($tabPane.contents().detach()).data('bs.tabcollapse.tabpane',$tabPane);return $panel;};$.fn.tabCollapse=function(option){return this.each(function(){var $this=$(this);var data=$this.data('bs.tabcollapse');var options=$.extend({},TabCollapse.DEFAULTS,$this.data(),typeof option==='object'&&option);if(!data)$this.data('bs.tabcollapse',new TabCollapse(this,options));});};$.fn.tabCollapse.Constructor=TabCollapse;}(window.jQuery);; 293(function(_,$,Drupal,drupalSettings){'use strict';var Bootstrap={processedOnce:{},settings:drupalSettings.bootstrap||{}};Bootstrap.checkPlain=function(str){return str&&Drupal.checkPlain(str)||'';};Bootstrap.createPlugin=function(id,plugin,noConflict){if($.fn[id]!==void 0)return this.fatal('Specified jQuery plugin identifier already exists: @id. Use Drupal.bootstrap.replacePlugin() instead.',{'@id':id});if(typeof plugin!=='function')return this.fatal('You must provide a constructor function to create a jQuery plugin "@id": @plugin',{'@id':id,'@plugin':plugin});this.pluginNoConflict(id,plugin,noConflict);$.fn[id]=plugin;};Bootstrap.diffObjects=function(objects){var args=Array.prototype.slice.call(arguments);return _.pick(args[0],_.difference.apply(_,_.map(args,function(obj){return Object.keys(obj);})));};Bootstrap.eventMap={Event:/^(?:load|unload|abort|error|select|change|submit|reset|focus|blur|resize|scroll)$/,MouseEvent:/^(?:click|dblclick|mouse(?:down|enter|leave|up|over|move|out))$/,KeyboardEvent:/^(?:key(?:down|press|up))$/,TouchEvent:/^(?:touch(?:start|end|move|cancel))$/};Bootstrap.extendPlugin=function(id,callback){if(typeof $.fn[id]!=='function')return this.fatal('Specified jQuery plugin identifier does not exist: @id',{'@id':id});if(typeof callback!=='function')return this.fatal('You must provide a callback function to extend the jQuery plugin "@id": @callback',{'@id':id,'@callback':callback});
293var constructor=$.fn[id]&&$.fn[id].Constructor||$.fn[id];var plugin=callback.apply(constructor,[this.settings]);if(!$.isPlainObject(plugin))return this.fatal('Returned value from callback is not a plain object that can be used to extend the jQuery plugin "@id": @obj',{'@obj':plugin});this.wrapPluginConstructor(constructor,plugin,true);return $.fn[id];};Bootstrap.superWrapper=function(parent,fn){return function(){var previousSuper=this.super;this.super=parent;var ret=fn.apply(this,arguments);if(previousSuper)this.super=previousSuper;else delete this.super;return ret;};};Bootstrap.fatal=function(message,args){if(this.settings.dev&&console.warn){for(var name in args)if(args.hasOwnProperty(name)&&typeof args[name]==='object')args[name]=JSON.stringify(args[name]);Drupal.throwError(new Error(Drupal.formatString(message,args)));}return false;};Bootstrap.intersectObjects=function(objects){var args=Array.prototype.slice.call(arguments);return _.pick(args[0],_.intersection.apply(_,_.map(args,function(obj){return Object.keys(obj);})));};Bootstrap.normalizeObject=function(obj){if(!$.isPlainObject(obj))return obj;for(var k in obj)if(typeof obj[k]==='string')if(obj[k]==='true')obj[k]=true;else if(obj[k]==='false')obj[k]=false;
293else{if(obj[k].match(/^[\d-.]$/))obj[k]=parseFloat(obj[k]);}else{if($.isPlainObject(obj[k]))obj[k]=Bootstrap.normalizeObject(obj[k]);}return obj;};Bootstrap.once=function(id,callback){if(this.processedOnce[id])return this;callback.call(this,this.settings);this.processedOnce[id]=true;return this;};Bootstrap.option=function(key,value){var options=$.isPlainObject(key)?$.extend({},key):{};if(arguments.length===0)return $.extend({},this.options);if(typeof key==="string"){var parts=key.split('.');key=parts.shift();var obj=options;if(parts.length){for(var i=0;i<parts.length-1;i++){obj[parts[i]]=obj[parts[i]]||{};obj=obj[parts[i]];}key=parts.pop();}if(arguments.length===1)return obj[key]===void 0?null:obj[key];obj[key]=value;}$.extend(true,this.options,options);};Bootstrap.pluginNoConflict=function(id,plugin,noConflict){if(plugin.noConflict===void 0&&(noConflict===void 0||noConflict)){var old=$.fn[id];plugin.noConflict=function(){$.fn[id]=old;return this;};}};Bootstrap.relayEvent=function(target,name,stopPropagation){return function(e){if(stopPropagation===void 0||stopPropagation)e.stopPropagation();var $target=$(target);var parts=name.split('.').filter(Boolean);var type=parts.shift();e.target=$target[0];e.currentTarget=$target[0];e.namespace=parts.join('.');e.type=type;$target.trigger(e);};};Bootstrap.replacePlugin=function(id,callback,noConflict){if(typeof $.fn[id]!=='function')return this.fatal('Specified jQuery plugin identifier does not exist: @id',{'@id':id});if(typeof callback!=='function')return this.fatal('You must provide a valid callback function to replace a jQuery plugin: @callback',{'@callback':callback});var constructor=$.fn[id]&&$.fn[id].Constructor||$.fn[id];var plugin=callback.apply(constructor,[this.settings]);if(typeof plugin!=='function')return this.fatal('Returned value from callback is not a usable function to replace a jQuery plugin "@id": @plugin',{'@id':id,'@plugin':plugin});this.wrapPluginConstructor(constructor,plugin);this.pluginNoConflict(id,plugin,noConflict);$.fn[id]=plugin;};Bootstrap.simulate=function(element,type,options){var ret=true;if(element instanceof $){element.each(function(){if(!Bootstrap.simulate(this,type,options))ret=false;});return ret;}if(!(element instanceof HTMLElement))this.fatal('Passed element must be an instance of HTMLElement, got "@type" instead.',{'@type':typeof element});if(typeof $.simulate==='function'){new $.simulate(element,type,options);return true;}var event;var ctor;var types=[].concat(type);for(var i=0,l=types.length;i<l;i++){type=types[i];for(var name in this.eventMap)if(this.eventMap[name].test(type)){ctor=name;break;}if(!ctor)throw new SyntaxError('Only rudimentary HTMLEvents, KeyboardEvents and MouseEvents are supported: '+type);var opts={bubbles:true,cancelable:true};if(ctor==='KeyboardEvent'||ctor==='MouseEvent')$.extend(opts,{ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1});if(ctor==='MouseEvent')$.extend(opts,{button:0,pointerX:0,pointerY:0,view:window});if(options)$.extend(opts,options);if(typeof window[ctor]==='function'){event=new window[ctor](type,opts);if(!element.dispatchEvent(event))ret=false;}else if(document.createEvent){event=document.createEvent(ctor);event.initEvent(type,opts.bubbles,opts.cancelable);if(!element.dispatchEvent(event))ret=false;}else if(typeof element.fireEvent==='function'){event=$.extend(document.createEventObject(),opts);if(!element.fireEvent('on'+type,event))ret=false;}else{if(typeof element[type])element[type]();}}return ret;};Bootstrap.stripHtml=function(html){if(html instanceof $)html=html.html();else{if(html instanceof Element)html=html.innerHTML;}var tmp=document.createElement('DIV');tmp.innerHTML=html;return (tmp.textContent||tmp.innerText||'').replace(/^[\s\n\t]*|[\s\n\t]*$/,'');};Bootstrap.unsupported=function(type,name,value){Bootstrap.warn('Unsupported by Drupal Bootstrap: (@type) @name -> @value',{'@type':type,'@name':name,'@value':typeof value==='object'?JSON.stringify(value):value});};Bootstrap.warn=function(message,args){if(this.settings.dev&&console.warn)console.warn(Drupal.formatString(message,args));};Bootstrap.wrapPluginConstructor=function(constructor,plugin,extend){var proto=constructor.prototype;var option=this.option;if(proto.option===void (0))proto.option=function(){return option.apply(this,arguments);};if(extend){if(plugin.prototype!==void 0)for(var key in plugin.prototype){if(!plugin.prototype.hasOwnProperty(key))continue;var value=plugin.prototype[key];if(typeof value==='function')proto[key]=this.superWrapper(proto[key]||function(){},value);else proto[key]=$.isPlainObject(value)?$.extend(true,{},proto[key],value):value;}delete plugin.prototype;for(key in plugin){if(!plugin.hasOwnProperty(key))continue;value=plugin[key];if(typeof value==='function')constructor[key]=this.superWrapper(constructor[key]||function(){},value);else constructor[key]=$.isPlainObject(value)?$.extend(true,{},constructor[key],value):value;}}};Drupal.bootstrap=Drupal.bootstrap||Bootstrap;})(window._,window.jQuery,window.Drupal,window.drupalSettings);; 294(function($,_){var Attributes=function(attributes){this.data={};this.data['class']=[];
294this.merge(attributes);};Attributes.prototype.toString=function(){var output='';var name,value;var checkPlain=function(str){return str&&str.toString().replace(/&/g,'&').replace(/"/g,'"').replace(/</g,'<').replace(/>/g,'>')||'';};var data=this.getData();for(name in data){if(!data.hasOwnProperty(name))continue;value=data[name];if(_.isFunction(value))value=value();if(_.isObject(value))value=_.values(value);if(_.isArray(value))value=value.join(' ');output+=' '+checkPlain(name)+'="'+checkPlain(value)+'"';}return output;};Attributes.prototype.toPlainObject=function(){var object={};var name,value;var data=this.getData();for(name in data){if(!data.hasOwnProperty(name))continue;value=data[name];if(_.isFunction(value))value=value();if(_.isObject(value))value=_.values(value);if(_.isArray(value))value=value.join(' ');object[name]=value;}return object;};Attributes.prototype.addClass=function(value){var args=Array.prototype.slice.call(arguments);this.data['class']=this.sanitizeClasses(this.data['class'].concat(args));return this;};Attributes.prototype.exists=function(name){return this.data[name]!==void (0)&&this.data[name]!==null;};Attributes.prototype.get=function(name,defaultValue){if(!this.exists(name))this.data[name]=defaultValue;return this.data[name];};Attributes.prototype.getData=function(){return _.extend({},this.data);};Attributes.prototype.getClasses=function(){return this.get('class',[]);};Attributes.prototype.hasClass=function(className){className=this.sanitizeClasses(Array.prototype.slice.call(arguments));var classes=this.getClasses();for(var i=0,l=className.length;i<l;i++)if(_.indexOf(classes,className[i])===-1)return false;return true;};Attributes.prototype.merge=function(object,recursive){if(!object)return this;if(object instanceof $)object=object[0];if(object instanceof Node)object=Array.prototype.slice.call(object.attributes).reduce(function(attributes,attribute){attributes[attribute.name]=attribute.value;return attributes;},{});else if(object instanceof Attributes)object=object.getData();else object=_.extend({},object);if(!$.isPlainObject(object)){setTimeout(function(){throw new Error('Passed object is not supported: '+object);});return this;}if(object&&object['class']!==void 0){this.addClass(object['class']);delete object['class'];}if(recursive===void 0||recursive)this.data=$.extend(true,{},this.data,object);else this.data=$.extend({},this.data,object);return this;};Attributes.prototype.remove=function(name){if(this.exists(name))delete this.data[name];return this;};Attributes.prototype.removeClass=function(className){var remove=this.sanitizeClasses(Array.prototype.slice.apply(arguments));this.data['class']=_.without(this.getClasses(),remove);return this;};Attributes.prototype.replaceClass=function(oldValue,newValue){var classes=this.getClasses();var i=_.indexOf(this.sanitizeClasses(oldValue),classes);if(i>=0){classes[i]=newValue;this.set('class',classes);}return this;};Attributes.prototype.sanitizeClasses=function(classes){return _.chain(Array.prototype.slice.call(arguments)).flatten().map(function(string){return string.split(' ');}).flatten().filter().map(function(value){return Attributes.cleanClass(value);}).uniq().value();};Attributes.prototype.set=function(name,value){var obj=$.isPlainObject(name)?name:{};if(typeof name==='string')obj[name]=value;return this.merge(obj);};Attributes.cleanClass=function(identifier,filter){filter=filter||{' ':'-','_':'-','/':'-','[':'-',']':''};identifier=identifier.toLowerCase();if(filter['__']===void 0)identifier=identifier.replace('__','#DOUBLE_UNDERSCORE#');identifier=identifier.replace(Object.keys(filter),Object.keys(filter).map(function(key){return filter[key];}));if(filter['__']===void 0)identifier=identifier.replace('#DOUBLE_UNDERSCORE#','__');
294identifier=identifier.replace(/[^\u002D\u0030-\u0039\u0041-\u005A\u005F\u0061-\u007A\u00A1-\uFFFF]/g,'');identifier=identifier.replace(['/^[0-9]/','/^(-[0-9])|^(--)/'],['_','__']);return identifier;};Attributes.create=function(attributes){return new Attributes(attributes);};window.Attributes=Attributes;})(window.jQuery,window._);; 295(function($,Drupal,Bootstrap,Attributes){if(!Drupal.icon)Drupal.icon={bundles:{}};if(!Drupal.theme.icon||Drupal.theme.prototype.icon)$.extend(Drupal.theme,{icon:function(bundle,icon,attributes){if(!Drupal.icon.bundles[bundle])return '';attributes=Attributes.create(attributes).addClass('icon').set('aria-hidden','true');icon=Drupal.icon.bundles[bundle](icon,attributes);return '<span'+attributes+'></span>';}});Drupal.icon.bundles.bootstrap=function(icon,attributes){attributes.addClass(['glyphicon','glyphicon-'+icon]);};$.extend(Drupal.theme,{ajaxThrobber:function(){return Drupal.theme('bootstrapIcon','refresh',{'class':['ajax-throbber','glyphicon-spin']});},button:function(attributes){attributes=Attributes.create(attributes).addClass('btn');var context=attributes.get('context','default');var label=attributes.get('value','');attributes.remove('context').remove('value');if(!attributes.hasClass(['btn-default','btn-primary','btn-success','btn-info','btn-warning','btn-danger','btn-link']))attributes.addClass('btn-'+Bootstrap.checkPlain(context));if(!attributes.exists('type'))attributes.set('type',attributes.hasClass('form-submit')?'submit':'button');return '<button'+attributes+'>'+label+'</button>';},btn:function(attributes){return Drupal.theme('button',attributes);},'btn-block':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-block'));},'btn-lg':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-lg'));},'btn-sm':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-sm'));},'btn-xs':function(attributes){return Drupal.theme('button',Attributes.create(attributes).addClass('btn-xs'));},bootstrapIcon:function(name,attributes){return Drupal.theme('icon','bootstrap',name,attributes);}});})(window.jQuery,window.Drupal,window.Drupal.bootstrap,window.Attributes);; 296var Drupal=Drupal||{};(function($,Drupal,Bootstrap){"use strict";var $document=$(document);Bootstrap.extendPlugin('popover',function(settings){return {DEFAULTS:{animation:!!settings.popover_animation,autoClose:!!settings.popover_auto_close,enabled:settings.popover_enabled,html:!!settings.popover_html,placement:settings.popover_placement,selector:settings.popover_selector,trigger:settings.popover_trigger,title:settings.popover_title,content:settings.popover_content,delay:parseInt(settings.popover_delay,10),container:settings.popover_container}};});Drupal.behaviors.bootstrapPopovers={$activePopover:null,attach:function(context){if(!$.fn.popover||!$.fn.popover.Constructor.DEFAULTS.enabled)return;var _this=this;$document.on('show.bs.popover','[data-toggle=popover]',function(){var $trigger=$(this);var popover=$trigger.data('bs.popover');if(popover.options.originalTrigger==='click'){if(_this.$activePopover&&_this.getOption('autoClose')&&!_this.$activePopover.is($trigger))_this.$activePopover.popover('hide');_this.$activePopover=$trigger;}}).on('focus.bs.popover',':visible',function(e){var $target=$(e.target);if(_this.$activePopover&&_this.getOption('autoClose')&&!_this.$activePopover.is($target)&&!$target.closest('.popover.in')[0]){_this.$activePopover.popover('hide');_this.$activePopover=null;}}).on('click.bs.popover',function(e){var $target=$(e.target);if(_this.$activePopover&&_this.getOption('autoClose')&&!$target.is('[data-toggle=popover]')&&!$target.closest('.popover.in')[0]){_this.$activePopover.popover('hide');_this.$activePopover=null;}}).on('keyup.bs.popover',function(e){if(_this.$activePopover&&_this.getOption('autoClose')&&e.which===27){_this.$activePopover.popover('hide');_this.$activePopover=null;}});;var elements=$(context).find('[data-toggle=popover]').toArray();for(var i=0;i<elements.length;i++){var $element=$(elements[i]);var options=$.extend({},$.fn.popover.Constructor.DEFAULTS,$element.data());options.originalTrigger=options.trigger;if(options.trigger==='click')options.trigger='manual';var target=options.target||$element.is('a[href^="#"]')&&$element.attr('href');var $target=$document.find(target).clone();if(!options.content&&$target[0]){$target.removeClass('visually-hidden hidden').removeAttr('aria-hidden');options.content=$target.wrap('<div/>').parent()[options.html?'html':'text']()||'';}$element.popover(options);if(options.originalTrigger==='click'){$element.off('click.drupal.bootstrap.popover').on('click.drupal.bootstrap.popover',function(e){$(this).popover('toggle');e.preventDefault();e.stopPropagation();});;}}},detach:function(context){if(!$.fn.popover||!$.fn.popover.Constructor.DEFAULTS.enabled)return;$(context).find('[data-toggle="popover"]').off('click.drupal.bootstrap.popover').popover('destroy');;},getOption:function(name,defaultValue,element){var $element=element?$(element):this.$activePopover;var options=$.extend(true,{},$.fn.popover.Constructor.DEFAULTS,($element&&$element.data('bs.popover')||{}).options);if(options[name]!==void 0)return options[name];return defaultValue!==void 0?defaultValue:void 0;}};})(window.jQuery,window.Drupal,window.Drupal.bootstrap);;
297var Drupal=Drupal||{};(function($,Drupal,Bootstrap){"use strict";Bootstrap.extendPlugin('tooltip',function(settings){return {DEFAULTS:{animation:!!settings.tooltip_animation,enabled:settings.tooltip_enabled,html:!!settings.tooltip_html,placement:settings.tooltip_placement,selector:settings.tooltip_selector,trigger:settings.tooltip_trigger,delay:parseInt(settings.tooltip_delay,10),container:settings.tooltip_container}};});Drupal.behaviors.bootstrapTooltips={attach:function(context){if(!$.fn.tooltip||!$.fn.tooltip.Constructor.DEFAULTS.enabled)return;var elements=$(context).find('[data-toggle="tooltip"]').toArray();for(var i=0;i<elements.length;i++){var $element=$(elements[i]);var options=$.extend({},$.fn.tooltip.Constructor.DEFAULTS,$element.data());$element.tooltip(options);}},detach:function(context){if(!$.fn.tooltip||!$.fn.tooltip.Constructor.DEFAULTS.enabled)return;$(context).find('[data-toggle="tooltip"]').tooltip('destroy');}};})(window.jQuery,window.Drupal,window.Drupal.bootstrap);; 298(function($,Drupal){Drupal.theme.progressBar=function(id){const escapedId=Drupal.checkPlain(id);return (`<div id="${escapedId}" class="progress" aria-live="polite">`+'<div class="progress__label"> </div>'+'<div class="progress__track"><div class="progress__bar"></div></div>'+'<div class="progress__percentage"></div>'+'<div class="progress__description"> </div>'+'</div>');};Drupal.ProgressBar=function(id,updateCallback,method,errorCallback){this.id=id;this.method=method||'GET';this.updateCallback=updateCallback;this.errorCallback=errorCallback;this.element=$(Drupal.theme('progressBar',id));};$.extend(Drupal.ProgressBar.prototype,{setProgress(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('div.progress__bar').each(function(){this.style.width=`${percentage}%`;});$(this.element).find('div.progress__percentage').html(`${percentage}%`);}$('div.progress__description',this.element).html(message);$('div.progress__label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},startMonitoring(uri,delay){this.delay=delay;this.uri=uri;this.sendPing();},stopMonitoring(){clearTimeout(this.timer);this.uri=null;},sendPing(){if(this.timer)clearTimeout(this.timer);if(this.uri){const pb=this;let uri=this.uri;if(!uri.includes('?'))uri+='?';else uri+='&';uri+='_format=json';$.ajax({type:this.method,url:uri,data:'',dataType:'json',success(progress){if(progress.status===0){pb.displayError(progress.data);return;}pb.setProgress(progress.percentage,progress.message,progress.label);pb.timer=setTimeout(()=>{pb.sendPing();},pb.delay);},error(xmlhttp){const e=new Drupal.AjaxError(xmlhttp,pb.uri);pb.displayError(`<pre>${e.message}</pre>`);}});}},displayError(string){const error=$('<div class="messages messages--error"></div>').html(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; 299(function($,Drupal){'use strict';Drupal.theme.progressBar=function(id){return '<div class="progress-wrapper" aria-live="polite">'+'<div class="message"></div>'+'<div id ="'+id+'" class="progress progress-striped active">'+'<div class="progress-bar" role="progressbar" aria-valuemin="0" aria-valuemax="100" aria-valuenow="0">'+'<span class="percentage"></span>'+'</div>'+'</div>'+'<div class="progress-label"></div>'+'</div>';};$.extend(Drupal.ProgressBar.prototype,{setProgress:function(percentage,message,label){if(percentage>=0&&percentage<=100){$(this.element).find('.progress-bar').css('width',percentage+'%').attr('aria-valuenow',percentage);$(this.element).find('.percentage').html(percentage+'%');}if(message){message=message.replace(/<br\/> |\s*$/,'');$('.message',this.element).html(message);}if(label)$('.progress-label',this.element).html(label);if(this.updateCallback)this.updateCallback(percentage,message,this);},displayError:function(string){var error=$('<div class="alert alert-block alert-error"><button class="close" data-dismiss="alert">×</button><h4>'+Drupal.t('Error message')+'</h4></div>').append(string);$(this.element).before(error).hide();if(this.errorCallback)this.errorCallback(this);}});})(jQuery,Drupal);; 300/* @license MIT https://raw.githubusercontent.com/muicss/loadjs/4.3.0/LICENSE.txt */ 301loadjs=function(){var h=function(){},o={},c={},f={};function u(e,n){if(e){var t=f[e];if(c[e]=n,t)for(;t.length;)t[0](e,n),t.splice(0,1)}}function l(e,n){e.call&&(e={success:e}),n.length?(e.error||h)(n):(e.success||h)(e)}function p(t,r,i,s){var o,e,u,n=document,c=i.async,f=(i.numRetries||0)+1,l=i.before||h,a=t.replace(/[\?|#].*$/,""),d=t.replace(/^(css|img|module|nomodule)!/,"");if(s=s||0,/(^css!|\.css$)/.test(a))(u=n.createElement("link")).rel="stylesheet",u.href=d,(o="hideFocus"in u)&&u.relList&&(o=0,u.rel="preload",u.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(a))(u=n.createElement("img")).src=d;else if((u=n.createElement("script")).src=d,u.async=void 0===c||c,e="noModule"in u,/^module!/.test(a)){if(!e)return r(t,"l");u.type="module"}else if(/^nomodule!/.test(a)&&e)return r(t,"l");!(u.onload=u.onerror=u.onbeforeload=function(e){var n=e.type[0];if(o)try{u.sheet.cssText.length||(n="e")}catch(e){18!=e.code&&(n="e")}if("e"==n){if((s+=1)<f)return p(t,r,i,s)}else if("preload"==u.rel&&"style"==u.as)return u.rel="stylesheet";r(t,n,e.defaultPrevented)})!==l(t,u)&&n.head.appendChild(u)}function t(e,n,t){var r,i;if(n&&n.trim&&(r=n),i=(r?t:n)||{},r){if(r in o)throw"LoadJS";o[r]=!0}
301function s(n,t){!function(e,r,n){var t,i,s=(e=e.push?e:[e]).length,o=s,u=[];for(t=function(e,n,t){if("e"==n&&u.push(e),"b"==n){if(!t)return;u.push(e)}--s||r(u)},i=0;i<o;i++)p(e[i],t,n)}(e,function(e){l(i,e),n&&l({success:n,error:t},e),u(r,e)},i)}if(i.returnPromise)return new Promise(s);s()}return t.ready=function(e,n){return function(e,t){e=e.push?e:[e];var n,r,i,s=[],o=e.length,u=o;for(n=function(e,n){n.length&&s.push(e),--u||t(s)};o--;)r=e[o],(i=c[r])?n(r,i):(f[r]=f[r]||[]).push(n)}(e,function(e){l(n,e)}),t},t.done=function(e){u(e,[])},t.reset=function(){o={},c={},f={}},t.isDefined=function(e){return e in o},t}();; 302/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 303Drupal.debounce=function(func,wait,immediate){let timeout;let result;return function(...args){const context=this;const later=function(){timeout=null;if(!immediate)result=func.apply(context,args);};const callNow=immediate&&!timeout;clearTimeout(timeout);timeout=setTimeout(later,wait);if(callNow)result=func.apply(context,args);return result;};};; 304(function(Drupal,debounce){let liveElement;const announcements=[];Drupal.behaviors.drupalAnnounce={attach(context){if(!liveElement){liveElement=document.createElement('div');liveElement.id='drupal-live-announce';liveElement.className='visually-hidden';liveElement.setAttribute('aria-live','polite');liveElement.setAttribute('aria-busy','false');document.body.appendChild(liveElement);}}};function announce(){const text=[];let priority='polite';let announcement;const il=announcements.length;for(let i=0;i<il;i++){announcement=announcements.pop();text.unshift(announcement.text);if(announcement.priority==='assertive')priority='assertive';}if(text.length){liveElement.innerHTML='';liveElement.setAttribute('aria-busy','true');liveElement.setAttribute('aria-live',priority);liveElement.innerHTML=text.join('\n');liveElement.setAttribute('aria-busy','false');}}Drupal.announce=function(text,priority){announcements.push({text,priority});return debounce(announce,200)();};})(Drupal,Drupal.debounce);; 305((Drupal)=>{Drupal.Message=class{constructor(messageWrapper=null){if(!messageWrapper)this.messageWrapper=Drupal.Message.defaultWrapper();else this.messageWrapper=messageWrapper;}static defaultWrapper(){let wrapper=document.querySelector('[data-drupal-messages]')||document.querySelector('[data-drupal-messages-fallback]');if(!wrapper){wrapper=document.createElement('div');document.body.appendChild(wrapper);}if(wrapper.hasAttribute('data-drupal-messages-fallback')){wrapper.removeAttribute('data-drupal-messages-fallback');wrapper.classList.remove('hidden');}wrapper.setAttribute('data-drupal-messages','');return wrapper.innerHTML===''?Drupal.Message.messageInternalWrapper(wrapper):wrapper.firstElementChild;}static getMessageTypeLabels(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message')};}add(message,options={}){if(!options.hasOwnProperty('type'))options.type='status';if(typeof message!=='string')throw new Error('Message must be a string.');Drupal.Message.announce(message,options);options.id=options.id?String(options.id):`${options.type}-${Math.random().toFixed(15).replace('0.','')}`;if(!Drupal.Message.getMessageTypeLabels().hasOwnProperty(options.type)){const {type}=options;throw new Error(`The message type, ${type}, is not present in Drupal.Message.getMessageTypeLabels().`);}this.messageWrapper.appendChild(Drupal.theme('message',{text:message},options));return options.id;}select(id){return this.messageWrapper.querySelector(`[data-drupal-message-id^="${id}"]`);}remove(id){return this.messageWrapper.removeChild(this.select(id));}clear(){this.messageWrapper.querySelectorAll('[data-drupal-message-id]').forEach((message)=>{this.messageWrapper.removeChild(message);});}static announce(message,options){if(!options.priority&&(options.type==='warning'||options.type==='error'))options.priority='assertive';if(options.announce!=='')Drupal.announce(options.announce||message,options.priority);}static messageInternalWrapper(messageWrapper){const innerWrapper=document.createElement('div');innerWrapper.setAttribute('class','messages__wrapper');messageWrapper.insertAdjacentElement('afterbegin',innerWrapper);return innerWrapper;}};Drupal.theme.message=({text},{type,id})=>
305{const messagesTypes=Drupal.Message.getMessageTypeLabels();const messageWrapper=document.createElement('div');messageWrapper.setAttribute('class',`messages messages--${type}`);messageWrapper.setAttribute('role',type==='error'||type==='warning'?'alert':'status');messageWrapper.setAttribute('data-drupal-message-id',id);messageWrapper.setAttribute('data-drupal-message-type',type);messageWrapper.setAttribute('aria-label',messagesTypes[type]);messageWrapper.innerHTML=`${text}`;return messageWrapper;};})(Drupal);; 306(function($,Drupal){Drupal.Message.getMessageTypeClass=function(type){var classes=this.getMessageTypeClasses();return 'alert alert-'+(classes[type]||'success');};Drupal.Message.getMessageTypeClasses=function(){return {status:'success',error:'danger',warning:'warning',info:'info'};};Drupal.Message.getMessageTypeLabel=function(type){var labels=this.getMessageTypeLabels();return labels[type];};Drupal.Message.getMessageTypeLabels=function(){return {status:Drupal.t('Status message'),error:Drupal.t('Error message'),warning:Drupal.t('Warning message'),info:Drupal.t('Informative message')};};Drupal.Message.getMessageTypeRole=function(type){var labels=this.getMessageTypeRoles();return labels[type];};Drupal.Message.getMessageTypeRoles=function(){return {status:'status',error:'alert',warning:'alert',info:'status'};};Drupal.theme.message=function(message,options){options=options||{};var wrapper=Drupal.theme('messageWrapper',options.id||(new Date()).getTime(),options.type||'status');if(options.dismissible===void 0||!!options.dismissible){wrapper.classList.add('alert-dismissible');wrapper.appendChild(Drupal.theme('messageClose'));}wrapper.appendChild(Drupal.theme('messageContents',message&&message.text));return wrapper;};Drupal.theme.messageWrapper=function(id,type){var wrapper=document.createElement('div');var label=Drupal.Message.getMessageTypeLabel(type);wrapper.setAttribute('class',Drupal.Message.getMessageTypeClass(type));wrapper.setAttribute('role',Drupal.Message.getMessageTypeRole(type));wrapper.setAttribute('aria-label',label);wrapper.setAttribute('data-drupal-message-id',id);wrapper.setAttribute('data-drupal-message-type',type);if(label)wrapper.appendChild(Drupal.theme('messageLabel',label));return wrapper;};Drupal.theme.messageClose=function(){var element=document.createElement('button');element.setAttribute('class','close');element.setAttribute('type','button');element.setAttribute('role','button');element.setAttribute('data-dismiss','alert');element.setAttribute('aria-label',Drupal.t('Close'));element.innerHTML='<span aria-hidden="true">×</span>';return element;};Drupal.theme.messageLabel=function(label){var element=document.createElement('h2');element.setAttribute('class','sr-only');element.innerHTML=label;return element;};Drupal.theme.messageContents=function(html){var element=document.createElement('p');element.innerHTML=''+html;return element;};})(window.jQuery,window.Drupal);; 307(function($,window,Drupal,drupalSettings,loadjs,{isFocusable,tabbable}){Drupal.behaviors.AJAX={attach(context,settings){function loadAjaxBehavior(base){const elementSettings=settings.ajax[base];if(typeof elementSettings.selector==='undefined')elementSettings.selector=`#${base}`;once('drupal-ajax',$(elementSettings.selector)).forEach((el)=>{elementSettings.element=el;elementSettings.base=base;Drupal.ajax(elementSettings);});}Object.keys(settings.ajax||{}).forEach(loadAjaxBehavior);Drupal.ajax.bindAjaxLinks(document.body);once('ajax','.use-ajax-submit').forEach((el)=>{const elementSettings={url:$(el.form).attr('action'),setClick:true,event:'click',progress:{type:'throbber'},base:el.id,element:el};Drupal.ajax(elementSettings);});},detach(context,settings,trigger){if(trigger==='unload')Drupal.ajax.expired().forEach((instance)=>{Drupal.ajax.instances[instance.instanceIndex]=null;});}};Drupal.AjaxError=function(xmlhttp,uri,customMessage){let statusCode;let statusText;let responseText;if(xmlhttp.status)statusCode=`\n${Drupal.t('An AJAX HTTP error occurred.')}\n${Drupal.t('HTTP Result Code: !status',{'!status':xmlhttp.status})}`;else statusCode=`\n${Drupal.t('An AJAX HTTP request terminated abnormally.')}`;statusCode+=`\n${Drupal.t('Debugging information follows.')}`;const pathText=`\n${Drupal.t('Path: !uri',{'!uri':uri})}`;statusText='';try{statusText=`\n${Drupal.t('StatusText: !statusText',{'!statusText':xmlhttp.statusText.trim()})}`;}catch(e){}responseText='';try{responseText=`\n${Drupal.t('ResponseText: !responseText',{'!responseText':xmlhttp.responseText.trim()})}`;}catch(e){}responseText=responseText.replace(/<("[^"]*"|'[^']*'|[^'">])*>/gi,'');responseText=responseText.replace(/[\n]+\s+/g,'\n');const readyStateText=xmlhttp.status===0?`\n${Drupal.t('ReadyState: !readyState',{'!readyState':xmlhttp.readyState})}`:'';customMessage=customMessage?`\n${Drupal.t('CustomMessage: !customMessage',{'!customMessage':customMessage})}`:'';this.message=statusCode+pathText+statusText+customMessage+responseText+readyStateText;this.name='AjaxError';if(!Drupal.AjaxError.messages)Drupal.AjaxError.messages=new Drupal.Message();Drupal.AjaxError.messages.add(Drupal.t("Oops, something went wrong. Check your browser's developer console for more details."),{type:'error'});};Drupal.AjaxError.prototype=new Error();Drupal.AjaxError.prototype.constructor=Drupal.AjaxError;Drupal.ajax=function(settings){if(arguments.length!==1)throw new Error('Drupal.ajax() function must be called with one configuration object only');const base=settings.base||false;const element=settings.element||false;delete settings.base;delete settings.element;if(!settings.progress&&!element)settings.progress=false;const ajax=new Drupal.Ajax(base,element,settings);ajax.instanceIndex=Drupal.ajax.instances.length;Drupal.ajax.instances.push(ajax);return ajax;};Drupal.ajax.instances=[];Drupal.ajax.expired=function(){return Drupal.ajax.instances.filter((instance)=>instance&&instance.element!==false&&!document.body.contains(instance.element));};Drupal.ajax.bindAjaxLinks=(element)=>
307{once('ajax','.use-ajax',element).forEach((ajaxLink)=>{const $linkElement=$(ajaxLink);const elementSettings={progress:{type:'throbber'},dialogType:$linkElement.data('dialog-type'),dialog:$linkElement.data('dialog-options'),dialogRenderer:$linkElement.data('dialog-renderer'),base:$linkElement.attr('id'),element:ajaxLink};const href=$linkElement.attr('href');if(href){elementSettings.url=href;elementSettings.event='click';}const httpMethod=$linkElement.data('ajax-http-method');if(httpMethod)elementSettings.httpMethod=httpMethod;Drupal.ajax(elementSettings);});};Drupal.Ajax=function(base,element,elementSettings){const defaults={httpMethod:'POST',event:element?'mousedown':null,keypress:true,selector:base?`#${base}`:null,effect:'none',speed:'none',method:'replaceWith',progress:{type:'throbber',message:Drupal.t('Processing...')},submit:{js:true}};$.extend(this,defaults,elementSettings);this.commands=new Drupal.AjaxCommands();this.instanceIndex=false;if(this.wrapper)this.wrapper=`#${this.wrapper}`;this.element=element;this.preCommandsFocusedElementSelector=null;this.elementSettings=elementSettings;if(this.element?.form)this.$form=$(this.element.form);if(!this.url){const $element=$(this.element);if(this.element.tagName==='A')this.url=$element.attr('href');else{if(this.element&&element.form)this.url=this.$form.attr('action');}}const originalUrl=this.url;this.url=this.url.replace(/\/nojs(\/|$|\?|#)/,'/ajax$1');if(drupalSettings.ajaxTrustedUrl[originalUrl])drupalSettings.ajaxTrustedUrl[this.url]=true;const ajax=this;ajax.options={url:ajax.url,data:ajax.submit,isInProgress(){return ajax.ajaxing;},beforeSerialize(elementSettings,options){return ajax.beforeSerialize(elementSettings,options);},beforeSubmit(formValues,elementSettings,options){ajax.ajaxing=true;ajax.preCommandsFocusedElementSelector=null;return ajax.beforeSubmit(formValues,elementSettings,options);},beforeSend(xmlhttprequest,options){ajax.ajaxing=true;return ajax.beforeSend(xmlhttprequest,options);},success(response,status,xmlhttprequest){ajax.preCommandsFocusedElementSelector=document.activeElement.getAttribute('data-drupal-selector');if(typeof response==='string')response=JSON.parse(response);if(response!==null&&!drupalSettings.ajaxTrustedUrl[ajax.url])if(xmlhttprequest.getResponseHeader('X-Drupal-Ajax-Token')!=='1'){const customMessage=Drupal.t('The response failed verification so will not be processed.');return ajax.error(xmlhttprequest,ajax.url,customMessage);}return (Promise.resolve(ajax.success(response,status)).then(()=>{ajax.ajaxing=false;$(document).trigger('ajaxSuccess',[xmlhttprequest,this]);$(document).trigger('ajaxComplete',[xmlhttprequest,this]);if(--$.active===0)$(document).trigger('ajaxStop');}));},error(xmlhttprequest,status,error){ajax.ajaxing=false;},complete(xmlhttprequest,status){if(status==='error'||status==='parsererror')return ajax.error(xmlhttprequest,ajax.url);},dataType:'json',jsonp:false,method:ajax.httpMethod};if(elementSettings.dialog)ajax.options.data.dialogOptions=elementSettings.dialog;if(!ajax.options.url.includes('?'))ajax.options.url+='?';else ajax.options.url+='&';let wrapper=`drupal_${elementSettings.dialogType||'ajax'}`;if(elementSettings.dialogRenderer)wrapper+=`.${elementSettings.dialogRenderer}`;ajax.options.url+=`${Drupal.ajax.WRAPPER_FORMAT}=${wrapper}`;$(ajax.element).on(elementSettings.event,function(event){if(!drupalSettings.ajaxTrustedUrl[ajax.url]&&!Drupal.url.isLocal(ajax.url))throw new Error(Drupal.t('The callback URL is not local and not trusted: !url',{'!url':ajax.url}));return ajax.eventResponse(this,event);});if(elementSettings.keypress)$(ajax.element).on('keypress',function(event){return ajax.keypressResponse(this,event);});if(elementSettings.prevent)$(ajax.element).on(elementSettings.prevent,false);};Drupal.ajax.WRAPPER_FORMAT='_wrapper_format';Drupal.Ajax.AJAX_REQUEST_PARAMETER='_drupal_ajax';Drupal.Ajax.prototype.execute=function(){if(this.ajaxing)return;try{this.beforeSerialize(this.element,this.options);return $.ajax(this.options);}catch(e){this.ajaxing=false;window.alert(`An error occurred while attempting to process ${this.options.url}: ${e.message}`);return $.Deferred().reject();}};Drupal.Ajax.prototype.keypressResponse=function(element,event){const ajax=this;if(event.which===13||(event.which===32&&element.type!=='text'&&element.type!=='textarea'&&element.type!=='tel'&&element.type!=='number')){event.preventDefault();event.stopPropagation();$(element).trigger(ajax.elementSettings.event);}};Drupal.Ajax.prototype.eventResponse=function(element,event){event.preventDefault();event.stopPropagation();const ajax=this;if(ajax.ajaxing)return;try{if(ajax.$form){if(ajax.setClick)element.form.clk=element;ajax.$form.ajaxSubmit(ajax.options);}else{ajax.beforeSerialize(ajax.element,ajax.options);$.ajax(ajax.options);}}catch(e){ajax.ajaxing=false;window.alert(`An error occurred while attempting to process ${ajax.options.url}: ${e.message}`);}};Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.detachBehaviors(this.$form.get(0),settings,'serialize');}options.data[Drupal.Ajax.AJAX_REQUEST_PARAMETER]=1;const pageState=drupalSettings.ajaxPageState;options.data['ajax_page_state[theme]']=pageState.theme;options.data['ajax_page_state[theme_token]']=pageState.theme_token;options.data['ajax_page_state[libraries]']=pageState.libraries;};Drupal.Ajax.prototype.beforeSubmit=function(formValues,element,options){};Drupal.Ajax.prototype.beforeSend=function(xmlhttprequest,options){if(this.$form){options.extraData=options.extraData||{};options.extraData.ajax_iframe_upload='1';const v=$.fieldValue(this.element);if(v!==null)options.extraData[this.element.name]=v;}$(this.element).prop('disabled',true);if(!this.progress||!this.progress.type)return;const progressIndicatorMethod=`setProgressIndicator${this.progress.type.slice(0,1).toUpperCase()}${this.progress.type.slice(1).toLowerCase()}`;if(progressIndicatorMethod in this&&typeof this[progressIndicatorMethod]==='function')this[progressIndicatorMethod].call(this);};Drupal.theme.ajaxProgressThrobber=(message)=>{const messageMarkup=typeof message==='string'?Drupal.theme('ajaxProgressMessage',message):'';const throbber='<div class="throbber"> </div>';return `<div class="ajax-progress ajax-progress-throbber">${throbber}${messageMarkup}</div>`;};Drupal.theme.ajaxProgressIndicatorFullscreen=()=>'<div class="ajax-progress ajax-progress-fullscreen"> </div>';Drupal.theme.ajaxProgressMessage=(message)=>`<div class="message">${message}</div>`;Drupal.theme.ajaxProgressBar=($element)=>$('<div class="ajax-progress ajax-progress-bar"></div>').append($element);Drupal.Ajax.prototype.setProgressIndicatorBar=function(){const progressBar=new Drupal.ProgressBar(`ajax-progress-${this.element.i
307d}`,$.noop,this.progress.method,$.noop);if(this.progress.message)progressBar.setProgress(-1,this.progress.message);if(this.progress.url)progressBar.startMonitoring(this.progress.url,this.progress.interval||1500);this.progress.element=$(Drupal.theme('ajaxProgressBar',progressBar.element));this.progress.object=progressBar;$(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){this.progress.element=$(Drupal.theme('ajaxProgressThrobber',this.progress.message));if($(this.element).closest('[data-drupal-ajax-container]').length)$(this.element).closest('[data-drupal-ajax-container]').after(this.progress.element);else $(this.element).after(this.progress.element);};Drupal.Ajax.prototype.setProgressIndicatorFullscreen=function(){this.progress.element=$(Drupal.theme('ajaxProgressIndicatorFullscreen'));$('body').append(this.progress.element);};Drupal.Ajax.prototype.commandExecutionQueue=function(response,status){const ajaxCommands=this.commands;return Object.keys(response||{}).reduce((executionQueue,key)=>executionQueue.then(()=>{const {command}=response[key];if(command&&ajaxCommands[command])return ajaxCommands[command](this,response[key],status);}),Promise.resolve());};Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.element).prop('disabled',false);const elementParents=$(this.element).parents('[data-drupal-selector]').addBack().toArray();const focusChanged=Object.keys(response||{}).some((key)=>{const {command,method}=response[key];return (command==='focusFirst'||command==='openDialog'||(command==='invoke'&&method==='focus'));});return (this.commandExecutionQueue(response,status).then(()=>{if(!focusChanged){let target=false;if(this.element){if($(this.element).data('refocus-blur')&&this.preCommandsFocusedElementSelector)target=document.querySelector(`[data-drupal-selector="${this.preCommandsFocusedElementSelector}"]`);if(!target&&!$(this.element).data('disable-refocus')){for(let n=elementParents.length-1;!target&&n>=0;n--)target=document.querySelector(`[data-drupal-selector="${elementParents[n].getAttribute('data-drupal-selector')}"]`);}}if(target)$(target).trigger('focus');}if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}this.settings=null;}).catch((error)=>console.error(Drupal.t('An error occurred during the execution of the Ajax response: !error',{'!error':error}))));};Drupal.Ajax.prototype.getEffect=function(response){const type=response.effect||this.effect;const speed=response.speed||this.speed;const effect={};if(type==='none'){effect.showEffect='show';effect.hideEffect='hide';effect.showSpeed='';}else if(type==='fade'){effect.showEffect='fadeIn';effect.hideEffect='fadeOut';effect.showSpeed=speed;}else{effect.showEffect=`${type}Toggle`;effect.hideEffect=`${type}Toggle`;effect.showSpeed=speed;}return effect;};Drupal.Ajax.prototype.error=function(xmlhttprequest,uri,customMessage){if(this.progress.element)$(this.progress.element).remove();if(this.progress.object)this.progress.object.stopMonitoring();$(this.wrapper).show();$(this.element).prop('disabled',false);if(this.$form&&document.body.contains(this.$form.get(0))){const settings=this.settings||drupalSettings;Drupal.attachBehaviors(this.$form.get(0),settings);}throw new Drupal.AjaxError(xmlhttprequest,uri,customMessage);};Drupal.theme.ajaxWrapperNewContent=($newContent,ajax,response)=>(response.effect||ajax.effect)!=='none'&&$newContent.filter((i)=>!(($newContent[i].nodeName==='#comment'||($newContent[i].nodeName==='#text'&&/^(\s|\n|\r)*$/.test($newContent[i].textContent))))).length>1?Drupal.theme('ajaxWrapperMultipleRootElements',$newContent):$newContent;Drupal.theme.ajaxWrapperMultipleRootElements=($elements)=>$('<div></div>').append($elements);Drupal.AjaxCommands=function(){};Drupal.AjaxCommands.prototype={insert(ajax,response){const $wrapper=response.selector?$(response.selector):$(ajax.wrapper);const method=response.method||ajax.method;const effect=ajax.getEffect(response);const settings=response.settings||ajax.settings||drupalSettings;const parseHTML=(htmlString)=>{const fragment=document.createDocumentFragment();const template=fragment.appendChild(document.createElement('template'));template.innerHTML=htmlString;return template.content.childNodes;};let $newContent=$(parseHTML(response.data));
307$newContent=Drupal.theme('ajaxWrapperNewContent',$newContent,ajax,response);switch(method){case 'html':case 'replaceWith':case 'replaceAll':case 'empty':case 'remove':Drupal.detachBehaviors($wrapper.get(0),settings);break;default:break;}$wrapper[method]($newContent);if(effect.showEffect!=='show')$newContent.hide();const $ajaxNewContent=$newContent.find('.ajax-new-content');if($ajaxNewContent.length){$ajaxNewContent.hide();$newContent.show();$ajaxNewContent[effect.showEffect](effect.showSpeed);}else{if(effect.showEffect!=='show')$newContent[effect.showEffect](effect.showSpeed);}$newContent.each((index,element)=>{if(element.nodeType===Node.ELEMENT_NODE&&document.documentElement.contains(element))Drupal.attachBehaviors(element,settings);});},remove(ajax,response,status){const settings=response.settings||ajax.settings||drupalSettings;$(response.selector).each(function(){Drupal.detachBehaviors(this,settings);}).remove();},changed(ajax,response,status){const $element=$(response.selector);if(!$element.hasClass('ajax-changed')){$element.addClass('ajax-changed');if(response.asterisk)$element.find(response.asterisk).append(` <abbr class="ajax-changed" title="${Drupal.t('Changed')}">*</abbr> `);}},alert(ajax,response,status){window.alert(response.text);},announce(ajax,response){if(response.priority)Drupal.announce(response.text,response.priority);else Drupal.announce(response.text);},redirect(ajax,response,status){window.location=response.url;},css(ajax,response,status){$(response.selector).css(response.argument);},settings(ajax,response,status){const ajaxSettings=drupalSettings.ajax;if(ajaxSettings)Drupal.ajax.expired().forEach((instance)=>{if(instance.selector){const selector=instance.selector.replace('#','');if(selector in ajaxSettings)delete ajaxSettings[selector];}});if(response.merge)$.extend(true,drupalSettings,response.settings);else ajax.settings=response.settings;},data(ajax,response,status){$(response.selector).data(response.name,response.value);},focusFirst(ajax,response,status){let focusChanged=false;const container=document.querySelector(response.selector);if(container){const tabbableElements=tabbable(container);if(tabbableElements.length){tabbableElements[0].focus();focusChanged=true;}else{if(isFocusable(container)){container.focus();focusChanged=true;}}}if(ajax.hasOwnProperty('element')&&!focusChanged)ajax.element.focus();},invoke(ajax,response,status){const $element=$(response.selector);$element[response.method](...response.args);},restripe(ajax,response,status){$(response.selector).find('> tbody > tr:visible, > tr:visible').removeClass('odd even').filter(':even').addClass('odd').end().filter(':odd').addClass('even');},update_build_id(ajax,response,status){document.querySelectorAll(`input[name="form_build_id"][value="${response.old}"]`).forEach((item)=>{item.value=response.new;});},add_css(ajax,response,status){const allUniqueBundleIds=response.data.map(function(style){const uniqueBundleId=style.href;if(!loadjs.isDefined(uniqueBundleId))loadjs(`css!${style.href}`,uniqueBundleId,{before(path,styleEl){Object.keys(style).forEach((attributeKey)=>{styleEl.setAttribute(attributeKey,style[attributeKey]);});}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},message(ajax,response){const messages=new Drupal.Message(document.querySelector(response.messageWrapperQuerySelector));if(response.clearPrevious)messages.clear();messages.add(response.message,response.messageOptions);},add_js(ajax,response,status){const parentEl=document.querySelector(response.selector||'body');const settings=ajax.settings||drupalSettings;const allUniqueBundleIds=response.data.map((script)=>{const uniqueBundleId=script.src;if(!loadjs.isDefined(uniqueBundleId))loadjs(script.src,uniqueBundleId,{async:false,before(path,scriptEl){Object.keys(script).forEach((attributeKey)=>{scriptEl.setAttribute(attributeKey,script[attributeKey]);});parentEl.appendChild(scriptEl);return false;}});return uniqueBundleId;});return new Promise((resolve,reject)=>{loadjs.ready(allUniqueBundleIds,{success(){Drupal.attachBehaviors(parentEl,settings);resolve();},error(depsNotFound){const message=Drupal.t(`The following files could not be loaded: @dependencies`,{'@dependencies':depsNotFound.join(', ')});reject(message);}});});},scrollTop(ajax,response){document.querySelector(response.selector)?.scrollIntoView();}};const stopEvent=(xhr,settings)=>{return (xhr.getResponseHeader('X-Drupal-Ajax-Token')==='1'&&typeof settings.isInProgress==='function'&&settings.isInProgress());};$.extend(true,$.event.special,{ajaxSuccess:{trigger(event,xhr,settings){if(stopEvent(xhr,settings))return false;}},ajaxComplete:{trigger(event,xhr,settings){if(stopEvent(xhr,settings)){$.active++;return false;}}}});})(jQuery,window,Drupal,drupalSettings,loadjs,window.tabbable);; 308(function($,window,Drupal,drupalSettings){Drupal.Ajax.prototype.findGlyphicon=function(element){return $(element).closest('.form-item').find('.ajax-progress.glyphicon');};Drupal.Ajax.prototype.glyphiconStart=function(element,message){var $glyphicon=this.findGlyphicon(element);if($glyphicon[0]){$glyphicon.addClass('glyphicon-spin');if($.fn.tooltip&&drupalSettings.bootstrap.tooltip_enabled){$glyphicon.removeAttr('data-toggle').removeAttr('data-original-title').removeAttr('title').tooltip('destroy');;if(message)$glyphicon.attr('data-toggle','tooltip').attr('title',message).tooltip();}if(message)$glyphicon.parent().append('<div class="sr-only message">'+message+'</div>');}return $glyphicon;};Drupal.Ajax.prototype.glyphiconStop=function(element){var $glyphicon=this.findGlyphicon(element);if($glyphicon[0]){$glyphicon.removeClass('glyphicon-spin');if($.fn.tooltip&&drupalSettings.bootstrap.tooltip_enabled){$glyphicon.removeAttr('data-toggle').removeAttr('data-original-title').removeAttr('title').tooltip('destroy');;}}};Drupal.Ajax.prototype.setProgressIndicatorThrobber=function(){var $element=$(this.element);var $glyphicon=this.glyphiconStart($element,this.progress.message);if($glyphicon[0]){this.progress.element=$glyphicon.parent();this.progress.glyphicon=true;return;}if(!this.progress.element)this.progress.element=$(Drupal.theme('ajaxThrobber'));if(this.progress.message)this.progress.element.after('<div class="message">'+this.progress.message+'</div>');if($element.is('input')||$element.is('select'))$element.after(this.progress.element);else $element.append(this.progress.element);};var success=Drupal.Ajax.prototype.success;Drupal.Ajax.prototype.success=function(response,status){if(this.progress.element)this.progress.element.parent().find('.message').remove();return success.apply(this,[response,status]);};})(jQuery,this,Drupal,drupalSettings);; 309(function($,Drupal,debounce){const cache={right:0,left:0,bottom:0,top:0};const cssVarPrefix='--drupal-displace-offset';const documentStyle=document.documentElement.style;const offsetKeys=Object.keys(cache);const offsetProps={};offsetKeys.forEach((edge)=>{offsetProps[edge]={enumerable:true,get(){return cache[edge];},set(value){if(value!==cache[edge])documentStyle.setProperty(`${cssVarPrefix}-${edge}`,`${value}px`);cache[edge]=value;}};});
309const offsets=Object.seal(Object.defineProperties({},offsetProps));function getRawOffset(el,edge){const $el=$(el);const documentElement=document.documentElement;let displacement=0;const horizontal=edge==='left'||edge==='right';let placement=$el.offset()[horizontal?'left':'top'];placement-=window[`scroll${horizontal?'X':'Y'}`]||document.documentElement[`scroll${horizontal?'Left':'Top'}`]||0;switch(edge){case 'top':displacement=placement+$el.outerHeight();break;case 'left':displacement=placement+$el.outerWidth();break;case 'bottom':displacement=documentElement.clientHeight-placement;break;case 'right':displacement=documentElement.clientWidth-placement;break;default:displacement=0;}return displacement;}function calculateOffset(edge){let edgeOffset=0;document.querySelectorAll(`[data-offset-${edge}]`).forEach((el)=>{if(el.style.display==='none')return;let displacement=parseInt(el.getAttribute(`data-offset-${edge}`),10);if(isNaN(displacement))displacement=getRawOffset(el,edge);edgeOffset=Math.max(edgeOffset,displacement);});return edgeOffset;}function displace(broadcast=true){const newOffsets={};offsetKeys.forEach((edge)=>{newOffsets[edge]=calculateOffset(edge);});offsetKeys.forEach((edge)=>{offsets[edge]=newOffsets[edge];});if(broadcast)$(document).trigger('drupalViewportOffsetChange',offsets);return offsets;}Drupal.behaviors.drupalDisplace={attach(){if(this.displaceProcessed)return;this.displaceProcessed=true;$(window).on('resize.drupalDisplace',debounce(displace,200));}};Drupal.displace=displace;Object.defineProperty(Drupal.displace,'offsets',{value:offsets,writable:false});Drupal.displace.calculateOffset=calculateOffset;})(jQuery,Drupal,Drupal.debounce);; 310(($)=>{let cachedScrollbarWidth=null;const {max,abs}=Math;const regexHorizontal=/left|center|right/;const regexVertical=/top|center|bottom/;const regexOffset=/[+-]\d+(\.[\d]+)?%?/;const regexPosition=/^\w+/;const _position=$.fn.position;function getOffsets(offsets,width,height){return [parseFloat(offsets[0])*(typeof offsets[0]==='string'&&offsets[0].endsWith('%')?width/100:1),parseFloat(offsets[1])*(typeof offsets[1]==='string'&&offsets[1].endsWith('%')?height/100:1)];}function parseCss(element,property){return parseInt(window.getComputedStyle(element)[property],10)||0;}function getDimensions(elem){const raw=elem[0];if(raw.nodeType===Node.DOCUMENT_NODE)return {width:elem.width(),height:elem.height(),offset:{top:0,left:0}};if(!!raw&&raw===raw.window)return {width:elem.width(),height:elem.height(),offset:{top:elem.scrollTop(),left:elem.scrollLeft()}};if(raw.preventDefault)return {width:0,height:0,offset:{top:raw.pageY,left:raw.pageX}};return {width:elem.outerWidth(),height:elem.outerHeight(),offset:elem.offset()};}const collisions={fit:{left(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollLeft:within.offset.left;const outerWidth=within.width;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=withinOffset-collisionPosLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-withinOffset;let newOverRight;if(data.collisionWidth>outerWidth)if(overLeft>0&&overRight<=0){newOverRight=position.left+overLeft+data.collisionWidth-outerWidth-withinOffset;position.left+=overLeft-newOverRight;}else if(overRight>0&&overLeft<=0)position.left=withinOffset;else if(overLeft>overRight)position.left=withinOffset+outerWidth-data.collisionWidth;else position.left=withinOffset;else if(overLeft>0)position.left+=overLeft;else if(overRight>0)position.left-=overRight;else position.left=max(position.left-collisionPosLeft,position.left);},top(position,data){const {within}=data;const withinOffset=within.isWindow?within.scrollTop:within.offset.top;const outerHeight=data.within.height;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=withinOffset-collisionPosTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-withinOffset;let newOverBottom;if(data.collisionHeight>outerHeight)if(overTop>0&&overBottom<=0){newOverBottom=position.top+overTop+data.collisionHeight-outerHeight-withinOffset;position.top+=overTop-newOverBottom;}else if(overBottom>0&&overTop<=0)position.top=withinOffset;else if(overTop>overBottom)position.top=withinOffset+outerHeight-data.collisionHeight;else position.top=withinOffset;else if(overTop>0)position.top+=overTop;else if(overBottom>0)position.top-=overBottom;else position.top=max(position.top-collisionPosTop,position.top);}},flip:{left(position,data){const {within}=data;const withinOffset=within.offset.left+within.scrollLeft;const outerWidth=within.width;const offsetLeft=within.isWindow?within.scrollLeft:within.offset.left;const collisionPosLeft=position.left-data.collisionPosition.marginLeft;const overLeft=collisionPosLeft-offsetLeft;const overRight=collisionPosLeft+data.collisionWidth-outerWidth-offsetLeft;const myOffset=data.my[0]==='left'?-data.elemWidth:data.my[0]==='right'?data.elemWidth:0;const atOffset=data.at[0]==='left'?data.targetWidth:data.at[0]==='right'?-data.targetWidth:0;const offset=-2*data.offset[0];let newOverRight;let newOverLeft;if(overLeft<0){newOverRight=position.left+myOffset+atOffset+offset+data.collisionWidth-outerWidth-withinOffset;if(newOverRight<0||newOverRight<abs(overLeft))position.left+=myOffset+atOffset+offset;}else{if(overRight>0){newOverLeft=position.left-data.collisionPosition.marginLeft+myOffset+atOffset+offset-offsetLeft;if(newOverLeft>0||abs(newOverLeft)<overRight)position.left+=myOffset+atOffset+offset;}}},top(position,data){const {within}=data;const withinOffset=within.offset.top+within.scrollTop;const outerHeight=within.height;const offsetTop=within.isWindow?within.scrollTop:within.offset.top;const collisionPosTop=position.top-data.collisionPosition.marginTop;const overTop=collisionPosTop-offsetTop;const overBottom=collisionPosTop+data.collisionHeight-outerHeight-offsetTop;const top=data.my[1]==='top';const myOffset=top?-data.elemHeight:data.my[1]==='bottom'?data.elemHeight:0;const atOffset=data.at[1]==='top'?data.targetHeight:data.at[1]==='bottom'?-data.targetHeight:0;const offset=-2*data.offset[1];let newOverTop;let newOverBottom;if(overTop<0){newOverBottom=position.top+myOffset+atOffset+offset+data.collisionHeight-outerHeight-withinOffset;if(newOverBottom<0||newOverBottom<abs(overTop))position.top+=myOffset+atOffset+offset;}else{if(overBottom>0){newOverTop=position.top-data.collisionPosition.marginTop+myOffset+atOffset+offset-offsetTop;if(newOverTop>0||abs(newOverTop)<overBottom)position.top+=myOffset+atOffset+offset;}}}},flipfit:{left(...args){collisions.flip.left.apply(this,args);collisions.fit.left.apply(this,args);},top(...args){collisions.flip.top.apply(this,args);collisions.fit.top.apply(this,args);}}};$.position={scrollbarWidth(){if(cachedScrollbarWidth!==undefined)return cachedScrollbarWidth;const div=$('<div '+"style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'>"+"<div style='height:100px;width:auto;'></div></div>");const innerDiv=div.children()[0];$('body').append(div);const w1=innerDiv.offsetWidth;div[0].style.overflow='scroll';let w2=innerDiv.offsetWidth;if(w1===w2)w2=div[0].clientWidth;div.remove();cachedScrollbarWidth=w1-w2;return cachedScrollbarWidth;},getScrollInfo(within){const overflowX=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-x'];const overflowY=within.isWindow||within.isDocument?'':window.getComputedStyle(within.element[0])['overflow-y'];const hasOverflowX=overflowX==='scroll'||(overflowX==='auto'&&within.width<within.element[0].scrollWidth);const hasOverflowY=overflowY==='scroll'||(overflowY==='auto'&&within.height<within.element[0].scrollHeight);return {width:hasOverflowY?$.position.scrollbarWidth():0,height:hasOverflowX?$.position.scrollbarWidth():0};},getWithinInfo(element){const withinElement=$(element||window);const isWindow=!!withinElement[0]&&withinElement[0]===withinElement[0].window;const isDocument=!!withinElement[0]&&withinElement[0].nodeType===Node.DOCUMENT_NODE;const hasOffset=!isWindow&&!isDocument;return {element:withinElement,isWindow,isDocument,offset:hasOffset?$(element).offset():{left:0,top:0},scrollLeft:withinElement.scrollLeft(),scrollTop:withinElement.scrollTop(),width:withinElement.outerWidth(),height:withinElement.outerHeight()};}};$.fn.position=function(options){if(!options||!options.of)return _position.apply(this,arguments);options=$.extend({},options);const within=$.position.getWithinInfo(options.within);const scrollInfo=$.position.getScrollInfo(within);const collision=(options.collision||'flip').split(' ');const offsets={};const target=typeof options.of==='string'?$(document).find(options.of):$(options.of);const dimensions=getDimensions(target);const targetWidth=dimensions.width;const targetHeight=dimensions.height;const targetOffset=dimensions.offset;if(target[0].preventDefault)options.at='left top';const basePosition=$.extend({},targetOffset);$.each(['my','at'],function(){let pos=(options[this]||'').split(' ');
310if(pos.length===1)pos=regexHorizontal.test(pos[0])?pos.concat(['center']):regexVertical.test(pos[0])?['center'].concat(pos):['center','center'];pos[0]=regexHorizontal.test(pos[0])?pos[0]:'center';pos[1]=regexVertical.test(pos[1])?pos[1]:'center';const horizontalOffset=regexOffset.exec(pos[0]);const verticalOffset=regexOffset.exec(pos[1]);offsets[this]=[horizontalOffset?horizontalOffset[0]:0,verticalOffset?verticalOffset[0]:0];options[this]=[regexPosition.exec(pos[0])[0],regexPosition.exec(pos[1])[0]];});if(collision.length===1)collision[1]=collision[0];if(options.at[0]==='right')basePosition.left+=targetWidth;else{if(options.at[0]==='center')basePosition.left+=targetWidth/2;}if(options.at[1]==='bottom')basePosition.top+=targetHeight;else{if(options.at[1]==='center')basePosition.top+=targetHeight/2;}const atOffset=getOffsets(offsets.at,targetWidth,targetHeight);basePosition.left+=atOffset[0];basePosition.top+=atOffset[1];return this.each(function(){let using;const elem=$(this);const elemWidth=elem.outerWidth();const elemHeight=elem.outerHeight();const marginLeft=parseCss(this,'marginLeft');const marginTop=parseCss(this,'marginTop');const collisionWidth=elemWidth+marginLeft+parseCss(this,'marginRight')+scrollInfo.width;const collisionHeight=elemHeight+marginTop+parseCss(this,'marginBottom')+scrollInfo.height;const position=$.extend({},basePosition);const myOffset=getOffsets(offsets.my,elem.outerWidth(),elem.outerHeight());if(options.my[0]==='right')position.left-=elemWidth;else{if(options.my[0]==='center')position.left-=elemWidth/2;}if(options.my[1]==='bottom')position.top-=elemHeight;else{if(options.my[1]==='center')position.top-=elemHeight/2;}position.left+=myOffset[0];position.top+=myOffset[1];const collisionPosition={marginLeft,marginTop};$.each(['left','top'],function(i,dir){if(collisions[collision[i]])collisions[collision[i]][dir](position,{targetWidth,targetHeight,elemWidth,elemHeight,collisionPosition,collisionWidth,collisionHeight,offset:[atOffset[0]+myOffset[0],atOffset[1]+myOffset[1]],my:options.my,at:options.at,within,elem});});if(options.using)using=function(props){const left=targetOffset.left-position.left;const right=left+targetWidth-elemWidth;const top=targetOffset.top-position.top;const bottom=top+targetHeight-elemHeight;const feedback={target:{element:target,left:targetOffset.left,top:targetOffset.top,width:targetWidth,height:targetHeight},element:{element:elem,left:position.left,top:position.top,width:elemWidth,height:elemHeight},horizontal:right<0?'left':left>0?'right':'center',vertical:bottom<0?'top':top>0?'bottom':'middle'};if(targetWidth<elemWidth&&abs(left+right)<targetWidth)feedback.horizontal='center';if(targetHeight<elemHeight&&abs(top+bottom)<targetHeight)feedback.vertical='middle';if(max(abs(left),abs(right))>max(abs(top),abs(bottom)))feedback.important='horizontal';else feedback.important='vertical';options.using.call(this,props,feedback);};elem.offset($.extend(position,{using}));});};if(!$.hasOwnProperty('ui'))$.ui={};$.ui.position=collisions;})(jQuery);; 311(function($,Drupal,Bootstrap,Attributes){'use strict';var $document=$(document);Bootstrap.modalFindFocusableElement=function(modal){return modal.$dialogBody.find(':input,:button,.btn').not('.visually-hidden,.sr-only');};$document.on('shown.bs.modal',function(e){var $modal=$(e.target);var modal=$modal.data('bs.modal');var $ckeditor=$modal.find('[data-ckeditor5-id]');if($ckeditor.length){$('.ck-body-wrapper').appendTo($modal);$('.ck-body-wrapper .ck-body>div').each(function(){$(this).css('margin-top',-window.scrollY+'px');});}if(modal&&modal.options.focusInput){var $focusable=Bootstrap.modalFindFocusableElement(modal);if($focusable&&$focusable[0]){var $input=$focusable.filter(':visible:first').focus();if(modal.options.selectText&&$input.is(':text'))$input[0].setSelectionRange(0,$input[0].value.length);}else{if(modal.$close.is(':visible'))modal.$close.focus();}}});Bootstrap.once('modal',function(settings){Bootstrap.replacePlugin('modal',function(){var BootstrapModal=this;Bootstrap.Modal=function(element,options){this.$body=$(document.body);this.$element=$(element);
311this.$dialog=this.$element.find('.modal-dialog');this.$header=this.$dialog.find('.modal-header');this.$title=this.$dialog.find('.modal-title');this.$close=this.$header.find('.close');this.$footer=this.$dialog.find('.modal-footer');this.$content=this.$dialog.find('.modal-content');this.$dialogBody=this.$dialog.find('.modal-body');this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=false;this.options=this.mapDialogOptions(options);};Bootstrap.Modal.DEFAULTS=$.extend({},BootstrapModal.DEFAULTS,{animation:!!settings.modal_animation,backdrop:settings.modal_backdrop==='static'?'static':!!settings.modal_backdrop,focusInput:!!settings.modal_focus_input,selectText:!!settings.modal_select_text,keyboard:!!settings.modal_keyboard,remote:null,show:!!settings.modal_show,size:settings.modal_size});Bootstrap.Modal.prototype=BootstrapModal.prototype;Bootstrap.Modal.prototype.destroy=function(){this.hide();Drupal.detachBehaviors(this.$element[0]);this.$element.removeData('bs.modal').remove();};Bootstrap.Modal.prototype.init=function(){if(this.options.remote)this.$content.load(this.options.remote,$.proxy(function(){this.$element.trigger('loaded.bs.modal');},this));};Bootstrap.Modal.prototype.mapDialogOptions=function(options){return options||{};};var Plugin=function(){var args=Array.prototype.slice.call(arguments);var method=args[0];var options=args[1]||{};var relatedTarget=args[2]||null;if($.isPlainObject(method)){relatedTarget=options||null;options=method;method=null;}var ret=void 0;this.each(function(){var $this=$(this);var data=$this.data('bs.modal');var initialize=false;var showMethods=['open','show','toggle'];if(!data&&method&&showMethods.indexOf(method)===-1)return;options=Bootstrap.normalizeObject($.extend({},Bootstrap.Modal.DEFAULTS,data&&data.options,$this.data(),options));delete options['bs.modal'];if(!data){$this.data('bs.modal',(data=new Bootstrap.Modal(this,options)));initialize=true;}if(initialize||(!method&&!args.length))data.init();if(method)if(typeof data[method]==='function')try{ret=data[method].apply(data,args.slice(1));}catch(e){Drupal.throwError(e);}else Bootstrap.unsupported('method',method);else{data.option(options);if(options.show&&!data.isShown)data.show(relatedTarget);}});return this.length===1&&ret!==void 0?ret:this;};Plugin.Constructor=Bootstrap.Modal;$document.off('click.bs.modal.data-api').on('click.bs.modal.data-api','[data-toggle="modal"]',function(e){var $this=$(this);var href=$this.attr('href');var target=$this.attr('data-target')||(href&&href.replace(/.*(?=#[^\s]+$)/,''));var $target=$document.find(target);var options=$target.data('bs.modal')?'toggle':$.extend({remote:!/#/.test(href)&&href},$target.data(),$this.data());if($this.is('a'))e.preventDefault();$target.one('show.bs.modal',function(showEvent){if(showEvent.isDefaultPrevented())return;$target.one('hidden.bs.modal',function(){$this.is(':visible')&&$this.trigger('focus');});});$target.modal(options,this);});return Plugin;});$.extend(Drupal.theme,{bootstrapModal:function(variables){var output='';var settings=drupalSettings.bootstrap||{};var defaults={attributes:{class:['modal'],tabindex:-1,role:'dialog'},body:'',closeButton:true,description:{attributes:{class:['help-block']},content:null,position:'before'},footer:'',id:'drupal-modal',size:settings.modal_size?settings.modal_size:'',title:{attributes:{class:['modal-title']},content:Drupal.t('Loading...'),html:false,tag:'h4'}};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id));if(settings.modal_animation)attributes.addClass('fade');output+='<div'+attributes+'>';output+=Drupal.theme('bootstrapModalDialog',_.omit(variables,'attributes'));output+='</div>';return output;},bootstrapModalDialog:function(variables){var output='';var defaults={attributes:{class:['modal-dialog'],role:'document'},id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--dialog'));if(variables.size)attributes.addClass(variables.size);output+='<div'+attributes+'>';output+=Drupal.theme('bootstrapModalContent',_.omit(variables,'attributes'));output+='</div>';return output;},bootstrapModalContent:function(variables){var output='';var defaults={attributes:{class:['modal-content']},id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--content'));output+='<div'+attributes+'>';variables=_.omit(variables,'attributes');output+=Drupal.theme('bootstrapModalHeader',variables);output+=Drupal.theme('bootstrapModalBody',variables);output+=Drupal.theme('bootstrapModalFooter',variables);output+='</div>';return output;},bootstrapModalBody:function(variables){var output='';var defaults={attributes:{class:['modal-body']},body:'',description:{attributes:{class:['help-block']},content:null,position:'before'},id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--body'));output+='<div'+attributes+'>';if(typeof variables.description==='string')variables.description=$.extend({},defaults.description,{content:variables.description});var description=variables.description;description.attributes=Attributes.create(defaults.description.attributes).merge(description.attributes);if(description.content&&description.position==='invisible')description.attributes.addClass('sr-only');if(description.content&&description.position==='before')output+='<p'+description.attributes+'>'+description.content+'</p>';output+=variables.body;if(description.content&&(description.position==='after'||description.position==='invisible'))output+='<p'+description.attributes+'>'+description.content+'</p>';output+='</div>';return output;},bootstrapModalClose:function(variables){var defaults={attributes:{'aria-label':Drupal.t('Close'),class:['close'],'data-dismiss':'modal',type:'button'}};variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);return '<button'+attributes+'><span aria-hidden="true">×</span></button>';},bootstrapModalFooter:function(variables,force){var output='';var defaults={attributes:{class:['modal-footer']},footer:'',id:'drupal-modal'};variables=$.extend(true,{},defaults,variables);if(force||variables.footer){var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--footer'));output+='<div'+attributes+'>';output+=variables.footer;output+='</div>';}return output;},bootstrapModalHeader:function(variables){var output='';var defaults={attributes:{class:['modal-header']}
311,closeButton:true,id:'drupal-modal',title:{attributes:{class:['modal-title']},content:Drupal.t('Loading...'),html:false,tag:'h4'}};variables=$.extend(true,{},defaults,variables);if(typeof variables.title==='string')variables.title=$.extend({},defaults.title,{content:variables.title});var title=Drupal.theme('bootstrapModalTitle',variables.title);if(title){var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--header'));output+='<div'+attributes+'>';if(variables.closeButton)output+=Drupal.theme('bootstrapModalClose',_.omit(variables,'attributes'));output+=title;output+='</div>';}return output;},bootstrapModalTitle:function(variables){var output='';var defaults={attributes:{class:['modal-title']},closeButton:true,id:'drupal-modal',content:Drupal.t('Loading...'),html:false,tag:'h4'};if(typeof variables==='string')variables=$.extend({},defaults,{content:title});variables=$.extend(true,{},defaults,variables);var attributes=Attributes.create(defaults.attributes).merge(variables.attributes);attributes.set('id',attributes.get('id',variables.id+'--title'));output+='<'+Drupal.checkPlain(variables.tag)+Attributes.create(defaults.attributes).merge(variables.attributes)+'>';if(variables.closeButton)output+=Drupal.theme('bootstrapModalClose',_.omit(variables,'attributes'));output+=(variables.html?variables.content:Drupal.checkPlain(variables.content));output+='</'+Drupal.checkPlain(variables.tag)+'>';return output;}});});})(window.jQuery,window.Drupal,window.Drupal.bootstrap,window.Attributes);; 312(function($,Drupal,Bootstrap,Attributes){Bootstrap.Dialog=Bootstrap.Dialog||{};Bootstrap.Dialog.handlers={};Bootstrap.Dialog.Handler=function(type,data){this.ctor=$.fn.modal;this.extend=null;this.plugin='modal';this.prefix='modal';this.themeHooks={modal:'bootstrapModal',dialog:'bootstrapModalDialog',header:'bootstrapModalHeader',title:'bootstrapModalTitle',close:'bootstrapModalClose',content:'bootstrapModalContent',body:'bootstrapModalBody',footer:'bootstrapModalFooter'};this.type=type;this.selectors={dialog:'.modal-dialog',header:'.modal-header',title:'.modal-title',close:'.close',content:'.modal-content',body:'.modal-body',footer:'.modal-footer',buttons:'.modal-buttons'};$.extend(this,data);if(this.extend)Bootstrap.extend(this.plugin,this.extend);};Bootstrap.Dialog.Handler.get=function(type){if(type instanceof $)type=type[0];if(type instanceof HTMLElement)type=type.dialogType;if(!type)type='modal';if(!Bootstrap.Dialog.handlers[type])Bootstrap.Dialog.handlers[type]=new Bootstrap.Dialog.Handler();return Bootstrap.Dialog.handlers[type];};Bootstrap.Dialog.Handler.register=function(type,data){Bootstrap.Dialog.handlers[type]=new Bootstrap.Dialog.Handler(type,data);};Bootstrap.Dialog.Handler.prototype.invoke=function(context){var args=Array.prototype.slice.call(arguments);return this.ctor.apply(context,args.slice(1));};Bootstrap.Dialog.Handler.prototype.theme=function(hook){var args=Array.prototype.slice.call(arguments);return $(Drupal.theme.apply(Drupal.theme,[this.themeHooks[hook]].concat(args.slice(1))));};Bootstrap.Dialog.Handler.prototype.ensureModalStructure=function(element,options){var $element=$(element);if($element.is('[data-drupal-theme="'+this.themeHooks.modal+'"]'))return;var attributes=Attributes.create(element).remove('style').set('data-drupal-theme',this.themeHooks.modal);if(options.$trigger&&options.$trigger[0]){var trigger=options.$trigger[0];var data={};for(var i=0,l=trigger.attributes.length;i<l;i++){var name=trigger.attributes[i].name;if(name&&name.substring(0,5)==='data-')data[name]=trigger.getAttribute(name);}attributes.merge(data);}options=$.extend(true,{},options,{attributes});var $modal=this.theme('modal',options);var $body=$element.find(this.selectors.body);var $existing=$body[0]?$body.contents():$element.contents();$element.attr(Attributes.create($modal).toPlainObject());$element.append($modal.html());$element.find(this.selectors.body).append($existing);};})(jQuery,Drupal,Drupal.bootstrap,Attributes);; 313(function($,Drupal,Bootstrap,Attributes,drupalSettings){'use strict';Bootstrap.once('modal.jquery.ui.bridge',function(settings){var rtl=document.documentElement.getAttribute('dir').toLowerCase()==='rtl';$(function(){drupalSettings.dialog.buttonClass='btn';drupalSettings.dialog.buttonPrimaryClass='btn-primary';});Bootstrap.Dialog.Bridge=function(options){var args=Array.prototype.slice.call(arguments);var $element=$(this);var type=options&&options.dialogType||$element[0].dialogType||'modal';$element[0].dialogType=type;var handler=Bootstrap.Dialog.Handler.get(type);if(args.length===1&&typeof options==='object'){this.each(function(){handler.ensureModalStructure(this,options);});return handler.invoke(this,{dialogOptions:options,jQueryUiBridge:true});}var ret;try{ret=handler.invoke.apply(handler,[this].concat(args));}catch(e){Bootstrap.warn(e);}return this.length===1&&ret!==void 0?ret:this;};Bootstrap.createPlugin('dialog',Bootstrap.Dialog.Bridge);Bootstrap.Modal.Bridge=function(){var Modal=this;return {DEFAULTS:{jQueryUiBridge:false},prototype:{close:function(){var _this=this;this.hide.apply(this,arguments);setTimeout(function(){if(!_this.isShown&&_this.$backdrop)_this.hideModal();},(Modal.TRANSITION_DURATION!==void 0?Modal.TRANSITION_DURATION:300)+10);},createButtons:function(){var handler=Bootstrap.Dialog.Handler.get(this.$element);this.$footer.find(handler.selectors.buttons).remove();var buttons=this.options.dialogOptions&&this.options.dialogOptions.buttons||[];if(!Array.isArray(buttons)){var array=[];for(var k in buttons)if(typeof buttons[k]==='function')array.push({label:k,click:buttons[k]});else if(buttons[k].text||buttons[k].label){Bootstrap.warn('Malformed jQuery UI dialog button: @key. The button object should be inside an array.',{'@key':k});array.push(buttons[k]);}else Bootstrap.unsupported('button',k,buttons[k]);buttons=array;}
313if(buttons.length){var $buttons=$('<div class="modal-buttons"/>').appendTo(this.$footer);for(var i=0,l=buttons.length;i<l;i++){var button=buttons[i];var $button=$(Drupal.theme('bootstrapModalDialogButton',button));if(typeof button.create==='function')button.create.call($button[0]);if(typeof button.click==='function')$button.on('click',button.click.bind(this.$element));$buttons.append($button);}}this.$footer[this.$footer.children()[0]?'show':'hide']();},init:function(){var handler=Bootstrap.Dialog.Handler.get(this.$element);if(!this.$dialog)this.$dialog=this.$element.find(handler.selectors.dialog);this.$dialog.addClass('js-drupal-dialog');if(!this.$header)this.$header=this.$dialog.find(handler.selectors.header);if(!this.$title)this.$title=this.$dialog.find(handler.selectors.title);if(!this.$close)this.$close=this.$header.find(handler.selectors.close);if(!this.$footer)this.$footer=this.$dialog.find(handler.selectors.footer);if(!this.$content)this.$content=this.$dialog.find(handler.selectors.content);if(!this.$dialogBody)this.$dialogBody=this.$dialog.find(handler.selectors.body);if(this.options.jQueryUiBridge){this.$element.on('hide.bs.modal',Bootstrap.relayEvent(this.$element,'dialogbeforeclose',false));this.$element.on('hidden.bs.modal',Bootstrap.relayEvent(this.$element,'dialogclose',false));this.$element.on('show.bs.modal',Bootstrap.relayEvent(this.$element,'dialogcreate',false));this.$element.on('shown.bs.modal',Bootstrap.relayEvent(this.$element,'dialogopen',false));}if(!this.$footer[0])this.$footer=handler.theme('footer',{},true).insertAfter(this.$dialogBody);$.extend(true,this.options,this.mapDialogOptions(this.options));this.createButtons();this.super();if(this.options.dialogOptions&&this.options.dialogOptions.autoResize&&this.options.dialogOptions.position)this.position(this.options.dialogOptions.position);if(this.options.jQueryUiBridge&&this.options.show&&!this.isShown)this.show();},instance:function(){Bootstrap.unsupported('method','instance',arguments);},isOpen:function(){return !!this.isShown;},mapDialogOptions:function(options){var handler=Bootstrap.Dialog.Handler.get(this.$element);var mappedOptions={};var dialogOptions=options.dialogOptions||{};delete options.dialogOptions;for(var k in options)if(Modal.DEFAULTS.hasOwnProperty(k))mappedOptions[k]=options[k];else dialogOptions[k]=options[k];var cssUnitRegExp=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)?$/;var parseCssUnit=function(value,defaultUnit){var parts=(''+value).match(cssUnitRegExp);return parts&&parts[1]!==void 0?parts[1]+(parts[2]||defaultUnit||'px'):null;};var styles={};var cssProperties=['height','maxHeight','maxWidth','minHeight','minWidth','width'];for(var i=0,l=cssProperties.length;i<l;i++){var prop=cssProperties[i];if(dialogOptions[prop]!==void 0){var value=parseCssUnit(dialogOptions[prop]);if(value){styles[prop]=value;if(dialogOptions.autoResize&&(prop==='height'||prop==='maxHeight')){styles.display='flex';styles.flexDirection='column';this.$dialogBody.css('overflow','scroll');}}}}this.$content.css(styles);var classesMap={'ui-dialog':'modal-content','ui-dialog-titlebar':'modal-header','ui-dialog-title':'modal-title','ui-dialog-titlebar-close':'close','ui-dialog-content':'modal-body','ui-dialog-buttonpane':'modal-footer'};if(dialogOptions.dialogClass){if(dialogOptions.classes===void 0)dialogOptions.classes={};if(dialogOptions.classes['ui-dialog']===void 0)dialogOptions.classes['ui-dialog']='';var dialogClass=dialogOptions.classes['ui-dialog'].split(' ');dialogClass.push(dialogOptions.dialogClass);dialogOptions.classes['ui-dialog']=dialogClass.join(' ');delete dialogOptions.dialogClass;}for(k in classesMap)this.$element.find('.'+classesMap[k]).addClass(k);var events=['beforeClose','close','create','drag','dragStart','dragStop','focus','open','resize','resizeStart','resizeStop'];for(i=0,l=events.length;i<l;i++){var event=events[i].toLowerCase();if(dialogOptions[event]===void 0||typeof dialogOptions[event]!=='function')continue;this.$element.on('dialog'+event,dialogOptions[event]);}var title;if((dialogOptions.title===null||dialogOptions.title===void 0)&&(title=this.$element.attr('title')))dialogOptions.title=title;
313for(var name in dialogOptions){if(!dialogOptions.hasOwnProperty(name)||dialogOptions[name]===void 0)continue;switch(name){case 'appendTo':Bootstrap.unsupported('option',name,dialogOptions.appendTo);break;case 'autoOpen':mappedOptions.show=dialogOptions.show=!!dialogOptions.autoOpen;break;case 'classes':if(dialogOptions.classes)for(var key in dialogOptions.classes)if(dialogOptions.classes.hasOwnProperty(key)&&classesMap[key]!==void 0){var attributes=Attributes.create().addClass(dialogOptions.classes[key]).toPlainObject();var selector='.'+classesMap[key];this.$element.find(selector).addClass(attributes['class']);}break;case 'closeOnEscape':mappedOptions.keyboard=!!dialogOptions.closeOnEscape;if(!dialogOptions.closeOnEscape&&dialogOptions.modal)mappedOptions.backdrop='static';break;case 'closeText':Bootstrap.unsupported('option',name,dialogOptions.closeText);break;case 'draggable':this.$content.draggable({handle:handler.selectors.header,drag:Bootstrap.relayEvent(this.$element,'dialogdrag'),start:Bootstrap.relayEvent(this.$element,'dialogdragstart'),end:Bootstrap.relayEvent(this.$element,'dialogdragend')}).draggable(dialogOptions.draggable?'enable':'disable');break;case 'hide':if(dialogOptions.hide===false||dialogOptions.hide===true){this.$element[dialogOptions.hide?'addClass':'removeClass']('fade');mappedOptions.animation=dialogOptions.hide;}else Bootstrap.unsupported('option',name+' (complex animation)',dialogOptions.hide);break;case 'modal':if(!dialogOptions.closeOnEscape&&dialogOptions.modal)mappedOptions.backdrop='static';else mappedOptions.backdrop=dialogOptions.modal;if(!dialogOptions.modal&&!dialogOptions.position)this.position({my:'center',of:window});break;case 'position':this.position(dialogOptions.position);break;case 'resizable':this.$content.resizable({resize:Bootstrap.relayEvent(this.$element,'dialogresize'),start:Bootstrap.relayEvent(this.$element,'dialogresizestart'),end:Bootstrap.relayEvent(this.$element,'dialogresizeend')}).resizable(dialogOptions.resizable?'enable':'disable');break;case 'show':if(dialogOptions.show===false||dialogOptions.show===true){this.$element[dialogOptions.show?'addClass':'removeClass']('fade');mappedOptions.animation=dialogOptions.show;}else Bootstrap.unsupported('option',name+' (complex animation)',dialogOptions.show);break;case 'title':this.$title.text(dialogOptions.title);break;}}mappedOptions.dialogOptions=dialogOptions;return mappedOptions;},moveToTop:function(){Bootstrap.unsupported('method','moveToTop',arguments);},option:function(){var clone={options:{}};this.super.apply(clone,arguments);$.extend(true,this.options,this.mapDialogOptions(clone.options));this.createButtons();},position:function(position){this.$element.css({bottom:'initial',overflow:'visible',right:'initial'});this.$element.position(position);},open:function(){this.show.apply(this,arguments);},widget:function(){return this.$element;}}};};Bootstrap.extendPlugin('modal',Bootstrap.Modal.Bridge);Bootstrap.Dialog.Handler.register('dialog');Bootstrap.Dialog.Handler.register('modal');$.extend(Drupal.theme,{bootstrapModalDialogButton:function(button){var attributes=Attributes.create();var icon='';var iconPosition=button.iconPosition||'beginning';iconPosition=(iconPosition==='end'&&!rtl)||(iconPosition==='beginning'&&rtl)?'after':'before';if(button.bootstrapIcon)icon=Drupal.theme('icon','bootstrap',button.icon);else{if(button.icon){var iconAttributes=Attributes.create().addClass(['ui-icon',button.icon]).set('aria-hidden','true');icon='<span'+iconAttributes+'></span>';}}var value=button.label||button.text;if(icon&&((button.showLabel!==void 0&&!button.showLabel)||(button.text!==void 0&&!button.text)))value='<span'+Attributes.create().addClass('sr-only')+'>'+value+'</span>';attributes.set('value',iconPosition==='before'?icon+value:value+icon);attributes[button.disabled?'set':'remove']('disabled','disabled');if(button.classes)attributes.addClass(Object.keys(button.classes).map(function(key){return button.classes[key];}));if(button['class'])attributes.addClass(button['class']);if(button.primary)attributes.addClass('btn-primary');return Drupal.theme('button',attributes);}});});})(window.jQuery,window.Drupal,window.Drupal.bootstrap,window.Attributes,window.drupalSettings);;
314(function($,Drupal,once){if(once('drupal-dialog-deprecation-listener','html').length){const eventSpecial={handle($event){const $element=$($event.target);const event=$event.originalEvent;const dialog=event.dialog;const dialogArguments=[$event,dialog,$element,event?.settings];$event.handleObj.handler.apply(this,dialogArguments);}};$.event.special['dialog:beforecreate']=eventSpecial;$.event.special['dialog:aftercreate']=eventSpecial;$.event.special['dialog:beforeclose']=eventSpecial;$.event.special['dialog:afterclose']=eventSpecial;const listenDialogEvent=(event)=>{const windowEvents=$._data(window,'events');const isWindowHasDialogListener=windowEvents[event.type];if(isWindowHasDialogListener)Drupal.deprecationError({message:`jQuery event ${event.type} is deprecated in 10.3.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3422670`});};['dialog:beforecreate','dialog:aftercreate','dialog:beforeclose','dialog:afterclose'].forEach((e)=>window.addEventListener(e,listenDialogEvent));window.addEventListener('dialog:beforecreate',(event)=>{const dialog=event.target;$(dialog).on('dialogButtonsChange.dialogDeprecation',(e)=>{if(!e?.originalEvent){Drupal.deprecationError({message:`jQuery event dialogButtonsChange is deprecated in 11.2.0 and is removed from Drupal:12.0.0. See https://www.drupal.org/node/3464202`});dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));}});});window.addEventListener('dialog:beforeclose',(event)=>{const dialog=event.target;$(dialog).off(`dialogButtonsChange.dialogDeprecation`);});}})(jQuery,Drupal,once);; 315class DrupalDialogEvent extends Event{constructor(type,dialog,settings=null){super(`dialog:${type}`,{bubbles:true});this.dialog=dialog;this.settings=settings;}}(function($,Drupal,drupalSettings,bodyScrollLock){drupalSettings.dialog={autoOpen:true,buttonClass:'button',buttonPrimaryClass:'button--primary',close(event){Drupal.dialog(event.target).close();Drupal.detachBehaviors(event.target,null,'unload');}};Drupal.dialog=function(element,options){let undef;const $element=$(element);const domElement=$element.get(0);const dialog={open:false,returnValue:undef};function openDialog(settings){settings=$.extend({},drupalSettings.dialog,options,settings);if(settings.dialogClass)Drupal.deprecationError({message:'dialogClass is deprecated in drupal:10.4.x and will be removed from drupal:12.0.0.'});const event=new DrupalDialogEvent('beforecreate',dialog,settings);domElement.dispatchEvent(event);$element.dialog(event.settings);dialog.open=true;if(event.settings.modal)bodyScrollLock.lock(domElement);domElement.dispatchEvent(new DrupalDialogEvent('aftercreate',dialog,event.settings));}function closeDialog(value){domElement.dispatchEvent(new DrupalDialogEvent('beforeclose',dialog));bodyScrollLock.clearBodyLocks();$element.dialog('close');dialog.returnValue=value;dialog.open=false;domElement.dispatchEvent(new DrupalDialogEvent('afterclose',dialog));}dialog.show=()=>{openDialog({modal:false,uiDialogTitleHeadingLevel:2});};dialog.showModal=()=>{openDialog({modal:true,uiDialogTitleHeadingLevel:1});};dialog.close=closeDialog;return dialog;};})(jQuery,Drupal,drupalSettings,bodyScrollLock);; 316(function($,Drupal,drupalSettings,debounce,displace){drupalSettings.dialog=$.extend({autoResize:true,maxHeight:'95%'},drupalSettings.dialog);function resetPosition(options){const offsets=displace.offsets;const left=offsets.left-offsets.right;const top=offsets.top-offsets.bottom;const leftString=`${(left>0?'+':'-')+Math.abs(Math.round(left/2))}px`;const topString=`${(top>0?'+':'-')+Math.abs(Math.round(top/2))}px`;options.position={my:`center${left!==0?leftString:''} center${top!==0?topString:''}`,of:window};return options;}function resetSize(event){const positionOptions=['width','height','minWidth','minHeight','maxHeight','maxWidth','position'];let adjustedOptions={};let windowHeight=$(window).height();let option;let optionValue;let adjustedValue;for(let n=0;n<positionOptions.length;n++){option=positionOptions[n];optionValue=event.data.settings[option];if(optionValue)if(typeof optionValue==='string'&&optionValue.endsWith('%')&&/height/i.test(option)){windowHeight-=displace.offsets.top+displace.offsets.bottom;adjustedValue=parseInt(0.01*parseInt(optionValue,10)*windowHeight,10);if(option==='height'&&Math.round(event.data.$element.parent().outerHeight())<adjustedValue)adjustedValue='auto';adjustedOptions[option]=adjustedValue;}}if(!event.data.settings.modal)adjustedOptions=resetPosition(adjustedOptions);event.data.$element.dialog('option',adjustedOptions);event.data.$element?.get(0)?.dispatchEvent(new CustomEvent('dialogContentResize',{bubbles:true}));}window.addEventListener('dialog:aftercreate',(e)=>{const autoResize=debounce(resetSize,20);const $element=$(e.target);const {settings}=e;const eventData={settings,$element};if(settings.autoResize===true||settings.autoResize==='true'){const uiDialog=$element.dialog('option',{resizable:false,draggable:false}).dialog('widget');uiDialog[0].style.position='fixed';$(window).on('resize.dialogResize scroll.dialogResize',eventData,autoResize).trigger('resize.dialogResize');$(document).on('drupalViewportOffsetChange.dialogResize',eventData,autoResize);}});window.addEventListener('dialog:beforeclose',()=>{$(window).off('.dialogResize');$(document).off('.dialogResize');});})(jQuery,Drupal,drupalSettings,Drupal.debounce,Drupal.displace);; 317(function($,Drupal,{focusable}){Drupal.behaviors.dialog={attach(context,settings){if(!document.querySelector('#drupal-modal'))document.body.insertAdjacentHTML('beforeend','<div id="drupal-modal" class="ui-front" style="display:none"></div>');if(context!==document){const dialog=context.closest('.ui-dialog-content');if(dialog){if($(dialog).dialog('option','drupalAutoButtons'))dialog.dispatchEvent(new CustomEvent('dialogButtonsChange'));setTimeout(function(){if(!dialog.contains(document.activeElement)){const autoFocusElement=dialog?.querySelector('[autofocus]');if(autoFocusElement){autoFocusElement.focus();return;}const focusableElements=focusable(dialog);if(focusableElements.length>0){focusableElements[0].focus();return;}const dialogWrapper=dialog.closest('.ui-dialog');const buttonPane=dialogWrapper?.querySelector('.ui-dialog-buttonpane');const focusableButtons=focusable(buttonPane);if(focusableButtons.length>0){focusableButtons[0].focus();return;}const closeButton=dialogWrapper?.querySelector('.ui-dialog-titlebar-close');if(closeButton){closeButton.focus();return;}dialog.focus();}},0);}}const originalClose=settings.dialog.close;settings.dialog.close=function(event,...args){originalClose.apply(settings.dialog,[event,...args]);const $element=$(event.target);const ajaxContainer=$element.data('uiDialog')?$element.data('uiDialog').opener.closest('[data-drupal-ajax-container]'):[];if(ajaxContainer.length&&(document.activeElement===document.body||$(document.activeElement).not(':visible'))){const focusableChildren=focusable(ajaxContainer[0]);if(focusableChildren.length>0)setTimeout(()=>{focusableChildren[0].focus();}
317,0);}$(event.target).remove();};},prepareDialogButtons($dialog){const buttons=[];const buttonSelectors='.form-actions input[type=submit], .form-actions a.button, .form-actions a.action-link';const buttonElements=$dialog[0].querySelectorAll(buttonSelectors);buttonElements.forEach((button)=>{button.style.display='none';buttons.push({text:button.innerHTML||button.getAttribute('value'),class:button.getAttribute('class'),'data-once':button.dataset.once,click(e){if(button.tagName==='A')button.click();else ['mousedown','mouseup','click'].forEach((event)=>button.dispatchEvent(new MouseEvent(event)));e.preventDefault();}});});return buttons;}};Drupal.AjaxCommands.prototype.openDialog=function(ajax,response,status){if(!response.selector)return false;let dialog=document.querySelector(response.selector);if(!dialog){dialog=document.createElement('div');dialog.id=response.selector.replace(/^#/,'');dialog.classList.add('ui-front');document.body.appendChild(dialog);}if(!ajax.wrapper)ajax.wrapper=dialog.id;response.command='insert';response.method='html';ajax.commands.insert(ajax,response,status);response.dialogOptions=response.dialogOptions||{};if(typeof response.dialogOptions.drupalAutoButtons==='undefined')response.dialogOptions.drupalAutoButtons=true;else if(response.dialogOptions.drupalAutoButtons==='false')response.dialogOptions.drupalAutoButtons=false;else response.dialogOptions.drupalAutoButtons=!!response.dialogOptions.drupalAutoButtons;if(!response.dialogOptions.buttons&&response.dialogOptions.drupalAutoButtons)response.dialogOptions.buttons=Drupal.behaviors.dialog.prepareDialogButtons($(dialog));const dialogButtonsChange=()=>{const buttons=Drupal.behaviors.dialog.prepareDialogButtons($(dialog));$(dialog).dialog('option','buttons',buttons);};dialog.addEventListener('dialogButtonsChange',dialogButtonsChange);dialog.addEventListener('dialog:beforeclose',(event)=>{dialog.removeEventListener('dialogButtonsChange',dialogButtonsChange);});const createdDialog=Drupal.dialog(dialog,response.dialogOptions);if(response.dialogOptions.modal)createdDialog.showModal();else createdDialog.show();dialog.parentElement?.querySelector('.ui-dialog-buttonset')?.classList.add('form-actions');};Drupal.AjaxCommands.prototype.closeDialog=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog){Drupal.dialog(dialog).close();if(!response.persist)dialog.remove();}};Drupal.AjaxCommands.prototype.setDialogOption=function(ajax,response,status){const dialog=document.querySelector(response.selector);if(dialog)$(dialog).dialog('option',response.optionName,response.optionValue);};window.addEventListener('dialog:aftercreate',(event)=>{const dialog=event.dialog;const cancelButton=event.target.querySelector('.dialog-cancel');const cancelClick=(e)=>{dialog.close('cancel');e.preventDefault();e.stopPropagation();};cancelButton?.removeEventListener('click',cancelClick);cancelButton?.addEventListener('click',cancelClick);});Drupal.AjaxCommands.prototype.openModalDialogWithUrl=function(ajax,response){const dialogOptions=response.dialogOptions||{};const elementSettings={progress:{type:'throbber'},dialogType:'modal',dialog:dialogOptions,url:response.url,httpMethod:'GET'};Drupal.ajax(elementSettings).execute();};})(jQuery,Drupal,window.tabbable);; 318(function($,Drupal,Bootstrap){Drupal.behaviors.dialog.ajaxCurrentButton=null;Drupal.behaviors.dialog.ajaxOriginalButton=null;var success=Drupal.Ajax.prototype.success;Drupal.Ajax.prototype.success=function(response,status){if(this.dialogType)for(var i=0,l=response.length;i<l;i++)if(response[i].dialogOptions){response[i].dialogType=response[i].dialogOptions.dialogType=this.dialogType;response[i].$trigger=response[i].dialogOptions.$trigger=$(this.element);}return success.apply(this,[response,status]);};var beforeSerialize=Drupal.Ajax.prototype.beforeSerialize;Drupal.Ajax.prototype.beforeSerialize=function(element,options){if(this.dialogType){options.data['ajax_page_state[dialogType]']=this.dialogType;var id=$(this.element).parents('.js-drupal-dialog:first').attr('id');if(id)options.data['ajax_page_state[dialogId]']=id;}return beforeSerialize.apply(this,arguments);};Drupal.behaviors.dialog.ajaxUpdateButtons=function(reset){if(this.ajaxCurrentButton&&this.ajaxOriginalButton){this.ajaxCurrentButton.html(this.ajaxOriginalButton.html()||this.ajaxOriginalButton.attr('value'));this.ajaxCurrentButton.prop('disabled',this.ajaxOriginalButton.prop('disabled'));}if(reset){this.ajaxCurrentButton=null;this.ajaxOriginalButton=null;}};$(document).ajaxSend(function(){Drupal.behaviors.dialog.ajaxUpdateButtons();}).ajaxComplete(function(){Drupal.behaviors.dialog.ajaxUpdateButtons(true);});;Drupal.behaviors.dialog.prepareDialogButtons=function prepareDialogButtons($dialog){var _this=this;var buttons=[];var $buttons=$dialog.find('.form-actions').find('button, input[type=submit], a.button, .btn');$buttons.each(function(){var $originalButton=$(this).attr('tabindex',-1).css({display:'block',width:0,height:0,padding:0,border:0,overflow:'hidden'});
318buttons.push({text:Bootstrap.stripHtml($originalButton)||$originalButton.attr('value'),class:$originalButton.attr('class').replace('use-ajax-submit',''),click:function click(e){e.preventDefault();e.stopPropagation();_this.ajaxCurrentButton=$(e.target);_this.ajaxOriginalButton=$originalButton;Bootstrap.simulate($originalButton,['mousedown','mouseup','click']);},create:function(){_this.ajaxCurrentButton=$(this);_this.ajaxOriginalButton=$originalButton;_this.ajaxUpdateButtons(true);}});});return buttons;};})(window.jQuery,window.Drupal,window.Drupal.bootstrap);; 319/* @license GPL-2.0-or-later https://raw.githubusercontent.com/jquery-form/form/master/LICENSE */ 320(function(factory){if(typeof define==='function'&&define.amd)define(['jquery'],factory);else if(typeof module==='object'&&module.exports)module.exports=function(root,jQuery){if(typeof jQuery==='undefined')if(typeof window!=='undefined')jQuery=require('jquery');else jQuery=require('jquery')(root);factory(jQuery);return jQuery;};else factory(jQuery);}(function($){'use strict';var rCRLF=/\r?\n/g;var feature={};feature.fileapi=$('<input type="file">').get(0).files!==undefined;feature.formdata=(typeof window.FormData!=='undefined');var hasProp=!!$.fn.prop;$.fn.attr2=function(){if(!hasProp)return this.attr.apply(this,arguments);var val=this.prop.apply(this,arguments);if((val&&val.jquery)||typeof val==='string')return val;return this.attr.apply(this,arguments);};$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){if(!this.length){log('ajaxSubmit: skipping submit process - no element selected');return this;}var method,action,url,isMsie,iframeSrc,$form=this;if(typeof options==='function')options={success:options};else if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}else{if(typeof options==='undefined')options={};}method=options.method||options.type||this.attr2('method');action=options.url||this.attr2('action');url=(typeof action==='string')?action.trim():'';url=url||window.location.href||'';if(url)url=(url.match(/^([^#]+)/)||[])[1];isMsie=/(MSIE|Trident)/.test(navigator.userAgent||'');iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank';options=$.extend(true,{url,success:$.ajaxSettings.success,type:method||$.ajaxSettings.type,iframeSrc},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}var traditional=options.traditional;if(typeof traditional==='undefined')traditional=$.ajaxSettings.traditional;var elements=[];var qx,a=this.formToArray(options.semantic,elements,options.filtering);if(options.data){var optionsData=typeof (options.data)==="function"?options.data(a):options.data;options.extraData=optionsData;qx=$.param(optionsData,traditional);}if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}var q=$.param(a,traditional);if(qx)q=(q?(q+'&'+qx):qx);if(options.type.toUpperCase()==='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}else options.data=q;var callbacks=[];if(options.resetForm)callbacks.push(function(){$form.resetForm();});if(options.clearForm)callbacks.push(function(){$form.clearForm(options.includeHidden);});if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data,textStatus,jqXHR){var successArguments=arguments,fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(function(){oldSuccess.apply(this,successArguments);});});}else{if(options.success)if(Array.isArray(options.success))callbacks=callbacks.concat(options.success);else callbacks.push(options.success);}options.success=function(data,status,xhr){var context=options.context||this;for(var i=0,max=callbacks.length;i<max;i++)callbacks[i].apply(context,[data,status,xhr||$form,$form]);};if(options.error){var oldError=options.error;options.error=function(xhr,status,error){var context=options.context||this;oldError.apply(context,[xhr,status,error,$form]);};}if(options.complete){var oldComplete=options.complete;options.complete=function(xhr,status){var context=options.context||this;oldComplete.apply(context,[xhr,status,$form]);};}var fileInputs=$('input[type=file]:enabled',this).filter(function(){return $(this).val()!=='';});var hasFileInputs=fileInputs.length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp);var fileAPI=feature.fileapi&&feature.formdata;log('fileAPI :'+fileAPI);var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI;var jqxhr;if(options.iframe!==false&&(options.iframe||shouldUseFrame))if(options.closeKeepAlive)$.get(options.closeKeepAlive,function(){jqxhr=fileUploadIframe(a);});else jqxhr=fileUploadIframe(a);else if((hasFileInputs||multipart)&&fileAPI)jqxhr=fileUploadXhr(a);else jqxhr=$.ajax(options);$form.removeData('jqxhr').data('jqxhr',jqxhr);for(var k=0;k<elements.length;k++)elements[k]=null;this.trigger('form-submit-notify',[this,options]);return this;function deepSerialize(extraData){var serialized=$.param(extraData,options.traditional).split('&');var len=serialized.length;var result=[];var i,part;for(i=0;i<len;i++){serialized[i]=serialized[i].replace(/\+/g,' ');part=serialized[i].split('=');result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]);}return result;}function fileUploadXhr(a){var formdata=new FormData();for(var i=0;i<a.length;i++)formdata.append(a[i].name,a[i].value);if(options.extraData){var serializedData=deepSerialize(options.extraData);for(i=0;i<serializedData.length;i++)if(serializedData[i])formdata.append(serializedData[i][0],serializedData[i][1]);}options.data=null;var s=$.extend(true,{},$.ajaxSettings,options,{contentType:false,processData:false,cache:false,type:method||'POST'});if(options.uploadProgress)s.xhr=function(){var xhr=$.ajaxSettings.xhr();if(xhr.upload)xhr.upload.addEventListener('progress',function(event){var percent=0;var position=event.loaded||event.position;var total=event.total;if(event.lengthComputable)percent=Math.ceil(position/total*100);options.uploadProgress(event,position,total,percent);},false);return xhr;};s.data=null;var beforeSend=s.beforeSend;s.beforeSend=function(xhr,o){if(options.formData)o.data=options.formData;else o.data=formdata;
320if(beforeSend)beforeSend.call(this,xhr,o);};return $.ajax(s);}function fileUploadIframe(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var deferred=$.Deferred();deferred.abort=function(status){xhr.abort(status);};if(a)for(i=0;i<elements.length;i++){el=$(elements[i]);if(hasProp)el.prop('disabled',false);else el.removeAttr('disabled');}s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+new Date().getTime();var ownerDocument=form.ownerDocument;var $body=$form.closest('body');if(s.iframeTarget){$io=$(s.iframeTarget,ownerDocument);n=$io.attr2('name');if(!n)$io.attr2('name',id);else id=n;}else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />',ownerDocument);$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;try{if(io.contentWindow.document.execCommand)io.contentWindow.document.execCommand('Stop');}catch(ignore){}$io.attr('src',s.iframeSrc);xhr.error=e;if(s.error)s.error.call(s.context,xhr,e,status);if(g)$.event.trigger('ajaxError',[xhr,s,e]);if(s.complete)s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&$.active++===0)$.event.trigger('ajaxStart');if(g)$.event.trigger('ajaxSend',[xhr,s]);if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global)$.active--;deferred.reject();return deferred;}if(xhr.aborted){deferred.reject();return deferred;}sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type==='image'){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=null;try{if(frame.contentWindow)doc=frame.contentWindow.document;}catch(err){log('cannot get iframe.contentWindow document: '+err);}if(doc)return doc;try{doc=frame.contentDocument?frame.contentDocument:frame.document;}catch(err){log('cannot get iframe.contentDocument: '+err);doc=frame.document;}return doc;}var csrf_token=$('meta[name=csrf-token]').attr('content');var csrf_param=$('meta[name=csrf-param]').attr('content');if(csrf_param&&csrf_token){s.extraData=s.extraData||{};s.extraData[csrf_param]=csrf_token;}function doSubmit(){var t=$form.attr2('target'),a=$form.attr2('action'),mp='multipart/form-data',et=$form.attr('enctype')||$form.attr('encoding')||mp;form.setAttribute('target',id);if(!method||/post/i.test(method))form.setAttribute('method','POST');if(a!==s.url)form.setAttribute('action',s.url);if(!s.skipEncodingOverride&&(!method||/post/i.test(method)))$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});if(s.timeout)timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state&&state.toLowerCase()==='uninitialized')setTimeout(checkState,50);}catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);if(timeoutHandle)clearTimeout(timeoutHandle);timeoutHandle=undefined;}}var extraInputs=[];try{if(s.extraData)for(var n in s.extraData)if(s.extraData.hasOwnProperty(n))if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value'))extraInputs.push($('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value).appendTo(form)[0]);else extraInputs.push($('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]).appendTo(form)[0]);if(!s.iframeTarget)$io.appendTo($body);if(io.attachEvent)io.attachEvent('onload',cb);else io.addEventListener('load',cb,false);setTimeout(checkState,15);try{form.submit();}catch(err){var submitFn=document.createElement('form').submit;submitFn.apply(form);}}finally{form.setAttribute('action',a);form.setAttribute('enctype',et);if(t)form.setAttribute('target',t);else $form.removeAttr('target');$(extraInputs).remove();}}if(s.forceSync)doSubmit();else setTimeout(doSubmit,10);var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed)return;doc=getDoc(io);if(!doc){log('cannot access response document');e=SERVER_ABORT;}if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');deferred.reject(xhr,'timeout');return;}if(e===SERVER_ABORT&&xhr){xhr.abort('server abort');deferred.reject(xhr,'error','server abort');return;}if(!doc||doc.location.href===s.iframeSrc)if(!timedOut)return;if(io.detachEvent)io.detachEvent('onload',cb);else io.removeEventListener('load',cb,false);var status='success',errMsg;
320try{if(timedOut)throw 'timeout';var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML))if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header.toLowerCase()];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}var dt=(s.dataType||'').toLowerCase();var scr=/(json|script|text)/.test(dt);if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}else{if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre)xhr.responseText=pre.textContent?pre.textContent:pre.innerText;else{if(b)xhr.responseText=b.textContent?b.textContent:b.innerText;}}}}else{if(dt==='xml'&&!xhr.responseXML&&xhr.responseText)xhr.responseXML=toXml(xhr.responseText);}try{data=httpData(xhr,dt,s);}catch(err){status='parsererror';xhr.error=errMsg=(err||status);}}catch(err){log('error caught: ',err);status='error';xhr.error=errMsg=(err||status);}if(xhr.aborted){log('upload aborted');status=null;}if(xhr.status)status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error';if(status==='success'){if(s.success)s.success.call(s.context,data,'success',xhr);deferred.resolve(xhr.responseText,'success',xhr);if(g)$.event.trigger('ajaxSuccess',[xhr,s]);}else{if(status){if(typeof errMsg==='undefined')errMsg=xhr.statusText;if(s.error)s.error.call(s.context,xhr,status,errMsg);deferred.reject(xhr,'error',errMsg);if(g)$.event.trigger('ajaxError',[xhr,s,errMsg]);}}if(g)$.event.trigger('ajaxComplete',[xhr,s]);if(g&&!--$.active)$.event.trigger('ajaxStop');if(s.complete)s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)$io.remove();else $io.attr('src',s.iframeSrc);xhr.responseXML=null;},100);}var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}else doc=(new DOMParser()).parseFromString(s,'text/xml');return (doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null;};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0),data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror')if($.error)$.error('parsererror');if(s&&s.dataFilter)data=s.dataFilter(data,type);if(typeof data==='string')if((type==='json'||!type)&&ct.indexOf('json')>=0)data=JSON.parse(data);else{if((type==='script'||!type)&&ct.indexOf('javascript')>=0)$.globalEval(data);}return data;};return deferred;}};$.fn.ajaxForm=function(options,data,dataType,onSuccess){if(typeof options==='string'||(options===false&&arguments.length>0)){options={'url':options,'data':data,'dataType':dataType};if(typeof onSuccess==='function')options.success=onSuccess;}options=options||{};options.delegation=options.delegation&&typeof $.fn.on==='function';if(!options.delegation&&this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}if(options.delegation){$(document).off('submit.form-plugin',this.selector,doAjaxSubmit).off('click.form-plugin',this.selector,captureSubmittingElement).on('submit.form-plugin',this.selector,options,doAjaxSubmit).on('click.form-plugin',this.selector,options,captureSubmittingElement);return this;}if(options.beforeFormUnbind)options.beforeFormUnbind(this,options);return this.ajaxFormUnbind().on('submit.form-plugin',options,doAjaxSubmit).on('click.form-plugin',options,captureSubmittingElement);};function doAjaxSubmit(e){var options=e.data;if(!e.isDefaultPrevented()){e.preventDefault();$(e.target).closest('form').ajaxSubmit(options);}}function captureSubmittingElement(e){var target=e.target;var $el=$(target);if(!$el.is('[type=submit],[type=image]')){var t=$el.closest('[type=submit]');if(t.length===0)return;target=t[0];}var form=target.form;form.clk=target;if(target.type==='image')if(typeof e.offsetX!=='undefined'){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset==='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);}$.fn.ajaxFormUnbind=function(){return this.off('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic,elements,filtering){var a=[];if(this.length===0)return a;var form=this[0];var formId=this.attr('id');var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements;var els2;if(els)els=$.makeArray(els);if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){els2=$(':input[form="'+formId+'"]').get();if(els2.length)els=(els||[]).concat(els2);}if(!els||!els.length)return a;
320if(typeof (filtering)==="function")els=$.map(els,filtering);var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n||el.disabled)continue;if(semantic&&form.clk&&el.type==='image'){if(form.clk===el){a.push({name:n,value:$(el).val(),type:el.type});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}continue;}v=$.fieldValue(el,true);if(v&&v.constructor===Array){if(elements)elements.push(el);for(j=0,jmax=v.length;j<jmax;j++)a.push({name:n,value:v[j]});}else if(feature.fileapi&&el.type==='file'){if(elements)elements.push(el);var files=el.files;if(files.length)for(j=0;j<files.length;j++)a.push({name:n,value:files[j],type:el.type});else a.push({name:n,value:'',type:el.type});}else{if(v!==null&&typeof v!=='undefined'){if(elements)elements.push(el);a.push({name:n,value:v,type:el.type,required:el.required});}}}if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type==='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n)return;var v=$.fieldValue(this,successful);if(v&&v.constructor===Array)for(var i=0,max=v.length;i<max;i++)a.push({name:n,value:v[i]});else{if(v!==null&&typeof v!=='undefined')a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length))continue;if(Array.isArray(v))val=val.concat(v);else val.push(v);}return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(typeof successful==='undefined')successful=true;if(successful&&(!n||el.disabled||t==='reset'||t==='button'||(t==='checkbox'||t==='radio')&&!el.checked||(t==='submit'||t==='image')&&el.form&&el.form.clk!==el||tag==='select'&&el.selectedIndex===-1))return null;if(tag==='select'){var index=el.selectedIndex;if(index<0)return null;var a=[],ops=el.options;var one=(t==='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected&&!op.disabled){var v=op.value;if(!v)v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value;if(one)return v;a.push(v);}}return a;}return $(el).val().replace(rCRLF,'\r\n');};$.fn.clearForm=function(includeHidden){return this.each(function(){$('input,select,textarea',this).clearFields(includeHidden);});};$.fn.clearFields=$.fn.clearInputs=function(includeHidden){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag==='textarea')this.value='';else if(t==='checkbox'||t==='radio')this.checked=false;else if(tag==='select')this.selectedIndex=-1;else if(t==='file')if(/MSIE/.test(navigator.userAgent))$(this).replaceWith($(this).clone(true));else $(this).val('');else{if(includeHidden)if((includeHidden===true&&/hidden/.test(t))||(typeof includeHidden==='string'&&$(this).is(includeHidden)))this.value='';}});};$.fn.resetForm=function(){return this.each(function(){var el=$(this);var tag=this.tagName.toLowerCase();switch(tag){case 'input':this.checked=this.defaultChecked;case 'textarea':this.value=this.defaultValue;return true;case 'option':case 'optgroup':var select=el.parents('select');if(select.length&&select[0].multiple)if(tag==='option')this.selected=this.defaultSelected;else el.find('option').resetForm();else select.resetForm();return true;case 'select':el.find('option').each(function(i){this.selected=this.defaultSelected;if(this.defaultSelected&&!el[0].multiple){el[0].selectedIndex=i;return false;}});return true;case 'label':var forEl=$(el.attr('for'));var list=el.find('input,select,textarea');if(forEl[0])list.unshift(forEl[0]);list.resetForm();return true;case 'form':if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType))this.reset();return true;default:el.find('form,input,label,select,textarea').resetForm();return true;}}
320);};$.fn.enable=function(b){if(typeof b==='undefined')b=true;return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(typeof select==='undefined')select=true;return this.each(function(){var t=this.type;if(t==='checkbox'||t==='radio')this.checked=select;else{if(this.tagName.toLowerCase()==='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type==='select-one')$sel.find('option').selected(false);this.selected=select;}}});};$.fn.ajaxSubmit.debug=false;function log(){if(!$.fn.ajaxSubmit.debug)return;var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log)window.console.log(msg);else{if(window.opera&&window.opera.postError)window.opera.postError(msg);}}}));; 321/* @license GPL-2.0-or-later https://www.drupal.org/licensing/faq */ 322(function($){"use strict";$(document).ready(function(){var first=$(location).attr("pathname");first.indexOf(1);first.toLowerCase();first=first.split("/")[1];var switchLangCode=first.split("-")[1];var cookieLang;var userKeyRegExp=/^[a-z]{2}\-[A-Z]{2}?$/;var valid=userKeyRegExp.test(first);var splittedPath=window.location.pathname.split(first+"/")[1];function getParameter(paramName){var searchString=window.location.search.substring(1),i,val,params=searchString.split("&");for(i=0;i<params.length;i++){val=params[i].split("=");if(val[0]==paramName)return val[1];}return null;}if(Cookies.get("AV")&&Cookies.get("AV")=="pass"&&Cookies.get("selectLanguage")==null&&getParameter("avtoken")!=null)document.cookie="selectLanguage="+drupalSettings.path.currentLanguage;if(first!=="user"&&Cookies.get("selectLanguage")!=null&&drupalSettings.user.uid!=="0"&&Cookies.get("AV")&&Cookies.get("selectLanguage")!==drupalSettings.path.currentLanguage)if(valid===true&&Cookies.get("selectLanguage")!=="en"){cookieLang=Cookies.get("selectLanguage").split("-")[1];if(switchLangCode!==cookieLang)if(splittedPath)window.location.replace(document.location.origin+"/"+Cookies.get("selectLanguage")+"/"+splittedPath);else window.location.replace(document.location.origin+"/"+Cookies.get("selectLanguage"));}else if(Cookies.get("selectLanguage")==="en")if(splittedPath)window.location.replace(document.location.origin+"/"+splittedPath);else window.location.replace(document.location.origin);else window.location.replace(document.location.origin+"/"+Cookies.get("selectLanguage")+window.location.pathname);$("#age-verification-form #edit-country").change(function(){if(!$(this).children("option:selected").attr("selected")){var key=Object.keys(drupalSettings.ageverification.availableLanguages[$(this).children("option:selected").val()])[0];var select=$(this).children("option:selected").val();window.location.replace(document.location.origin+"/"+drupalSettings.ageverification.availableLanguages[select][key]["path_prefix"]);}});$("#age-verification-form #edit-language").change(function(){var langChecked;if(drupalSettings.ageverification.langSwitcher==1)langChecked=$(this).val();else var langChecked=$("input[name=language]:checked").val();if(langChecked!==drupalSettings.path.currentLanguage)window.location.replace(document.location.origin+"/"+langChecked);});});if(Cookies.get('AV')!=='pass')$('.language-switcher-language-url ul li').find('a').each(function(){var new_url=$(this).attr('href').replace(drupalSettings.path.currentLanguage,$(this).attr('hreflang'));$(this).attr('href',decodeURIComponent(new_url));});})(jQuery);; 323(function($){$(document).ready(function(){$("#age-verification-form").submit(function(event){if($.trim($("#edit-birthday").val())!==""||$.trim($("#edit-birthmonth").val())!==""||$.trim($("#edit-birthyear").val())!=="")if($.trim($("#edit-country option:selected").text())==="Canada"){event.preventDefault();var country=$.trim($("#edit-country option:selected").text());var region_name=$.trim($('#edit-regions option:selected').text());var region_iso=$.trim($('#edit-regions option:selected').val());document.cookie='region='+region_name+'; path=/';document.cookie='region_iso='+region_iso+'; path=/';}});});})(jQuery);; 324(function($){"use strict";if(window.innerWidth<=768)initMultiformMobiScroll();function initMultiformMobiScroll(){var language=jQuery("html").attr("lang");var lang=language.substring(0,2);const now=new Date();$("#edit-birthdate, #edit-dob").mobiscroll().datepicker({theme:"material",themeVariant:"dark",animation:"slide-up",display:"bottom",circular:true,controls:["date"],touchUi:true,rows:5,locale:mobiscroll.locale[lang],showOverlay:false,min:new Date(now.getFullYear()-120,0,1),max:now,onClose:function(valueText,inst){var date=inst.getVal();var birthDay=date.getDate();var birthMonth=date.getMonth()+1;var birthYear=date.getFullYear();$('input[id*="edit-birthday"]').val(birthDay);$('input[id*="edit-birthmonth"]').val(birthMonth);$('input[id*="edit-birthyear"]').val(birthYear);}});}})(jQuery);; 325(function($,Drupal,once){"use strict";const MANAGED_FILE_SELECTOR='div.js-form-managed-file';const FILE_CHECKBOX_SELECTOR='input.form-checkbox[type="checkbox"][name*="selected"]';const REMOVE_BUTTON_SELECTOR='button[data-drupal-selector$="-remove-button"]';const ROLE_BUTTON_ANCHOR_SELECTOR='a[role="button"]';
325const MODAL_FOCUSABLE_SELECTOR=['a[href]','area[href]','input:not([disabled]):not([type="hidden"])','select:not([disabled])','textarea:not([disabled])','button:not([disabled])','iframe','object','embed','[contenteditable="true"]','[tabindex]:not([tabindex="-1"])'].join(',');const requestNextFrame=window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(callback){setTimeout(callback,0);};function getFileErrorId($input){const baseId=$input.attr('id')||$input.attr('data-drupal-selector')||'file-upload';return baseId.replace(/[^A-Za-z0-9\-_:]/g,'-')+'-error';}function getFocusableElements($scope){return $scope.find(MODAL_FOCUSABLE_SELECTOR).filter(':visible').filter(function(){return !$(this).is('[aria-hidden="true"]');});}function syncAriaDescribedBy($input,errorId,hasError){const describedBy=($input.attr('aria-describedby')||'').split(/\s+/).filter(function(id){return id&&id!==errorId;});if(hasError)describedBy.push(errorId);if(describedBy.length)$input.attr('aria-describedby',describedBy.join(' '));else $input.removeAttr('aria-describedby');}function extractServerError($input){const $formItem=$input.closest('div.form-item.form-type-managed-file');const $ajaxWrapper=$formItem.closest('div[id^="ajax-wrapper"]');let $serverError=$();if($ajaxWrapper.length)$serverError=$ajaxWrapper.find('div[data-drupal-messages] .alert-danger').first();if(!$serverError.length)$serverError=$formItem.siblings('div[data-drupal-messages]').find('.alert-danger').first();if(!$serverError.length)return '';const $clone=$serverError.clone();$clone.find('span[aria-hidden="true"], h2.sr-only').remove();const errorText=$clone.text().replace(/\s+/g,' ').trim();$serverError.remove();if($ajaxWrapper.length)$ajaxWrapper.find('div.messages__wrapper, div[data-drupal-messages]').each(function(){if(!$(this).children().length)$(this).remove();});return errorText;}function processFileErrorPlacement($input){const errorId=getFileErrorId($input);const $managedFile=$input.closest(MANAGED_FILE_SELECTOR);const $coreError=$managedFile.find('div.file-upload-js-error').first();let errorText='';syncAriaDescribedBy($input,errorId,false);$input.attr('aria-invalid','false');$input.siblings('span#'+errorId+'.file-upload-js-error').remove();let hasCoreError=false;if($coreError.length){errorText=$coreError.text();hasCoreError=true;$coreError.remove();}else errorText=extractServerError($input);if(errorText){if(typeof drupalSettings!=='undefined'&&drupalSettings.multiform&&drupalSettings.multiform.validations)if(hasCoreError){if(drupalSettings.multiform.validations.fileextension)errorText=drupalSettings.multiform.validations.fileextension;}else{if(drupalSettings.multiform.validations.filesize)errorText=drupalSettings.multiform.validations.filesize;}$input.siblings('span.file-upload-js-error').remove();$('<span/>',{id:errorId,'class':'error file-upload-js-error',text:errorText}).insertAfter($input);syncAriaDescribedBy($input,errorId,true);
325$input.attr('aria-invalid','true');}}function scheduleFileErrorPlacement($input){if($input.data('mcFileErrorPlacementScheduled'))return;$input.data('mcFileErrorPlacementScheduled',true);requestNextFrame(function(){$input.removeData('mcFileErrorPlacementScheduled');processFileErrorPlacement($input);});}function toTitleCase(str){return str.replace(/\b\w/g,function(c){return c.toUpperCase();});}function updateRemoveButtonState($managedFile){const $removeButton=$managedFile.find(REMOVE_BUTTON_SELECTOR);const anyChecked=$managedFile.find(FILE_CHECKBOX_SELECTOR+':checked').length>0;if($removeButton.length){if(!$removeButton.data('mcTitleCased')){const rawText=$removeButton.text().trim();const titleText=toTitleCase(rawText);if(rawText!==titleText)$removeButton.text(titleText);$removeButton.data('mcTitleCased',true);}$removeButton.prop('disabled',!anyChecked);$removeButton.attr('aria-disabled',!anyChecked);}}function scheduleRemoveButtonStateUpdate($managedFile){if($managedFile.data('mcRemoveStateScheduled'))return;$managedFile.data('mcRemoveStateScheduled',true);requestNextFrame(function(){$managedFile.removeData('mcRemoveStateScheduled');updateRemoveButtonState($managedFile);});}Drupal.behaviors.fileValidateErrorPlacement={attach:function(context,settings){if(settings.file&&settings.file.elements)Object.keys(settings.file.elements).forEach(function(selector){once('fileValidateErrorPlacement',selector,context).forEach(function(input){const $input=$(input);const $managedFile=$input.closest(MANAGED_FILE_SELECTOR);if(!$managedFile.length)return;scheduleFileErrorPlacement($input);$(input).on('change.fileValidateErrorPlacement',function(){scheduleFileErrorPlacement($input);});const observer=new MutationObserver(function(mutations){const coreErrorAdded=mutations.some(function(mutation){return Array.from(mutation.addedNodes).some(function(node){return node.nodeType===Node.ELEMENT_NODE&&node.tagName==='DIV'&&node.classList.contains('file-upload-js-error');});});if(coreErrorAdded)scheduleFileErrorPlacement($input);});observer.observe($managedFile[0],{childList:true,subtree:true});});});}};Drupal.behaviors.manageRemoveButtonState={attach:function(context,settings){once('manageRemoveButtonState',MANAGED_FILE_SELECTOR,context).forEach(function(element){const $managedFile=$(element);updateRemoveButtonState($managedFile);$managedFile.on('change.manageRemoveButtonState',FILE_CHECKBOX_SELECTOR,function(){updateRemoveButtonState($managedFile);});$managedFile.on('ajaxComplete.manageRemoveButtonState',function(){scheduleRemoveButtonStateUpdate($managedFile);});});}};Drupal.behaviors.modalFocusTrap={attach:function(context,settings){once('mcmultiform-contact-modal-focus','.contact-modal',context).forEach(function(modal){const $modal=$(modal);$modal.on('shown.bs.modal',function(){const $focusable=getFocusableElements($modal);if($focusable.length)$focusable.first().trigger('focus');$modal.on('keydown.mcmultiformFocusTrap',function(event){if(event.key!=='Tab'&&event.which!==9)return;const $tabbable=getFocusableElements($modal);if(!$tabbable.length){event.preventDefault();$modal.trigger('focus');return;}if($tabbable.length===1){event.preventDefault();$tabbable.first().trigger('focus');return;}const first=$tabbable.get(0);const last=$tabbable.get($tabbable.length-1);const activeElement=document.activeElement;if(!event.shiftKey&&activeElement===last){event.preventDefault();first.focus();}if(event.shiftKey&&activeElement===first){event.preventDefault();last.focus();}});});$modal.on('hidden.bs.modal',function(){$modal.off('keydown.mcmultiformFocusTrap');});});}};Drupal.behaviors.roleButtonSpaceKeySupport={attach:function(context){once('mcmultiform-role-button-space-key',ROLE_BUTTON_ANCHOR_SELECTOR,context).forEach(function(element){$(element).on('keydown.mcmultiformRoleButtonSpace',function(event){if(event.key!==' '&&event.key!=='Space'&&event.key!=='Spacebar')return;event.preventDefault();event.currentTarget.click();});});}};})(jQuery,Drupal,once);; 326(function($){"use strict";function addManagedFileRequiredRule($formItem,validator){var $fileInput=$formItem.find('input[type="file"]').first();var $fidsInput=$formItem.find('input[type="hidden"][name$="[fids]"]').first();var isRequired=$fileInput.prop('required')||$fileInput.hasClass('required')||$formItem.hasClass('required')||$formItem.find('label.js-form-required, label.form-required').length>0;if(!isRequired)return;var $target=$fidsInput.length?$fidsInput:$fileInput;if(!$target.length||!validator)return;if($fidsInput.length)$fidsInput.addClass('mc-managed-file-required-target');var currentRules=$target.rules();if(currentRules&¤tRules.mcManagedFileRequired)return;$target.rules('add',{mcManagedFileRequired:true,messages:{mcManagedFileRequired:$.validator.messages.required}});}function translateSpanishDefaultOptions(context){if(!drupalSettings.hasOwnProperty('multiform')||!['es','es-US'].includes(drupalSettings.multiform.language))return;once('mcmultiform-es-extended-subject-default','select[name="extended_subject"], select[name$="[extended_subject]"]',context).forEach(function(select){$('option',select).each(function(){var optionText=$.trim($(this).text());if(optionText==='- Select -')$(this).text('- Selecciona -');});});once('mcmultiform-es-state-default','select[name="state"], select[name$="[state]"]',context).forEach(function(select){$('option',select).each(function(){var optionText=$.trim($(this).text());if(optionText==='Select State')$(this).text('Selecciona estado');});});}
326$(document).ready(function(){$('fieldset.fieldgroup').each(function(){if($(this).hasClass('required'))$(this).find('input').addClass("required");});});Drupal.behaviors.formValidator={attach:function(context,settings){translateSpanishDefaultOptions(context);var messages={};if(drupalSettings.hasOwnProperty('multiform')&&drupalSettings.multiform.hasOwnProperty('validations'))$.each(drupalSettings.multiform.validations,function(key){messages[key]=drupalSettings.multiform.validations[key];});$.extend($.validator.messages,messages);let groupsObj={dob:'birthday birthmonth birthyear',phonenumber:'phoneareacode phoneprefix phonesuffix'};if(drupalSettings.hasOwnProperty('multiform')&&drupalSettings.multiform.hasOwnProperty('validations')&&drupalSettings.multiform.detailed_errors==1){$.validator.messages.required=function(param,input){let $input=$(input);let $elementLabel=$input.siblings('label');let $elementFirstParent=$input.parent();if(!$elementLabel.length)$elementLabel=$elementFirstParent.siblings('label');if(!$elementLabel.length)$elementLabel=$elementFirstParent.parent().siblings('label');if(!$elementLabel.length&&$input.is(':radio'))$elementLabel=$input.closest('fieldset').find('> legend, .fieldset-legend').first();let labelText=$.trim($elementLabel.text());if(!labelText.length)labelText=$input.attr('data-clean-label')||'';if(!labelText.length&&$input.is(':radio'))labelText=Drupal.t('selection');let fieldMessage='';if(['es','es-US'].includes(drupalSettings.multiform.language))fieldMessage=Drupal.t("El campo %name es obligatorio.",{'%name':labelText});else fieldMessage=Drupal.t("%name field is required.",{'%name':labelText});return fieldMessage;};groupsObj={};}var multiforms=once('mcmultiform','.mc-multifom-form-form',context);
326multiforms.forEach(function(e){let formid=e.dataset.formConfig;let $main_form=$('[data-form-config="'+formid+'"]');var drinkingAgeMessage=Drupal.t('You must be of legal drinking age.');let provinceField=$('select[id*="edit-province"]',$main_form);let dobFields=$('input[id*="edit-birthmonth"], input[id*="edit-birthday"], input[id*="edit-birthyear"]',$main_form);if(drupalSettings.hasOwnProperty('multiform')&&drupalSettings.multiform.hasOwnProperty('validations')&&drupalSettings.multiform.validations.hasOwnProperty('legaldrinkingage'))drinkingAgeMessage=drupalSettings.multiform.validations.legaldrinkingage;if(typeof Cookies.get('region_iso')!=='undefined')$('select[id*="edit-province"]',$main_form).val(Cookies.get('region_iso'));$.validator.addMethod("badwordscheck",function(value,element){var badwordlist=$(element).attr('badwordscheck');return !(new RegExp(badwordlist,"i")).test(value);},"PO Boxes or Apt/Suite are not allowed.");$.validator.addMethod("legaldrinkingage",function(value,element){let selectedMultiform=element.closest('.mc-multifom-form-form');let birthmonth=parseInt($('input[id*="edit-birthmonth"]',selectedMultiform).val(),10);let birthday=parseInt($('input[id*="edit-birthday"]',selectedMultiform).val(),10);let birthyear=parseInt($('input[id*="edit-birthyear"]',selectedMultiform).val(),10);let today=new Date();let isLegalDrinkingAge=false;let legalDrinkingAge=drupalSettings.multiform.drinking_age;if(!isNaN(birthmonth)||!isNaN(birthday)||!isNaN(birthyear)){if(provinceField.length>0){let selectedProvince=provinceField.val()??Cookies.get('province_iso');if(!selectedProvince||selectedProvince.toString().trim().length===0)return true;else{if(selectedProvince&&drupalSettings.ageverification.regions?.hasOwnProperty(selectedProvince))legalDrinkingAge=parseInt(drupalSettings.ageverification.regions[selectedProvince].drinking_age,10);}}let minAgeRequired=new Date(today.getFullYear()-legalDrinkingAge,today.getMonth(),today.getDate());let birthDate=new Date(birthyear,birthmonth-1,birthday);isLegalDrinkingAge=birthDate<=minAgeRequired;}return isLegalDrinkingAge;},Drupal.t(drinkingAgeMessage));$.validator.addClassRules({legaldrinkingage:{legaldrinkingage:true}});$.validator.addMethod('mcManagedFileRequired',function(value,element){var $element=$(element);var $managedFile=$element.closest('div.js-form-managed-file');if(!$managedFile.length)return true;var hasSelectedFile=false;var $fileInput=$managedFile.find('input[type="file"]').first();if($fileInput.length)hasSelectedFile=!!$.trim($fileInput.val());var hasUploadedFile=$managedFile.find('input[type="hidden"][name$="[fids]"]').filter(function(){return !!$.trim($(this).val());}).length>0;return hasSelectedFile||hasUploadedFile;},$.validator.messages.required);let checkboxRules=[];let checkboxMessages=[];let multicheckbox=$('fieldset.required_checkbox');switchCheckboxNames('input.required_checkbox');if(multicheckbox.length>0)multicheckbox.each(function(){let key=$(this).attr("alt-name");checkboxRules[key]={required:true,minlength:1};checkboxMessages[key]=Drupal.t("Please select at least one option.");});var validator=$main_form.validate({rules:{...checkboxRules},messages:{...checkboxMessages},ignore:':hidden:not(.mc-managed-file-required-target)',showErrors:function(errorMap,errorList){if((drupalSettings.multiform.error_summary==1)){let summaryMessage='';if(['es','es-US'].includes(drupalSettings.multiform.language))summaryMessage=Drupal.t("El formulario contiene @number errores, vea los detalles en cada campo a continuación.",{'@number':this.numberOfInvalids()});else summaryMessage=Drupal.t("The form contains @number errors, see details on each field below.",{'@number':this.numberOfInvalids()});$("#error-summary").html("<span class='error'>"+summaryMessage+"</span>");}this.defaultShowErrors();},invalidHandler:function(){if((drupalSettings.multiform.error_summary==1)){$('#error-summary').show();$('#error-summary').focus();}},focusInvalid:(drupalSettings.multiform.error_summary==1)?false:true,groups:groupsObj,errorClass:'error',validClass:'valid',errorElement:'span',ignoreTitle:true,errorPlacement:function(error,element){var elementName=$(element).attr("name");var newGroup={};for(let groupsKey in this.groups){var group_item=this.groups[groupsKey.toString()];if(this.groups.hasOwnProperty(groupsKey)){if(!newGroup.hasOwnProperty(group_item))newGroup[group_item]='';newGroup[group_item]=newGroup[group_item]+' '+groupsKey.toString();}}var lastInGroup=$.map(newGroup,function(fields,name){var fieldsArr;if(fields.indexOf(elementName)>=0){fieldsArr=fields.split(" ");return fieldsArr[fieldsArr.length-1];}else return null;})[0];if(lastInGroup){if(elementName==lastInGroup)if($(element).parents('.fieldset-wrapper').length)$(error).appendTo($(element).parents('.fieldset-wrapper'));else{if($(element).parents('.panel-body').length)$(error).appendTo($(element).parents('.panel-body'));}}else if(element.is(":radio"))$(error).appendTo($(element).parents('.fieldgroup'));else if(element.is(":checkbox")){if(!$('.fieldset-wrapper + .error',$(element).parents('fieldset')).length)$(error).appendTo($(element).parents('.fieldgroup'));}else $(error).appendTo($(element).parents('div.form-item'));},highlight:function(element,errorClass,validClass){var $element=$(element);if($element.is(':radio')&&element.name){var $radioGroup=this.findByName(element.name);$radioGroup.addClass(errorClass);$radioGroup.each(function(){$(this).closest('.form-item:not(fieldset)').addClass('has-error');});return;}$element.addClass(errorClass);$element.parents('.form-item:not(fieldset)').addClass('has-error');},unhighlight:function(element,errorClass,validClass){var $element=$(element);if($element.is(':radio')&&element.name){var $radioGroup=this.findByName(element.name);$radioGroup.removeClass(errorClass);$radioGroup.each(function(){$(this).closest('.form-item:not(fieldset)').removeClass('has-error');});return;}var elementId=$(element).attr("id"),lastInGroup=$.map(this.groups,function(fields,name){var fieldsArr;if(fields.indexOf(elementId)>=0){fieldsArr=fields.split(" ");return fieldsArr[fieldsArr.length-1];}else return null;})[0];if(lastInGroup){if(elementId==lastInGroup)$(element).parents('fieldset').removeClass('has-error');}else{$(element).removeClass("error");$(element).parents("div.form-group").removeClass("has-error");$(element).parents("div.form-item").removeClass("has-error");$(element).parents("fieldset.form-item").removeClass("has-error");}},submitHandler:function(form){switchCheckboxNames('input.required_checkbox');var $submitButton=$('button[id*="edit-submit"]',form);if($submitButton.length==0)$submitButton=$('input[id*="edit-submit"]',form);$submitButton.attr("disabled","disabled");$submitButton.fadeTo("slow",0.33);$submitButton.trigger('oncustomsubmit');}});provinceField.on('change',function(){let hasCompleteDob=dobFields.toArray().every(function(field){return $(field).val()&&$(field).val().toString().trim().length>0;});if(!hasCompleteDob)return;dobFields.each(function(){validator.element(this);});});$('div.form-item.form-type-managed-file',$main_form).each(function(){addManagedFileRequiredRule($(this),validator);});$main_form.on('keyup keypress','input, select, textarea',function(e){var keyCode=e.keyCode||e.which;if(keyCode===13){e.preventDefault();return false;}});if($('select[id*="edit-country"]',$main_form).length>0)if($('select[id*="edit-country"]',$main_form).val().length>0&&$('select[id*="edit-country"]',$main_form).val()!=='US')$('.country-info',$main_form).parent().parent().hide();$(document).on('ajaxComplete',function(event,xhr,settings){if(settings.hasOwnProperty('extraData')&&settings.extraData.hasOwnProperty('_drupal_ajax')&&settings.extraData._drupal_ajax)if($('.multiform-confirmation-message').length){const pageTitleElement=document.querySelector('.page-title-main');if(pageTitleElement)pageTitleElement.remove();var offset=$("#navbar").outerHeight();$("html,body").animate({scrollTop:$('.multiform-confirmation-message').offset().top-(offset+50)},1000);}});$('select[id*="edit-country"]',$main_form).change(function(){var country=$(this);if(country.val()!=='US'&&country.val().length>0)$('.country-info',$main_form).parent().parent().hide();else $('.country-info',$main_form).parent().parent().show();});const stateField=$main_form[0].querySelector('select[id*="edit-state"]');if(stateField){stateField.addEventListener('change',function(){const optinCheckboxes=$main_form[0].querySelectorAll('input[type="checkbox"][id*="optin"]');
326optinCheckboxes.forEach((checkbox)=>{const formItem=checkbox.closest('.form-item');if(formItem)formItem.style.display=this.value==='PR'?'none':'';});});stateField.dispatchEvent(new Event('change'));}$('button[id*="btn-modal"]',$main_form).click(function(){if($main_form.valid())$(this).attr("data-toggle","modal");else{validator.focusInvalid();$(this).removeAttr("data-toggle","modal");}});});once('mcmultiform-managed-file-required','.mc-multifom-form-form div.form-item.form-type-managed-file',context).forEach(function(formItem){var $formItem=$(formItem);var $mainForm=$formItem.closest('.mc-multifom-form-form');var validator=$mainForm.data('validator');if(!validator)return;addManagedFileRequiredRule($formItem,validator);});once('mcmultiform-radios-ajax','.mc-multifom-form-form input[type="radio"]',context).forEach(function(radioInput){const $radio=$(radioInput);const $mainForm=$radio.closest('.mc-multifom-form-form');const validator=$mainForm.data('validator');const isRequired=$radio.prop('required')||$radio.hasClass('required')||$radio.closest('.form-item').hasClass('required')||$radio.closest('fieldset').hasClass('required');if(validator&&isRequired){const radioName=$radio.attr('name');$("[name='"+radioName+"']",$mainForm).rules("add",{required:true});}});}};function switchCheckboxNames(cssSelector){$(cssSelector).each(function(){let element=$(this);let name=element.attr('name');let altName=element.attr('alt-name');if(typeof name!=='undefined'&&typeof altName!=='undefined'){element.attr('name',altName);element.attr('alt-name',name);}});}})(jQuery);;
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.