1/*! 2 * https://github.com/paulmillr/es6-shim 3 * @license es6-shim Copyright 2013-2016 by Paul Miller (http://paulmillr.com) 4 * and contributors, MIT License 5 * es6-shim: v0.35.3 6 * see https://github.com/paulmillr/es6-shim/blob/0.35.3/LICENSE 7 * Details and documentation: 8 * https://github.com/paulmillr/es6-shim/ 9 */(function(je,I){typeof define=="function"&&define.amd?define(I):typeof exports=="object"?module.exports=I():je.returnExports=I()})(this,function(){"use strict";var je=Function.call.bind(Function.apply),I=Function.call.bind(Function.call),ve=Array.isArray,$=Object.keys,ar=function(e){return function(){return!je(e,this,arguments)}},N=function(t){try{return t(),!1}catch{return!0}},M=function(e){try{return e()}catch{return!1}},ft=ar(N),ur=function(){return!N(function(){Object.defineProperty({},"x",{get:function(){}})})},P=!!Object.defineProperty&&ur(),ze=(function(){}).name==="foo",J=Function.call.bind(Array.prototype.forEach),qe=Function.call.bind(Array.prototype.reduce),sr=Function.call.bind(Array.prototype.filter),fr=Function.call.bind(Array.prototype.some),S=function(t,e,r,n){!n&&e in t||(P?Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:!0,value:r}):t[e]=r)},x=function(t,e,r){J($(e),function(n){var i=e[n];S(t,n,i,!!r)})},Y=Function.call.bind(Object.prototype.toString),He=typeof/abc/=="function"?function(e){return typeof e=="function"&&Y(e)==="[object Function]"}:function(e){return typeof e=="function"},T={getter:function(t,e,r){if(!P)throw new TypeError("getters require true ES5 support");Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:r})},proxy:function(t,e,r){if(!P)throw new TypeError("getters require true ES5 support");var n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,{configurable:n.configurable,enumerable:n.enumerable,get:function(){return t[e]},set:function(u){t[e]=u}})},redefine:function(t,e,r){if(P){var n=Object.getOwnPropertyDescriptor(t,e);n.value=r,Object.defineProperty(t,e,n)}else t[e]=r},defineByDescriptor:function(t,e,r){P?Object.defineProperty(t,e,r):"value"in r&&(t[e]=r.value)},preserveToString:function(t,e){e&&He(e.toString)&&S(t,"toString",e.toString.bind(e),!0)}},Te=Object.create||function(t,e){var r=function(){};r.prototype=t;var n=new r;return typeof e<"u"&&$(e).forEach(function(i){T.defineByDescriptor(n,i,e[i])}),n},We=function(t,e){return Object.setPrototypeOf?M(function(){var r=function n(i){var u=new t(i);return Object.setPrototypeOf(u,n.prototype),u};return Object.setPrototypeOf(r,t),r.prototype=Te(t.prototype,{constructor:{value:r}}),e(r)}):!1},cr=function(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")},f=cr(),he=f.isFinite,lr=Function.call.bind(String.prototype.indexOf),pr=Function.apply.bind(Array.prototype.indexOf),Ge=Function.call.bind(Array.prototype.concat),ne=Function.call.bind(String.prototype.slice),K=Function.call.bind(Array.prototype.push),vr=Function.apply.bind(Array.prototype.push),hr=Function.call.bind(Array.prototype.shift),oe=Math.max,ie=Math.min,ye=Math.floor,k=Math.abs,ae=Math.exp,ge=Math.log,be=Math.sqrt,Ee=Function.call.bind(Object.prototype.hasOwnProperty),X,ue=function(){},A=f.Map,yr=A&&A.prototype.delete,de=A&&A.prototype.get,me=A&&A.prototype.has,ct=A&&A.prototype.set,j=f.Symbol||{},Be=j.species||"@@species",F=Number.isNaN||function(e){return e!==e},ke=Number.isFinite||function(e){return typeof e=="number"&&he(e)},se=He(Math.sign)?Math.sign:function(e){var r=Number(e);return r===0||F(r)?r:r<0?-1:1},fe=function(e){var r=Number(e);return r<-1||F(r)?NaN:r===0||r===1/0?r:r===-1?-1/0:1+r-1===0?r:r*(ge(1+r)/(1+r-1))},lt=function(e){return Y(e)==="[object Arguments]"},gr=function(e){return e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Y(e)!=="[object Array]"&&Y(e.callee)==="[object Function]"},Ue=lt(arguments)?lt:gr,_={primitive:function(t){return t===null||typeof t!="function"&&typeof t!="object"},string:function(t){return Y(t)==="[object String]"},regex:function(t){return Y(t)==="[object RegExp]"},symbol:function(t){return typeof f.Symbol=="function"&&typeof t=="symbol"}},b=function(e,r,n){var i=e[r];S(e,r,n,!0),T.preserveToString(e[r],i)},Oe=typeof j=="function"&&typeof j.for=="function"&&_.symbol(j()),H=_.symbol(j.iterator)?j.iterator:"_es6-shim iterator_";f.Set&&typeof new f.Set()["@@iterator"]=="function"&&(H="@@iterator"),f.Reflect||S(f,"Reflect",{},!0);var Z=f.Reflect,$e=String,Ve=typeof document>
9"u"||!document?null:document.all,U=Ve==null?function(e){return e==null}:function(e){return e==null&&e!==Ve},o={Call:function(e,r){var n=arguments.length>2?arguments[2]:[];if(!o.IsCallable(e))throw new TypeError(e+" is not a function");return je(e,r,n)},RequireObjectCoercible:function(t,e){if(U(t))throw new TypeError(e||"Cannot call method on "+t);return t},TypeIsObject:function(t){return t==null||t===!0||t===!1?!1:typeof t=="function"||typeof t=="object"||t===Ve},ToObject:function(t,e){return Object(o.RequireObjectCoercible(t,e))},IsCallable:He,IsConstructor:function(t){return o.IsCallable(t)},ToInt32:function(t){return o.ToNumber(t)>>0},ToUint32:function(t){return o.ToNumber(t)>>>0},ToNumber:function(t){if(Y(t)==="[object Symbol]")throw new TypeError("Cannot convert a Symbol value to a number");return+t},ToInteger:function(t){var e=o.ToNumber(t);return F(e)?0:e===0||!ke(e)?e:(e>0?1:-1)*ye(k(e))},ToLength:function(t){var e=o.ToInteger(t);return e<=0?0:e>Number.MAX_SAFE_INTEGER?Number.MAX_SAFE_INTEGER:e},SameValue:function(t,e){return t===e?t===0?1/t===1/e:!0:F(t)&&F(e)},SameValueZero:function(t,e){return t===e||F(t)&&F(e)},IsIterable:function(t){return o.TypeIsObject(t)&&(typeof t[H]<"u"||Ue(t))},GetIterator:function(t){if(Ue(t))return new X(t,"value");var e=o.GetMethod(t,H);if(!o.IsCallable(e))throw new TypeError("value is not an iterable");var r=o.Call(e,t);if(!o.TypeIsObject(r))throw new TypeError("bad iterator");return r},GetMethod:function(t,e){var r=o.ToObject(t)[e];if(!U(r)){if(!o.IsCallable(r))throw new TypeError("Method not callable: "+e);return r}},IteratorComplete:function(t){return!!t.done},IteratorClose:function(t,e){var r=o.GetMethod(t,"return");if(r!==void 0){var n,i;try{n=o.Call(r,t)}catch(u){i=u}if(!e){if(i)throw i;if(!o.TypeIsObject(n))throw new TypeError("Iterator's return method returned a non-object.")}}},IteratorNext:function(t){var e=arguments.length>1?t.next(arguments[1]):t.next();if(!o.TypeIsObject(e))throw new TypeError("bad iterator");return e},IteratorStep:function(t){var e=o.IteratorNext(t),r=o.IteratorComplete(e);return r?!1:e},Construct:function(t,e,r,n){var i=typeof r>"u"?t:r;if(!n&&Z.construct)return Z.construct(t,e,i);var u=i.prototype;o.TypeIsObject(u)||(u=Object.prototype);var l=Te(u),c=o.Call(t,l,e);return o.TypeIsObject(c)?c:l},SpeciesConstructor:function(t,e){var r=t.constructor;if(r===void 0)return e;if(!o.TypeIsObject(r))throw new TypeError("Bad constructor");var n=r[Be];if(U(n))return e;if(!o.IsConstructor(n))throw new TypeError("Bad @@species");return n},CreateHTML:function(t,e,r,n){var i=o.ToString(t),u="<"+e;if(r!==""){var l=o.ToString(n),c=l.replace(/"/g,""");u+=" "+r+'="'+c+'"'}var a=u+">",s=a+i;return s+"</"+e+">"},IsRegExp:function(e){if(!o.TypeIsObject(e))return!1;var r=e[j.match];return typeof r<"u"?!!r:_.regex(e)},ToString:function(e){return $e(e)}};if(P&&Oe){var Pe=function(e){if(_.symbol(j[e]))return j[e];var r=j.for("Symbol."+e);return Object.defineProperty(j,e,{configurable:!1,enumerable:!1,writable:!1,value:r}),r};if(!_.symbol(j.search)){var pt=Pe("search"),vt=String.prototype.search;S(RegExp.prototype,pt,function(e){return o.Call(vt,e,[this])});var br=function(e){var r=o.RequireObjectCoercible(this);if(!U(e)){var n=o.GetMethod(e,pt);if(typeof n<"u")return o.Call(n,e,[r])}return o.Call(vt,r,[o.ToString(e)])};b(String.prototype,"search",br)}if(!_.symbol(j.replace)){var ht=Pe("replace"),yt=String.prototype.replace;S(RegExp.prototype,ht,function(e,r){return o.Call(yt,e,[this,r])});var dr=function(e,r){var n=o.RequireObjectCoercible(this);if(!U(e)){var i=o.GetMethod(e,ht);if(typeof i<"u")return o.Call(i,e,[n,r])}return o.Call(yt,n,[o.ToString(e),r])};b(String.prototype,"replace",dr)}if(!_.symbol(j.split)){var gt=Pe("split"),bt=String.prototype.split;S(RegExp.prototype,gt,function(e,r){return o.Call(bt,e,[this,r])});var mr=function(e,r){var n=o.RequireObjectCoercible(this);if(!U(e)){var i=o.GetMethod(e,gt);if(typeof i<"u")return o.Call(i,e,[n,r])}return o.Call(bt,n,[o.ToString(e),r])};b(String.prototype,"split",mr)}var dt=_.symbol(j.match),Or=dt&&(function(){var t={};return t[j.match]=function(){return 42},"a".match(t)!==42})();if(!dt||Or){var mt=Pe("match"),Ot=String.prototype.match;S(RegExp.prototype,mt,function(e){return o.Call(Ot,e,[this])});var wr=function(e){var r=o.RequireObjectCoercible(this);if(!U(e)){var n=o.GetMethod(e,mt);if(typeof n<"u")return o.Call(n,e,[r])}return o.Call(Ot,r,[o.ToString(e)])};b(String.prototype,"match",wr)}}var wt=function(e,r,n){T.preserveToString(r,e),Object.setPrototypeOf&&Object.setPrototypeOf(e,r),P?J(Object.getOwnPropertyNames(e),function(i){i in ue||n[i]||T.proxy(e,i,r)}):J(Object.keys(e),function(i){i in ue||n[i]||(r[i]=e[i])}),r.prototype=e.prototype,T.redefine(e.prototype,"constructor",r)},Sr=function(){return this},we=function(t){P&&!Ee(t,Be)&&T.getter(t,Be,Sr)},W=function(t,e){var r=e||function(){return this};S(t,H,r),!t[H]&&_.symbol(H)&&(t[H]=r)},Ir=function(e,r,n){P?Object.defineProperty(e,r,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[r]=n},St=function(e,r,n){if(Ir(e,r,n),!o.SameValue(e[r],n))throw new TypeError("property is nonconfigurable")},Je=function(t,e,r,n){if(!o.TypeIsObject(t))throw new TypeError("Constructor requires `new`: "+e.n
9ame);var i=e.prototype;o.TypeIsObject(i)||(i=r);var u=Te(i);for(var l in n)if(Ee(n,l)){var c=n[l];S(u,l,c,!0)}return u};if(String.fromCodePoint&&String.fromCodePoint.length!==1){var jr=String.fromCodePoint;b(String,"fromCodePoint",function(e){return o.Call(jr,this,arguments)})}var It={fromCodePoint:function(e){for(var r=[],n,i=0,u=arguments.length;i<u;i++){if(n=Number(arguments[i]),!o.SameValue(n,o.ToInteger(n))||n<0||n>1114111)throw new RangeError("Invalid code point "+n);n<65536?K(r,String.fromCharCode(n)):(n-=65536,K(r,String.fromCharCode((n>>10)+55296)),K(r,String.fromCharCode(n%1024+56320)))}return r.join("")},raw:function(e){var r=o.ToObject(e,"bad callSite"),n=o.ToObject(r.raw,"bad raw value"),i=n.length,u=o.ToLength(i);if(u<=0)return"";for(var l=[],c=0,a,s,m,O;c<u&&(a=o.ToString(c),m=o.ToString(n[a]),K(l,m),!(c+1>=u));)s=c+1<arguments.length?arguments[c+1]:"",O=o.ToString(s),K(l,O),c+=1;return l.join("")}};String.raw&&String.raw({raw:{0:"x",1:"y",length:2}})!=="xy"&&b(String,"raw",It.raw),x(String,It);var Tr=function t(e,r){if(r<1)return"";if(r%2)return t(e,r-1)+e;var n=t(e,r/2);return n+n},Er=1/0,Q={repeat:function(e){var r=o.ToString(o.RequireObjectCoercible(this)),n=o.ToInteger(e);if(n<0||n>=Er)throw new RangeError("repeat count must be less than infinity and not overflow maximum string size");return Tr(r,n)},startsWith:function(e){var r=o.ToString(o.RequireObjectCoercible(this));if(o.IsRegExp(e))throw new TypeError('Cannot call method "startsWith" with a regex');var n=o.ToString(e),i;arguments.length>1&&(i=arguments[1]);var u=oe(o.ToInteger(i),0);return ne(r,u,u+n.length)===n},endsWith:function(e){var r=o.ToString(o.RequireObjectCoercible(this));if(o.IsRegExp(e))throw new TypeError('Cannot call method "endsWith" with a regex');var n=o.ToString(e),i=r.length,u;arguments.length>1&&(u=arguments[1]);var l=typeof u>"u"?i:o.ToInteger(u),c=ie(oe(l,0),i);return ne(r,c-n.length,c)===n},includes:function(e){if(o.IsRegExp(e))throw new TypeError('"includes" does not accept a RegExp');var r=o.ToString(e),n;return arguments.length>1&&(n=arguments[1]),lr(this,r,n)!==-1},codePointAt:function(e){var r=o.ToString(o.RequireObjectCoercible(this)),n=o.ToInteger(e),i=r.length;if(n>=0&&n<i){var u=r.charCodeAt(n),l=n+1===i;if(u<55296||u>56319||l)return u;var c=r.charCodeAt(n+1);return c<56320||c>57343?u:(u-55296)*1024+(c-56320)+65536}}};if(String.prototype.includes&&"a".includes("a",1/0)!==!1&&b(String.prototype,"includes",Q.includes),String.prototype.startsWith&&String.prototype.endsWith){var Pr=N(function(){"/a/".startsWith(/a/)}),Cr=M(function(){return"abc".startsWith("a",1/0)===!1});(!Pr||!Cr)&&(b(String.prototype,"startsWith",Q.startsWith),b(String.prototype,"endsWith",Q.endsWith))}if(Oe){var Mr=M(function(){var t=/a/;return t[j.match]=!1,"/a/".startsWith(t)});Mr||b(String.prototype,"startsWith",Q.startsWith);var xr=M(function(){var t=/a/;return t[j.match]=!1,"/a/".endsWith(t)});xr||b(String.prototype,"endsWith",Q.endsWith);var _r=M(function(){var t=/a/;return t[j.match]=!1,"/a/".includes(t)});_r||b(String.prototype,"includes",Q.includes)}x(String.prototype,Q);var jt=[` 10\v\f\r \xA0\u1680\u180E\u2000\u2001\u2002\u2003`,"\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028","\u2029\uFEFF"].join(""),Ar=new RegExp("(^["+jt+"]+)|(["+jt+"]+$)","g"),Tt=function(){return o.ToString(o.RequireObjectCoercible(this)).replace(Ar,"")},Ce=["\x85","\u200B","\uFFFE"].join(""),Et=new RegExp("["+Ce+"]","g"),Pt=/^[-+]0x[0-9a-f]+$/i,Nr=Ce.trim().length!==Ce.length;S(String.prototype,"trim",Tt,Nr);var ee=function(t){return{value:t,done:arguments.length===0}},Ye=function(t){o.RequireObjectCoercible(t),this._s=o.ToString(t),this._i=0};Ye.prototype.next=function(){var t=this._s,e=this._i;if(typeof t>"u"||e>=t.length)return this._s=void 0,ee();var r=t.charCodeAt(e),n,i;return r<55296||r>56319||e+1===t.length?i=1:(n=t.charCodeAt(e+1),i=n<56320||n>57343?1:2),this._i=e+i,ee(t.substr(e,i))},W(Ye.prototype),W(String.prototype,function(){return new Ye(this)});var Me={from:function(e){var r=this,n;arguments.length>1&&(n=arguments[1]);var i,u;if(typeof n>"u")i=!1;else{if(!o.IsCallable(n))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(u=arguments[2]),i=!0}var l=typeof(Ue(e)||o.GetMethod(e,H))<"u",c,a,s;if(l){a=o.IsConstructor(r)?Object(new r):[];var m=o.GetIterator(e),O,w;for(s=0;O=o.IteratorStep(m),O!==!1;){w=O.value;try{i&&(w=typeof u>"u"?n(w,s):I(n,u,w,s)),a[s]=w}catch(at){throw o.IteratorClose(m,!0),at}s+=1}c=s}else{var R=o.ToObject(e);c=o.ToLength(R.length),a=o.IsConstructor(r)?Object(new r(c)):new Array(c);var z;for(s=0;s<c;++s)z=R[s],i&&(z=typeof u>"u"?n(z,s):I(n,u,z,s)),St(a,s,z)}return a.length=c,a},of:function(){for(var e=arguments.length,r=this,n=ve(r)||!o.IsCallable(r)?new Array(e):o.Construct(r,[e]),i=0;i<e;++i)St(n,i,arguments[i]);return n.length=e,n}};x(Array,Me),we(Array),X=function(t,e){this.i=0,this.array=t,this.kind=e},x(X.prototype,{next:function(){var t=this.i,e=this.array;if(!(this instanceof X))throw new TypeError("Not an ArrayIterator");if(typeof e<"u")for(var r=o.ToLength(e.length);t<r;t++){var n=this.kind,i;return n==="key"?i=t:n==="value"?i=e[t]:n==="entry"&&(i=[t,e[t]]),this.i=t+1,ee(i)}return this.array=void 0,ee()}}),W(X.prototype);var Rr=Array.of===Me.of||(function(){var t=function(n){this.length=n};t.prototype=[];var e=Array.of.apply(t,[1,2]);return e instanceof t&&e.length===2})();Rr||b(Array,"of",Me.of);var Xe={copyWithin:function(e,r){var n=o.ToObject(this),i=o.ToLength(n.length),u=o.ToInteger(e),l=o.ToInteger(r),c=u<0?oe(i+u,0):ie(u,i),a=l<0?oe(i+l,0):ie(l,i),s;arguments.length>2&&(s=arguments[2]);var m=typeof s>"u"?i:o.ToInteger(s),O=m<0?oe(i+m,0):ie(m,i),w=ie(O-a,i-c),R=1;
10for(a<c&&c<a+w&&(R=-1,a+=w-1,c+=w-1);w>0;)a in n?n[c]=n[a]:delete n[c],a+=R,c+=R,w-=1;return n},fill:function(e){var r;arguments.length>1&&(r=arguments[1]);var n;arguments.length>2&&(n=arguments[2]);var i=o.ToObject(this),u=o.ToLength(i.length);r=o.ToInteger(typeof r>"u"?0:r),n=o.ToInteger(typeof n>"u"?u:n);for(var l=r<0?oe(u+r,0):ie(r,u),c=n<0?u+n:n,a=l;a<u&&a<c;++a)i[a]=e;return i},find:function(e){var r=o.ToObject(this),n=o.ToLength(r.length);if(!o.IsCallable(e))throw new TypeError("Array#find: predicate must be a function");for(var i=arguments.length>1?arguments[1]:null,u=0,l;u<n;u++)if(l=r[u],i){if(I(e,i,l,u,r))return l}else if(e(l,u,r))return l},findIndex:function(e){var r=o.ToObject(this),n=o.ToLength(r.length);if(!o.IsCallable(e))throw new TypeError("Array#findIndex: predicate must be a function");for(var i=arguments.length>1?arguments[1]:null,u=0;u<n;u++)if(i){if(I(e,i,r[u],u,r))return u}else if(e(r[u],u,r))return u;return-1},keys:function(){return new X(this,"key")},values:function(){return new X(this,"value")},entries:function(){return new X(this,"entry")}};if(Array.prototype.keys&&!o.IsCallable([1].keys().next)&&delete Array.prototype.keys,Array.prototype.entries&&!o.IsCallable([1].entries().next)&&delete Array.prototype.entries,Array.prototype.keys&&Array.prototype.entries&&!Array.prototype.values&&Array.prototype[H]&&(x(Array.prototype,{values:Array.prototype[H]}),_.symbol(j.unscopables)&&(Array.prototype[j.unscopables].values=!0)),ze&&Array.prototype.values&&Array.prototype.values.name!=="values"){var Fr=Array.prototype.values;b(Array.prototype,"values",function(){return o.Call(Fr,this,arguments)}),S(Array.prototype,H,Array.prototype.values,!0)}x(Array.prototype,Xe),1/[!0].indexOf(!0,-0)<0&&S(Array.prototype,"indexOf",function(e){var r=pr(this,arguments);return r===0&&1/r<0?0:r},!0),W(Array.prototype,function(){return this.values()}),Object.getPrototypeOf&&W(Object.getPrototypeOf([].values()));var Lr=(function(){return M(function(){return Array.from({length:-1}).length===0})})(),Dr=(function(){var t=Array.from([0].entries());return t.length===1&&ve(t[0])&&t[0][0]===0&&t[0][1]===0})();(!Lr||!Dr)&&b(Array,"from",Me.from);var zr=(function(){return M(function(){return Array.from([0],void 0)})})();if(!zr){var Ct=Array.from;b(Array,"from",function(e){return arguments.length>1&&typeof arguments[1]<"u"?o.Call(Ct,this,arguments):I(Ct,this,e)})}var qr=-(Math.pow(2,32)-1),te=function(t,e){var r={length:qr};return r[e?(r.length>>>0)-1:0]=!0,M(function(){return I(t,r,function(){throw new RangeError("should not reach here")},[]),!0})};if(!te(Array.prototype.forEach)){var Hr=Array.prototype.forEach;b(Array.prototype,"forEach",function(e){return o.Call(Hr,this.length>=0?this:[],arguments)},!0)}if(!te(Array.prototype.map)){var Wr=Array.prototype.map;b(Array.prototype,"map",function(e){return o.Call(Wr,this.length>=0?this:[],arguments)},!0)}if(!te(Array.prototype.filter)){var Gr=Array.prototype.filter;b(Array.prototype,"filter",function(e){return o.Call(Gr,this.length>=0?this:[],arguments)},!0)}if(!te(Array.prototype.some)){var Br=Array.prototype.some;b(Array.prototype,"some",function(e){return o.Call(Br,this.length>=0?this:[],arguments)},!0)}if(!te(Array.prototype.every)){var kr=Array.prototype.every;b(Array.prototype,"every",function(e){return o.Call(kr,this.length>=0?this:[],arguments)},!0)}if(!te(Array.prototype.reduce)){var Ur=Array.prototype.reduce;b(Array.prototype,"reduce",function(e){return o.Call(Ur,this.length>=0?this:[],arguments)},!0)}if(!te(Array.prototype.reduceRight,!0)){var $r=Array.prototype.reduceRight;b(Array.prototype,"reduceRight",function(e){return o.Call($r,this.length>=0?this:[],arguments)},!0)}var Vr=+"0o10"!=8,Jr=+"0b10"!=2,Yr=fr(Ce,function(t){return Number(t+0+t)===0});if(Vr||Jr||Yr){var V=Number,Mt=/^0b[01]+$/i,xt=/^0o[0-7]+$/i,Xr=Mt.test.bind(Mt),Kr=xt.test.bind(xt),Zr=function(t){var e;if(typeof t.valueOf=="function"&&(e=t.valueOf(),_.primitive(e))||typeof t.toString=="function"&&(e=t.toString(),_.primitive(e)))return e;throw new TypeError("No default value")},Qr=Et.test.bind(Et),en=Pt.test.bind(Pt),xe=(function(){var t=function(r){var n;arguments.length>0?n=_.primitive(r)?r:Zr(r,"number"):n=0,typeof n=="string"&&(n=o.Call(Tt,n),Xr(n)?n=parseInt(ne(n,2),2):Kr(n)?n=parseInt(ne(n,2),8):(Qr(n)||en(n))&&(n=NaN));var i=this,u=M(function(){return V.prototype.valueOf.call(i),!0});return i instanceof t&&!u?new V(n):V(n)};return t})();wt(V,xe,{}),x(xe,{NaN:V.NaN,MAX_VALUE:V.MAX_VALUE,MIN_VALUE:V.MIN_VALUE,NEGATIVE_INFINITY:V.NEGATIVE_INFINITY,POSITIVE_INFINITY:V.POSITIVE_INFINITY}),Number=xe,T.redefine(f,"Number",xe)}var _t=Math.pow(2,53)-1;x(Number,{MAX_SAFE_INTEGER:_t,MIN_SAFE_INTEGER:-_t,EPSILON:2220446049250313e-31,parseInt:f.parseInt,parseFloat:f.parseFloat,isFinite:ke,isInteger:function(e){return ke(e)&&o.ToInteger(e)===e},isSafeInteger:function(e){return Number.isInteger(e)&&k(e)<=Number.MAX_SAFE_INTEGER},isNaN:F}),S(Number,"parseInt",f.parseInt,Number.parseInt!==f.parseInt),[,1].find(function(){return!0})===1&&b(Array.prototype,"find",Xe.find),[,1].findIndex(function(){return!0})!==0&&b(Array.prototype,"findIndex",Xe.findIndex);var At=Function.bind.call(Function.bind,Object.prototype.propertyIsEnumerable),_e=function(e,r){P&&At(e,r)&&Object.defineProperty(e,r,{enumerable:!1})},tn=function(){for(var e=Number(this),r=arguments.length,n=r-e,i=new Array(n<0?0:n),u=e;u<r;++u)i[u-e]=arguments[u];return i},Nt=function(e){return function(n,i){return n[i]=e[i],n}},rn=function(t,e){var r=$(Object(e)),n;
10return o.IsCallable(Object.getOwnPropertySymbols)&&(n=sr(Object.getOwnPropertySymbols(Object(e)),At(e))),qe(Ge(r,n||[]),Nt(e),t)},Rt={assign:function(t,e){var r=o.ToObject(t,"Cannot convert undefined or null to object");return qe(o.Call(tn,1,arguments),rn,r)},is:function(e,r){return o.SameValue(e,r)}},nn=Object.assign&&Object.preventExtensions&&(function(){var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch{return t[1]==="y"}})();if(nn&&b(Object,"assign",Rt.assign),x(Object,Rt),P){var on={setPrototypeOf:(function(t,e){var r,n=function(u,l){if(!o.TypeIsObject(u))throw new TypeError("cannot set prototype on a non-object");if(!(l===null||o.TypeIsObject(l)))throw new TypeError("can only set prototype to an object or null"+l)},i=function(u,l){return n(u,l),I(r,u,l),u};try{r=t.getOwnPropertyDescriptor(t.prototype,e).set,I(r,{},null)}catch{if(t.prototype!=={}[e])return;r=function(l){this[e]=l},i.polyfill=i(i({},null),t.prototype)instanceof t}return i})(Object,"__proto__")};x(Object,on)}Object.setPrototypeOf&&Object.getPrototypeOf&&Object.getPrototypeOf(Object.setPrototypeOf({},null))!==null&&Object.getPrototypeOf(Object.create(null))===null&&(function(){var t=Object.create(null),e=Object.getPrototypeOf,r=Object.setPrototypeOf;Object.getPrototypeOf=function(n){var i=e(n);return i===t?null:i},Object.setPrototypeOf=function(n,i){var u=i===null?t:i;return r(n,u)},Object.setPrototypeOf.polyfill=!1})();var an=!N(function(){Object.keys("foo")});if(!an){var un=Object.keys;b(Object,"keys",function(e){return un(o.ToObject(e))}),$=Object.keys}var sn=N(function(){Object.keys(/a/g)});if(sn){var fn=Object.keys;b(Object,"keys",function(e){if(_.regex(e)){var r=[];for(var n in e)Ee(e,n)&&K(r,n);return r}return fn(e)}),$=Object.keys}if(Object.getOwnPropertyNames){var cn=!N(function(){Object.getOwnPropertyNames("foo")});if(!cn){var ln=typeof window=="object"?Object.getOwnPropertyNames(window):[],Ft=Object.getOwnPropertyNames;b(Object,"getOwnPropertyNames",function(e){var r=o.ToObject(e);if(Y(r)==="[object Window]")try{return Ft(r)}catch{return Ge([],ln)}return Ft(r)})}}if(Object.getOwnPropertyDescriptor){var pn=!N(function(){Object.getOwnPropertyDescriptor("foo","bar")});if(!pn){var vn=Object.getOwnPropertyDescriptor;b(Object,"getOwnPropertyDescriptor",function(e,r){return vn(o.ToObject(e),r)})}}if(Object.seal){var hn=!N(function(){Object.seal("foo")});if(!hn){var yn=Object.seal;b(Object,"seal",function(e){return o.TypeIsObject(e)?yn(e):e})}}if(Object.isSealed){var gn=!N(function(){Object.isSealed("foo")});if(!gn){var bn=Object.isSealed;b(Object,"isSealed",function(e){return o.TypeIsObject(e)?bn(e):!0})}}if(Object.freeze){var dn=!N(function(){Object.freeze("foo")});if(!dn){var mn=Object.freeze;b(Object,"freeze",function(e){return o.TypeIsObject(e)?mn(e):e})}}if(Object.isFrozen){var On=!N(function(){Object.isFrozen("foo")});if(!On){var wn=Object.isFrozen;b(Object,"isFrozen",function(e){return o.TypeIsObject(e)?wn(e):!0})}}if(Object.preventExtensions){var Sn=!N(function(){Object.preventExtensions("foo")});if(!Sn){var In=Object.preventExtensions;b(Object,"preventExtensions",function(e){return o.TypeIsObject(e)?In(e):e})}}if(Object.isExtensible){var jn=!N(function(){Object.isExtensible("foo")});if(!jn){var Tn=Object.isExtensible;b(Object,"isExtensible",function(e){return o.TypeIsObject(e)?Tn(e):!1})}}if(Object.getPrototypeOf){var En=!N(function(){Object.getPrototypeOf("foo")});if(!En){var Pn=Object.getPrototypeOf;b(Object,"getPrototypeOf",function(e){return Pn(o.ToObject(e))})}}var Cn=P&&(function(){var t=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags");return t&&o.IsCallable(t.get)})();if(P&&!Cn){var Mn=function(){if(!o.TypeIsObject(this))throw new TypeError("Method called on incompatible type: must be an object.");var e="";return this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.unicode&&(e+="u"),this.sticky&&(e+="y"),e};T.getter(RegExp.prototype,"flags",Mn)}var xn=P&&M(function(){return String(new RegExp(/a/g,"i"))==="/a/i"}),_n=Oe&&P&&(function(){var t=/./;return t[j.match]=!1,RegExp(t)===t})(),Lt=M(function(){return RegExp.prototype.toString.call({source:"abc"})==="/abc/"}),An=Lt&&M(function(){return RegExp.prototype.toString.call({source:"a",flags:"b"})==="/a/b"});if(!Lt||!An){var Dt=RegExp.prototype.toString;S(RegExp.prototype,"toString",function(){var e=o.RequireObjectCoercible(this);if(_.regex(e))return I(Dt,e);var r=$e(e.source),n=$e(e.flags);return"/"+r+"/"+n},!0),T.preserveToString(RegExp.prototype.toString,Dt)}if(P&&(!xn||_n)){var Nn=Object.getOwnPropertyDescriptor(RegExp.prototype,"flags").get,zt=Object.getOwnPropertyDescriptor(RegExp.prototype,"source")||{},Rn=function(){return this.source},Fn=o.IsCallable(zt.get)?zt.get:Rn,qt=RegExp,Ke=(function(){return function t(e,r){var n=o.IsRegExp(e),i=this instanceof t;if(!i&&n&&typeof r>"u"&&e.constructor===t)return e;var u=e,l=r;return _.regex(e)?(u=o.Call(Fn,e),l=typeof r>"u"?o.Call(Nn,e):r,new t(u,l)):(n&&(u=e.source,l=typeof r>"u"?e.flags:r),new qt(e,r))}})();wt(qt,Ke,{$input:!0}),RegExp=Ke,T.redefine(f,"RegExp",Ke)}if(P){var Ze={input:"$_",lastMatch:"$&",lastParen:"$+",leftContext:"$`",rightContext:"$'"};J($(Ze),function(t){t in RegExp&&!(Ze[t]in RegExp)&&T.getter(RegExp,Ze[t],function(){return RegExp[t]})})}we(RegExp);var Ae=1/Number.EPSILON,Ln=function(e){return e+Ae-Ae},Ne=Math.pow(2,-23),Dn=Math.pow(2,127)*(2-Ne),Qe=Math.pow(2,-126),ce=Math.E,Re=Math.LOG2E,zn=Math.LOG10E,Ht=Number.prototype.clz;delete Number.prototype.clz;var L={acosh:function(e){var r=Number(e);if(F(r)||e<1)return NaN;if(r===1)return 0;if(r===1/0)return r;var n=1/(r*r);if(r<2)return fe(r-1+be(1-n)*r);var i=r/2;return fe(i+be(1-n)*i-1)+1/Re},asinh:function(e){var r=Number(e);if(r===0||!he(r))return r;var n=k(r),i=n*n,u=se(r);return n<1?u*fe(n+i/(be(i+1)+1)):u*(fe(n/2+be(1+1/i)*n/2-1)+1/Re)},atanh:function(e){var r=Number(e);if(r===0)return r;if(r===-1)return-1/0;if(r===1)return 1/0;if(F(r)||r<-1||r>1)return NaN;var n=k(r);return se(r)*fe(2*n/(1-n))/2},cbrt:function(e){var r=Number(e);if(r===0)return r;var n=r<0,i;return n&&(r=-r),r===1/0?i=1/0:(i=ae(ge(r)/3),i=(r/(i*i)+2*i)/3),n?-i:i},clz32:function(e){var r=Number(e),n=o.ToUint32(r);return n===0?32:Ht?o.Call(Ht,n):31-ye(ge(n+.5)*Re)},cosh:function(e){var r=Number(e);if(r===0)return 1;if(F(r))return NaN;
10if(!he(r))return 1/0;var n=ae(k(r)-1);return(n+1/(n*ce*ce))*(ce/2)},expm1:function(e){var r=Number(e);if(r===-1/0)return-1;if(!he(r)||r===0)return r;if(k(r)>.5)return ae(r)-1;for(var n=r,i=0,u=1;i+n!==i;)i+=n,u+=1,n*=r/u;return i},hypot:function(e,r){for(var n=0,i=0,u=0;u<arguments.length;++u){var l=k(Number(arguments[u]));i<l?(n*=i/l*(i/l),n+=1,i=l):n+=l>0?l/i*(l/i):l}return i===1/0?1/0:i*be(n)},log2:function(e){return ge(e)*Re},log10:function(e){return ge(e)*zn},log1p:fe,sign:se,sinh:function(e){var r=Number(e);if(!he(r)||r===0)return r;var n=k(r);if(n<1){var i=Math.expm1(n);return se(r)*i*(1+1/(i+1))/2}var u=ae(n-1);return se(r)*(u-1/(u*ce*ce))*(ce/2)},tanh:function(e){var r=Number(e);return F(r)||r===0?r:r>=20?1:r<=-20?-1:(Math.expm1(r)-Math.expm1(-r))/(ae(r)+ae(-r))},trunc:function(e){var r=Number(e);return r<0?-ye(-r):ye(r)},imul:function(e,r){var n=o.ToUint32(e),i=o.ToUint32(r),u=n>>>16&65535,l=n&65535,c=i>>>16&65535,a=i&65535;return l*a+(u*a+l*c<<16>>>0)|0},fround:function(e){var r=Number(e);if(r===0||r===1/0||r===-1/0||F(r))return r;var n=se(r),i=k(r);if(i<Qe)return n*Ln(i/Qe/Ne)*Qe*Ne;var u=(1+Ne/Number.EPSILON)*i,l=u-(u-i);return l>Dn||F(l)?n*(1/0):n*l}},Wt=function(e,r,n){return k(1-e/r)/Number.EPSILON<(n||8)};x(Math,L),S(Math,"sinh",L.sinh,Math.sinh(710)===1/0),S(Math,"cosh",L.cosh,Math.cosh(710)===1/0),S(Math,"log1p",L.log1p,Math.log1p(-1e-17)!==-1e-17),S(Math,"asinh",L.asinh,Math.asinh(-1e7)!==-Math.asinh(1e7)),S(Math,"asinh",L.asinh,Math.asinh(1e300)===1/0),S(Math,"atanh",L.atanh,Math.atanh(1e-300)===0),S(Math,"tanh",L.tanh,Math.tanh(-2e-17)!==-2e-17),S(Math,"acosh",L.acosh,Math.acosh(Number.MAX_VALUE)===1/0),S(Math,"acosh",L.acosh,!Wt(Math.acosh(1+Number.EPSILON),Math.sqrt(2*Number.EPSILON))),S(Math,"cbrt",L.cbrt,!Wt(Math.cbrt(1e-300),1e-100)),S(Math,"sinh",L.sinh,Math.sinh(-2e-17)!==-2e-17);var Gt=Math.expm1(10);S(Math,"expm1",L.expm1,Gt>22025.465794806718||Gt<22025.465794806718);var qn=Math.round,Hn=Math.round(.5-Number.EPSILON/4)===0&&Math.round(-.5+Number.EPSILON/3.99)===1,Wn=Ae+1,Gn=2*Ae-1,Bn=[Wn,Gn].every(function(t){return Math.round(t)===t});S(Math,"round",function(e){var r=ye(e),n=r===-1?-0:r+1;return e-r<.5?r:n},!Hn||!Bn),T.preserveToString(Math.round,qn);var Bt=Math.imul;Math.imul(4294967295,5)!==-5&&(Math.imul=L.imul,T.preserveToString(Math.imul,Bt)),Math.imul.length!==2&&b(Math,"imul",function(e,r){return o.Call(Bt,Math,arguments)});var Fe=(function(){var t=f.setTimeout;if(!(typeof t!="function"&&typeof t!="object")){o.IsPromise=function(v){return!(!o.TypeIsObject(v)||typeof v._promise>"u")};var e=function(v){if(!o.IsConstructor(v))throw new TypeError("Bad promise constructor");var h=this,p=function(d,y){if(h.resolve!==void 0||h.reject!==void 0)throw new TypeError("Bad Promise implementation!");h.resolve=d,h.reject=y};if(h.resolve=void 0,h.reject=void 0,h.promise=new v(p),!(o.IsCallable(h.resolve)&&o.IsCallable(h.reject)))throw new TypeError("Bad promise constructor")},r;typeof window<"u"&&o.IsCallable(window.postMessage)&&(r=function(){var v=[],h="zero-timeout-message",p=function(y){K(v,y),window.postMessage(h,"*")},d=function(y){if(y.source===window&&y.data===h){if(y.stopPropagation(),v.length===0)return;var g=hr(v);g()}};return window.addEventListener("message",d,!0),p});var n=function(){var v=f.Promise,h=v&&v.resolve&&v.resolve();return h&&function(p){return h.then(p)}},i=o.IsCallable(f.setImmediate)?f.setImmediate:typeof process=="object"&&process.nextTick?process.nextTick:n()||(o.IsCallable(r)?r():function(v){t(v,0)}),u=function(v){return v},l=function(v){throw v},c=0,a=1,s=2,m=0,O=1,w=2,R={},z=function(v,h,p){i(function(){at(v,h,p)})},at=function(v,h,p){var d,y;if(h===R)return v(p);try{d=v(p),y=h.resolve}catch(g){d=g,y=h.reject}y(d)},nr=function(v,h){var p=v._promise,d=p.reactionLength;if(d>0&&(z(p.fulfillReactionHandler0,p.reactionCapability0,h),p.fulfillReactionHandler0=void 0,p.rejectReactions0=void 0,p.reactionCapability0=void 0,d>1))for(var y=1,g=0;y<d;y++,g+=3)z(p[g+m],p[g+w],h),v[g+m]=void 0,v[g+O]=void 0,v[g+w]=void 0;p.result=h,p.state=a,p.reactionLength=0},ut=function(v,h){var p=v._promise,d=p.reactionLength;if(d>0&&(z(p.rejectReactionHandler0,p.reactionCapability0,h),p.fulfillReactionHandler0=void 0,p.rejectReactions0=void 0,p.reactionCapability0=void 0,d>1))for(var y=1,g=0;y<d;y++,g+=3)z(p[g+O],p[g+w],h),v[g+m]=void 0,v[g+O]=void 0,v[g+w]=void 0;p.result=h,p.state=s,p.reactionLength=0},or=function(v){var h=!1,p=function(y){var g;if(!h){if(h=!0,y===v)return ut(v,new TypeError("Self resolution"));if(!o.TypeIsObject(y))return nr(v,y);try{g=y.then}catch(E){return ut(v,E)}if(!o.IsCallable(g))return nr(v,y);i(function(){So(v,y,g)})}}
10,d=function(y){if(!h)return h=!0,ut(v,y)};return{resolve:p,reject:d}},st=function(v,h,p,d){v===ir?I(v,h,p,d,R):I(v,h,p,d)},So=function(v,h,p){var d=or(v),y=d.resolve,g=d.reject;try{st(p,h,y,g)}catch(E){g(E)}},De,ir,le=(function(){var v=function(p){if(!(this instanceof v))throw new TypeError('Constructor Promise requires "new"');if(this&&this._promise)throw new TypeError("Bad construction");if(!o.IsCallable(p))throw new TypeError("not a valid resolver");var d=Je(this,v,De,{_promise:{result:void 0,state:c,reactionLength:0,fulfillReactionHandler0:void 0,rejectReactionHandler0:void 0,reactionCapability0:void 0}}),y=or(d),g=y.reject;try{p(y.resolve,g)}catch(E){g(E)}return d};return v})();De=le.prototype;var Io=function(v,h,p,d){var y=!1;return function(g){if(!y&&(y=!0,h[v]=g,--d.count===0)){var E=p.resolve;E(h)}}},jo=function(v,h,p){for(var d=v.iterator,y=[],g={count:1},E,q,B=0;;){try{if(E=o.IteratorStep(d),E===!1){v.done=!0;break}q=E.value}catch(Eo){throw v.done=!0,Eo}y[B]=void 0;var C=h.resolve(q),pe=Io(B,y,p,g);g.count+=1,st(C.then,C,pe,p.reject),B+=1}if(--g.count===0){var Ie=p.resolve;Ie(y)}return p.promise},To=function(v,h,p){for(var d=v.iterator,y,g,E;;){try{if(y=o.IteratorStep(d),y===!1){v.done=!0;break}g=y.value}catch(q){throw v.done=!0,q}E=h.resolve(g),st(E.then,E,p.resolve,p.reject)}return p.promise};return x(le,{all:function(h){var p=this;if(!o.TypeIsObject(p))throw new TypeError("Promise is not object");var d=new e(p),y,g;try{return y=o.GetIterator(h),g={iterator:y,done:!1},jo(g,p,d)}catch(B){var E=B;if(g&&!g.done)try{o.IteratorClose(y,!0)}catch(C){E=C}var q=d.reject;return q(E),d.promise}},race:function(h){var p=this;if(!o.TypeIsObject(p))throw new TypeError("Promise is not object");var d=new e(p),y,g;try{return y=o.GetIterator(h),g={iterator:y,done:!1},To(g,p,d)}catch(B){var E=B;if(g&&!g.done)try{o.IteratorClose(y,!0)}catch(C){E=C}var q=d.reject;return q(E),d.promise}},reject:function(h){var p=this;if(!o.TypeIsObject(p))throw new TypeError("Bad promise constructor");var d=new e(p),y=d.reject;return y(h),d.promise},resolve:function(h){var p=this;if(!o.TypeIsObject(p))throw new TypeError("Bad promise constructor");if(o.IsPromise(h)){var d=h.constructor;if(d===p)return h}var y=new e(p),g=y.resolve;return g(h),y.promise}}),x(De,{catch:function(v){return this.then(null,v)},then:function(h,p){var d=this;if(!o.IsPromise(d))throw new TypeError("not a promise");var y=o.SpeciesConstructor(d,le),g,E=arguments.length>2&&arguments[2]===R;E&&y===le?g=R:g=new e(y);var q=o.IsCallable(h)?h:u,B=o.IsCallable(p)?p:l,C=d._promise,pe;if(C.state===c){if(C.reactionLength===0)C.fulfillReactionHandler0=q,C.rejectReactionHandler0=B,C.reactionCapability0=g;else{var Ie=3*(C.reactionLength-1);C[Ie+m]=q,C[Ie+O]=B,C[Ie+w]=g}C.reactionLength+=1}else if(C.state===a)pe=C.result,z(q,g,pe);else if(C.state===s)pe=C.result,z(B,g,pe);else throw new TypeError("unexpected Promise state");return g.promise}}),R=new e(le),ir=De.then,le}})();if(f.Promise&&(delete f.Promise.accept,delete f.Promise.defer,delete f.Promise.prototype.chain),typeof Fe=="function"){x(f,{Promise:Fe});var kn=We(f.Promise,function(t){return t.resolve(42).then(function(){})instanceof t}),Un=!N(function(){f.Promise.reject(42).then(null,5).then(null,ue)}),$n=N(function(){f.Promise.call(3,ue)}),Vn=(function(t){var e=t.resolve(5);e.constructor={};var r=t.resolve(e);try{r.then(null,ue).then(null,ue)}catch{return!0}return e===r})(f.Promise),Jn=P&&(function(){var t=0,e=Object.defineProperty({},"then",{get:function(){t+=1}});return Promise.resolve(e),t===1})(),et=function t(e){var r=new Promise(e);e(3,function(){}),this.then=r.then,this.constructor=t};et.prototype=Promise.prototype,et.all=Promise.all;var Yn=M(function(){return!!et.all([1,2])});if((!kn||!Un||!$n||Vn||!Jn||Yn)&&(window.Promise=Fe,b(f,"Promise",Fe)),Promise.all.length!==1){var Xn=Promise.all;b(Promise,"all",function(e){return o.Call(Xn,this,arguments)})}if(Promise.race.length!==1){var Kn=Promise.race;b(Promise,"race",function(e){return o.Call(Kn,this,arguments)})}if(Promise.resolve.length!==1){var Zn=Promise.resolve;b(Promise,"resolve",function(e){return o.Call(Zn,this,arguments)})}if(Promise.reject.length!==1){var Qn=Promise.reject;b(Promise,"reject",function(e){return o.Call(Qn,this,arguments)})}_e(Promise,"all"),_e(Promise,"race"),_e(Promise,"resolve"),_e(Promise,"reject"),we(Promise)}
10var kt=function(t){var e=$(qe(t,function(r,n){return r[n]=!0,r},{}));return t.join(":")===e.join(":")},eo=kt(["z","a","bb"]),to=kt(["z",1,"a","3",2]);if(P){var re=function(e,r){return!r&&!eo?null:U(e)?"^"+o.ToString(e):typeof e=="string"?"$"+e:typeof e=="number"?to?e:"n"+e:typeof e=="boolean"?"b"+e:null},Le=function(){return Object.create?Object.create(null):{}},tt=function(e,r,n){if(ve(n)||_.string(n))J(n,function(a){if(!o.TypeIsObject(a))throw new TypeError("Iterator value "+a+" is not an entry object");r.set(a[0],a[1])});else if(n instanceof e)I(e.prototype.forEach,n,function(a,s){r.set(s,a)});else{var i,u;if(!U(n)){if(u=r.set,!o.IsCallable(u))throw new TypeError("bad map");i=o.GetIterator(n)}if(typeof i<"u")for(;;){var l=o.IteratorStep(i);if(l===!1)break;var c=l.value;try{if(!o.TypeIsObject(c))throw new TypeError("Iterator value "+c+" is not an entry object");I(u,r,c[0],c[1])}catch(a){throw o.IteratorClose(i,!0),a}}}},Ut=function(e,r,n){if(ve(n)||_.string(n))J(n,function(a){r.add(a)});else if(n instanceof e)I(e.prototype.forEach,n,function(a){r.add(a)});else{var i,u;if(!U(n)){if(u=r.add,!o.IsCallable(u))throw new TypeError("bad set");i=o.GetIterator(n)}if(typeof i<"u")for(;;){var l=o.IteratorStep(i);if(l===!1)break;var c=l.value;try{I(u,r,c)}catch(a){throw o.IteratorClose(i,!0),a}}}},Se={Map:(function(){var t={},e=function(a,s){this.key=a,this.value=s,this.next=null,this.prev=null};e.prototype.isRemoved=function(){return this.key===t};var r=function(a){return!!a._es6map},n=function(a,s){if(!o.TypeIsObject(a)||!r(a))throw new TypeError("Method Map.prototype."+s+" called on incompatible receiver "+o.ToString(a))},i=function(a,s){n(a,"[[MapIterator]]"),this.head=a._head,this.i=this.head,this.kind=s};i.prototype={isMapIterator:!0,next:function(){if(!this.isMapIterator)throw new TypeError("Not a MapIterator");var a=this.i,s=this.kind,m=this.head;if(typeof this.i>"u")return ee();for(;a.isRemoved()&&a!==m;)a=a.prev;for(var O;a.next!==m;)if(a=a.next,!a.isRemoved())return s==="key"?O=a.key:s==="value"?O=a.value:O=[a.key,a.value],this.i=a,ee(O);return this.i=void 0,ee()}},W(i.prototype);var u,l=function c(){if(!(this instanceof c))throw new TypeError('Constructor Map requires "new"');if(this&&this._es6map)throw new TypeError("Bad construction");var a=Je(this,c,u,{_es6map:!0,_head:null,_map:A?new A:null,_size:0,_storage:Le()}),s=new e(null,null);return s.next=s.prev=s,a._head=s,arguments.length>0&&tt(c,a,arguments[0]),a};return u=l.prototype,T.getter(u,"size",function(){if(typeof this._size>"u")throw new TypeError("size method called on incompatible Map");return this._size}),x(u,{get:function(a){n(this,"get");var s,m=re(a,!0);if(m!==null)return s=this._storage[m],s?s.value:void 0;if(this._map)return s=de.call(this._map,a),s?s.value:void 0;for(var O=this._head,w=O;(w=w.next)!==O;)if(o.SameValueZero(w.key,a))return w.value},has:function(a){n(this,"has");var s=re(a,!0);if(s!==null)return typeof this._storage[s]<"u";if(this._map)return me.call(this._map,a);for(var m=this._head,O=m;(O=O.next)!==m;)if(o.SameValueZero(O.key,a))return!0;return!1},set:function(a,s){n(this,"set");var m=this._head,O=m,w,R=re(a,!0);if(R!==null){if(typeof this._storage[R]<"u")return this._storage[R].value=s,this;w=this._storage[R]=new e(a,s),O=m.prev}else this._map&&(me.call(this._map,a)?de.call(this._map,a).value=s:(w=new e(a,s),ct.call(this._map,a,w),O=m.prev));for(;(O=O.next)!==m;)if(o.SameValueZero(O.key,a))return O.value=s,this;return w=w||new e(a,s),o.SameValue(-0,a)&&(w.key=0),w.next=this._head,w.prev=this._head.prev,w.prev.next=w,w.next.prev=w,this._size+=1,this},delete:function(c){n(this,"delete");var a=this._head,s=a,m=re(c,!0);if(m!==null){if(typeof this._storage[m]>"u")return!1;s=this._storage[m].prev,delete this._storage[m]}else if(this._map){if(!me.call(this._map,c))return!1;s=de.call(this._map,c).prev,yr.call(this._map,c)}for(;(s=s.next)!==a;)if(o.SameValueZero(s.key,c))return s.key=t,s.value=t,s.prev.next=s.next,s.next.prev=s.prev,this._size-=1,!0;return!1},clear:function(){n(this,"clear"),this._map=A?new A:null,this._size=0,this._storage=Le();for(var a=this._head,s=a,m=s.next;(s=m)!==a;
10)s.key=t,s.value=t,m=s.next,s.next=s.prev=a;a.next=a.prev=a},keys:function(){return n(this,"keys"),new i(this,"key")},values:function(){return n(this,"values"),new i(this,"value")},entries:function(){return n(this,"entries"),new i(this,"key+value")},forEach:function(a){n(this,"forEach");for(var s=arguments.length>1?arguments[1]:null,m=this.entries(),O=m.next();!O.done;O=m.next())s?I(a,s,O.value[1],O.value[0],this):a(O.value[1],O.value[0],this)}}),W(u,u.entries),l})(),Set:(function(){var t=function(a){return a._es6set&&typeof a._storage<"u"},e=function(a,s){if(!o.TypeIsObject(a)||!t(a))throw new TypeError("Set.prototype."+s+" called on incompatible receiver "+o.ToString(a))},r,n=function c(){if(!(this instanceof c))throw new TypeError('Constructor Set requires "new"');if(this&&this._es6set)throw new TypeError("Bad construction");var a=Je(this,c,r,{_es6set:!0,"[[SetData]]":null,_storage:Le()});if(!a._es6set)throw new TypeError("bad set");return arguments.length>0&&Ut(c,a,arguments[0]),a};r=n.prototype;var i=function(c){var a=c;if(a==="^null")return null;if(a==="^undefined")return;var s=a.charAt(0);return s==="$"?ne(a,1):s==="n"?+ne(a,1):s==="b"?a==="btrue":+a},u=function(a){if(!a["[[SetData]]"]){var s=new Se.Map;a["[[SetData]]"]=s,J($(a._storage),function(m){var O=i(m);s.set(O,O)}),a["[[SetData]]"]=s}a._storage=null};T.getter(n.prototype,"size",function(){return e(this,"size"),this._storage?$(this._storage).length:(u(this),this["[[SetData]]"].size)}),x(n.prototype,{has:function(a){e(this,"has");var s;return this._storage&&(s=re(a))!==null?!!this._storage[s]:(u(this),this["[[SetData]]"].has(a))},add:function(a){e(this,"add");var s;return this._storage&&(s=re(a))!==null?(this._storage[s]=!0,this):(u(this),this["[[SetData]]"].set(a,a),this)},delete:function(c){e(this,"delete");var a;if(this._storage&&(a=re(c))!==null){var s=Ee(this._storage,a);return delete this._storage[a]&&s}return u(this),this["[[SetData]]"].delete(c)},clear:function(){e(this,"clear"),this._storage&&(this._storage=Le()),this["[[SetData]]"]&&this["[[SetData]]"].clear()},values:function(){return e(this,"values"),u(this),new l(this["[[SetData]]"].values())},entries:function(){return e(this,"entries"),u(this),new l(this["[[SetData]]"].entries())},forEach:function(a){e(this,"forEach");var s=arguments.length>1?arguments[1]:null,m=this;u(m),this["[[SetData]]"].forEach(function(O,w){s?I(a,s,w,w,m):a(w,w,m)})}}),S(n.prototype,"keys",n.prototype.values,!0),W(n.prototype,n.prototype.values);var l=function(a){this.it=a};return l.prototype={isSetIterator:!0,next:function(){if(!this.isSetIterator)throw new TypeError("Not a SetIterator");return this.it.next()}},W(l.prototype),n})()},ro=f.Set&&!Set.prototype.delete&&Set.prototype.remove&&Set.prototype.items&&Set.prototype.map&&Array.isArray(new Set().keys);if(ro&&(f.Set=Se.Set),f.Map||f.Set){var no=M(function(){return new Map([[1,2]]).get(1)===2});no||(f.Map=function t(){if(!(this instanceof t))throw new TypeError('Constructor Map requires "new"');var e=new A;return arguments.length>0&&tt(t,e,arguments[0]),delete e.constructor,Object.setPrototypeOf(e,f.Map.prototype),e},f.Map.prototype=Te(A.prototype),S(f.Map.prototype,"constructor",f.Map,!0),T.preserveToString(f.Map,A));var $t=new Map,Vt=(function(){var t=new Map([[1,0],[2,0],[3,0],[4,0]]);return t.set(-0,t),t.get(0)===t&&t.get(-0)===t&&t.has(0)&&t.has(-0)})(),oo=$t.set(1,2)===$t;(!Vt||!oo)&&b(Map.prototype,"set",function(e,r){return I(ct,this,e===0?0:e,r),this}),Vt||(x(Map.prototype,{get:function(e){return I(de,this,e===0?0:e)},has:function(e){return I(me,this,e===0?0:e)}},!0),T.preserveToString(Map.prototype.get,de),T.preserveToString(Map.prototype.has,me));var rt=new Set,Jt=Set.prototype.delete&&Set.prototype.add&&Set.prototype.has&&(function(t){return t.delete(0),t.add(-0),!t.has(0)})(rt),io=rt.add(1)===rt;if(!Jt||!io){var Yt=Set.prototype.add;Set.prototype.add=function(e){return I(Yt,this,e===0?0:e),this},T.preserveToString(Set.prototype.add,Yt)}if(!Jt){var Xt=Set.prototype.has;Set.prototype.has=function(e){return I(Xt,this,e===0?0:e)},T.preserveToString(Set.prototype.has,Xt);var Kt=Set.prototype.delete;Set.prototype.delete=function(e){return I(Kt,this,e===0?0:e)},T.preserveToString(Set.prototype.delete,Kt)}var Zt=We(f.Map,function(t){var e=new t([]);return e.set(42,42),e instanceof t}
10),ao=Object.setPrototypeOf&&!Zt,uo=(function(){try{return!(f.Map()instanceof f.Map)}catch(t){return t instanceof TypeError}})();(f.Map.length!==0||ao||!uo)&&(f.Map=function t(){if(!(this instanceof t))throw new TypeError('Constructor Map requires "new"');var e=new A;return arguments.length>0&&tt(t,e,arguments[0]),delete e.constructor,Object.setPrototypeOf(e,t.prototype),e},f.Map.prototype=A.prototype,S(f.Map.prototype,"constructor",f.Map,!0),T.preserveToString(f.Map,A));var so=We(f.Set,function(t){var e=new t([]);return e.add(42,42),e instanceof t}),fo=Object.setPrototypeOf&&!so,co=(function(){try{return!(f.Set()instanceof f.Set)}catch(t){return t instanceof TypeError}})();if(f.Set.length!==0||fo||!co){var nt=f.Set;f.Set=function t(){if(!(this instanceof t))throw new TypeError('Constructor Set requires "new"');var e=new nt;return arguments.length>0&&Ut(t,e,arguments[0]),delete e.constructor,Object.setPrototypeOf(e,t.prototype),e},f.Set.prototype=nt.prototype,S(f.Set.prototype,"constructor",f.Set,!0),T.preserveToString(f.Set,nt)}var ot=new f.Map,lo=!M(function(){return ot.keys().next().done});if((typeof f.Map.prototype.clear!="function"||new f.Set().size!==0||ot.size!==0||typeof f.Map.prototype.keys!="function"||typeof f.Set.prototype.keys!="function"||typeof f.Map.prototype.forEach!="function"||typeof f.Set.prototype.forEach!="function"||ft(f.Map)||ft(f.Set)||typeof ot.keys().next!="function"||lo||!Zt)&&x(f,{Map:Se.Map,Set:Se.Set},!0),f.Set.prototype.keys!==f.Set.prototype.values&&S(f.Set.prototype,"keys",f.Set.prototype.values,!0),W(Object.getPrototypeOf(new f.Map().keys())),W(Object.getPrototypeOf(new f.Set().keys())),ze&&f.Set.prototype.has.name!=="has"){var po=f.Set.prototype.has;b(f.Set.prototype,"has",function(e){return I(po,this,e)})}}x(f,Se),we(f.Map),we(f.Set)}var G=function(e){if(!o.TypeIsObject(e))throw new TypeError("target must be an object")},D={apply:function(){return o.Call(o.Call,null,arguments)},construct:function(e,r){if(!o.IsConstructor(e))throw new TypeError("First argument must be a constructor.");var n=arguments.length>2?arguments[2]:e;if(!o.IsConstructor(n))throw new TypeError("new.target must be a constructor.");return o.Construct(e,r,n,"internal")},deleteProperty:function(e,r){if(G(e),P){var n=Object.getOwnPropertyDescriptor(e,r);if(n&&!n.configurable)return!1}return delete e[r]},has:function(e,r){return G(e),r in e}};Object.getOwnPropertyNames&&Object.assign(D,{ownKeys:function(e){G(e);var r=Object.getOwnPropertyNames(e);return o.IsCallable(Object.getOwnPropertySymbols)&&vr(r,Object.getOwnPropertySymbols(e)),r}});var Qt=function(e){return!N(e)};if(Object.preventExtensions&&Object.assign(D,{isExtensible:function(e){return G(e),Object.isExtensible(e)},preventExtensions:function(e){return G(e),Qt(function(){Object.preventExtensions(e)})}}),P){var er=function(e,r,n){var i=Object.getOwnPropertyDescriptor(e,r);if(!i){var u=Object.getPrototypeOf(e);return u===null?void 0:er(u,r,n)}if("value"in i)return i.value;if(i.get)return o.Call(i.get,n)},tr=function(e,r,n,i){var u=Object.getOwnPropertyDescriptor(e,r);if(!u){var l=Object.getPrototypeOf(e);if(l!==null)return tr(l,r,n,i);u={value:void 0,writable:!0,enumerable:!0,configurable:!0}}if("value"in u){if(!u.writable||!o.TypeIsObject(i))return!1;var c=Object.getOwnPropertyDescriptor(i,r);return c?Z.defineProperty(i,r,{value:n}):Z.defineProperty(i,r,{value:n,writable:!0,enumerable:!0,configurable:!0})}return u.set?(I(u.set,i,n),!0):!1};Object.assign(D,{defineProperty:function(e,r,n){return G(e),Qt(function(){Object.defineProperty(e,r,n)})},getOwnPropertyDescriptor:function(e,r){return G(e),Object.getOwnPropertyDescriptor(e,r)},get:function(e,r){G(e);var n=arguments.length>2?arguments[2]:e;return er(e,r,n)},set:function(e,r,n){G(e);var i=arguments.length>3?arguments[3]:e;return tr(e,r,n,i)}})}if(Object.getPrototypeOf){var vo=Object.getPrototypeOf;D.getPrototypeOf=function(e){return G(e),vo(e)}}if(Object.setPrototypeOf&&D.getPrototypeOf){var ho=function(t,e){for(var r=e;r;){if(t===r)return!0;r=D.getPrototypeOf(r)}return!1};Object.assign(D,{setPrototypeOf:function(e,r){if(G(e),r!==null&&!o.TypeIsObject(r))throw new TypeError("proto must be an object or null");return r===Z.getPrototypeOf(e)?!0:Z.isExtensible&&!Z.isExtensible(e)||ho(e,r)?!1:(Object.
10setPrototypeOf(e,r),!0)}})}var yo=function(t,e){if(!o.IsCallable(f.Reflect[t]))S(f.Reflect,t,e);else{var r=M(function(){return f.Reflect[t](1),f.Reflect[t](NaN),f.Reflect[t](!0),!0});r&&b(f.Reflect,t,e)}};Object.keys(D).forEach(function(t){yo(t,D[t])});var it=f.Reflect.getPrototypeOf;if(ze&&it&&it.name!=="getPrototypeOf"&&b(f.Reflect,"getPrototypeOf",function(e){return I(it,f.Reflect,e)}),f.Reflect.setPrototypeOf&&M(function(){return f.Reflect.setPrototypeOf(1,{}),!0})&&b(f.Reflect,"setPrototypeOf",D.setPrototypeOf),f.Reflect.defineProperty&&(M(function(){var t=!f.Reflect.defineProperty(1,"test",{value:1}),e=typeof Object.preventExtensions!="function"||!f.Reflect.defineProperty(Object.preventExtensions({}),"test",{});return t&&e})||b(f.Reflect,"defineProperty",D.defineProperty)),f.Reflect.construct&&(M(function(){var t=function(){};return f.Reflect.construct(function(){},[],t)instanceof t})||b(f.Reflect,"construct",D.construct)),String(new Date(NaN))!=="Invalid Date"){var go=Date.prototype.toString,bo=function(){var e=+this;return e!==e?"Invalid Date":o.Call(go,this)};b(Date.prototype,"toString",bo)}var rr={anchor:function(e){return o.CreateHTML(this,"a","name",e)},big:function(){return o.CreateHTML(this,"big","","")},blink:function(){return o.CreateHTML(this,"blink","","")},bold:function(){return o.CreateHTML(this,"b","","")},fixed:function(){return o.CreateHTML(this,"tt","","")},fontcolor:function(e){return o.CreateHTML(this,"font","color",e)},fontsize:function(e){return o.CreateHTML(this,"font","size",e)},italics:function(){return o.CreateHTML(this,"i","","")},link:function(e){return o.CreateHTML(this,"a","href",e)},small:function(){return o.CreateHTML(this,"small","","")},strike:function(){return o.CreateHTML(this,"strike","","")},sub:function(){return o.CreateHTML(this,"sub","","")},sup:function(){return o.CreateHTML(this,"sup","","")}};J(Object.keys(rr),function(t){var e=String.prototype[t],r=!1;if(o.IsCallable(e)){var n=I(e,"",' " '),i=Ge([],n.match(/"/g)).length;r=n!==n.toLowerCase()||i>2}else r=!0;r&&b(String.prototype,t,rr[t])});var mo=(function(){if(!Oe)return!1;var t=typeof JSON=="object"&&typeof JSON.stringify=="function"?JSON.stringify:null;if(!t)return!1;if(typeof t(j())<"u"||t([j()])!=="[null]")return!0;var e={a:j()};return e[j()]=!0,t(e)!=="{}"})(),Oo=M(function(){return Oe?JSON.stringify(Object(j()))==="{}"&&JSON.stringify([Object(j())])==="[{}]":!0});if(mo||!Oo){var wo=JSON.stringify;b(JSON,"stringify",function(e){if(typeof e!="symbol"){var r;arguments.length>1&&(r=arguments[1]);var n=[e];if(ve(r))n.push(r);else{var i=o.IsCallable(r)?r:null,u=function(l,c){var a=i?I(i,this,l,c):c;if(typeof a!="symbol")return _.symbol(a)?Nt({})(a):a};n.push(u)}return arguments.length>2&&n.push(arguments[2]),wo.apply(this,n)}})}return f}); 11 12/*! 13 * jQuery JavaScript Library v1.10.2 14 * http://jquery.com/ 15 * 16 * Includes Sizzle.js 17 * http://sizzlejs.com/ 18 * 19 * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors 20 * Released under the MIT license 21 * http://jquery.org/license 22 * 23 * Date: 2013-07-03T13:48Z 24 */(function(j,C){var qe,kt,ie=typeof C,_n=j.location,S=j.document,At=S.documentElement,On=j.jQuery,qn=j.$,Me={},Ce=[],Ge="1.10.2",Dt=Ce.concat,Je=Ce.push,he=Ce.slice,Lt=Ce.indexOf,Mn=Me.toString,we=Me.hasOwnProperty,Ke=Ge.trim,n=function(e,t){return new n.fn.init(e,t,kt)},Pe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=/\S+/g,Pn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Fn=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,Ht=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,Rn=/^[\],:{}\s]*$/,Bn=/(?:^|:|,)(?:\s*\[)+/g,Wn=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,In=/"[^"\\\r\n]*"|true|false|null|-?(?:\d+\.|)\d+(?:[eE][+-]?\d+|)/g,$n=/^-ms-/,zn=/-([\da-z])/gi,Xn=function(e,t){return t.toUpperCase()},ae=function(e){(S.addEventListener||e.type==="load"||S.readyState==="complete")&&(jt(),n.ready())},jt=function(){S.addEventListener?(S.removeEventListener("DOMContentLoaded",ae,!1),j.removeEventListener("load",ae,!1)):(S.detachEvent("onreadystatechange",ae),j.detachEvent("onload",ae))};n.fn=n.prototype={jquery:Ge,constructor:n,init:function(e,t,i){var r,o;
24if(!e)return this;if(typeof e=="string")if(e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?r=[null,e,null]:r=Fn.exec(e),r&&(r[1]||!t))if(r[1]){if(t=t instanceof n?t[0]:t,n.merge(this,n.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),Ht.test(r[1])&&n.isPlainObject(t))for(r in t)n.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}else{if(o=S.getElementById(r[2]),o&&o.parentNode){if(o.id!==r[2])return i.find(e);this.length=1,this[0]=o}return this.context=S,this.selector=e,this}else return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);else{if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if(n.isFunction(e))return i.ready(e)}return e.selector!==C&&(this.selector=e.selector,this.context=e.context),n.makeArray(e,this)},selector:"",length:0,toArray:function(){return he.call(this)},get:function(e){return e==null?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e){var t=n.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return n.each(this,e,t)},ready:function(e){return n.ready.promise().done(e),this},slice:function(){return this.pushStack(he.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},map:function(e){return this.pushStack(n.map(this,function(t,i){return e.call(t,i,t)}))},end:function(){return this.prevObject||this.constructor(null)},push:Je,sort:[].sort,splice:[].splice},n.fn.init.prototype=n.fn,n.extend=n.fn.extend=function(){var e,t,i,r,o,a,s=arguments[0]||{},f=1,h=arguments.length,g=!1;for(typeof s=="boolean"&&(g=s,s=arguments[1]||{},f=2),typeof s!="object"&&!n.isFunction(s)&&(s={}),h===f&&(s=this,--f);f<h;f++)if((o=arguments[f])!=null)for(r in o)e=s[r],i=o[r],s!==i&&(g&&i&&(n.isPlainObject(i)||(t=n.isArray(i)))?(t?(t=!1,a=e&&n.isArray(e)?e:[]):a=e&&n.isPlainObject(e)?e:{},s[r]=n.extend(g,a,i)):i!==C&&(s[r]=i));return s},n.extend({expando:"jQuery"+(Ge+Math.random()).replace(/\D/g,""),noConflict:function(e){return j.$===n&&(j.$=qn),e&&j.jQuery===n&&(j.jQuery=On),n},isReady:!1,readyWait:1,holdReady:function(e){e?n.readyWait++:n.ready(!0)}
24,ready:function(e){if(!(e===!0?--n.readyWait:n.isReady)){if(!S.body)return setTimeout(n.ready);n.isReady=!0,!(e!==!0&&--n.readyWait>0)&&(qe.resolveWith(S,[n]),n.fn.trigger&&n(S).trigger("ready").off("ready"))}},isFunction:function(e){return n.type(e)==="function"},isArray:Array.isArray||function(e){return n.type(e)==="array"},isWindow:function(e){return e!=null&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return e==null?String(e):typeof e=="object"||typeof e=="function"?Me[Mn.call(e)]||"object":typeof e},isPlainObject:function(e){var t;if(!e||n.type(e)!=="object"||e.nodeType||n.isWindow(e))return!1;try{if(e.constructor&&!we.call(e,"constructor")&&!we.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch{return!1}if(n.support.ownLast)for(t in e)return we.call(e,t);for(t in e);return t===C||we.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,i){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(i=t,t=!1),t=t||S;var r=Ht.exec(e),o=!i&&[];return r?[t.createElement(r[1])]:(r=n.buildFragment([e],t,o),o&&n(o).remove(),n.merge([],r.childNodes))},parseJSON:function(e){if(j.JSON&&j.JSON.parse)return j.JSON.parse(e);if(e===null)return e;if(typeof e=="string"&&(e=n.trim(e),e&&Rn.test(e.replace(Wn,"@").replace(In,"]").replace(Bn,""))))return new Function("return "+e)();n.error("Invalid JSON: "+e)},parseXML:function(e){var t,i;if(!e||typeof e!="string")return null;try{j.DOMParser?(i=new DOMParser,t=i.parseFromString(e,"text/xml")):(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e))}catch{t=C}return(!t||!t.documentElement||t.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+e),t},noop:function(){},globalEval:function(e){e&&n.trim(e)&&(j.execScript||function(t){j.eval.call(j,t)})(e)},camelCase:function(e){return e.replace($n,"ms-").replace(zn,Xn)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,i){var r,o=0,a=e.length,s=Ze(e);if(i){if(s)for(;o<a&&(r=t.apply(e[o],i),r!==!1);o++);else for(o in e)if(r=t.apply(e[o],i),r===!1)break}else if(s)for(;o<a&&(r=t.call(e[o],o,e[o]),r!==!1);o++);else for(o in e)if(r=t.call(e[o],o,e[o]),r===!1)break;return e},trim:Ke&&!Ke.call("\uFEFF\xA0")?function(e){return e==null?"":Ke.call(e)}:function(e){return e==null?"":(e+"").replace(Pn,"")},makeArray:function(e,t){var i=t||[];return e!=null&&(Ze(Object(e))?n.merge(i,typeof e=="string"?[e]:e):Je.call(i,e)),i},inArray:function(e,t,i){var r;if(t){if(Lt)return Lt.call(t,e,i);for(r=t.length,i=i?i<0?Math.max(0,r+i):i:0;i<r;i++)if(i in t&&t[i]===e)return i}return-1},merge:function(e,t){var i=t.length,r=e.length,o=0;if(typeof i=="number")for(;o<i;o++)e[r++]=t[o];else for(;t[o]!==C;)e[r++]=t[o++];return e.length=r,e},grep:function(e,t,i){var r,o=[],a=0,s=e.length;for(i=!!i;a<s;a++)r=!!t(e[a],a),i!==r&&o.push(e[a]);return o},map:function(e,t,i){var r,o=0,a=e.length,s=Ze(e),f=[];if(s)for(;o<a;o++)r=t(e[o],o,i),r!=null&&(f[f.length]=r);else for(o in e)r=t(e[o],o,i),r!=null&&(f[f.length]=r);return Dt.apply([],f)},guid:1,proxy:function(e,t){var i,r,o;return typeof t=="string"&&(o=e[t],t=e,e=o),n.isFunction(e)?(i=he.call(arguments,2),r=function(){return e.apply(t||this,i.concat(he.call(arguments)))},r.guid=e.guid=e.guid||n.guid++,r):C},access:function(e,t,i,r,o,a,s){var f=0,h=e.length,g=i==null;if(n.type(i)==="object"){o=!0;for(f in i)n.access(e,t,f,i[f],!0,a,s)}else if(r!==C&&(o=!0,n.isFunction(r)||(s=!0),g&&(s?(t.call(e,r),t=null):(g=t,t=function(p,v,m){return g.call(n(p),m)})),t))for(;f<h;f++)t(e[f],i,s?r:r.call(e[f],f,t(e[f],i)));return o?e:g?t.call(e):h?t(e[0],i):a},now:function(){return new Date().getTime()},swap:function(e,t,i,r){var o,a,s={};for(a in t)s[a]=e.style[a],e.style[a]=t[a];o=i.apply(e,r||[]);for(a in t)e.style[a]=s[a];return o}}),n.ready.promise=function(e){if(!qe)if(qe=n.Deferred(),S.readyState==="complete")setTimeout(n.ready);else if(S.addEventListener)S.addEventListener("DOMContentLoaded",ae,!1),j.addEventListener("load",ae,!1);else{S.attachEvent("onreadystatechange",ae),j.attachEvent("onload",ae);var t=!1;try{t=j.frameElement==null&&S.documentElement}catch{}t&&t.doScroll&&(function i(){if(!n.isReady){try{t.doScroll("left")}catch{return setTimeout(i,50)}jt(),n.ready()}})()}return qe.promise(e)},n.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){Me["[object "+t+"]"]=t.toLowerCase()});function Ze(e){var t=e.length,i=n.type(e);return n.isWindow(e)?!1:e.nodeType===1&&t?!0:i==="array"||i!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}kt=n(S);/*! 25 * Sizzle CSS Selector Engine v1.10.2 26 * http://sizzlejs.com/ 27 * 28 * Copyright 2013 jQuery Foundation, Inc. and other contributors 29 * Released under the MIT license 30 * http://jquery.org/license 31 * 32 * Date: 2013-07-03 33 */(function(e,t){var i,r,o,a,s,f,h,g,p,v,m,x,D,k,O,ne,z,W="sizzle"+-new Date,A=e.document,G=0,q=0,I=Tt(),ue=Tt(),ze=Tt(),J=!1,be=function(u,l){return u===l&&(J=!0),0},Z=typeof t,oe=1<<31,fe={}.hasOwnProperty,$=[],qi=$.pop,Mi=$.push,le=$.push,kn=$.slice,xe=$.indexOf||function(u){for(var l=0,d=this.length;l<d;l++)if(this[l]===u)return l;return-1},mt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",De="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",An=De.replace("w","w#"),Dn="\\["+F+"*("+De+")"+F+"*(?:([*^$|!~]?=)"+F+`*(?:(['"])((?:\\\\.|[^\\\\])*?)\\3|(`+An+")|)|)"+F+"*\\]",vt=":("+De+`)(?:\\(((['"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|`+Dn.replace(3,8)+")*)|.*)\\)|)",Xe=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),Pi=new RegExp("^"+F+"*,"+F+"*"),Fi=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),bt=new RegExp(F+"*[+~]"),Ri=new RegExp("="+F+`*([^\\]'"]*)`+F+"*\\]","g"),Bi=new RegExp(vt),Wi=new RegExp("^"+An+"$"),Ue={ID:new RegExp("^#("+De+")"),CLASS:new RegExp("^\\.("+De+")"),TAG:new RegExp("^("+De.replace("w","w*")+")"),ATTR:new RegExp("^"+Dn),PSEUDO:new RegExp("^"+vt),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+mt+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},xt=/^[^{]+\{\s*\[native \w/,Ii=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$i=/^(?:input|select|textarea|button)$/i,zi=/^h\d$/i,Xi=/'|\\/g,ce=new RegExp("\\\\([\\da-f]{1,6}"+F+"?|("+F+")|.)","ig"),pe=function(u,l,d){var c="0x"+l-65536;return c!==c||d?l:c<0?String.fromCharCode(c+65536):String.fromCharCode(c>>10|55296,c&1023|56320)};try{le.apply($=kn.call(A.childNodes),A.childNodes),$[A.childNodes.length].nodeType}
vendor: 4,360 bytes, line 33
33catch{le={apply:$.length?function(l,d){Mi.apply(l,kn.call(d))}:function(l,d){for(var c=l.length,y=0;l[c++]=d[y++];);l.length=c-1}}}function M(u,l,d,c){var y,T,b,w,N,H,L,E,P,_;if((l?l.ownerDocument||l:A)!==m&&v(l),l=l||m,d=d||[],!u||typeof u!="string")return d;if((w=l.nodeType)!==1&&w!==9)return[];if(D&&!c){if(y=Ii.exec(u))if(b=y[1]){if(w===9)if(T=l.getElementById(b),T&&T.parentNode){if(T.id===b)return d.push(T),d}else return d;else if(l.ownerDocument&&(T=l.ownerDocument.getElementById(b))&&z(l,T)&&T.id===b)return d.push(T),d}else{if(y[2])return le.apply(d,l.getElementsByTagName(u)),d;if((b=y[3])&&r.getElementsByClassName&&l.getElementsByClassName)return le.apply(d,l.getElementsByClassName(b)),d}if(r.qsa&&(!k||!k.test(u))){if(E=L=W,P=l,_=w===9&&u,w===1&&l.nodeName.toLowerCase()!=="object"){for(H=Ve(u),(L=l.getAttribute("id"))?E=L.replace(Xi,"\\$&"):l.setAttribute("id",E),E="[id='"+E+"'] ",N=H.length;N--;)H[N]=E+Qe(H[N]);P=bt.test(u)&&l.parentNode||l,_=H.join(",")}if(_)try{return le.apply(d,P.querySelectorAll(_)),d}catch{}finally{L||l.removeAttribute("id")}}}return Gi(u.replace(Xe,"$1"),l,d,c)}function Tt(){var u=[];function l(d,c){return u.push(d+=" ")>a.cacheLength&&delete l[u.shift()],l[d]=c}return l}function ee(u){return u[W]=!0,u}function te(u){var l=m.createElement("div");try{return!!u(l)}catch{return!1}finally{l.parentNode&&l.parentNode.removeChild(l),l=null}}function Ct(u,l){for(var d=u.split("|"),c=u.length;c--;)a.attrHandle[d[c]]=l}function Ln(u,l){var d=l&&u,c=d&&u.nodeType===1&&l.nodeType===1&&(~l.sourceIndex||oe)-(~u.sourceIndex||oe);if(c)return c;if(d){for(;d=d.nextSibling;)if(d===l)return-1}return u?1:-1}function Ui(u){return function(l){var d=l.nodeName.toLowerCase();return d==="input"&&l.type===u}}function Vi(u){return function(l){var d=l.nodeName.toLowerCase();return(d==="input"||d==="button")&&l.type===u}}function Te(u){return ee(function(l){return l=+l,ee(function(d,c){for(var y,T=u([],d.length,l),b=T.length;b--;)d[y=T[b]]&&(d[y]=!(c[y]=d[y]))})})}f=M.isXML=function(u){var l=u&&(u.ownerDocument||u).documentElement;return l?l.nodeName!=="HTML":!1},r=M.support={},v=M.setDocument=function(u){var l=u?u.ownerDocument||u:A,d=l.defaultView;return l===m||l.nodeType!==9||!l.documentElement?m:(m=l,x=l.documentElement,D=!f(l),d&&d.attachEvent&&d!==d.top&&d.attachEvent("onbeforeunload",function(){v()}),r.attributes=te(function(c){return c.className="i",!c.getAttribute("className")}),r.getElementsByTagName=te(function(c){return c.appendChild(l.createComment("")),!c.getElementsByTagName("*").length}),r.getElementsByClassName=te(function(c){return c.innerHTML="<div class='a'></div><div class='a i'></div>",c.firstChild.className="i",c.getElementsByClassName("i").length===2}),r.getById=te(function(c){return x.appendChild(c).id=W,!l.getElementsByName||!l.getElementsByName(W).length}),r.getById?(a.find.ID=function(c,y){if(typeof y.getElementById!==Z&&D){var T=y.getElementById(c);return T&&T.parentNode?[T]:[]}},a.filter.ID=function(c){var y=c.replace(ce,pe);return function(T){return T.getAttribute("id")===y}}):(delete a.find.ID,a.filter.ID=function(c){var y=c.replace(ce,pe);return function(T){var b=typeof T.getAttributeNode!==Z&&T.getAttributeNode("id");return b&&b.value===y}}),a.find.TAG=r.getElementsByTagName?function(c,y){if(typeof y.getElementsByTagName!==Z)return y.getElementsByTagName(c)}:function(c,y){var T,b=[],w=0,N=y.getElementsByTagName(c);if(c==="*"){for(;T=N[w++];)T.nodeType===1&&b.push(T);return b}return N},a.find.CLASS=r.getElementsByClassName&&function(c,y){if(typeof y.getElementsByClassName!==Z&&D)return y.getElementsByClassName(c)},O=[],k=[],(r.qsa=xt.test(l.querySelectorAll))&&(te(function(c){c.innerHTML="<select><option selected=''></option></select>",c.querySelectorAll("[selected]").length||k.push("\\["+F+"*(?:value|"+mt+")"),c.querySelectorAll(":checked").length||k.push(":checked")}),te(function(c){var y=l.createElement("input");y.setAttribute("type","hidden"),c.appendChild(y).setAttribute("t",""),c.querySelectorAll("[t^='']").length&&k.push("[*^$]="+F+`*(?:''|"")`),c.querySelectorAll(":enabled").length||k.push(":enabled",":disabled"),c.querySelectorAll("*,:x"),k.push(",.*:")})),(r.matchesSelector=xt.test(ne=x.webkitMatchesSelector||x.mozMatchesSelector||x.oMatchesSelector||x.msMatchesSelector))&&te(function(c){r.disconnectedMatch=ne.call(c,"div"),ne.call(c,"[
33s!='']:x"),O.push("!=",vt)}),k=k.length&&new RegExp(k.join("|")),O=O.length&&new RegExp(O.join("|")),z=xt.test(x.contains)||x.compareDocumentPosition?function(c,y){var T=c.nodeType===9?c.documentElement:c,b=y&&y.parentNode;return c===b||!!(b&&b.nodeType===1&&(T.contains?T.contains(b):c.compareDocumentPosition&&c.compareDocumentPosition(b)&16))}:function(c,y){if(y){for(;y=y.parentNode;)if(y===c)return!0}return!1},be=x.compareDocumentPosition?function(c,y){if(c===y)return J=!0,0;var T=y.compareDocumentPosition&&c.compareDocumentPosition&&c.compareDocumentPosition(y);return T?T&1||!r.sortDetached&&y.compareDocumentPosition(c)===T?c===l||z(A,c)?-1:y===l||z(A,y)?1:p?xe.call(p,c)-xe.call(p,y):0:T&4?-1:1:c.compareDocumentPosition?-1:1}:function(c,y){var T,b=0,w=c.parentNode,N=y.parentNode,H=[c],L=[y];if(c===y)return J=!0,0;if(!w||!N)return c===l?-1:y===l?1:w?-1:N?1:p?xe.call(p,c)-xe.call(p,y):0;if(w===N)return Ln(c,y);for(T=c;T=T.parentNode;)H.unshift(T);for(T=y;T=T.parentNode;)L.unshift(T);for(;H[b]===L[b];)b++;return b?Ln(H[b],L[b]):H[b]===A?-1:L[b]===A?1:0},l)},M.matches=function(u,l){return M(u,null,null,l)},M.matchesSelector=function(u,l){if((u.ownerDocument||u)!==m&&v(u),l=l.replace(Ri,"='$1']"),r.matchesSelector&&D&&(!O||!O.test(l))&&(!k||!k.test(l)))try{var d=ne.call(u,l);if(d||r.disconnectedMatch||u.document&&u.document.nodeType!==11)return d}catch{}return M(l,m,null,[u]).length>0},M.contains=function(u,l){return(u.ownerDocument||u)!==m&&v(u),z(u,l)},M.attr=function(u,l){(u.ownerDocument||u)!==m&&v(u);var d=a.attrHandle[l.toLowerCase()],c=d&&fe.call(a.attrHandle,l.toLowerCase())?d(u,l,!D):t;return c===t?r.attributes||!D?u.getAttribute(l):(c=u.getAttributeNode(l))&&c.specified?c.value:null:c},M.error=function(u){throw new Error("Syntax error, unrecognized expression: "+u)},M.uniqueSort=function(u){var l,d=[],c=0,y=0;if(J=!r.detectDuplicates,p=!r.sortStable&&u.slice(0),u.sort(be),J){for(;l=u[y++];)l===u[y]&&(c=d.push(y));for(;c--;)u.splice(d[c],1)}return u},s=M.getText=function(u){var l,d="",c=0,y=u.nodeType;if(y){if(y===1||y===9||y===11){if(typeof u.textContent=="string")return u.textContent;for(u=u.firstChild;u;u=u.nextSibling)d+=s(u)}else if(y===3||y===4)return u.nodeValue}else for(;l=u[c];c++)d+=s(l);return d},a=M.selectors={cacheLength:50,createPseudo:ee,match:Ue,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(u){return u[1]=u[1].replace(ce,pe),u[3]=(u[4]||u[5]||"").replace(ce,pe),u[2]==="~="&&(u[3]=" "+u[3]+" "),u.slice(0,4)},CHILD:function(u){return u[1]=u[1].toLowerCase(),u[1].slice(0,3)==="nth"?(u[3]||M.error(u[0]),u[4]=+(u[4]?u[5]+(u[6]||1):2*(u[3]==="even"||u[3]==="odd")),u[5]=+(u[7]+u[8]||u[3]==="odd")):u[3]&&M.error(u[0]),u},PSEUDO:function(u){var l,d=!u[5]&&u[2];return Ue.CHILD.test(u[0])?null:(u[3]&&u[4]!==t?u[2]=u[4]:d&&Bi.test(d)&&(l=Ve(d,!0))&&(l=d.indexOf(")",d.length-l)-d.length)&&(u[0]=u[0].slice(0,l),u[2]=d.slice(0,l)),u.slice(0,3))}},filter:{TAG:function(u){var l=u.replace(ce,pe).toLowerCase();return u==="*"?function(){return!0}:function(d){return d.nodeName&&d.nodeName.toLowerCase()===l}},CLASS:function(u){var l=I[u+" "];return l||(l=new RegExp("(^|"+F+")"+u+"("+F+"|$)"))&&I(u,function(d){return l.test(typeof d.className=="string"&&d.className||typeof d.getAttribute!==Z&&d.getAttribute("class")||"")})},ATTR:function(u,l,d){return function(c){var y=M.attr(c,u);return y==null?l==="!=":l?(y+="",l==="="?y===d:l==="!="?y!==d:l==="^="?d&&y.indexOf(d)===0:l==="*="?d&&y.indexOf(d)>-1:l==="$="?d&&y.slice(-d.length)===d:l==="~="?(" "+y+" ").indexOf(d)>-1:l==="|="?y===d||y.slice(0,d.length+1)===d+"-":!1):!0}},CHILD:function(u,l,d,c,y){var T=u.slice(0,3)!=="nth",b=u.slice(-4)!=="last",w=l==="of-type";return c===1&&y===0?function(N){return!!N.parentNode}:function(N,H,L){var E,P,_,B,X,U,Q=T!==b?"nextSibling":"previousSibling",R=N.parentNode,_e=w&&N.nodeName.toLowerCase(),Oe=!L&&!w;if(R){if(T){for(;Q;){for(_=N;_=_[Q];)if(w?_.nodeName.toLowerCase()===_e:_.nodeType===1)return!1;U=Q=u==="only"&&!U&&"nextSibling"}return!0}
vendor: 10,484 bytes, line 33
33if(U=[b?R.firstChild:R.lastChild],b&&Oe){for(P=R[W]||(R[W]={}),E=P[u]||[],X=E[0]===G&&E[1],B=E[0]===G&&E[2],_=X&&R.childNodes[X];_=++X&&_&&_[Q]||(B=X=0)||U.pop();)if(_.nodeType===1&&++B&&_===N){P[u]=[G,X,B];break}}else if(Oe&&(E=(N[W]||(N[W]={}))[u])&&E[0]===G)B=E[1];else for(;(_=++X&&_&&_[Q]||(B=X=0)||U.pop())&&!((w?_.nodeName.toLowerCase()===_e:_.nodeType===1)&&++B&&(Oe&&((_[W]||(_[W]={}))[u]=[G,B]),_===N)););return B-=y,B===c||B%c===0&&B/c>=0}}},PSEUDO:function(u,l){var d,c=a.pseudos[u]||a.setFilters[u.toLowerCase()]||M.error("unsupported pseudo: "+u);return c[W]?c(l):c.length>1?(d=[u,u,"",l],a.setFilters.hasOwnProperty(u.toLowerCase())?ee(function(y,T){for(var b,w=c(y,l),N=w.length;N--;)b=xe.call(y,w[N]),y[b]=!(T[b]=w[N])}):function(y){return c(y,0,d)}):c}},pseudos:{not:ee(function(u){var l=[],d=[],c=h(u.replace(Xe,"$1"));return c[W]?ee(function(y,T,b,w){for(var N,H=c(y,null,w,[]),L=y.length;L--;)(N=H[L])&&(y[L]=!(T[L]=N))}):function(y,T,b){return l[0]=y,c(l,null,b,d),!d.pop()}}),has:ee(function(u){return function(l){return M(u,l).length>0}}),contains:ee(function(u){return function(l){return(l.textContent||l.innerText||s(l)).indexOf(u)>-1}}),lang:ee(function(u){return Wi.test(u||"")||M.error("unsupported lang: "+u),u=u.replace(ce,pe).toLowerCase(),function(l){var d;do if(d=D?l.lang:l.getAttribute("xml:lang")||l.getAttribute("lang"))return d=d.toLowerCase(),d===u||d.indexOf(u+"-")===0;while((l=l.parentNode)&&l.nodeType===1);return!1}}),target:function(u){var l=e.location&&e.location.hash;return l&&l.slice(1)===u.id},root:function(u){return u===x},focus:function(u){return u===m.activeElement&&(!m.hasFocus||m.hasFocus())&&!!(u.type||u.href||~u.tabIndex)},enabled:function(u){return u.disabled===!1},disabled:function(u){return u.disabled===!0},checked:function(u){var l=u.nodeName.toLowerCase();return l==="input"&&!!u.checked||l==="option"&&!!u.selected},selected:function(u){return u.parentNode&&u.parentNode.selectedIndex,u.selected===!0},empty:function(u){for(u=u.firstChild;u;u=u.nextSibling)if(u.nodeName>"@"||u.nodeType===3||u.nodeType===4)return!1;return!0},parent:function(u){return!a.pseudos.empty(u)},header:function(u){return zi.test(u.nodeName)},input:function(u){return $i.test(u.nodeName)},button:function(u){var l=u.nodeName.toLowerCase();return l==="input"&&u.type==="button"||l==="button"},text:function(u){var l;return u.nodeName.toLowerCase()==="input"&&u.type==="text"&&((l=u.getAttribute("type"))==null||l.toLowerCase()===u.type)},first:Te(function(){return[0]}),last:Te(function(u,l){return[l-1]}),eq:Te(function(u,l,d){return[d<0?d+l:d]}),even:Te(function(u,l){for(var d=0;d<l;d+=2)u.push(d);return u}),odd:Te(function(u,l){for(var d=1;d<l;d+=2)u.push(d);return u}),lt:Te(function(u,l,d){for(var c=d<0?d+l:d;--c>=0;)u.push(c);return u}),gt:Te(function(u,l,d){for(var c=d<0?d+l:d;++c<l;)u.push(c);return u})}},a.pseudos.nth=a.pseudos.eq;for(i in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})a.pseudos[i]=Ui(i);for(i in{submit:!0,reset:!0})a.pseudos[i]=Vi(i);function Hn(){}Hn.prototype=a.filters=a.pseudos,a.setFilters=new Hn;function Ve(u,l){var d,c,y,T,b,w,N,H=ue[u+" "];if(H)return l?0:H.slice(0);for(b=u,w=[],N=a.preFilter;b;){(!d||(c=Pi.exec(b)))&&(c&&(b=b.slice(c[0].length)||b),w.push(y=[])),d=!1,(c=Fi.exec(b))&&(d=c.shift(),y.push({value:d,type:c[0].replace(Xe," ")}),b=b.slice(d.length));for(T in a.filter)(c=Ue[T].exec(b))&&(!N[T]||(c=N[T](c)))&&(d=c.shift(),y.push({value:d,type:T,matches:c}),b=b.slice(d.length));if(!d)break}return l?b.length:b?M.error(u):ue(u,w).slice(0)}function Qe(u){for(var l=0,d=u.length,c="";l<d;l++)c+=u[l].value;return c}function wt(u,l,d){var c=l.dir,y=d&&c==="parentNode",T=q++;return l.first?function(b,w,N){for(;b=b[c];)if(b.nodeType===1||y)return u(b,w,N)}:function(b,w,N){var H,L,E,P=G+" "+T;if(N){for(;b=b[c];)if((b.nodeType===1||y)&&u(b,w,N))return!0}else for(;b=b[c];)if(b.nodeType===1||y){if(E=b[W]||(b[W]={}),(L=E[c])&&L[0]===P){if((H=L[1])===!0||H===o)return H===!0}else if(L=E[c]=[P],L[1]=u(b,w,N)||o,L[1]===!0)return!0}}}function Nt(u){return u.length>1?function(l,d,c){for(var y=u.length;y--;)if(!u[y](l,d,c))return!1;return!0}:u[0]}function Ye(u,l,d,c,y){for(var T,b=[],w=0,N=u.length,H=l!=null;w<N;w++)(T=u[w])&&(!d||d(T,c,y))&&(b.push(T),H&&l.push(w));return b}function Et(u,l,d,c,y,T){return c&&!c[W]&&(c=Et(c)),y&&!y[W]&&(y=Et(y,T)),ee(function(b,w,N,H){var L,E,P,_=[],B=[],X=w.length,U=b||Yi(l||"*",N.nodeType?[N]:N,[]),Q=u&&(b||!l)?Ye(U,_,u,N,H):U,R=d?y||(b?u:X||c)?[]:w:Q;if(d&&d(Q,R,N,H),c)for(L=Ye(R,B),c(L,[],N,H),E=L.length;E--;)(P=L[E])&&(R[B[E]]=!(Q[B[E]]=P));if(b){if(y||u){if(y){for(L=[],E=R.length;E--;)(P=R[E])&&L.push(Q[E]=P);y(null,R=[],L,H)}for(E=R.length;E--;)(P=R[E])&&(L=y?xe.call(b,P):_[E])>-1&&(b[L]=!(w[L]=P))}}else R=Ye(R===w?R.splice(X,R.length):R),y?y(null,w,R,H):le.apply(w,R)})}function St(u){for(var l,d,c,y=u.length,T=a.relative[u[0].type],b=T||a.relative[" "],w=T?1:0,N=wt(function(E){return E===l},b,!0),H=wt(function(E){return xe.call(l,E)>-1},b,!0),L=[function(E,P,_){return!T&&(_||P!==g)||((l=P).nodeType?N(E,P,_):H(E,P,_))}];w<y;w++)if(d=a.relative[u[w].type])L=[wt(Nt(L),d)];else{if(d=a.filter[u[w].type].apply(null,u[w].matches),d[W]){for(c=++w;c<y&&!a.relative[u[c].type];c++);return Et(w>1&&Nt(L),w>1&&Qe(u.slice(0,w-1).concat({value:u[w-2].type===" "?"*":""})).replace(Xe,"$1"),d,w<c&&St(u.slice(w,c)),c<y&&St(u=u.slice(c)),c<y&&Qe(u))}L.push(d)}return Nt(L)}function Qi(u,l){var d=0,c=l.length>0,y=u.length>0,T=function(b,w,N,H,L){var E,P,_,B=[],X=0,U="0",Q=b&&[],R=L!=null,_e=g,Oe=b||y&&a.find.TAG("*",L&&w.parentNode||w),jn=G+=_e==null?1:Math.random()||.1;for(R&&(g=w!==m&&w,o=d);(E=Oe[U])!=null;U++){if(y&&E){for(P=0;_=u[P++];)if(_(E,w,N)){H.push(E);break}R&&(G=jn,o=++d)}c&&((E=!_&&E)&&X--,b&&Q.push(E))}if(X+=U,c&&U!==X){for(P=0;_=l[P++];)_(Q,B,w,N);if(b){if(X>0)for(;U--;)Q[U]||B[U]||(B[U]=qi.call(H));B=Ye(B)}le.apply(H,B),R&&!b&&B.length>0&&X+l.length>1&&M.uniqueSort(H)}return R&&(G=jn,g=_e),Q};return c?ee(T):T}h=M.compile=function(u,l){var d,c=[],y=[],T=ze[u+" "];if(!T){for(l||(l=Ve(u)),d=l.length;d--;)T=St(l[d]),T[W]?c.push(T):y.push(T);T=ze(u,Qi(y,c))}return T};function Yi(u,l,d){for(var c=0,y=l.length;c<y;c++)M(u,l[c],d);return d}function Gi(u,l,d,c){var y,T,b,w,N,H=Ve(u);if(!c&&H.length===1){if(T=H[0]=H[0].slice(0),T.length>2&&(b=T[0]).type==="ID"&&r.getById&&l.nodeType===9&&D&&a.relative[T[1].type]){if(l=(a.find.ID(b.matches[0].replace(ce,pe),l)||[])[0],!l)return d;u=u.slice(T.shift().value.length)}for(y=Ue.needsContext.test(u)?0:T.length;y--&&(b=T[y],!a.relative[w=b.type]);)if((N=a.find[w])&&(c=N(b.matches[0].replace(ce,pe),bt.test(T[0].type)&&l.parentNode||l))){if(T.splice(y,1),u=c.length&&Qe(T),!u)return le.apply(d,c),d;break}}return h(u,H)(c,l,!D,d,bt.test(u)),d}r.sortStable=W.split("").sort(be).join("")===W,r.detectDuplicates=J,v(),r.sortDetached=te(function(u){return u.compareDocumentPosition(m.createElement("div"))&1}),te(function(u){return u.innerHTML="<a href='#'></a>",u.firstChild.getAttribute("href")==="#"})||Ct("type|href|height|width",function(u,l,d){if(!d)return u.getAttribute(l,l.toLowerCase()==="type"?1:2)}),(!r.attributes||!te(function(u){return u.innerHTML="<input/>",u.firstChild.setAttribute("value",""),u.firstChild.getAttribute("value")===""}))&&Ct("value",function(u,l,d){if(!d&&u.nodeName.toLowerCase()==="input")return u.defaultValue}),te(function(u){return u.getAttribute("disabled")==null})||Ct(mt,function(u,l,d){var c;if(!d)return(c=u.getAttributeNode(l))&&c.specified?c.value:u[l]===!0?l.toLowerCase():null}),n.find=M,n.expr=M.selectors,n.expr[":"]=n.expr.pseudos,n.unique=M.uniqueSort,n.text=M.getText,n.isXMLDoc=M.isXML,n.contains=M.contains})(j);var _t={};function Un(e){var t=_t[e]={};return n.each(e.match(re)||[],function(i,r){t[r]=!0}),t}n.Callbacks=function(e){e=typeof e=="string"?_t[e]||Un(e):n.extend({},e);var t,i,r,o,a,s,f=[],h=!e.once&&[],g=function(v){for(i=e.memory&&v,r=!0,a=s||0,s=0,o=f.length,t=!0;f&&a<o;a++)if(f[a].apply(v[0],v[1])===!1&&e.stopOnFalse){i=!1;break}t=!1,f&&(h?h.length&&g(h.shift()):i?f=[]:p.disable())},p={add:function(){if(f){var v=f.length;(function m(x){n.each(x,function(D,k){var O=n.type(k);O==="function"?(!e.unique||!p.has(k))&&f.push(k):k&&k.length&&O!=="string"&&m(k)})})(arguments),t?o=f.length:i&&(s=v,g(i))}return this},remove:function(){return f&&n.each(arguments,function(v,m){for(var x;(x=n.inArray(m,f,x))>-1;)f.splice(x,1),t&&(x<=o&&o--,x<=a&&a--)}),this},has:function(v){return v?n.inArray(v,f)>-1:!!(f&&f.length)},empty:function(){return f=[],o=0,this},disable:function(){return f=h=i=C,this},disabled:function(){return!f},lock:function(){return h=C,i||p.disable(),this},locked:function(){return!h},fireWith:function(v,m){return f&&(!r||h)&&(m=m||[],m=[v,m.slice?m.slice():m],t?h.push(m):g(m)),this},fire:function(){return p.fireWith(this,arguments),this},fired:function(){return!!r}};return p},n.extend({Deferred:function(e){var t=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},then:function(){var a=arguments;return n.Deferred(function(s){n.each(t,function(f,h){var g=h[0],p=n.isFunction(a[f])&&a[f];o[h[1]](function(){var v=p&&p.apply(this,arguments);v&&n.isFunction(v.promise)?v.promise().done(s.resolve).fail(s.reject).progress(s.notify):s[g+"With"](this===r?s.promise():this,p?[v]:arguments)})}),a=null}).promise()},promise:function(a){return a!=null?n.extend(a,r):r}},o={};return r.pipe=r.then,n.each(t,function(a,s){var f=s[2],h=s[3];r[s[1]]=f.add,h&&f.add(function(){i=h},t[a^1][2].disable,t[2][2].lock),o[s[0]]=function(){return o[s[0]+"With"](this===o?r:this,arguments),this},o[s[0]+"With"]=f.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(e){var t=0,i=he.call(arguments),r=i.length,o=r!==1||e&&n.isFunction(e.promise)?r:0,a=o===1?e:n.Deferred(),s=function(p,v,m){return function(x){v[p]=this,m[p]=arguments.length>1?he.call(arguments):x,m===f?a.notifyWith(v,m):--o||a.resolveWith(v,m)}},f,h,g;if(r>1)for(f=new Array(r),h=new Array(r),g=new Array(r);t<r;t++)i[t]&&n.isFunction(i[t].promise)?i[t].promise().done(s(t,g,i)).fail(a.reject).progress(s(t,h,f)):--o;return o||a.resolveWith(g,i),a.promise()}}),n.support=(function(e){var t,i,r,o,a,s,f,h,g,p=S.createElement("div");if(p.setAttribute("className","t"),p.innerHTML=" <link/><table></table><a href='/a'>a</a>
33<input type='checkbox'/>",t=p.getElementsByTagName("*")||[],i=p.getElementsByTagName("a")[0],!i||!i.style||!t.length)return e;o=S.createElement("select"),s=o.appendChild(S.createElement("option")),r=p.getElementsByTagName("input")[0],i.style.cssText="top:1px;float:left;opacity:.5",e.getSetAttribute=p.className!=="t",e.leadingWhitespace=p.firstChild.nodeType===3,e.tbody=!p.getElementsByTagName("tbody").length,e.htmlSerialize=!!p.getElementsByTagName("link").length,e.style=/top/.test(i.getAttribute("style")),e.hrefNormalized=i.getAttribute("href")==="/a",e.opacity=/^0.5/.test(i.style.opacity),e.cssFloat=!!i.style.cssFloat,e.checkOn=!!r.value,e.optSelected=s.selected,e.enctype=!!S.createElement("form").enctype,e.html5Clone=S.createElement("nav").cloneNode(!0).outerHTML!=="<:nav></:nav>",e.inlineBlockNeedsLayout=!1,e.shrinkWrapBlocks=!1,e.pixelPosition=!1,e.deleteExpando=!0,e.noCloneEvent=!0,e.reliableMarginRight=!0,e.boxSizingReliable=!0,r.checked=!0,e.noCloneChecked=r.cloneNode(!0).checked,o.disabled=!0,e.optDisabled=!s.disabled;try{delete p.test}catch{e.deleteExpando=!1}r=S.createElement("input"),r.setAttribute("value",""),e.input=r.getAttribute("value")==="",r.value="t",r.setAttribute("type","radio"),e.radioValue=r.value==="t",r.setAttribute("checked","t"),r.setAttribute("name","t"),a=S.createDocumentFragment(),a.appendChild(r),e.appendChecked=r.checked,e.checkClone=a.cloneNode(!0).cloneNode(!0).lastChild.checked,p.attachEvent&&(p.attachEvent("onclick",function(){e.noCloneEvent=!1}),p.cloneNode(!0).click());for(g in{submit:!0,change:!0,focusin:!0})p.setAttribute(f="on"+g,"t"),e[g+"Bubbles"]=f in j||p.attributes[f].expando===!1;p.style.backgroundClip="content-box",p.cloneNode(!0).style.backgroundClip="",e.clearCloneStyle=p.style.backgroundClip==="content-box";for(g in n(e))break;return e.ownLast=g!=="0",n(function(){var v,m,x,D="padding:0;margin:0;border:0;display:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;",k=S.getElementsByTagName("body")[0];k&&(v=S.createElement("div"),v.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px",k.appendChild(v).appendChild(p),p.innerHTML="<table><tr><td></td><td>t</td></tr></table>",x=p.getElementsByTagName("td"),x[0].style.cssText="padding:0;margin:0;border:0;display:none",h=x[0].offsetHeight===0,x[0].style.display="",x[1].style.display="none",e.reliableHiddenOffsets=h&&x[0].offsetHeight===0,p.innerHTML="",p.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",n.swap(k,k.style.zoom!=null?{zoom:1}:{},function(){e.boxSizing=p.offsetWidth===4}),j.getComputedStyle&&(e.pixelPosition=(j.getComputedStyle(p,null)||{}).top!=="1%",e.boxSizingReliable=(j.getComputedStyle(p,null)||{width:"4px"}).width==="4px",m=p.appendChild(S.createElement("div")),m.style.cssText=p.style.cssText=D,m.style.marginRight=m.style.width="0",p.style.width="1px",e.reliableMarginRight=!parseFloat((j.getComputedStyle(m,null)||{}).marginRight)),typeof p.style.zoom!==ie&&(p.innerHTML="",p.style.cssText=D+"width:1px;padding:1px;display:inline;zoom:1",e.inlineBlockNeedsLayout=p.offsetWidth===3,p.style.display="block",p.innerHTML="<div></div>",p.firstChild.style.width="5px",e.shrinkWrapBlocks=p.offsetWidth!==3,e.inlineBlockNeedsLayout&&(k.style.zoom=1)),k.removeChild(v),v=p=x=m=null)}),t=o=a=s=i=r=null,e})({});var Vn=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,Qn=/([A-Z])/g;function Ot(e,t,i,r){if(n.acceptData(e)){var o,a,s=n.expando,f=e.nodeType,h=f?n.cache:e,g=f?e[s]:e[s]&&s;if(!((!g||!h[g]||!r&&!h[g].data)&&i===C&&typeof t=="string"))return g||(f?g=e[s]=Ce.pop()||n.guid++:g=s),h[g]||(h[g]=f?{}:{toJSON:n.noop}),(typeof t=="object"||typeof t=="function")&&(r?h[g]=n.extend(h[g],t):h[g].data=n.extend(h[g].data,t)),a=h[g],r||(a.data||(a.data={}),a=a.data),i!==C&&(a[n.camelCase(t)]=i),typeof t=="string"?(o=a[t],o==null&&(o=a[n.camelCase(t)])):o=a,o}}function qt(e,t,i){if(n.acceptData(e)){var r,o,a=e.nodeType,s=a?n.cache:e,f=a?e[n.expando]:n.expando;if(s[f]){if(t&&(r=i?s[f]:s[f].data,r)){for(n.isArray(t)?t=t.concat(n.map(t,n.camelCase)):(t in r)?t=[t]:(t=n.camelCase(t),t in r?t=[t]:t=t.split(" ")),o=t.length;o--;)delete r[t[o]];if(i?!et(r):!n.isEmptyObject(r))return}!i&&(delete s[f].data,!et(s[f]))||(a?n.cleanData([e],!0):n.support.deleteExpando||s!=s.window?delete s[f]:s[f]=null)}}}n.extend({cache:{},noData:{applet:!0,embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return e=e.nodeType?n.cache[e[n.expando]]:e[n.expando],!!e&&!et(e)},data:function(e,t,i){return Ot(e,t,i)},removeData:function(e,t){return qt(e,t)},_data:function(e,t,i){return Ot(e,t,i,!0)},_removeData:function(e,t){return qt(e,t,!0)},acceptData:function(e){if(e.nodeType&&e.nodeType!==1&&e.nodeType!==9)return!1;
33var t=e.nodeName&&n.noData[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),n.fn.extend({data:function(e,t){var i,r,o=null,a=0,s=this[0];if(e===C){if(this.length&&(o=n.data(s),s.nodeType===1&&!n._data(s,"parsedAttrs"))){for(i=s.attributes;a<i.length;a++)r=i[a].name,r.indexOf("data-")===0&&(r=n.camelCase(r.slice(5)),Mt(s,r,o[r]));n._data(s,"parsedAttrs",!0)}return o}return typeof e=="object"?this.each(function(){n.data(this,e)}):arguments.length>1?this.each(function(){n.data(this,e,t)}):s?Mt(s,e,n.data(s,e)):null},removeData:function(e){return this.each(function(){n.removeData(this,e)})}});function Mt(e,t,i){if(i===C&&e.nodeType===1){var r="data-"+t.replace(Qn,"-$1").toLowerCase();if(i=e.getAttribute(r),typeof i=="string"){try{i=i==="true"?!0:i==="false"?!1:i==="null"?null:+i+""===i?+i:Vn.test(i)?n.parseJSON(i):i}catch{}n.data(e,t,i)}else i=C}return i}function et(e){var t;for(t in e)if(!(t==="data"&&n.isEmptyObject(e[t]))&&t!=="toJSON")return!1;return!0}n.extend({queue:function(e,t,i){var r;if(e)return t=(t||"fx")+"queue",r=n._data(e,t),i&&(!r||n.isArray(i)?r=n._data(e,t,n.makeArray(i)):r.push(i)),r||[]},dequeue:function(e,t){t=t||"fx";var i=n.queue(e,t),r=i.length,o=i.shift(),a=n._queueHooks(e,t),s=function(){n.dequeue(e,t)};o==="inprogress"&&(o=i.shift(),r--),o&&(t==="fx"&&i.unshift("inprogress"),delete a.stop,o.call(e,s,a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return n._data(e,i)||n._data(e,i,{empty:n.Callbacks("once memory").add(function(){n._removeData(e,t+"queue"),n._removeData(e,i)})})}}),n.fn.extend({queue:function(e,t){var i=2;return typeof e!="string"&&(t=e,e="fx",i--),arguments.length<i?n.queue(this[0],e):t===C?this:this.each(function(){var r=n.queue(this,e,t);n._queueHooks(this,e),e==="fx"&&r[0]!=="inprogress"&&n.dequeue(this,e)})},dequeue:function(e){return this.each(function(){n.dequeue(this,e)})},delay:function(e,t){return e=n.fx&&n.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(i,r){var o=setTimeout(i,e);r.stop=function(){clearTimeout(o)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,r=1,o=n.Deferred(),a=this,s=this.length,f=function(){--r||o.resolveWith(a,[a])};for(typeof e!="string"&&(t=e,e=C),e=e||"fx";s--;)i=n._data(a[s],e+"queueHooks"),i&&i.empty&&(r++,i.empty.add(f));return f(),o.promise(t)}});var Ne,Pt,tt=/[\t\r\n\f]/g,Yn=/\r/g,Gn=/^(?:input|select|textarea|button|object)$/i,Jn=/^(?:a|area)$/i,nt=/^(?:checked|selected)$/i,de=n.support.getSetAttribute,Fe=n.support.input;n.fn.extend({attr:function(e,t){return n.access(this,n.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){n.removeAttr(this,e)})},prop:function(e,t){return n.access(this,n.prop,e,t,arguments.length>1)},removeProp:function(e){return e=n.propFix[e]||e,this.each(function(){try{this[e]=C,delete this[e]}catch{}})},addClass:function(e){var t,i,r,o,a,s=0,f=this.length,h=typeof e=="string"&&e;if(n.isFunction(e))return this.each(function(g){n(this).addClass(e.call(this,g,this.className))});if(h){for(t=(e||"").match(re)||[];s<f;s++)if(i=this[s],r=i.nodeType===1&&(i.className?(" "+i.className+" ").replace(tt," "):" "),r){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i.className=n.trim(r)}}return this},removeClass:function(e){var t,i,r,o,a,s=0,f=this.length,h=arguments.length===0||typeof e=="string"&&e;if(n.isFunction(e))return this.each(function(g){n(this).removeClass(e.call(this,g,this.className))});if(h){for(t=(e||"").match(re)||[];s<f;s++)if(i=this[s],r=i.nodeType===1&&(i.className?(" "+i.className+" ").replace(tt," "):""),r){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>=0;)r=r.replace(" "+o+" "," ");i.className=e?n.trim(r):""}}return this},toggleClass:function(e,t){var i=typeof e;return typeof t=="boolean"&&i==="string"?t?this.addClass(e):this.removeClass(e):n.isFunction(e)?this.each(function(r){n(this).toggleClass(e.call(this,r,this.className,t),t)}):this.each(function(){if(i==="string")for(var r,o=0,a=n(this),s=e.match(re)||[];r=s[o++];)a.hasClass(r)?a.removeClass(r):a.addClass(r);else(i===ie||i==="boolean")&&(this.className&&n._data(this,"__className__",this.className),this.className=this.className||e===!1?"":n._data(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",i=0,r=this.length;i<r;i++)if(this[i].nodeType===1&&(" "+this[i].className+" ").replace(tt," ").indexOf(t)>=0)return!0;return!1},val:function(e){var t,i,r,o=this[0];return arguments.length?(r=n.isFunction(e),this.each(function(a){var s;this.nodeType===1&&(r?s=e.call(this,a,n(this).val()):s=e,s==null?s="":typeof s=="number"?s+="":n.isArray(s)&&(s=n.map(s,function(f){return f==null?"":f+""})),i=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],(!i||!("set"in i)||i.set(this,s,"value")===C)&&(this.value=s))})):o?(i=n.valHooks[o.type]||n.valHooks[o.nodeName.toLowerCase()],i&&"get"in i&&(t=i.get(o,"value"))!==C?t:(t=o.value,typeof t=="string"?t.replace(Yn,""):t??"")):void 0}}),n.extend({valHooks:{option:{get:function(e){var t=n.find.attr(e,"value");return t??e.text}},select:{get:function(e){for(var t,i,r=e.options,o=e.selectedIndex,a=e.type==="select-one"||o<0,s=a?null:[],f=a?o+1:r.length,h=o<0?f:a?o:0;h<f;h++)if(i=r[h],(i.selected||h===o)&&(n.support.optDisabled?!i.disabled:i.getAttribute("disabled")===null)&&(!i.parentNode.disabled||!n.nodeName(i.parentNode,"optgroup"))){if(t=n(i).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var i,r,o=e.options,a=n.makeArray(t),s=o.length;s--;)r=o[s],(r.selected=n.inArray(n(r).val(),a)>=0)&&(i=!0);
33return i||(e.selectedIndex=-1),a}}},attr:function(e,t,i){var r,o,a=e.nodeType;if(!(!e||a===3||a===8||a===2)){if(typeof e.getAttribute===ie)return n.prop(e,t,i);if((a!==1||!n.isXMLDoc(e))&&(t=t.toLowerCase(),r=n.attrHooks[t]||(n.expr.match.bool.test(t)?Pt:Ne)),i!==C)if(i===null)n.removeAttr(e,t);else return r&&"set"in r&&(o=r.set(e,i,t))!==C?o:(e.setAttribute(t,i+""),i);else return r&&"get"in r&&(o=r.get(e,t))!==null?o:(o=n.find.attr(e,t),o??C)}},removeAttr:function(e,t){var i,r,o=0,a=t&&t.match(re);if(a&&e.nodeType===1)for(;i=a[o++];)r=n.propFix[i]||i,n.expr.match.bool.test(i)?Fe&&de||!nt.test(i)?e[r]=!1:e[n.camelCase("default-"+i)]=e[r]=!1:n.attr(e,i,""),e.removeAttribute(de?i:r)},attrHooks:{type:{set:function(e,t){if(!n.support.radioValue&&t==="radio"&&n.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},propFix:{for:"htmlFor",class:"className"},prop:function(e,t,i){var r,o,a,s=e.nodeType;if(!(!e||s===3||s===8||s===2))return a=s!==1||!n.isXMLDoc(e),a&&(t=n.propFix[t]||t,o=n.propHooks[t]),i!==C?o&&"set"in o&&(r=o.set(e,i,t))!==C?r:e[t]=i:o&&"get"in o&&(r=o.get(e,t))!==null?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=n.find.attr(e,"tabindex");return t?parseInt(t,10):Gn.test(e.nodeName)||Jn.test(e.nodeName)&&e.href?0:-1}}}}),Pt={set:function(e,t,i){return t===!1?n.removeAttr(e,i):Fe&&de||!nt.test(i)?e.setAttribute(!de&&n.propFix[i]||i,i):e[n.camelCase("default-"+i)]=e[i]=!0,i}},n.each(n.expr.match.bool.source.match(/\w+/g),function(e,t){var i=n.expr.attrHandle[t]||n.find.attr;n.expr.attrHandle[t]=Fe&&de||!nt.test(t)?function(r,o,a){var s=n.expr.attrHandle[o],f=a?C:(n.expr.attrHandle[o]=C)!=i(r,o,a)?o.toLowerCase():null;return n.expr.attrHandle[o]=s,f}:function(r,o,a){return a?C:r[n.camelCase("default-"+o)]?o.toLowerCase():null}}),(!Fe||!de)&&(n.attrHooks.value={set:function(e,t,i){if(n.nodeName(e,"input"))e.defaultValue=t;else return Ne&&Ne.set(e,t,i)}}),de||(Ne={set:function(e,t,i){var r=e.getAttributeNode(i);return r||e.setAttributeNode(r=e.ownerDocument.createAttribute(i)),r.value=t+="",i==="value"||t===e.getAttribute(i)?t:C}},n.expr.attrHandle.id=n.expr.attrHandle.name=n.expr.attrHandle.coords=function(e,t,i){var r;return i?C:(r=e.getAttributeNode(t))&&r.value!==""?r.value:null},n.valHooks.button={get:function(e,t){var i=e.getAttributeNode(t);return i&&i.specified?i.value:C},set:Ne.set},n.attrHooks.contenteditable={set:function(e,t,i){Ne.set(e,t===""?!1:t,i)}},n.each(["width","height"],function(e,t){n.attrHooks[t]={set:function(i,r){if(r==="")return i.setAttribute(t,"auto"),r}}})),n.support.hrefNormalized||n.each(["href","src"],function(e,t){n.propHooks[t]={get:function(i){return i.getAttribute(t,4)}}}),n.support.style||(n.attrHooks.style={get:function(e){return e.style.cssText||C},set:function(e,t){return e.style.cssText=t+""}}),n.support.optSelected||(n.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),n.support.enctype||(n.propFix.enctype="encoding"),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(e,t){if(n.isArray(t))return e.checked=n.inArray(n(e).val(),t)>=0}},n.support.checkOn||(n.valHooks[this].get=function(e){return e.getAttribute("value")===null?"on":e.value})});var it=/^(?:input|select|textarea)$/i,Kn=/^key/,Zn=/^(?:mouse|contextmenu)|click/,Ft=/^(?:focusinfocus|focusoutblur)$/,Rt=/^([^.]*)(?:\.(.+)|)$/;function Re(){return!0}function Ee(){return!1}function Bt(){try{return S.activeElement}catch{}}n.event={global:{},add:function(e,t,i,r,o){var a,s,f,h,g,p,v,m,x,D,k,O=n._data(e);if(O){for(i.handler&&(h=i,i=h.handler,o=h.selector),i.guid||(i.guid=n.guid++),(s=O.events)||(s=O.events={}),(p=O.handle)||(p=O.handle=function(ne){return typeof n!==ie&&(!ne||n.event.triggered!==ne.type)?n.event.dispatch.apply(p.elem,arguments):C},p.elem=e),t=(t||"").match(re)||[""],f=t.length;f--;)a=Rt.exec(t[f])||[],x=k=a[1],D=(a[2]||"").split(".").sort(),x&&(g=n.event.special[x]||{},x=(o?g.delegateType:g.bindType)||x,g=n.event.special[x]||{},v=n.extend({type:x,origType:k,data:r,handler:i,guid:i.guid,selector:o,needsContext:o&&n.expr.match.needsContext.test(o),namespace:D.join(".")},h),(m=s[x])||(m=s[x]=[],m.delegateCount=0,(!g.setup||g.setup.call(e,r,D,p)===!1)&&(e.addEventListener?e.addEventListener(x,p,!1):e.attachEvent&&e.attachEvent("on"+x,p))),g.add&&(g.add.call(e,v),v.handler.guid||(v.handler.guid=i.guid)),o?m.splice(m.delegateCount++,0,v):m.push(v),n.event.global[x]=!0);e=null}},remove:function(e,t,i,r,o){var a,s,f,h,g,p,v,m,x,D,k,O=n.hasData(e)&&n._data(e);if(!(!O||!(p=O.events))){for(t=(t||"").match(re)||[""],g=t.length;g--;){if(f=Rt.exec(t[g])||[],x=k=f[1],D=(f[2]||"").split(".").sort(),!x){for(x in p)n.event.remove(e,x+t[g],i,r,!0);continue}for(v=n.event.special[x]||{},x=(r?v.delegateType:v.bindType)||x,m=p[x]||[],f=f[2]&&new RegExp("(^|\\.)"+D.join("\\.(?:.*\\.|)")+"(\\.|$)"),h=a=m.length;a--;)s=m[a],(o||k===s.origType)&&(!i||i.guid===s.guid)&&(!f||f.test(s.namespace))&&(!r||r===s.selector||r==="**"&&s.selector)&&(m.splice(a,1),s.selector&&m.delegateCount--,v.remove&&v.remove.call(e,s));h&&!m.length&&((!v.teardown||v.teardown.call(e,D,O.handle)===!1)&&n.removeEvent(e,x,O.handle),delete p[x])}n.isEmptyObject(p)&&(delete O.handle,n._removeData(e,"events"))}},trigger:function(e,t,i,r){var o,a,s,f,h,g,p,v=[i||S],m=we.call(e,"type")?e.type:e,x=we.call(e,"namespace")?e.namespace.split("."):[];if(s=g=i=i||S,!(i.nodeType===3||i.nodeType===8)&&!Ft.test(m+n.event.triggered)&&(m.indexOf(".")>
vendor: 11,388 bytes, line 33
33=0&&(x=m.split("."),m=x.shift(),x.sort()),a=m.indexOf(":")<0&&"on"+m,e=e[n.expando]?e:new n.Event(m,typeof e=="object"&&e),e.isTrigger=r?2:3,e.namespace=x.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+x.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=C,e.target||(e.target=i),t=t==null?[e]:n.makeArray(t,[e]),h=n.event.special[m]||{},!(!r&&h.trigger&&h.trigger.apply(i,t)===!1))){if(!r&&!h.noBubble&&!n.isWindow(i)){for(f=h.delegateType||m,Ft.test(f+m)||(s=s.parentNode);s;s=s.parentNode)v.push(s),g=s;g===(i.ownerDocument||S)&&v.push(g.defaultView||g.parentWindow||j)}for(p=0;(s=v[p++])&&!e.isPropagationStopped();)e.type=p>1?f:h.bindType||m,o=(n._data(s,"events")||{})[e.type]&&n._data(s,"handle"),o&&o.apply(s,t),o=a&&s[a],o&&n.acceptData(s)&&o.apply&&o.apply(s,t)===!1&&e.preventDefault();if(e.type=m,!r&&!e.isDefaultPrevented()&&(!h._default||h._default.apply(v.pop(),t)===!1)&&n.acceptData(i)&&a&&i[m]&&!n.isWindow(i)){g=i[a],g&&(i[a]=null),n.event.triggered=m;try{i[m]()}catch{}n.event.triggered=C,g&&(i[a]=g)}return e.result}},dispatch:function(e){e=n.event.fix(e);var t,i,r,o,a,s=[],f=he.call(arguments),h=(n._data(this,"events")||{})[e.type]||[],g=n.event.special[e.type]||{};if(f[0]=e,e.delegateTarget=this,!(g.preDispatch&&g.preDispatch.call(this,e)===!1)){for(s=n.event.handlers.call(this,e,h),t=0;(o=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=o.elem,a=0;(r=o.handlers[a++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(r.namespace))&&(e.handleObj=r,e.data=r.data,i=((n.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,f),i!==C&&(e.result=i)===!1&&(e.preventDefault(),e.stopPropagation()));return g.postDispatch&&g.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,r,o,a,s=[],f=t.delegateCount,h=e.target;if(f&&h.nodeType&&(!e.button||e.type!=="click")){for(;h!=this;h=h.parentNode||this)if(h.nodeType===1&&(h.disabled!==!0||e.type!=="click")){for(o=[],a=0;a<f;a++)r=t[a],i=r.selector+" ",o[i]===C&&(o[i]=r.needsContext?n(i,this).index(h)>=0:n.find(i,this,null,[h]).length),o[i]&&o.push(r);o.length&&s.push({elem:h,handlers:o})}}return f<t.length&&s.push({elem:this,handlers:t.slice(f)}),s},fix:function(e){if(e[n.expando])return e;var t,i,r,o=e.type,a=e,s=this.fixHooks[o];for(s||(this.fixHooks[o]=s=Zn.test(o)?this.mouseHooks:Kn.test(o)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new n.Event(a),t=r.length;t--;)i=r[t],e[i]=a[i];return e.target||(e.target=a.srcElement||S),e.target.nodeType===3&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.filter?s.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return e.which==null&&(e.which=t.charCode!=null?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,r,o,a=t.button,s=t.fromElement;return e.pageX==null&&t.clientX!=null&&(r=e.target.ownerDocument||S,o=r.documentElement,i=r.body,e.pageX=t.clientX+(o&&o.scrollLeft||i&&i.scrollLeft||0)-(o&&o.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(o&&o.scrollTop||i&&i.scrollTop||0)-(o&&o.clientTop||i&&i.clientTop||0)),!e.relatedTarget&&s&&(e.relatedTarget=s===e.target?t.toElement:s),!e.which&&a!==C&&(e.which=a&1?1:a&2?3:a&4?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Bt()&&this.focus)try{return this.focus(),!1}catch{}},delegateType:"focusin"},blur:{trigger:function(){if(this===Bt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(n.nodeName(this,"input")&&this.type==="checkbox"&&this.click)return this.click(),!1},_default:function(e){return n.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){e.result!==C&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,i,r){var o=n.extend(new n.Event,i,{type:e,isSimulated:!0,originalEvent:{}});r?n.event.trigger(o,null,t):n.event.dispatch.call(t,o),o.isDefaultPrevented()&&i.preventDefault()}},n.removeEvent=S.removeEventListener?function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i,!1)}:function(e,t,i){var r="on"+t;e.detachEvent&&(typeof e[r]===ie&&(e[r]=null),e.detachEvent(r,i))},n.Event=function(e,t){if(!(this instanceof n.Event))return new n.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?Re:Ee):this.type=e,t&&n.extend(this,t),this.timeStamp=e&&e.timeStamp||n.now(),this[n.expando]=!0},n.Event.prototype={isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Re,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Re,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=Re,this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(e,t){n.event.special[e]={delegateType:t,bindType:t,handle:function(i){var r,o=this,a=i.relatedTarget,s=i.handleObj;return(!a||a!==o&&!n.contains(o,a))&&(i.type=s.origType,r=s.handler.apply(this,arguments),i.type=t),r}}}),n.support.submitBubbles||(n.event.special.submit={setup:function(){if(n.nodeName(this,"form"))return!1;n.event.add(this,"click._submit keypress._submit",function(e){var t=e.target,i=n.nodeName(t,"input")||n.nodeName(t,"button")?t.form:C;i&&!n._data(i,"submitBubbles")&&(n.event.add(i,"submit._submit",function(r){r._submit_bubble=!0}),n._data(i,"submitBubbles",!0))})},postDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode&&!e.isTrigger&&n.event.simulate("submit",this.parentNode,e,!0))},teardown:function(){if(n.nodeName(this,"form"))return!1;n.event.remove(this,"._submit")}}),n.support.changeBubbles||(n.event.special.change={setup:function(){if(it.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(n.event.add(this,"propertychange._change",function(e){e.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),n.event.add(this,"click._change",function(e){this._just_changed&&!e.isTrigger&&(this._just_changed=!1),n.event.simulate("change",this,e,!0)})),!1;n.event.add(this,"beforeactivate._change",function(e){var t=e.target;it.test(t.nodeName)&&!n._data(t,"changeBubbles")&&(n.event.add(t,"change._change",function(i){this.parentNode&&!i.isSimulated&&!i.isTrigger&&n.event.simulate("change",this.parentNode,i,!0)}),n._data(t,"changeBubbles",!0))})},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||t.type!=="radio"&&t.type!=="checkbox")return e.handleObj.handler.apply(this,arguments)},teardown:function(){return n.event.remove(this,"._change"),!it.test(this.nodeName)}}),n.support.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(e,t){var i=0,r=function(o){n.event.simulate(t,o.target,n.event.fix(o),!0)};n.event.special[t]={setup:function(){i++===0&&S.addEventListener(e,r,!0)},teardown:function(){--i===0&&S.removeEventListener(e,r,!0)}}}),n.fn.extend({on:function(e,t,i,r,o){var a,s;if(typeof e=="object"){typeof t!="string"&&(i=i||t,t=C);for(a in e)this.on(a,t,i,e[a],o);return this}if(i==null&&r==null?(r=t,i=t=C):r==null&&(typeof t=="string"?(r=i,i=C):(r=i,i=t,t=C)),r===!1)r=Ee;else if(!r)return this;return o===1&&(s=r,r=function(f){return n().off(f),s.apply(this,arguments)},r.guid=s.guid||(s.guid=n.guid++)),this.each(function(){n.event.add(this,e,r,i,t)})},one:function(e,t,i,r){return this.on(e,t,i,r,1)},off:function(e,t,i){var r,o;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,n(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if(typeof e=="object"){for(o in e)this.off(o,t,e[o]);return this}return(t===!1||typeof t=="function")&&(i=t,t=C),i===!1&&(i=Ee),this.each(function(){n.event.remove(this,e,i,t)})},trigger:function(e,t){return this.each(function(){n.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return n.event.trigger(e,t,i,!0)}});var ei=/^.[^:#\[\.,]*$/,ti=/^(?:parents|prev(?:Until|All))/,Wt=n.expr.match.needsContext,ni={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({find:function(e){var t,i=[],r=this,o=r.length;if(typeof e!="string")return this.pushStack(n(e).filter(function(){for(t=0;t<o;t++)if(n.contains(r[t],this))return!0}));for(t=0;t<o;t++)n.find(e,r[t],i);return i=this.pushStack(o>1?n.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},has:function(e){var t,i=n(e,this),r=i.length;return this.filter(function(){for(t=0;t<r;t++)if(n.contains(this,i[t]))return!0})},not:function(e){return this.pushStack(rt(this,e||[],!0))},filter:function(e){return this.pushStack(rt(this,e||[],!1))},is:function(e){return!!rt(this,typeof e=="string"&&Wt.test(e)?n(e):e||[],!1).length},closest:function(e,t){for(var i,r=0,o=this.length,a=[],s=Wt.test(e)||typeof e!="string"?n(e,t||this.context):0;r<o;r++)for(i=this[r];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:i.nodeType===1&&n.find.matchesSelector(i,e))){i=a.push(i);break}return this.pushStack(a.length>1?n.unique(a):a)},index:function(e){return e?typeof e=="string"?n.inArray(this[0],n(e)):n.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){var i=typeof e=="string"?n(e,t):n.makeArray(e&&e.nodeType?[e]:e),r=n.merge(this.get(),i);return this.pushStack(n.unique(r))},addBack:function(e){return this.add(e==null?this.prevObject:this.prevObject.filter(e))}});function It(e,t){do e=e[t];while(e&&e.nodeType!==1);return e}n.each({parent:function(e){var t=e.parentNode;return t&&t.nodeType!==11?t:null},parents:function(e){return n.dir(e,"parentNode")},parentsUntil:function(e,t,i){return n.dir(e,"parentNode",i)},next:function(e){return It(e,"nextSibling")},prev:function(e){return It(e,"previousSibling")},nextAll:function(e){return n.dir(e,"nextSibling")},prevAll:function(e){return n.dir(e,"previousSibling")},nextUntil:function(e,t,i){return n.dir(e,"nextSibling",i)},prevUntil:function(e,t,i){return n.dir(e,"previousSibling",i)},siblings:function(e){return n.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return n.sibling(e.firstChild)},contents:function(e){return n.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:n.merge([],e.childNodes)}},function(e,t){n.fn[e]=function(i,r){var o=n.map(this,t,i);return e.slice(-5)!=="Until"&&(r=i),r&&typeof r=="string"&&(o=n.filter(r,o)),this.length>1&&(ni[e]||(o=n.unique(o)),ti.test(e)&&(o=o.reverse())),this.pushStack(o)}}),n.extend({filter:function(e,t,i){var r=t[0];return i&&(e=":not("+e+")"),t.length===1&&r.nodeType===1?n.find.matchesSelector(r,e)?[r]:[]:n.find.matches(e,n.grep(t,function(o){return o.nodeType===1}))},dir:function(e,t,i){for(var r=[],o=e[t];o&&o.nodeType!==9&&(i===C||o.nodeType!==1||!n(o).is(i));)o.nodeType===1&&r.push(o),o=o[t];return r},sibling:function(e,t){for(var i=[];e;e=e.nextSibling)e.nodeType===1&&e!==t&&i.push(e);return i}});function rt(e,t,i){if(n.isFunction(t))return n.grep(e,function(r,o){return!!t.call(r,o,r)!==i});
33if(t.nodeType)return n.grep(e,function(r){return r===t!==i});if(typeof t=="string"){if(ei.test(t))return n.filter(t,e,i);t=n.filter(t,e)}return n.grep(e,function(r){return n.inArray(r,t)>=0!==i})}function $t(e){var t=zt.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}var zt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ii=/ jQuery\d+="(?:null|\d+)"/g,Xt=new RegExp("<(?:"+zt+")[\\s/>]","i"),ot=/^\s+/,Ut=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Vt=/<([\w:]+)/,Qt=/<tbody/i,ri=/<|&#?\w+;/,oi=/<(?:script|style|link)/i,at=/^(?:checkbox|radio)$/i,ai=/checked\s*(?:[^=]|=\s*.checked.)/i,Yt=/^$|\/(?:java|ecma)script/i,si=/^true\/(.*)/,ui=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,K={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:n.support.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]},fi=$t(S),st=fi.appendChild(S.createElement("div"));K.optgroup=K.option,K.tbody=K.tfoot=K.colgroup=K.caption=K.thead,K.th=K.td,n.fn.extend({text:function(e){return n.access(this,function(t){return t===C?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||S).createTextNode(t))},null,e,arguments.length)},append:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Gt(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var t=Gt(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var i,r=e?n.filter(e,this):this,o=0;(i=r[o])!=null;o++)!t&&i.nodeType===1&&n.cleanData(V(i)),i.parentNode&&(t&&n.contains(i.ownerDocument,i)&&ut(V(i,"script")),i.parentNode.removeChild(i));return this},empty:function(){for(var e,t=0;(e=this[t])!=null;t++){for(e.nodeType===1&&n.cleanData(V(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&n.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=e??!1,t=t??e,this.map(function(){return n.clone(this,e,t)})},html:function(e){return n.access(this,function(t){var i=this[0]||{},r=0,o=this.length;if(t===C)return i.nodeType===1?i.innerHTML.replace(ii,""):C;if(typeof t=="string"&&!oi.test(t)&&(n.support.htmlSerialize||!Xt.test(t))&&(n.support.leadingWhitespace||!ot.test(t))&&!K[(Vt.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Ut,"<$1></$2>");try{for(;r<o;r++)i=this[r]||{},i.nodeType===1&&(n.cleanData(V(i,!1)),i.innerHTML=t);i=0}catch{}}i&&this.empty().append(t)},null,e,arguments.length)},replaceWith:function(){var e=n.map(this,function(i){return[i.nextSibling,i.parentNode]}),t=0;return this.domManip(arguments,function(i){var r=e[t++],o=e[t++];o&&(r&&r.parentNode!==o&&(r=this.nextSibling),n(this).remove(),o.insertBefore(i,r))},!0),t?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t,i){e=Dt.apply([],e);var r,o,a,s,f,h,g=0,p=this.length,v=this,m=p-1,x=e[0],D=n.isFunction(x);if(D||!(p<=1||typeof x!="string"||n.support.checkClone||!ai.test(x)))return this.each(function(k){var O=v.eq(k);D&&(e[0]=x.call(this,k,O.html())),O.domManip(e,t,i)});if(p&&(h=n.buildFragment(e,this[0].ownerDocument,!1,!i&&this),r=h.firstChild,h.childNodes.length===1&&(h=r),r)){for(s=n.map(V(h,"script"),Jt),a=s.length;g<p;g++)o=h,g!==m&&(o=n.clone(o,!0,!0),a&&n.merge(s,V(o,"script"))),t.call(this[g],o,g);if(a)for(f=s[s.length-1].ownerDocument,n.map(s,Kt),g=0;g<a;g++)o=s[g],Yt.test(o.type||"")&&!n._data(o,"globalEval")&&n.contains(f,o)&&(o.src?n._evalUrl(o.src):n.globalEval((o.text||o.textContent||o.innerHTML||"").replace(ui,"")));h=r=null}return this}});function Gt(e,t){return n.nodeName(e,"table")&&n.nodeName(t.nodeType===1?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function Jt(e){return e.type=(n.find.attr(e,"type")!==null)+"/"+e.type,e}function Kt(e){var t=si.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function ut(e,t){for(var i,r=0;(i=e[r])!=null;r++)n._data(i,"globalEval",!t||n._data(t[r],"globalEval"))}function Zt(e,t){if(!(t.nodeType!==1||!n.hasData(e))){var i,r,o,a=n._data(e),s=n._data(t,a),f=a.events;if(f){delete s.handle,s.events={};for(i in f)for(r=0,o=f[i].length;r<o;r++)n.event.add(t,i,f[i][r])}s.data&&(s.data=n.extend({},s.data))}}function li(e,t){var i,r,o;
vendor: 1,089 bytes, line 33
33if(t.nodeType===1){if(i=t.nodeName.toLowerCase(),!n.support.noCloneEvent&&t[n.expando]){o=n._data(t);for(r in o.events)n.removeEvent(t,r,o.handle);t.removeAttribute(n.expando)}i==="script"&&t.text!==e.text?(Jt(t).text=e.text,Kt(t)):i==="object"?(t.parentNode&&(t.outerHTML=e.outerHTML),n.support.html5Clone&&e.innerHTML&&!n.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):i==="input"&&at.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):i==="option"?t.defaultSelected=t.selected=e.defaultSelected:(i==="input"||i==="textarea")&&(t.defaultValue=e.defaultValue)}}n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){n.fn[e]=function(i){for(var r,o=0,a=[],s=n(i),f=s.length-1;o<=f;o++)r=o===f?this:this.clone(!0),n(s[o])[t](r),Je.apply(a,r.get());return this.pushStack(a)}});function V(e,t){var i,r,o=0,a=typeof e.getElementsByTagName!==ie?e.getElementsByTagName(t||"*"):typeof e.querySelectorAll!==ie?e.querySelectorAll(t||"*"):C;if(!a)for(a=[],i=e.childNodes||e;(r=i[o])!=null;
33o++)!t||n.nodeName(r,t)?a.push(r):n.merge(a,V(r,t));return t===C||t&&n.nodeName(e,t)?n.merge([e],a):a}function ci(e){at.test(e.type)&&(e.defaultChecked=e.checked)}n.extend({clone:function(e,t,i){var r,o,a,s,f,h=n.contains(e.ownerDocument,e);if(n.support.html5Clone||n.isXMLDoc(e)||!Xt.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(st.innerHTML=e.outerHTML,st.removeChild(a=st.firstChild)),(!n.support.noCloneEvent||!n.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!n.isXMLDoc(e))for(r=V(a),f=V(e),s=0;(o=f[s])!=null;++s)r[s]&&li(o,r[s]);if(t)if(i)for(f=f||V(e),r=r||V(a),s=0;(o=f[s])!=null;s++)Zt(o,r[s]);else Zt(e,a);return r=V(a,"script"),r.length>0&&ut(r,!h&&V(e,"script")),r=f=o=null,a},buildFragment:function(e,t,i,r){for(var o,a,s,f,h,g,p,v=e.length,m=$t(t),x=[],D=0;D<v;D++)if(a=e[D],a||a===0)if(n.type(a)==="object")n.merge(x,a.nodeType?[a]:a);else if(!ri.test(a))x.push(t.createTextNode(a));else{for(f=f||m.appendChild(t.createElement("div")),h=(Vt.exec(a)||["",""])[1].toLowerCase(),p=K[h]||K._default,f.innerHTML=p[1]+a.replace(Ut,"<$1></$2>")+p[2],o=p[0];o--;)f=f.lastChild;if(!n.support.leadingWhitespace&&ot.test(a)&&x.push(t.createTextNode(ot.exec(a)[0])),!n.support.tbody)for(a=h==="table"&&!Qt.test(a)?f.firstChild:p[1]==="<table>"&&!Qt.test(a)?f:0,o=a&&a.childNodes.length;o--;)n.nodeName(g=a.childNodes[o],"tbody")&&!g.childNodes.length&&a.removeChild(g);for(n.merge(x,f.childNodes),f.textContent="";f.firstChild;)f.removeChild(f.firstChild);f=m.lastChild}for(f&&m.removeChild(f),n.support.appendChecked||n.grep(V(x,"input"),ci),D=0;a=x[D++];)if(!(r&&n.inArray(a,r)!==-1)&&(s=n.contains(a.ownerDocument,a),f=V(m.appendChild(a),"script"),s&&ut(f),i))for(o=0;a=f[o++];)Yt.test(a.type||"")&&i.push(a);return f=null,m},cleanData:function(e,t){for(var i,r,o,a,s=0,f=n.expando,h=n.cache,g=n.support.deleteExpando,p=n.event.special;(i=e[s])!=null;s++)if((t||n.acceptData(i))&&(o=i[f],a=o&&h[o],a)){if(a.events)for(r in a.events)p[r]?n.event.remove(i,r):n.removeEvent(i,r,a.handle);h[o]&&(delete h[o],g?delete i[f]:typeof i.removeAttribute!==ie?i.removeAttribute(f):i[f]=null,Ce.push(o))}},_evalUrl:function(e){return n.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})}}),n.fn.extend({wrapAll:function(e){if(n.isFunction(e))return this.each(function(i){n(this).wrapAll(e.call(this,i))});if(this[0]){var t=n(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var i=this;i.firstChild&&i.firstChild.nodeType===1;)i=i.firstChild;return i}).append(this)}return this},wrapInner:function(e){return n.isFunction(e)?this.each(function(t){n(this).wrapInner(e.call(this,t))}):this.each(function(){var t=n(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)})},wrap:function(e){var t=n.isFunction(e);return this.each(function(i){n(this).wrapAll(t?e.call(this,i):e)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});var Le,ge,ye,ft=/alpha\([^)]*\)/i,pi=/opacity\s*=\s*([^)]*)/,hi=/^(top|right|bottom|left)$/,di=/^(none|table(?!-c[ea]).+)/,en=/^margin/,gi=new RegExp("^("+Pe+")(.*)$","i"),Be=new RegExp("^("+Pe+")(?!px)[a-z%]+$","i"),yi=new RegExp("^([+-])=("+Pe+")","i"),tn={BODY:"block"},mi={position:"absolute",visibility:"hidden",display:"block"},nn={letterSpacing:0,fontWeight:400},me=["Top","Right","Bottom","Left"],rn=["Webkit","O","Moz","ms"];function on(e,t){if(t in e)return t;for(var i=t.charAt(0).toUpperCase()+t.slice(1),r=t,o=rn.length;o--;)if(t=rn[o]+i,t in e)return t;return r}function He(e,t){return e=t||e,n.css(e,"display")==="none"||!n.contains(e.ownerDocument,e)}function an(e,t){for(var i,r,o,a=[],s=0,f=e.length;s<f;s++)r=e[s],r.style&&(a[s]=n._data(r,"olddisplay"),i=r.style.display,t?(!a[s]&&i==="none"&&(r.style.display=""),r.style.display===""&&He(r)&&(a[s]=n._data(r,"olddisplay",ln(r.nodeName)))):a[s]||(o=He(r),(i&&i!=="none"||!o)&&n._data(r,"olddisplay",o?i:n.css(r,"display"))));for(s=0;s<f;s++)r=e[s],r.style&&(!t||r.style.display==="none"||r.style.display==="")&&(r.style.display=t?a[s]||"":"none");return e}n.fn.extend({css:function(e,t){return n.access(this,function(i,r,o){var a,s,f={},h=0;if(n.isArray(r)){for(s=ge(i),a=r.length;h<a;h++)f[r[h]]=n.css(i,r[h],!1,s);return f}return o!==C?n.style(i,r,o):n.css(i,r)},e,t,arguments.length>1)},show:function(){return an(this,!0)},hide:function(){return an(this)},toggle:function(e){return typeof e=="boolean"?e?this.show():this.hide():this.each(function(){He(this)?n(this).show():n(this).hide()})}}),n.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=ye(e,"opacity");return i===""?"1":i}}}},cssNumber:{columnCount:!0,fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:n.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,i,r){if(!(!e||e.nodeType===3||e.nodeType===8||!e.style)){var o,a,s,f=n.camelCase(t),h=e.style;if(t=n.cssProps[f]||(n.cssProps[f]=on(h,f)),s=n.cssHooks[t]||n.cssHooks[f],i!==C){if(a=typeof i,a==="string"&&(o=yi.exec(i))&&(i=(o[1]+1)*o[2]+parseFloat(n.css(e,t)),a="number"),i==null||a==="number"&&isNaN(i))return;if(a==="number"&&!n.cssNumber[f]&&(i+="px"),!n.support.clearCloneStyle&&i===""&&t.indexOf("background")===0&&(h[t]="inherit"),!s||!("set"in s)||(i=s.set(e,i,r))!==C)try{h[t]=i}catch{}}else return s&&"get"in s&&(o=s.get(e,!1,r))!==C?o:h[t]}},css:function(e,t,i,r){var o,a,s,f=n.camelCase(t);return t=n.cssProps[f]||(n.cssProps[f]=on(e.style,f)),s=n.cssHooks[t]||n.cssHooks[f],s&&"get"in s&&(a=s.get(e,!0,i)),a===C&&(a=ye(e,t,r)),a==="normal"&&t in nn&&(a=nn[t]),i===""||i?(o=parseFloat(a),i===!0||n.isNumeric(o)?o||0:a):a}}),j.getComputedStyle?(ge=function(e){return j.getComputedStyle(e,null)},ye=function(e,t,i){var r,o,a,s=i||ge(e),f=s?s.getPropertyValue(t)||s[t]:C,h=e.style;return s&&(f===""&&!n.contains(e.ownerDocument,e)&&(f=n.style(e,t)),Be.test(f)&&en.test(t)&&(r=h.width,o=h.minWidth,a=h.maxWidth,h.minWidth=h.maxWidth=h.width=f,f=s.width,h.width=r,h.minWidth=o,h.maxWidth=a)),f}):S.documentElement.currentStyle&&(ge=function(e){return e.currentStyle},ye=function(e,t,i){var r,o,a,s=i||ge(e),f=s?s[t]:C,h=e.style;return f==null&&h&&h[t]&&(f=h[t]),Be.test(f)&&!hi.test(t)&&(r=h.left,o=e.runtimeStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),h.left=t==="fontSize"?"1em":f,f=h.pixelLeft+"px",h.left
33=r,a&&(o.left=a)),f===""?"auto":f});function sn(e,t,i){var r=gi.exec(t);return r?Math.max(0,r[1]-(i||0))+(r[2]||"px"):t}function un(e,t,i,r,o){for(var a=i===(r?"border":"content")?4:t==="width"?1:0,s=0;a<4;a+=2)i==="margin"&&(s+=n.css(e,i+me[a],!0,o)),r?(i==="content"&&(s-=n.css(e,"padding"+me[a],!0,o)),i!=="margin"&&(s-=n.css(e,"border"+me[a]+"Width",!0,o))):(s+=n.css(e,"padding"+me[a],!0,o),i!=="padding"&&(s+=n.css(e,"border"+me[a]+"Width",!0,o)));return s}function fn(e,t,i){var r=!0,o=t==="width"?e.offsetWidth:e.offsetHeight,a=ge(e),s=n.support.boxSizing&&n.css(e,"boxSizing",!1,a)==="border-box";if(o<=0||o==null){if(o=ye(e,t,a),(o<0||o==null)&&(o=e.style[t]),Be.test(o))return o;r=s&&(n.support.boxSizingReliable||o===e.style[t]),o=parseFloat(o)||0}return o+un(e,t,i||(s?"border":"content"),r,a)+"px"}function ln(e){var t=S,i=tn[e];return i||(i=cn(e,t),(i==="none"||!i)&&(Le=(Le||n("<iframe frameborder='0' width='0' height='0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=(Le[0].contentWindow||Le[0].contentDocument).document,t.write("<!doctype html><html><body>"),t.close(),i=cn(e,t),Le.detach()),tn[e]=i),i}function cn(e,t){var i=n(t.createElement(e)).appendTo(t.body),r=n.css(i[0],"display");return i.remove(),r}n.each(["height","width"],function(e,t){n.cssHooks[t]={get:function(i,r,o){if(r)return i.offsetWidth===0&&di.test(n.css(i,"display"))?n.swap(i,mi,function(){return fn(i,t,o)}):fn(i,t,o)},set:function(i,r,o){var a=o&&ge(i);return sn(i,r,o?un(i,t,o,n.support.boxSizing&&n.css(i,"boxSizing",!1,a)==="border-box",a):0)}}}),n.support.opacity||(n.cssHooks.opacity={get:function(e,t){return pi.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var i=e.style,r=e.currentStyle,o=n.isNumeric(t)?"alpha(opacity="+t*100+")":"",a=r&&r.filter||i.filter||"";i.zoom=1,!((t>=1||t==="")&&n.trim(a.replace(ft,""))===""&&i.removeAttribute&&(i.removeAttribute("filter"),t===""||r&&!r.filter))&&(i.filter=ft.test(a)?a.replace(ft,o):a+" "+o)}}),n(function(){n.support.reliableMarginRight||(n.cssHooks.marginRight={get:function(e,t){if(t)return n.swap(e,{display:"inline-block"},ye,[e,"marginRight"])}}),!n.support.pixelPosition&&n.fn.position&&n.each(["top","left"],function(e,t){n.cssHooks[t]={get:function(i,r){if(r)return r=ye(i,t),Be.test(r)?n(i).position()[t]+"px":r}}})}),n.expr&&n.expr.filters&&(n.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0||!n.support.reliableHiddenOffsets&&(e.style&&e.style.display||n.css(e,"display"))==="none"},n.expr.filters.visible=function(e){return!n.expr.filters.hidden(e)}),n.each({margin:"",padding:"",border:"Width"},function(e,t){n.cssHooks[e+t]={expand:function(i){for(var r=0,o={},a=typeof i=="string"?i.split(" "):[i];r<4;r++)o[e+me[r]+t]=a[r]||a[r-2]||a[0];return o}},en.test(e)||(n.cssHooks[e+t].set=sn)});var vi=/%20/g,bi=/\[\]$/,pn=/\r?\n/g,xi=/^(?:submit|button|image|reset|file)$/i,Ti=/^(?:input|select|textarea|keygen)/i;n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=n.prop(this,"elements");return e?n.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!n(this).is(":disabled")&&Ti.test(this.nodeName)&&!xi.test(e)&&(this.checked||!at.test(e))}).map(function(e,t){var i=n(this).val();return i==null?null:n.isArray(i)?n.map(i,function(r){return{name:t.name,value:r.replace(pn,`\r 34`)}}):{name:t.name,value:i.replace(pn,`\r 35`)}}).get()}}),n.param=function(e,t){var i,r=[],o=function(a,s){s=n.isFunction(s)?s():s??"",r[r.length]=encodeURIComponent(a)+"="+encodeURIComponent(s)};
35if(t===C&&(t=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(e)||e.jquery&&!n.isPlainObject(e))n.each(e,function(){o(this.name,this.value)});else for(i in e)lt(i,e[i],t,o);return r.join("&").replace(vi,"+")};function lt(e,t,i,r){var o;if(n.isArray(t))n.each(t,function(a,s){i||bi.test(e)?r(e,s):lt(e+"["+(typeof s=="object"?a:"")+"]",s,i,r)});else if(!i&&n.type(t)==="object")for(o in t)lt(e+"["+o+"]",t[o],i,r);else r(e,t)}n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){n.fn[t]=function(i,r){return arguments.length>0?this.on(t,null,i,r):this.trigger(t)}}),n.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,r){return this.on(t,e,i,r)},undelegate:function(e,t,i){return arguments.length===1?this.off(e,"**"):this.off(t,e||"**",i)}});var ve,se,ct=n.now(),pt=/\?/,Ci=/#.*$/,hn=/([?&])_=[^&]*/,wi=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Ni=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ei=/^(?:GET|HEAD)$/,Si=/^\/\//,dn=/^([\
35w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,gn=n.fn.load,yn={},ht={},mn="*/".concat("*");try{se=_n.href}catch{se=S.createElement("a"),se.href="",se=se.href}ve=dn.exec(se.toLowerCase())||[];function vn(e){return function(t,i){typeof t!="string"&&(i=t,t="*");var r,o=0,a=t.toLowerCase().match(re)||[];if(n.isFunction(i))for(;r=a[o++];)r[0]==="+"?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(i)):(e[r]=e[r]||[]).push(i)}}function bn(e,t,i,r){var o={},a=e===ht;function s(f){var h;return o[f]=!0,n.each(e[f]||[],function(g,p){var v=p(t,i,r);if(typeof v=="string"&&!a&&!o[v])return t.dataTypes.unshift(v),s(v),!1;if(a)return!(h=v)}),h}return s(t.dataTypes[0])||!o["*"]&&s("*")}function dt(e,t){var i,r,o=n.ajaxSettings.flatOptions||{};for(r in t)t[r]!==C&&((o[r]?e:i||(i={}))[r]=t[r]);return i&&n.extend(!0,e,i),e}n.fn.load=function(e,t,i){if(typeof e!="string"&&gn)return gn.apply(this,arguments);var r,o,a,s=this,f=e.indexOf(" ");return f>=0&&(r=e.slice(f,e.length),e=e.slice(0,f)),n.isFunction(t)?(i=t,t=C):t&&typeof t=="object"&&(a="POST"),s.length>0&&n.ajax({url:e,type:a,dataType:"html",data:t}).done(function(h){o=arguments,s.html(r?n("<div>").append(n.parseHTML(h)).find(r):h)}).complete(i&&function(h,g){s.each(i,o||[h.responseText,g,h])}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){n.fn[t]=function(i){return this.on(t,i)}}),n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:se,type:"GET",isLocal:Ni.test(ve[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":mn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?dt(dt(e,n.ajaxSettings),t):dt(n.ajaxSettings,e)},ajaxPrefilter:vn(yn),ajaxTransport:vn(ht),ajax:function(e,t){typeof e=="object"&&(t=e,e=C),t=t||{};var i,r,o,a,s,f,h,g,p=n.ajaxSetup({},t),v=p.context||p,m=p.context&&(v.nodeType||v.jquery)?n(v):n.event,x=n.Deferred(),D=n.Callbacks("once memory"),k=p.statusCode||{},O={},ne={},z=0,W="canceled",A={readyState:0,getResponseHeader:function(q){var I;if(z===2){if(!g)for(g={};I=wi.exec(a);)g[I[1].toLowerCase()]=I[2];I=g[q.toLowerCase()]}return I??null},getAllResponseHeaders:function(){return z===2?a:null},setRequestHeader:function(q,I){var ue=q.toLowerCase();return z||(q=ne[ue]=ne[ue]||q,O[q]=I),this},overrideMimeType:function(q){return z||(p.mimeType=q),this},statusCode:function(q){var I;if(q)if(z<2)for(I in q)k[I]=[k[I],q[I]];else A.always(q[A.status]);return this},abort:function(q){var I=q||W;return h&&h.abort(I),G(0,I),this}};if(x.promise(A).complete=D.add,A.success=A.done,A.error=A.fail,p.url=((e||p.url||se)+"").replace(Ci,"").replace(Si,ve[1]+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=n.trim(p.dataType||"*").toLowerCase().match(re)||[""],p.crossDomain==null&&(i=dn.exec(p.url.toLowerCase()),p.crossDomain=!!(i&&(i[1]!==ve[1]||i[2]!==ve[2]||(i[3]||(i[1]==="http:"?"80":"443"))!==(ve[3]||(ve[1]==="http:"?"80":"443"))))),p.data&&p.processData&&typeof p.data!="string"&&(p.data=n.param(p.data,p.traditional)),bn(yn,p,t,A),z===2)return A;f=p.global,f&&n.active++===0&&n.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Ei.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(pt.test(o)?"&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=hn.test(o)?o.replace(hn,"$1_="+ct++):o+(pt.test(o)?"&":"?")+"_="+ct++)),p.ifModified&&(n.lastModified[o]&&A.setRequestHeader("If-Modified-Since",n.lastModified[o]),n.etag[o]&&A.setRequestHeader("If-None-Match",n.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||t.contentType)&&A.setRequestHeader("Content-Type",p.contentType),A.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+(p.dataTypes[0]!=="*"?", "+mn+"; q=0.01":""):p.accepts["*"]);for(r in p.headers)A.setRequestHeader(r,p.headers[r]);
vendor: 11,336 bytes, line 35
35if(p.beforeSend&&(p.beforeSend.call(v,A,p)===!1||z===2))return A.abort();W="abort";for(r in{success:1,error:1,complete:1})A[r](p[r]);if(h=bn(ht,p,t,A),!h)G(-1,"No Transport");else{A.readyState=1,f&&m.trigger("ajaxSend",[A,p]),p.async&&p.timeout>0&&(s=setTimeout(function(){A.abort("timeout")},p.timeout));try{z=1,h.send(O,G)}catch(q){if(z<2)G(-1,q);else throw q}}function G(q,I,ue,ze){var J,be,Z,oe,fe,$=I;z!==2&&(z=2,s&&clearTimeout(s),h=C,a=ze||"",A.readyState=q>0?4:0,J=q>=200&&q<300||q===304,ue&&(oe=ki(p,A,ue)),oe=Ai(p,oe,A,J),J?(p.ifModified&&(fe=A.getResponseHeader("Last-Modified"),fe&&(n.lastModified[o]=fe),fe=A.getResponseHeader("etag"),fe&&(n.etag[o]=fe)),q===204||p.type==="HEAD"?$="nocontent":q===304?$="notmodified":($=oe.state,be=oe.data,Z=oe.error,J=!Z)):(Z=$,(q||!$)&&($="error",q<0&&(q=0))),A.status=q,A.statusText=(I||$)+"",J?x.resolveWith(v,[be,$,A]):x.rejectWith(v,[A,$,Z]),A.statusCode(k),k=C,f&&m.trigger(J?"ajaxSuccess":"ajaxError",[A,p,J?be:Z]),D.fireWith(v,[A,$]),f&&(m.trigger("ajaxComplete",[A,p]),--n.active||n.event.trigger("ajaxStop")))}return A},getJSON:function(e,t,i){return n.get(e,t,i,"json")},getScript:function(e,t){return n.get(e,C,t,"script")}}),n.each(["get","post"],function(e,t){n[t]=function(i,r,o,a){return n.isFunction(r)&&(a=a||o,o=r,r=C),n.ajax({url:i,type:t,dataType:a,data:r,success:o})}});function ki(e,t,i){for(var r,o,a,s,f=e.contents,h=e.dataTypes;h[0]==="*";)h.shift(),o===C&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o){for(s in f)if(f[s]&&f[s].test(o)){h.unshift(s);break}}if(h[0]in i)a=h[0];else{for(s in i){if(!h[0]||e.converters[s+" "+h[0]]){a=s;break}r||(r=s)}a=a||r}if(a)return a!==h[0]&&h.unshift(a),i[a]}function Ai(e,t,i,r){var o,a,s,f,h,g={},p=e.dataTypes.slice();if(p[1])for(s in e.converters)g[s.toLowerCase()]=e.converters[s];for(a=p.shift();a;)if(e.responseFields[a]&&(i[e.responseFields[a]]=t),!h&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),h=a,a=p.shift(),a){if(a==="*")a=h;else if(h!=="*"&&h!==a){if(s=g[h+" "+a]||g["* "+a],!s){for(o in g)if(f=o.split(" "),f[1]===a&&(s=g[h+" "+f[0]]||g["* "+f[0]],s)){s===!0?s=g[o]:g[o]!==!0&&(a=f[0],p.unshift(f[1]));break}}if(s!==!0)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(v){return{state:"parsererror",error:s?v:"No conversion from "+h+" to "+a}}}}return{state:"success",data:t}}n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return n.globalEval(e),e}}}),n.ajaxPrefilter("script",function(e){e.cache===C&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),n.ajaxTransport("script",function(e){if(e.crossDomain){var t,i=S.head||n("head")[0]||S.documentElement;return{send:function(r,o){t=S.createElement("script"),t.async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(a,s){(s||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,s||o(200,"success"))},i.insertBefore(t,i.firstChild)},abort:function(){t&&t.onload(C,!0)}}}});var xn=[],gt=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=xn.pop()||n.expando+"_"+ct++;return this[e]=!0,e}}),n.ajaxPrefilter("json jsonp",function(e,t,i){var r,o,a,s=e.jsonp!==!1&&(gt.test(e.url)?"url":typeof e.data=="string"&&!(e.contentType||"").indexOf("application/x-www-form-urlencoded")&>.test(e.data)&&"data");if(s||e.dataTypes[0]==="jsonp")return r=e.jsonpCallback=n.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(gt,"$1"+r):e.jsonp!==!1&&(e.url+=(pt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||n.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=j[r],j[r]=function(){a=arguments},i.always(function(){j[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,xn.push(r)),a&&n.isFunction(o)&&o(a[0]),a=o=C}),"script"});var Se,ke,Di=0,yt=j.ActiveXObject&&function(){var e;for(e in Se)Se[e](C,!0)};function Tn(){try{return new j.XMLHttpRequest}catch{}}function Li(){try{return new j.ActiveXObject("Microsoft.XMLHTTP")}catch{}}n.ajaxSettings.xhr=j.ActiveXObject?function(){return!this.isLocal&&Tn()||Li()}:Tn,ke=n.ajaxSettings.xhr(),n.support.cors=!!ke&&"withCredentials"in ke,ke=n.support.ajax=!!ke,ke&&n.ajaxTransport(function(e){if(!e.crossDomain||n.support.cors){var t;return{send:function(i,r){var o,a,s=e.xhr();if(e.username?s.open(e.type,e.url,e.async,e.username,e.password):s.open(e.type,e.url,e.async),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),!e.crossDomain&&!i["X-Requested-With"]&&(i["X-Requested-With"]="XMLHttpRequest");try{for(a in i)s.setRequestHeader(a,i[a])}catch{}s.send(e.hasContent&&e.data||null),t=function(f,h){var g,p,v,m;try{if(t&&(h||s.readyState===4))if(t=C,o&&(s.onreadystatechange=n.noop,yt&&delete Se[o]),h)s.readyState!==4&&s.abort();else{m={},g=s.status,p=s.getAllResponseHeaders(),typeof s.responseText=="string"&&(m.text=s.responseText);try{v=s.statusText}catch{v=""}!g&&e.isLocal&&!e.crossDomain?g=m.text?200:404:g===1223&&(g=204)}}catch(x){h||r(-1,x)}m&&r(g,v,m,p)},e.async?s.readyState===4?setTimeout(t):(o=++Di,yt&&(Se||(Se={},n(j).unload(yt)),Se[o]=t),s.onreadystatechange=t):t()},abort:function(){t&&t(C,!0)}}}});var Ae,We,Hi=/^(?:toggle|show|hide)$/,Cn=new RegExp("^(?:([+-])=|)("+Pe+")([a-z%]*)$","i"),ji=/queueHooks$/,Ie=[Oi],je={"*":[function(e,t){var i=this.createTween(e,t),r=i.cur(),o=Cn.exec(t),a=o&&o[3]||(n.cssNumber[e]?"":"px"),s=(n.cssNumber[e]||a!=="px"&&+r)&&Cn.exec(n.css(i.elem,e)),f=1,h=20;if(s&&s[3]!==a){a=a||s[3],o=o||[],s=+r||1;do f=f||".5",s=s/f,n.style(i.elem,e,s+a);while(f!==(f=i.cur()/r)&&f!==1&&--h)}return o&&(s=i.start=+s||+r||0,i.unit=a,i.end=o[1]?s+(o[1]+1)*o[2]:+o[2]),i}]};function wn(){return setTimeout(function(){Ae=C}),Ae=n.now()}function Nn(e,t,i){for(var r,o=(je[t]||[]).concat(je["*"]),a=0,s=o.length;a<s;a++)if(r=o[a].call(i,t,e))return r}function En(e,t,i){var r,o,a=0,s=Ie.length,f=n.Deferred().always(function(){delete h.elem}),h=function(){if(o)return!1;for(var v=Ae||wn(),m=Math.max(0,g.startTime+g.duration-v),x=m/g.duration||0,D=1-x,k=0,O=g.tweens.length;k<O;k++)g.tweens[k].run(D);return f.notifyWith(e,[g,D,m]),D<1&&O?m:(f.resolveWith(e,[g]),!1)},g=f.promise({elem:e,props:n.extend({},t),opts:n.extend(!0,{specialEasing:{}},i),originalProperties:t,originalOptions:i,startTime:Ae||wn(),duration:i.duration,tweens:[],createTween:function(v,m){var x=n.Tween(e,g.opts,v,m,g.opts.specialEasing[v]||g.opts.easing);return g.tweens.push(x),x},stop:function(v){var m=0,x=v?g.tweens.length:0;if(o)return this;for(o=!0;m<x;m++)g.tweens[m].run(1);return v?f.resolveWith(e,[g,v]):f.rejectWith(e,[g,v]),this}}),p=g.props;for(_i(p,g.opts.specialEasing);a<s;a++)if(r=Ie[a].call(g,e,p,g.opts),r)return r;return n.map(p,Nn,g),n.isFunction(g.opts.start)&&g.opts.start.call(e,g),n.fx.timer(n.extend(h,{elem:e,anim:g,queue:g.opts.queue})),g.progress(g.opts.progress).done(g.opts.done,g.opts.complete).fail(g.opts.fail).always(g.opts.always)}function _i(e,t){var i,r,o,a,s;for(i in e)if(r=n.camelCase(i),o=t[r],a=e[i],n.isArray(a)&&(o=a[1],a=e[i]=a[0]),i!==r&&(e[r]=a,delete e[i]),s=n.cssHooks[r],s&&"expand"in s){a=s.expand(a),delete e[r];for(i in a)i in e||(e[i]=a[i],t[i]=o)}else t[r]=o}n.Animation=n.extend(En,{tweener:function(e,t){n.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var i,r=0,o=e.length;r<o;r++)i=e[r],je[i]=je[i]||[],je[i].unshift(t)},prefilter:function(e,t){t?Ie.unshift(e):Ie.push(e)}});function Oi(e,t,i){var r,o,a,s,f,h,g=this,p={},v=e.style,m=e.nodeType&&He(e),x=n._data(e,"fxshow");i.queue||(f=n._queueHooks(e,"fx"),f.unqueued==null&&(f.unqueued=0,h=f.empty.fire,f.empty.fire=function(){f.unqueued||h()}),f.unqueued++,g.always(function(){g.always(function(){f.unqueued--,n.queue(e,"fx").length||f.empty.fire()})})),e.nodeType===1&&("height"in t||"width"in t)&&(i.overflow=[v.overflow,v.overflowX,v.overflowY],n.css(e,"display")==="inline"&&n.css(e,"float")==="none"&&(!n.support.inlineBlockNeedsLayout||ln(e.nodeName)==="inline"?v.display="inline-block":v.zoom=1)),i.overflow&&(v.overflow="hidden",n.support.shrinkWrapBlocks||g.always(function(){v.overflow=i.overflow[0],v.overflowX=i.overflow[1],v.overflowY=i.overflow[2]}));for(r in t)if(o=t[r],Hi.exec(o)){if(delete t[r],a=a||o==="toggle",o===(m?"hide":"show"))continue;p[r]=x&&x[r]||n.style(e,r)}if(!n.isEmptyObject(p)){x?"hidden"in x&&(m=x.hidden):x=n._data(e,"fxshow",{}),a&&(x.hidden=!m),m?n(e).show():g.done(function(){n(e).hide()}),g.done(function(){var D;n._removeData(e,"fxshow");for(D in p)n.style(e,D,p[D])});for(r in p)s=Nn(m?x[r]:0,r,g),r in x||(x[r]=s.start,m&&(s.end=s.start,s.start=r==="width"||r==="height"?1:0))}}function Y(e,t,i,r,o){return new Y.prototype.init(e,t,i,r,o)}n.Tween=Y,Y.prototype={constructor:Y,init:function(e,t,i,r,o,a){this.elem=e,this.prop=i,this.easing=o||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(n.cssNumber[i]?"":"px")},cur:function(){var e=Y.propHooks[this.prop];return e&&e.get?e.get(this):Y.propHooks._default.get(this)},run:function(e){var t,i=Y.propHooks[this.prop];return this.options.duration?this.pos=t=n.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Y.propHooks._default.set(this),this}},Y.prototype.init.prototype=Y.prototype,Y.propHooks={_default:{get:function(e){var t;return e.elem[e.prop]!=null&&(!e.elem.style||e.elem.style[e.prop]==null)?e.elem[e.prop]:(t=n.css(e.elem,e.prop,""),!t||t==="auto"?0:t)},set:function(e){n.fx.step[e.prop]?n.fx.step[e.prop](e):e.elem.style&&(e.elem.style[n.cssProps[e.prop]]!=null||n.cssHooks[e.prop])?n.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},Y.propHooks.scrollTop=Y.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},n.each(["toggle","show","hide"],function(e,t){var i=n.fn[t];n.fn[t]=function(r,o,a){return r==null||typeof r=="boolean"?i.apply(this,arguments):this.animate($e(t,!0),r,o,a)}}),n.fn.extend({fadeTo:function(e,t,i,r){return this.filter(He).css("opacity",0).show().end().animate({opacity:t},e,i,r)},animate:function(e,t,i,r){var o=n.isEmptyObject(e),a=n.speed(t,i,r),s=function(){var f=En(this,n.extend({},e),a);(o||n._data(this,"finish"))&&f.stop(!0)};return s.finish=s,o||a.queue===!1?this.each(s):this.queue(a.queue,s)},stop:function(e,t,i){var r=function(o){var a=o.stop;delete o.stop,a(i)};return typeof e!="string"&&(i=t,t=e,e=C),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var o=!0,a=e!=null&&e+"queueHooks",s=n.timers,f=n._data(this);if(a)f[a]&&f[a].stop&&r(f[a]);else for(a in f)f[a]&&f[a].stop&&ji.test(a)&&r(f[a]);for(a=s.length;a--;)s[a].elem===this&&(e==null||s[a].queue===e)&&(s[a].anim.stop(i),o=!1,s.splice(a,1));(o||!i)&&n.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,i=n._data(this),r=i[e+"queue"],o=i[e+"queueHooks"],a=n.timers,s=r?r.length:0;for(i.finish=!0,n.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1)
35);for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete i.finish})}});function $e(e,t){var i,r={height:e},o=0;for(t=t?1:0;o<4;o+=2-t)i=me[o],r["margin"+i]=r["padding"+i]=e;return t&&(r.opacity=r.width=e),r}n.each({slideDown:$e("show"),slideUp:$e("hide"),slideToggle:$e("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){n.fn[e]=function(i,r,o){return this.animate(t,i,r,o)}}),n.speed=function(e,t,i){var r=e&&typeof e=="object"?n.extend({},e):{complete:i||!i&&t||n.isFunction(e)&&e,duration:e,easing:i&&t||t&&!n.isFunction(t)&&t};return r.duration=n.fx.off?0:typeof r.duration=="number"?r.duration:r.duration in n.fx.speeds?n.fx.speeds[r.duration]:n.fx.speeds._default,(r.queue==null||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){n.isFunction(r.old)&&r.old.call(this),r.queue&&n.dequeue(this,r.queue)},r},n.easing={linear:function(e){return e},swing:function(e){return .5-Math.cos(e*Math.PI)/2}},n.timers=[],n.fx=Y.prototype.init,n.fx.tick=function(){var e,t=n.timers,i=0;for(Ae=n.now();i<t.length;i++)e=t[i],!e()&&t[i]===e&&t.splice(i--,1);t.length||n.fx.stop(),Ae=C},n.fx.timer=function(e){e()&&n.timers.push(e)&&n.fx.start()},n.fx.interval=13,n.fx.start=function(){We||(We=setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){clearInterval(We),We=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fx.step={},n.expr&&n.expr.filters&&(n.expr.filters.animated=function(e){return n.grep(n.timers,function(t){return e===t.elem}).length}),n.fn.offset=function(e){if(arguments.length)return e===C?this:this.each(function(s){n.offset.setOffset(this,e,s)});var t,i,r={top:0,left:0},o=this[0],a=o&&o.ownerDocument;if(a)return t=a.documentElement,n.contains(t,o)?(typeof o.getBoundingClientRect!==ie&&(r=o.getBoundingClientRect()),i=Sn(a),{top:r.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:r.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):r},n.offset={setOffset:function(e,t,i){var r=n.css(e,"position");r==="static"&&(e.style.position="relative");var o=n(e),a=o.offset(),s=n.css(e,"top"),f=n.css(e,"left"),h=(r==="absolute"||r==="fixed")&&n.inArray("auto",[s,f])>-1,g={},p={},v,m;h?(p=o.position(),v=p.top,m=p.left):(v=parseFloat(s)||0,m=parseFloat(f)||0),n.isFunction(t)&&(t=t.call(e,i,a)),t.top!=null&&(g.top=t.top-a.top+v),t.left!=null&&(g.left=t.left-a.left+m),"using"in t?t.using.call(e,g):o.css(g)}},n.fn.extend({position:function(){if(this[0]){var e,t,i={top:0,left:0},r=this[0];return n.css(r,"position")==="fixed"?t=r.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),n.nodeName(e[0],"html")||(i=e.offset()),i.top+=n.css(e[0],"borderTopWidth",!0),i.left+=n.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-n.css(r,"marginTop",!0),left:t.left-i.left-n.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||At;e&&!n.nodeName(e,"html")&&n.css(e,"position")==="static";)e=e.offsetParent;return e||At})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var i=/Y/.test(t);n.fn[e]=function(r){return n.access(this,function(o,a,s){var f=Sn(o);if(s===C)return f?t in f?f[t]:f.document.documentElement[a]:o[a];f?f.scrollTo(i?n(f).scrollLeft():s,i?s:n(f).scrollTop()):o[a]=s},e,r,arguments.length,null)}});function Sn(e){return n.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}n.each({Height:"height",Width:"width"},function(e,t){n.each({padding:"inner"+e,content:t,"":"outer"+e},function(i,r){n.fn[r]=function(o,a){var s=arguments.length&&(i||typeof o!="boolean"),f=i||(o===!0||a===!0?"margin":"border");return n.access(this,function(h,g,p){var v;return n.isWindow(h)?h.document.documentElement["client"+e]:h.nodeType===9?(v=h.documentElement,Math.max(h.body["scroll"+e],v["scroll"+e],h.body["offset"+e],v["offset"+e],v["client"+e])):p===C?n.css(h,g,f):n.style(h,g,p,f)},t,s?o:C,s,null)}})}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,typeof module=="object"&&module&&typeof module.exports=="object"?module.exports=n:(j.jQuery=j.$=n,typeof define=="function"&&define.amd&&define("jquery",[],function(){return n}))})(window); 36 37/* NUGET: BEGIN LICENSE TEXT 38 *
39 * Microsoft grants you the right to use these script files for the sole 40 * purpose of either: (i) interacting through your browser with the Microsoft 41 * website or online service, subject to the applicable licensing or use 42 * terms; or (ii) using the files as included with a Microsoft product subject 43 * to that product's license terms. Microsoft reserves all other rights to the 44 * files not expressly granted by Microsoft, whether by implication, estoppel 45 * or otherwise. Insofar as a script file is dual licensed under GPL, 46 * Microsoft neither took the code under GPL nor distributes it thereunder but 47 * under the terms set out in this paragraph. All notices and licenses 48 * below are for informational purposes only. 49 * 50 * NUGET: END LICENSE TEXT */ 51/*! jQuery Validation Plugin - v1.11.1 - 3/22/2013\n* https://github.com/jzaefferer/jquery-validation 52* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT */(function(t){t.extend(t.fn,{validate:function(e){if(!this.length)return e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."),void 0;var i=t.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.validateDelegate(":submit","click",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(e.target).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(e.target).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.submit(function(e){function s(){var s;return i.settings.submitHandler?(i.submitButton&&(s=t("<input type='hidden'/>").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&s.remove(),!1):!0}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,s()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):s():(i.focusInvalid(),!1)})),i)},valid:function(){if(t(this[0]).is("form"))return this.validate().form();var e=!0,i=t(this[0].form).validate();return this.each(function(){e=e&&i.element(this)}),e},removeAttrs:function(e){var i={},s=this;return t.each(e.split(/\s/),function(t,e){i[e]=s.attr(e),s.removeAttr(e)}),i},rules:function(e,i){var s=this[0];if(e){var r=t.data(s.form,"validator").settings,n=r.rules,a=t.validator.staticRules(s);switch(e){case"add":t.extend(a,t.validator.normalizeRule(i)),delete a.messages,n[s.name]=a,i.messages&&(r.messages[s.name]=t.extend(r.messages[s.name],i.messages));break;case"remove":if(!i)return delete n[s.name],a;var u={};return t.each(i.split(/\s/),function(t,e){u[e]=a[e],delete a[e]}),u}}var o=t.validator.normalizeRules(t.extend({},t.validator.classRules(s),t.validator.attributeRules(s),t.validator.dataRules(s),t.validator.staticRules(s)),s);if(o.required){var l=o.required;delete o.required,o=t.extend({required:l},o)}return o}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){return!!t.trim(""+t(e).val())},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&!this.blockFocusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.addWrapper(this.errorsFor(t)).hide())},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element
52(t)},onkeyup:function(t,e){(9!==e.which||""!==this.elementValue(t))&&(t.name in this.submitted||t===this.lastElement)&&this.element(t)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(s):t(e).addClass(i).removeClass(s)},unhighlight:function(e,i,s){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(s):t(e).removeClass(i).addClass(s)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},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.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var i=t.data(this[0].form,"validator"),s="on"+e.type.replace(/^validate/,"");i.settings[s]&&i.settings[s].call(i,this[0],e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i=this.groups={};t.each(this.settings.groups,function(e,s){"string"==typeof s&&(s=s.split(/\s/)),t.each(s,function(t,s){i[s]=e})});var s=this.settings.rules;t.each(s,function(e,i){s[e]=t.validator.normalizeRule(i)}),t(this.currentForm).validateDelegate(":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'] ","focusin focusout keyup",e).validateDelegate("[type='radio'], [type='checkbox'], select, option","click",e),this.settings.invalidHandler&&t(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){e=this.validationTargetFor(this.clean(e)),this.lastElement=e,this.prepareElement(e),this.currentElements=t(e);var i=this.check(e)!==!1;return i?delete this.invalid[e.name]:this.invalid[e.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),i},showErrors:function(e){if(e){t.extend(this.errorMap,e),this.errorList=[];for(var i in e)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors(),this.elements().removeClass(this.settings.errorClass).removeData("previousValue")},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e=0;for(var i in t)e++;return e},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.name in i||!e.objectLength(t(this).rules())?!1:(i[this.name]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.replace(" ",".");return t(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers
52)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i=t(e).attr("type"),s=t(e).val();return"radio"===i||"checkbox"===i?t("input[name='"+t(e).attr("name")+"']:checked").val():"string"==typeof s?s.replace(/\r/g,""):s},check:function(e){e=this.validationTargetFor(this.clean(e));var i,s=t(e).rules(),r=!1,n=this.elementValue(e);for(var a in s){var u={method:a,parameters:s[a]};try{if(i=t.validator.methods[a].call(this,n,e,u.parameters),"dependency-mismatch"===i){r=!0;continue}if(r=!1,"pending"===i)return this.toHide=this.toHide.not(this.errorsFor(e)),void 0;if(!i)return this.formatAndAdd(e,u),!1}catch(o){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+u.method+"' method.",o),o}}return r?void 0:(this.objectLength(s)&&this.successList.push(e),!0)},customDataMessage:function(e,i){return t(e).data("msg-"+i.toLowerCase())||e.attributes&&t(e).attr("data-msg-"+i.toLowerCase())},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;arguments.length>t;t++)if(void 0!==arguments[t])return arguments[t];return void 0},defaultMessage:function(e,i){return this.findDefined(this.customMessage(e.name,i),this.customDataMessage(e,i),!this.settings.ignoreTitle&&e.title||void 0,t.validator.messages[i],"<strong>Warning: No message defined for "+e.name+"</strong>")},formatAndAdd:function(e,i){var s=this.defaultMessage(e,i.method),r=/\$?\{(\d+)\}/g;"function"==typeof s?s=s.call(this,i.parameters,e):r.test(s)&&(s=t.validator.format(s.replace(r,"{$1}"),i.parameters)),this.errorList.push({message:s,element:e}),this.errorMap[e.name]=s,this.submitted[e.name]=s},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e;for(t=0;this.errorList[t];t++){var i=this.errorList[t];this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message)}if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],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 t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var s=this.errorsFor(e);s.length?(s.removeClass(this.settings.validClass).addClass(this.settings.errorClass),s.html(i)):(s=t("<"+this.settings.errorElement+">").attr("for",this.idOrName(e)).addClass(this.settings.errorClass).html(i||""),this.settings.wrapper&&(s=s.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.append(s).length||(this.settings.errorPlacement?this.settings.errorPlacement(s,t(e)):s.insertAfter(e))),!i&&this.settings.success&&(s.text(""),"string"==typeof this.settings.success?s.addClass(this.settings.success):this.settings.success(s,e)),this.toShow=this.toShow.add(s)},errorsFor:function(e){var i=this.idOrName(e);return this.errors().filter(function(){return t(this).attr("for")===i})},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name).not(this.settings.ignore)[0]),t},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+e+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return this.dependTypes[typeof t]?this.dependTypes[typeof t](t,e):!0}
52,dependTypes:{"boolean":function(t){return t},string:function(e,i){return!!t(e,i.form).length},"function":function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,0>this.pendingRequest&&(this.pendingRequest=0),delete this.pending[e.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},s=t(e).attr("class");return s&&t.each(s.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},attributeRules:function(e){var i={},s=t(e),r=s[0].getAttribute("type");for(var n in t.validator.methods){var a;"required"===n?(a=s.get(0).getAttribute(n),""===a&&(a=!0),a=!!a):a=s.attr(n),/min|max/.test(n)&&(null===r||/number|range|text/.test(r))&&(a=Number(a)),a?i[n]=a:r===n&&"range"!==r&&(i[n]=!0)}return i.maxlength&&/-1|2147483647|524288/.test(i.maxlength)&&delete i.maxlength,i},dataRules:function(e){var i,s,r={},n=t(e);for(i in t.validator.methods)s=n.data("rule-"+i.toLowerCase()),void 0!==s&&(r[i]=s);return r},staticRules:function(e){var i={},s=t.data(e.form,"validator");return s.settings.rules&&(i=t.validator.normalizeRule(s.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(s,r){if(r===!1)return delete e[s],void 0;if(r.param||r.depends){var n=!0;switch(typeof r.depends){case"string":n=!!t(r.depends,i.form).length;break;case"function":n=r.depends.call(i,i)}n?e[s]=void 0!==r.param?r.param:!0:delete e[s]}}),t.each(e,function(s,r){e[s]=t.isFunction(r)?r(i):r}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(e.min&&e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),e.minlength&&e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,s){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==s?s:t.validator.messages[e],3>i.length&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,s){if(!this.depend(s,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var r=t(i).val();return r&&r.length>0}return this.checkable(i)?this.getLength(e,i)>0:t.trim(e).length>0},email:function(t,e){return this.optional(e)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i.test(t)},url:function(t,e){return this.optional(e)||/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(""+new Date(t))},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var i=0,s=0,r=!1;t=t.replace(/\D/g,"");for(var n=t.length-1;n>=0;n--){var a=t.charAt(n);s=parseInt(a,10),r&&(s*=2)>9&&(s-=9),i+=s,r=!r}return 0===i%10},minlength:function(e,i,s){var r=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||r>=s},maxlength:function(e,i,s){var r=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||s>=r},rangelength:function(e,i,s){var r=t.isArray(e)?e.length:this.getLength(t.trim(e),i);return this.optional(i)||r>=s[0]&&s[1]>=r}
52,min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||i>=t},range:function(t,e,i){return this.optional(e)||t>=i[0]&&i[1]>=t},equalTo:function(e,i,s){var r=t(s);return this.settings.onfocusout&&r.unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){t(i).valid()}),e===r.val()},remote:function(e,i,s){if(this.optional(i))return"dependency-mismatch";var r=this.previousValue(i);if(this.settings.messages[i.name]||(this.settings.messages[i.name]={}),r.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=r.message,s="string"==typeof s&&{url:s}||s,r.old===e)return r.valid;r.old=e;var n=this;this.startRequest(i);var a={};return a[i.name]=e,t.ajax(t.extend(!0,{url:s,mode:"abort",port:"validate"+i.name,dataType:"json",data:a,success:function(s){n.settings.messages[i.name].remote=r.originalMessage;var a=s===!0||"true"===s;if(a){var u=n.formSubmitted;n.prepareElement(i),n.formSubmitted=u,n.successList.push(i),delete n.invalid[i.name],n.showErrors()}else{var o={},l=s||n.defaultMessage(i,"remote");o[i.name]=r.message=t.isFunction(l)?l(e):l,n.invalid[i.name]=!0,n.showErrors(o)}r.valid=a,n.stopRequest(i,a)}},s)),"pending"}}}),t.format=t.validator.format})(jQuery),function(t){var e={};if(t.ajaxPrefilter)t.ajaxPrefilter(function(t,i,s){var r=t.port;"abort"===t.mode&&(e[r]&&e[r].abort(),e[r]=s)});else{var i=t.ajax;t.ajax=function(s){var r=("mode"in s?s:t.ajaxSettings).mode,n=("port"in s?s:t.ajaxSettings).port;return"abort"===r?(e[n]&&e[n].abort(),e[n]=i.apply(this,arguments),e[n]):i.apply(this,arguments)}}}(jQuery),function(t){t.extend(t.fn,{validateDelegate:function(e,i,s){return this.bind(i,function(i){var r=t(i.target);return r.is(e)?s.apply(r,arguments):void 0})}})}(jQuery); 53/* NUGET: BEGIN LICENSE TEXT 54 * 55 * Microsoft grants you the right to use these script files for the sole 56 * purpose of either: (i) interacting through your browser with the Microsoft 57 * website or online service, subject to the applicable licensing or use 58 * terms; or (ii) using the files as included with a Microsoft product subject 59 * to that product's license terms. Microsoft reserves all other rights to the 60 * files not expressly granted by Microsoft, whether by implication, estoppel 61 * or otherwise. Insofar as a script file is dual licensed under GPL, 62 * Microsoft neither took the code under GPL nor distributes it thereunder but 63 * under the terms set out in this paragraph. All notices and licenses 64 * below are for informational purposes only. 65 * 66 * NUGET: END LICENSE TEXT */ 67/* 68** Unobtrusive validation support library for jQuery and jQuery Validate 69** Copyright (C) Microsoft Corporation. All rights reserved. 70*/ 71(function(a){var d=a.validator,b,e="unobtrusiveValidation";function c(a,b,c){a.rules[b]=c;if(a.message)a.messages[b]=a.message}function j(a){return a.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}function f(a){return a.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function h(a){return a.substr(0,a.lastIndexOf(".")+1)}function g(a,b){if(a.indexOf("*.")===0)a=a.replace("*.",b);return a}function m(c,e){var b=a(this).find("[data-valmsg-for='"+f(e[0].name)+"']"),d=b.attr("data-valmsg-replace"),g=d?a.parseJSON(d)!==false:null;b.removeClass("field-validation-valid").addClass("field-validation-error");c.data("unobtrusiveContainer",b);if(g){b.empty();c.removeClass("input-validation-error").appendTo(b)}else c.hide()}function l(e,d){var c=a(this).find("[data-valmsg-summary=true]"),b=c.find("ul");if(b&&b.length&&d.errorList.length){b.empty();c.addClass("validation-summary-errors").removeClass("validation-summary-valid");a.each(d.errorList,function(){a("<li />").html(this.message).appendTo(b)})}}function k(d){var b=d.data("unobtrusiveContainer"),c=b.attr("data-valmsg-replace"),e=c?a.parseJSON(c):null;if(b){b.addClass("field-validation-valid").removeClass("field-validation-error");d.removeData("unobtrusiveContainer");e&&b.empty()}}function n(){var b=a(this),c="__jquery_unobtrusive_validation_form_reset";if(b.data(c))return;b.data(c,true);try{b.data("validator").resetForm()}finally{b.removeData(c)}
71b.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");b.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}function i(b){var c=a(b),f=c.data(e),i=a.proxy(n,b),g=d.unobtrusive.options||{},h=function(e,d){var c=g[e];c&&a.isFunction(c)&&c.apply(b,d)};if(!f){f={options:{errorClass:g.errorClass||"input-validation-error",errorElement:g.errorElement||"span",errorPlacement:function(){m.apply(b,arguments);h("errorPlacement",arguments)},invalidHandler:function(){l.apply(b,arguments);h("invalidHandler",arguments)},messages:{},rules:{},success:function(){k.apply(b,arguments);h("success",arguments)}},attachValidation:function(){c.off("reset."+e,i).on("reset."+e,i).validate(this.options)},validate:function(){c.validate();return c.valid()}};c.data(e,f)}return f}d.unobtrusive={adapters:[],parseElement:function(b,h){var d=a(b),f=d.parents("form")[0],c,e,g;if(!f)return;c=i(f);c.options.rules[b.name]=e={};c.options.messages[b.name]=g={};a.each(this.adapters,function(){var c="data-val-"+this.name,i=d.attr(c),h={};if(i!==undefined){c+="-";a.each(this.params,function(){h[this]=d.attr(c+this)});this.adapt({element:b,form:f,message:i,params:h,rules:e,messages:g})}});a.extend(e,{__dummy__:true});!h&&c.attachValidation()},parse:function(c){var b=a(c),e=b.parents().addBack().filter("form").add(b.find("form")).has("[data-val=true]");b.find("[data-val=true]").each(function(){d.unobtrusive.parseElement(this,true)});e.each(function(){var a=i(this);a&&a.attachValidation()})}};b=d.unobtrusive.adapters;b.add=function(c,a,b){if(!b){b=a;a=[]}this.push({name:c,params:a,adapt:b});return this};b.addBool=function(a,b){return this.add(a,function(d){c(d,b||a,true)})};b.addMinMax=function(e,g,f,a,d,b){return this.add(e,[d||"min",b||"max"],function(b){var e=b.params.min,d=b.params.max;if(e&&d)c(b,a,[e,d]);else if(e)c(b,g,e);else d&&c(b,f,d)})};b.addSingleVal=function(a,b,d){return this.add(a,[b||"val"],function(e){c(e,d||a,e.params[b])})};d.addMethod("__dummy__",function(){return true});d.addMethod("regex",function(b,c,d){var a;if(this.optional(c))return true;a=(new RegExp(d)).exec(b);return a&&a.index===0&&a[0].length===b.length});d.addMethod("nonalphamin",function(c,d,b){var a;if(b){a=c.match(/\W/g);a=a&&a.length>=b}return a});if(d.methods.extension){b.addSingleVal("accept","mimtype");b.addSingleVal("extension","extension")}else b.addSingleVal("extension","extension","accept");b.addSingleVal("regex","pattern");b.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");b.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");b.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");b.add("equalto",["other"],function(b){var i=h(b.element.name),j=b.params.other,d=g(j,i),e=a(b.form).find(":input").filter("[name='"+f(d)+"']")[0];c(b,"equalTo",e)});b.add("required",function(a){(a.element.tagName.toUpperCase()!=="INPUT"||a.element.type.toUpperCase()!=="CHECKBOX")&&c(a,"required",true)});b.add("remote",["url","type","additionalfields"],function(b){var d={url:b.params.url,type:b.params.type||"GET",data:{}},e=h(b.element.name);a.each(j(b.params.additionalfields||b.element.name),function(i,h){var c=g(h,e);d.data[c]=function(){var d=a(b.form).find(":input").filter("[name='"+f(c)+"']");return d.is(":checkbox")?d.filter(":checked").val()||d.filter(":hidden").val()||"":d.is(":radio")?d.filter(":checked").val()||"":d.val()}});c(b,"remote",d)});b.add("password",["min","nonalphamin","regex"],function(a){a.params.min&&c(a,"minlength",a.params.min);a.params.nonalphamin&&c(a,"nonalphamin",a.params.nonalphamin);a.params.regex&&c(a,"regex",a.params.regex)});a(function(){d.unobtrusive.parse(document)})})(jQuery); 72/*! jQuery Validation Plugin - v1.11.0 - 2/4/2013 73* https://github.com/jzaefferer/jquery-validation 74* Copyright (c) 2013 Jörn Zaefferer; Licensed MIT */ 75(function(){function e(e){return e.replace(/<.[^<>]*?>/g," ").replace(/ | /gi," ").replace(/[.(),;:!?%#$'"_+=\/\-]*/g,"")}jQuery.validator.addMethod("maxWords",function(t,n,r){return this.optional(n)||e(t).match(/\b\w+\b/g).length<=r},jQuery.validator.format("Please enter {0} words or less.")),jQuery.validator.addMethod("minWords",function(t,n,r){return this.optional(n)||e(t).match(/\b\w+\b/g).length>=r},jQuery.validator.format("Please enter at least {0} words.")),jQuery.validator.addMethod("rangeWords",function(t,n,r){var i=e(t),s=/\b\w+\b/g;return this.optional(n)||i.match(s).length>=r[0]&&i.match(s).length<=r[1]},jQuery.validator.format("Please enter between {0} and {1} words."))})(),jQuery.validator.addMethod("letterswithbasicpunc",function(e,t){return this.optional(t)||/^[a-z\-.,()'"\s]+$/i.test(e)},"Letters or punctuation only please"),jQuery.validator.addMethod("alphanumeric",function(e,t){return this.optional(t)||/^\w+$/i.test(e)},"Letters, numbers, and underscores only please"),jQuery.validator.addMethod("lettersonly",function(e,t){return this.optional(t)||/^[a-z]+$/i.test(e)},"Letters only please"),jQuery.validator.addMethod("nowhitespace",function(e,t){return this.optional(t)||/^\S+$/i.test(e)},"No white space please"),jQuery.validator.addMethod("ziprange",function(e,t){return this.optional(t)||/^90[2-5]\d\{2\}-\d{4}$/.test(e)},"Your ZIP-code must be in the range 902xx-xxxx to 905-xx-xxxx"),jQuery.validator.addMethod("zipcodeUS",function(e,t){return this.optional(t)||/\d{5}-\d{4}$|^\d{5}$/.test(e)}
75,"The specified US ZIP Code is invalid"),jQuery.validator.addMethod("integer",function(e,t){return this.optional(t)||/^-?\d+$/.test(e)},"A positive or negative non-decimal number please"),jQuery.validator.addMethod("vinUS",function(e){if(e.length!==17)return!1;var t,n,r,i,s,o,u=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],a=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],f=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],l=0;for(t=0;t<17;t++){i=f[t],r=e.slice(t,t+1),t===8&&(o=r);if(!isNaN(r))r*=i;else for(n=0;n<u.length;n++)if(r.toUpperCase()===u[n]){r=a[n],r*=i,isNaN(o)&&n===8&&(o=u[n]);break}l+=r}return s=l%11,s===10&&(s="X"),s===o?!0:!1},"The specified vehicle identification number (VIN) is invalid."),jQuery.validator.addMethod("dateITA",function(e,t){var n=!1,r=/^\d{1,2}\/\d{1,2}\/\d{4}$/;if(r.test(e)){var i=e.split("/"),s=parseInt(i[0],10),o=parseInt(i[1],10),u=parseInt(i[2],10),a=new Date(u,o-1,s);a.getFullYear()===u&&a.getMonth()===o-1&&a.getDate()===s?n=!0:n=!1}else n=!1;return this.optional(t)||n},"Please enter a correct date"),jQuery.validator.addMethod("dateNL",function(e,t){return this.optional(t)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(e)},"Vul hier een geldige datum in."),jQuery.validator.addMethod("time",function(e,t){return this.optional(t)||/^([01]\d|2[0-3])(:[0-5]\d){1,2}$/.test(e)},"Please enter a valid time, between 00:00 and 23:59"),jQuery.validator.addMethod("time12h",function(e,t){return this.optional(t)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}( ?[AP]M))$/i.test(e)},"Please enter a valid time in 12-hour format"),jQuery.validator.addMethod("phoneUS",function(e,t){return e=e.replace(/\s+/g,""),this.optional(t)||e.length>9&&e.match(/^(\+?1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/)},"Please specify a valid phone number"),jQuery.validator.addMethod("phoneUK",function(e,t){return e=e.replace(/\(|\)|\s+|-/g,""),this.optional(t)||e.length>9&&e.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:(?:\d{5}\)?\s?\d{4,5})|(?:\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3}))|(?:\d{3}\)?\s?\d{3}\s?\d{3,4})|(?:\d{2}\)?\s?\d{4}\s?\d{4}))$/)},"Please specify a valid phone number"),jQuery.validator.addMethod("mobileUK",function(e,t){return e=e.replace(/\s+|-/g,""),this.optional(t)||e.length>9&&e.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[45789]\d{2}|624)\s?\d{3}\s?\d{3})$/)},"Please specify a valid mobile number"),jQuery.validator.addMethod("phonesUK",function(e,t){return e=e.replace(/\s+|-/g,""),this.optional(t)||e.length>9&&e.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[45789]\d{8}|624\d{6})))$/)},"Please specify a valid uk phone number"),jQuery.validator.addMethod("postcodeUK",function(e,t){return e=e.toUpperCase().replace(/\s+/g,""),this.optional(t)||e.match(/^([^QZ][^IJZ]{0,1}\d{1,2})(\d[^CIKMOV]{2})$/)||e.match(/^([^QV]\d[ABCDEFGHJKSTUW])(\d[^CIKMOV]{2})$/)||e.match(/^([^QV][^IJZ]\d[ABEHMNPRVWXY])(\d[^CIKMOV]{2})$/)||e.match(/^(GIR)(0AA)$/)||e.match(/^(BFPO)(\d{1,4})$/)||e.match(/^(BFPO)(C\/O\d{1,3})$/)},"Please specify a valid postcode"),jQuery.validator.addMethod("strippedminlength",function(e,t,n){return jQuery(e).text().length>=n},jQuery.validator.format("Please enter at least {0} characters")),jQuery.validator.addMethod("email2",function(e,t,n){return this.optional(t)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(e)},jQuery.validator.messages.email),jQuery.validator.addMethod("url2",function(e,t,n){return this.optional(t)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)*(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(e)},jQuery.validator.messages.url),jQuery.validator.addMethod("creditcardtypes",function(e,t,n){if(/[^0-9\-]+/.test(e))return!1;e=e.replace(/\D/g,"");var r=0;return n.mastercard&&(r|=1),n.visa&&(r|=2),n.amex&&(r|=4),n.dinersclub&&(r|=8),n.enroute&&(r|=16),n.discover&&(r|=32),n.jcb&&(r|=64),n.unknown&&(r|=128),n.all&&(r=255
75),r&1&&/^(5[12345])/.test(e)?e.length===16:r&2&&/^(4)/.test(e)?e.length===16:r&4&&/^(3[47])/.test(e)?e.length===15:r&8&&/^(3(0[012345]|[68]))/.test(e)?e.length===14:r&16&&/^(2(014|149))/.test(e)?e.length===15:r&32&&/^(6011)/.test(e)?e.length===16:r&64&&/^(3)/.test(e)?e.length===16:r&64&&/^(2131|1800)/.test(e)?e.length===15:r&128?!0:!1},"Please enter a valid credit card number."),jQuery.validator.addMethod("ipv4",function(e,t,n){return this.optional(t)||/^(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(e)},"Please enter a valid IP v4 address."),jQuery.validator.addMethod("ipv6",function(e,t,n){return this.optional(t)||/^((([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(e)},"Please enter a valid IP v6 address."),jQuery.validator.addMethod("pattern",function(e,t,n){return this.optional(t)?!0:(typeof n=="string"&&(n=new RegExp("^(?:"+n+")$")),n.test(e))},"Invalid format."),jQuery.validator.addMethod("require_from_group",function(e,t,n){var r=this,i=n[1],s=$(i,t.form).filter(function(){return r.elementValue(this)}).length>=n[0];if(!$(t).data("being_validated")){var o=$(i,t.form);o.data("being_validated",!0),o.valid(),o.data("being_validated",!1)}return s},jQuery.format("Please fill at least {0} of these fields.")),jQuery.validator.addMethod("skip_or_fill_minimum",function(e,t,n){var r=this,i=n[0],s=n[1],o=$(s,t.form).filter(function(){return r.elementValue(this)}).length,u=o>=i||o===0;if(!$(t).data("being_validated")){var a=$(s,t.form);a.data("being_validated",!0),a.valid(),a.data("being_validated",!1)}return u},jQuery.format("Please either skip these fields or fill at least {0} of them.")),jQuery.validator.addMethod("accept",function(e,t,n){var r=typeof n=="string"?n.replace(/\s/g,"").replace(/,/g,"|"):"image/*",i=this.optional(t),s,o;if(i)return i;if($(t).attr("type")==="file"){r=r.replace(/\*/g,".*");if(t.files&&t.files.length)for(s=0;s<t.files.length;s++){o=t.files[s];if(!o.type.match(new RegExp(".?("+r+")$","i")))return!1}}return!0},jQuery.format("Please enter a value with a valid mimetype.")),jQuery.validator.addMethod("extension",function(e,t,n){return n=typeof n=="string"?n.replace(/,/g,"|"):"png|jpe?g|gif",this.optional(t)||e.match(new RegExp(".("+n+")$","i"))},jQuery.format("Please enter a value with a valid extension.")); 76/*! jQuery UI - v1.12.1 - 2019-08-07 77* http://jqueryui.com 78* Includes: widget.js, position.js, data.js, keycode.js, scroll-parent.js, unique-id.js, widgets/draggable.js, widgets/autocomplete.js, widgets/datepicker.js, widgets/menu.js, widgets/mouse.js 79* Copyright jQuery Foundation and other contributors; Licensed MIT */(function(i){typeof define=="function"&&define.amd?define(["jquery"],i):i(jQuery)})(function(i){i.ui=i.ui||{};var ce=i.ui.version="1.12.1";/*! 80 * jQuery UI Widget 1.12.1 81 * http://jqueryui.com 82 * 83 * Copyright jQuery Foundation and other contributors 84 * Released under the MIT license. 85 * http://jquery.org/license 86 */var oe=0,te=Array.prototype.slice;i.cleanData=(function(e){return function(t){var s,a,r;for(r=0;(a=t[r])!=null;r++)try{s=i._data(a,"events"),s&&s.remove&&i(a).triggerHandler("remove")}catch{}e(t)}})(i.cleanData),i.widget=function(e,t,s){var a,r,n,o={},l=e.split(".")[0];e=e.split(".")[1];var f=l+"-"+e;return s||(s=t,t=i.Widget),i.isArray(s)&&(s=i.extend.apply(null,[{}].concat(s))),i.expr[":"][f.toLowerCase()]=function(g){return!!i.data(g,f)},i[l]=i[l]||{},a=i[l][e],r=i[l][e]=function(g,d){if(!this._createWidget)return new r(g,d);arguments.length&&this._createWidget(g,d)},i.extend(r,a,{version:s.version,_proto:i.extend({},s),_childConstructors:[]}),n=new t,n.options=i.widget.extend({},n.options),i.each(s,function(g,d){if(!i.isFunction(d)){o[g]=d;return}o[g]=(function(){function v(){return t.prototype[g].apply(this,arguments)}function h(u){return t.prototype[g].apply(this,u)}return function(){var u=this._super,c=this._superApply,p;return this._super=v,this._superApply=h,p=d.apply(this,arguments),this._super=u,this._superApply=c,p}})()}),r.prototype=i.widget.extend(n,{widgetEventPrefix:a&&n.widgetEventPrefix||e},o,{constructor:r,namespace:l,widgetName:e,widgetFullName:f}),a?(i.each(a._childConstructors,function(g,d){var v=d.prototype;i.widget(v.namespace+"."+v.widgetName,r,d._proto)}),delete a._childConstructors):t._childConstructors.push(r),i.widget.bridge(e,r),r}
vendor: 41,892 bytes, lines 86-144
86,i.widget.extend=function(e){for(var t=te.call(arguments,1),s=0,a=t.length,r,n;s<a;s++)for(r in t[s])n=t[s][r],t[s].hasOwnProperty(r)&&n!==void 0&&(i.isPlainObject(n)?e[r]=i.isPlainObject(e[r])?i.widget.extend({},e[r],n):i.widget.extend({},n):e[r]=n);return e},i.widget.bridge=function(e,t){var s=t.prototype.widgetFullName||e;i.fn[e]=function(a){var r=typeof a=="string",n=te.call(arguments,1),o=this;return r?!this.length&&a==="instance"?o=void 0:this.each(function(){var l,f=i.data(this,s);if(a==="instance")return o=f,!1;if(!f)return i.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+a+"'");if(!i.isFunction(f[a])||a.charAt(0)==="_")return i.error("no such method '"+a+"' for "+e+" widget instance");if(l=f[a].apply(f,n),l!==f&&l!==void 0)return o=l&&l.jquery?o.pushStack(l.get()):l,!1}):(n.length&&(a=i.widget.extend.apply(null,[a].concat(n))),this.each(function(){var l=i.data(this,s);l?(l.option(a||{}),l._init&&l._init()):i.data(this,s,new t(a,this))})),o}},i.Widget=function(){},i.Widget._childConstructors=[],i.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,t){t=i(t||this.defaultElement||this)[0],this.element=i(t),this.uuid=oe++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=i(),this.hoverable=i(),this.focusable=i(),this.classesElementLookup={},t!==this&&(i.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(s){s.target===t&&this.destroy()}}),this.document=i(t.style?t.ownerDocument:t.document||t),this.window=i(this.document[0].defaultView||this.document[0].parentWindow)),this.options=i.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:i.noop,_create:i.noop,_init:i.noop,destroy:function(){var e=this;this._destroy(),i.each(this.classesElementLookup,function(t,s){e._removeClass(s,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:i.noop,widget:function(){return this.element},option:function(e,t){var s=e,a,r,n;if(arguments.length===0)return i.widget.extend({},this.options);if(typeof e=="string")if(s={},a=e.split("."),e=a.shift(),a.length){for(r=s[e]=i.widget.extend({},this.options[e]),n=0;n<a.length-1;n++)r[a[n]]=r[a[n]]||{},r=r[a[n]];if(e=a.pop(),arguments.length===1)return r[e]===void 0?null:r[e];r[e]=t}else{if(arguments.length===1)return this.options[e]===void 0?null:this.options[e];s[e]=t}return this._setOptions(s),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return e==="classes"&&this._setOptionClasses(t),this.options[e]=t,e==="disabled"&&this._setOptionDisabled(t),this},_setOptionClasses:function(e){var t,s,a;for(t in e)a=this.classesElementLookup[t],!(e[t]===this.options.classes[t]||!a||!a.length)&&(s=i(a.get()),this._removeClass(a,t),s.addClass(this._classes({element:s,keys:t,classes:e,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(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 t=[],s=this;e=i.extend({element:this.element,classes:this.options.classes||{}},e);function a(r,n){var o,l;for(l=0;l<r.length;l++)o=s.classesElementLookup[r[l]]||i(),e.add?o=i(i.unique(o.get().concat(e.element.get()))):o=i(o.not(e.element).get()),s.classesElementLookup[r[l]]=o,t.push(r[l]),n&&e.classes[r[l]]&&t.push(e.classes[r[l]])}return this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&a(e.keys.match(/\S+/g)||[],!0),e.extra&&a(e.extra.match(/\S+/g)||[]),t.join(" ")},_untrackClassesElement:function(e){var t=this;i.each(t.classesElementLookup,function(s,a){i.inArray(e.target,a)!==-1&&(t.classesElementLookup[s]=i(a.not(e.target).get()))})},_removeClass:function(e,t,s){return this._toggleClass(e,t,s,!1)},_addClass:function(e,t,s){return this._toggleClass(e,t,s,!0)},_toggleClass:function(e,t,s,a){a=typeof a=="boolean"?a:s;var r=typeof e=="string"||e===null,n={extra:r?t:s,keys:r?e:t,element:r?this.element:e,add:a};return n.element.toggleClass(this._classes(n),a),this},_on:function(e,t,s){var a,r=this;typeof e!="boolean"&&(s=t,t=e,e=!1),s?(t=a=i(t),this.bindings=this.bindings.add(t)):(s=t,t=this.element,a=this.widget()),i.each(s,function(n,o){function l(){if(!(!e&&(r.options.disabled===!0||i(this).hasClass("ui-state-disabled"))))return(typeof o=="string"?r[o]:o).apply(r,arguments)}typeof o!="string"&&(l.guid=o.guid=o.guid||l.guid||i.guid++);var f=n.match(/^([\w:-]*)\s*(.*)$/),g=f[1]+r.eventNamespace,d=f[2];d?a.on(g,d,l):t.on(g,l)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(t).off(t),this.bindings=i(this.bindings.not(e).get()),this.focusable=i(this.focusable.not(e).get()),this.hoverable=i(this.hoverable.not(e).get())},_delay:function(e,t){function s(){return(typeof e=="string"?a[e]:e).apply(a,arguments)}var a=this;return setTimeout(s,t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(t){this._addClass(i(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(i(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(t){this._addClass(i(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(i(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,t,s){var a,r,n=this.options[e];if(s=s||{},t=i.Event(t),t.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],r=t.originalEvent,r)for(a in r)a in t||(t[a]=r[a]);return this.element.trigger(t,s),!(i.isFunction(n)&&n.apply(this.element[0],[t].concat(s))===!1||t.isDefaultPrevented())}},i.each({show:"fadeIn",hide:"fadeOut"},function(e,t){i.Widget.prototype["_"+e]=function(s,a,r){typeof a=="string"&&(a={effect:a});var n,o=a?a===!0||typeof a=="number"?t:a.effect||t:e;a=a||{},typeof a=="number"&&(a={duration:a}),n=!i.isEmptyObject(a),a.complete=r,a.delay&&s.delay(a.delay),n&&i.effects&&i.effects.effect[o]?s[e](a):o!==e&&s[o]?s[o](a.duration,a.easing,r):s.queue(function(l){i(this)[e](),r&&r.call(s[0]),l()})}});var fe=i.widget;/*! 87 * jQuery UI Position 1.12.1 88 * http://jqueryui.com 89 * 90 * Copyright jQuery Foundation and other contributors 91 * Released under the MIT license. 92 * http://jquery.org/license 93 * 94 * http://api.jqueryui.com/position/ 95 */(function(){var e,t=Math.max,s=Math.abs,a=/left|center|right/,r=/top|center|bottom/,n=/[\+\-]\d+(\.[\d]+)?%?/,o=/^\w+/,l=/%$/,f=i.fn.position;function g(h,u,c){return[parseFloat(h[0])*(l.test(h[0])?u/100:1),parseFloat(h[1])*(l.test(h[1])?c/100:1)]}function d(h,u){return parseInt(i.css(h,u),10)||0}function v(h){var u=h[0];return u.nodeType===9?{width:h.width(),height:h.height(),offset:{top:0,left:0}}:i.isWindow(u)?{width:h.width(),height:h.height(),offset:{top:h.scrollTop(),left:h.scrollLeft()}}:u.preventDefault?{width:0,height:0,offset:{top:u.pageY,left:u.pageX}}:{width:h.outerWidth(),height:h.outerHeight(),offset:h.offset()}}i.position={scrollbarWidth:function(){if(e!==void 0)return e;var h,u,c=i("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),p=c.children()[0];return i("body").append(c),h=p.offsetWidth,c.css("overflow","scroll"),u=p.offsetWidth,h===u&&(u=c[0].clientWidth),c.remove(),e=h-u},getScrollInfo:function(h){var u=h.isWindow||h.isDocument?"":h.element.css("overflow-x"),c=h.isWindow||h.isDocument?"":h.element.css("overflow-y"),p=u==="scroll"||u==="auto"&&h.width<h.element[0].scrollWidth,_=c==="scroll"||c==="auto"&&h.height<h.element[0].scrollHeight;return{width:_?i.position.scrollbarWidth():0,height:p?i.position.scrollbarWidth():0}},getWithinInfo:function(h){var u=i(h||window),c=i.isWindow(u[0]),p=!!u[0]&&u[0].nodeType===9,_=!c&&!p;return{element:u,isWindow:c,isDocument:p,offset:_?i(h).offset():{left:0,top:0},scrollLeft:u.scrollLeft(),scrollTop:u.scrollTop(),width:u.outerWidth(),height:u.outerHeight()}}},i.fn.position=function(h){if(!h||!h.of)return f.apply(this,arguments);h=i.extend({},h);var u,c,p,_,y,m,D=i(h.of),w=i.position.getWithinInfo(h.within),x=i.position.getScrollInfo(w),b=(h.collision||"flip").split(" "),C={};return m=v(D),D[0].preventDefault&&(h.at="left top"),c=m.width,p=m.height,_=m.offset,y=i.extend({},_),i.each(["my","at"],function(){var k=(h[this]||"").split(" "),P,M;k.length===1&&(k=a.test(k[0])?k.concat(["center"]):r.test(k[0])?["center"].concat(k):["center","center"]),k[0]=a.test(k[0])?k[0]:"center",k[1]=r.test(k[1])?k[1]:"center",P=n.exec(k[0]),M=n.exec(k[1]),C[this]=[P?P[0]:0,M?M[0]:0],h[this]=[o.exec(k[0])[0],o.exec(k[1])[0]]}),b.length===1&&(b[1]=b[0]),h.at[0]==="right"?y.left+=c:h.at[0]==="center"&&(y.left+=c/2),h.at[1]==="bottom"?y.top+=p:h.at[1]==="center"&&(y.top+=p/2),u=g(C.at,c,p),y.left+=u[0],y.top+=u[1],this.each(function(){var k,P,M=i(this),T=M.outerWidth(),S=M.outerHeight(),O=d(this,"marginLeft"),F=d(this,"marginTop"),V=T+O+d(this,"marginRight")+x.width,X=S+F+d(this,"marginBottom")+x.height,A=i.extend({},y),I=g(C.my,M.outerWidth(),M.outerHeight());h.my[0]==="right"?A.left-=T:h.my[0]==="center"&&(A.left-=T/2),h.my[1]==="bottom"?A.top-=S:h.my[1]==="center"&&(A.top-=S/2),A.left+=I[0],A.top+=I[1],k={marginLeft:O,marginTop:F},i.each(["left","top"],function(z,W){i.ui.position[b[z]]&&i.ui.position[b[z]][W](A,{targetWidth:c,targetHeight:p,elemWidth:T,elemHeight:S,collisionPosition:k,collisionWidth:V,collisionHeight:X,offset:[u[0]+I[0],u[1]+I[1]],my:h.my,at:h.at,within:w,elem:M})}),h.using&&(P=function(z){var W=_.left-A.left,R=W+c-T,Y=_.top-A.top,U=Y+p-S,K={target:{element:D,left:_.left,top:_.top,width:c,height:p},element:{element:M,left:A.left,top:A.top,width:T,height:S},horizontal:R<0?"left":W>0?"right":"center",vertical:U<0?"top":Y>0?"bottom":"middle"};c<T&&s(W+R)<c&&(K.horizontal="center"),p<S&&s(Y+U)<p&&(K.vertical="middle"),t(s(W),s(R))>t(s(Y),s(U))?K.important="horizontal":K.important="vertical",h.using.call(this,z,K)}),M.offset(i.extend(A,{using:P}))})},i.ui.position={fit:{left:function(h,u){var c=u.within,p=c.isWindow?c.scrollLeft:c.offset.left,_=c.width,y=h.left-u.collisionPosition.marginLeft,m=p-y,D=y+u.collisionWidth-_-p,w;u.collisionWidth>_?m>0&&D<=0?(w=h.left+m+u.collisionWidth-_-p,h.left+=m-w):D>0&&m<=0?h.left=p:m>D?h.left=p+_-u.collisionWidth:h.left=p:m>0?h.left+=m:D>0?h.left-=D:h.left=t(h.left-y,h.left)},top:function(h,u){var c=u.within,p=c.isWindow?c.scrollTop:c.offset.top,_=u.within.height,y=h.top-u.collisionPosition.marginTop,m=p-y,D=y+u.collisionHeight-_-p,w;u.collisionHeight>_?m>0&&D<=0?(w=h.top+m+u.collisionHeight-_-p,h.top+=m-w):D>0&&m<=0?h.top=p:m>D?h.top=p+_-u.collisionHeight:h.top=p:m>0?h.top+=m:D>0?h.top-=D:h.top=t(h.top-y,h.top)}},flip:{left:function(h,u){var c=u.within,p=c.offset.left+c.scrollLeft,_=c.width,y=c.isWindow?c.scrollLeft:c.offset.left,m=h.left-u.collisionPosition.marginLeft,D=m-y,w=m+u.collisionWidth-_-y,x=u.my[0]==="left"?-u.elemWidth:u.my[0]==="right"?u.elemWidth:0,b=u.at[0]==="left"?u.targetWidth:u.at[0]==="right"?-u.targetWidth:0,C=-2*u.offset[0],k,P;D<0?(k=h.left+x+b+C+u.collisionWidth-_-p,(k<0||k<s(D))&&(h.left+=x+b+C)):w>0&&(P=h.left-u.collisionPosition.marginLeft+x+b+C-y,(P>0||s(P)<w)&&(h.left+=x+b+C))},top:function(h,u){var c=u.within,p=c.offset.top+c.scrollTop,_=c.height,y=c.isWindow?c.scrollTop:c.offset.top,m=h.top-u.collisionPosition.marginTop,D=m-y,w=m+u.collisionHeight-_-y,x=u.my[1]==="top",b=x?-u.elemHeight:u.my[1]==="bottom"?u.elemHeight:0,C=u.at[1]==="top"?u.targetHeight:u.at[1]==="bottom"?-u.targetHeight:0,k=-2*u.offset[1],P,M;D<0?(M=h.top+b+C+k+u.collisionHeight-_-p,(M<0||M<s(D))&&(h.top+=b+C+k)):w>0&&(P=h.top-u.collisionPosition.marginTop+b+C+k-y,(P>0||s(P)<w)&&(h.top+=b+C+k))}},flipfit:{left:function(){i.ui.position.flip.left.apply(this,arguments),i.ui.position.fit.left.apply(this,arguments)},top:function(){i.ui.position.flip.top.apply(this,arguments),i.ui.position.fit.top.apply(this,arguments)}}}})();var de=i.ui.position;/*! 96 * jQuery UI :data 1.12.1 97 * http://jqueryui.com 98 * 99 * Copyright jQuery Foundation and other contributors 100 * Released under the MIT license. 101 * http://jquery.org/license 102 */var pe=i.extend(i.expr[":"],{data:i.expr.createPseudo?i.expr.createPseudo(function(e){return function(t){return!!i.data(t,e)}}):function(e,t,s){return!!i.data(e,s[3])}});/*! 103 * jQuery UI Keycode 1.12.1 104 * http://jqueryui.com 105 * 106 * Copyright jQuery Foundation and other contributors 107 * Released under the MIT license. 108 * http://jquery.org/license 109 */var ge=i.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};/*! 110 * jQuery UI Scroll Parent 1.12.1 111 * http://jqueryui.com 112 * 113 * Copyright jQuery Foundation and other contributors 114 * Released under the MIT license. 115 * http://jquery.org/license 116 */var me=i.fn.scrollParent=function(e){var t=this.css("position"),s=t==="absolute",a=e?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var n=i(this);return s&&n.css("position")==="static"?!1:a.test(n.css("overflow")+n.css("overflow-y")+n.css("overflow-x"))}).eq(0);return t==="fixed"||!r.length?i(this[0].ownerDocument||document):r};/*! 117 * jQuery UI Unique ID 1.12.1 118 * http://jqueryui.com 119 * 120 * Copyright jQuery Foundation and other contributors 121 * Released under the MIT license. 122 * http://jquery.org/license 123 */var _e=i.fn.extend({uniqueId:(function(){var e=0;return 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")})}}),ve=i.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());/*! 124 * jQuery UI Mouse 1.12.1 125 * http://jqueryui.com 126 * 127 * Copyright jQuery Foundation and other contributors 128 * Released under the MIT license. 129 * http://jquery.org/license 130 */var G=!1;i(document).on("mouseup",function(){G=!1});var ye=i.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(t){if(i.data(t.target,e.widgetName+".preventClickEvent")===!0)return i.removeData(t.target,e.widgetName+".preventClickEvent"),t.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(e){if(!G){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,s=e.which===1,a=typeof this.options.cancel=="string"&&e.target.nodeName?i(e.target).closest(this.options.cancel).length:!1;return!s||a||!this._mouseCapture(e)?!0:(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(e)!==!1,!this._mouseStarted)?(e.preventDefault(),!0):(i.data(e.target,this.widgetName+".preventClickEvent")===!0&&i.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(r){return t._mouseMove(r)},this._mouseUpDelegate=function(r){return t._mouseUp(r)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),G=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(i.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which){if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,e)!==!1,this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&i.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,G=!1,e.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}}),ke=i.ui.plugin={add:function(e,t,s){var a,r=i.ui[e].prototype;for(a in s)r.plugins[a]=r.plugins[a]||[],r.plugins[a].push([t,s[a]])},call:function(e,t,s,a){var r,n=e.plugins[t];if(n&&!(!a&&(!e.element[0].parentNode||e.element[0].parentNode.nodeType===11)))for(r=0;r<n.length;r++)e.options[n[r][0]]&&n[r][1].apply(e.element,s)}},De=i.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch{t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},we=i.ui.safeBlur=function(e){e&&e.nodeName.toLowerCase()!=="body"&&i(e).trigger("blur")};/*! 131 * jQuery UI Draggable 1.12.1 132 * http://jqueryui.com 133 * 134 * Copyright jQuery Foundation and other contributors 135 * Released under the MIT license. 136 * http://jquery.org/license 137 */i.widget("ui.draggable",i.ui.mouse,{version:"1.12.1",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(){this.options.helper==="original"&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),e==="handle"&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName(),this._mouseDestroy()},_mouseCapture:function(e){var t=this.options;return this.helper||t.disabled||i(e.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(e),!this.handle)?!1:(this._blurActiveElement(e),this._blockFrames(t.iframeFix===!0?"iframe":t.iframeFix),!0)},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var t=i(this);return i("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var t=i.ui.safeActiveElement(this.document[0]),s=i(e.target);s.closest(t).length||i.ui.safeBlur(t)},_mouseStart:function(e){var t=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),i.ui.ddmanager&&(i.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 i(this).css("position")==="fixed"}).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,t.cursorAt&&this._adjustOffsetFromHelper(t.cursorAt),this._setContainment(),this._trigger("start",e)===!1?(this._clear(),!1):(this._cacheHelperProportions(),i.ui.ddmanager&&!t.dropBehaviour&&i.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),i.ui.ddmanager&&i.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(e){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:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(e,t){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!t){var s=this._uiHash();if(this._trigger("drag",e,s)===!1)return this._mouseUp(new i.Event("mouseup",e)),!1;this.position=s.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",i.ui.ddmanager&&i.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var t=this,s=!1;return i.ui.ddmanager&&!this.options.dropBehaviour&&(s=i.ui.ddmanager.drop(this,e)),this.dropped&&(s=this.dropped,this.dropped=!1),this.options.revert==="invalid"&&!s||this.options.revert==="valid"&&s||this.options.revert===!0||i.isFunction(this.options.revert)&&this.options.revert.call(this.element,s)?i(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){t._trigger("stop",e)!==!1&&t._clear()}):this._trigger("stop",e)!==!1&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),i.ui.ddmanager&&i.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),i.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new i.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return this.options.handle?!!i(e.target).closest(this.element.find(this.options.handle)).length:!0},_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 t=this.options,s=i.isFunction(t.helper),a=s?i(t.helper.apply(this.element[0],[e])):t.helper==="clone"?this.element.clone().removeAttr("id"):this.element;return a.parents("body").length||a.appendTo(t.appendTo==="parent"?this.element[0].parentNode:t.appendTo),s&&a[0]===this.element[0]&&this._setPositionRelative(),a[0]!==this.element[0]&&!/(fixed|absolute)/.test(a.css("position"))&&a.css("position","absolute"),a},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){typeof e=="string"&&(e=e.split(" ")),i.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),t=this.document[0];return this.cssPosition==="absolute"&&this.scrollParent[0]!==t&&i.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(this.cssPosition!=="relative")return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?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,t,s,a=this.options,r=this.document[0];if(this.relativeContainer=null,!a.containment){this.containment=null;return}if(a.containment==="window"){this.containment=[i(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,i(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,i(window).scrollLeft()+i(window).width()-this.helperProportions.width-this.margins.left,i(window).scrollTop()+(i(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(a.containment==="document"){this.containment=[0,0,i(r).width()-this.helperProportions.width-this.margins.left,(i(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(a.containment.constructor===Array){this.containment=a.containment;return}a.containment==="parent"&&(a.containment=this.helper[0].parentNode),t=i(a.containment),s=t[0],s&&(e=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(e?Math.max(s.scrollWidth,s.offsetWidth):s.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(s.scrollHeight,s.offsetHeight):s.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t)},_convertPositionTo:function(e,t){t||(t=this.position);var s=e==="absolute"?1:-1,a=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*s+this.offset.parent.top*s-(this.cssPosition==="fixed"?-this.offset.scroll.top:a?0:this.offset.scroll.top)*s,left:t.left+this.offset.relative.left*s+this.offset.parent.left*s-(this.cssPosition==="fixed"?-this.offset.scroll.left:a?0:this.offset.scroll.left)*s}},_generatePosition:function(e,t){var s,a,r,n,o=this.options,l=this._isRootNode(this.scrollParent[0]),f=e.pageX,g=e.pageY;return(!l||!this.offset.scroll)&&(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(a=this.relativeContainer.offset(),s=[this.containment[0]+a.left,this.containment[1]+a.top,this.containment[2]+a.left,this.containment[3]+a.top]):s=this.containment,e.pageX-this.offset.click.left<s[0]&&(f=s[0]+this.offset.click.left),e.pageY-this.offset.click.top<s[1]&&(g=s[1]+this.offset.click.top),e.pageX-this.offset.click.left>s[2]&&(f=s[2]+this.offset.click.left),e.pageY-this.offset.click.top>s[3]&&(g=s[3]+this.offset.click.top)),o.grid&&(r=o.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,g=s?r-this.offset.click.top>=s[1]||r-this.offset.click.top>s[3]?r:r-this.offset.click.top>=s[1]?r-o.grid[1]:r+o.grid[1]:r,n=o.grid[0]?this.originalPageX+Math.round((f-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,f=s?n-this.offset.click.left>=s[0]||n-this.offset.click.left>s[2]?n:n-this.offset.click.left>=s[0]?n-o.grid[0]:n+o.grid[0]:n),o.axis==="y"&&(f=this.originalPageX),o.axis==="x"&&(g=this.originalPageY)),{top:g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(this.cssPosition==="fixed"?-this.offset.scroll.top:l?0:this.offset.scroll.top),left:f-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(this.cssPosition==="fixed"?-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,t,s){return s=s||this._uiHash(),i.ui.plugin.call(this,e,[t,s,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),s.offset=this.positionAbs),i.Widget.prototype._trigger.call(this,e,t,s)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),i.ui.plugin.add("draggable","connectToSortable",{start:function(e,t,s){var a=i.extend({},t,{item:s.element});s.sortables=[],i(s.options.connectToSortable).each(function(){var r=i(this).sortable("instance");r&&!r.options.disabled&&(s.sortables.push(r),r.refreshPositions(),r._trigger("activate",e,a))})},stop:function(e,t,s){var a=i.extend({},t,{item:s.element});s.cancelHelperRemoval=!1,i.each(s.sortables,function(){var r=this;r.isOver?(r.isOver=0,s.cancelHelperRemoval=!0,r.cancelHelperRemoval=!1,r._storedCSS={position:r.placeholder.css("position"),top:r.placeholder.css("top"),left:r.placeholder.css("left")},r._mouseStop(e),r.options.helper=r.options._helper):(r.cancelHelperRemoval=!0,r._trigger("deactivate",e,a))})},drag:function(e,t,s){i.each(s.sortables,function(){var a=!1,r=this;r.positionAbs=s.positionAbs,r.helperProportions=s.helperProportions,r.offset.click=s.offset.click,r._intersectsWith(r.containerCache)&&(a=!0,i.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&i.contains(r.element[0],this.element[0])&&(a=!1),a})),a?(r.isOver||(r.isOver=1,s._parent=t.helper.parent(),r.currentItem=t.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return t.helper[0]},e.target=r.currentItem[0],r._mouseCapture(e,!0),r._mouseStart(e,!0,!0),r.offset.click.top=s.offset.click.top,r.offset.click.left=s.offset.click.left,r.offset.parent.left-=s.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=s.offset.parent.top-r.offset.parent.top,s._trigger("toSortable",e),s.dropped=r.element,i.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,r.fromOutside=s),r.currentItem&&(r._mouseDrag(e),t.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",e,r._uiHash(r)),r._mouseStop(e,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),t.helper.appendTo(s._parent),s._refreshOffsets(e),t.position=s._generatePosition(e,!0),s._trigger("fromSortable",e),s.dropped=!1,i.each(s.sortables,function(){this.refreshPositions()}))})}}),i.ui.plugin.add("draggable","cursor",{start:function(e,t,s){var a=i("body"),r=s.options;a.css("cursor")&&(r._cursor=a.css("cursor")),a.css("cursor",r.cursor)},stop:function(e,t,s){var a=s.options;a._cursor&&i("body").css("cursor",a._cursor)}}),i.ui.plugin.add("draggable","opacity",{start:function(e,t,s){var a=i(t.helper),r=s.options;a.css("opacity")&&(r._opacity=a.css("opacity")),a.css("opacity",r.opacity)},stop:function(e,t,s){var a=s.options;a._opacity&&i(t.helper).css("opacity",a._opacity)}}),i.ui.plugin.add("draggable","scroll",{start:function(e,t,s){s.scrollParentNotHidden||(s.scrollParentNotHidden=s.helper.scrollParent(!1)),s.scrollParentNotHidden[0]!==s.document[0]&&s.scrollParentNotHidden[0].tagName!=="HTML"&&(s.overflowOffset=s.scrollParentNotHidden.offset())},drag:function(e,t,s){var a=s.options,r=!1,n=s.scrollParentNotHidden[0],o=s.document[0];n!==o&&n.tagName!=="HTML"?((!a.axis||a.axis!=="x")&&(s.overflowOffset.top+n.offsetHeight-e.pageY<a.scrollSensitivity?n.scrollTop=r=n.scrollTop+a.scrollSpeed:e.pageY-s.overflowOffset.top<a.scrollSensitivity&&(n.scrollTop=r=n.scrollTop-a.scrollSpeed)),(!a.axis||a.axis!=="y")&&(s.overflowOffset.left+n.offsetWidth-e.pageX<a.scrollSensitivity?n.scrollLeft=r=n.scrollLeft+a.scrollSpeed:e.pageX-s.overflowOffset.left<a.scrollSensitivity&&(n.scrollLeft=r=n.scrollLeft-a.scrollSpeed))):((!a.axis||a.axis!=="x")&&(e.pageY-i(o).scrollTop()<a.scrollSensitivity?r=i(o).scrollTop(i(o).scrollTop()-a.scrollSpeed):i(window).height()-(e.pageY-i(o).scrollTop())<a.scrollSensitivity&&(r=i(o).scrollTop(i(o).scrollTop()+a.scrollSpeed))),(!a.axis||a.axis!=="y")&&(e.pageX-i(o).scrollLeft()<a.scrollSensitivity?r=i(o).scrollLeft(i(o).scrollLeft()-a.scrollSpeed):i(window).width()-(e.pageX-i(o).scrollLeft())<a.scrollSensitivity&&(r=i(o).scrollLeft(i(o).scrollLeft()+a.scrollSpeed)))),r!==!1&&i.ui.ddmanager&&!a.dropBehaviour&&i.ui.ddmanager.prepareOffsets(s,e)}}),i.ui.plugin.add("draggable","snap",{start:function(e,t,s){var a=s.options;s.snapElements=[],i(a.snap.constructor!==String?a.snap.items||":data(ui-draggable)":a.snap).each(function(){var r=i(this),n=r.offset();this!==s.element[0]&&s.snapElements.push({item:this,width:r.outerWidth(),height:r.outerHeight(),top:n.top,left:n.left})})},drag:function(e,t,s){var a,r,n,o,l,f,g,d,v,h,u=s.options,c=u.snapTolerance,p=t.offset.left,_=p+s.helperProportions.width,y=t.offset.top,m=y+s.helperProportions.height;for(v=s.snapElements.length-1;v>=0;v--){if(l=s.snapElements[v].left-s.margins.left,f=l+s.snapElements[v].width,g=s.snapElements[v].top-s.margins.top,d=g+s.snapElements[v].height,_<l-c||p>f+c||m<g-c||y>d+c||!i.contains(s.snapElements[v].item.ownerDocument,s.snapElements[v].item)){s.snapElements[v].snapping&&s.options.snap.release&&s.options.snap.release.call(s.element,e,i.extend(s._uiHash(),{snapItem:s.snapElements[v].item})),s.snapElements[v].snapping=!1;continue}u.snapMode!=="inner"&&(a=Math.abs(g-m)<=c,r=Math.abs(d-y)<=c,n=Math.abs(l-_)<=c,o=Math.abs(f-p)<=c,a&&(t.position.top=s._convertPositionTo("relative",{top:g-s.helperProportions.height,left:0}).top),r&&(t.position.top=s._convertPositionTo("relative",{top:d,left:0}).top),n&&(t.position.left=s._convertPositionTo("relative",{top:0,left:l-s.helperProportions.width}).left),o&&(t.position.left=s._convertPositionTo("relative",{top:0,left:f}).left)),h=a||r||n||o,u.snapMode!=="outer"&&(a=Math.abs(g-y)<=c,r=Math.abs(d-m)<=c,n=Math.abs(l-p)<=c,o=Math.abs(f-_)<=c,a&&(t.position.top=s._convertPositionTo("relative",{top:g,left:0}).top),r&&(t.position.top=s._convertPositionTo("relative",{top:d-s.helperProportions.height,left:0}).top),n&&(t.position.left=s._convertPositionTo("relative",{top:0,left:l}).left),o&&(t.position.left=s._convertPositionTo("relative",{top:0,left:f-s.helperProportions.width}).left)),!s.snapElements[v].snapping&&(a||r||n||o||h)&&s.options.snap.snap&&s.options.snap.snap.call(s.element,e,i.extend(s._uiHash(),{snapItem:s.snapElements[v].item})),s.snapElements[v].snapping=a||r||n||o||h}}}),i.ui.plugin.add("draggable","stack",{start:function(e,t,s){var a,r=s.options,n=i.makeArray(i(r.stack)).sort(function(o,l){return(parseInt(i(o).css("zIndex"),10)||0)-(parseInt(i(l).css("zIndex"),10)||0)});n.length&&(a=parseInt(i(n[0]).css("zIndex"),10)||0,i(n).each(function(o){i(this).css("zIndex",a+o)}),this.css("zIndex",a+n.length))}}),i.ui.plugin.add("draggable","zIndex",{start:function(e,t,s){var a=i(t.helper),r=s.options;a.css("zIndex")&&(r._zIndex=a.css("zIndex")),a.css("zIndex",r.zIndex)},stop:function(e,t,s){var a=s.options;a._zIndex&&i(t.helper).css("zIndex",a._zIndex)}});var be=i.ui.draggable;/*! 138 * jQuery UI Menu 1.12.1 139 * http://jqueryui.com 140 * 141 * Copyright jQuery Foundation and other contributors 142 * Released under the MIT license. 143 * http://jquery.org/license 144 */var Me=i.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var t=i(e.target),s=i(i.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&s.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&this.active.parents(".ui-menu").length===1&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var t=i(e.target).closest(".ui-menu-item"),s=i(e.currentTarget);t[0]===s[0]&&(this._removeClass(s.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,s))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var s=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,s)},blur:function(e){this._delay(function(){var t=!i.contains(this.element[0],i.ui.safeActiveElement(this.document[0]));t&&this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled"),t=e.children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var s=i(this);s.data("ui-menu-submenu-caret")&&s.remove()})},_keydown:function(e){var t,s,a,r,n=!0;switch(e.keyCode){case i.ui.keyCode.PAGE_UP:this.previousPage(e);break;case i.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case i.ui.keyCode.HOME:this._move("first","first",e);break;case i.ui.keyCode.END:this._move("last","last",e);break;case i.ui.keyCode.UP:this.previous(e);break;case i.ui.keyCode.DOWN:this.next(e);break;case i.ui.keyCode.LEFT:this.collapse(e);break;case i.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case i.ui.keyCode.ENTER:case i.ui.keyCode.SPACE:this._activate(e);break;case i.ui.keyCode.ESCAPE:this.collapse(e);break;default:n=!1,s=this.previousFilter||"",r=!1,a=e.keyCode>=96&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),a===s?r=!0:a=s+a,t=this._filterMenuItems(a),t=r&&t.index(this.active.next())!==-1?this.active.nextAll(".ui-menu-item"):t,t.length||(a=String.fromCharCode(e.keyCode),t=this._filterMenuItems(a)),t.length?(this.focus(e,t),this.previousFilter=a,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var e,t,s,a,r,n=this,o=this.options.icons.submenu,l=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),s=l.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var f=i(this),g=f.prev(),d=i("<span>").data("ui-menu-submenu-caret",!0);n._addClass(d,"ui-menu-icon","ui-icon "+o),g.attr("aria-haspopup","true").prepend(d),f.attr("aria-labelledby",g.attr("id"))}),this._addClass(s,"ui-menu","ui-widget ui-widget-content ui-front"),e=l.add(this.element),t=e.find(this.options.items),t.not(".ui-menu-item").each(function(){var f=i(this);n._isDivider(f)&&n._addClass(f,"ui-menu-divider","ui-widget-content")}),a=t.not(".ui-menu-item, .ui-menu-divider"),r=a.children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(a,"ui-menu-item")._addClass(r,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!i.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if(e==="icons"){var s=this.element.find(".ui-menu-icon");this._removeClass(s,null,this.options.icons.submenu)._addClass(s,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var s,a,r;this.blur(e,e&&e.type==="focus"),this._scrollIntoView(t),this.active=t.first(),a=this.active.children(".ui-menu-item-wrapper"),this._addClass(a,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",a.attr("id")),r=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(r,null,"ui-state-active"),e&&e.type==="
144keydown"?this._close():this.timer=this._delay(function(){this._close()},this.delay),s=t.children(".ui-menu"),s.length&&e&&/^mouse/.test(e.type)&&this._startOpening(s),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,s,a,r,n,o;this._hasScroll()&&(t=parseFloat(i.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(i.css(this.activeMenu[0],"paddingTop"))||0,a=e.offset().top-this.activeMenu.offset().top-t-s,r=this.activeMenu.scrollTop(),n=this.activeMenu.height(),o=e.outerHeight(),a<0?this.activeMenu.scrollTop(r+a):a+o>n&&this.activeMenu.scrollTop(r+a-n+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),e.attr("aria-hidden")==="true"&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=i.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(e,t){clearTimeout(this.timer),this.timer=this._delay(function(){var s=t?this.element:i(e&&e.target).closest(this.element.find(".ui-menu"));s.length||(s=this.element),this._close(s),this.blur(e),this._removeClass(s.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=s},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!i(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,s){var a;this.active&&(e==="first"||e==="last"?a=this.active[e==="first"?"prevAll":"nextAll"](".ui-menu-item").eq(-1):a=this.active[e+"All"](".ui-menu-item").eq(0)),(!a||!a.length||!this.active)&&(a=this.activeMenu.find(this.options.items)[t]()),this.focus(s,a)},nextPage:function(e){var t,s,a;if(!this.active){this.next(e);return}this.isLastItem()||(this._hasScroll()?(s=this.active.offset().top,a=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return t=i(this),t.offset().top-s-a<0}),this.focus(e,t)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))},previousPage:function(e){var t,s,a;if(!this.active){this.next(e);return}this.isFirstItem()||(this._hasScroll()?(s=this.active.offset().top,a=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return t=i(this),t.offset().top-s+a>0}),this.focus(e,t)):this.focus(e,this.activeMenu.find(this.options.items).first()))},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||i(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var t=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),s=new RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return s.test(i.trim(i(this).children(".ui-menu-item-wrapper").text()))})}});/*! 145 * jQuery UI Autocomplete 1.12.1 146 * http://jqueryui.com 147 * 148 * Copyright jQuery Foundation and other contributors 149 * Released under the MIT license. 150 * http://jquery.org/license 151 */i.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,t,s,a=this.element[0].nodeName.toLowerCase(),r=a==="textarea",
vendor: 9,230 bytes, lines 151-158
151n=a==="input";this.isMultiLine=r||!n&&this._isContentEditable(this.element),this.valueMethod=this.element[r||n?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly")){e=!0,s=!0,t=!0;return}e=!1,s=!1,t=!1;var l=i.ui.keyCode;switch(o.keyCode){case l.PAGE_UP:e=!0,this._move("previousPage",o);break;case l.PAGE_DOWN:e=!0,this._move("nextPage",o);break;case l.UP:e=!0,this._keyEvent("previous",o);break;case l.DOWN:e=!0,this._keyEvent("next",o);break;case l.ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o));break;case l.TAB:this.menu.active&&this.menu.select(o);break;case l.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:t=!0,this._searchTimeout(o);break}},keypress:function(o){if(e){e=!1,(!this.isMultiLine||this.menu.element.is(":visible"))&&o.preventDefault();return}if(!t){var l=i.ui.keyCode;switch(o.keyCode){case l.PAGE_UP:this._move("previousPage",o);break;case l.PAGE_DOWN:this._move("nextPage",o);break;case l.UP:this._keyEvent("previous",o);break;case l.DOWN:this._keyEvent("next",o);break}}},input:function(o){if(s){s=!1,o.preventDefault();return}this._searchTimeout(o)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(o){if(this.cancelBlur){delete this.cancelBlur;return}clearTimeout(this.searching),this.close(o),this._change(o)}}),this._initSource(),this.menu=i("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(o){o.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==i.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(o,l){var f,g;if(this.isNewMenu&&(this.isNewMenu=!1,o.originalEvent&&/^mouse/.test(o.originalEvent.type))){this.menu.blur(),this.document.one("mousemove",function(){i(o.target).trigger(o.originalEvent)});return}g=l.item.data("ui-autocomplete-item"),this._trigger("focus",o,{item:g})!==!1&&o.originalEvent&&/^key/.test(o.originalEvent.type)&&this._value(g.value),f=l.item.attr("aria-label")||g.value,f&&i.trim(f).length&&(this.liveRegion.children().hide(),i("<div>").text(f).appendTo(this.liveRegion))},menuselect:function(o,l){var f=l.item.data("ui-autocomplete-item"),g=this.previous;this.element[0]!==i.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=g,this._delay(function(){this.previous=g,this.selectedItem=f})),this._trigger("select",o,{item:f})!==!1&&this._value(f.value),this.term=this._value(),this.close(o),this.selectedItem=f}}),this.liveRegion=i("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),e==="source"&&this._initSource(),e==="appendTo"&&this.menu.element.appendTo(this._appendTo()),e==="disabled"&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var t=this.menu.element[0];return e.target===this.element[0]||e.target===t||i.contains(t,e.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?i(e):this.document.find(e).eq(0)),(!e||!e[0])&&(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,t,s=this;i.isArray(this.options.source)?(e=this.options.source,this.source=function(a,r){r(i.ui.autocomplete.filter(e,a.term))}):typeof this.options.source=="string"?(t=this.options.source,this.source=function(a,r){s.xhr&&s.xhr.abort(),s.xhr=i.ajax({url:t,data:a,dataType:"json",success:function(n){r(n)},error:function(){r([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),s=this.menu.element.is(":visible"),a=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;(!t||t&&!s&&!a)&&(this.selectedItem=null,this.search(null,e))},this.options.delay)},search:function(e,t){if(e=e??this._value(),this.term=this._value(),e.length<this.options.minLength)return this.close(t);if(this._trigger("search",t)!==!1)return this._search(e)},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return i.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:i.map(e,function(t){return typeof t=="string"?{label:t,value:t}:i.extend({},t,{label:t.label||t.value,value:t.value||t.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(i.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,t){var s=this;i.each(t,function(a,r){s._renderItemData(e,r)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return i("<li>").append(i("<div>").text(t.label)).appendTo(e)},_move:function(e,t){if(!this.menu.element.is(":visible")){this.search(null,t);return}if(this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)){this.isMultiLine||this._value(this.term),this.menu.blur();return}this.menu[e](t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return t==="inherit"?this._isContentEditable(e.parent()):t==="true"}}),i.extend(i.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var s=new RegExp(i.ui.autocomplete.escapeRegex(t),"i");return i.grep(e,function(a){return s.test(a.label||a.value||a)})}}),i.widget("ui.autocomplete",i.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),!(this.options.disabled||this.cancelSearch)&&(e&&e.length?t=this.options.messages.results(e.length):t=this.options.messages.noResults,this.liveRegion.children().hide(),i("<div>").text(t).appendTo(this.liveRegion))}});var xe=i.ui.autocomplete;/*! 152 * jQuery UI Datepicker 1.12.1 153 * http://jqueryui.com 154 * 155 * Copyright jQuery Foundation and other contributors 156 * Released under the MIT license. 157 * http://jquery.org/license 158 */i.extend(i.ui,{datepicker:{version:"1.12.1"}});var j;function le(e){for(var t,s;e.length&&e[0]!==document;){if(t=e.css("position"),(t==="absolute"||t==="relative"||t==="fixed")&&(s=parseInt(e.css("zIndex"),10),!isNaN(s)&&s!==0))return s;e=e.parent()}return 0}function ie(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",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"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
158ay","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},i.extend(this._defaults,this.regional[""]),this.regional.en=i.extend(!0,{},this.regional[""]),this.regional["en-US"]=i.extend(!0,{},this.regional.en),this.dpDiv=se(i("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}i.extend(ie.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return J(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var s,a,r;s=e.nodeName.toLowerCase(),a=s==="div"||s==="span",e.id||(this.uuid+=1,e.id="dp"+this.uuid),r=this._newInst(i(e),a),r.settings=i.extend({},t||{}),s==="input"?this._connectDatepicker(e,r):a&&this._inlineDatepicker(e,r)},_newInst:function(e,t){var s=e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1");return{id:s,input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?se(i("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var s=i(e);t.append=i([]),t.trigger=i([]),!s.hasClass(this.markerClassName)&&(this._attachments(s,t),s.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(t),i.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var s,a,r,n=this._get(t,"appendText"),o=this._get(t,"isRTL");t.append&&t.append.remove(),n&&(t.append=i("<span class='"+this._appendClass+"'>"+n+"</span>"),e[o?"before":"after"](t.append)),e.off("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),s=this._get(t,"showOn"),(s==="focus"||s==="both")&&e.on("focus",this._showDatepicker),(s==="button"||s==="both")&&(a=this._get(t,"buttonText"),r=this._get(t,"buttonImage"),t.trigger=i(this._get(t,"buttonImageOnly")?i("<img/>").addClass(this._triggerClass).attr({src:r,alt:a,title:a}):i("<button type='button'></button>").addClass(this._triggerClass).html(r?i("<img/>").attr({src:r,alt:a,title:a}):a)),e[o?"before":"after"](t.trigger),t.trigger.on("click",function(){return i.datepicker._datepickerShowing&&i.datepicker._lastInput===e[0]?i.datepicker._hideDatepicker():(i.datepicker._datepickerShowing&&i.datepicker._lastInput!==e[0]&&i.datepicker._hideDatepicker(),i.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,s,a,r,n=new Date(2009,11,20),o=this._get(e,"dateFormat");o.match(/[DM]/)&&(t=function(l){for(s=0,a=0,r=0;r<l.length;r++)l[r].length>s&&(s=l[r].length,a=r);return a},n.setMonth(t(this._get(e,o.match(/MM/)?"monthNames":"monthNamesShort"))),n.setDate(t(this._get(e,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-n.getDay())),e.input.attr("size",this._formatDate(e,n).length)}},_inlineDatepicker:function(e,t){var s=i(e);s.hasClass(this.markerClassName)||(s.addClass(this.markerClassName).append(t.dpDiv),i.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,s,a,r){var n,o,l,f,g,d=this._dialogInst;return d||(this.uuid+=1,n="dp"+this.uuid,this._dialogInput=i("<input type='text' id='"+n+"' style='position: absolute; top: -100px; width: 0px;'/>
158"),this._dialogInput.on("keydown",this._doKeyDown),i("body").append(this._dialogInput),d=this._dialogInst=this._newInst(this._dialogInput,!1),d.settings={},i.data(this._dialogInput[0],"datepicker",d)),J(d.settings,a||{}),t=t&&t.constructor===Date?this._formatDate(d,t):t,this._dialogInput.val(t),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(o=document.documentElement.clientWidth,l=document.documentElement.clientHeight,f=document.documentElement.scrollLeft||document.body.scrollLeft,g=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+f,l/2-150+g]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=s,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),i.blockUI&&i.blockUI(this.dpDiv),i.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(e){var t,s=i(e),a=i.data(e,"datepicker");s.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),i.removeData(e,"datepicker"),t==="input"?(a.append.remove(),a.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):(t==="div"||t==="span")&&s.removeClass(this.markerClassName).empty(),j===a&&(j=null))},_enableDatepicker:function(e){var t,s,a=i(e),r=i.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),t==="input"?(e.disabled=!1,r.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):(t==="div"||t==="span")&&(s=a.children("."+this._inlineClass),s.children().removeClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=i.map(this._disabledInputs,function(n){return n===e?null:n}))},_disableDatepicker:function(e){var t,s,a=i(e),r=i.data(e,"datepicker");a.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),t==="input"?(e.disabled=!0,r.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):(t==="div"||t==="span")&&(s=a.children("."+this._inlineClass),s.children().addClass("ui-state-disabled"),s.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=i.map(this._disabledInputs,function(n){return n===e?null:n}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return i.data(e,"datepicker")}catch{throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,s){var a,r,n,o,l=this._getInst(e);if(arguments.length===2&&typeof t=="string")return t==="defaults"?i.extend({},i.datepicker._defaults):l?t==="all"?i.extend({},l.settings):this._get(l,t):null;a=t||{},typeof t=="string"&&(a={},a[t]=s),l&&(this._curInst===l&&this._hideDatepicker(),r=this._getDateDatepicker(e,!0),n=this._getMinMaxDate(l,"min"),o=this._getMinMaxDate(l,"max"),J(l.settings,a),n!==null&&a.dateFormat!==void 0&&a.minDate===void 0&&(l.settings.minDate=this._formatDate(l,n)),o!==null&&a.dateFormat!==void 0&&a.maxDate===void 0&&(l.settings.maxDate=this._formatDate(l,o)),"disabled"in a&&(a.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(i(e),l),this._autoSize(l),this._setDate(l,r),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(e,t,s){this._optionDatepicker(e,t,s)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var s=this._getInst(e);s&&(this._setDate(s,t),this._updateDatepicker(s),this._updateAlternate(s))},_getDateDatepicker:function(e,t){var s=this._getInst(e);return s&&!s.inline&&this._setDateFromField(s,t),s?this._getDate(s):null},_doKeyDown:function(e){var t,s,a,r=i.datepicker._getInst(e.target),n=!0,o=r.dpDiv.is(".ui-datepicker-rtl");if(r._keyEvent=!0,i.datepicker._datepickerShowing)switch(e.keyCode){case 9:i.datepicker._hideDatepicker(),n=!1;break;case 13:return a=i("td."+i.datepicker._dayOverClass+":not(."+i.datepicker._currentClass+")",r.dpDiv),a[0]&&i.datepicker._selectDay(e.target,r.selectedMonth,r.selectedYear,a[0]),t=i.datepicker._get(r,"onSelect"),t?(s=i.datepicker._formatDate(r),t.apply(r.input?r.input[0]:null,[s,r])):i.datepicker._hideDatepicker(),!1;case 27:i.datepicker._hideDatepicker();break;case 33:i.datepicker._adjustDate(e.target,e.ctrlKey?-i.datepicker._get(r,"stepBigMonths"):-i.datepicker._get(r,"stepMonths"),"M");break;case 34:i.datepicker._adjustDate(e.target,e.ctrlKey?+i.datepicker._get(r,"stepBigMonths"):+i.datepicker._get(r,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&i.datepicker._clearDate(e.target),n=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&i.datepicker._gotoToday(e.target),n=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&i.datepicker._adjustDate(e.target,o?1:-1,"D"),n=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&i.datepicker._adjustDate(e.target,e.ctrlKey?-i.datepicker._get(r,"stepBigMonths"):-i.datepicker._get(r,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&i.datepicker._adjustDate(e.target,-7,"D"),n=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&i.datepicker._adjustDate(e.target,o?-1:1,"D"),n=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&i.datepicker._adjustDate(e.target,e.ctrlKey?+i.datepicker._get(r,"stepBigMonths"):+i.datepicker._get(r,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&i.datepicker._adjustDate(e.target,7,"D"),n=e.ctrlKey||e.metaKey;break;default:n=!1}else e.keyCode===36&&e.ctrlKey?i.datepicker._showDatepicker(this):n=!1;n&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,s,a=i.datepicker._getInst(e.target);if(i.datepicker._get(a,"constrainInput"))return t=i.datepicker._possibleChars(i.datepicker._get(a,"dateFormat")),s=String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||s<" "||!t||t.indexOf(s)>-1},_doKeyUp:function(e){var t,s=i.datepicker._getInst(e.target);if(s.input.val()!==s.lastVal)try{t=i.datepicker.parseDate(i.datepicker._get(s,"dateFormat"),s.input?s.input.val():null,i.datepicker._getFormatConfig(s)),t&&(i.datepicker._setDateFromField(s),i.datepicker._updateAlternate(s),i.datepicker._updateDatepicker(s))}catch{}return!0},_showDatepicker:function(e){if(e=e.target||e,e.nodeName.toLowerCase()!=="input"&&(e=i("input",e.parentNode)[0]),!(i.datepicker._isDisabledDatepicker(e)||i.datepicker._lastInput===e)){var t,s,a,r,n,o,l;t=i.datepicker._getInst(e),i.datepicker._curInst&&i.datepicker._curInst!==t&&(i.datepicker._curInst.dpDiv.stop(!0,!0),t&&i.datepicker._datepickerShowing&&i.datepicker._hideDatepicker(i.datepicker._curInst.input[0])),s=i.datepicker._get(t,"beforeShow"),a=s?s.apply(e,[e,t]):{},a!==!1&&(J(t.settings,a),t.lastVal=null,i.datepicker._lastInput=e,i.datepicker._setDateFromField(t),i.datepicker._inDialog&&(e.value=""),i.datepicker._pos||(i.datepicker._pos=i.datepicker._findPos(e),i.datepicker._pos[1]+=e.offsetHeight),r=!1,i(e).parents().each(function(){return r|=i(this).css("position")==="fixed",!r}),n={left:i.datepicker._pos[0],top:i.datepicker._pos[1]},i.datepicker._pos=null,t.dpDiv.empty(),t.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),i.datepicker._updateDatepicker(t),n=i.datepicker._checkOffset(t,n,r),t.dpDiv.css({position:i.datepicker._inDialog&&i.blockUI?"static":r?"fixed":"absolute",display:"none",left:n.left+"px",to
vendor: 18,349 bytes, line 158
158p:n.top+"px"}),t.inline||(o=i.datepicker._get(t,"showAnim"),l=i.datepicker._get(t,"duration"),t.dpDiv.css("z-index",le(i(e))+1),i.datepicker._datepickerShowing=!0,i.effects&&i.effects.effect[o]?t.dpDiv.show(o,i.datepicker._get(t,"showOptions"),l):t.dpDiv[o||"show"](o?l:null),i.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),i.datepicker._curInst=t))}},_updateDatepicker:function(e){this.maxRows=4,j=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,s=this._getNumberOfMonths(e),a=s[1],r=17,n=e.dpDiv.find("."+this._dayOverClass+" a");n.length>0&&ae.apply(n.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&e.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",r*a+"em"),e.dpDiv[(s[0]!==1||s[1]!==1?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===i.datepicker._curInst&&i.datepicker._datepickerShowing&&i.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),t=e.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,s){var a=e.dpDiv.outerWidth(),r=e.dpDiv.outerHeight(),n=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(s?0:i(document).scrollLeft()),f=document.documentElement.clientHeight+(s?0:i(document).scrollTop());return t.left-=this._get(e,"isRTL")?a-n:0,t.left-=s&&t.left===e.input.offset().left?i(document).scrollLeft():0,t.top-=s&&t.top===e.input.offset().top+o?i(document).scrollTop():0,t.left-=Math.min(t.left,t.left+a>l&&l>a?Math.abs(t.left+a-l):0),t.top-=Math.min(t.top,t.top+r>f&&f>r?Math.abs(r+o):0),t},_findPos:function(e){for(var t,s=this._getInst(e),a=this._get(s,"isRTL");e&&(e.type==="hidden"||e.nodeType!==1||i.expr.filters.hidden(e));)e=e[a?"previousSibling":"nextSibling"];return t=i(e).offset(),[t.left,t.top]},_hideDatepicker:function(e){var t,s,a,r,n=this._curInst;!n||e&&n!==i.data(e,"datepicker")||this._datepickerShowing&&(t=this._get(n,"showAnim"),s=this._get(n,"duration"),a=function(){i.datepicker._tidyDialog(n)},i.effects&&(i.effects.effect[t]||i.effects[t])?n.dpDiv.hide(t,i.datepicker._get(n,"showOptions"),s,a):n.dpDiv[t==="slideDown"?"slideUp":t==="fadeIn"?"fadeOut":"hide"](t?s:null,a),t||a(),this._datepickerShowing=!1,r=this._get(n,"onClose"),r&&r.apply(n.input?n.input[0]:null,[n.input?n.input.val():"",n]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),i.blockUI&&(i.unblockUI(),i("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(i.datepicker._curInst){var t=i(e.target),s=i.datepicker._getInst(t[0]);(t[0].id!==i.datepicker._mainDivId&&t.parents("#"+i.datepicker._mainDivId).length===0&&!t.hasClass(i.datepicker.markerClassName)&&!t.closest("."+i.datepicker._triggerClass).length&&i.datepicker._datepickerShowing&&!(i.datepicker._inDialog&&i.blockUI)||t.hasClass(i.datepicker.markerClassName)&&i.datepicker._curInst!==s)&&i.datepicker._hideDatepicker()}},_adjustDate:function(e,t,s){var a=i(e),r=this._getInst(a[0]);this._isDisabledDatepicker(a[0])||(this._adjustInstDate(r,t+(s==="M"?this._get(r,"showCurrentAtPos"):0),s),this._updateDatepicker(r))},_gotoToday:function(e){var t,s=i(e),a=this._getInst(s[0]);this._get(a,"gotoCurrent")&&a.currentDay?(a.selectedDay=a.currentDay,a.drawMonth=a.selectedMonth=a.currentMonth,a.drawYear=a.selectedYear=a.currentYear):(t=new Date,a.selectedDay=t.getDate(),a.drawMonth=a.selectedMonth=t.getMonth(),a.drawYear=a.selectedYear=t.getFullYear()),this._notifyChange(a),this._adjustDate(s)},_selectMonthYear:function(e,t,s){var a=i(e),r=this._getInst(a[0]);r["selected"+(s==="M"?"Month":"Year")]=r["draw"+(s==="M"?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(r),this._adjustDate(a)},_selectDay:function(e,t,s,a){var r,n=i(e);i(a).hasClass(this._unselectableClass)||this._isDisabledDatepicker(n[0])||(r=this._getInst(n[0]),r.selectedDay=r.currentDay=i("a",a).html(),r.selectedMonth=r.currentMonth=t,r.selectedYear=r.currentYear=s,this._selectDate(e,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear)))},_clearDate:function(e){var t=i(e);this._selectDate(t,"")},_selectDate:function(e,t){var s,a=i(e),r=this._getInst(a[0]);t=t??this._formatDate(r),r.input&&r.input.val(t),this._updateAlternate(r),s=this._get(r,"onSelect"),s?s.apply(r.input?r.input[0]:null,[t,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],typeof r.input[0]!="object"&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var t,s,a,r=this._get(e,"altField");r&&(t=this._get(e,"altFormat")||this._get(e,"dateFormat"),s=this._getDate(e),a=this.formatDate(t,s,this._getFormatConfig(e)),i(r).val(a))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,s=new Date(e.getTime());return s.setDate(s.getDate()+4-(s.getDay()||7)),t=s.getTime(),s.setMonth(0),s.setDate(1),Math.floor(Math.round((t-s)/864e5)/7)+1},parseDate:function(e,t,s){if(e==null||t==null)throw"Invalid arguments";if(t=typeof t=="object"?t.toString():t+"",t==="")return null;var a,r,n,o=0,l=(s?s.shortYearCutoff:null)||this._defaults.shortYearCutoff,f=typeof l!="string"?l:new Date().getFullYear()%100+parseInt(l,10),g=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,d=(s?s.dayNames:null)||this._defaults.dayNames,v=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,h=(s?s.monthNames:null)||this._defaults.monthNames,u=-1,c=-1,p=-1,_=-1,y=!1,m,D=function(C){var k=a+1<e.length&&e.charAt(a+1)===C;return k&&a++,k},w=function(C){var k=D(C),P=C==="@"?14:C==="!"?20:C==="y"&&k?4:C==="o"?3:2,M=C==="y"?P:1,T=new RegExp("^\\d{"+M+","+P+"}"),S=t.substring(o).match(T);if(!S)throw"Missing number at position "+o;return o+=S[0].length,parseInt(S[0],10)},x=function(C,k,P){var M=-1,T=i.map(D(C)?P:k,function(S,O){return[[O,S]]}).sort(function(S,O){return-(S[1].length-O[1].length)});if(i.each(T,function(S,O){var F=O[1];if(t.substr(o,F.length).toLowerCase()===F.toLowerCase())return M=O[0],o+=F.length,!1}),M!==-1)return M+1;throw"Unknown name at position "+o},b=function(){if(t.charAt(o)!==e.charAt(a))throw"Unexpected literal at position "+o;o++};for(a=0;a<e.length;a++)if(y)e.charAt(a)==="'"&&!D("'")?y=!1:b();else switch(e.charAt(a)){case"d":p=w("d");break;case"D":x("D",g,d);break;case"o":_=w("o");break;case"m":c=w("m");break;case"M":c=x("M",v,h);break;case"y":u=w("y");break;case"@":m=new Date(w("@")),u=m.getFullYear(),c=m.getMonth()+1,p=m.getDate();break;case"!":m=new Date((w("!")-this._ticksTo1970)/1e4),u=m.getFullYear(),c=m.getMonth()+1,p=m.getDate();break;case"'":D("'")?b():y=!0;break;default:b()}if(o<t.length&&(n=t.substr(o),!/^\s+/.test(n)))throw"Extra/unparsed characters found in date: "+n;if(u===-1?u=new Date().getFullYear():u<100&&(u+=new Date().getFullYear()-new Date().getFullYear()%100+(u<=f?0:-100)),_>-1){c=1,p=_;do{if(r=this._getDaysInMonth(u,c-1),p<=r)break;c++,p-=r}while(!0)}if(m=this._daylightSavingAdjust(new Date(u,c-1,p)),m.getFullYear()!==u||m.getMonth()+1!==c||m.getDate()!==p)throw"Invalid date";return m},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(1969*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*1e7,formatDate:function(e,t,s){if(!t)return"";var a,r=(s?s.dayNamesShort:null)||this._defaults.dayNamesShort,n=(s?s.dayNames:null)||this._defaults.dayNames,o=(s?s.monthNamesShort:null)||this._defaults.monthNamesShort,l=(s?s.monthNames:null)||this._defaults.monthNames,f=function(u){var c=a+1<e.length&&e.charAt(a+1)===u;return c&&a++,c},g=function(u,c,p){var _=""+c;if(f(u))for(;_.length<p;)_="0"+_;return _},d=function(u,c,p,_){return f(u)?_[c]:p[c]},v="",h=!1;if(t)for(a=0;a<e.length;a++)if(h)e.charAt(a)==="'"&&!f("'")?h=!1:v+=e.charAt(a);else switch(e.charAt(a)){case"d":v+=g("d",t.getDate(),2);break;case"D":v+=d("D",t.getDay(),r,n);break;case"o":v+=g("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":v+=g("m",t.getMonth()+1,2);break;case"M":v+=d("M",t.getMonth(),o,l);break;case"y":v+=f("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":v+=t.getTime();break;case"!":v+=t.getTime()*1e4+this._ticksTo1970;break;case"'":f("'")?v+="'":h=!0;break;default:v+=e.charAt(a)}return v},_possibleChars:function(e){var t,s="",a=!1,r=function(n){var o=t+1<e.length&&e.charAt(t+1)===n;return o&&t++,o};for(t=0;t<e.length;t++)if(a)e.charAt(t)==="'"&&!r("'")?a=!1:s+=e.charAt(t);else switch(e.charAt(t)){case"d":case"m":case"y":case"@":s+="0123456789";break;case"D":case"M":return null;case"'":r("'")?s+="'":a=!0;break;default:s+=e.charAt(t)}return s},_get:function(e,t){return e.settings[t]!==void 0?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var s=this._get(e,"dateFormat"),a=e.lastVal=e.input?e.input.val():null,r=this._getDefaultDate(e),n=r,o=this._getFormatConfig(e);try{n=this.parseDate(s,a,o)||r}catch{a=t?"":a}e.selectedDay=n.getDate(),e.drawMonth=e.selectedMonth=n.getMonth(),e.drawYear=e.selectedYear=n.getFullYear(),e.currentDay=a?n.getDate():0,e.currentMonth=a?n.getMonth():0,e.currentYear=a?n.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(e,t,s){var a=function(o){var l=new Date;return l.setDate(l.getDate()+o),l},r=function(o){try{return i.datepicker.parseDate(i.datepicker._get(e,"dateFormat"),o,i.datepicker._getFormatConfig(e))}catch{}for(var l=(o.toLowerCase().match(/^c/)?i.datepicker._getDate(e):null)||new Date,f=l.getFullYear(),g=l.getMonth(),d=l.getDate(),v=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,h=v.exec(o);h;){switch(h[2]||"d"){case"d":case"D":d+=parseInt(h[1],10);break;case"w":case"W":d+=parseInt(h[1],10)*7;break;case"m":case"M":g+=parseInt(h[1],10),d=Math.min(d,i.datepicker._getDaysInMonth(f,g));break;case"y":case"Y":f+=parseInt(h[1],10),d=Math.min(d,i.datepicker._getDaysInMonth(f,g));break}h=v.exec(o)}return new Date(f,g,d)},n=t==null||t===""?s:typeof t=="string"?r(t):typeof t=="number"?isNaN(t)?s:a(t):new Date(t.getTime());return n=n&&n.toString()==="Invalid Date"?s:n,n&&(n.setHours(0),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0)),this._daylightSavingAdjust(n)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,s){var a=!t,r=e.selectedMonth,n=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear(),(r!==e.selectedMonth||n!==e.selectedYear)&&!s&&this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(a?"":this._formatDate(e))},_getDate:function(e){var t=!e.currentYear||e.input&&e.input.val()===""?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return t},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),s="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var a={prev:function(){i.datepicker._adjustDate(s,-t,"M")},next:function(){i.datepicker._adjustDate(s,+t,"M")},hide:function(){i.datepicker._hideDatepicker()},today:function(){i.datepicker._gotoToday(s)},selectDay:function(){return i.datepicker._selectDay(s,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return i.datepicker._selectMonthYear(s,this,"M"),!1},selectYear:function(){return i.datepicker._selectMonthYear(s,this,"Y"),!1}};i(this).on(this.getAttribute("data-event"),a[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,s,a,r,n,o,l,f,g,d,v,h,u,c,p,_,y,m,D,w,x,b,C,k,P,M,T,S,O,F,V,X,A,I,z,W,R,Y,U,K=new Date,Z=this._daylightSavingAdjust(new Date(K.getFullYear(),K.getMonth(),K.getDate())),H=this._get(e,"isRTL"),he=this._get(e,"showButtonPanel"),re=this._get(e,"hideIfNoPrevNext"),Q=this._get(e,"navigationAsDateFormat"),L=this._getNumberOfMonths(e),ue=this._get(e,"showCurrentAtPos"),ne=this._get(e,"stepMonths"),$=L[0]!==1||L[1]!==1,ee=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),q=this._getMinMaxDate(e,"min"),B=this._getMinMaxDate(e,"max"),N=e.drawMonth-ue,E=e.drawYear;if(N<0&&(N+=12,E--),B)for(t=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth()-L[0]*L[1]+1,B.getDate())),t=q&&t<q?q:t;this._daylightSavingAdjust(new Date(E,N,1))>t;)N--,N<0&&(N=11,E--);for(e.drawMonth=N,e.drawYear=E,s=this._get(e,"prevText"),s=Q?this.formatDate(s,this._daylightSavingAdjust(new Date(E,N-ne,1)),this._getFormatConfig(e)):s,a=this._canAdjustMonth(e,-1,E,N)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"e":"w")+"'>"+s+"</span></a>":re?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"e":"w")+"'>"+s+"</span></a>",r=this._get(e,"nextText"),r=Q?this.formatDate(r,this._daylightSavingAdjust(new Date(E,N+ne,1)),this._getFormatConfig(e)):r,n=this._canAdjustMonth(e,1,E,N)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"w":"e")+"'>"+r+"</span></a>":re?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+r+"'><span class='ui-icon ui-icon-circle-triangle-"+(H?"w":"e")+"'>"+r+"</span></a>",o=this._get(e,"currentText"),l=this._get(e,"gotoCurrent")&&e.currentDay?ee:Z,o=Q?this.formatDate(o,l,this._getFormatConfig(e)):o,f=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",g=he?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(H?f:"")+(this._isInRange(e,l)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+o+"</button>":"")+(H?"":f)+"</div>":"",d=parseInt(this._get(e,"firstDay"),10),d=isNaN(d)?0:d,v=this._get(e,"showWeek"),h=this._get(e,"dayNames"),u=this._get(e,"dayNamesMin"),c=this._get(e,"monthNames"),p=this._get(e,"monthNamesShort"),_=this._get(e,"beforeShowDay"),y=this._get(e,"showOtherMonths"),m=this._get(e,"selectOtherMonths"),D=this._getDefaultDate(e),w="",b=0;b<L[0];b++){for(C="",this.maxRows=4,k=0;k<L[1];k++){if(P=this._daylightSavingAdjust(new Date(E,N,e.selectedDay)),M=" ui-corner-all",T="",$){if(T+="<div class='ui-datepicker-group",L[1]>1)switch(k){case 0:T+=" ui-datepicker-group-first",M=" ui-corner-"+(H?"right":"left");break;case L[1]-1:T+=" ui-datepicker-group-last",M=" ui-corner-"+(H?"left":"right");break;default:T+=" ui-datepicker-group-middle",M="";break}T+="'>"}for(T+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+M+"'>"+(/all|left/.test(M)&&b===0?H?n:a:"")+(/all|right/.test(M)&&b===0?H?a:n:"")+this._generateMonthYearHeader(e,N,E,q,B,b>0||k>0,c,p)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=v?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",x=0;x<7;x++)O=(x+d)%7,S+="<th scope='col'"+((x+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+h[O]+"'>"+u[O]+"</span></th>";for(T+=S+"</tr></thead><tbody>",F=this._getDaysInMonth(E,N),E===e.selectedYear&&N===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,F)),V=(this._getFirstDayOfMonth(E,N)-d+7)%7,X=Math.ceil((V+F)/7),A=$&&this.maxRows>X?this.maxRows:X,this.maxRows=A,I=this._daylightSavingAdjust(new Date(E,N,1-V)),z=0;z<A;z++){for(T+="<tr>",W=v?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(I)+"</td>":"",x=0;x<7;x++)R=_?_.apply(e.input?e.input[0]:null,[I]):[!0,""],Y=I.getMonth()!==N,U=Y&&!m||!R[0]||q&&I<q||B&&I>B,W+="<td class='"+((x+d+6)%7>=5?" ui-datepicker-week-end":"")+(Y?" ui-datepicker-other-month":"")+(I.getTime()===P.getTime()&&N===e.selectedMonth&&e._keyEvent||D.getTime()===I.getTime()&&D.getTime()===P.getTime()?" "+this._dayOverClass:"")+(U?" "+this._unselectableClass+" ui-state-disabled":"")+(Y&&!y?"":" "+R[1]+(I.getTime()===ee.getTime()?" "+this._currentClass:"")+(I.getTime()===Z.getTime()?" ui-datepicker-today":""))+"'"+((!Y||y)&&R[2]?" title='"+R[2].replace(/'/g,"'")+"'":"")+(U?"":" data-handler='selectDay' data-event='click' data-month='"+I.getMonth()+"' data-year='"+I.getFullYear()+"'")+">"+(Y&&!y?" ":U?"<span class='ui-state-default'>"+I.getDate()+"</span>":"<a class='ui-state-default"+(I.getTime()===Z.getTime()?" ui-state-highlight":"")+(I.getTime()===ee.getTime()?" ui-state-active":"")+(Y?" ui-priority-secondary":"")+"' href='#'>"+I.getDate()+"</a>")+"</td>",I.setDate(I.getDate()+1),I=this._daylightSavingAdjust(I);T+=W+"</tr>"}N++,N>11&&(N=0,E++),T+="</tbody></table>"+($?"</div>"+(L[0]>0&&k===L[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),C+=T}w+=C}return w+=g,e._keyEvent=!1,w},_generateMonthYearHeader:function(e,t,s,a,r,n,o,l){var f,g,d,v,h,u,c,p,_=this._get(e,"changeMonth"),y=this._get(e,"changeYear"),m=this._get(e,"showMonthAfterYear"),D="<div class='ui-datepicker-title'>",w="";if(n||!_)w+="<span class='ui-datepicker-month'>"+o[t]+"</span>";else{for(f=a&&a.getFullYear()===s,g=r&&r.getFullYear()===s,w+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",d=0;d<12;d++)(!f||d>=a.getMonth())&&(!g||d<=r.getMonth())&&(w+="<option value='"+d+"'"+(d===t?" selected='selected'":"")+">"+l[d]+"</option>");w+="</select>"}if(m||(D+=w+(n||!(_&&y)?" 
158":"")),!e.yearshtml)if(e.yearshtml="",n||!y)D+="<span class='ui-datepicker-year'>"+s+"</span>";else{for(v=this._get(e,"yearRange").split(":"),h=new Date().getFullYear(),u=function(x){var b=x.match(/c[+\-].*/)?s+parseInt(x.substring(1),10):x.match(/[+\-].*/)?h+parseInt(x,10):parseInt(x,10);return isNaN(b)?h:b},c=u(v[0]),p=Math.max(c,u(v[1]||"")),c=a?Math.max(c,a.getFullYear()):c,p=r?Math.min(p,r.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";c<=p;c++)e.yearshtml+="<option value='"+c+"'"+(c===s?" selected='selected'":"")+">"+c+"</option>";e.yearshtml+="</select>",D+=e.yearshtml,e.yearshtml=null}return D+=this._get(e,"yearSuffix"),m&&(D+=(n||!(_&&y)?" ":"")+w),D+="</div>",D},_adjustInstDate:function(e,t,s){var a=e.selectedYear+(s==="Y"?t:0),r=e.selectedMonth+(s==="M"?t:0),n=Math.min(e.selectedDay,this._getDaysInMonth(a,r))+(s==="D"?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(a,r,n)));e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),(s==="M"||s==="Y")&&this._notifyChange(e)},_restrictMinMax:function(e,t){var s=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=s&&t<s?s:t;return a&&r>a?a:r},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return t==null?[1,1]:typeof t=="number"?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,s,a){var r=this._getNumberOfMonths(e),n=this._daylightSavingAdjust(new Date(s,a+(t<0?t:r[0]*r[1]),1));return t<0&&n.setDate(this._getDaysInMonth(n.getFullYear(),n.getMonth())),this._isInRange(e,n)},_isInRange:function(e,t){var s,a,r=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),o=null,l=null,f=this._get(e,"yearRange");return f&&(s=f.split(":"),a=new Date().getFullYear(),o=parseInt(s[0],10),l=parseInt(s[1],10),s[0].match(/[+\-].*/)&&(o+=a),s[1].match(/[+\-].*/)&&(l+=a)),(!r||t.getTime()>=r.getTime())&&(!n||t.getTime()<=n.getTime())&&(!o||t.getFullYear()>=o)&&(!l||t.getFullYear()<=l)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return t=typeof t!="string"?t:new Date().getFullYear()%100+parseInt(t,10),{shortYearCutoff:t,dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,s,a){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var r=t?typeof t=="object"?t:this._daylightSavingAdjust(new Date(a,s,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),r,this._getFormatConfig(e))}});function se(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",t,function(){i(this).removeClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&i(this).removeClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&i(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",t,ae)}function ae(){i.datepicker._isDisabledDatepicker(j.inline?j.dpDiv.parent()[0]:j.input[0])||(i(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),i(this).addClass("ui-state-hover"),this.className.indexOf("ui-datepicker-prev")!==-1&&i(this).addClass("ui-datepicker-prev-hover"),this.className.indexOf("ui-datepicker-next")!==-1&&i(this).addClass("ui-datepicker-next-hover"))}function J(e,t){i.extend(e,t);for(var s in t)t[s]==null&&(e[s]=t[s]);return e}i.fn.datepicker=function(e){if(!this.length)return this;i.datepicker.initialized||(i(document).on("mousedown",i.datepicker._checkExternalClick),i.datepicker.initialized=!0),i("#"+i.datepicker._mainDivId).length===0&&i("body").append(i.datepicker.dpDiv);
158var t=Array.prototype.slice.call(arguments,1);return typeof e=="string"&&(e==="isDisabled"||e==="getDate"||e==="widget")?i.datepicker["_"+e+"Datepicker"].apply(i.datepicker,[this[0]].concat(t)):e==="option"&&arguments.length===2&&typeof arguments[1]=="string"?i.datepicker["_"+e+"Datepicker"].apply(i.datepicker,[this[0]].concat(t)):this.each(function(){typeof e=="string"?i.datepicker["_"+e+"Datepicker"].apply(i.datepicker,[this].concat(t)):i.datepicker._attachDatepicker(this,e)})},i.datepicker=new ie,i.datepicker.initialized=!1,i.datepicker.uuid=new Date().getTime(),i.datepicker.version="1.12.1";var Ce=i.datepicker}); 159 160/*! 161 * @fileOverview TouchSwipe - jQuery Plugin 162 * @version 1.6.18 163 * 164 * @author Matt Bryson http://www.github.com/mattbryson 165 * @see https://github.com/mattbryson/TouchSwipe-Jquery-Plugin 166 * @see http://labs.rampinteractive.co.uk/touchSwipe/ 167 * @see http://plugins.jquery.com/project/touchSwipe 168 * @license 169 * Copyright (c) 2010-2015 Matt Bryson 170 * Dual licensed under the MIT or GPL Version 2 licenses. 171 * 172 */(function(s){typeof define=="function"&&define.amd&&define.amd.jQuery?define(["jquery"],s):typeof module<"u"&&module.exports?s(require("jquery")):s(jQuery)})(function(s){"use strict";var Ve="1.6.18",D="left",y="right",M="up",R="down",ne="in",ie="out",A="none",Se="auto",me="swipe",be="pinch",te="tap",De="doubletap",Oe="longtap",Tn="hold",re="horizontal",ae="vertical",Q="all",Ge=10,Pe="start",N="move",g="end",T="cancel",k="ontouchstart"in window,W=window.navigator.msPointerEnabled&&!window.navigator.pointerEnabled&&!k,I=(window.navigator.pointerEnabled||window.navigator.msPointerEnabled)&&!k,_="TouchSwipe",Qe={fingers:1,threshold:75,cancelThreshold:null,pinchThreshold:20,maxTimeThreshold:null,fingerReleaseThreshold:250,longTapThreshold:500,doubleTapThreshold:200,swipe:null,swipeLeft:null,swipeRight:null,swipeUp:null,swipeDown:null,swipeStatus:null,pinchIn:null,pinchOut:null,pinchStatus:null,click:null,tap:null,doubleTap:null,longTap:null,hold:null,triggerOnTouchEnd:!0,triggerOnTouchLeave:!1,allowPageScroll:"auto",fallbackToMouseEvents:!0,excludedElements:".noSwipe",preventDefaultEvents:!0};s.fn.swipe=function(f){var F=s(this),n=F.data(_);if(n&&typeof f=="string"){if(n[f])return n[f].apply(n,Array.prototype.slice.call(arguments,1));s.error("Method "+f+" does not exist on jQuery.swipe")}else if(n&&typeof f=="object")n.option.apply(n,arguments);else if(!n&&(typeof f=="object"||!f))return We.apply(this,arguments);return F},s.fn.swipe.version=Ve,s.fn.swipe.defaults=Qe,s.fn.swipe.phases={PHASE_START:Pe,PHASE_MOVE:N,PHASE_END:g,PHASE_CANCEL:T},s.fn.swipe.directions={LEFT:D,RIGHT:y,UP:M,DOWN:R,IN:ne,OUT:ie},s.fn.swipe.pageScroll={NONE:A,HORIZONTAL:re,VERTICAL:ae,AUTO:Se},s.fn.swipe.fingers={ONE:1,TWO:2,THREE:3,FOUR:4,FIVE:5,ALL:Q};function We(f){return f&&f.allowPageScroll===void 0&&(f.swipe!==void 0||f.swipeStatus!==void 0)&&(f.allowPageScroll=A),f.click!==void 0&&f.tap===void 0&&(f.tap=f.click),f||(f={}),f=s.extend({},s.fn.swipe.defaults,f),this.each(function(){var F=s(this),n=F.data(_);n||(n=new Xe(this,f),F.data(_,n))})}function Xe(f,n){var n=s.extend({},n),X=k||I||!n.fallbackToMouseEvents,Y=X?I?W?"MSPointerDown":"pointerdown":"touchstart":"mousedown",le=X?I?W?"MSPointerMove":"pointermove":"touchmove":"mousemove",ue=X?I?W?"MSPointerUp":"pointerup":"touchend":"mouseup",C=X?I?"mouseleave":null:"mouseleave",Z=I?W?"MSPointerCancel":"pointercancel":"touchcancel",d=0,h=null,p=null,c=0,O=0,P=0,v=1,S=0,m=0,z=null,r=s(f),l="start",o=0,u={},oe=0,B=0,J=0,se=0,x=0,V=null,G=null;try{r.bind(Y,fe),r.bind(Z,H)}catch{s.error("events not supported "+Y+","+Z+" on jQuery.swipe")}this.enable=function(){return this.disable(),r.bind(Y,fe),r.bind(Z,H),r},this.disable=function(){return xe(),r},this.destroy=function(){xe(),r.data(_,null),r=null},this.option=function(e,i){if(typeof e=="object")n=s.extend(n,e);else if(n[e]!==void 0){if(i===void 0)return n[e];n[e]=i}else if(e)s.error("Option "+e+" does not exist on jQuery.swipe.options");else return n;return null};function fe(e){if(!rn()&&!(s(e.target).closest(n.excludedElements,r).length>0)){var i=e.originalEvent?e.originalEvent:e;if(!(i.pointerType&&i.pointerType=="mouse"&&n.fallbackToMouseEvents==!1)){var t,a=i.touches,b=a?a[0]:i;return l=Pe,a?o=a.length:n.preventDefaultEvents!==!1&&e.preventDefault(),d=0,h=null,p=null,m=null,c=0,O=0,P=0,v=1,S=0,z=un(),Ce(),$(0,b),!a||o===n.fingers||n.fingers===Q||K()?(oe=L(),o==2&&($(1,a[1]),O=P=ve(u[0].start,u[1].start)),(n.swipeStatus||n.pinchStatus)&&(t=E(i,l))):t=!1,t===!1?(l=T,E(i,l),t):(n.hold&&(G=setTimeout(s.proxy(function(){r.trigger("hold",[i.target]),n.hold&&(t=n.hold.call(r,i,i.target))},this),n.longTapThreshold)),q(!0),null)}}}function ce(e){var i=e.originalEvent?e.originalEvent:e;if(!(l===g||l===T||j())){var t,a=i.touches,b=a?a[0]:i,w=He(b);if(B=L(),a&&(o=a.length),n.hold&&clearTimeout(G),l=N,o==2&&(O==0?($(1,a[1]),O=P=ve(u[0].start,u[1].start)):(He(a[1]),P=ve(u[0].end,u[1].end),m=sn(u[0].end,u[1].end)),v=on(O,P),S=Math.abs(O-P)),o===n.fingers||n.fingers===Q||!a||K()){if(h=Fe(w.start,w.end),p=Fe(w.last,w.end),Ze(e,p),d=fn(w.start,w.end),c=ke(),ln(h,d),t=E(i,l),!n.triggerOnTouchEnd||n.triggerOnTouchLeave){var Ee=!0;if(n.triggerOnTouchLeave){var pn=dn(this);Ee=hn(w.end,pn)}!n.triggerOnTouchEnd&&Ee?l=ge(N):n.triggerOnTouchLeave&&!Ee&&(l=ge(g)),(l==T||l==g)&&E(i,l)}}else l=T,E(i,l);t===!1&&(l=T,E(i,l))}}function de(e){var i=e.originalEvent?e.originalEvent:e,t=i.touches;if(t){if(t.length&&!j())return tn(i),!0;if(t.length&&j())return!0}return j()&&(o=se),B=L(),c=ke(),Te()||!pe()?(l=T,E(i,l)):n.triggerOnTouchEnd||n.triggerOnTouchEnd===!1&&l===N?(n.preventDefaultEvents!==!1&&e.preventDefault(),l=g,E(i,l)):!n.triggerOnTouchEnd&&Ie()?(l=g,U(i,l,te)):l===N&&(l=T,E(i,l)),q(!1),null}function H(){o=0,B=0,oe=0,O=0,P=0,v=1,Ce(),q(!1)}function he(e){var i=e.originalEvent?e.originalEvent:e;n.triggerOnTouchLeave&&(l=ge(g),E(i,l))}function xe(){r.unbind(Y,fe),r.unbind(Z,H),r.unbind(le,ce),r.unbind(ue,de),C&&r.unbind(C,he),q(!1)}function ge(e){var i=e,t=Le(),a=pe(),b=Te();return!t||b?i=T:a&&e==N&&(!n.triggerOnTouchEnd||n.triggerOnTouchLeave)?i=g:!a&&e==g&&n.triggerOnTouchLeave&&(i=T),i}function E(e,i){var t,a=e.touches;return(Be()||Re())&&(t=U(e,i,me)),(ze()||K())&&t!==!1&&(t=U(e,i,be)),en()&&t!==!1?t=U(e,i,De):nn()&&t!==!1?t=U(e,i,Oe):$e()&&t!==!1&&(t=U(e,i,te)),i===T&&H(e),i===g&&(a&&a.length||H(e)),t}function U(e,i,t){var a;if(t==me){if(r.trigger("swipeStatus",[i,h||null,d||0,c||0,o,u,p]),n.swipeStatus&&(a=n.swipeStatus.call(r,e,i,h||null,d||0,c||0,o,u,p),a===!1))return!1;if(i==g&&Me()){if(clearTimeout(V),clearTimeout(G),r.trigger("swipe",[h,d,c,o,u,p]),n.swipe&&(a=n.swipe.call(r,e,h,d,c,o,u,p),a===!1))return!1;switch(h){case D:r.trigger("swipeLeft",[h,d,c,o,u,p]),n.swipeLeft&&(a=n.swipeLeft.call(r,e,h,d,c,o,u,p));break;case y:r.trigger("swipeRight",[h,d,c,o,u,p]),n.swipeRight&&(a=n.swipeRight.call(r,e,h,d,c,o,u,p));break;case M:r.trigger("swipeUp",[h,d,c,o,u,p]),n.swipeUp&&(a=n.swipeUp.call(r,e,h,d,c,o,u,p));break;case R:r.trigger("swipeDown",[h,d,c,o,u,p]),n.swipeDown&&(a=n.swipeDown.call(r,e,h,d,c,o,u,p));break}}}if(t==be){if(r.trigger("pinchStatus",[i,m||null,S||0,c||0,o,v,u]),n.pinchStatus&&(a=n.pinchStatus.call(r,e,i,m||null,S||0,c||0,o,v,u),a===!1))return!1;if(i==g&&ye())switch(m){case ne:r.trigger("pinchIn",[m||null,S||0,c||0,o,v,u]),n.pinchIn&&(a=n.pinchIn.call(r,e,m||null,S||0,c||0,o,v,u));break;case ie:r.trigger("pinchOut",[m||null,S||0,c||0,o,v,u]),n.pinchOut&&(a=n.pinchOut.call(r,e,m||null,S||0,c||0,o,v,u));break}}return t==te?(i===T||i===g)&&(clearTimeout(V),clearTimeout(G),we()&&!Ke()?(x=L(),V=setTimeout(s.proxy(function(){x=null,r.trigger("tap",[e.target]),n.tap&&
172(a=n.tap.call(r,e,e.target))},this),n.doubleTapThreshold)):(x=null,r.trigger("tap",[e.target]),n.tap&&(a=n.tap.call(r,e,e.target)))):t==De?(i===T||i===g)&&(clearTimeout(V),clearTimeout(G),x=null,r.trigger("doubletap",[e.target]),n.doubleTap&&(a=n.doubleTap.call(r,e,e.target))):t==Oe&&(i===T||i===g)&&(clearTimeout(V),x=null,r.trigger("longtap",[e.target]),n.longTap&&(a=n.longTap.call(r,e,e.target))),a}function pe(){var e=!0;return n.threshold!==null&&(e=d>=n.threshold),e}function Te(){var e=!1;return n.cancelThreshold!==null&&h!==null&&(e=Ue(h)-d>=n.cancelThreshold),e}function Ye(){return n.pinchThreshold!==null?S>=n.pinchThreshold:!0}function Le(){var e;return n.maxTimeThreshold&&c>=n.maxTimeThreshold?e=!1:e=!0,e}function Ze(e,i){if(n.preventDefaultEvents!==!1)if(n.allowPageScroll===A)e.preventDefault();else{var t=n.allowPageScroll===Se;switch(i){case D:(n.swipeLeft&&t||!t&&n.allowPageScroll!=re)&&e.preventDefault();break;case y:(n.swipeRight&&t||!t&&n.allowPageScroll!=re)&&e.preventDefault();break;case M:(n.swipeUp&&t||!t&&n.allowPageScroll!=ae)&&e.preventDefault();break;case R:(n.swipeDown&&t||!t&&n.allowPageScroll!=ae)&&e.preventDefault();break;case A:break}}}function ye(){var e=Ae(),i=Ne(),t=Ye();return e&&i&&t}function K(){return!!(n.pinchStatus||n.pinchIn||n.pinchOut)}function ze(){return!!(ye()&&K())}function Me(){var e=Le(),i=pe(),t=Ae(),a=Ne(),b=Te(),w=!b&&a&&t&&i&&e;return w}function Re(){return!!(n.swipe||n.swipeStatus||n.swipeLeft||n.swipeRight||n.swipeUp||n.swipeDown)}function Be(){return!!(Me()&&Re())}function Ae(){return o===n.fingers||n.fingers===Q||!k}function Ne(){return u[0].end.x!==0}function Ie(){return!!n.tap}function we(){return!!n.doubleTap}function Je(){return!!n.longTap}function _e(){if(x==null)return!1;var e=L();return we()&&e-x<=n.doubleTapThreshold}function Ke(){return _e()}function je(){return(o===1||!k)&&(isNaN(d)||d<n.threshold)}function qe(){return c>n.longTapThreshold&&d<Ge}function $e(){return!!(je()&&Ie())}function en(){return!!(_e()&&we())}function nn(){return!!(qe()&&Je())}function tn(e){J=L(),se=e.touches.length+1}function Ce(){J=0,se=0}function j(){var e=!1;if(J){var i=L()-J;i<=n.fingerReleaseThreshold&&(e=!0)}return e}function rn(){return r.data(_+"_intouch")===!0}function q(e){r&&(e===!0?(r.bind(le,ce),r.bind(ue,de),C&&r.bind(C,he)):(r.unbind(le,ce,!1),r.unbind(ue,de,!1),C&&r.unbind(C,he,!1)),r.data(_+"_intouch",e===!0))}function $(e,i){var t={start:{x:0,y:0},last:{x:0,y:0},end:{x:0,y:0}};return t.start.x=t.last.x=t.end.x=i.pageX||i.clientX,t.start.y=t.last.y=t.end.y=i.pageY||i.clientY,u[e]=t,t}function He(e){var i=e.identifier!==void 0?e.identifier:0,t=an(i);return t===null&&(t=$(i,e)),t.last.x=t.end.x,t.last.y=t.end.y,t.end.x=e.pageX||e.clientX,t.end.y=e.pageY||e.clientY,t}function an(e){return u[e]||null}function ln(e,i){e!=A&&(i=Math.max(i,Ue(e)),z[e].distance=i)}function Ue(e){if(z[e])return z[e].distance}function un(){var e={};return e[D]=ee(D),e[y]=ee(y),e[M]=ee(M),e[R]=ee(R),e}function ee(e){return{direction:e,distance:0}}function ke(){return B-oe}function ve(e,i){var t=Math.abs(e.x-i.x),a=Math.abs(e.y-i.y);return Math.round(Math.sqrt(t*t+a*a))}function on(e,i){var t=i/e*1;return t.toFixed(2)}function sn(){return v<1?ie:ne}function fn(e,i){return Math.round(Math.sqrt(Math.pow(i.x-e.x,2)+Math.pow(i.y-e.y,2)))}function cn(e,i){var t=e.x-i.x,a=i.y-e.y,b=Math.atan2(a,t),w=Math.round(b*180/Math.PI);return w<0&&(w=360-Math.abs(w)),w}function Fe(e,i){if(gn(e,i))return A;var t=cn(e,i);return t<=45&&t>=0||t<=360&&t>=315?D:t>=135&&t<=225?y:t>45&&t<135?R:M}function L(){var e=new Date;return e.getTime()}function dn(e){e=s(e);var i=e.offset(),t={left:i.left,right:i.left+e.outerWidth(),top:i.top,bottom:i.top+e.outerHeight()};return t}function hn(e,i){return e.x>i.left&&e.x<i.right&&e.y>i.top&&e.y<i.bottom}function gn(e,i){return e.x==i.x&&e.y==i.y}}}); 173 174(function(t){typeof define=="function"&&define.amd?define(["jquery"],t):typeof exports=="object"?module.exports=t(require("jquery")):t(jQuery)})(function(t){"use strict";var j="styler",te={idSuffix:"-styler",filePlaceholder:"File not found",fileBrowse:"Browse...",fileNumber:"Number of choosen files: %s",selectPlaceholder:"Select...",selectSearch:!1,selectSearchLimit:10,selectSearchNotFound:"No matches found",selectSearchPlaceholder:"Search...",selectVisibleOptions:0,singleSelectzIndex:"100",selectSmartPositioning:!0,onSelectOpened:function(){},onSelectClosed:function(){},onFormStyled:function(){}};function V(e,c){this.element=e,this.options=t.extend({},te,c),this.init()}V.prototype={init:function(){var e=t(this.element),c=this.options,k=!!(navigator.userAgent.match(/(iPad|iPhone|iPod)/i)&&!navigator.userAgent.match(/(Windows\sPhone)/i)),_=!!(navigator.userAgent.match(/Android/i)&&!navigator.userAgent.match(/(Windows\sPhone)/i));function T(){e.attr("id")!==void 0&&e.attr("id")!==""&&(this.id=e.attr("id")+c.idSuffix),this.title=e.attr("title"),this.classes=e.attr("class"),this.data=e.data()}if(e.is(":checkbox")){var U=function(){var m=new T,s=t('<div class="jq-checkbox"><div class="jq-checkbox__div"></div></div>').attr({id:m.id,title:m.title}).addClass(m.classes).data(m.data);e.css({position:"absolute",zIndex:"-1",opacity:0,margin:0,padding:0}).after(s).prependTo(s),s.attr("unselectable","on").css({"-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none",display:"inline-block",position:"relative",overflow:"hidden"}),e.is(":checked")&&s.addClass("checked"),e.is(":disabled")&&s.addClass("disabled"),s.click(function(o){o.preventDefault(),s.is(".disabled")||(e.is(":checked")?(e.prop("checked",!1),s.removeClass("checked")):(e.prop("checked",!0),s.addClass("checked")),e.focus().change())}),e.closest("label").add('label[for="'+e.attr("id")+'"]').on("click.styler",function(o){!t(o.target).is("a")&&!t(o.target).closest(s).length&&(s.triggerHandler("click"),o.preventDefault())}),e.on("change.styler",function(){e.is(":checked")?s.addClass("checked"):s.removeClass("checked")}).on("keydown.styler",function(o){o.which==32&&s.click()}).on("focus.styler",function(){s.is(".disabled")||s.addClass("focused")}).on("blur.styler",function(){s.removeClass("focused")})};U(),e.on("refresh",function(){e.closest("label").add('label[for="'+e.attr("id")+'"]').off(".styler"),e.off(".styler").parent().before(e).remove(),U()})}else if(e.is(":radio")){var Y=function(){var m=new T,s=t('<div class="jq-radio"><div class="jq-radio__div"></div></div>').attr({id:m.id,title:m.title}).addClass(m.classes).data(m.data);e.css({position:"absolute",zIndex:"-1",opacity:0,margin:0,padding:0}).after(s).prependTo(s),s.attr("unselectable","on").css({"-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","-o-user-select":"none","user-select":"none",display:"inline-block",position:"relative"}),e.is(":checked")&&s.addClass("checked"),e.is(":disabled")&&s.addClass("disabled"),t.fn.commonParents=function(){var o=this;return o.first().parents().filter(function(){return t(this).find(o).length===o.length})},t.fn.commonParent=function(){return t(this).commonParents().first()}
174,s.click(function(o){if(o.preventDefault(),!s.is(".disabled")){var g=t('input[name="'+e.attr("name")+'"]');g.commonParent().find(g).prop("checked",!1).parent().removeClass("checked"),e.prop("checked",!0).parent().addClass("checked"),e.focus().change()}}),e.closest("label").add('label[for="'+e.attr("id")+'"]').on("click.styler",function(o){!t(o.target).is("a")&&!t(o.target).closest(s).length&&(s.triggerHandler("click"),o.preventDefault())}),e.on("change.styler",function(){e.parent().addClass("checked")}).on("focus.styler",function(){s.is(".disabled")||s.addClass("focused")}).on("blur.styler",function(){s.removeClass("focused")})};Y(),e.on("refresh",function(){e.closest("label").add('label[for="'+e.attr("id")+'"]').off(".styler"),e.off(".styler").parent().before(e).remove(),Y()})}else if(e.is(":file")){e.css({position:"absolute",top:0,right:0,margin:0,padding:0,opacity:0,fontSize:"100px"});var G=function(){var m=new T,s=e.data("placeholder");s===void 0&&(s=c.filePlaceholder);var o=e.data("browse");(o===void 0||o==="")&&(o=c.fileBrowse);var g=t('<div class="jq-file"><div class="jq-file__name">'+s+'</div><div class="jq-file__browse">'+o+"</div></div>").css({display:"inline-block",position:"relative",overflow:"hidden"}).attr({id:m.id,title:m.title}).addClass(m.classes).data(m.data);e.after(g).appendTo(g),e.is(":disabled")&&g.addClass("disabled"),e.on("change.styler",function(){var q=e.val(),H=t("div.jq-file__name",g);if(e.is("[multiple]")){q="";var b=e[0].files.length;if(b>0){var i=e.data("number");i===void 0&&(i=c.fileNumber),i=i.replace("%s",b),q=i}}H.text(q.replace(/.+[\\\/]/,"")),q===""?(H.text(s),g.removeClass("changed")):g.addClass("changed")}).on("focus.styler",function(){g.addClass("focused")}).on("blur.styler",function(){g.removeClass("focused")}).on("click.styler",function(){g.removeClass("focused")})};G(),e.on("refresh",function(){e.off(".styler").parent().before(e).remove(),G()})}else if(e.is('input[type="number"]')){var X=function(){var m=new T,s=t('<div class="jq-number"><div class="jq-number__spin minus"></div><div class="jq-number__spin plus"></div></div>').attr({id:m.id,title:m.title}).addClass(m.classes).data(m.data);e.after(s).prependTo(s).wrap('<div class="jq-number__field"></div>'),e.is(":disabled")&&s.addClass("disabled");var o,g,q,H=null,b=null;e.attr("min")!==void 0&&(o=e.attr("min")),e.attr("max")!==void 0&&(g=e.attr("max")),e.attr("step")!==void 0&&t.isNumeric(e.attr("step"))?q=Number(e.attr("step")):q=1;var i=function(a){var f=e.val(),v;t.isNumeric(f)||(f=0,e.val("0")),a.is(".minus")?v=Number(f)-q:a.is(".plus")&&(v=Number(f)+q);var C=(q.toString().split(".")[1]||[]).length;if(C>0){for(var y="1";y.length<=C;)y=y+"0";v=Math.round(v*y)/y}t.isNumeric(o)&&t.isNumeric(g)?v>=o&&v<=g&&e.val(v):t.isNumeric(o)&&!t.isNumeric(g)?v>=o&&e.val(v):!t.isNumeric(o)&&t.isNumeric(g)?v<=g&&e.val(v):e.val(v)};s.is(".disabled")||(s.on("mousedown","div.jq-number__spin",function(){var a=t(this);i(a),H=setTimeout(function(){b=setInterval(function(){i(a)},40)},350)}).on("mouseup mouseout","div.jq-number__spin",function(){clearTimeout(H),clearInterval(b)}).on("mouseup","div.jq-number__spin",function(){e.change()}),e.on("focus.styler",function(){s.addClass("focused")}).on("blur.styler",function(){s.removeClass("focused")}))};X(),e.on("refresh",function(){e.off(".styler").closest(".jq-number").before(e).remove(),X()})}else if(e.is("select")){var Z=function(){function m(b){b.off("mousewheel DOMMouseScroll").on("mousewheel DOMMouseScroll",function(i){var a=null;i.type=="mousewheel"?a=i.originalEvent.wheelDelta*-1:i.type=="DOMMouseScroll"&&(a=40*i.originalEvent.detail),a&&(i.stopPropagation(),i.preventDefault(),t(this).scrollTop(a+t(this).scrollTop()))})}var s=t("option",e),o="";function g(){for(var b=0;b<s.length;b++){var i=s.eq(b),a="",f="",v="",C="",y="",r="",h="",l="",S="",w="disabled",P="selected sel disabled";i.prop("selected")&&(f="selected sel"),i.is(":disabled")&&(f=w),i.is(":selected:disabled")&&(f=P),i.attr("id")!==void 0&&i.attr("id")!==""&&(C=' id="'+i.attr("id")+c.idSuffix+'"'),i.attr("title")!==void 0&&s.attr("title")!==""&&(y=' title="'+i.attr("title")+'"'),i.attr("class")!==void 0&&(h=" "+i.attr("class"),S=' data-jqfs-class="'+i.attr("class")+'"');var d=i.data();for(var p in d)d[p]!==""&&(r+=" data-"+p+'="'+d[p]+'"');f+h!==""&&(v=' class="'+f+h+'"'),a="<li"+S+r+v+y+C+">"+i.html()+"</li>",i.parent().is("optgroup")&&(i.parent().attr("class")!==void 0&&(l=" "+i.parent().attr("class")),a="<li"+S+r+' class="'+f+h+" option"+l+'"'+y+C+">"+i.html()+"</li>",i.is(":first-child")&&(a='<li class="optgroup'+l+'">'+i.parent().attr("label")+"</li>"+a)),o+=a}}function q(){var b=new T,i="",a=e.data("placeholder"),f=e.data("search"),v=e.data("search-limit"),C=e.data("search-not-found"),y=e.data("search-placeholder"),r=e.data("z-index"),h=e.data("smart-positioning");a===void 0&&(a=c.selectPlaceholder),(f===void 0||f==="")&&(f=c.selectSearch),(v===void 0||v==="")&&(v=c.selectSearchLimit),(C===void 0||C==="")&&(C=c.selectSearchNotFound),y===void 0&&(y=c.selectSearchPlaceholder),(r===void 0||r==="")&&(r=c.singleSelectzIndex),(h===void 0||h==="")&&(h=c.selectSmartPositioning);
174var l=t('<div class="jq-selectbox jqselect"><div class="jq-selectbox__select" style="position: relative"><div class="jq-selectbox__select-text"></div><div class="jq-selectbox__trigger"><div class="jq-selectbox__trigger-arrow"></div></div></div></div>').css({display:"inline-block",position:"relative",zIndex:r}).attr({id:b.id,title:b.title}).addClass(b.classes).data(b.data);e.css({margin:0,padding:0}).after(l).prependTo(l);var S=t("div.jq-selectbox__select",l),w=t("div.jq-selectbox__select-text",l),P=s.filter(":selected");g(),f&&(i='<div class="jq-selectbox__search"><input type="search" autocomplete="off" placeholder="'+y+'"></div><div class="jq-selectbox__not-found">'+C+"</div>");var d=t('<div class="jq-selectbox__dropdown" style="position: absolute">'+i+'<ul style="position: relative; list-style: none; overflow: auto; overflow-x: hidden">'+o+"</ul></div>");l.append(d);var p=t("ul",d),u=t("li",d),D=t("input",d),E=t("div.jq-selectbox__not-found",d).hide();u.length<v&&D.parent().hide(),s.first().text()===""&&s.first().is(":selected")?w.text(a).addClass("placeholder"):w.text(P.text());var z=0,J=0;if(u.css({display:"inline-block"}),u.each(function(){var n=t(this);n.innerWidth()>z&&(z=n.innerWidth(),J=n.width())}),u.css({display:""}),w.is(".placeholder")&&w.width()>z)w.width(w.width());else{var $=l.clone().appendTo("body").width("auto"),se=$.outerWidth();$.remove(),se==l.outerWidth()&&w.width(J)}z>l.width()&&d.width(z),s.first().text()===""&&e.data("placeholder")!==""&&u.first().hide(),e.css({position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:0}
174);var L=l.outerHeight(!0),K=D.parent().outerHeight(!0),W=p.css("max-height"),F=u.filter(".selected");F.length<1&&u.first().addClass("selected sel"),u.data("li-height")===void 0&&u.data("li-height",u.outerHeight());var Q=d.css("top");if(d.css("left")=="auto"&&d.css({left:0}),d.css("top")=="auto"&&(d.css({top:L}),Q=L),d.hide(),F.length&&(s.first().text()!=P.text()&&l.addClass("changed"),l.data("jqfs-class",F.data("jqfs-class")),l.addClass(F.data("jqfs-class"))),e.is(":disabled"))return l.addClass("disabled"),!1;S.click(function(){if(t("div.jq-selectbox").filter(".opened").length&&c.onSelectClosed.call(t("div.jq-selectbox").filter(".opened")),e.focus(),!k){var n=t(window),x=u.data("li-height"),I=l.offset().top,O=n.height()-L-(I-n.scrollTop()),N=e.data("visible-options");(N===void 0||N==="")&&(N=c.selectVisibleOptions);var R=x*5,B=x*N;N>0&&N<6&&(R=B),N===0&&(B="auto");var ee=function(){d.height("auto").css({bottom:"auto",top:Q});var A=function(){p.css("max-height",Math.floor((O-20-K)/x)*x)};A(),p.css("max-height",B),W!="none"&&p.css("max-height",W),O<d.outerHeight()+20&&A()},le=function(){d.height("auto").css({top:"auto",bottom:Q});var A=function(){p.css("max-height",Math.floor((I-n.scrollTop()-20-K)/x)*x)};A(),p.css("max-height",B),W!="none"&&p.css("max-height",W),I-n.scrollTop()-20<d.outerHeight()+20&&A()};h===!0||h===1?O>R+K+20?(ee(),l.removeClass("dropup").addClass("dropdown")):(le(),l.removeClass("dropdown").addClass("dropup")):(h===!1||h===0)&&O>R+K+20&&(ee(),l.removeClass("dropup").addClass("dropdown")),l.offset().left+d.outerWidth()>n.width()&&d.css({left:"auto",right:0}),t("div.jqselect").css({zIndex:r-1}).removeClass("opened"),l.css({zIndex:r}),d.is(":hidden")?(t("div.jq-selectbox__dropdown:visible").hide(),d.show(),l.addClass("opened focused"),c.onSelectOpened.call(l)):(d.hide(),l.removeClass("opened dropup dropdown"),t("div.jq-selectbox").filter(".opened").length&&c.onSelectClosed.call(l)),D.length&&(D.val("").keyup(),E.hide(),D.keyup(function(){var A=t(this).val();u.each(function(){t(this).html().match(new RegExp(".*?"+A+".*?","i"))?t(this).show():t(this).hide()}),s.first().text()===""&&e.data("placeholder")!==""&&u.first().hide(),u.filter(":visible").length<1?E.show():E.hide()})),u.filter(".selected").length&&(e.val()===""?p.scrollTop(0):(p.innerHeight()/x%2!==0&&(x=x/2),p.scrollTop(p.scrollTop()+u.filter(".selected").position().top-p.innerHeight()/2+x))),m(p)}}),u.hover(function(){t(this).siblings().removeClass("selected")});var ie=u.filter(".selected").text();u.filter(":not(.disabled):not(.optgroup)").click(function(){e.focus();var n=t(this),x=n.text();if(!n.is(".selected")){var I=n.index();I-=n.prevAll(".optgroup").length,n.addClass("selected sel").siblings().removeClass("selected sel"),s.prop("selected",!1).eq(I).prop("selected",!0),ie=x,w.text(x),l.data("jqfs-class")&&l.removeClass(l.data("jqfs-class")),l.data("jqfs-class",n.data("jqfs-class")),l.addClass(n.data("jqfs-class")),e.change()}d.hide(),l.removeClass("opened dropup dropdown"),c.onSelectClosed.call(l)}),d.mouseout(function(){t("li.sel",d).addClass("selected")}),e.on("change.styler",function(){w.text(s.filter(":selected").text()).removeClass("placeholder"),u.removeClass("selected sel").not(".optgroup").eq(e[0].selectedIndex).addClass("selected sel"),s.first().text()!=u.filter(".selected").text()?l.addClass("changed"):l.removeClass("changed")}).on("focus.styler",function(){l.addClass("focused"),t("div.jqselect").not(".focused").removeClass("opened dropup dropdown").find("div.jq-selectbox__dropdown").hide()}).on("blur.styler",function(){l.removeClass("focused")}).on("keydown.styler keyup.styler",function(n){var x=u.data("li-height");e.val()===""?w.text(a).addClass("placeholder"):w.text(s.filter(":selected").text()),u.removeClass("selected sel").not(".optgroup").eq(e[0].selectedIndex).addClass("selected sel"),(n.which==38||n.which==37||n.which==33||n.which==36)&&(e.val()===""?p.scrollTop(0):p.scrollTop(p.scrollTop()+u.filter(".selected").position().top)),(n.which==40||n.which==39||n.which==34||n.which==35)&&p.scrollTop(p.scrollTop()+u.filter(".selected").position().top-p.innerHeight()+x),n.which==13&&(n.preventDefault(),d.hide(),l.removeClass("opened dropup dropdown"),c.onSelectClosed.call(l))}).on("keydown.styler",function(n){n.which==32&&(n.preventDefault(),S.click())}
174),M.registered||(t(document).on("click",M),M.registered=!0)}function H(){var b=new T,i=t('<div class="jq-select-multiple jqselect"></div>').css({display:"inline-block",position:"relative"}).attr({id:b.id,title:b.title}).addClass(b.classes).data(b.data);e.css({margin:0,padding:0}).after(i),g(),i.append("<ul>"+o+"</ul>");var a=t("ul",i).css({position:"relative","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}),f=t("li",i).attr("unselectable","on"),v=e.attr("size"),C=a.outerHeight(),y=f.outerHeight();v!==void 0&&v>0?a.css({height:y*v}):a.css({height:y*4}),C>i.height()&&(a.css("overflowY","scroll"),m(a),f.filter(".selected").length&&a.scrollTop(a.scrollTop()+f.filter(".selected").position().top)),e.prependTo(i).css({position:"absolute",left:0,top:0,width:"100%",height:"100%",opacity:0}),e.is(":disabled")?(i.addClass("disabled"),s.each(function(){t(this).is(":selected")&&f.eq(t(this).index()).addClass("selected")})):(f.filter(":not(.disabled):not(.optgroup)").click(function(r){e.focus();var h=t(this);if(!r.ctrlKey&&!r.metaKey&&h.addClass("selected"),r.shiftKey||h.addClass("first"),!r.ctrlKey&&!r.metaKey&&!r.shiftKey&&h.siblings().removeClass("selected first"),(r.ctrlKey||r.metaKey)&&(h.is(".selected")?h.removeClass("selected first"):h.addClass("selected first"),h.siblings().removeClass("first")),r.shiftKey){var l=!1,S=!1;h.siblings().removeClass("selected").siblings(".first").addClass("selected"),h.prevAll().each(function(){t(this).is(".first")&&(l=!0)}),h.nextAll().each(function(){t(this).is(".first")&&(S=!0)}),l&&h.prevAll().each(function(){if(t(this).is(".selected"))return!1;t(this).not(".disabled, .optgroup").addClass("selected")}),S&&h.nextAll().each(function(){if(t(this).is(".selected"))return!1;t(this).not(".disabled, .optgroup").addClass("selected")}),f.filter(".selected").length==1&&h.addClass("first")}s.prop("selected",!1),f.filter(".selected").each(function(){var w=t(this),P=w.index();w.is(".option")&&(P-=w.prevAll(".optgroup").length),s.eq(P).prop("selected",!0)}),e.change()}),s.each(function(r){t(this).data("optionIndex",r)}),e.on("change.styler",function(){f.removeClass("selected");var r=[];s.filter(":selected").each(function(){r.push(t(this).data("optionIndex"))}),f.not(".optgroup").filter(function(h){return t.inArray(h,r)>-1}).addClass("selected")}).on("focus.styler",function(){i.addClass("focused")}).on("blur.styler",function(){i.removeClass("focused")}),C>i.height()&&e.on("keydown.styler",function(r){(r.which==38||r.which==37||r.which==33)&&a.scrollTop(a.scrollTop()+f.filter(".selected").position().top-y),(r.which==40||r.which==39||r.which==34)&&a.scrollTop(a.scrollTop()+f.filter(".selected:last").position().top-a.innerHeight()+y*2)}))}if(e.is("[multiple]")){if(_||k)return;H()}else q()};Z(),e.on("refresh",function(){e.off(".styler").parent().before(e).remove(),Z()})}else e.is(":reset")&&e.on("click",function(){setTimeout(function(){e.closest("form").find("input, select").trigger("refresh")},1)})},destroy:function(){var e=t(this.element);e.is(":checkbox")||e.is(":radio")?(e.removeData("_"+j).off(".styler refresh").removeAttr("style").parent().before(e).remove(),e.closest("label").add('label[for="'+e.attr("id")+'"]').off(".styler")):e.is('input[type="number"]')?e.removeData("_"+j).off(".styler refresh").closest(".jq-number").before(e).remove():(e.is(":file")||e.is("select"))&&e.removeData("_"+j).off(".styler refresh").removeAttr("style").parent().before(e).remove()}},t.fn[j]=function(e){var c=arguments;if(e===void 0||typeof e=="object")return this.each(function(){t.data(this,"_"+j)||t.data(this,"_"+j,new V(this,e))}).promise().done(function(){var _=t(this[0]).data("_"+j);_&&_.options.onFormStyled.call()}),this;if(typeof e=="string"&&e[0]!=="_"&&e!=="init"){var k;return this.each(function(){var _=t.data(this,"_"+j);_ instanceof V&&typeof _[e]=="function"&&(k=_[e].apply(_,Array.prototype.slice.call(c,1)))}),k!==void 0?k:this}};function M(e){if(!t(e.target).parents().hasClass("jq-selectbox")&&e.target.nodeName!="OPTION"&&t("div.jq-selectbox.opened").length){var c=t("div.jq-selectbox.opened"),k=t("div.jq-selectbox__search input",c),_=t("div.jq-selectbox__dropdown",c),T=c.find("select").data("_"+j).options;T.onSelectClosed.call(c),k.length&&k.val("").keyup(),_.hide().find("li.sel").addClass("selected"),c.removeClass("focused opened dropup dropdown")}}M.registered=!1}); 175 176/*! 177 * jQuery Cookie Plugin v1.4.1 178 * https://github.com/carhartl/jquery-cookie 179 * 180 * Copyright 2006, 2014 Klaus Hartl 181 * Released under the MIT license 182 */(function(r){typeof define=="function"&&define.amd?define(["jquery"],r):typeof exports=="object"?module.exports=r(require("jquery")):r(jQuery)})(function(r){var m=/\+/g;function d(e){return t.raw?e:encodeURIComponent(e)}function g(e){return t.raw?e:decodeURIComponent(e)}function x(e){return d(t.json?JSON.stringify(e):String(e))}function j(e){e.indexOf('"')===0&&(e=e.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return e=decodeURIComponent(e.replace(m," ")),t.json?JSON.parse(e):e}catch{}}function f(e,i){var n=t.raw?e:j(e);return r.isFunction(i)?i(n):n}var t=r.cookie=function(e,i,n){if(arguments.length>1&&!r.isFunction(i)){if(n=r.extend({},t.defaults,n),typeof n.expires=="number"){var h=n.expires,a=n.expires=new Date;a.setMilliseconds(a.getMilliseconds()+h*864e5)}return document.cookie=[d(e),"=",x(i),n.expires?"; expires="+n.expires.toUTCString():"",n.path?"; path="+n.path:"",n.domain?"; domain="+n.domain:"",n.secure?"; secure":""].join("")}for(var o=e?void 0:{},l=document.cookie?document.cookie.split("; "):[],c=0,C=l.length;c<C;c++){var s=l[c].split("="),p=g(s.shift()),u=s.join("=");
182if(e===p){o=f(u,i);break}!e&&(u=f(u))!==void 0&&(o[p]=u)}return o};t.defaults={},r.removeCookie=function(e,i){return r.cookie(e,"",r.extend({},i,{expires:-1})),!r.cookie(e)}}); 183 184/*************************************************************************************************** 185LoadingOverlay - A flexible loading overlay jQuery plugin 186 Author : Gaspare Sganga 187 Version : 1.4.1 188 License : MIT 189 Documentation : http://gasparesganga.com/labs/jquery-loading-overlay/ 190****************************************************************************************************/ 191!function(a,b){function d(c,d){c=a(c);var e=c.is("body"),g=c.data("LoadingOverlayCount");if(g===b&&(g=0),0==g){var h=a("<div>",{"class":"loadingoverlay",css:{"background-color":d.color,display:"flex","flex-direction":"column","align-items":"center","justify-content":"center"}});if(d.zIndex!==b&&h.css("z-index",d.zIndex),d.image&&h.css({"background-image":"url("+d.image+")","background-position":d.imagePosition,"background-repeat":"no-repeat"}),d.fontawesome&&a("<div>",{"class":"loadingoverlay_fontawesome "+d.fontawesome}).appendTo(h),d.custom&&a(d.custom).appendTo(h),e?h.css({position:"fixed",top:0,left:0,width:"100%",height:"100%"}):h.css("position","fixed"==c.css("position")?"fixed":"absolute"),f(c,h,d,e),d.resizeInterval>0){var i=setInterval(function(){f(c,h,d,e)},d.resizeInterval);c.data("LoadingOverlayResizeIntervalId",i)}d.fade?d.fade===!0?d.fade=[400,200]:("string"==typeof d.fade||"number"==typeof d.fade)&&(d.fade=[d.fade,d.fade]):d.fade=[0,0],c.data({LoadingOverlay:h,LoadingOverlayFadeOutDuration:d.fade[1]}),h.hide().appendTo("body").fadeIn(d.fade[0])}g++,c.data("LoadingOverlayCount",g)}function e(c,d){c=a(c);var e=c.data("LoadingOverlayCount");if(e!==b)if(e--,d||0>=e){var f=c.data("LoadingOverlayResizeIntervalId");f&&clearInterval(f),c.data("LoadingOverlay").fadeOut(c.data("LoadingOverlayFadeOutDuration"),function(){a(this).remove()}),c.removeData(["LoadingOverlay","LoadingOverlayCount","LoadingOverlayFadeOutDuration","LoadingOverlayResizeIntervalId"])}else c.data("LoadingOverlayCount",e)}function f(b,c,d,e){if(!e){var f="fixed"==b.css("position")?b.position():b.offset();c.css({top:f.top+parseInt(b.css("border-top-width"),10),left:f.left+parseInt(b.css("border-left-width"),10),width:b.innerWidth(),height:b.innerHeight()})}var g=e?a(window):b,h="auto";d.size&&"auto"!=d.size&&(h=Math.min(g.innerWidth(),g.innerHeight())*parseFloat(d.size)/100,d.maxSize&&h>parseInt(d.maxSize,10)&&(h=parseInt(d.maxSize,10)+"px"),d.minSize&&h<parseInt(d.minSize,10)&&(h=parseInt(d.minSize,10)+"px")),c.css("background-size",h),c.children(".loadingoverlay_fontawesome").css("font-size",h)}var c={color:"rgba(255, 255, 255, 0.8)",custom:"",fade:!0,fontawesome:"",image:"data:image/gif;base64,R0lGODlhZABkAKUAADQyNJyanGRmZMzOzExOTLS2tISChOzq7ERCRKyqrHR2dNze3FxaXMTCxIyOjPT29Dw6PKSipGxubNTW1FRWVLy+vIyKjPTy9ExKTLSytHx+fOTm5GRiZMzKzJSWlPz+/DQ2NJyenGxqbNTS1FRSVLy6vISGhOzu7ERGRKyurHx6fOTi5FxeXMTGxJSSlPz6/Dw+PKSmpHRydNza3P///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQJBQA0ACwAAAAAZABkAAAG/kCacEgsGo/IJO1SEEBAosJFSa1ar9jswQQBeAEgyyFLLpvNL893DXC9zvC4XDggsb+EwXzPtyZAd14gCX2FhkQRgIEAIYeOSAMWIgoxY1UpioEpj5xCFx6ZACQVH1QjFIt5nY8PIV1sKCtUaYsOpVcfb6tWM6iBJlUnJqEAJidYKxYaFbq7SSXEXxQPVQ8VEjBQFVNXDypeKCPOSR8ZiwAox50rLF8Z40kV0V7Tqw8WXgQT8EgzDIvAdm1I4WFAM35EPqSAcYeAul25ECZ5EYPAGgH7JGo08mFACAcOChy4tbHkkA8PDppcybKly5cwY8rc8+HEiBYDRs509qKF/goCCAhIaEBy56MBFtcQaGCU04ukbFgsaErlQAQFETZgGbAIRAmqEx0oskDNirlFMcAieWDHCwtZVkqce6fWyAMBXyQ8pHKCYcOMdROOEIBBQIssAQI5KBs44YEWcLGcELvGWONCHyZ40OBhQtHLoEOLHk26tOnTqFOrXs26tevXEj+0MCFDBTPYSi64QPAFhgFLrl8c2HCC5IsUvNeAiMB49YsCFBCwICrkgIRABICvboEBz1QaC7oHmuEa1JdBQhZAZfOdtXlBdE8oCERBa+tTX94KeZ58TYjPqfWkAAsaiDPEcX6B4UFzrV1wAoNCbBCCCSG0h9uFGGao4YYc/nbo4YcghijiiCW9sMEMG6i04QsjKKCICICJ9sACE6wAoRILcMAGBRZe9kIIDKDAQALcWBGCYgDWVcIrACBQQpJHtHOHAHs1dt0aGhRJhZRR2QeaCGwooKUSBgSiwY1qRcBGDCpCkqAgh4l2wpUAKOBlFS9UQIEiBFRQ2gsDFKAHGR8skEAIKSwAJYmMNuroo5BGSkSbHa6wmQEljNnJBzOMUGVJMxCgCAwWfOrIARpggAIFBSw6zgl4sZGAq3uc8M0ag5bUAApT0jrHAG8CoMFKBfQnDZp9tDDlSh3wyoYEvsoxgrNfOLDSA2Uq5ycuKzQAGaVHnOBCJrGwtEKsUwDAEAOyRbyQgQAoIMBBAeAasUEMArBgQq4rndCCB4myWwSwa8DAbzXDPRBtU/M9++E/O35I5xcCfNgAMdt2+EACe4JAAZsgvrBABRUsUK+knAQBACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8gk7bNKaVSx2UtJrVqv2CytwgJ4AZTCVEsum7ED0veLaJzfcPhDsV4LTvG83jpR170oLXuDhE
191QdBH9eMBVXHwcHF4VnLwMJGQtXfYkAKB1VlBoMFAIekZJYLxMUXiAQBitVc5sseEovATB1LBMfp1Yjq3UyD1UtKH8gBVUNIIkSsL5KDxabjFQfBYhfMCljSQ8Cm8m90UgzXYkaVi8LMSoKIVJVExibACbE5Ucj2n8CvsbsScinr8gCBpvUnaJnTwPBgkMeGNhUwtcDdIlSkINI5NyfgdE6NPt4gOORCQJycbKwodyHEMfszDCJ5ESDFClGPLTYwgT+i1EhWtIcKu3AhhMbiSpdyrSp06dQoya5sOKEN6kcTyRQIEBGgFpYC14woRIACAklw+oLkMjATrVJUhWQ16jfGgoT4Fb50AIRCmtWLoysE0gvlRfUvGi4agtCok6GbYX44iApFTr+hEau6YKFAc1WOsT8Mm6zLataXlQIZrYEY9N6PjwYkKLFBcuwc+vezbu379/AgwsfTry48ePIk1950CFFA1PKr6GEQJ1ChdfIcS/gUAdDC9zFHzTI0ILgiwiDv6iAjjxFLgQJhpzQkIhAWuQXEHohkO8C/T8UgGbcA/qBkc956SnG3nHuAcANESuEs0Yg4BH3QgsFlEfEBzP+CNAMCAR8F91eM1QwwVsjpqjiiiy26OKLMMYo44w01gjXBy/kWCGLFxQgAgEsxADWbw9AosUDISCwhgUowvbBBBYoYMEA2CExgZJrwFCRb/l9wcJMV0SQiAm/ZVBHDDsWMdkfGqRpWAJ1hFClEQ0kEsJvE5S1CBYbSFAHAQLq9kIMx4AQQ5NIrKABCiDAIAAmwX1wVBkPTFBBBwvaqOmmnHbq6aegKiHpADrR+EIIBCCAggILuKnHCw1IwIADgQ71QQx1iABNNC806AUFmdJ0QoFfaFTOASLUkUJTE9jlRWXlLMDas01tQKwXIbgKxwEy1KFMUx78mRcWJ0wwwgFZ2grxQQn9CIBoVgqMRIAYjUxgAAkkKNDBnEY80JMGMdRK1AW0FbABv0WcgBEABOy63APpGlbAHx7IKGYdZMZY55kynuDnFwHOeIAHLLDgAKQzvnDCwaEqFQQAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKTwMqtUZheldEqtWq/ClQMDAMBMC6x4TMZeZKCuWnAou9/wGERN93zg+Dz1JaHTWSd6goNEJwJ+ahQrhIxJLxuBVQ8iiF0sG1QPJSYqHhONZh4YIBAsJQ9UEWmIJlQTHH4BkaBSJxZ+MCl3tYd+BItSGwyIICGotEoFMIgos0ozGnQCA1QhlQAUn8hIDwbXBVUnAyEhLSe7Si8s1wAF6NuFMtceoBcE7DEv8EYP0ZUpoD6s+7bPyIcEq+iAaAPKwzUUIwry8+ZHF60TFCqF0CexyAMHLFCgkFDhGK0BAhKC8BClo8EFA0Y4o/VhRQoLCjw04Oiy5/6RDw8u8PRJtKjRo0iTKh304cWDB++W7jtQwoUBFyU2RFXyYUIICwFabJX6TMGyLiAUaJvyogSFOQBQxCBb5YCChGpYmFQyAAGuDHSlvFA1j8otRApaBj5yQt41FoqTwELEIsziIxsGVvo1hRJlTJeNHNCMiABoJTHwdnEwNPQSE+wktD5yoA8dCpZdE/nQAsW1FlRqmlglIbduIg9CqAbA2grQE0+PI+FNAQYIGCwK7JWe58GEFiMicx9Pvrz58+jTq1/Pvr379/B9PtoeX8oFUTAQmFgxtj6RC7BJA4x/MPFH
191RAtcKJTAbO3NwAEGHMwwxAcxVKIBfe05oIYDRP5UiMiF/mm42oEJ0pECg+zNEJIAEg5xwWFrnFZfgVFdEAMB1zmglX/BncPjj0AGKeSQRBZp5JFIJqnkktx90B+RLyxQQAAVGHjkCw0M0wWL6b2wQgvGUZGZH7KdxxsLBHDQwBUNIALDWuRNEqMVKbgJnHkPZGRJmHyphsKA5L0QQBogOIAhEhf4syGKx52QggYxiDfFfQSgQIAHhwr5wQIj7Mjkp6CGKuqopJZqxQMrMKRkBwJggIEBgNLkaAAdZCrRAmd1IYGqtKiIlgtIueAHCHfS8oIHKvHqk2N0ZPBkHon6USxRDilEDTLJKTRTTyvco4YG23J1gY9XLHCXF08hJNWCCRRQ4IGMU5yQgAIyhKDsFDal0IKtEn1wwQYb8OtRAHCBYICkQq6QaxfXGjkDIhUguYFvaoDAp5AvxHDWSgL790IFJmignakk7xMEACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8ik8HVaLU4vpXRKrVqvy4KKRFBkHtiweBxOoABoACxEbrvftMU5jYaN4Pj8NAKipy16gYJDJn5pEoOJeR6GaBpWJy0VM1GKVi8jFiwCMRsfVCMIhiANVCcBcyAsE5WWSh8Vc2giM1UOfXQarUkvFrhpJAOuUjMMhrpUFzEUaCghB1QTv7kXw0kxEKMnVS8bCxMbYFQBjQAEE9ZIjI3oihrlMB3pRzHTaduKDuUEd/NFEwQMsfikaEA5Afj8DfmQIVuac65evPODooXCIxUUsGDhYIG1Aw5kUahwEcmDDQd2uXowIEaMAh5LypxJs6bNmzhz6tzJM8/+hwUNSlRYoHLKiwElOlTrWeVBBhYw1LCIsZTKCg0EYKAQsYLplA8JRNGBwIbKAQl+KGzwqqRDwEbCpjQYFYEtkhchygFwQCXvMYJ2iVwoVA7RnkaPAhd5oK9wtKh0QJBUTORDCntp6k55EAIyGhPiKA9ZIaARCmjJCghAMTWhaCEfOshCA2FylQ8vHrwA/HrhBhMEUBDQsIB3bzgXNrg+zry58+fQo0ufTr269evYsy+ZUCJBgRnGtRtRxgAGBBgMElR90cGABBNEs58wYA+EhW0vEnjGUKGo9AKYAQBCATRMwAwdAqx1XWnliEBDBvbAYJF1L4jVCAw0pOBQGhL+XveCZ4ZgOAAJfrAQk3UMNiIADZz9AkIG/kWXgl4pCPFABQIQIMEAoVl3ggKNKLCceENsYIEsCDigIJFHsBSDByEMEB6TVFZp5ZVYZqnlllx26eWXrlwwQQcjDHnlBi6cAYMGSzrHxJRK4LUhACZAB5IA911xQIrNtNkbXn2A4AKcR6xwIIe1NNdLGirEeMQFKqTVY2+wqEmgFZWmAcKEzj0wQgEjTErFAhpQoICUYKaq6qqsturqq7CyekIMMijQgqOC4KYbTi/IkAYEMeCax1EahWDmRQbRwUJXwyzAILA3zUgHDO240gIGh9zUQYknWrIAC2mUVdMLaKEBQgpXwuLxQQkicHTsRRuEoIAGBVRFxQcTRBDCCOka0YSoND1wwgWEHhEbBRCAQEADBYt3QrloMPAukQccqgZqWV7gaxosTCzewSAoXEHDRC6QQAzFxaqyJUEAACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8jk8HW5vJTQqHRKrQ4/q5jBEFt8rOCwGDzjgAAAEGsybrvftJcETQdwHvC8PjqA1dEgLXuDhEMlZ38gKYWMeg0Qf2gFVl+NYActIQkzeFInFJEoJ1IvAyowICQhF5ZTKxKIKKtTJSh1IJNRHw0EfxajrUovGn8wJZVQLxUKKCgKFZ1QD6CJGcFKAxiREk9SHxcbGyfIUB2RaAqs10cFCJEE3Ywp5wACG+tHLbZ/LPGFDfQkAMNH5AKHSCHIETrhJ5IHfwSFzOhFx8RARh8yNKQj4GLEIQs8KNBQIJqlBxkEwIBBQMW9jzCPfNjQocIEkzFz6tzJs6f+z59AgwodKuXBggkrcE45sAAiUSgzTHCgwMHCBIVKTgSgQIJDCqxPjUxg8YfBjCkXVPyJADaskAMizlFwemQAIjoEDrhF0mBfpAFS5hUDvNeI4HMxpBSIBINN4SIZ6AHIBWUFRTrcHhcZcPnPAlIFLlNwrHnIAwvnNFB5MSGEgxReShfZoOCPgBWUPrQt/SCFAgoSSsoeTry48ePIkytfzry58+fQoxN8sWDECrrSxWpgQIKFhs8FWySoMC76iwLa6pCoUIk2xxHRZ6T/QwH3C9R1FHhcHkFyAhorHFQHAfA9Vxs9qi1A1oCEOSeDZKo9YIJtej3ngWQhSLQgACj+tLDbcX2c05gQM8VgggcbYJfcCyHcBUgKKkp3ngAowIACBxXEmB0NGwxQwQD77SjkkEQWaeSRSCap5JJMjvHCDAM0teQHHQhAAAoYSNCCjkV8cMAKG3zo1gMxQLKWmEtUIAMLEmTAJVEdzFcHBA2WcxkMHRB3AX6poXnaHxIQt8GGkVBQoRIXEFMHC4JScw4BLwkTwh8OEAeXZBQodcQCAuAVaWksSlbpFA8U8FqQj73yqKY7jjBHHQKQduQGKWgggQYphDnlAxc8gGaTwAYr7LDEXkNdASVc8KseH7yJTwJmroHPASkEMICzrVzgFwAOsDrICw6gQYKsOS3wh35d16ywoTU8XWAmGiZ4u8cDagEAQ4E8hdAQC3W2soIJCpQgL0EXVOBBCFeB8QK2XQ4Mk25goMQCC24y2YI7HAqi5AcJ1JHAstA10BAMGiv5QAIEUJCAw0I2W+zLOgUBACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8ikcslsOp/Q5WOQSAwe0ax2q724SAAQyYPlms9oWggEaIdj6bi8+cC43YTyfM+nLWB3bRAbfYVyB4CBMCeGjUMXAxUtBy9PKoEAGk4fBykqEh4TH45NByqJAh2VTQssdyyErDJsbSgNo6RJLw6BHCubCyEaGjELuEsvFrRuDAu5SQtggQXHTB8XJ9VLF4l3IHDPRx0omCHaewuYbQ7hRxvSdxWOJ8t3Ie1Gu4Gwjh8imDAG4DPywAQMEDAkiCI1gUKgGOcGflhRYYKefhNMUKAgIcXAj0pebFhwISLIkyhTqlzJsqXLlzBjSrlwUaajBxkMqDBQ4UL+lA0BNIQ4YJOOgW4IPPhs8qEFATcIJhQN6aBem3tNTly6I2HVVCMzXGEiYLLICjt3UBD9aqQFWkyMmKx4mjYuWyId6GKqieSBhUCa7hbZ8A8TiyczFNCS8EswkQ8prIKQt2lDixgtNpT9+iDGMhAp+FpznOTDhhgOUmQjzbq169ewY8ueTbu27du4c+vG9+KE193bEkgQoCDFbxovDmygtPvDBAnLIGhYS6OzHRQR7N4+IUOdgzIlusHwmLuD1TYEnL3Y6kbB0tsR1LXpgFxBIAnaaweQD4CyZ3vH0VaBfDBIRcMJVbVhQiy4bSBWIO4N8cAMFYlGW1N6tcHCDMD+KTGDRgRQ4ACDHSaxwgQHbFbiiiy26OKLMMYo44w01mgjEheEIAAFAiSQXxMvPBCgYx8M4NArBjoRjAUhzKCiTSsUFogAFhqxwixtCPCeYy8kcF4bLTAV2R0FtHaBAfyZAGR8d0TQmlb8KeBEBQjcIRBrD/AinwdOeEELGa19UEE3gYwAxQYVaPbaAy6cxyeMJ3hATi1KyThFAh6kYFGNHzx546egXvjAAQesZmkHDgyngY8xfhBBhiAY0FhKQb7gKRoNQKCOCVt+dEAIDCgwwK1cXPCgIregFAEtAsxayACTquPBkOF0Vwt9jRRQp3wmVJmLB26w4EwjLWzrHbVTz2xgAgsCVEDsFiccG4i7KT2wAHWOpCCfBCSyNoMLHoxLhwljLeRaK1n2q8QDFQhAAAoiesvWOOgZCsUDG8xQkmwIA9AsjR+MoIEJBodq8skDBQEAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKRyyWw6n9Dla1IqLV7RrHarfUQoMASrhOWaz2haAQJoA2CTtHzuZLndGrp+X8Tc2wJ8gnoCfwB5g4lDHxcbB2VOFWxuMAtPDxMpEQMnik8NKhwiKReXKSwwMAIVkEsXAShtICoHnkwTfm0wEQ9PLwstLRutSh8ZMH8mxLZFGn8EM4oPhX8o0cxHL3Z/A4ovsX8wDdhHHzLhcYkvFIYoI+RHDX8KnYkfAYYCvfBFHykEMFBo2GDrgAYQbggQ5HfkxABL2E4U0KDAw0KGGDNq3Mixo8ePIEOKHEmypMkPExIESLEiy4cBBWYsM3mkAAEIICBwaPHhyf6Kc20UlKKZpASyOyjSMXkRAKGbFESRXFBgCIADJyck/JER9ciCbX8CNTlB9Q6irkRWUAvr5MUxNyBaoC3ywETVGE9OhABDIcbMriMI/GFxscmDBRNW7JtL5MMIsBJm9GQ85/CEYZQza97MubPnz6BDix5NurTp06gZTghgIUZhIYxODD19wgUCWRgKtBqggoWKAZNJvwgxyQ0GnkJWsGvD4hrpDSSqahgaozgIvKVHVAVAYWEIpwBAhDDdYTsFiCNyAXBnegG4PxLqvSjAAAYFVqYfuDAEokLwDydscEJwpa2gAHggBLBYakY8UIACAmggF4MUVmjhhRhmqOGGHP526OGHIG7xwgABmBDBCgReeIBdlHgwmxMrDHBAinNdYAF4skQARQMCECCBUpR1oB5SCyqhlhsy/EXTBzFsB0A3TczAgBssFNnVcE5WgJUBsoSg5EkZ4HgHkEtsEIICMdST2QzLPUMjgwW810ZSGn5QgQAogICCAgN8idoHBwzQwgRqhmjooYiW9sIDfqb2wQoFeOBBAu/U2YEAxZGQQaO2fPDCm3xsIFg
1911BYCKzQsteJBBoYJ8wGVVArSk0QC5BMCpGSdEVxUME2bUZBscsLrHDEP+UcJGLUyiTF4ZCIAAAjJU8CISom4X10YPZKCAA68pcUBZcFkwrREfqLAdC1QQYWtqgw6IGV4Efk5w1B9+BTmqIectYYycAHhgZVQROAlCAU2YKQALJkBJ2T0CJ3BhwNYSbGEL9z5DZmp1bRfAuqVtAK4bJoxL4QYpCBCQBNJqFAQAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKRyyWw6n1Dma3P6RK/YrHZhEYhCB614TB4eOCAAAGS6lN9wZ0RNBwzi+HxRU1cn9IB4Ln0AFYGHRS8XD1EzKHUUJ09TJSUDjIhOKxEaLgMvkxUCKCgKE1ZNLwUUajAumJlKDyJpABQtqE0fGy0Dkk8TJH0xsUsZfQq/gR8hhJHFSSZ9LCuILxaEBAvQSDF9EsqAH97TbtxGJwx0MCm5gQssfSnnSCsmBBK4sR8zIjAwKEKAokcQyYMBAza4K8iwocOHECNKnEixosWLGDPSu9ChxISBUR6E0dhkgQAMMEiYGOnkQgQYAAhkAEnSyAJhdZI5+VABwf66DTWPfPBQiw6IO6k89CkQ1MgDFYQAEEsVoI+hpkReQCU0z8kAdWoomMM6JEXRVtt2ttAgwcQpskROGKgDIgQsJydO3IUr5EAICigEFNjLV8yHDw8OF17MuLHjx5AjS55MubLly5gza05ysMGChZuHvKhAAQYEGAqqEXnQosCnyx8aYPjGkkYEnxhKXD6xlW4GVBcI0OFAU/KG2YRMYApOh0XxyBseJR8bAgIAGEwtn1AQNUauCyVitHge+UUJmHVYACWiOLMq4WoEfA595ESBFANA09/Pv7///wAGKOCABBZo4GMfXDBAATO8oN9mDxTgkxocjBfFCyeQ19QLGf5MSAcBE0CxggYCBBAOWSsIEJUGk0izxm+FNSBdHzA8aMQF3KnhgYYkVYAeIYQh8UEGMBHQgY0aDYBTHwRA8cAIDAYZFI5RheBfin208d8GDgjAggQpnMjfBwcsIOaBaKap5hgYHrCBlKGtEIIMLIjgCY9xKFhABi2cec4IEpxFQAJIlrGBBSRAAAIGMqRV0AqBEgLDCIc8IMNZAHCgGj0vmBUVABLgOcYxUZkgKiAX8PEpCuvpIcOnAmzKzQUifAoACkjpwUpUFIS4kapRoSCrQRMEoIABMSxwKg0SfKoeQZ1iSocAhT4Qg4cAkFBCoTQU8KkDcCJi0qctMEEkIWsYULrECSoyOQNDHyhJSAiFbsDBpxpwu0COaoDILSInOEABAQSokB8TFczYBwWOKvHBBDHE0EG43Hxwwga1LVHAj0yqG5qMn2qzn72fKrCsZOf2gYKv+z2QAHxhXdXfCxN4IIECMazwbyBBAAAh+QQJBQA0ACwAAAAAZABkAAAG/kCacEgsGo/IpHLJbDqf0Kh0Sq1CLxmNpfWyer/fiwkGAKBSXbB63RyAymXCgU2vFzNw+MbOp7fyADBzfYRhCm8AICFpTg8HGxcfhU8XLSkle1ArHgIKKSdPHwsuHCwmI5NOLiiBGitRLyegUAcKeRSDqUkLEHAgMZKFDYhwEbpKFYAmD4UfEYAAGsdJM4CLk8nW00gfJnACC6kbAnkoudtFDxUeFSfBzSsKKCgS4ej3ShsbzPj9/v8AAwocSLCgwYMIEyr092LFiFcLC71wQQEDhQCznhyIoCJBxohHXnjLY+LCkxMm3oCIwAhkkQms8oCY8WQCg2/8XBYpQQZQ/oUnKzjAUdBSp5AWPfO0CFWCBQoBE4wauSACEItzTEQN2PBO6pABLOBQaNHVqxVRBTwUWFDW7JcPbd3KnUu3rt27ePPq3cu3r9+/gAMXeXGgqGAiHzaYQACDRIqcQkR1gOh3BjlfASAP4IBBAOW9D0IQizOAiAE4AfxesAUIRAYiGuB4UM1a5ushI5x69hsaGoHSQ7Rmqhw2jwPIh2l8WKEBBogzyJMPcWRYuvXr2LNr3869u/fvgU+MqDAhevIHGRigQNC5Q1ydLy4cePA+5Mg8EBKYj/hhgoReCLjAVRMFQEOaWSPc5IsKHyFBlYFleLBfQg+c1loBTMxAAIQA/gjQYEQzFAeIAkxMsCGEAmAVkU0GSsDEARRwqMGHC50ggYEOMCEShynUh9AHMYwWSFRMnBAjNDOa9UIAMQFAQAM+EjGAAKO5ItcHLXhgQghshbJBASZo4EAFJmn3wQsPvBAleGy22WYs9G2njgcGOJDBgJMkNsAAK1S3zQkuIAAHBBIQSQgWIpBAAAcB+KnLAy70YlWZfDiTVCIWTDjJABhAGAMhKwgZSAn4vBADhwIQkgCEJqxpxwsecEgAIS5AqICmfZiKahMfHNBBBAlMEEkTpxpogqOFDNAkIJ8y0YJQZUCggT1LrHBpGSD8hM8FDohKAI0vHZmHBJQm8UEAWEIu488JDgDCACpL7AgNCCk08UAKR8IQQrn9DOCABBqUgKsQCygIjQKuCqFPwghNQAKKyO61gsEjMmyXvNBgaN0KIg41MF8DHBKtCcNZ98EJA6RA3seEBAEAIfkECQUANAAsAAAAAGQAZAAABv5AmnBILBqPyKRyyWw6n9CodEqtQj+TSGZl7Xq/rwIBAmGNvuj080QCuAGah3pOL67ebtapzp8fMHgKF32EYCkEICAUA1EfFycvhVEXK3tRLwMhMQsfUCcZKioRB5JOByYcEg2lNA8RMG4gGqxMDm8CXJIzbXgTtEoCbwSMkiMQeAAFv0kBIG4CpJILFMi+y0cbLhQKI52SD81vCt7XRi8PD+TfFQoSKZbl8fLz9PX29/j5+vv8/f7/AAMKpPJhgAEOFhZIeTCiwAw5A498SICHQAd1Sz5kgGURY0QaB3i9MQCPyQUFbzxE+khkAAJkLKI1eWHiTQqPEWegQCahJP6TFRoEeBjEksgLFXhAxFj55MUFpkWHLFDgDIUHn1GtnBjQYgLErGDDih1LtqzZs2jTql3Ltq1bGi86RNA0AupbIgc8IAKgKALWtweoIgNggmjaBx0EEBDRYmWEwW+UpX0RA5YbGAnkMIDsRoLaCZvxUJhBwxlnFGorHMMDowSN1ZAJpLb8pjUNFpwByFC7gAMyCgpT5K6gNgxtEAU6ndAA2cRXtC8mBNUwgNwJB3sBEAhh+K7RASliFJiA07v58+jTq1/Pvr379+wvbHie/sMMAxQIMHDw9+OHFwCWh0QBO4lGXlYHRMACARJU0J0SKwAymAQbRLUcHgjEQB8SHv5wBoFkLCUAmxsYKLTEC8FwphJLR0GWARMv+MaZAxsC9ABKg8XQBHOcxSBgPx90OBgxS7TAGQFnFLUAAcgo0J8RDpj2BggvZjUBCyiAgIIJFTpxQQgUmMZCAXaxdEEL4/14xA
191sLVFBACyuoCd+cdNZp551CzFBAAimMUGMfJ6xQZjkfFMDAaiRcJQkWLsjAgQYd0PNBCRJO6cKgagwQ2mUVyNnHBiJwZiIfD2wqzKjXdFDgYCEQsoCUtaUgj2ozEtIBZ63GM0ClyOjYxAMbzLDCAZgasQBkyMlzgAScdbnEBgGQkAgLCTyIxAfMwuTsNR+0sGpKcl6AFB4QBODEAFi41RbpPJgwGYtfTWQwohsooJrEBwt4wAIFDhxYzwMDvPmnER/gOFgE6D0QKmQeoPcBjzmm1wCs9G7r3QcO0AYADMSp90AGChBAgQaNsffCCRtscIKnhAQBACH5BAkFADQALAAAAABkAGQAAAb+QJpwSCwaj8ikcslsOp/QqHRKrUofL6t2yxVeQiRKKtstm5efAgwAQHTO8PjwFWGzM/K8+VOCsFFveoJbDzEULAVkUC+Kg08vH1SQUi8jMREtD45NDwUqDhubNC0sbBgJoksdCGwmjXknBnYAMK+pRDF2HCeOKwKzAKG3RwMEbB62cReydijJwy8dHgW8jh8DFGwgBcNJH5OiHycFBQuR3ejp6uvs7e7v8PHy7y8PFw/n84MfKykmMhYyCNOnZ4AAP9oUzCAIKxswAAoOMFxyIoGHFs+MfLDw0E6MfBOLzMBgR8JAJQcYdGSjoFrIIhpmgYiRccgMYytZnHxJ4wP+CWAmLjBZ4bCjgJ08f83yoGnJCwUrAThoynNIHzsEBjhpAaIjCq1VibyIIYCCAoxOPnjoOCZskQ8HFpwAyeRFBQEwYCAQMICuWy0PFgxYUfOv4cOIEytezLix48eQI0sOe2JAgwEuJyt50UAEARQkZKDVjITOmlkIEhRG/GJFAAspJAoZgMLrwsgfKuAEIGCFkABRQ0hewQGYgywyoiqQ3KL2LAESoa7UILmDczsCeOVamULyBgnAPES66dU37gGl2Gio9qLA9T8VVh+GWyAG5iITFFAgQEDDbdJK8DPBCn4BaOCBCCao4IIMNujggxBG6MgFJajAggbxLfZNgUr+LCACMAZk5tYHMyTgQAwLyEfDUw+BwNRhIxTFQAUc4tfVQxRMYNgFStnBgmxL1NERCBUYtspDLTQhZIvc/FXBabM0uUQDKwFi2AokyaQjEw/sNosEIvKkFjAaULVEMcBQsABiHxiCAgUehOnNCCbsR4EJSP11glxTBDbBBipKKOighBZqqBEXjFBBBwfUKIejt6ygHwIYSJDhIONooEEEeUbaIxsIFADpFgdocBoIDHS6yQsO3DgLAWbC8QFwwEgQayrfrbSlHC8UZQcGuw6zQHEdFZnHA1DaAUMD6RyQXEfBBnjBBgdcMKoQL6T36n/DtOmqj/I9UCEJDJjQgXxkH6TwLQAmXJtHqcCgkGQTGbyXlRMneAClBECmk69zCowg3wZessGCig9MEEMILciZzq1LqNviCAxGsC4AIDC7YAkXg7Dmghf4yoYE7kKGzSw6OfjCBCEooEEMG5QsmTgXBJpHEAAh+QQJBQA0ACwAAAAAZABkAAAG/kCacEgsGo/IpHLJbDqf0Kh0Sq1ar9is9TMwmUYfrXjcXHAAAMGKzG5+LpPNK9pBoAmjth55cbBIFAoND08rLGgCG3uLQlwMaJAgLoROMx4ea4yLGyKQngAFmjQfKxMXokofGRCfkCyniy8FAgwWiqhHDxatkCh5iwOPaDG4RxcKvGgwLYwVKJAaxUa6yQAwE4wLhwAgKdJFHwUgyQKUey8dEhQhsN9DJyrJzJofLw9h7kULyJ4wKfj5Ah6IoYAFCwcD5gRcSOPFiQMnzDGcSLGixYsYxdQDmBHVgxEFQmRI2FHUCRcEIBEI0K6kHgvjPEEIoNClkhcLKhyA0iIZ/ooKNpU8MDAORAiJSnYl81AzaJEGnjDMYyKhmgakToU4+ESsSbxkDrBmjeEJRKgmKar9y2rkwDYAGm4xuUCBVyK2Rj5YMpFiAZQBdT2RwIb3yAexTA6EYEGABbvCkCNLnky5suXLmDNr3sy5s+d8HzZMyPS5yQoLLBiwsEC6tOERb9EwGMCR84URFWaYO8Dvk4ATn1doQAPCA6UBrHgN8PzCRUxrJYQUqNaV84FOnqLRmJ7MW+cDVT2ZEDLBDi/CnD9EeA6jg5ALBngpaLn5RAgYAAisFbJCwfM0C9S22QsbbHBCU6OkoIAACiQAnGtMHCYghBRWaOGFGGao4YYc/nbo4YeofHBACgGkcMCEkaEoVATmcZMCYlmF1kACLez0RAb49RPdZDOIMA4EGrR2U2CfSGAjZC/0xo1xTWzwn0roFbZASp6wIJcSKyRDwHKRLfCMJxRcmcQDX35ipWQPnJEdfUl4wIsHKgbVQo750ebECSb8Z0KcTi3ggAIhiDlXARpIoEEBMFr4wAWJgujoo5BGKukSH5ywwAoIZvhBAjKwIIADM+DywAAVYDrRCwEkhwYLfjHywQgiIIAACi5kKo0zrShg6xjafBICn4t84AIvEDR6hSqtUHDkNy+YkMyybHzg5icoRPmNB09aY+wQb1ywq2FpfRLmQiMQCYkDZ8COskACBpiQwArp0rCAuQB4wJAsdAKggKBIzKAmNyLwe8QLDbylwYMLceGAABKkcEK8SqIxnhOhVVDABAhLdkC+ymzL2QwcWwNthReU2Uu8nE3rSXUZ9vElCkxyOGoMMQzg8aRtBAEAOw==",imagePosition:"center center",maxSize:"100px",minSize:"20px",resizeInterval:50,size:"50%",zIndex:b};a.LoadingOverlaySetup=function(b){a.extend(!0,c,b)},a.LoadingOverlay=function(b,f){switch(b.toLowerCase()){case"show":var g=a.extend(!0,{},c,f);d("body",g);break;case"hide":e("body",f)}},a.fn.LoadingOverlay=function(b,f){switch(b.toLowerCase()){case"show":var g=a.extend(!0,{},c,f);return this.each(function(){d(this,g)});case"hide":return this.each(function(){e(this,f)})}}}(jQuery); 192/*! 193 * URI.js - Mutating URLs 194 * 195 * Version: 1.14.1 196 * 197 * Author: Rodney Rehm 198 * Web: http://medialize.github.io/URI.js/ 199 * 200 * Licensed under 201 * MIT License http://www.opensource.org/licenses/mit-license 202 * GPL v3 http://opensource.org/licenses/GPL-3.0 203 * 204 */(function(c,y){"use strict";typeof exports=="object"?module.exports=y(require("./punycode"),require("./IPv6"),require("./SecondLevelDomains")):typeof define=="function"&&define.amd?define(["./punycode","./IPv6","./SecondLevelDomains"],y):c.URI=y(c.punycode,c.IPv6,c.SecondLevelDomains,c)})(this,function(c,y,m,l){"use strict";var F=l&&l.URI;function n(e,t){return this instanceof n?(e===void 0&&(typeof location<"u"?e=location.href+"":e=""),this.href(e),t!==void 0?this.absoluteTo(t):this):new n(e,t)}n.version="1.14.1";var a=n.prototype,d=Object.prototype.hasOwnProperty;function _(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function Q(e){return e===void 0?"Undefined":String(Object.prototype.toString.call(e)).slice(8,-1)}function p(e){return Q(e)==="Array"}function E(e,t){var r={},i,s;if(p(t))for(i=0,s=t.length;i<s;i++)r[t[i]]=!0;else r[t]=!0;for(i=0,s=e.length;i<s;i++)r[e[i]]!==void 0&&(e.splice(i,1),s--,i--);return e}function b(e,t){var r,i;if(p(t)){for(r=0,i=t.length;r<i;r++)if(!b(e,t[r]))return!1;return!0}var s=Q(t);for(r=0,i=e.length;r<i;
204r++)if(s==="RegExp"){if(typeof e[r]=="string"&&e[r].match(t))return!0}else if(e[r]===t)return!0;return!1}function I(e,t){if(!p(e)||!p(t)||e.length!==t.length)return!1;e.sort(),t.sort();for(var r=0,i=e.length;r<i;r++)if(e[r]!==t[r])return!1;return!0}n._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,duplicateQueryParameters:n.duplicateQueryParameters,escapeQuerySpace:n.escapeQuerySpace}},n.duplicateQueryParameters=!1,n.escapeQuerySpace=!0,n.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,n.idn_expression=/[^a-z0-9\.-]/i,n.punycode_expression=/(xn--)/i,n.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,n.ip6_expression=/^\s*((([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}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,n.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»ââââ]))/ig,n.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»âââââ]+$/},n.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},n.invalid_hostname_characters=/[^a-zA-Z0-9\.-]/,n.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},n.getDomAttribute=function(e){if(!(!e||!e.nodeName)){var t=e.nodeName.toLowerCase();if(!(t==="input"&&e.type!=="image"))return n.domAttributes[t]}};function C(e){return escape(e)}function A(e){return encodeURIComponent(e).replace(/[!'()*]/g,C).replace(/\*/g,"%2A")}n.encode=A,n.decode=decodeURIComponent,n.iso8859=function(){n.encode=escape,n.decode=unescape},n.unicode=function(){n.encode=A,n.decode=decodeURIComponent},n.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/ig,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/ig,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}}},n.encodeQuery=function(e,t){var r=n.encode(e+"");return t===void 0&&(t=n.escapeQuerySpace),t?r.replace(/%20/g,"+"):r},n.decodeQuery=function(e,t){e+="",t===void 0&&(t=n.escapeQuerySpace);try{return n.decode(t?e.replace(/\+/g,"%20"):e)}catch{return e}},n.recodePath=function(e){for(var t=(e+"").split("/"),r=0,i=t.length;r<i;r++)t[r]=n.encodePathSegment(n.decode(t[r]));return t.join("/")},n.decodePath=function(e){for(var t=(e+"").split("/"),r=0,i=t.length;r<i;r++)t[r]=n.decodePathSegment(t[r]);return t.join("/")};var S={encode:"encode",decode:"decode"},P,q=function(e,t){return function(r){try{return n[t](r+"").replace(n.characters[e][t].expression,function(i){return n.characters[e][t].map[i]})}catch{return r}}};for(P in S)n[P+"PathSegment"]=q("pathname",S[P]);n.encodeReserved=q("reserved","encode"),n.parse=function(e,t){var r;return t||(t={}),r=e.indexOf("#"),r>-1&&(t.fragment=e.substring(r+1)||null,e=e.substring(0,r)),r=e.indexOf("?"),r>-1&&(t.query=e.substring(r+1)||null,e=e.substring(0,r)),e.substring(0,2)==="//"?(t.protocol=null,e=e.substring(2),e=n.parseAuthority(e,t)):(r=e.indexOf(":"),r>-1&&(t.protocol=e.substring(0,r)||null,t.protocol&&!t.protocol.match(n.protocol_expression)?t.protocol=void 0:e.substring(r+1,r+3)==="//"?(e=e.substring(r+3),e=n.parseAuthority(e,t)):(e=e.substring(r+1),t.urn=!0))),t.path=e,t},n.parseHost=function(e,t){var r=e.indexOf("/"),i,s;return r===-1&&(r=e.length),e.charAt(0)==="["?(i=e.indexOf("]"),t.hostname=e.substring(1,i)||null,t.port=e.substring(i+2,r)||null,t.port==="/"&&(t.port=null)):e.indexOf(":")!==e.lastIndexOf(":")?(t.hostname=e.substring(0,r)||null,t.port=null):(s=e.substring(0,r).split(":"),t.hostname=s[0]||null,t.port=s[1]||null),t.hostname&&e.substring(r).charAt(0)!=="/"&&(r++,e="/"+e),e.substring(r)||"/"},n.parseAuthority=function(e,t){return e=n.parseUserinfo(e,t),n.parseHost(e,t)},n.parseUserinfo=function(e,t){var r=e.indexOf("/"),i=e.lastIndexOf("@",r>-1?r:e.length-1),s;return i>-1&&(r===-1||i<r)?(s=e.substring(0,i).split(":"),t.username=s[0]?n.decode(s[0]):null,
204s.shift(),t.password=s[0]?n.decode(s.join(":")):null,e=e.substring(i+1)):(t.username=null,t.password=null),e},n.parseQuery=function(e,t){if(!e)return{};if(e=e.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,""),!e)return{};for(var r={},i=e.split("&"),s=i.length,o,u,f,h=0;h<s;h++)o=i[h].split("="),u=n.decodeQuery(o.shift(),t),f=o.length?n.decodeQuery(o.join("="),t):null,d.call(r,u)?(typeof r[u]=="string"&&(r[u]=[r[u]]),r[u].push(f)):r[u]=f;return r},n.build=function(e){var t="";return e.protocol&&(t+=e.protocol+":"),!e.urn&&(t||e.hostname)&&(t+="//"),t+=n.buildAuthority(e)||"",typeof e.path=="string"&&(e.path.charAt(0)!=="/"&&typeof e.hostname=="string"&&(t+="/"),t+=e.path),typeof e.query=="string"&&e.query&&(t+="?"+e.query),typeof e.fragment=="string"&&e.fragment&&(t+="#"+e.fragment),t},n.buildHost=function(e){var t="";if(e.hostname)n.ip6_expression.test(e.hostname)?t+="["+e.hostname+"]":t+=e.hostname;else return"";return e.port&&(t+=":"+e.port),t},n.buildAuthority=function(e){return n.buildUserinfo(e)+n.buildHost(e)},n.buildUserinfo=function(e){var t="";return e.username&&(t+=n.encode(e.username),e.password&&(t+=":"+n.encode(e.password)),t+="@"),t},n.buildQuery=function(e,t,r){var i="",s,o,u,f;for(o in e)if(d.call(e,o)&&o)if(p(e[o]))for(s={},u=0,f=e[o].length;u<f;u++)e[o][u]!==void 0&&s[e[o][u]+""]===void 0&&(i+="&"+n.buildQueryParameter(o,e[o][u],r),t!==!0&&(s[e[o][u]+""]=!0));else e[o]!==void 0&&(i+="&"+n.buildQueryParameter(o,e[o],r));return i.substring(1)},n.buildQueryParameter=function(e,t,r){return n.encodeQuery(e,r)+(t!==null?"="+n.encodeQuery(t,r):"")},n.addQuery=function(e,t,r){if(typeof t=="object")for(var i in t)d.call(t,i)&&n.addQuery(e,i,t[i]);else if(typeof t=="string"){if(e[t]===void 0){e[t]=r;return}else typeof e[t]=="string"&&(e[t]=[e[t]]);p(r)||(r=[r]),e[t]=(e[t]||[]).concat(r)}else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter")},n.removeQuery=function(e,t,r){var i,s,o;if(p(t))for(i=0,s=t.length;i<s;i++)e[t[i]]=void 0;else if(typeof t=="object")for(o in t)d.call(t,o)&&n.removeQuery(e,o,t[o]);else if(typeof t=="string")r!==void 0?e[t]===r?e[t]=void 0:p(e[t])&&(e[t]=E(e[t],r)):e[t]=void 0;else throw new TypeError("URI.addQuery() accepts an object, string as the first parameter")},n.hasQuery=function(e,t,r,i){if(typeof t=="object"){for(var s in t)if(d.call(t,s)&&!n.hasQuery(e,s,t[s]))return!1;return!0}else if(typeof t!="string")throw new TypeError("URI.hasQuery() accepts an object, string as the name parameter");switch(Q(r)){case"Undefined":return t in e;case"Boolean":var o=!!(p(e[t])?e[t].length:e[t]);return r===o;case"Function":return!!r(e[t],t,e);case"Array":if(!p(e[t]))return!1;var u=i?b:I;return u(e[t],r);case"RegExp":return p(e[t])?i?b(e[t],r):!1:!!(e[t]&&e[t].match(r));case"Number":r=String(r);case"String":return p(e[t])?i?b(e[t],r):!1:e[t]===r;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},n.commonPath=function(e,t){var r=Math.min(e.length,t.length),i;for(i=0;i<r;i++)if(e.charAt(i)!==t.charAt(i)){i--;break}return i<1?e.charAt(0)===t.charAt(0)&&e.charAt(0)==="/"?"/":"":((e.charAt(i)!=="/"||t.charAt(i)!=="/")&&(i=e.substring(0,i).lastIndexOf("/")),e.substring(0,i+1))},n.withinString=function(e,t,r){r||(r={});var i=r.start||n.findUri.start,s=r.end||n.findUri.end,o=r.trim||n.findUri.trim,u=/[a-z0-9-]=["']?$/i;for(i.lastIndex=0;;){var f=i.exec(e);if(!f)break;var h=f.index;if(r.ignoreHtml){var R=e.slice(Math.max(h-3,0),h);if(R&&u.test(R))continue}var w=h+e.slice(h).search(s),x=e.slice(h,w).replace(o,"");if(!(r.ignore&&r.ignore.test(x))){w=h+x.length;var U=t(x,h,w,e);e=e.slice(0,h)+U+e.slice(w),i.lastIndex=h+U.length}}return i.lastIndex=0,e},n.ensureValidHostname=function(e){if(e.match(n.invalid_hostname_characters)){if(!c)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-] and Punycode.js is not available');if(c.toASCII(e).match(n.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-]')}},n.noConflict=function(e){if(e){var t={URI:this.noConflict()};return l.URITemplate&&typeof l.URITemplate.noConflict=="function"&&(t.URITemplate=l.URITemplate.noConflict()),l.IPv6&&typeof l.IPv6.noConflict=="function"&&(t.IPv6=l.IPv6.noConflict()),l.SecondLevelDomains&&typeof l.SecondLevelDomains.noConflict=="function"&&(t.SecondLevelDomains=l.
204SecondLevelDomains.noConflict()),t}else l.URI===this&&(l.URI=F);return this},a.build=function(e){return e===!0?this._deferred_build=!0:(e===void 0||this._deferred_build)&&(this._string=n.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new n(this)},a.valueOf=a.toString=function(){return this.build(!1)._string};function g(e){return function(t,r){return t===void 0?this._parts[e]||"":(this._parts[e]=t||null,this.build(!r),this)}}function z(e,t){return function(r,i){return r===void 0?this._parts[e]||"":(r!==null&&(r=r+"",r.charAt(0)===t&&(r=r.substring(1))),this._parts[e]=r,this.build(!i),this)}}a.protocol=g("protocol"),a.username=g("username"),a.password=g("password"),a.hostname=g("hostname"),a.port=g("port"),a.query=z("query","?"),a.fragment=z("fragment","#"),a.search=function(e,t){var r=this.query(e,t);return typeof r=="string"&&r.length?"?"+r:r},a.hash=function(e,t){var r=this.fragment(e,t);return typeof r=="string"&&r.length?"#"+r:r},a.pathname=function(e,t){if(e===void 0||e===!0){var r=this._parts.path||(this._parts.hostname?"/":"");return e?n.decodePath(r):r}else return this._parts.path=e?n.recodePath(e):"/",this.build(!t),this},a.path=a.pathname,a.href=function(e,t){var r;if(e===void 0)return this.toString();this._string="",this._parts=n._parts();var i=e instanceof n,s=typeof e=="object"&&(e.hostname||e.path||e.pathname);if(e.nodeName){var o=n.getDomAttribute(e);e=e[o]||"",s=!1}if(!i&&s&&e.pathname!==void 0&&(e=e.toString()),typeof e=="string"||e instanceof String)this._parts=n.parse(String(e),this._parts);else if(i||s){var u=i?e._parts:e;for(r in u)d.call(this._parts,r)&&(this._parts[r]=u[r])}else throw new TypeError("invalid input");return this.build(!t),this},a.is=function(e){var t=!1,r=!1,i=!1,s=!1,o=!1,u=!1,f=!1,h=!this._parts.urn;switch(this._parts.hostname&&(h=!1,r=n.ip4_expression.test(this._parts.hostname),i=n.ip6_expression.test(this._parts.hostname),t=r||i,s=!t,o=s&&m&&m.has(this._parts.hostname),u=s&&n.idn_expression.test(this._parts.hostname),f=s&&n.punycode_expression.test(this._parts.hostname)),e.toLowerCase()){case"relative":return h;case"absolute":return!h;case"domain":case"name":return s;case"sld":return o;case"ip":return t;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return i;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return f}return null};var T=a.protocol,O=a.port,$=a.hostname;a.protocol=function(e,t){if(e!==void 0&&e&&(e=e.replace(/:(\/\/)?$/,""),!e.match(n.protocol_expression)))throw new TypeError('Protocol "'+e+`" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]`);return T.call(this,e,t)},a.scheme=a.protocol,a.port=function(e,t){if(this._parts.urn)return e===void 0?"":this;if(e!==void 0&&(e===0&&(e=null),e&&(e+="",e.charAt(0)===":"&&(e=e.substring(1)),e.match(/[^0-9]/))))throw new TypeError('Port "'+e+'" contains characters other than [0-9]');return O.call(this,e,t)},a.hostname=function(e,t){if(this._parts.urn)return e===void 0?"":this;if(e!==void 0){var r={};n.parseHost(e,r),e=r.hostname}return $.call(this,e,t)},a.host=function(e,t){return this._parts.urn?e===void 0?"":this:e===void 0?this._parts.hostname?n.buildHost(this._parts):"":(n.parseHost(e,this._parts),this.build(!t),this)},a.authority=function(e,t){return this._parts.urn?e===void 0?"":this:e===void 0?this._parts.hostname?n.buildAuthority(this._parts):"":(n.parseAuthority(e,this._parts),this.build(!t),this)},a.userinfo=function(e,t){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){if(!this._parts.username)return"";var r=n.buildUserinfo(this._parts);return r.substring(0,r.length-1)}else return e[e.length-1]!=="@"&&(e+="@"),n.parseUserinfo(e,this._parts),this.build(!t),this},a.resource=function(e,t){var r;return e===void 0?this.path()+this.search()+this.hash():(r=n.parse(e),this._parts.path=r.path,this._parts.query=r.query,this._parts.fragment=r.fragment,this.build(!t),this)},a.subdomain=function(e,t){if(this._parts.urn)return e===void 0?"":this;if(e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,r)||""}else{var i=this._parts.hostname.length-this.domain().length,s=this._parts.hostname.substring(0,i),o=new RegExp("^"+_(s));return e&&e.charAt(e.length-1)!=="."&&(e+="."),e&&n.ensureValidHostname(e),this._parts.hostname=this._parts.hostname.replace(o,e),this.build(!t),this}},a.domain=function(e,t){if(this._parts.urn)return e===void 0?"":this;if(typeof e=="boolean"&&(t=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.match(/\./g);if(r&&r.length<2)return this._parts.hostname;var i=this._parts.hostname.length-this.tld(t).length-1;return i=this._parts.hostname.lastIndexOf(".",i-1)+1,this._parts.hostname.substring(i)||""}else{if(!e)throw new TypeError("cannot set domain empty");if(n.ensureValidHostname(e),!this._parts.hostname||this.is("IP"))this._parts.hostname=e;else{var s=new RegExp(_(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(s,e)}return this.build(!t),this}},a.tld=function(e,t){if(this._parts.urn)return e===void 0?"":this;if(typeof e=="boolean"&&(t=e,e=void 0),e===void 0){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(r+1);return t!==!0&&m&&m.list[i.toLowerCase()]&&m.get(this._parts.hostname)||i}else{var s;if(e)if(e.match(/[^a-zA-Z0-9-]/))if(m&&m.is(e))s=new RegExp(_(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(s,e);else throw new TypeError('TLD "'+e+'" contains characters other than [A-Z0-9]');else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");s=new RegExp(_(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(s,e)}else throw new TypeError("cannot set TLD empty");return this.build(!t),this}},a.directory=function(e,t){if(this._parts.urn)return e===void 0?"":this;if(e===void 0||e===!0){if(!this._parts.path&&!this._parts.hostname)return"";if(this._parts.path==="/")return"/";var r=this._parts.path.length-this.filename().length-1,i=this._parts.path.substring(0,r)||(this._parts.hostname?"/":"");return e?n.decodePath(i):i}else{var s=this._parts.path.length-this.filename().length,o=this._parts.path.substring(0,s),u=new RegExp("^"+_(o));return this.is("relative")||(e||(e="/"),e.charAt(0)!=="/"&&(e="/"+e)),e&&e.charAt(e.length-1)!=="/"&&(e+="/"),e=n.recodePath(e),this._parts.path=this._parts.path.replace(u,e),this.build(!t),this}},a.filename=function(e,t){if(this._parts.urn)return e===void 0?"":this;if(e===void 0||e===!0){if(!this._parts.path||this._parts.path==="/")return"";var r=this._parts.path.lastIndexOf("/"),i=this._parts.path.substring(r+1);return e?n.decodePathSegment(i):i}else{var s=!1;e.charAt(0)==="/"&&(e=e.substring(1)),e.match(/\.?\//)&&(s=!0);var o=new RegExp(_(this.filename())+"$");return e=n.recodePath(e),this._parts.path=this._parts.path.replace(o,e),s?this.normalizePath(t):this.build(!t),this}},a.suffix=function(e,t){if(this._parts.urn)return e===void 0?"":this;if(e===void 0||e===!0){if(!this._parts.path||this._parts.path==="/")return"";var r=this.filename(),i=r.lastIndexOf("."),s,o;
204return i===-1?"":(s=r.substring(i+1),o=/^[a-z0-9%]+$/i.test(s)?s:"",e?n.decodePathSegment(o):o)}else{e.charAt(0)==="."&&(e=e.substring(1));var u=this.suffix(),f;if(u)e?f=new RegExp(_(u)+"$"):f=new RegExp(_("."+u)+"$");else{if(!e)return this;this._parts.path+="."+n.recodePath(e)}return f&&(e=n.recodePath(e),this._parts.path=this._parts.path.replace(f,e)),this.build(!t),this}},a.segment=function(e,t,r){var i=this._parts.urn?":":"/",s=this.path(),o=s.substring(0,1)==="/",u=s.split(i);if(e!==void 0&&typeof e!="number"&&(r=t,t=e,e=void 0),e!==void 0&&typeof e!="number")throw new Error('Bad segment "'+e+'", must be 0-based integer');if(o&&u.shift(),e<0&&(e=Math.max(u.length+e,0)),t===void 0)return e===void 0?u:u[e];if(e===null||u[e]===void 0)if(p(t)){u=[];for(var f=0,h=t.length;f<h;f++)!t[f].length&&(!u.length||!u[u.length-1].length)||(u.length&&!u[u.length-1].length&&u.pop(),u.push(t[f]))}else(t||typeof t=="string")&&(u[u.length-1]===""?u[u.length-1]=t:u.push(t));else t?u[e]=t:u.splice(e,1);return o&&u.unshift(""),this.path(u.join(i),r)},a.segmentCoded=function(e,t,r){var i,s,o;if(typeof e!="number"&&(r=t,t=e,e=void 0),t===void 0){if(i=this.segment(e,t,r),!p(i))i=i!==void 0?n.decode(i):void 0;else for(s=0,o=i.length;s<o;s++)i[s]=n.decode(i[s]);return i}if(!p(t))t=typeof t=="string"||t instanceof String?n.encode(t):t;else for(s=0,o=t.length;s<o;s++)t[s]=n.decode(t[s]);return this.segment(e,t,r)};var j=a.query;return a.query=function(e,t){if(e===!0)return n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e=="function"){var r=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace),i=e.call(this,r);return this._parts.query=n.buildQuery(i||r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this}else return e!==void 0&&typeof e!="string"?(this._parts.query=n.buildQuery(e,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!t),this):j.call(this,e,t)},a.setQuery=function(e,t,r){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if(typeof e=="string"||e instanceof String)i[e]=t!==void 0?t:null;else if(typeof e=="object")for(var s in e)d.call(e,s)&&(i[s]=e[s]);else throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");return this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!="string"&&(r=t),this.build(!r),this},a.addQuery=function(e,t,r){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.addQuery(i,e,t===void 0?null:t),this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!="string"&&(r=t),this.build(!r),this},a.removeQuery=function(e,t,r){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.removeQuery(i,e,t),this._parts.query=n.buildQuery(i,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),typeof e!="string"&&(r=t),this.build(!r),this},a.hasQuery=function(e,t,r){var i=n.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return n.hasQuery(i,e,t,r)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(e){return typeof this._parts.protocol=="string"&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!e)),this},a.normalizeHostname=function(e){return this._parts.hostname&&(this.is("IDN")&&c?this._parts.hostname=c.toASCII(this._parts.hostname):this.is("IPv6")&&y&&(this._parts.hostname=y.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!e)),this},a.normalizePort=function(e){return typeof this._parts.protocol=="string"&&this._parts.port===n.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!e)),this},a.normalizePath=function(e){if(this._parts.urn)return this;if(!this._parts.path||this._parts.path==="/")return this;var t,r=this._parts.path,i="",s,o;for(r.charAt(0)!=="/"&&(t=!0,r="/"+r),r=r.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),t&&(i=r.substring(1).match(/^(\.\.\/)+/)||"",i&&(i=i[0]));s=r.indexOf("/.."),s!==-1;){if(s===0){r=r.substring(3);continue}o=r.substring(0,s).lastIndexOf("/"),o===-1&&(o=s),r=r.substring(0,o)+r.substring(s+3)}return t&&this.is("relative")&&(r=i+r.substring(1)),r=n.recodePath(r),this._parts.path=r,this.build(!e),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(e){return typeof this._parts.query=="string"&&(this._parts.query.length?this.query(n.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!e)),this},a.normalizeFragment=function(e){return this._parts.fragment||(this._parts.fragment=null,this.build(!e)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var e=n.encode,t=n.decode;return n.encode=escape,n.decode=decodeURIComponent,this.normalize(),n.encode=e,n.decode=t,this},a.unicode=function(){var e=n.encode,t=n.decode;return n.encode=A,n.decode=unescape,this.normalize(),n.encode=e,n.decode=t,this},a.readable=function(){var e=this.clone();e.username("").password("").normalize();var t="";if(e._parts.protocol&&(t+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&c?(t+=c.toUnicode(e._parts.hostname),e._parts.port&&(t+=":"+e._parts.port)):t+=e.host()),e._parts.hostname&&e._parts.path&&e._parts.path.
204charAt(0)!=="/"&&(t+="/"),t+=e.path(!0),e._parts.query){for(var r="",i=0,s=e._parts.query.split("&"),o=s.length;i<o;i++){var u=(s[i]||"").split("=");r+="&"+n.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),u[1]!==void 0&&(r+="="+n.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}t+="?"+r.substring(1)}return t+=n.decodeQuery(e.hash(),!0),t},a.absoluteTo=function(e){var t=this.clone(),r=["protocol","username","password","hostname","port"],i,s,o;if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e instanceof n||(e=new n(e)),t._parts.protocol||(t._parts.protocol=e._parts.protocol),this._parts.hostname)return t;for(s=0;o=r[s];s++)t._parts[o]=e._parts[o];return t._parts.path?t._parts.path.substring(-2)===".."&&(t._parts.path+="/"):(t._parts.path=e._parts.path,t._parts.query||(t._parts.query=e._parts.query)),t.path().charAt(0)!=="/"&&(i=e.directory(),t._parts.path=(i?i+"/":"")+t._parts.path,t.normalizePath()),t.build(),t},a.relativeTo=function(e){var t=this.clone().normalize(),r,i,s,o,u;if(t._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(e=new n(e).normalize(),r=t._parts,i=e._parts,o=t.path(),u=e.path(),o.charAt(0)!=="/")throw new Error("URI is already relative");if(u.charAt(0)!=="/")throw new Error("Cannot calculate a URI relative to another relative URI");if(r.protocol===i.protocol&&(r.protocol=null),r.username!==i.username||r.password!==i.password||r.protocol!==null||r.username!==null||r.password!==null)return t.build();if(r.hostname===i.hostname&&r.port===i.port)r.hostname=null,r.port=null;else return t.build();if(o===u)return r.path="",t.build();if(s=n.commonPath(t.path(),e.path()),!s)return t.build();var f=i.path.substring(s.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return r.path=f+r.path.substring(s.length),t.build()},a.equals=function(e){var t=this.clone(),r=new n(e),i={},s={},o={},u,f,h;if(t.normalize(),r.normalize(),t.toString()===r.toString())return!0;if(u=t.query(),f=r.query(),t.query(""),r.query(""),t.toString()!==r.toString()||u.length!==f.length)return!1;i=n.parseQuery(u,this._parts.escapeQuerySpace),s=n.parseQuery(f,this._parts.escapeQuerySpace);for(h in i)if(d.call(i,h)){if(p(i[h])){if(!I(i[h],s[h]))return!1}else if(i[h]!==s[h])return!1;o[h]=!0}for(h in s)if(d.call(s,h)&&!o[h])return!1;return!0},a.duplicateQueryParameters=function(e){return this._parts.duplicateQueryParameters=!!e,this},a.escapeQuerySpace=function(e){return this._parts.escapeQuerySpace=!!e,this},n}); 205 206(function(i){var l=function(){try{return!!Symbol.iterator}catch{return!1}},u=l(),s=function(c){var t={next:function(){var e=c.shift();return{done:e===void 0,value:e}}};return u&&(t[Symbol.iterator]=function(){return t}),t},a=function(c){return encodeURIComponent(c).replace(/%20/g,"+")},f=function(c){return decodeURIComponent(c).replace(/\+/g," ")},p=function(){var c=function(e){if(Object.defineProperty(this,"_entries",{value:{}}),typeof e=="string"){if(e!==""){e=e.replace(/^\?/,"");for(var n=e.split("&"),r,o=0;o<n.length;o++)r=n[o].split("="),this.append(f(r[0]),r.length>1?f(r[1]):"")}}else if(e instanceof c){var h=this;e.forEach(function(d,v){h.append(d,v)})}},t=c.prototype;t.append=function(e,n){e in this._entries?this._entries[e].push(n.toString()):this._entries[e]=[n.toString()]},t.delete=function(e){delete this._entries[e]},t.get=function(e){return e in this._entries?this._entries[e][0]:null},t.getAll=function(e){return e in this._entries?this._entries[e].slice(0):[]},t.has=function(e){return e in this._entries},t.set=function(e,n){this._entries[e]=[n.toString()]},t.forEach=function(e,n){var r;for(var o in this._entries)if(this._entries.hasOwnProperty(o)){r=this._entries[o];for(var h=0;h<r.length;h++)e.call(n,r[h],o,this)}},t.keys=function(){var e=[];return this.forEach(function(n,r){e.push(r)}),s(e)},t.values=function(){var e=[];return this.forEach(function(n){e.push(n)}),s(e)},t.entries=function(){var e=[];return this.forEach(function(n,r){e.push([r,n])}),s(e)},u&&(t[Symbol.iterator]=t.entries),t.toString=function(){var e="";return this.forEach(function(n,r){e.length>0&&(e+="&"),e+=a(r)+"="+a(n)}),e},i.URLSearchParams=c};(!("URLSearchParams"in i)||new URLSearchParams("?a=1").toString()!=="a=1")&&p()})(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:this),(function(i){var l=function(){try{var a=new URL("b","http://a");return a.pathname="c%20d",a.href==="http://a/c%20d"&&a.searchParams}catch{return!1}},u=function(){var a=i.URL,f=function(t,e){typeof t!="string"&&(t=String(t));var n=document.implementation.createHTMLDocument("");
206if(window.doc=n,e){var r=n.createElement("base");r.href=e,n.head.appendChild(r)}var o=n.createElement("a");if(o.href=t,n.body.appendChild(o),o.href=o.href,o.protocol===":"||!/:/.test(o.href))throw new TypeError("Invalid URL");Object.defineProperty(this,"_anchorElement",{value:o})},p=f.prototype,c=function(t){Object.defineProperty(p,t,{get:function(){return this._anchorElement[t]},set:function(e){this._anchorElement[t]=e},enumerable:!0})};["hash","host","hostname","port","protocol","search"].forEach(function(t){c(t)}),Object.defineProperties(p,{toString:{get:function(){var t=this;return function(){return t.href}}},href:{get:function(){return this._anchorElement.href.replace(/\?$/,"")},set:function(t){this._anchorElement.href=t},enumerable:!0},pathname:{get:function(){return this._anchorElement.pathname.replace(/(^\/?)/,"/")},set:function(t){this._anchorElement.pathname=t},enumerable:!0},origin:{get:function(){var t={"http:":80,"https:":443,"ftp:":21}[this._anchorElement.protocol],e=this._anchorElement.port!=t&&this._anchorElement.port!=="";return this._anchorElement.protocol+"//"+this._anchorElement.hostname+(e?":"+this._anchorElement.port:"")},enumerable:!0},password:{get:function(){return""},set:function(t){},enumerable:!0},username:{get:function(){return""},set:function(t){},enumerable:!0},searchParams:{get:function(){var t=new URLSearchParams(this.search),e=this;return["append","delete","set"].forEach(function(n){var r=t[n];t[n]=function(){r.apply(t,arguments),e.search=t.toString()}}),t},enumerable:!0}}),f.createObjectURL=function(t){return a.createObjectURL.apply(a,arguments)},f.revokeObjectURL=function(t){return a.revokeObjectURL.apply(a,arguments)},i.URL=f};if(l()||u(),i.location!==void 0&&!("origin"in i.location)){var s=function(){return i.location.protocol+"//"+i.location.hostname+(i.location.port?":"+i.location.port:"")};try{Object.defineProperty(i.location,"origin",{get:s,enumerable:!0})}catch{setInterval(function(){i.location.origin=s()},100)}}})(typeof global<"u"?global:typeof window<"u"?window:typeof self<"u"?self:this); 207 208if(!jQuery)throw new Error("Bootstrap requires jQuery");+(function(e){"use strict";function s(){var h=document.createElement("bootstrap"),t={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in t)if(h.style[i]!==void 0)return{end:t[i]}}e.fn.emulateTransitionEnd=function(h){var t=!1,i=this;e(this).one(e.support.transition.end,function(){t=!0});var n=function(){t||e(i).trigger(e.support.transition.end)};return setTimeout(n,h),this},e(function(){e.support.transition=s()})})(window.jQuery),+(function(e){"use strict";var s='[data-dismiss="alert"]',h=function(i){e(i).on("click",s,this.close)};h.prototype.close=function(i){var n=e(this),o=n.attr("data-target");o||(o=n.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var r=e(o);if(i&&i.preventDefault(),r.length||(r=n.hasClass("alert")?n:n.parent()),r.trigger(i=e.Event("close.bs.alert")),i.isDefaultPrevented())return;r.removeClass("in");function a(){r.trigger("closed.bs.alert").remove()}e.support.transition&&r.hasClass("fade")?r.one(e.support.transition.end,a).emulateTransitionEnd(150):a()};var t=e.fn.alert;e.fn.alert=function(i){return this.each(function(){var n=e(this),o=n.data("bs.alert");o||n.data("bs.alert",o=new h(this)),typeof i=="string"&&o[i].call(n)})},e.fn.alert.Constructor=h,e.fn.alert.noConflict=function(){return e.fn.alert=t,this},e(document).on("click.bs.alert.data-api",s,h.prototype.close)})(window.jQuery),+(function(e){"use strict";var s=function(t,i){this.$element=e(t),this.options=e.extend({},s.DEFAULTS,i)};s.DEFAULTS={loadingText:"loading..."},s.prototype.setState=function(t){var i="disabled",n=this.$element,o=n.is("input")?"val":"html",r=n.data();t=t+"Text",r.resetText||n.data("resetText",n[o]()),n[o](r[t]||this.options[t]),setTimeout(function(){t=="loadingText"?n.addClass(i).attr(i,i):n.removeClass(i).removeAttr(i)},0)},s.prototype.toggle=function(){var t=this.$element.closest('[data-toggle="buttons"]');if(t.length){var i=this.$element.find("input").prop("checked",!this.$element.hasClass("active")).trigger("change");i.prop("type")==="radio"&&t.find(".active").removeClass("active")}this.$element.toggleClass("active")};var h=e.fn.button;e.fn.button=function(t){return this.each(function(){var i=e(this),n=i.data("bs.button"),o=typeof t=="object"&&t;n||i.data("bs.button",n=new s(this,o)),t=="toggle"?n.toggle():t&&n.setState(t)})},e.fn.button.Constructor=s,e.fn.button.noConflict=function(){return e.fn.button=h,this},e(document).on("click.bs.button.data-api","[data-toggle^=button]",function(t){var i=e(t.target);i.hasClass("btn")||(i=i.closest(".btn")),i.button("toggle"),t.preventDefault()})})(window.jQuery),+(function(e){"use strict";var s=function(t,i){this.$element=e(t),this.$indicators=this.$element.find(".carousel-indicators"),this.options=i,this.paused=this.sliding=this.interval=this.$active=this.$items=null,this.options.pause=="hover"&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};s.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},s.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},s.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".
208item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},s.prototype.to=function(t){var i=this,n=this.getActiveIndex();if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid",function(){i.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",e(this.$items[t]))},s.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition.end&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},s.prototype.next=function(){if(!this.sliding)return this.slide("next")},s.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},s.prototype.slide=function(t,i){var n=this.$element.find(".item.active"),o=i||n[t](),r=this.interval,a=t=="next"?"left":"right",l=t=="next"?"first":"last",f=this;if(!o.length){if(!this.options.wrap)return;o=this.$element.find(".item")[l]()}this.sliding=!0,r&&this.pause();var d=e.Event("slide.bs.carousel",{relatedTarget:o[0],direction:a});if(!o.hasClass("active")){if(this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid",function(){var p=e(f.$indicators.children()[f.getActiveIndex()]);p&&p.addClass("active")})),e.support.transition&&this.$element.hasClass("slide")){if(this.$element.trigger(d),d.isDefaultPrevented())return;o.addClass(t),o[0].offsetWidth,n.addClass(a),o.addClass(a),n.one(e.support.transition.end,function(){o.removeClass([t,a].join(" ")).addClass("active"),n.removeClass(["active",a].join(" ")),f.sliding=!1,setTimeout(function(){f.$element.trigger("slid")},0)}).emulateTransitionEnd(600)}else{if(this.$element.trigger(d),d.isDefaultPrevented())return;n.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger("slid")}return r&&this.cycle(),this}};var h=e.fn.carousel;e.fn.carousel=function(t){return this.each(function(){var i=e(this),n=i.data("bs.carousel"),o=e.extend({},s.DEFAULTS,i.data(),typeof t=="object"&&t),r=typeof t=="string"?t:o.slide;n||i.data("bs.carousel",n=new s(this,o)),typeof t=="number"?n.to(t):r?n[r]():o.interval&&n.pause().cycle()})},e.fn.carousel.Constructor=s,e.fn.carousel.noConflict=function(){return e.fn.carousel=h,this},e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var i=e(this),n,o=e(i.attr("data-target")||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")),r=e.extend({},o.data(),i.data()),a=i.attr("data-slide-to");a&&(r.interval=!1),o.carousel(r),(a=i.attr("data-slide-to"))&&o.data("bs.carousel").to(a),t.preventDefault()}),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var t=e(this);t.carousel(t.data())})})})(window.jQuery),+(function(e){"use strict";var s=function(t,i){this.$element=e(t),this.options=e.extend({},s.DEFAULTS,i),this.transitioning=null,this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},s.prototype.show=function(){if(!(this.transitioning||this.$element.hasClass("in"))){var t=e.Event("show.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var i=this.$parent&&this.$parent.find("> .panel > .in");if(i&&i.length){var n=i.data("bs.collapse");if(n&&n.transitioning)return;i.collapse("hide"),n||i.data("bs.collapse",null)}var o=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[o](0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("in")[o]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition)return r.call(this);var a=e.camelCase(["scroll",o].join("-"));this.$element.one(e.support.transition.end,e.proxy(r,this)).emulateTransitionEnd(350)[o](this.$element[0][a])}}},s.prototype.hide=function(){if(!(this.transitioning||!this.$element.hasClass("in"))){var t=e.Event("hide.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var n=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};if(!e.support.transition)return n.call(this);this.$element[i](0).one(e.support.transition.end,e.proxy(n,this)).emulateTransitionEnd(350)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var h=e.fn.collapse;e.fn.collapse=function(t){return this.each(function(){var i=e(this),n=i.data("bs.collapse"),o=e.extend({},s.DEFAULTS,i.data(),typeof t=="object"&&t);n||i.data("bs.collapse",n=new s(this,o)),typeof t=="string"&&n[t]()})},e.fn.collapse.Constructor=s,e.fn.collapse.noConflict=function(){return e.fn.collapse=h,this},e(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(t){var i=e(this),n,o=i.attr("data-target")||t.preventDefault()||(n=i.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""),r=e(o),a=r.data("bs.collapse"),l=a?"toggle":i.data(),f=i.attr("data-parent"),d=f&&e(f);(!a||!a.transitioning)&&(d&&d.find('[data-toggle=collapse][data-parent="'+f+'"]').not(i).addClass("collapsed"),i[r.hasClass("in")?"addClass":"removeClass"]("collapsed")),r.collapse(l)})})(window.jQuery),+(function(e){"use strict";var s=".dropdown-backdrop",h="[data-toggle=dropdown]",t=function(r){var a=e(r).on("click.bs.dropdown",this.toggle)};t.prototype.toggle=function(r){var a=e(this);if(!a.is(".disabled, :disabled")){var l=n(a),f=l.hasClass("open");if(i(),!f){if("ontouchstart"in document.documentElement&&!l.closest(".
208navbar-nav").length&&e('<div class="dropdown-backdrop"/>').insertAfter(e(this)).on("click",i),l.trigger(r=e.Event("show.bs.dropdown")),r.isDefaultPrevented())return;l.toggleClass("open").trigger("shown.bs.dropdown"),a.focus()}return!1}},t.prototype.keydown=function(r){if(/(38|40|27)/.test(r.keyCode)){var a=e(this);if(r.preventDefault(),r.stopPropagation(),!a.is(".disabled, :disabled")){var l=n(a),f=l.hasClass("open");if(!f||f&&r.keyCode==27)return r.which==27&&l.find(h).focus(),a.click();var d=e("[role=menu] li:not(.divider):visible a",l);if(d.length){var p=d.index(d.filter(":focus"));r.keyCode==38&&p>0&&p--,r.keyCode==40&&p<d.length-1&&p++,~p||(p=0),d.eq(p).focus()}}}};function i(){e(s).remove(),e(h).each(function(r){var a=n(e(this));a.hasClass("open")&&(a.trigger(r=e.Event("hide.bs.dropdown")),!r.isDefaultPrevented()&&a.removeClass("open").trigger("hidden.bs.dropdown"))})}function n(r){var a=r.attr("data-target");a||(a=r.attr("href"),a=a&&/#/.test(a)&&a.replace(/.*(?=#[^\s]*$)/,""));var l=a&&e(a);return l&&l.length?l:r.parent()}var o=e.fn.dropdown;e.fn.dropdown=function(r){return this.each(function(){var a=e(this),l=a.data("dropdown");l||a.data("dropdown",l=new t(this)),typeof r=="string"&&l[r].call(a)})},e.fn.dropdown.Constructor=t,e.fn.dropdown.noConflict=function(){return e.fn.dropdown=o,this},e(document).on("click.bs.dropdown.data-api",i).on("click.bs.dropdown.data-api",".dropdown form",function(r){r.stopPropagation()}).on("click.bs.dropdown.data-api",h,t.prototype.toggle).on("keydown.bs.dropdown.data-api",h+", [role=menu]",t.prototype.keydown)})(window.jQuery),+(function(e){"use strict";var s=function(t,i){this.options=i,this.$element=e(t),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.load(this.options.remote)};s.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},s.prototype.toggle=function(t){return this[this.isShown?"hide":"show"](t)},s.prototype.show=function(t){var i=this,n=e.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(n),!(this.isShown||n.isDefaultPrevented())&&(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.backdrop(function(){var o=e.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(document.body),i.$element.show(),o&&i.$element[0].offsetWidth,i.$element.addClass("in").attr("aria-hidden",!1),i.enforceFocus();var r=e.Event("shown.bs.modal",{relatedTarget:t});o?i.$element.find(".modal-dialog").one(e.support.transition.end,function(){i.$element.focus().trigger(r)}).emulateTransitionEnd(300):i.$element.focus().trigger(r)}))},s.prototype.hide=function(t){t&&t.preventDefault(),t=e.Event("hide.bs.modal"),this.$element.trigger(t),!(!this.isShown||t.isDefaultPrevented())&&(this.isShown=!1,this.escape(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one(e.support.transition.end,e.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},s.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(t){this.$element[0]!==t.target&&!this.$element.has(t.target).length&&this.$element.focus()},this))},s.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",e.proxy(function(t){t.which==27&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},s.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.removeBackdrop(),t.$element.trigger("hidden.bs.modal")})},s.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},s.prototype.backdrop=function(t){var i=this,n=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=e.support.transition&&n;if(this.$backdrop=e('<div class="modal-backdrop '+n+'" />').appendTo(document.body),this.$element.on("click.dismiss.modal",e.proxy(function(r){r.target===r.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;o?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,t).emulateTransitionEnd(150):t()):t&&t()};var h=e.fn.modal;e.fn.modal=function(t,i){return this.each(function(){var n=e(this),o=n.data("bs.modal"),r=e.extend({},s.DEFAULTS,n.data(),typeof t=="object"&&t);o||n.data("bs.modal",o=new s(this,r)),typeof t=="string"?o[t](i):r.show&&o.show(i)})},e.fn.modal.Constructor=s,e.fn.modal.noConflict=function(){return e.fn.modal=h,this},e(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var i=e(this),n=i.attr("href"),o=e(i.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,"")),r=o.data("modal")?"toggle":e.extend({remote:!/#/.test(n)&&n},o.data(),i.data());t.preventDefault(),o.modal(r,this).one("hide",function(){i.is(":visible")&&i.focus()})}),e(document).on("show.bs.modal",".modal",function(){e(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){e(document.body).removeClass("modal-open")})})(window.jQuery),+(function(e){"use strict";var s=function(t,i){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",t,i)};s.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},s.prototype.init=function(t,i,n){this.enabled=!0,this.type=t,this.$element=e(i),this.options=this.getOptions(n);for(var o=this.options.trigger.split(" "),r=o.length;r--;){var a=o[r];if(a=="click")this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this));else if(a!="manual"){var l=a=="hover"?"mouseenter":"focus",f=a=="hover"?"mouseleave":"blur";this.$element.on(l+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(f+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.getOptions=function(t){return t=e.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t},s.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&e.each(this._options,function(n,o){i[n]!=o&&(t[n]=o)}),t},s.prototype.enter=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)},s.prototype.leave=function(t){var i=t instanceof this.constructor?t:e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState=="out"&&i.hide()},i.options.delay.hide)},s.prototype.show=function(){var t=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(t),t.isDefaultPrevented())return;var i=this.tip();this.setContent(),this.options.animation&&i.addClass("fade");var n=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,o=/\s?auto?\s?/i,r=o.test(n);r&&(n=n.replace(o,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(n),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var a=this.getPosition(),l=i[0].offsetWidth,f=i[0].offsetHeight;if(r){var d=this.$element.parent(),p=n,c=document.documentElement.scrollTop||document.body.scrollTop,u=this.options.container=="body"?window.innerWidth:d.outerWidth(),v=this.options.container=="body"?window.innerHeight:d.outerHeight(),m=this.options.container=="body"?0:d.offset().left;n=n=="bottom"&&a.top+a.height+f-c>v?"top":n=="top"&&a.top-c-f<0?"bottom":n=="right"&&a.right+l>
208u?"left":n=="left"&&a.left-l<m?"right":n,i.removeClass(p).addClass(n)}var g=this.getCalculatedOffset(n,a,l,f);this.applyPlacement(g,n),this.$element.trigger("shown.bs."+this.type)}},s.prototype.applyPlacement=function(t,i){var n,o=this.tip(),r=o[0].offsetWidth,a=o[0].offsetHeight,l=parseInt(o.css("margin-top"),10),f=parseInt(o.css("margin-left"),10);isNaN(l)&&(l=0),isNaN(f)&&(f=0),t.top=t.top+l,t.left=t.left+f,o.offset(t).addClass("in");var d=o[0].offsetWidth,p=o[0].offsetHeight;if(i=="top"&&p!=a&&(n=!0,t.top=t.top+a-p),/bottom|top/.test(i)){var c=0;t.left<0&&(c=t.left*-2,t.left=0,o.offset(t),d=o[0].offsetWidth,p=o[0].offsetHeight),this.replaceArrow(c-r+d,d,"left")}else this.replaceArrow(p-a,p,"top");n&&o.offset(t)},s.prototype.replaceArrow=function(t,i,n){this.arrow().css(n,t?50*(1-t/i)+"%":"")},s.prototype.setContent=function(){var t=this.tip(),i=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](i),t.removeClass("fade in top bottom left right")},s.prototype.hide=function(){var t=this,i=this.tip(),n=e.Event("hide.bs."+this.type);function o(){t.hoverState!="in"&&i.detach()}if(this.$element.trigger(n),!n.isDefaultPrevented())return i.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?i.one(e.support.transition.end,o).emulateTransitionEnd(150):o(),this.$element.trigger("hidden.bs."+this.type),this},s.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||typeof t.attr("data-original-title")!="string")&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},s.prototype.hasContent=function(){return this.getTitle()},s.prototype.getPosition=function(){var t=this.$element[0];return e.extend({},typeof t.getBoundingClientRect=="function"?t.getBoundingClientRect():{width:t.offsetWidth,height:t.offsetHeight},this.$element.offset())},s.prototype.getCalculatedOffset=function(t,i,n,o){return t=="bottom"?{top:i.top+i.height,left:i.left+i.width/2-n/2}:t=="top"?{top:i.top-o,left:i.left+i.width/2-n/2}:t=="left"?{top:i.top+i.height/2-o/2,left:i.left-n}:{top:i.top+i.height/2-o/2,left:i.left+i.width}},s.prototype.getTitle=function(){var t,i=this.$element,n=this.options;return t=i.attr("data-original-title")||(typeof n.title=="function"?n.title.call(i[0]):n.title),t},s.prototype.tip=function(){return this.$tip=this.$tip||e(this.options.template)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},s.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},s.prototype.enable=function(){this.enabled=!0},s.prototype.disable=function(){this.enabled=!1},s.prototype.toggleEnabled=function(){this.enabled=!this.enabled},s.prototype.toggle=function(t){var i=t?e(t.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;i.tip().hasClass("in")?i.leave(i):i.enter(i)},s.prototype.destroy=function(){this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var h=e.fn.tooltip;e.fn.tooltip=function(t){return this.each(function(){var i=e(this),n=i.data("bs.tooltip"),o=typeof t=="object"&&t;n||i.data("bs.tooltip",n=new s(this,o)),typeof t=="string"&&n[t]()})},e.fn.tooltip.Constructor=s,e.fn.tooltip.noConflict=function(){return e.fn.tooltip=h,this}})(window.jQuery),+(function(e){"use strict";var s=function(t,i){this.init("popover",t,i)};if(!e.fn.tooltip)throw new Error("Popover requires tooltip.js");s.DEFAULTS=e.extend({},e.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),s.prototype=e.extend({},e.fn.tooltip.Constructor.prototype),s.prototype.constructor=s,s.prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var t=this.tip(),i=this.getTitle(),n=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](i),t.find(".popover-content")[this.options.html?"html":"text"](n),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var t=this.$element,i=this.options;return t.attr("data-content")||(typeof i.content=="function"?i.content.call(t[0]):i.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},s.prototype.tip=function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip};var h=e.fn.popover;e.fn.popover=function(t){return this.each(function(){var i=e(this),n=i.data("bs.popover"),o=typeof t=="object"&&t;n||i.data("bs.popover",n=new s(this,o)),typeof t=="string"&&n[t]()})},e.fn.popover.Constructor=s,e.fn.popover.noConflict=function(){return e.fn.popover=h,this}})(window.jQuery),+(function(e){"use strict";function s(t,i){var n,o=e.proxy(this.process,this);this.$element=e(t).is("body")?e(window):e(t),this.$body=e("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",o),this.options=e.extend({},s.DEFAULTS,i),this.selector=(this.options.target||(n=e(t).attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=e([]),this.targets=e([]),this.activeTarget=null,this.refresh(),this.process()}s.DEFAULTS={offset:10},s.prototype.refresh=function(){var t=this.$element[0]==window?"offset":"position";this.offsets=e([]),this.targets=e([]);var i=this,n=this.$body.find(this.selector).map(function(){var o=e(this),r=o.data("target")||o.attr("href"),a=/^#\w/.test(r)&&e(r);return a&&a.length&&[[a[t]().top+(!e.isWindow(i.$scrollElement.get(0))&&i.$scrollElement.scrollTop()),r]]||null}).sort(function(o,r){return o[0]-r[0]}).each(function(){i.offsets.push(this[0]),i.targets.push(this[1])})},s.prototype.process=function(){var t=this.$scrollElement.scrollTop()+this.options.offset,i=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,n=i-this.$scrollElement.height(),o=this.offsets,r=this.targets,a=this.activeTarget,l;if(t>=n)return a!=(l=r.last()[0])&&this.activate(l);for(l=o.length;l--;)a!=r[l]&&t>=o[l]&&(!o[l+1]||t<=o[l+1])&&this.activate(r[l])},s.prototype.activate=function(t){this.activeTarget=t,e(this.selector).parents(".active").removeClass("active");var i=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',n=e(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.trigger("activate")};var h=e.fn.scrollspy;e.fn.scrollspy=function(t){return this.each(function(){var i=e(this),n=i.data("bs.scrollspy"),o=typeof t=="object"&&t;n||i.data("bs.scrollspy",n=new s(this,o)),typeof t=="string"&&n[t]()})},e.fn.scrollspy.Constructor=s,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=h,this},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var t=e(this);t.scrollspy(t.data())})})})(window.jQuery),+(function(e){"use strict";var s=function(t){this.element=e(t)};s.prototype.show=function(){var t=this.element,i=t.closest("ul:not(.dropdown-menu)"),n=t.attr("data-target");if(n||(n=t.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var o=i.find(".active:last a")[0],r=e.Event("show.bs.tab",{relatedTarget:o});if(t.trigger(r),!r.isDefaultPrevented()){var a=e(n);this.activate(t.parent("li"),i),this.activate(a,a.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:o})})}}},s.prototype.activate=function(t,i,n){var o=i.find("> .active"),r=n&&e.support.transition&&o.hasClass("fade");function a(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),t.addClass("active"),r?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade"),t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active"),n&&n()}r?o.one(e.support.transition.end,a).emulateTransitionEnd(150):a(),o.removeClass("in")};var h=e.fn.tab;e.fn.tab=function(t){return this.each(function(){var i=e(this),n=i.data("bs.tab");n||i.data("bs.tab",n=new s(this)),typeof t=="string"&&n[t]()})},e.fn.tab.Constructor=s,e.fn.tab.noConflict=function(){return e.fn.tab=h,this},e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault(),e(this).tab("show")})})(window.jQuery),+(function(e){"use strict";var s=function(t,i){this.options=e.extend({},s.DEFAULTS,i),this.$window=e(window).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(t),this.affixed=this.unpin=null,this.checkPosition()};s.RESET="affix affix-top affix-bottom",s.DEFAULTS={offset:0},s.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},s.prototype.checkPosition=function(){if(this.$element.is(":visible")){var t=e(document).height(),i=this.$window.scrollTop(),n=this.$element.offset(),o=this.options.offset,r=o.top,a=o.bottom;typeof o!="object"&&(a=r=o),typeof r=="function"&&(r=o.top()),typeof a=="function"&&(a=o.bottom());var l=this.unpin!=null&&i+this.unpin<=n.top?!1:a!=null&&n.top+this.$element.height()>=t-a?"bottom":r!=null&&i<=r?"top":!1;this.affixed!==l&&(this.unpin&&this.$element.css("top",""),this.affixed=l,this.unpin=l=="bottom"?n.top-i:null,this.$element.removeClass(s.RESET).addClass("affix"+(l?"-"+l:"")),l=="bottom"&&this.$element.offset({top:document.body.offsetHeight-a-this.$element.height()}))}};var h=e.fn.affix;e.fn.affix=function(t){return this.each(function(){var i=e(this),n=i.data("bs.affix"),o=typeof t=="object"&&t;n||i.data("bs.affix",n=new s(this,o)),typeof t=="string"&&n[t]()})},e.fn.affix.Constructor=s,e.fn.affix.noConflict=function(){return e.fn.affix=h,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var t=e(this),i=t.data();i.offset=i.offset||{},i.offsetBottom&&(i.offset.bottom=i.offsetBottom),i.offsetTop&&(i.offset.top=i.offsetTop),t.affix(i)})})})(window.jQuery); 209 210/* 211 A simple jQuery modal (http://github.com/kylefox/jquery-modal) 212 Version 0.8.0 213*/ 214!function(o){"object"==typeof module&&"object"==typeof module.exports?o(require("jquery"),window,document):o(jQuery,window,document)}(function(o,t,e,i){var s=[],l=function(){return s.length?s[s.length-1]:null},n=function(){var o,t=!1;for(o=s.length-1;o>=0;o--)s[o].$blocker&&(s[o].$blocker.toggleClass("current",!t).toggleClass("behind",t),t=!0)};o.modal=function(t,e){var i,n;if(this.$body=o("body"),this.options=o.extend({},o.modal.defaults,e),this.options.doFade=!isNaN(parseInt(this.options.fadeDuration,10)),this.$blocker=null,this.options.closeExisting)for(;o.modal.isActive();)o.modal.close();
214if(s.push(this),t.is("a"))if(n=t.attr("href"),/^#/.test(n)){if(this.$elm=o(n),1!==this.$elm.length)return null;this.$body.append(this.$elm),this.open()}else this.$elm=o("<div>"),this.$body.append(this.$elm),i=function(o,t){t.elm.remove()},this.showSpinner(),t.trigger(o.modal.AJAX_SEND),o.get(n).done(function(e){if(o.modal.isActive()){t.trigger(o.modal.AJAX_SUCCESS);var s=l();s.$elm.empty().append(e).on(o.modal.CLOSE,i),s.hideSpinner(),s.open(),t.trigger(o.modal.AJAX_COMPLETE)}}).fail(function(){t.trigger(o.modal.AJAX_FAIL);var e=l();e.hideSpinner(),s.pop(),t.trigger(o.modal.AJAX_COMPLETE)});else this.$elm=t,this.$body.append(this.$elm),this.open()},o.modal.prototype={constructor:o.modal,open:function(){var t=this;this.block(),this.options.doFade?setTimeout(function(){t.show()},this.options.fadeDuration*this.options.fadeDelay):this.show(),o(e).off("keydown.modal").on("keydown.modal",function(o){var t=l();27==o.which&&t.options.escapeClose&&t.close()}),this.options.clickClose&&this.$blocker.click(function(t){t.target==this&&o.modal.close()})},close:function(){s.pop(),this.unblock(),this.hide(),o.modal.isActive()||o(e).off("keydown.modal")},block:function(){this.$elm.trigger(o.modal.BEFORE_BLOCK,[this._ctx()]),this.$body.css("overflow","hidden"),this.$blocker=o('<div class="jquery-modal blocker current"></div>').appendTo(this.$body),n(),this.options.doFade&&this.$blocker.css("opacity",0).animate({opacity:1},this.options.fadeDuration),this.$elm.trigger(o.modal.BLOCK,[this._ctx()])},unblock:function(t){!t&&this.options.doFade?this.$blocker.fadeOut(this.options.fadeDuration,this.unblock.bind(this,!0)):(this.$blocker.children().appendTo(this.$body),this.$blocker.remove(),this.$blocker=null,n(),o.modal.isActive()||this.$body.css("overflow",""))},show:function(){this.$elm.trigger(o.modal.BEFORE_OPEN,[this._ctx()]),this.options.showClose&&(this.closeButton=o('<a href="#close-modal" rel="modal:close" class="close-modal '+this.options.closeClass+'">'+this.options.closeText+"</a>"),this.$elm.append(this.closeButton)),this.$elm.addClass(this.options.modalClass).appendTo(this.$blocker),this.options.doFade?this.$elm.css("opacity",0).show().animate({opacity:1},this.options.fadeDuration):this.$elm.show(),this.$elm.trigger(o.modal.OPEN,[this._ctx()])},hide:function(){this.$elm.trigger(o.modal.BEFORE_CLOSE,[this._ctx()]),this.closeButton&&this.closeButton.remove();var t=this;this.options.doFade?this.$elm.fadeOut(this.options.fadeDuration,function(){t.$elm.trigger(o.modal.AFTER_CLOSE,[t._ctx()])}):this.$elm.hide(0,function(){t.$elm.trigger(o.modal.AFTER_CLOSE,[t._ctx()])}),this.$elm.trigger(o.modal.CLOSE,[this._ctx()])},showSpinner:function(){this.options.showSpinner&&(this.spinner=this.spinner||o('<div class="'+this.options.modalClass+'-spinner"></div>').append(this.options.spinnerHtml),this.$body.append(this.spinner),this.spinner.show())},hideSpinner:function(){this.spinner&&this.spinner.remove()},_ctx:function(){return{elm:this.$elm,$blocker:this.$blocker,options:this.options}}},o.modal.close=function(t){if(o.modal.isActive()){t&&t.preventDefault();var e=l();return e.close(),e.$elm}},o.modal.isActive=function(){return s.length>0},o.modal.getCurrent=l,o.modal.defaults={closeExisting:!0,escapeClose:!0,clickClose:!0,closeText:"Close",closeClass:"",modalClass:"modal",spinnerHtml:null,showSpinner:!0,showClose:!0,fadeDuration:null,fadeDelay:1},o.modal.BEFORE_BLOCK="modal:before-block",o.modal.BLOCK="modal:block",o.modal.BEFORE_OPEN="modal:before-open",o.modal.OPEN="modal:open",o.modal.BEFORE_CLOSE="modal:before-close",o.modal.CLOSE="modal:close",o.modal.AFTER_CLOSE="modal:after-close",o.modal.AJAX_SEND="modal:ajax:send",o.modal.AJAX_SUCCESS="modal:ajax:success",o.modal.AJAX_FAIL="modal:ajax:fail",o.modal.AJAX_COMPLETE="modal:ajax:complete",o.fn.modal=function(t){return 1===this.length&&new o.modal(this,t),this},o(e).on("click.modal",'a[rel~="modal:close"]',o.modal.close),o(e).on("click.modal",'a[rel~="modal:open"]',function(t){t.preventDefault(),o(this).modal()})}); 215(function(t){"use strict";var s={},p={},d={},E;function T(n,f,r){var e=this,o,c,i;return f=f||{},i=t.extend(!0,{async:!0,overwriteCache:!1,complete:null,success:null,error:function(){t(this).each(function(){t(this).html(i.errorMessage)})},errorMessage:"There was an error loading the template.",paged:!1,pageNo:1,elemPerPage:10,append:!1,prepend:!1,beforeInsert:null,afterInsert:null,bindingOptions:{ignoreUndefined:!1,ignoreNull:!1,ignoreEmptyString:!1}},r),t.type(f)==="array"?(E=!0,I.call(this,n,f,i)):(F(n)||(o=t(n),typeof n=="string"&&n.indexOf("#")===0&&(i.isFile=!1)),c=i.isFile||typeof i.isFile>"u"&&(typeof o>"u"||o.length===0),c&&!i.overwriteCache&&s[n]?N(n,e,f,i):c&&!i.overwriteCache&&s.hasOwnProperty(n)?j(n,e,f,i):c?L(n,e,f,i):M(o,e,f,i),this)}function b(n,f){f?d[n]=f:d=t.extend(d,n)}function F(n){return typeof n=="string"&&n.indexOf("/")>-1}function I(n,f,r){r=r||{};
215var e=this,o=f.length,c=r.prepend&&!r.append,i=0,l=0,h=!1,O=[],P;if(r.paged){var k=(r.pageNo-1)*r.elemPerPage;f=f.slice(k,k+r.elemPerPage),o=f.length}return!r.append&&!r.prepend&&e.html(""),P=t.extend({},r,{append:!r.prepend&&!0,complete:function(A){i++,(i===o||h)&&(h&&r&&typeof r.error=="function"&&r.error.call(e,O),r&&typeof r.complete=="function"&&r.complete())},success:function(){l++,l===o&&r&&typeof r.success=="function"&&r.success()},error:function(A){h=!0,O.push(A)}}),c&&f.reverse(),t(f).each(function(){if(T.call(e,n,this,P),h)return!1}),this}function j(n,f,r,e){p[n]?p[n].push({data:r,selection:f,settings:e}):p[n]=[{data:r,selection:f,settings:e}]}function N(n,f,r,e){var o=s[n].clone();y.call(f,o,r,e),typeof e.success=="function"&&e.success()}function w(){return new Date().getTime()}function S(n){return n.indexOf("?")!==-1?n+"&_="+w():n+"?_="+w()}function L(n,f,r,e){s[n]=null;var o=n;e.overwriteCache&&(o=S(o)),t.ajax({url:o,async:e.async,success:function(c){q(t(c),n,f,r,e)},error:function(c){H(n,f,r,e,c)}})}function M(n,f,r,e){(n.is("script")||n.is("template"))&&(n=t.parseHTML(t.trim(n.html()))),y.call(f,n,r,e),typeof e.success=="function"&&e.success()}function y(e,f,r){var e=t("<div/>").append(e);B(e,f,r),t(this).each(function(){var o=e.children().clone(!0);t("select",o).each(function(c,i){t(this).val(t("select",e).eq(c).val())}),r.beforeInsert&&r.beforeInsert(o,f),r.append?t(this).append(o):r.prepend?t(this).prepend(o):t(this).html("").append(o),r.afterInsert&&r.afterInsert(o,f)}),typeof r.complete=="function"&&r.complete.call(t(this),f)}function H(n,f,r,e,o){var c;for(typeof e.error=="function"&&e.error.call(f,o),t(p[n]).each(function(i,l){typeof l.settings.error=="function"&&l.settings.error.call(l.selection,o)}),typeof e.complete=="function"&&e.complete.call(f);p[n]&&(c=p[n].shift());)typeof c.settings.complete=="function"&&c.settings.complete.call(c.selection);typeof p[n]<"u"&&p[n].length>0&&(p[n]=[])}function q(n,f,r,e,o){var c;for(s[f]=n.clone(),y.call(r,n,e,o),typeof o.success=="function"&&o.success.call(r);p[f]&&(c=p[f].shift());)y.call(c.selection,s[f].clone(),c.data,c.settings),typeof c.settings.success=="function"&&c.settings.success.call(c.selection)}function B(n,f,r){f=f||{},a("data-content",n,f,r,function(e,o){e.html(u(e,o,"content",r))}),a("data-content-append",n,f,r,function(e,o){e.append(u(e,o,"content",r))}),a("data-content-prepend",n,f,r,function(e,o){e.prepend(u(e,o,"content",r))}),a("data-content-text",n,f,r,function(e,o){e.text(u(e,o,"content",r))}),a("data-innerHTML",n,f,r,function(e,o){e.html(u(e,o,"content",r))}),a("data-src",n,f,r,function(e,o){e.attr("src",u(e,o,"src",r))},function(e){e.remove()}),a("data-href",n,f,r,function(e,o){e.attr("href",u(e,o,"href",r))},function(e){e.remove()}),a("data-alt",n,f,r,function(e,o){e.attr("alt",u(e,o,"alt",r))}),a("data-id",n,f,r,function(e,o){e.attr("id",u(e,o,"id",r))}),a("data-class",n,f,r,function(e,o){e.addClass(u(e,o,"class",r))}),a("data-link",n,f,r,function(e,o){var c=t("<a/>");c.attr("href",u(e,o,"link",r)),c.html(e.html()),e.html(c)}),a("data-link-wrap",n,f,r,function(e,o){var c=t("<a/>");c.attr("href",u(e,o,"link-wrap",r)),e.wrap(c)}),a("data-options",n,f,r,function(e,o){t(o).each(function(){var c=t("<option/>");c.attr("value",this).text(this).appendTo(e)})}),Q(n,f,r),a("data-value",n,f,r,function(e,o){e.val(u(e,o,"value",r))})}function a(n,f,r,e,o,c){t("["+n+"]",f).each(function(){var i=t(this),l=i.attr(n),h=m(r,l);if(!x(i,h,e)){i.remove();return}i.removeAttr(n),typeof h<"u"&&o?o(i,h):c&&c(i)})}function x(n,f,r){var e=J(n,r);return e.ignoreUndefined&&typeof f>"u"||e.ignoreNull&&f===null?!1:!(e.ignoreEmptyString&&f==="")}function J(n,f){var r={};return n instanceof jQuery&&n.attr("data-binding-options")?(r=t.parseJSON(n.attr("data-binding-options")),n.removeAttr("data-binding-options")):typeof n=="object"&&n.hasOwnProperty("bindingOptions")&&(r=n.bindingOptions),t.extend({},f.bindingOptions,r)}function Q(n,f,r){t("[data-template-bind]",n).each(function(){var e=t(this),o=t.parseJSON(e.attr("data-template-bind"));e.removeAttr("data-template-bind"),t(o).each(function(){var c;if(typeof this.value=="object"?c=m(f,this.value.data):c=m(f,this.value),this.attribute){if(!x(this,c,r)){e.remove();return}switch(this.attribute){case"content":case"innerHTML":e.html(v(e,c,this));break;case"contentAppend":e.append(v(e,c,this));break;case"contentPrepend":e.prepend(v(e,c,this));break;case"contentText":e.text(v(e,c,this));break;case"options":var i=this;
215t(c).each(function(){var l=t("<option/>");l.attr("value",this[i.value.value]).text(v(e,this[i.value.content],i)).attr("selected",typeof this[i.value.selected]==null?!1:this[i.value.selected]).appendTo(e)});break;default:e.attr(this.attribute,v(e,c,this))}}})})}function v(n,f,r,e){return r.formatter&&d[r.formatter]?(function(o){return d[r.formatter].call(n,f,r.formatOptions,o)})(e):f}function m(n,f){if(f==="this")return n;for(var r=f.split("."),e,o=n;(e=r.shift())&&typeof o<"u"&&o!=null;)o=o[e];return o}function u(n,f,r,e){var o=n.attr("data-format-target"),c;if((o===r||!o&&r==="content")&&(c=n.attr("data-format"),c&&typeof d[c]=="function")){var i=n.attr("data-format-options");return(function(l){return d[c].call(n[0],f,i,t.extend({},l))})(e)}return f}b("nestedTemplateFormatter",function(n,f,r){if(f){typeof f=="string"&&f[0]==="{"&&(f=t.parseJSON(f));var e=f.parentElement||"div",o=f.template||f;return f.parentElement?t("<"+e+"/>").loadTemplate(o,n,r):t("<"+e+"/>").loadTemplate(o,n,r).children()}}),t.fn.loadTemplate=T,t.addTemplateFormatter=b})(jQuery); 216
vendor: 24,099 bytes, line 217
217/*! Select2 4.0.3 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){var b=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)var b=a.fn.select2.amd;var b;return function(){if(!b||!b.requirejs){b?c=b:b={};var a,c,d;!function(b){function e(a,b){return u.call(a,b)}function f(a,b){var c,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.slice(0,n.length-1).concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;else if(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}return a}function g(a,c){return function(){var d=v.call(arguments,0);return"string"!=typeof d[0]&&1===d.length&&d.push(null),n.apply(b,d.concat([a,c]))}}function h(a){return function(b){return f(b,a)}}function i(a){return function(b){q[a]=b}}function j(a){if(e(r,a)){var c=r[a];delete r[a],t[a]=!0,m.apply(b,c)}if(!e(q,a)&&!e(t,a))throw new Error("No "+a);return q[a]}function k(a){var b,c=a?a.indexOf("!"):-1;return c>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function l(a){return function(){return s&&s.config&&s.config[a]||{}}}var m,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){var c,d=k(a),e=d[0];return a=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){return g(a)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,c,d,f){var h,k,l,m,n,s,u=[],v=typeof d;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[n],f),k=m.f,"require"===k)u[n]=p.require(a);else if("exports"===k)u[n]=p.exports(a),s=!0;else if("module"===k)h=u[n]=p.module(a);else if(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)throw new Error(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=d?d.apply(q[a],u):void 0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}else a&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeof a)return p[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}return c=c||function(){},"function"==typeof d&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){return n(a)},a._defined=q,d=function(a,b,c){if("string"!=typeof a)throw new Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){var b=a||$;return null==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){function b(a){var b=a.prototype,c=[];for(var d in b){var e=b[d];"function"==typeof e&&"constructor"!==d&&c.push(d)}return c}var c={};c.Extend=function(a,b){function c(){this.constructor=a}var d={}.hasOwnProperty;for(var e in b)d.call(b,e)&&(a[e]=b[e]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},c.Decorate=function(a,c){function d(){var b=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}function e(){this.constructor=d}var f=b(c),g=b(a);c.displayName=a.displayName,d.prototype=new e;for(var h=0;h<g.length;h++){var i=g[h];d.prototype[i]=a.prototype[i]}for(var j=(function(a){var b=function(){};a in d.prototype&&(b=d.prototype[a]);var e=c.prototype[a];return function(){var a=Array.prototype.unshift;return a.call(arguments,b),e.apply(this,arguments)}}),k=0;k<f.length;k++){var l=f[k];d.prototype[l]=j(l)}return d};var d=function(){this.listeners={}};return d.prototype.on=function(a,b){this.listeners=this.listeners||{},a in this.listeners?this.listeners[a].push(b):this.listeners[a]=[b]},d.prototype.trigger=function(a){var b=Array.prototype.slice,c=b.call(arguments,1);this.listeners=this.listeners||{},null==c&&(c=[]),0===c.length&&c.push({}),c[0]._type=a,a in this.listeners&&this.invoke(this.listeners[a],b.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},d.prototype.invoke=function(a,b){for(var c=0,d=a.length;d>c;c++)a[c].apply(this,b)},c.Observable=d,c.generateChars=function(a){for(var b="",c=0;a>c;c++){var d=Math.floor(36*Math.random());b+=d.toString(36)}return b},c.bind=function(a,b){return function(){a.apply(b,arguments)}},c._convertData=function(a){for(var b in a){var c=b.split("-"),d=a;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),f in d||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}delete a[b]}}return a},c.hasScroll=function(b,c){var d=a(c),e=c.style.overflowX,f=c.style.overflowY;return e!==f||"hidden"!==f&&"visible"!==f?"scroll"===e||"scroll"===f?!0:d.innerHeight()<c.scrollHeight||d.innerWidth()<c.scrollWidth:!1},c.escapeMarkup=function(a){var b={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof a?a:String(a).replace(/[&<>"'\/\\]/g,function(a){return b[a]})},c.appendMany=function(b,c){if("1.7"===a.fn.jquery.substr(0,3)){var d=a();a.map(c,function(a){d=d.add(a)}),c=d}b.append(c)},c}),b.define("select2/results",["jquery","./utils"],function(a,b){function c(a,b,d){this.$element=a,this.data=d,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&b.attr("aria-multiselectable","true"),this.$results=b,b},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(b){var c=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),e=this.options.get("translations").get(b.message);d.append(c(e(b.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(a){this.hideLoading();var b=[];if(null==a.results||0===a.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));a.results=this.sort(a.results);for(var c=0;c<a.results.length;c++){var d=a.results[c],e=this.option(d);b.push(e)}this.$results.append(b)},c.prototype.position=function(a,b){var c=b.find(".select2-results");c.append(a)},c.prototype.sort=function(a){var b=this.options.get("sorter");return b(a)},c.prototype.highlightFirstItem=function(){var a=this.$results.find(".select2-results__option[aria-selected]"),b=a.filter("[aria-selected=true]");b.length>0?b.first().trigger("mouseenter"):a.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var b=this;this.data.current(function(c){var d=a.map(c,function(a){return a.id.toString()}),e=b.$results.find(".select2-results__option[aria-selected]");e.each(function(){var b=a(this),c=a.data(this,"data"),e=""+c.id;null!=c.element&&c.element.selected||null==c.element&&a.inArray(e,d)>-1?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},c.prototype.showLoading=function(a){this.hideLoading();var b=this.options.get("translations").get("searching"),c={disabled:!0,loading:!0,text:b(a)},d=this.option(c);d.className+=" loading-results",this.$results.prepend(d)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(b){var c=document.createElement("li");c.className="select2-results__option";var d={role:"treeitem","aria-selected":"false"};b.disabled&&(delete d["aria-selected"],d["aria-disabled"]="true"),null==b.id&&delete d["aria-selected"],null!=b._resultId&&(c.id=b._resultId),b.title&&(c.title=b.title),b.children&&(d.role="group",d["aria-label"]=b.text,delete d["aria-selected"]);for(var e in d){var f=d[e];c.setAttribute(e,f)}if(b.children){var g=a(c),h=document.createElement("strong");h.className="select2-results__group";a(h);this.template(b,h);for(var i=[],j=0;j<b.children.length;j++){var k=b.children[j],l=this.option(k);i.push(l)}var m=a("<ul></ul>",{"class":"select2-results__options select2-results__options--nested"});m.append(i),g.append(h),g.append(m)}else this.template(b,c);return a.data(c,"data",b),c},c.prototype.bind=function(b,c){var d=this,e=b.id+"-results";this.$results.attr("id",e),b.on("results:all",function(a){d.clear(),d.append(a.data),b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("results:append",function(a){d.append(a.data),b.isOpen()&&d.setClasses()}),b.on("query",function(a){d.hideMessages(),d.showLoading(a)}),b.on("select",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("unselect",function(){b.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),b.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}),b.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),b.on("results:toggle",function(){var a=d.getHighlightedResults();0!==a.length&&a.trigger("mouseup")}),b.on("results:select",function(){var a=d.getHighlightedResults();if(0!==a.length){var b=a.data("data");"true"==a.attr("aria-selected")?d.trigger("close",{}):d.trigger("select",{data:b})}}),b.on("results:previous",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a);if(0!==c){var e=c-1;0===a.length&&(e=0);var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top,h=f.offset().top,i=d.$results.scrollTop()+(h-g);0===e?d.$results.scrollTop(0):0>h-g&&d.$results.scrollTop(i)}}),b.on("results:next",function(){var a=d.getHighlightedResults(),b=d.$results.find("[aria-selected]"),c=b.index(a),e=c+1;if(!(e>=b.length)){var f=b.eq(e);f.trigger("mouseenter");var g=d.$results.offset().top+d.$results.outerHeight(!1),h=f.offset().top+f.outerHeight(!1),i=d.$results.scrollTop()+h-g;0===e?d.$results.scrollTop(0):h>g&&d.$results.scrollTop(i)}}),b.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")}),b.on("results:message",function(a){d.displayMessage(a)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(a){var b=d.$results.scrollTop(),c=d.$results.get(0).scrollHeight-b+a.deltaY,e=a.deltaY>0&&b-a.deltaY<=0,f=a.deltaY<0&&c<=d.$results.height();e?(d.$results.scrollTop(0),a.preventDefault(),a.stopPropagation()):f&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),a.preventDefault(),a.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=a(this),e=c.data("data");return"true"===c.attr("aria-selected")?void(d.options.get("multiple")?d.trigger("unselect",{originalEvent:b,data:e}):d.trigger("close",{})):void d.trigger("select",{originalEvent:b,data:e})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(b){var c=a(this).data("data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:c,element:a(this)})})},c.prototype.getHighlightedResults=function(){var a=this.$results.find(".select2-results__option--highlighted");return a},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var a=this.getHighlightedResults();if(0!==a.length){var b=this.$results.find("[aria-selected]"),c=b.index(a),d=this.$results.offset().top,e=a.offset().top,f=this.$results.scrollTop()+(e-d),g=e-d;f-=2*a.outerHeight(!1),2>=c?this.$results.scrollTop(0):(g>this.$results.outerHeight()||0>g)&&this.$results.scrollTop(f)}},c.prototype.template=function(b,c){var d=this.options.get("templateResult"),e=this.options.get("escapeMarkup"),f=d(b,c);null==f?c.style.display="none":"string"==typeof f?c.innerHTML=e(f):a(c).append(f)},c}),b.define("select2/keys",[],function(){var a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return a}),b.define("select2/selection/base",["jquery","../utils","../keys"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,b.Observable),d.prototype.render=function(){var b=a('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},d.prototype.bind=function(a,b){var d=this,e=(a.id+"-container",a.id+"-results");this.container=a,this.$selection.on("focus",function(a){d.trigger("focus",a)}),this.$selection.on("blur",function(a){d._handleBlur(a)}),this.$selection.on("keydown",function(a){d.trigger("keypress",a),a.which===c.SPACE&&a.preventDefault()}),a.on("results:focus",function(a){d.$selection.attr("aria-activedescendant",a.data._resultId)}),a.on("selection:update",function(a){d.update(a.data)}),a.on("open",function(){d.$selection.attr("aria-expanded","true"),d.$selection.attr("aria-owns",e),d._attachCloseHandler(a)}),a.on("close",function(){d.$selection.attr("aria-expanded","false"),d.$selection.removeAttr("aria-activedescendant"),d.$selection.removeAttr("aria-owns"),d.$selection.focus(),d._detachCloseHandler(a)}),a.on("enable",function(){d.$selection.attr("tabindex",d._tabindex)}),a.on("disable",function(){d.$selection.attr("tabindex","-1")})},d.prototype._handleBlur=function(b){var c=this;window.setTimeout(function(){document.activeElement==c.$selection[0]||a.contains(c.$selection[0],document.activeElement)||c.trigger("blur",b)},1)},d.prototype._attachCloseHandler=function(b){a(document.body).on("mousedown.select2."+b.id,function(b){var c=a(b.target),d=c.closest(".select2"),e=a(".select2.select2-container--open");e.each(function(){var b=a(this);if(this!=d[0]){var c=b.data("element");c.select2("close")}})})},d.prototype._detachCloseHandler=function(b){a(document.body).off("mousedown.select2."+b.id)},d.prototype.position=function(a,b){var c=b.find(".selection");c.append(a)},d.prototype.destroy=function(){this._detachCloseHandler(this.container)},d.prototype.update=function(a){throw new Error("The `update` method must be defined in child classes.")},d}),b.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,b,c,d){function e(){e.__super__.constructor.apply(this,arguments)}return c.Extend(e,b),e.prototype.render=function(){var a=e.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),a},e.prototype.bind=function(a,b){var c=this;e.__super__.bind.apply(this,arguments);var d=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&c.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(a){}),this.$selection.on("blur",function(a){}),a.on("focus",function(b){a.isOpen()||c.$selection.focus()}),a.on("selection:update",function(a){c.update(a.data)})},e.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},e.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},e.prototype.selectionContainer=function(){return a("<span></span>")},e.prototype.update=function(a){if(0===a.length)return void this.clear();var b=a[0],c=this.$selection.find(".select2-selection__rendered"),d=this.display(b,c);c.empty().append(d),c.prop("title",b.title||b.text)},e}),b.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,b,c){function d(a,b){d.__super__.constructor.apply(this,arguments)}return c.Extend(d,b),d.prototype.render=function(){var a=d.__super__.render.call(this);return a.addClass("select2-selection--multiple"),a.html('<ul class="select2-selection__rendered"></ul>'),a},d.prototype.bind=function(b,c){var e=this;d.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){e.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(b){if(!e.options.get("disabled")){var c=a(this),d=c.parent(),f=d.data("data");e.trigger("unselect",{originalEvent:b,data:f})}})},d.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},d.prototype.display=function(a,b){var c=this.options.get("templateSelection"),d=this.options.get("escapeMarkup");return d(c(a,b))},d.prototype.selectionContainer=function(){var b=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>');return b},d.prototype.update=function(a){if(this.clear(),0!==a.length){for(var b=[],d=0;d<a.length;d++){var e=a[d],f=this.selectionContainer(),g=this.display(e,f);f.append(g),f.prop("title",e.title||e.text),f.data("data",e),b.push(f)}var h=this.$selection.find(".select2-selection__rendered");c.appendMany(h,b)}},d}),b.define("select2/selection/placeholder",["../utils"],function(a){function b(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}return b.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},b.prototype.createPlaceholder=function(a,b){var c=this.selectionContainer();return c.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},b.prototype.update=function(a,b){var c=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)return a.call(this,b);this.clear();var e=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(e)},b}),b.define("select2/selection/allowClear",["jquery","../keys"],function(a,b){function c(){}return c.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)}),b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},c.prototype._handleClear=function(a,b){if(!this.options.get("disabled")){var c=this.$selection.find(".select2-selection__clear");if(0!==c.length){b.stopPropagation();for(var d=c.data("data"),e=0;e<d.length;e++){var f={data:d[e]};if(this.trigger("unselect",f),f.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},c.prototype._handleKeyboardClear=function(a,c,d){d.isOpen()||(c.which==b.DELETE||c.which==b.BACKSPACE)&&this._handleClear(c)},c.prototype.update=function(b,c){if(b.call(this,c),!(this.$selection.find(".select2-selection__placeholder").length>0||0===c.length)){var d=a('<span class="select2-selection__clear">×</span>');d.data("data",c),this.$selection.find(".select2-selection__rendered").prepend(d)}},c}),b.define("select2/selection/search",["jquery","../utils","../keys"],function(a,b,c){function d(a,b,c){a.call(this,b,c)}return d.prototype.render=function(b){var c=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');this.$searchContainer=c,this.$search=c.find("input");var d=b.call(this);return this._transferTabIndex(),d},d.prototype.bind=function(a,b,d){var e=this;a.call(this,b,d),b.on("open",function(){e.$search.trigger("focus")}),b.on("close",function(){e.$search.val(""),e.$search.removeAttr("aria-activedescendant"),e.$search.trigger("focus")}),b.on("enable",function(){e.$search.prop("disabled",!1),e._transferTabIndex()}),b.on("disable",function(){e.$search.prop("disabled",!0)}),b.on("focus",function(a){e.$search.trigger("focus")}),b.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)}),this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)}),this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)}),this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation(),e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented();var b=a.which;if(b===c.BACKSPACE&&""===e.$search.val()){var d=e.$searchContainer.prev(".select2-selection__choice");if(d.length>0){var f=d.data("data");e.searchRemoveChoice(f),a.preventDefault()}}});var f=document.documentMode,g=f&&11>=f;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){return g?void e.$selection.off("input.search input.searchcheck"):void e.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(g&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=c.SHIFT&&b!=c.CTRL&&b!=c.ALT&&b!=c.TAB&&e.handleSearch(a)})},d.prototype._transferTabIndex=function(a){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},d.prototype.createPlaceholder=function(a,b){this.$search.attr("placeholder",b.text)},d.prototype.update=function(a,b){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),a.call(this,b),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),c&&this.$search.focus()},d.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var a=this.$search.val();this.trigger("query",{term:a})}this._keyUpPrevented=!1},d.prototype.searchRemoveChoice=function(a,b){this.trigger("unselect",{data:b}),this.$search.val(b.text),this.handleSearch()},d.prototype.resizeSearch=function(){this.$search.css("width","25px");var a="";if(""!==this.$search.attr("placeholder"))a=this.$selection.find(".select2-selection__rendered").innerWidth();else{var b=this.$search.val().length+1;a=.75*b+"em"}this.$search.css("width",a)},d}),b.define("select2/selection/eventRelay",["jquery"],function(a){function b(){}return b.prototype.bind=function(b,c,d){var e=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting"],g=["opening","closing","selecting","unselecting"];b.call(this,c,d),c.on("*",function(b,c){if(-1!==a.inArray(b,f)){c=c||{};var d=a.Event("select2:"+b,{params:c});e.$element.trigger(d),-1!==a.inArray(b,g)&&(c.prevented=d.isDefaultPrevented())}})},b}),b.define("select2/translation",["jquery","require"],function(a,b){function c(a){this.dict=a||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(a){return this.dict[a]},c.prototype.extend=function(b){this.dict=a.extend({}
vendor: 4,600 bytes, line 217
217,b.all(),this.dict)},c._cache={},c.loadPath=function(a){if(!(a in c._cache)){var d=b(a);c._cache[a]=d}return new c(c._cache[a])},c}),b.define("select2/diacritics",[],function(){var a={"â¶":"A","A":"A","Ã":"A","Ã":"A","Ã":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ä":"A","Ä":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ç ":"A","Ã":"A","Ç":"A","Ả":"A","Ã
":"A","Ǻ":"A","Ç":"A","È":"A","È":"A","Ạ":"A","Ậ":"A","Ặ":"A","á¸":"A","Ä":"A","Ⱥ":"A","Ɐ":"A","ê²":"AA","Ã":"AE","Ǽ":"AE","Ç¢":"AE","ê´":"AO","ê¶":"AU","ê¸":"AV","êº":"AV","ê¼":"AY","â·":"B","ï¼¢":"B","á¸":"B","á¸":"B","á¸":"B","É":"B","Æ":"B","Æ":"B","â¸":"C","ï¼£":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ã":"C","á¸":"C","Æ":"C","È»":"C","ê¾":"C","â¹":"D","D":"D","á¸":"D","Ä":"D","á¸":"D","á¸":"D","á¸":"D","á¸":"D","Ä":"D","Æ":"D","Æ":"D","Æ":"D","ê¹":"D","DZ":"DZ","Ç":"DZ","Dz":"Dz","Ç
":"Dz","âº":"E","ï¼¥":"E","Ã":"E","Ã":"E","Ã":"E","á»":"E","Ế":"E","á»":"E","á»":"E","Ẽ":"E","Ä":"E","á¸":"E","á¸":"E","Ä":"E","Ä":"E","Ã":"E","Ẻ":"E","Ä":"E","È":"E","È":"E","Ẹ":"E","á»":"E","Ȩ":"E","á¸":"E","Ä":"E","á¸":"E","á¸":"E","Æ":"E","Æ":"E","â»":"F","F":"F","á¸":"F","Æ":"F","ê»":"F","â¼":"G","ï¼§":"G","Ç´":"G","Ä":"G","Ḡ":"G","Ä":"G","Ä ":"G","Ǧ":"G","Ä¢":"G","Ǥ":"G","Æ":"G","ê ":"G","ê½":"G","ê¾":"G","â½":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","È":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","â±§":"H","â±µ":"H","ê":"H","â¾":"I","I":"I","Ã":"I","Ã":"I","Ã":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ã":"I","Ḯ":"I","á»":"I","Ç":"I","È":"I","È":"I","á»":"I","Ä®":"I","Ḭ":"I","Æ":"I","â¿":"J","J":"J","Ä´":"J","É":"J","â":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Æ":"K","Ⱪ":"K","ê":"K","ê":"K","ê":"K","ê¢":"K","â":"L","L":"L","Ä¿":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ä»":"L","Ḽ":"L","Ḻ":"L","Å":"L","Ƚ":"L","â±¢":"L","â± ":"L","ê":"L","ê":"L","ê":"L","Ç":"LJ","Ç":"Lj","â":"M","ï¼":"M","Ḿ":"M","á¹":"M","á¹":"M","â±®":"M","Æ":"M","â":"N","ï¼®":"N","Ǹ":"N","Å":"N","Ã":"N","á¹":"N","Å":"N","á¹":"N","Å
":"N","á¹":"N","á¹":"N","È ":"N","Æ":"N","ê":"N","ê¤":"N","Ç":"NJ","Ç":"Nj","â":"O","O":"O","Ã":"O","Ã":"O","Ã":"O","á»":"O","á»":"O","á»":"O","á»":"O","Ã":"O","á¹":"O","Ȭ":"O","á¹":"O","Å":"O","á¹":"O","á¹":"O","Å":"O","È®":"O","Ȱ":"O","Ã":"O","Ȫ":"O","á»":"O","Å":"O","Ç":"O","È":"O","È":"O","Æ ":"O","á»":"O","á»":"O","á» ":"O","á»":"O","Ợ":"O","á»":"O","á»":"O","Ǫ":"O","Ǭ":"O","Ã":"O","Ǿ":"O","Æ":"O","Æ":"O","ê":"O","ê":"O","Æ¢":"OI","ê":"OO","È¢":"OU","â
":"P","ï¼°":"P","á¹":"P","á¹":"P","Ƥ":"P","â±£":"P","ê":"P","ê":"P","ê":"P","â":"Q","ï¼±":"Q","ê":"Q","ê":"Q","É":"Q","â":"R","ï¼²":"R","Å":"R","á¹":"R","Å":"R","È":"R","È":"R","á¹":"R","á¹":"R","Å":"R","á¹":"R","É":"R","Ɽ":"R","ê":"R","ê¦":"R","ê":"R","â":"S","ï¼³":"S","áº":"S","Å":"S","Ṥ":"S","Å":"S","á¹ ":"S","Å ":"S","Ṧ":"S","á¹¢":"S","Ṩ":"S","È":"S","Å":"S","â±¾":"S","ê¨":"S","ê":"S","â":"T","ï¼´":"T","Ṫ":"T","Ť":"T","Ṭ":"T","È":"T","Å¢":"T","á¹°":"T","á¹®":"T","Ŧ":"T","Ƭ":"T","Æ®":"T","Ⱦ":"T","ê":"T","ê¨":"TZ","â":"U","ï¼µ":"U","Ã":"U","Ã":"U","Ã":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ã":"U","Ç":"U","Ç":"U","Ç":"U","Ç":"U","Ủ":"U","Å®":"U","Ű":"U","Ç":"U","È":"U","È":"U","Ư":"U","Ừ":"U","Ứ":"U","á»®":"U","Ử":"U","á»°":"U","Ụ":"U","á¹²":"U","Ų":"U","á¹¶":"U","á¹´":"U","É":"U","â":"V","ï¼¶":"V","á¹¼":"V","á¹¾":"V","Ʋ":"V","ê":"V","É
":"V","ê ":"VY","â":"W","ï¼·":"W","áº":"W","áº":"W","Å´":"W","áº":"W","áº":"W","áº":"W","â±²":"W","â":"X","X":"X","áº":"X","áº":"X","â":"Y","ï¼¹":"Y","Ỳ":"Y","Ã":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","áº":"Y","Ÿ":"Y","á»¶":"Y","á»´":"Y","Ƴ":"Y","É":"Y","Ỿ":"Y","â":"Z","Z":"Z","Ź":"Z","áº":"Z","Å»":"Z","Ž":"Z","áº":"Z","áº":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","ê¢":"Z","â":"a","ï½":"a","áº":"a","à ":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","Ä":"a","Ä":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","Ç¡":"a","ä":"a","Ç":"a","ả":"a","Ã¥":"a","Ç»":"a","Ç":"a","È":"a","È":"a","ạ":"a","áº":"a","ặ":"a","á¸":"a","Ä
":"a","â±¥":"a","É":"a","ê³":"aa","æ":"ae","ǽ":"ae","Ç£":"ae","êµ":"ao","ê·":"au","ê¹":"av","ê»":"av","ê½":"ay","â":"b","ï½":"b","á¸":"b","á¸
":"b","á¸":"b","Æ":"b","Æ":"b","É":"b","â":"c","ï½":"c","Ä":"
vendor: 37,082 bytes, lines 217-219
217c","Ä":"c","Ä":"c","Ä":"c","ç":"c","á¸":"c","Æ":"c","ȼ":"c","ê¿":"c","â":"c","â":"d","ï½":"d","á¸":"d","Ä":"d","á¸":"d","á¸":"d","á¸":"d","á¸":"d","Ä":"d","Æ":"d","É":"d","É":"d","êº":"d","dz":"dz","Ç":"dz","â":"e","ï½ ":"e","è":"e","é":"e","ê":"e","á»":"e","ế":"e","á» ":"e","á»":"e","ẽ":"e","Ä":"e","á¸":"e","á¸":"e","Ä":"e","Ä":"e","ë":"e","ẻ":"e","Ä":"e","È ":"e","È":"e","ẹ":"e","á»":"e","È©":"e","á¸":"e","Ä":"e","á¸":"e","á¸":"e","É":"e","É":"e","Ç":"e","â":"f","ï½":"f","á¸":"f","Æ":"f","ê¼":"f","â":"g","ï½":"g","ǵ":"g","Ä":"g","ḡ":"g","Ä":"g","Ä¡":"g","ǧ":"g","Ä£":"g","Ç¥":"g","É ":"g","ê¡":"g","áµ¹":"g","ê¿":"g","â":"h","ï½":"h","Ä¥":"h","ḣ":"h","ḧ":"h","È":"h","ḥ":"h","ḩ":"h","ḫ":"h","áº":"h","ħ":"h","ⱨ":"h","â±¶":"h","É¥":"h","Æ":"hv","â":"i","ï½":"i","ì":"i","Ã":"i","î":"i","Ä©":"i","Ä«":"i","Ä":"i","ï":"i","ḯ":"i","á»":"i","Ç":"i","È":"i","È":"i","á»":"i","į":"i","á¸":"i","ɨ":"i","ı":"i","â":"j","ï½":"j","ĵ":"j","ǰ":"j","É":"j","â":"k","ï½":"k","ḱ":"k","Ç©":"k","ḳ":"k","Ä·":"k","ḵ":"k","Æ":"k","ⱪ":"k","ê":"k","ê":"k","ê ":"k","ê£":"k","â":"l","ï½":"l","Å":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","Å¿":"l","Å":"l","Æ":"l","É«":"l","ⱡ":"l","ê":"l","ê":"l","ê":"l","Ç":"lj","â":"m","ï½":"m","ḿ":"m","á¹":"m","á¹":"m","ɱ":"m","ɯ":"m","â":"n","ï½":"n","ǹ":"n","Å":"n","ñ":"n","á¹ ":"n","Å":"n","á¹":"n","Å":"n","á¹":"n","á¹":"n","Æ":"n","ɲ":"n","Å":"n","ê":"n","ê¥":"n","Ç":"nj","â":"o","ï½":"o","ò":"o","ó":"o","ô":"o","á»":"o","á»":"o","á»":"o","á»":"o","õ":"o","á¹":"o","È":"o","á¹":"o","Å":"o","á¹":"o","á¹":"o","Å":"o","ȯ":"o","ȱ":"o","ö":"o","È«":"o","á»":"o","Å":"o","Ç":"o","È":"o","È":"o","Æ¡":"o","á»":"o","á»":"o","ỡ":"o","á»":"o","ợ":"o","á»":"o","á»":"o","Ç«":"o","Ç":"o","ø":"o","Ç¿":"o","É":"o","ê":"o","ê":"o","ɵ":"o","Æ£":"oi","È£":"ou","ê":"oo","â":"p","ï½":"p","á¹":"p","á¹":"p","Æ¥":"p","áµ½":"p","ê":"p","ê":"p","ê":"p","â ":"q","ï½":"q","É":"q","ê":"q","ê":"q","â¡":"r","ï½":"r","Å":"r","á¹":"r","Å":"r","È":"r","È":"r","á¹":"r","á¹":"r","Å":"r","á¹":"r","É":"r","ɽ":"r","ê":"r","ê§":"r","ê":"r","â¢":"s","ï½":"s","Ã":"s","Å":"s","á¹¥":"s","Å":"s","ṡ":"s","Å¡":"s","á¹§":"s","á¹£":"s","ṩ":"s","È":"s","Å":"s","È¿":"s","ê©":"s","ê ":"s","áº":"s","â£":"t","ï½":"t","ṫ":"t","áº":"t","Å¥":"t","á¹":"t","È":"t","Å£":"t","á¹±":"t","ṯ":"t","ŧ":"t","Æ":"t","Ê":"t","ⱦ":"t","ê":"t","ê©":"tz","â¤":"u","ï½":"u","ù":"u","ú":"u","û":"u","Å©":"u","á¹¹":"u","Å«":"u","á¹»":"u","Å":"u","ü":"u","Ç":"u","Ç":"u","Ç":"u","Ç":"u","á»§":"u","ů":"u","ű":"u","Ç":"u","È":"u","È":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","á»":"u","á»±":"u","ụ":"u","á¹³":"u","ų":"u","á¹·":"u","á¹µ":"u","Ê":"u","â¥":"v","ï½":"v","á¹½":"v","ṿ":"v","Ê":"v","ê":"v","Ê":"v","ê¡":"vy","â¦":"w","ï½":"w","áº":"w","áº":"w","ŵ":"w","áº":"w","Ạ":"w","áº":"w","áº":"w","â±³":"w","â§":"x","ï½":"x","áº":"x","áº":"x","â¨":"y","ï½":"y","ỳ":"y","ý":"y","Å·":"y","ỹ":"y","ȳ":"y","áº":"y","ÿ":"y","á»·":"y","áº":"y","ỵ":"y","Æ´":"y","É":"y","ỿ":"y","â©":"z","ï½":"z","ź":"z","áº":"z","ż":"z","ž":"z","áº":"z","áº":"z","ƶ":"z","È¥":"z","É":"z","ⱬ":"z","ê£":"z","Î":"Î","Î":"Î","Î":"Î","Î":"Î","Ϊ":"Î","Î":"Î","Î":"Î¥","Ϋ":"Î¥","Î":"Ω","ά":"α","Î":"ε","ή":"η","ί":"ι","Ï":"ι","Î":"ι","Ï":"ο","Ï":"Ï ","Ï":"Ï ","ΰ":"Ï ","Ï":"Ï","Ï":"Ï"};return a}),b.define("select2/data/base",["../utils"],function(a){function b(a,c){b.__super__.constructor.call(this)}return a.Extend(b,a.Observable),b.prototype.current=function(a){throw new Error("The `current` method must be defined in child classes.")},b.prototype.query=function(a,b){throw new Error("The `query` method must be defined in child classes.")},b.prototype.bind=function(a,b){},b.prototype.destroy=function(){},b.prototype.generateResultId=function(b,c){var d=b.id+"-result-";return d+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),b.define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){function d(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}return b.Extend(d,a),d.prototype.current=function(a){var b=[],d=this;this.$element.find(":selected").each(function(){var a=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){var b=this;if(a.selected=!0,c(a.element).is("option"))return a.element.selected=!0,void this.$element.trigger("change"); 218if(this.$element.prop("multiple"))this.current(function(d){var e=[];a=[a],a.push.apply(a,d);for(var f=0;f<a.length;f++){var g=a[f].id;-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")});else{var d=a.id;this.$element.val(d),this.$element.trigger("change")}},d.prototype.unselect=function(a){var b=this;if(this.$element.prop("multiple"))return a.selected=!1,c(a.element).is("option")?(a.element.selected=!1,void this.$element.trigger("change")):void this.current(function(d){for(var e=[],f=0;f<d.length;f++){var g=d[f].id;g!==a.id&&-1===c.inArray(g,e)&&e.push(g)}b.$element.val(e),b.$element.trigger("change")})},d.prototype.bind=function(a,b){var c=this;this.container=a,a.on("select",function(a){c.select(a.data)}),a.on("unselect",function(a){c.unselect(a.data)})},d.prototype.destroy=function(){this.$element.find("*").each(function(){c.removeData(this,"data")})},d.prototype.query=function(a,b){var d=[],e=this,f=this.$element.children();f.each(function(){var b=c(this);if(b.is("option")||b.is("optgroup")){var f=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){var b;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void 0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);var d=c(b),e=this._normalizeItem(a);return e.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){var b={};if(b=c.data(a[0],"data"),null!=b)return b;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};else if(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(var d=a.children("option"),e=[],f=0;f<d.length;f++){var g=c(d[f]),h=this.item(g);e.push(h)}b.children=e}return b=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);var b={selected:!1,disabled:!1};return null!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){var c=this.options.get("matcher");return c(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){function d(a,b){var c=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}return b.Extend(d,a),d.prototype.select=function(a){var b=this.$element.find("option").filter(function(b,c){return c.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){function d(a){return function(){return c(this).val()==a.id}}for(var e=this,f=this.$element.find("option"),g=f.map(function(){return e.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){var j=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){var k=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},j,l),n=this.option(m);k.replaceWith(n)}else{var o=this.option(j);if(j.children){var p=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}return h},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){function d(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}return b.Extend(d,a),d.prototype._applyDefaults=function(a){var b={data:function(a){return c.extend({},a,{q:a.term})},transport:function(a,b,d){var e=c.ajax(a);return e.then(b),e.fail(d),e}};return c.extend({},b,a,!0)},d.prototype.processResults=function(a){return a},d.prototype.query=function(a,b){function d(){var d=f.transport(f,function(d){var f=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){d.status&&"0"===d.status||e.trigger("results:message",{message:"errorLoading"})});e._request=d}var e=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=c.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&(f.url=f.url.call(this.$element,a)),"function"==typeof f.data&&(f.data=f.data.call(this.$element,a)),this.ajaxOptions.delay&&null!=a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){function b(b,c,d){var e=d.get("tags"),f=d.get("createTag");void 0!==f&&(this.createTag=f);var g=d.get("insertTag");if(void 0!==g&&(this.insertTag=g),b.call(this,c,d),a.isArray(e))for(var h=0;h<e.length;h++){var i=e[h],j=this._normalizeItem(i),k=this.option(j);this.$element.append(k)}}return b.prototype.query=function(a,b,c){function d(a,f){for(var g=a.results,h=0;h<g.length;h++){var i=g[h],j=null!=i.children&&!d({results:i.children},!0),k=i.text===b.term;if(k||j)return f?!1:(a.data=g,void c(a))}if(f)return!0;var l=e.createTag(b);if(null!=l){var m=e.option(l);m.attr("data-select2-tag",!0),e.addOptions([m]),e.insertTag(g,l)}a.results=g,c(a)}var e=this;return this._removeOldTags(),null==b.term||null!=b.page?void a.call(this,b,c):void a.call(this,b,d)},b.prototype.createTag=function(b,c){var d=a.trim(c.term);return""===d?null:{id:d,text:d}},b.prototype.insertTag=function(a,b,c){b.unshift(c)},b.prototype._removeOldTags=function(b){var c=(this._lastTag,this.$element.find("option[data-select2-tag]"));c.each(function(){this.selected||a(this).remove()})},b}),b.define("select2/data/tokenizer",["jquery"],function(a){function b(a,b,c){var d=c.get("tokenizer");void 0!==d&&(this.tokenizer=d),a.call(this,b,c)}return b.prototype.bind=function(a,b,c){a.call(this,b,c),this.$search=b.dropdown.$search||b.selection.$search||c.find(".select2-search__field")},b.prototype.query=function(b,c,d){function e(b){var c=g._normalizeItem(b),d=g.$element.find("option").filter(function(){return a(this).val()===c.id});if(!d.length){var e=g.option(c);e.attr("data-select2-tag",!0),g._removeOldTags(),g.addOptions([e])}f(c)}function f(a){g.trigger("select",{data:a})}var g=this;c.term=c.term||"";var h=this.tokenizer(c,this.options,e);h.term!==c.term&&(this.$search.length&&(this.$search.val(h.term),this.$search.focus()),c.term=h.term),b.call(this,c,d)},b.prototype.tokenizer=function(b,c,d,e){for(var f=d.get("tokenSeparators")||[],g=c.term,h=0,i=this.createTag||function(a){return{id:a.term,text:a.term}};h<g.length;){var j=g[h];if(-1!==a.inArray(j,f)){var k=g.substr(0,h),l=a.extend({},c,{term:k}),m=i(l);null!=m?(e(m),g=g.substr(h+1)||"",h=0):h++}else h++}return{term:g}},b}),b.define("select2/data/minimumInputLength",[],function(){function a(a,b,c){this.minimumInputLength=c.get("minimumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",b.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumInputLength",[],function(){function a(a,b,c){this.maximumInputLength=c.get("maximumInputLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){return b.term=b.term||"",this.maximumInputLength>0&&b.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:b.term,params:b}}):void a.call(this,b,c)},a}),b.define("select2/data/maximumSelectionLength",[],function(){function a(a,b,c){this.maximumSelectionLength=c.get("maximumSelectionLength"),a.call(this,b,c)}return a.prototype.query=function(a,b,c){var d=this;this.current(function(e){var f=null!=e?e.length:0;return d.maximumSelectionLength>0&&f>=d.maximumSelectionLength?void d.trigger("results:message",{message:"maximumSelected",args:{maximum:d.maximumSelectionLength}}):void a.call(d,b,c)})},a}),b.define("select2/dropdown",["jquery","./utils"],function(a,b){function c(a,b){this.$element=a,this.options=b,c.__super__.constructor.call(this)}return b.Extend(c,b.Observable),c.prototype.render=function(){var b=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return b.attr("dir",this.options.get("dir")),this.$dropdown=b,b},c.prototype.bind=function(){},c.prototype.position=function(a,b){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),b.define("select2/dropdown/search",["jquery","../utils"],function(a,b){function c(){}return c.prototype.render=function(b){var c=b.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),c.prepend(d),c},c.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),this.$search.on("keydown",function(a){e.trigger("keypress",a),e._keyUpPrevented=a.isDefaultPrevented()}),this.$search.on("input",function(b){a(this).off("keyup")}),this.$search.on("keyup input",function(a){e.handleSearch(a)}),c.on("open",function(){e.$search.attr("tabindex",0),e.$search.focus(),window.setTimeout(function(){e.$search.focus()},0)}),c.on("close",function(){e.$search.attr("tabindex",-1),e.$search.val("")}),c.on("focus",function(){c.isOpen()&&e.$search.focus()}),c.on("results:all",function(a){if(null==a.query.term||""===a.query.term){var b=e.showSearch(a);b?e.$searchContainer.removeClass("select2-search--hide"):e.$searchContainer.addClass("select2-search--hide")}})},c.prototype.handleSearch=function(a){if(!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.showSearch=function(a,b){return!0},c}),b.define("select2/dropdown/hidePlaceholder",[],function(){function a(a,b,c,d){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c,d)}return a.prototype.append=function(a,b){b.results=this.removePlaceholder(b.results),a.call(this,b)},a.prototype.normalizePlaceholder=function(a,b){return"string"==typeof b&&(b={id:"",text:b}),b},a.prototype.removePlaceholder=function(a,b){for(var c=b.slice(0),d=b.length-1;d>=0;d--){var e=b[d];this.placeholder.id===e.id&&c.splice(d,1)}return c},a}),b.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function b(a,b,c,d){this.lastParams={},a.call(this,b,c,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return b.prototype.append=function(a,b){this.$loadingMore.remove(),this.loading=!1,a.call(this,b),this.showLoadingMore(b)&&this.$results.append(this.$loadingMore)},b.prototype.bind=function(b,c,d){var e=this;b.call(this,c,d),c.on("query",function(a){e.lastParams=a,e.loading=!0}),c.on("query:append",function(a){e.lastParams=a,e.loading=!0}),this.$results.on("scroll",function(){var b=a.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&b){var c=e.$results.offset().top+e.$results.outerHeight(!1),d=e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1);c+50>=d&&e.loadMore()}})},b.prototype.loadMore=function(){this.loading=!0;var b=a.extend({},{page:1},this.lastParams);b.page++,this.trigger("query:append",b)},b.prototype.showLoadingMore=function(a,b){return b.pagination&&b.pagination.more},b.prototype.createLoadingMore=function(){var b=a('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),c=this.options.get("translations").get("loadingMore");return b.html(c(this.lastParams)),b},b}),b.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,b){function c(b,c,d){this.$dropdownParent=d.get("dropdownParent")||a(document.body),b.call(this,c,d)}return c.prototype.bind=function(a,b,c){var d=this,e=!1;a.call(this,b,c),b.on("open",function(){d._showDropdown(),d._attachPositioningHandler(b),e||(e=!0,b.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),b.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}))}),b.on("close",function(){d._hideDropdown(),d._detachPositioningHandler(b)}),this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},c.prototype.destroy=function(a){a.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(a,b,c){b.attr("class",c.attr("class")),b.removeClass("select2"),b.addClass("select2-container--open"),b.css({position:"absolute",top:-999999}),this.$container=c},c.prototype.render=function(b){var c=a("<span></span>"),d=b.call(this);return c.append(d),this.$dropdownContainer=c,c},c.prototype._hideDropdown=function(a){this.$dropdownContainer.detach()},c.prototype._attachPositioningHandler=function(c,d){var e=this,f="scroll.select2."+d.id,g="resize.select2."+d.id,h="orientationchange.select2."+d.id,i=this.$container.parents().filter(b.hasScroll);i.each(function(){a(this).data("select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),i.on(f,function(b){var c=a(this).data("select2-scroll-position");a(this).scrollTop(c.y)}),a(window).on(f+" "+g+" "+h,function(a){e._positionDropdown(),e._resizeDropdown()})},c.prototype._detachPositioningHandler=function(c,d){var e="scroll.select2."+d.id,f="resize.select2."+d.id,g="orientationchange.select2."+d.id,h=this.$container.parents().filter(b.hasScroll);h.off(e),a(window).off(e+" "+f+" "+g)},c.prototype._positionDropdown=function(){var b=a(window),c=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),e=null,f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=f.top,g.bottom=f.top+g.height;var h={height:this.$dropdown.outerHeight(!1)},i={top:b.scrollTop(),bottom:b.scrollTop()+b.height()},j=i.top<f.top-h.height,k=i.bottom>f.bottom+h.height,l={left:f.left,top:g.bottom},m=this.$dropdownParent;"static"===m.css("position")&&(m=m.offsetParent());var n=m.offset();l.top-=n.top,l.left-=n.left,c||d||(e="below"),k||!j||c?!j&&k&&c&&(e="below"):e="above",("above"==e||c&&"below"!==e)&&(l.top=g.top-n.top-h.height),null!=e&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+e),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+e)),this.$dropdownContainer.css(l)},c.prototype._resizeDropdown=function(){var a={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(a.minWidth=a.width,a.position="relative",a.width="auto"),this.$dropdown.css(a)},c.prototype._showDropdown=function(a){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),b.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(b){for(var c=0,d=0;d<b.length;d++){var e=b[d];e.children?c+=a(e.children):c++}return c}function b(a,b,c,d){this.minimumResultsForSearch=c.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,b,c,d)}return b.prototype.showSearch=function(b,c){return a(c.data.results)<this.minimumResultsForSearch?!1:b.call(this,c)},b}),b.define("select2/dropdown/selectOnClose",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("close",function(a){d._handleSelectOnClose(a)})},a.prototype._handleSelectOnClose=function(a,b){if(b&&null!=b.originalSelect2Event){var c=b.originalSelect2Event;if("select"===c._type||"unselect"===c._type)return}var d=this.getHighlightedResults();if(!(d.length<1)){var e=d.data("data");null!=e.element&&e.element.selected||null==e.element&&e.selected||this.trigger("select",{data:e})}},a}),b.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(a,b,c){var d=this;a.call(this,b,c),b.on("select",function(a){d._selectTriggered(a)}),b.on("unselect",function(a){d._selectTriggered(a)})},a.prototype._selectTriggered=function(a,b){var c=b.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:b})},a}),b.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var b=a.input.length-a.maximum,c="Please delete "+b+" character";return 1!=b&&(c+="s"),c},inputTooShort:function(a){var b=a.minimum-a.input.length,c="Please enter "+b+" or more characters";return c},loadingMore:function(){return"Loading more resultsâ¦"},maximumSelected:function(a){var b="You can only select "+a.maximum+" item";return 1!=a.maximum&&(b+="s"),b},noResults:function(){return"No results found"},searching:function(){return"Searchingâ¦"}}}),b.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C){function D(){this.reset()}D.prototype.apply=function(l){if(l=a.extend(!0,{},this.defaults,l),null==l.dataAdapter){if(null!=l.ajax?l.dataAdapter=o:null!=l.data?l.dataAdapter=n:l.dataAdapter=m,l.minimumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,r)),l.maximumInputLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,s)),l.maximumSelectionLength>0&&(l.dataAdapter=j.Decorate(l.dataAdapter,t)),l.tags&&(l.dataAdapter=j.Decorate(l.dataAdapter,p)),(null!=l.tokenSeparators||null!=l.tokenizer)&&(l.dataAdapter=j.Decorate(l.dataAdapter,q)),null!=l.query){var C=b(l.amdBase+"compat/query");l.dataAdapter=j.Decorate(l.dataAdapter,C)}if(null!=l.initSelection){var D=b(l.amdBase+"compat/initSelection");l.dataAdapter=j.Decorate(l.dataAdapter,D)}}if(null==l.resultsAdapter&&(l.resultsAdapter=c,null!=l.ajax&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,x)),null!=l.placeholder&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,w)),l.selectOnClose&&(l.resultsAdapter=j.Decorate(l.resultsAdapter,A))),null==l.dropdownAdapter){if(l.multiple)l.dropdownAdapter=u;else{var E=j.Decorate(u,v);l.dropdownAdapter=E}if(0!==l.minimumResultsForSearch&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,z)),l.closeOnSelect&&(l.dropdownAdapter=j.Decorate(l.dropdownAdapter,B)),null!=l.dropdownCssClass||null!=l.dropdownCss||null!=l.adaptDropdownCssClass){var F=b(l.amdBase+"compat/dropdownCss");l.dropdownAdapter=j.Decorate(l.dropdownAdapter,F)}l.dropdownAdapter=j.Decorate(l.dropdownAdapter,y)}if(null==l.selectionAdapter){if(l.multiple?l.selectionAdapter=e:l.selectionAdapter=d,null!=l.placeholder&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,f)),l.allowClear&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,g)),l.multiple&&(l.selectionAdapter=j.Decorate(l.selectionAdapter,h)),null!=l.containerCssClass||null!=l.containerCss||null!=l.adaptContainerCssClass){var G=b(l.amdBase+"compat/containerCss");l.selectionAdapter=j.Decorate(l.selectionAdapter,G)}l.selectionAdapter=j.Decorate(l.selectionAdapter,i)}if("string"==typeof l.language)if(l.language.indexOf("-")>0){var H=l.language.split("-"),I=H[0];l.language=[l.language,I]}else l.language=[l.language];if(a.isArray(l.language)){var J=new k;l.language.push("en");for(var K=l.language,L=0;L<K.length;L++){var M=K[L],N={};try{N=k.loadPath(M)}catch(O){try{M=this.defaults.amdLanguageBase+M,N=k.loadPath(M)}catch(P){l.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+M+'" could not be automatically loaded. A fallback will be used instead.');continue}}J.extend(N)}l.translations=J}else{var Q=k.loadPath(this.defaults.amdLanguageBase+"en"),R=new k(l.language);R.extend(Q),l.translations=R}return l},D.prototype.reset=function(){function b(a){function b(a){return l[a]||a}return a.replace(/[^\u0000-\u007E]/g,b)}function c(d,e){if(""===a.trim(d.term))return e;if(e.children&&e.children.length>0){for(var f=a.extend(!0,{},e),g=e.children.length-1;g>=0;g--){var h=e.children[g],i=c(d,h);null==i&&f.children.splice(g,1)}return f.children.length>0?f:c(d,f)}var j=b(e.text).toUpperCase(),k=b(d.term).toUpperCase();return j.indexOf(k)>-1?e:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:j.escapeMarkup,language:C,matcher:c,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}},D.prototype.set=function(b,c){var d=a.camelCase(b),e={};e[d]=c;var f=j._convertData(e);a.extend(this.defaults,f)};var E=new D;return E}),b.define("select2/options",["require","jquery","./defaults","./utils"],function(a,b,c,d){function e(b,e){if(this.options=b,null!=e&&this.fromElement(e),this.options=c.apply(this.options),e&&e.is("input")){var f=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=d.Decorate(this.options.dataAdapter,f)}}return e.prototype.fromElement=function(a){var c=["select2"];null==this.options.multiple&&(this.options.multiple=a.prop("multiple")),null==this.options.disabled&&(this.options.disabled=a.prop("disabled")),null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang"))),null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr"),a.prop("disabled",this.options.disabled),a.prop("multiple",this.options.multiple),a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0)),a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var e={};e=b.fn.jquery&&"1."==b.fn.jquery.substr(0,2)&&a[0].dataset?b.extend(!0,{},a[0].dataset,a.data()):a.data();var f=b.extend(!0,{},e);f=d._convertData(f);for(var g in f)b.inArray(g,c)>-1||(b.isPlainObject(this.options[g])?b.extend(this.options[g],f[g]):this.options[g]=f[g]);return this},e.prototype.get=function(a){return this.options[a]},e.prototype.set=function(a,b){this.options[a]=b},e}),b.define("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){var e=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=new b(c,a),e.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d),a.attr("tabindex","-1");var f=this.options.get("dataAdapter");this.dataAdapter=new f(a,this.options);var g=this.render();this._placeContainer(g);var h=this.options.get("selectionAdapter");this.selection=new h(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,g);var i=this.options.get("dropdownAdapter");this.dropdown=new i(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,g);var j=this.options.get("resultsAdapter");this.results=new j(a,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var k=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(a){k.trigger("selection:update",{data:a})}),a.addClass("select2-hidden-accessible"),a.attr("aria-hidden","true"),this._syncAttributes(),a.data("select2",this)};return c.Extend(e,c.Observable),e.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,""),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){var d=this._resolveWidth(a,"style");return null!=d?d:this._resolveWidth(a,"element")}if("element"==b){var e=a.outerWidth(!1);return 0>=e?"auto":e+"px"}if("style"==b){var f=a.attr("style");if("string"!=typeof f)return null;for(var g=f.split(";"),h=0,i=g.length;i>h;h+=1){var j=g[h].replace(/\s/g,""),k=j.match(c);if(null!==k&&k.length>=1)return k[1]}return null}return b},e.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},e.prototype._registerDomEvents=function(){var b=this;this.$element.on("change.select2",function(){b.dataAdapter.current(function(a){b.trigger("selection:update",{data:a})})}),this.$element.on("focus.select2",function(a){b.trigger("focus",a)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var d=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=d?(this._observer=new d(function(c){a.each(c,b._syncA),a.each(c,b._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",b._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",b._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",b._syncS,!1))},e.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerSelectionEvents=function(){var b=this,c=["toggle","focus"];this.selection.on("toggle",function(){b.toggleDropdown()}),this.selection.on("focus",function(a){b.focus(a)}),this.selection.on("*",function(d,e){-1===a.inArray(d,c)&&b.trigger(d,e)})},e.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},e.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")}),this.on("close",function(){a.$container.removeClass("select2-container--open")}),this.on("enable",function(){a.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){a.$container.addClass("select2-container--disabled")}),this.on("blur",function(){a.$container.removeClass("select2-container--focus")}),this.on("query",function(b){a.isOpen()||a.trigger("open",{}),this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})}),this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,query:b})})}),this.on("keypress",function(b){var c=b.which;a.isOpen()?c===d.ESC||c===d.TAB||c===d.UP&&b.altKey?(a.close(),b.preventDefault()):c===d.ENTER?(a.trigger("results:select",{}),b.preventDefault()):c===d.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):c===d.UP?(a.trigger("results:previous",{}),b.preventDefault()):c===d.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(c===d.ENTER||c===d.SPACE||c===d.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},e.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},e.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&b.addedNodes.length>0)for(var e=0;e<b.addedNodes.length;e++){var f=b.addedNodes[e];f.selected&&(c=!0)}else b.removedNodes&&b.removedNodes.length>0&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",{data:a})})}},e.prototype.trigger=function(a,b){var c=e.__super__.trigger,d={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===b&&(b={}),a in d){var f=d[a],g={prevented:!1,name:a,args:b};if(c.call(this,f,g),g.prevented)return void(b.prevented=!0)}c.call(this,a,b)},e.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},e.prototype.open=function(){this.isOpen()||this.trigger("query",{})},e.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},e.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},e.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},e.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},e.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(null==a||0===a.length)&&(a=[!0]);var b=!a[0];this.$element.prop("disabled",b)},e.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},e.prototype.val=function(b){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==b||0===b.length)return this.$element.val();var c=b[0];a.isArray(c)&&(c=a.map(c,function(a){return a.toString()})),this.$element.val(c).trigger("change")},e.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null; 219},e.prototype.render=function(){var b=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return b.attr("dir",this.options.get("dir")),this.$container=b,this.$container.addClass("select2-container--"+this.options.get("theme")),b.data("element",this.$element),b},e}),b.define("
219select2/compat/utils",["jquery"],function(a){function b(b,c,d){var e,f,g=[];e=a.trim(b.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&g.push(this)})),e=a.trim(c.attr("class")),e&&(e=""+e,a(e.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&(f=d(this),null!=f&&g.push(f))})),b.attr("class",g.join(" "))}return{syncCssClasses:b}}),b.define("select2/compat/containerCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("containerCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptContainerCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("containerCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/dropdownCss",["jquery","./utils"],function(a,b){function c(a){return null}function d(){}return d.prototype.render=function(d){var e=d.call(this),f=this.options.get("dropdownCssClass")||"";a.isFunction(f)&&(f=f(this.$element));var g=this.options.get("adaptDropdownCssClass");if(g=g||c,-1!==f.indexOf(":all:")){f=f.replace(":all:","");var h=g;g=function(a){var b=h(a);return null!=b?b+" "+a:a}}var i=this.options.get("dropdownCss")||{};return a.isFunction(i)&&(i=i(this.$element)),b.syncCssClasses(e,this.$element,g),e.css(i),e.addClass(f),e},d}),b.define("select2/compat/initSelection",["jquery"],function(a){function b(a,b,c){c.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2"),this.initSelection=c.get("initSelection"),this._isInitialized=!1,a.call(this,b,c)}return b.prototype.current=function(b,c){var d=this;return this._isInitialized?void b.call(this,c):void this.initSelection.call(null,this.$element,function(b){d._isInitialized=!0,a.isArray(b)||(b=[b]),c(b)})},b}),b.define("select2/compat/inputData",["jquery"],function(a){function b(a,b,c){this._currentData=[],this._valueSeparator=c.get("valueSeparator")||",","hidden"===b.prop("type")&&c.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),a.call(this,b,c)}return b.prototype.current=function(b,c){function d(b,c){var e=[];return b.selected||-1!==a.inArray(b.id,c)?(b.selected=!0,e.push(b)):b.selected=!1,b.children&&e.push.apply(e,d(b.children,c)),e}for(var e=[],f=0;f<this._currentData.length;f++){var g=this._currentData[f];e.push.apply(e,d(g,this.$element.val().split(this._valueSeparator)))}c(e)},b.prototype.select=function(b,c){if(this.options.get("multiple")){var d=this.$element.val();d+=this._valueSeparator+c.id,this.$element.val(d),this.$element.trigger("change")}else this.current(function(b){a.map(b,function(a){a.selected=!1})}),this.$element.val(c.id),this.$element.trigger("change")},b.prototype.unselect=function(a,b){var c=this;b.selected=!1,this.current(function(a){for(var d=[],e=0;e<a.length;e++){var f=a[e];b.id!=f.id&&d.push(f.id)}c.$element.val(d.join(c._valueSeparator)),c.$element.trigger("change")})},b.prototype.query=function(a,b,c){for(var d=[],e=0;e<this._currentData.length;e++){var f=this._currentData[e],g=this.matches(b,f);null!==g&&d.push(g)}c({results:d})},b.prototype.addOptions=function(b,c){var d=a.map(c,function(b){return a.data(b[0],"data")});this._currentData.push.apply(this._currentData,d)},b}),b.define("select2/compat/matcher",["jquery"],function(a){function b(b){function c(c,d){var e=a.extend(!0,{},d);if(null==c.term||""===a.trim(c.term))return e;if(d.children){for(var f=d.children.length-1;f>=0;f--){var g=d.children[f],h=b(c.term,g.text,g);h||e.children.splice(f,1)}if(e.children.length>0)return e}return b(c.term,d.text,d)?e:null}return c}return b}),b.define("select2/compat/query",[],function(){function a(a,b,c){c.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated
219in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),a.call(this,b,c)}return a.prototype.query=function(a,b,c){b.callback=c;var d=this.options.get("query");d.call(null,b)},a}),b.define("select2/dropdown/attachContainer",[],function(){function a(a,b,c){a.call(this,b,c)}return a.prototype.position=function(a,b,c){var d=c.find(".dropdown-wrapper");d.append(b),b.addClass("select2-dropdown--below"),c.addClass("select2-container--below")},a}),b.define("select2/dropdown/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c);var d=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(d.join(" "),function(a){a.stopPropagation()})},a}),b.define("select2/selection/stopPropagation",[],function(){function a(){}return a.prototype.bind=function(a,b,c){a.call(this,b,c);var d=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(d.join(" "),function(a){a.stopPropagation()})},a}),function(c){"function"==typeof b.define&&b.define.amd?b.define("jquery-mousewheel",["jquery"],c):"object"==typeof exports?module.exports=c:c(a)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1
219),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}),b.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(a,b,c,d){if(null==a.fn.select2){var e=["open","close","destroy"];a.fn.select2=function(b){if(b=b||{},"object"==typeof b)return this.each(function(){var d=a.extend(!0,{},b);new c(a(this),d)}),this;if("string"==typeof b){var d,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=a(this).data("select2");null==c&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2."),d=c[b].apply(c,f)}),a.inArray(b,e)>-1?this:d}throw new Error("Invalid arguments for Select2: "+b)}}return null==a.fn.select2.defaults&&(a.fn.select2.defaults=d),c}),{define:b.define,require:b.require}}(),c=b.require("jquery.select2");return a.fn.select2.amd=b,c}); 220/*! 221* inputmask.min.js 222* https://github.com/RobinHerbots/Inputmask 223* Copyright (c) 2010 - 2017 Robin Herbots 224* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 225* Version: 3.3.8 226*/ 227 228!function(a){"function"==typeof define&&define.amd?define(["./dependencyLibs/inputmask.dependencyLib","./global/window","./global/document"],a):"object"==typeof exports?module.exports=a(require("./dependencyLibs/inputmask.dependencyLib"),require("./global/window"),require("./global/document")):window.Inputmask=a(window.dependencyLib||jQuery,window,document)}(function(a,b,c,d){function e(b,c,g){if(!(this instanceof e))return new e(b,c,g);this.el=d,this.events={},this.maskset=d,this.refreshValue=!1,!0!==g&&(a.isPlainObject(b)?c=b:(c=c||{},c.alias=b),this.opts=a.extend(!0,{},this.defaults,c),this.noMasksCache=c&&c.definitions!==d,this.userOptions=c||{},this.isRTL=this.opts.numericInput,f(this.opts.alias,c,this.opts))}function f(b,c,g){var h=e.prototype.aliases[b];return h?(h.alias&&f(h.alias,d,g),a.extend(!0,g,h),a.extend(!0,g,c),!0):(null===g.mask&&(g.mask=b),!1)}function g(b,c){function f(b,f,g){var h=!1;if(null!==b&&""!==b||(h=null!==g.regex,h?(b=g.regex,b=b.replace(/^(\^)(.*)(\$)$/,"$2")):(h=!0,b=".*")),1===b.length&&!1===g.greedy&&0!==g.repeat&&(g.placeholder=""),g.repeat>0||"*"===g.repeat||"+"===g.repeat){var i="*"===g.repeat?0:"+"===g.repeat?1:g.repeat;b=g.groupmarker.start+b+g.groupmarker.end+g.quantifiermarker.start+i+","+g.repeat+g.quantifiermarker.end}var j,k=h?"regex_"+g.regex:g.numericInput?b.split("").reverse().join(""):b;return e.prototype.masksCache[k]===d||!0===c?(j={mask:b,maskToken:e.prototype.anal
228yseMask(b,h,g),validPositions:{},_buffer:d,buffer:d,tests:{},metadata:f,maskLength:d},!0!==c&&(e.prototype.masksCache[k]=j,j=a.extend(!0,{},e.prototype.masksCache[k]))):j=a.extend(!0,{},e.prototype.masksCache[k]),j}if(a.isFunction(b.mask)&&(b.mask=b.mask(b)),a.isArray(b.mask)){if(b.mask.length>1){b.keepStatic=null===b.keepStatic||b.keepStatic;var g=b.groupmarker.start;return a.each(b.numericInput?b.mask.reverse():b.mask,function(c,e){g.length>1&&(g+=b.groupmarker.end+b.alternatormarker+b.groupmarker.start),e.mask===d||a.isFunction(e.mask)?g+=e:g+=e.mask}),g+=b.groupmarker.end,f(g,b.mask,b)}b.mask=b.mask.pop()}return b.mask&&b.mask.mask!==d&&!a.isFunction(b.mask.mask)?f(b.mask.mask,b.mask,b):f(b.mask,b.mask,b)}function h(f,g,i){function n(a,b,c){b=b||0;var e,f,g,h=[],j=0,k=q();do{!0===a&&o().validPositions[j]?(g=o().validPositions[j],f=g.match,e=g.locator.slice(),h.push(!0===c?g.input:!1===c?f.nativeDef:I(j,f))):(g=t(j,e,j-1),f=g.match,e=g.locator.slice(),(!1===i.jitMasking||j<k||"number"==typeof i.jitMasking&&isFinite(i.jitMasking)&&i.jitMasking>j)&&h.push(!1===c?f.nativeDef:I(j,f))),j++}while((U===d||j<U)&&(null!==f.fn||""!==f.def)||b>j);return""===h[h.length-1]&&h.pop(),o().maskLength=j+1,h}function o(){return g}function p(a){var b=o();b.buffer=d,!0!==a&&(b.validPositions={},b.p=0)}function q(a,b,c){var e=-1,f=-1,g=c||o().validPositions;a===d&&(a=-1);for(var h in g){var i=parseInt(h);g[i]&&(b||!0!==g[i].generatedInput)&&(i<=a&&(e=i),i>=a&&(f=i))}return-1!==e&&a-e>1||f<a?e:f}function r(b,c,e,f){var g,h=b,j=a.extend(!0,{},o().validPositions),k=!1;for(o().p=b,g=c-1;g>=h;g--)o().validPositions[g]!==d&&(!0!==e&&(!o().validPositions[g].match.optionality&&function(a){var b=o().validPositions[a];if(b!==d&&null===b.match.fn){var c=o().validPositions[a-1],e=o().validPositions[a+1];return c!==d&&e!==d}return!1}(g)||!1===i.canClearPosition(o(),g,q(),f,i))||delete o().validPositions[g]);for(p(!0),g=h+1;g<=q();){for(;o().validPositions[h]!==d;)h++;if(g<h&&(g=h+1),o().validPositions[g]===d&&D(g))g++;else{var l=t(g);!1===k&&j[h]&&j[h].match.def===l.match.def?(o().validPositions[h]=a.extend(!0,{},j[h]),o().validPositions[h].input=l.input,delete o().validPositions[g],g++):v(h,l.match.def)?!1!==C(h,l.input||I(g),!0)&&(delete o().validPositions[g],g++,k=!0):D(g)||(g++,h--),h++}}p(!0)}function s(a,b){for(var c,e=a,f=q(),g=o().validPositions[f]||w(0)[0],h=g.alternation!==d?g.locator[g.alternation].toString().split(","):[],j=0;j<e.length&&(c=e[j],!(c.match&&(i.greedy&&!0!==c.match.optionalQuantifier||(!1===c.match.optionality||!1===c.match.newBlockMarker)&&!0!==c.match.optionalQuantifier)&&(g.alternation===d||g.alternation!==c.alternation||c.locator[g.alternation]!==d&&B(c.locator[g.alternation].toString().split(","),h)))||!0===b&&(null!==c.match.fn||/[0-9a-bA-Z]/.test(c.match.def)));j++);return c}function t(a,b,c){return o().validPositions[a]||s(w(a,b?b.slice():b,c))}function u(a){return o().validPositions[a]?o().validPositions[a]:w(a)[0]}function v(a,b){for(var c=!1,d=w(a),e=0;e<d.length;e++)if(d[e].match&&d[e].match.def===b){c=!0;break}return c}function w(b,c,e){function f(c,e,g,j){function l(g,j,q){function r(b,c){var d=0===a.inArray(b,c.matches);return d||a.each(c.matches,function(a,e){if(!0===e.isQuantifier&&(d=r(b,c.matches[a-1])))return!1}),d}function s(b,c,e){var f,g;if(o().validPositions[b-1]&&e&&o().tests[b])for(var h=o().validPositions[b-1].locator,i=o().tests[b][0].locator,j=0;j<e;j++)if(h[j]!==i[j])return h.slice(e+1);return(o().tests[b]||o().validPositions[b])&&a.each(o().tests[b]||[o().validPositions[b]],function(a,b){var h=e!==d?e:b.alternation,i=b.locator[h]!==d?b.locator[h].toString().indexOf(c):-1;(g===d||i<g)&&-1!==i&&(f=b,g=i)}),f?f.locator.slice((e!==d?e:f.alternation)+1):e!==d?s(b,c):d}if(k>1e4)throw"Inputmask: There is probably an error in your mask definition or in the code. Create an issue on github with an example of the mask you are using. "+o().mask;if(k===b&&g.matches===d)return m.push({match:g,locator:j.reverse(),cd:p}),!0;if(g.matches!==d){if(g.isGroup&&q!==g){if(g=l(c.matches[a.inArray(g,c.matches)+1],j))return!0}else if(g.isOptional){var t=g;if(g=f(g,e,j,q)){if(h=m[m.length-1].match,!r(h,t))return!0;n=!0,k=b}}else if(g.isAlternator){var u,v=g,w=[],x=m.slice(),y=j.length,z=e.length>0?e.shift():-1;if(-1===z||"string"==typeof z){var A,B=k,C=e.slice(),D=[];if("string"==typeof z)D=z.split(",");else for(A=0;A<v.matches.length;A++)D.push(A);for(var E=0;E<D.length;E++){if(A=parseInt(D[E]),m=[],e=s(k,A,y)||C.slice(),!0!==(g=l(v.matches[A]||c.matches[A],[A].concat(j),q)||g)&&g!==d&&D[D.length-1]<v.matches.length){var F=a.inArray(g,c.matches)+1;c.matches.length>F&&(g=l(c.matches[F],[F].concat(j.slice(1,j.length)),q))&&(D.push(F.toString()),a.each(m,function(a,b){b.alternation=j.length-1}))}u=m.slice(),k=B,m=[];for(var G=0;G<u.length;G++){var H=u[G],I=!1;H.alternation=H.alternation||y;for(var J=0;J<w.length;J++){var K=w[J];if("string"!=typeof z||-1!==a.inArray(H.locator[H.alternation].toString(),D)){if
228(function(a,b){return a.match.nativeDef===b.match.nativeDef||a.match.def===b.match.nativeDef||a.match.nativeDef===b.match.def}(H,K)){I=!0,H.alternation===K.alternation&&-1===K.locator[K.alternation].toString().indexOf(H.locator[H.alternation])&&(K.locator[K.alternation]=K.locator[K.alternation]+","+H.locator[H.alternation],K.alternation=H.alternation),H.match.nativeDef===K.match.def&&(H.locator[H.alternation]=K.locator[K.alternation],w.splice(w.indexOf(K),1,H));break}if(H.match.def===K.match.def){I=!1;break}if(function(a,c){return null===a.match.fn&&null!==c.match.fn&&c.match.fn.test(a.match.def,o(),b,!1,i,!1)}(H,K)||function(a,c){return null!==a.match.fn&&null!==c.match.fn&&c.match.fn.test(a.match.def.replace(/[\[\]]/g,""),o(),b,!1,i,!1)}(H,K)){H.alternation===K.alternation&&-1===H.locator[H.alternation].toString().indexOf(K.locator[K.alternation].toString().split("")[0])&&(H.na=H.na||H.locator[H.alternation].toString(),-1===H.na.indexOf(H.locator[H.alternation].toString().split("")[0])&&(H.na=H.na+","+H.locator[K.alternation].toString().split("")[0]),I=!0,H.locator[H.alternation]=K.locator[K.alternation].toString().split("")[0]+","+H.locator[H.alternation],w.splice(w.indexOf(K),0,H));break}}}I||w.push(H)}}"string"==typeof z&&(w=a.map(w,function(b,c){if(isFinite(c)){var e=b.alternation,f=b.locator[e].toString().split(",");b.locator[e]=d,b.alternation=d;for(var g=0;g<f.length;g++)-1!==a.inArray(f[g],D)&&(b.locator[e]!==d?(b.locator[e]+=",",b.locator[e]+=f[g]):b.locator[e]=parseInt(f[g]),b.alternation=e);if(b.locator[e]!==d)return b}})),m=x.concat(w),k=b,n=m.length>0,g=w.length>0,e=C.slice()}else g=l(v.matches[z]||c.matches[z],[z].concat(j),q);if(g)return!0}else if(g.isQuantifier&&q!==c.matches[a.inArray(g,c.matches)-1])for(var L=g,M=e.length>0?e.shift():0;M<(isNaN(L.quantifier.max)?M+1:L.quantifier.max)&&k<=b;M++){var N=c.matches[a.inArray(L,c.matches)-1];if(g=l(N,[M].concat(j),N)){if(h=m[m.length-1].match,h.optionalQuantifier=M>L.quantifier.min-1,r(h,N)){if(M>L.quantifier.min-1){n=!0,k=b;break}return!0}return!0}}else if(g=f(g,e,j,q))return!0}else k++}for(var q=e.length>0?e.shift():0;q<c.matches.length;q++)if(!0!==c.matches[q].isQuantifier){var r=l(c.matches[q],[q].concat(g),j);if(r&&k===b)return r;if(k>b)break}}function g(a){if(i.keepStatic&&b>0&&a.length>1+(""===a[a.length-1].match.def?1:0)&&!0!==a[0].match.optionality&&!0!==a[0].match.optionalQuantifier&&null===a[0].match.fn&&!/[0-9a-bA-Z]/.test(a[0].match.def)){if(o().validPositions[b-1]===d)return[s(a)];if(o().validPositions[b-1].alternation===a[0].alternation)return[s(a)];if(o().validPositions[b-1])return[s(a)]}return a}var h,j=o().maskToken,k=c?e:0,l=c?c.slice():[0],m=[],n=!1,p=c?c.join(""):"";if(b>-1){if(c===d){for(var q,r=b-1;(q=o().validPositions[r]||o().tests[r])===d&&r>-1;)r--;q!==d&&r>-1&&(l=function(b){var c=[];return a.isArray(b)||(b=[b]),b.length>0&&(b[0].alternation===d?(c=s(b.slice()).locator.slice(),0===c.length&&(c=b[0].locator.slice())):a.each(b,function(a,b){if(""!==b.def)if(0===c.length)c=b.locator.slice();else for(var d=0;d<c.length;d++)b.locator[d]&&-1===c[d].toString().indexOf(b.locator[d])&&(c[d]+=","+b.locator[d])})),c}(q),p=l.join(""),k=r)}if(o().tests[b]&&o().tests[b][0].cd===p)return g(o().tests[b]);for(var t=l.shift();t<j.length;t++){if(f(j[t],l,[t])&&k===b||k>b)break}}return(0===m.length||n)&&m.push({match:{fn:null,cardinality:0,optionality:!0,casing:null,def:"",placeholder:""},locator:[],cd:p}),c!==d&&o().tests[b]?g(a.extend(!0,[],m)):(o().tests[b]=a.extend(!0,[],m),g(o().tests[b]))}function x(){return o()._buffer===d&&(o()._buffer=n(!1,1),o().buffer===d&&(o().buffer=o()._buffer.slice())),o()._buffer}function y(a){return o().buffer!==d&&!0!==a||(o().buffer=n(!0,q(),!0)),o().buffer}function z(a,b,c){var e,f;if(!0===a)p(),a=0,b=c.length;else for(e=a;e<b;e++)delete o().validPositions[e];for(f=a,e=a;e<b;e++)if(p(!0),c[e]!==i.skipOptionalPartCharacter){var g=C(f,c[e],!0,!0);!1!==g&&(p(!0),f=g.caret!==d?g.caret:g.pos+1)}}function A(b,c,d){switch(i.casing||c.casing){case"upper":b=b.toUpperCase();break;case"lower":b=b.toLowerCase();break;
228case"title":var f=o().validPositions[d-1];b=0===d||f&&f.input===String.fromCharCode(e.keyCode.SPACE)?b.toUpperCase():b.toLowerCase();break;default:if(a.isFunction(i.casing)){var g=Array.prototype.slice.call(arguments);g.push(o().validPositions),b=i.casing.apply(this,g)}}return b}function B(b,c,e){for(var f,g=i.greedy?c:c.slice(0,1),h=!1,j=e!==d?e.split(","):[],k=0;k<j.length;k++)-1!==(f=b.indexOf(j[k]))&&b.splice(f,1);for(var l=0;l<b.length;l++)if(-1!==a.inArray(b[l],g)){h=!0;break}return h}function C(b,c,f,g,h,j){function k(a){var b=Y?a.begin-a.end>1||a.begin-a.end==1:a.end-a.begin>1||a.end-a.begin==1;return b&&0===a.begin&&a.end===o().maskLength?"full":b}function l(c,e,f){var h=!1;return a.each(w(c),function(j,l){for(var n=l.match,s=e?1:0,t="",u=n.cardinality;u>s;u--)t+=G(c-(u-1));if(e&&(t+=e),y(!0),!1!==(h=null!=n.fn?n.fn.test(t,o(),c,f,i,k(b)):(e===n.def||e===i.skipOptionalPartCharacter)&&""!==n.def&&{c:I(c,n,!0)||n.def,pos:c})){var v=h.c!==d?h.c:e;v=v===i.skipOptionalPartCharacter&&null===n.fn?I(c,n,!0)||n.def:v;var w=c,x=y();if(h.remove!==d&&(a.isArray(h.remove)||(h.remove=[h.remove]),a.each(h.remove.sort(function(a,b){return b-a}),function(a,b){r(b,b+1,!0)})),h.insert!==d&&(a.isArray(h.insert)||(h.insert=[h.insert]),a.each(h.insert.sort(function(a,b){return a-b}),function(a,b){C(b.pos,b.c,!0,g)})),h.refreshFromBuffer){var B=h.refreshFromBuffer;if(z(!0===B?B:B.start,B.end,x),h.pos===d&&h.c===d)return h.pos=q(),!1;if((w=h.pos!==d?h.pos:c)!==c)return h=a.extend(h,C(w,v,!0,g)),!1}else if(!0!==h&&h.pos!==d&&h.pos!==c&&(w=h.pos,z(c,w,y().slice()),w!==c))return h=a.extend(h,C(w,v,!0)),!1;return(!0===h||h.pos!==d||h.c!==d)&&(j>0&&p(!0),m(w,a.extend({},l,{input:A(v,n,w)}),g,k(b))||(h=!1),!1)}}),h}function m(b,c,e,f){if(f||i.insertMode&&o().validPositions[b]!==d&&e===d){var g,h=a.extend(!0,{},o().validPositions),j=q(d,!0);for(g=b;g<=j;g++)delete o().validPositions[g];o().validPositions[b]=a.extend(!0,{},c);var k,l=!0,m=o().validPositions,r=!1,s=o().maskLength;for(g=k=b;g<=j;g++){var t=h[g];if(t!==d)for(var u=k;u<o().maskLength&&(null===t.match.fn&&m[g]&&(!0===m[g].match.optionalQuantifier||!0===m[g].match.optionality)||null!=t.match.fn);){if(u++,!1===r&&h[u]&&h[u].match.def===t.match.def)o().validPositions[u]=a.extend(!0,{},h[u]),o().validPositions[u].input=t.input,n(u),k=u,l=!0;else if(v(u,t.match.def)){var w=C(u,t.input,!0,!0);l=!1!==w,k=w.caret||w.insert?q():u,r=!0}else if(!(l=!0===t.generatedInput)&&u>=o().maskLength-1)break;if(o().maskLength<s&&(o().maskLength=s),l)break}if(!l)break}if(!l)return o().validPositions=a.extend(!0,{},h),p(!0),!1}else o().validPositions[b]=a.extend(!0,{},c);return p(!0),!0}function n(b){for(var c=b-1;c>-1&&!o().validPositions[c];c--);var e,f;for(c++;c<b;c++)o().validPositions[c]===d&&(!1===i.jitMasking||i.jitMasking>c)&&(f=w(c,t(c-1).locator,c-1).slice(),""===f[f.length-1].match.def&&f.pop(),(e=s(f))&&(e.match.def===i.radixPointDefinitionSymbol||!D(c,!0)||a.inArray(i.radixPoint,y())<c&&e.match.fn&&e.match.fn.test(I(c),o(),c,!1,i))&&!1!==(x=l(c,I(c,e.match,!0)||(null==e.match.fn?e.match.def:""!==I(c)?I(c):y()[c]),!0))&&(o().validPositions[x.pos||c].generatedInput=!0))}f=!0===f;var u=b;b.begin!==d&&(u=Y&&!k(b)?b.end:b.begin);var x=!0,F=a.extend(!0,{},o().validPositions);if(a.isFunction(i.preValidation)&&!f&&!0!==g&&!0!==j&&(x=i.preValidation(y(),u,c,k(b),i)),!0===x){if(n(u),k(b)&&(P(d,e.keyCode.DELETE,b,!0,!0),u=o().p),u<o().maskLength&&(U===d||u<U)&&(x=l(u,c,f),(!f||!0===g)&&!1===x&&!0!==j)){var H=o().validPositions[u];if(!H||null!==H.match.fn||H.match.def!==c&&c!==i.skipOptionalPartCharacter){if((i.insertMode||o().validPositions[E(u)]===d)&&!D(u,!0))for(var J=u+1,K=E(u);J<=K;J++)if(!1!==(x=l(J,c,f))){!function(b,c){var e=o().validPositions[c];if(e)for(var f=e.locator,g=f.length,h=b;h<c;h++)if(o().validPositions[h]===d&&!D(h,!0)){var i=w(h).slice(),j=s(i,!0),k=-1;""===i[i.length-1].match.def&&i.pop(),a.each(i,function(a,b){for(var c=0;c<g;c++){if(b.locator[c]===d||!B(b.locator[c].toString().split(","),f[c].toString().split(","),b.na)){var e=f[c],h=j.locator[c],i=b.locator[c];e-h>Math.abs(e-i)&&(j=b);break}k<c&&(k=c,j=b)}}),j=a.extend({},j,{input:I(h,j.match,!0)||j.match.def}),j.generatedInput=!0,m(h,j,!0),o().validPositions[c]=d,l(c,e.input,!0)}}(u,x.pos!==d?x.pos:J),u=J;break}}else x={caret:E(u)}}!1===x&&i.keepStatic&&!f&&!0!==h&&(x=function(b,c,e){var f,h,j,k,l,m,n,r,s=a.extend(!0,{},o().validPositions),t=!1,u=q();for(k=o().validPositions[u];u>=0;u--)if((j=o().validPositions[u])&&j.alternation!==d){if(f=u,h=o().validPositions[f].alternation,k.locator[j.alternation]!==j.locator[j.alternation])break;k=j}if(h!==d){r=parseInt(f);var v=k.locator[k.alternation||h]!==d?k.locator[k.alternation||h]:n[0];v.length>0&&(v=v.split(",")[0]);var x=o().validPositions[r],y=o().validPositions[r-1];a.each(w(r,y?y.locator:d,r-1),function(f,j){n=j.locator[h]?j.locator[h].toString().split(","):[];for(var k=0;k<n.length;k++){var u=[],w=0,y=0,z=!1;if(v<n[k]&&(j.na===d||-1===a.inArray(n[k],j.na.split(","))||-1===a.inArray(v.toString(),n))){o().validPositions[r]=a.extend(!0,{},j);
228var A=o().validPositions[r].locator;for(o().validPositions[r].locator[h]=parseInt(n[k]),null==j.match.fn?(x.input!==j.match.def&&(z=!0,!0!==x.generatedInput&&u.push(x.input)),y++,o().validPositions[r].generatedInput=!/[0-9a-bA-Z]/.test(j.match.def),o().validPositions[r].input=j.match.def):o().validPositions[r].input=x.input,l=r+1;l<q(d,!0)+1;l++)m=o().validPositions[l],m&&!0!==m.generatedInput&&/[0-9a-bA-Z]/.test(m.input)?u.push(m.input):l<b&&w++,delete o().validPositions[l];for(z&&u[0]===j.match.def&&u.shift(),p(!0),t=!0;u.length>0;){var B=u.shift();if(B!==i.skipOptionalPartCharacter&&!(t=C(q(d,!0)+1,B,!1,g,!0)))break}if(t){o().validPositions[r].locator=A;var D=q(b)+1;for(l=r+1;l<q()+1;l++)((m=o().validPositions[l])===d||null==m.match.fn)&&l<b+(y-w)&&y++;b+=y-w,t=C(b>D?D:b,c,e,g,!0)}if(t)return!1;p(),o().validPositions=a.extend(!0,{},s)}}})}return t}(u,c,f)),!0===x&&(x={pos:u})}if(a.isFunction(i.postValidation)&&!1!==x&&!f&&!0!==g&&!0!==j){var L=i.postValidation(y(!0),x,i);if(L.refreshFromBuffer&&L.buffer){var M=L.refreshFromBuffer;z(!0===M?M:M.start,M.end,L.buffer)}x=!0===L?x:L}return x&&x.pos===d&&(x.pos=u),!1!==x&&!0!==j||(p(!0),o().validPositions=a.extend(!0,{},F)),x}function D(a,b){var c=t(a).match;if(""===c.def&&(c=u(a).match),null!=c.fn)return c.fn;if(!0!==b&&a>-1){var d=w(a);return d.length>1+(""===d[d.length-1].match.def?1:0)}return!1}function E(a,b){var c=o().maskLength;if(a>=c)return c;var d=a;for(w(c+1).length>1&&(n(!0,c+1,!0),c=o().maskLength);++d<c&&(!0===b&&(!0!==u(d).match.newBlockMarker||!D(d))||!0!==b&&!D(d)););return d}function F(a,b){var c,d=a;if(d<=0)return 0;for(;--d>0&&(!0===b&&!0!==u(d).match.newBlockMarker||!0!==b&&!D(d)&&(c=w(d),c.length<2||2===c.length&&""===c[1].match.def)););return d}function G(a){return o().validPositions[a]===d?I(a):o().validPositions[a].input}function H(b,c,e,f,g){if(f&&a.isFunction(i.onBeforeWrite)){var h=i.onBeforeWrite.call(W,f,c,e,i);if(h){if(h.refreshFromBuffer){var j=h.refreshFromBuffer;z(!0===j?j:j.start,j.end,h.buffer||c),c=y(!0)}e!==d&&(e=h.caret!==d?h.caret:e)}}b!==d&&(b.inputmask._valueSet(c.join("")),e===d||f!==d&&"blur"===f.type?R(b,e,0===c.length):m&&f&&"input"===f.type?setTimeout(function(){L(b,e)},0):L(b,e),!0===g&&($=!0,a(b).trigger("input")))}function I(b,c,e){if(c=c||u(b).match,c.placeholder!==d||!0===e)return a.isFunction(c.placeholder)?c.placeholder(i):c.placeholder;if(null===c.fn){if(b>-1&&o().validPositions[b]===d){var f,g=w(b),h=[];if(g.length>1+(""===g[g.length-1].match.def?1:0))for(var j=0;j<g.length;j++)if(!0!==g[j].match.optionality&&!0!==g[j].match.optionalQuantifier&&(null===g[j].match.fn||f===d||!1!==g[j].match.fn.test(f.match.def,o(),b,!0,i))&&(h.push(g[j]),null===g[j].match.fn&&(f=g[j]),h.length>1&&/[0-9a-bA-Z]/.test(h[0].match.def)))return i.placeholder.charAt(b%i.placeholder.length)}return c.def}return i.placeholder.charAt(b%i.placeholder.length)}function J(b,f,g,h,j){function k(a,b){return-1!==x().slice(a,E(a)).join("").indexOf(b)&&!D(a)&&u(a).match.nativeDef===b.charAt(b.length-1)}var l=h.slice(),m="",n=-1,r=d;if(p(),g||!0===i.autoUnmask)n=E(n);else{var s=x().slice(0,E(-1)).join(""),v=l.join("").match(new RegExp("^"+e.escapeRegex(s),"g"));v&&v.length>0&&(l.splice(0,v.length*s.length),n=E(n))}if(-1===n?(o().p=E(n),n=0):o().p=n,a.each(l,function(c,e){if(e!==d)if(o().validPositions[c]===d&&l[c]===I(c)&&D(c,!0)&&!1===C(c,l[c],!0,d,d,!0))o().p++;else{var f=new a.Event("_checkval");f.which=e.charCodeAt(0),m+=e;var h=q(d,!0),j=o().validPositions[h],s=t(h+1,j?j.locator.slice():d,h);if(!k(n,m)||g||i.autoUnmask){var u=g?c:null==s.match.fn&&s.match.optionality&&h+1<o().p?h+1:o().p;r=ca.keypressEvent.call(b,f,!0,!1,g,u),n=u+1,m=""}else r=ca.keypressEvent.call(b,f,!0,!1,!0,h+1);if(!1!==r&&!g&&a.isFunction(i.onBeforeWrite)){var v=r;if(r=i.onBeforeWrite.call(W,f,y(),r.forwardPosition,i),(r=a.extend(v,r))&&r.refreshFromBuffer){var w=r.refreshFromBuffer;z(!0===w?w:w.start,w.end,r.buffer),p(!0),r.caret&&(o().p=r.caret,r.forwardPosition=r.caret)}}}}),f){var w=d;c.activeElement===b&&r&&(w=i.numericInput?F(r.forwardPosition):r.forwardPosition),H(b,y(),w,j||new a.Event("checkval"),j&&"input"===j.type)}}function K(b){if(b){if(b.inputmask===d)return b.value;b.inputmask&&b.inputmask.refreshValue&&ca.setValueEvent.call(b)}
228var c=[],e=o().validPositions;for(var f in e)e[f].match&&null!=e[f].match.fn&&c.push(e[f].input);var g=0===c.length?"":(Y?c.reverse():c).join("");if(a.isFunction(i.onUnMask)){var h=(Y?y().slice().reverse():y()).join("");g=i.onUnMask.call(W,h,g,i)}return g}function L(a,e,f,g){function h(a){if(!0!==g&&Y&&"number"==typeof a&&(!i.greedy||""!==i.placeholder)){a=y().join("").length-a}return a}var k;if(e===d)return a.setSelectionRange?(e=a.selectionStart,f=a.selectionEnd):b.getSelection?(k=b.getSelection().getRangeAt(0),k.commonAncestorContainer.parentNode!==a&&k.commonAncestorContainer!==a||(e=k.startOffset,f=k.endOffset)):c.selection&&c.selection.createRange&&(k=c.selection.createRange(),e=0-k.duplicate().moveStart("character",-a.inputmask._valueGet().length),f=e+k.text.length),{begin:h(e),end:h(f)};if(e.begin!==d&&(f=e.end,e=e.begin),"number"==typeof e){e=h(e),f=h(f),f="number"==typeof f?f:e;var l=parseInt(((a.ownerDocument.defaultView||b).getComputedStyle?(a.ownerDocument.defaultView||b).getComputedStyle(a,null):a.currentStyle).fontSize)*f;if(a.scrollLeft=l>a.scrollWidth?l:0,j||!1!==i.insertMode||e!==f||f++,a.setSelectionRange)a.selectionStart=e,a.selectionEnd=f;else if(b.getSelection){if(k=c.createRange(),a.firstChild===d||null===a.firstChild){var m=c.createTextNode("");a.appendChild(m)}k.setStart(a.firstChild,e<a.inputmask._valueGet().length?e:a.inputmask._valueGet().length),k.setEnd(a.firstChild,f<a.inputmask._valueGet().length?f:a.inputmask._valueGet().length),k.collapse(!0);var n=b.getSelection();n.removeAllRanges(),n.addRange(k)}else a.createTextRange&&(k=a.createTextRange(),k.collapse(!0),k.moveEnd("character",f),k.moveStart("character",e),k.select());R(a,{begin:e,end:f})}}function M(b){var c,e,f=y(),g=f.length,h=q(),i={},j=o().validPositions[h],k=j!==d?j.locator.slice():d;for(c=h+1;c<f.length;c++)e=t(c,k,c-1),k=e.locator.slice(),i[c]=a.extend(!0,{},e);var l=j&&j.alternation!==d?j.locator[j.alternation]:d;for(c=g-1;c>h&&(e=i[c],(e.match.optionality||e.match.optionalQuantifier&&e.match.newBlockMarker||l&&(l!==i[c].locator[j.alternation]&&null!=e.match.fn||null===e.match.fn&&e.locator[j.alternation]&&B(e.locator[j.alternation].toString().split(","),l.toString().split(","))&&""!==w(c)[0].def))&&f[c]===I(c,e.match));c--)g--;return b?{l:g,def:i[g]?i[g].match:d}:g}function N(a){for(var b,c=M(),e=a.length,f=o().validPositions[q()];c<e&&!D(c,!0)&&(b=f!==d?t(c,f.locator.slice(""),f):u(c))&&!0!==b.match.optionality&&(!0!==b.match.optionalQuantifier&&!0!==b.match.newBlockMarker||c+1===e&&""===(f!==d?t(c+1,f.locator.slice(""),f):u(c+1)).match.def);)c++;for(;(b=o().validPositions[c-1])&&b&&b.match.optionality&&b.input===i.skipOptionalPartCharacter;)c--;return a.splice(c),a}function O(b){if(a.isFunction(i.isComplete))return i.isComplete(b,i);if("*"===i.repeat)return d;var c=!1,e=M(!0),f=F(e.l);if(e.def===d||e.def.newBlockMarker||e.def.optionality||e.def.optionalQuantifier){c=!0;for(var g=0;g<=f;g++){var h=t(g).match;if(null!==h.fn&&o().validPositions[g]===d&&!0!==h.optionality&&!0!==h.optionalQuantifier||null===h.fn&&b[g]!==I(g,h)){c=!1;break}}}return c}function P(b,c,f,g,h){if((i.numericInput||Y)&&(c===e.keyCode.BACKSPACE?c=e.keyCode.DELETE:c===e.ke
228yCode.DELETE&&(c=e.keyCode.BACKSPACE),Y)){var j=f.end;f.end=f.begin,f.begin=j}c===e.keyCode.BACKSPACE&&(f.end-f.begin<1||!1===i.insertMode)?(f.begin=F(f.begin),o().validPositions[f.begin]!==d&&o().validPositions[f.begin].input===i.groupSeparator&&f.begin--):c===e.keyCode.DELETE&&f.begin===f.end&&(f.end=D(f.end,!0)&&o().validPositions[f.end]&&o().validPositions[f.end].input!==i.radixPoint?f.end+1:E(f.end)+1,o().validPositions[f.begin]!==d&&o().validPositions[f.begin].input===i.groupSeparator&&f.end++),r(f.begin,f.end,!1,g),!0!==g&&function(){if(i.keepStatic){for(var c=[],e=q(-1,!0),f=a.extend(!0,{},o().validPositions),g=o().validPositions[e];e>=0;e--){var h=o().validPositions[e];if(h){if(!0!==h.generatedInput&&/[0-9a-bA-Z]/.test(h.input)&&c.push(h.input),delete o().validPositions[e],h.alternation!==d&&h.locator[h.alternation]!==g.locator[h.alternation])break;g=h}}if(e>-1)for(o().p=E(q(-1,!0));c.length>0;){var j=new a.Event("keypress");j.which=c.pop().charCodeAt(0),ca.keypressEvent.call(b,j,!0,!1,!1,o().p)}else o().validPositions=a.extend(!0,{},f)}}();var k=q(f.begin,!0);if(k<f.begin)o().p=E(k);else if(!0!==g&&(o().p=f.begin,!0!==h))for(;o().p<k&&o().validPositions[o().p]===d;)o().p++}function Q(d){function e(a){var b,e=c.createElement("span");for(var g in f)isNaN(g)&&-1!==g.indexOf("font")&&(e.style[g]=f[g]);e.style.textTransform=f.textTransform,e.style.letterSpacing=f.letterSpacing,e.style.position="absolute",e.style.height="auto",e.style.width="auto",e.style.visibility="hidden",e.style.whiteSpace="nowrap",c.body.appendChild(e);var h,i=d.inputmask._valueGet(),j=0;for(b=0,h=i.length;b<=h;b++){if(e.innerHTML+=i.charAt(b)||"_",e.offsetWidth>=a){var k=a-j,l=e.offsetWidth-a;e.innerHTML=i.charAt(b),k-=e.offsetWidth/3,b=k<l?b-1:b;break}j=e.offsetWidth}return c.body.removeChild(e),b}var f=(d.ownerDocument.defaultView||b).getComputedStyle(d,null),g=c.createElement("div");g.style.width=f.width,g.style.textAlign=f.textAlign,V=c.createElement("div"),V.className="im-colormask",d.parentNode.insertBefore(V,d),d.parentNode.removeChild(d),V.appendChild(g),V.appendChild(d),d.style.left=g.offsetLeft+"px",a(d).on("click",function(a){return L(d,e(a.clientX)),ca.clickEvent.call(d,[a])}),a(d).on("keydown",function(a){a.shiftKey||!1===i.insertMode||setTimeout(function(){R(d)},0)})}function R(a,b,e){function f(){m||null!==h.fn&&j.input!==d?m&&(null!==h.fn&&j.input!==d||""===h.def)&&(m=!1,l+="</span>"):(m=!0,l+="<span class='im-static'>")}function g(d){!0!==d&&n!==b.begin||c.activeElement!==a||(l+="<span class='im-caret' style='border-right-width: 1px;border-right-style: solid;'></span>")}var h,j,k,l="",m=!1,n=0;if(V!==d){var p=y();if(b===d?b=L(a):b.begin===d&&(b={begin:b,end:b}),!0!==e){var r=q();do{g(),o().validPositions[n]?(j=o().validPositions[n],h=j.match,k=j.locator.slice(),f(),l+=p[n]):(j=t(n,k,n-1),h=j.match,k=j.locator.slice(),(!1===i.jitMasking||n<r||"number"==typeof i.jitMasking&&isFinite(i.jitMasking)&&i.jitMasking>n)&&(f(),l+=I(n,h))),n++}while((U===d||n<U)&&(null!==h.fn||""!==h.def)||r>n||m);-1===l.indexOf("im-caret")&&g(!0),m&&f()}var s=V.getElementsByTagName("div")[0];s.innerHTML=l,a.inputmask.positionColorMask(a,s)}}g=g||this.maskset,i=i||this.opts;var S,T,U,V,W=this,X=this.el,Y=this.isRTL,Z=!1,$=!1,_=!1,aa=!1,ba={on:function(b,c,f){var g=function(b){if(this.inputmask===d&&"FORM"!==this.nodeName){var c=a.data(this,"_inputmask_opts");c?new e(c).mask(this):ba.off(this)}else{if("setvalue"===b.type||"FORM"===this.nodeName||!(this.disabled||this.readOnly&&!("keydown"===b.type&&b.ctrlKey&&67===b.keyCode||!1===i.tabThrough&&b.keyCode===e.keyCode.TAB))){switch(b.type){case"input":if(!0===$)return $=!1,b.preventDefault();break;case"keydown":Z=!1,$=!1;break;case"keypress":if(!0===Z)return b.preventDefault();Z=!0;break;case"click":if(k||l){var g=this,h=arguments;return setTimeout(function(){f.apply(g,h)},0),!1}}var j=f.apply(this,arguments);return!1===j&&(b.preventDefault(),b.stopPropagation()),j}b.preventDefault()}};b.inputmask.events[c]=b.inputmask.events[c]||[],b.inputmask.events[c].push(g),-1!==a.inArray(c,["submit","reset"])?null!==b.form&&a(b.form).on(c,g):a(b).on(c,g)},off:function(b,c){if(b.inputmask&&b.inputmask.events){var d;c?(d=[],d[c]=b.inputmask.events[c]):d=b.inputmask.events,a.each(d,function(c,d){for(;d.length>0;){var e=d.pop();-1!==a.inArray(c,["submit","reset"])?null!==b.form&&a(b.form).off(c,e):a(b).off(c,e)}delete b.inputmask.events[c]})}}},ca={keydownEvent:function(b){var d=this,f=a(d),g=b.keyCode,h=L(d);if(g===e.keyCode.BACKSPACE||g===e.keyCode.DELETE||l&&g===e.keyCode.BACKSPACE_SAFARI||b.ctrlKey&&g===e.keyCode.X&&!function(a){var b=c.createElement("input"),d="on"+a,e=d in b;return e||(b.setAttribute(d,"return;"),e="function"==typeof b[d]),b=null,e}("cut"))b.preventDefault(),P(d,g,h),H(d,y(!0),o().p,b,d.inputmask._valueGet()!==y().join("")),d.inputmask._valueGet()===x().join("")?f.trigger("cleared"):!0===O(y())&&f.trigger("complete");else if(g===e.keyCode.END||g===e.keyCode.PAGE_DOWN){b.preventDefault();var j=E(q());i.insertMode||j!==o().maskLength||b.shiftKey||j--,L(d,b.shiftKey?h.begin:j,j,!0)}else g===e.keyCode.HOME&&!b.shiftKey||g===e.keyCode.PAGE_UP?(b.preventDefault(),L(d,0,b.shiftKey?h.begin:0,!0)):(i.undoOnEscape&&g===e.keyCode.ESCAPE||90===g&&b.ctrlKey)&&!0!==b.altKey?(J(d,!0,!1,S.split("")),f.trigger("click")):g!==e.keyCode.INSERT||b.shiftKey||b.ctrlKey?!0===i.tabThrough&&g===e.keyCode.TAB?(!0===b.shiftKey?(null===u(h.begin).match.fn&&(h.begin=E(h.begin)),h.end=F(h.begin,!0),h.begin=F(h.end,!0)):(h.begin=E(h.begin,!0),h.end=E(h.begin,!0),h.end<o().maskLength&&h.end--),h.begin<o().maskLength&&(b.preventDefault(),L(d,h.begin,h.end))):b.shiftKey||!1===i.insertMode&&(g===e.keyCode.RIGHT?setTimeout(function(){var a=L(d);L(d,a.begin)},0):g===e.keyCode.LEFT&&setTimeout(function(){var a=L(d);L(d,Y?a.begin+1:a.begin-1)},0)):(i.insertMode=!i.insertMode,L(d,i.insertMode||h.begin!==o().maskLength?h.begin:h.begin-1));i.onKeyDown.call(this,b,y(),L(d).begin,i),_=-1!==a.inArray(g,i.ignorables)},keypressEvent:function(b,c,f,g,h){var j=this,k=a(j),l=b.which||b.charCode||b.keyCode;if(!(!0===c||b.ctrlKey&&b.altKey)&&(b.ctrlKey||b.metaKey||_))return l===e.keyCode.ENTER&&S!==y().join("")&&(S=y().join(""),setTimeout(function(){k.trigger("change")},0)),!0;if(l){46===l&&!1===b.shiftKey&&""!==i.radixPoint&&(l=i.radixPoint.charCodeAt(0));var m,n=c?{begin:h,end:h}:L(j),q=String.fromCharCode(l);o().writeOutBuffer=!0;var r=C(n,q,g);if(!1!==r&&(p(!0),m=r.caret!==d?r.caret:c?r.pos+1:E(r.pos),o().p=m),!1!==f&&(setTimeout(function(){i.onKeyValidation.call(j,l,r,i)},0),o().writeOutBuffer&&!1!==r)){var s=y();H(j,s,i.numericInput&&r.caret===d?F(m):m,b,!0!==c),!0!==c&&setTimeout(function(){!0===O(s)&&k.trigger("complete")},0)}if(b.preventDefault(),c)return!1!==r&&(r.forwardPosition=m),r}},pasteEvent:function(c){var d,e=this,f=c.originalEvent||c,g=a(e),h=e.inputmask._valueGet(!0),j=L(e);Y&&(d=j.end,j.end=j.begin,j.begin=d);var k=h.substr(0,j.begin),l=h.substr(j.end,h.length);if(k===(Y?x().reverse():x()).slice(0,j.begin).join("")&&(k=""),l===(Y?x().reverse():x()).slice(j.end).join("")&&(l=""),Y&&(d=k,k=l,l=d),b.clipboardData&&b.clipboardData.getData)h=k+b.clipboardData.getData("Text")+l;else{if(!f.clipboardData||!f.clipboardData.getData)return!0;h=k+f.clipboardData.getData("text/plain")+l}var m=h;if(a.isFunction(i.onBeforePaste)){if(!1===(m=i.onBeforePaste.call(W,h,i)))return c.preventDefault();m||(m=h)}return J(e,!1,!1,Y?m.split("").reverse():m.toString().split("")),H(e,y(),E(q()),c,S!==y().join("")),!0===O(y())&&g.trigger("complete"),c.preventDefault()},inputFallBackEvent:function(b){var c=this,d=c.inputmask._valueGet();if(y().join("")!==d){var f=L(c);if(!1===function(b,c,d){if("."===c.charAt(d.begin-1)&&""!==i.radixPoint&&(c=c.split(""),c[d.begin-1]=i.radixPoint.charAt(0),c=c.join("")),c.charAt(d.begin-1)===i.radixPoint&&c.length>y().length){var e=new a.Event("keypress");return e.which=i.radixPoint.charCodeAt(0),ca.keypressEvent.call(b,e,!0,!0,!1,d.begin-1),!1}}(c,d,f))return!1;if(d=d.replace(new RegExp("("+e.escapeRegex(x().join(""))+")*"),""),!1===function(b,c,d){if(k){var e=c.replace(y().join(""),"");if(1===e.length){var f=new a.Event("keypress");return f.which=e.charCodeAt(0),ca.keypressEvent.call(b,f,!0,!0,!1,o().validPositions[d.begin-1]?d.begin:d.begin-1),!1}}}(c,d,f))return!1;f.begin>d.length&&(L(c,d.length),f=L(c));var g=y().join(""),h=d.substr(0,f.begin),j=d.substr(f.begin),l=g.substr(0,f.begin),m=g.substr(f.begin),n=f,p="",q=!1;if(h!==l){n.begin=0;for(var r=(q=h.length>=l.length)?h.length:l.length,s=0;h.charAt(s)===l.charAt(s)&&s<r;s++)n.begin++;
228q&&(p+=h.slice(n.begin,n.end))}j!==m&&(j.length>m.length?q&&(n.end=n.begin):j.length<m.length?n.end+=m.length-j.length:j.charAt(0)!==m.charAt(0)&&n.end++),H(c,y(),n),p.length>0?a.each(p.split(""),function(b,d){var e=new a.Event("keypress");e.which=d.charCodeAt(0),_=!1,ca.keypressEvent.call(c,e)}):(n.begin===n.end-1&&L(c,F(n.begin+1),n.end), 229b.keyCode=e.keyCode.DELETE,ca.keydownEvent.call(c,b)),b.preventDefault()}},setValueEvent:function(b){this.inputmask.refreshValue=!1;var c=this,d=c.inputmask._valueGet(!0);a.isFunction(i.onBeforeMask)&&(d=i.onBeforeMask.call(W,d,i)||d),d=d.split(""),J(c,!0,!1,Y?d.reverse():d),S=y().join(""),(i.clearMaskOnLostFocus||i.clearIncomplete)&&c.inputmask._valueGet()===x().join("")&&c.inputmask._valueSet("")},focusEvent:function(a){var b=this,c=b.inputmask._valueGet();i.showMaskOnFocus&&(!i.showMaskOnHover||i.showMaskOnHover&&""===c)&&(b.inputmask._valueGet()!==y().join("")?H(b,y(),E(q())):!1===aa&&L(b,E(q()))),!0===i.positionCaretOnTab&&!1===aa&&""!==c&&(H(b,y(),L(b)),ca.clickEvent.apply(b,[a,!0])),S=y().join("")},mouseleaveEvent:function(a){var b=this;if(aa=!1,i.clearMaskOnLostFocus&&c.activeElement!==b){var d=y().slice(),e=b.inputmask._valueGet();e!==b.getAttribute("placeholder")&&""!==e&&(-1===q()&&e===x().join("")?d=[]:N(d),H(b,d))}},clickEvent:function(b,e){function f(b){if(""!==i.radixPoint){var c=o().validPositions;if(c[b]===d||c[b].input===I(b)){if(b<E(-1))return!0;var e=a.inArray(i.radixPoint,y());if(-1!==e){for(var f in c)if(e<f&&c[f].input!==I(f))return!1;return!0}}}return!1}var g=this;setTimeout(function(){if(c.activeElement===g){var a=L(g);if(e&&(Y?a.end=a.begin:a.begin=a.end),a.begin===a.end)switch(i.positionCaretOnClick){case"none":break;case"radixFocus":if(f(a.begin)){var b=y().join("").indexOf(i.radixPoint);L(g,i.numericInput?E(b):b);break}default:var h=a.begin,j=q(h,!0),k=E(j);if(h<k)L(g,D(h,!0)||D(h-1,!0)?h:E(h));else{var l=o().validPositions[j],m=t(k,l?l.match.locator:d,l),n=I(k,m.match);if(""!==n&&y()[k]!==n&&!0!==m.match.optionalQuantifier&&!0!==m.match.newBlockMarker||!D(k,!0)&&m.match.def===n){var p=E(k);(h>=p||h===k)&&(k=p)}L(g,k)}}}},0)},dblclickEvent:function(a){var b=this;setTimeout(function(){L(b,0,E(q()))},0)},cutEvent:function(d){var f=this,g=a(f),h=L(f),i=d.originalEvent||d,j=b.clipboardData||i.clipboardData,k=Y?y().slice(h.end,h.begin):y().slice(h.begin,h.end);j.setData("text",Y?k.reverse().join(""):k.join("")),c.execCommand&&c.execCommand("copy"),P(f,e.keyCode.DELETE,h),H(f,y(),o().p,d,S!==y().join("")),f.inputmask._valueGet()===x().join("")&&g.trigger("cleared")},blurEvent:function(b){var c=a(this),e=this;if(e.inputmask){var f=e.inputmask._valueGet(),g=y().slice();""!==f&&(i.clearMaskOnLostFocus&&(-1===q()&&f===x().join("")?g=[]:N(g)),!1===O(g)&&(setTimeout(function(){c.trigger("incomplete")},0),i.clearIncomplete&&(p(),g=i.clearMaskOnLostFocus?[]:x().slice())),H(e,g,d,b)),S!==y().join("")&&(S=g.join(""),c.trigger("change"))}},mouseenterEvent:function(a){var b=this;aa=!0,c.activeElement!==b&&i.showMaskOnHover&&b.inputmask._valueGet()!==y().join("")&&H(b,y())},submitEvent:function(a){S!==y().join("")&&T.trigger("change"),i.clearMaskOnLostFocus&&-1===q()&&X.inputmask._valueGet&&X.inputmask._valueGet()===x().join("")&&X.inputmask._valueSet(""),i.removeMaskOnSubmit&&(X.inputmask._valueSet(X.inputmask.unmaskedvalue(),!0),setTimeout(function(){H(X,y())},0))},resetEvent:function(a){X.inputmask.refreshValue=!0,setTimeout(function(){T.trigger("setvalue")},0)}};e.prototype.positionColorMask=function(a,b){a.style.left=b.offsetLeft+"px"};var da;if(f!==d)switch(f.action){case"isComplete":return X=f.el,O(y());case"unmaskedvalue":return X!==d&&f.value===d||(da=f.value,da=(a.isFunction(i.onBeforeMask)?i.onBeforeMask.call(W,da,i)||da:da).split(""),J(d,!1,!1,Y?da.reverse():da),a.isFunction(i.onBeforeWrite)&&i.onBeforeWrite.call(W,d,y(),0,i)),K(X);case"mask":!function(b){ba.off(b);var e=function(b,e){var f=b.getAttribute("type"),g="INPUT"===b.tagName&&-1!==a.inArray(f,e.supportsInputType)||b.isContentEditable||"TEXTAREA"===b.tagName;if(!g)if("INPUT"===b.tagName){var h=c.createElement("input");h.setAttribute("type",f),g="text"===h.type,h=null}else g="partial";return!1!==g?function(b){function f(){return this.inputmask?this.inputmask.opts.autoUnmask?this.inputmask.unmaskedvalue():-1!==q()||!0!==e.nullable?c.activeElement===this&&e.clearMaskOnLostFocus?(Y?N(y().slice()).reverse():N(y().slice())).join(""):h.call(this):"":h.call(this)}function g(b){i.call(this,b),this.inputmask&&a(this).trigger("setvalue")}var h,i;if(!b.inputmask.__valueGet){if(!0!==e.noValuePatching){if(Object.getOwnPropertyDescriptor){"function"!=typeof Object.getPrototypeOf&&(Object.getPrototypeOf="object"==typeof"test".__proto__?function(a){return a.__proto__}:function(a){return a.constructor.prototype});var j=Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(b),"value"):d;j&&j.get&&j.set?(h=j.get,i=j.set,Object.defineProperty(b,"value",{get:f,set:g,configurable:!0})):"INPUT"!==b.tagName&&(h=function(){return this.textContent},i=function(a){this.textContent=a}
229,Object.defineProperty(b,"value",{get:f,set:g,configurable:!0}))}else c.__lookupGetter__&&b.__lookupGetter__("value")&&(h=b.__lookupGetter__("value"),i=b.__lookupSetter__("value"),b.__defineGetter__("value",f),b.__defineSetter__("value",g));b.inputmask.__valueGet=h,b.inputmask.__valueSet=i}b.inputmask._valueGet=function(a){return Y&&!0!==a?h.call(this.el).split("").reverse().join(""):h.call(this.el)},b.inputmask._valueSet=function(a,b){i.call(this.el,null===a||a===d?"":!0!==b&&Y?a.split("").reverse().join(""):a)},h===d&&(h=function(){return this.value},i=function(a){this.value=a},function(b){if(a.valHooks&&(a.valHooks[b]===d||!0!==a.valHooks[b].inputmaskpatch)){var c=a.valHooks[b]&&a.valHooks[b].get?a.valHooks[b].get:function(a){return a.value},f=a.valHooks[b]&&a.valHooks[b].set?a.valHooks[b].set:function(a,b){return a.value=b,a};a.valHooks[b]={get:function(a){if(a.inputmask){if(a.inputmask.opts.autoUnmask)return a.inputmask.unmaskedvalue();var b=c(a);return-1!==q(d,d,a.inputmask.maskset.validPositions)||!0!==e.nullable?b:""}return c(a)},set:function(b,c){var d,e=a(b);return d=f(b,c),b.inputmask&&e.trigger("setvalue"),d},inputmaskpatch:!0}}}(b.type),function(b){ba.on(b,"mouseenter",function(b){var c=a(this);this.inputmask._valueGet()!==y().join("")&&c.trigger("setvalue")})}(b))}}(b):b.inputmask=d,g}(b,i);if(!1!==e&&(X=b,T=a(X),U=X!==d?X.maxLength:d,-1===U&&(U=d),!0===i.colorMask&&Q(X),m&&(X.hasOwnProperty("inputmode")&&(X.inputmode=i.inputmode,X.setAttribute("inputmode",i.inputmode)),"rtfm"===i.androidHack&&(!0!==i.colorMask&&Q(X),X.type="password")),!0===e&&(ba.on(X,"submit",ca.submitEvent),ba.on(X,"reset",ca.resetEvent),ba.on(X,"mouseenter",ca.mouseenterEvent),ba.on(X,"blur",ca.blurEvent),ba.on(X,"focus",ca.focusEvent),ba.on(X,"mouseleave",ca.mouseleaveEvent),!0!==i.colorMask&&ba.on(X,"click",ca.clickEvent),ba.on(X,"dblclick",ca.dblclickEvent),ba.on(X,"paste",ca.pasteEvent),ba.on(X,"dragdrop",ca.pasteEvent),ba.on(X,"drop",ca.pasteEvent),ba.on(X,"cut",ca.cutEvent),ba.on(X,"complete",i.oncomplete),ba.on(X,"incomplete",i.onincomplete),ba.on(X,"cleared",i.oncleared),m||!0===i.inputEventOnly?X.removeAttribute("maxLength"):(ba.on(X,"keydown",ca.keydownEvent),ba.on(X,"keypress",ca.keypressEvent)),ba.on(X,"compositionstart",a.noop),ba.on(X,"compositionupdate",a.noop),ba.on(X,"compositionend",a.noop),ba.on(X,"keyup",a.noop),ba.on(X,"input",ca.inputFallBackEvent),ba.on(X,"beforeinput",a.no
229op)),ba.on(X,"setvalue",ca.setValueEvent),S=x().join(""),""!==X.inputmask._valueGet(!0)||!1===i.clearMaskOnLostFocus||c.activeElement===X)){var f=a.isFunction(i.onBeforeMask)?i.onBeforeMask.call(W,X.inputmask._valueGet(!0),i)||X.inputmask._valueGet(!0):X.inputmask._valueGet(!0);""!==f&&J(X,!0,!1,Y?f.split("").reverse():f.split(""));var g=y().slice();S=g.join(""),!1===O(g)&&i.clearIncomplete&&p(),i.clearMaskOnLostFocus&&c.activeElement!==X&&(-1===q()?g=[]:N(g)),H(X,g),c.activeElement===X&&L(X,E(q()))}}(X);break;case"format":return da=(a.isFunction(i.onBeforeMask)?i.onBeforeMask.call(W,f.value,i)||f.value:f.value).split(""),J(d,!0,!1,Y?da.reverse():da),f.metadata?{value:Y?y().slice().reverse().join(""):y().join(""),metadata:h.call(this,{action:"getmetadata"},g,i)}:Y?y().slice().reverse().join(""):y().join("");case"isValid":f.value?(da=f.value.split(""),J(d,!0,!0,Y?da.reverse():da)):f.value=y().join("");for(var ea=y(),fa=M(),ga=ea.length-1;ga>fa&&!D(ga);ga--);return ea.splice(fa,ga+1-fa),O(ea)&&f.value===y().join("");case"getemptymask":return x().join("");case"remove":if(X&&X.inputmask){T=a(X),X.inputmask._valueSet(i.autoUnmask?K(X):X.inputmask._valueGet(!0)),ba.off(X);Object.getOwnPropertyDescriptor&&Object.getPrototypeOf?Object.getOwnPropertyDescriptor(Object.getPrototypeOf(X),"value")&&X.inputmask.__valueGet&&Object.defineProperty(X,"value",{get:X.inputmask.__valueGet,set:X.inputmask.__valueSet,configurable:!0}):c.__lookupGetter__&&X.__lookupGetter__("value")&&X.inputmask.__valueGet&&(X.__defineGetter__("value",X.inputmask.__valueGet),X.__defineSetter__("value",X.inputmask.__valueSet)),X.inputmask=d}return X;case"getmetadata":if(a.isArray(g.metadata)){var ha=n(!0,0,!1).join("");return a.each(g.metadata,function(a,b){if(b.mask===ha)return ha=b,!1}),ha}return g.metadata}}var i=navigator.userAgent,j=/mobile/i.test(i),k=/iemobile/i.test(i),l=/iphone/i.test(i)&&!k,m=/android/i.test(i)&&!k;return e.prototype={dataAttribute:"data-inputmask",defaults:{placeholder:"_",optionalmarker:{start:"[",end:"]"},quantifiermarker:{start:"{",end:"}"},groupmarker:{start:"(",end:")"},alternatormarker:"|",escapeChar:"\\",mask:null,regex:null,oncomplete:a.noop,onincomplete:a.noop,oncleared:a.noop,repeat:0,greedy:!0,autoUnmask:!1,removeMaskOnSubmit:!1,clearMaskOnLostFocus:!0,insertMode:!0,clearIncomplete:!1,alias:null,onKeyDown:a.noop,onBeforeMask:null,onBeforePaste:function(b,c){return a.isFunction(c.onBeforeMask)?c.onBeforeMask.call(this,b,c):b},onBeforeWrite:null,onUnMask:null,showMaskOnFocus:!0,showMaskOnHover:!0,onKeyValidation:a.noop,skipOptionalPartCharacter:" ",numericInput:!1,rightAlign:!1,undoOnEscape:!0,radixPoint:"",radixPointDefinitionSymbol:d,groupSeparator:"",keepStatic:null,positionCaretOnTab:!0,tabThrough:!1,supportsInputType:["text","tel","password"],ignorables:[8,9,13,19,27,33,34,35,36,37,38,39,40,45,46,93,112,113,114,115,116,117,118,119,120,121,122,123,0,229],isComplete:null,canClearPosition:a.noop,preValidation:null,postValidation:null,staticDefinitionSymbol:d,jitMasking:!1,nullable:!0,inputEventOnly:!1,noValuePatching:!1,positionCaretOnClick:"lvp",casing:null,inputmode:"verbatim",colorMask:!1,androidHack:!1,importDataAttributes:!0},definitions:{9:{validator:"[0-9\uff11-\uff19]",cardinality:1,definitionSymbol:"*"},a:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",cardinality:1,definitionSymbol:"*"},"*":{validator:"[0-9\uff11-\uff19A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",cardinality:1}},aliases:{},masksCache:{},mask:function(i){function j(c,e,g,h){function i(a,e){null!==(e=e!==d?e:c.getAttribute(h+"-"+a))&&("string"==typeof e&&(0===a.indexOf("on")?e=b[e]:"false"===e?e=!1:"true"===e&&(e=!0)),g[a]=e)}if(!0===e.importDataAttributes){var j,k,l,m,n=c.getAttribute(h);if(n&&""!==n&&(n=n.replace(new RegExp("'","g"),'"'),k=JSON.parse("{"+n+"}")),k){l=d;for(m in k)if("alias"===m.toLowerCase()){l=k[m];break}}i("alias",l),g.alias&&f(g.alias,g,e);for(j in e){if(k){l=d;for(m in k)if(m.toLowerCase()===j.toLowerCase()){l=k[m];break}}i(j,l)}}return a.extend(!0,e,g),("rtl"===c.dir||e.rightAlign)&&(c.style.textAlign="right"),("rtl"===c.dir||e.numericInput)&&(c.dir="ltr",c.removeAttribute("dir"),e.isRTL=!0),e}var k=this;return"string"==typeof i&&(i=c.getElementById(i)||c.querySelectorAll(i)),i=i.nodeName?[i]:i,a.each(i,function(b,c){var f=a.extend(!0,{},k.opts);j(c,f,a.extend(!0,{},k.userOptions),k.dataAttribute);var i=g(f,k.noMasksCache);i!==d&&(c.inputmask!==d&&(c.inputmask.opts.autoUnmask=!0,c.inputmask.remove()),c.inputmask=new e(d,d,!0),c.inputmask.opts=f,c.inputmask.noMasksCache=k.noMasksCache,c.inputmask.userOptions=a.extend(!0,{},k.userOptions),c.inputmask.isRTL=f.isRTL||f.numericInput,c.inputmask.el=c,c.inputmask.maskset=i,a.data(c,"_inputmask_opts",f),h.call(c.inputmask,{action:"mask"}))}),i&&i[0]?i[0].inputmask||this:this},option:function(b,c){return"string"==typeof b?this.opts[b]:"object"==typeof b?(a.extend(this.userOptions,b),this.el&&!0!==c&&this.mask(this.el),this):void 0},unmaskedvalue:function(a){return this.maskset=this.maskset||g(this.opts,this.noMasksCache),h.
229call(this,{action:"unmaskedvalue",value:a})},remove:function(){return h.call(this,{action:"remove"})},getemptymask:function(){return this.maskset=this.maskset||g(this.opts,this.noMasksCache),h.call(this,{action:"getemptymask"})},hasMaskedValue:function(){return!this.opts.autoUnmask},isComplete:function(){return this.maskset=this.maskset||g(this.opts,this.noMasksCache),h.call(this,{action:"isComplete"})},getmetadata:function(){return this.maskset=this.maskset||g(this.opts,this.noMasksCache),h.call(this,{action:"getmetadata"})},isValid:function(a){return this.maskset=this.maskset||g(this.opts,this.noMasksCache),h.call(this,{action:"isValid",value:a})},format:function(a,b){return this.maskset=this.maskset||g(this.opts,this.noMasksCache),h.call(this,{action:"format",value:a,metadata:b})},analyseMask:function(b,c,f){function g(a,b,c,d){this.matches=[],this.openGroup=a||!1,this.alternatorGroup=!1,this.isGroup=a||!1,this.isOptional=b||!1,this.isQuantifier=c||!1,this.isAlternator=d||!1,this.quantifier={min:1,max:1}}function h(b,g,h){h=h!==d?h:b.matches.length;var i=b.matches[h-1];if(c)0===g.indexOf("[")||u&&/\\d|\\s|\\w]/i.test(g)||"."===g?b.matches.splice(h++,0,{fn:new RegExp(g,f.casing?"i":""),cardinality:1,optionality:b.isOptional,newBlockMarker:i===d||i.def!==g,casing:null,def:g,placeholder:d,nativeDef:g}):(u&&(g=g[g.length-1]),a.each(g.split(""),function(a,c){i=b.matches[h-1],b.matches.splice(h++,0,{fn:null,cardinality:0,optionality:b.isOptional,newBlockMarker:i===d||i.def!==c&&null!==i.fn,casing:null,def:f.staticDefinitionSymbol||c,placeholder:f.staticDefinitionSymbol!==d?c:d,nativeDef:c})})),u=!1;else{var j=(f.definitions?f.definitions[g]:d)||e.prototype.definitions[g];if(j&&!u){for(var k=j.prevalidator,l=k?k.length:0,m=1;m<j.cardinality;m++){var n=l>=m?k[m-1]:[],o=n.validator,p=n.cardinality;b.matches.splice(h++,0,{fn:o?"string"==typeof o?new RegExp(o,f.casing?"i":""):new function(){this.test=o}:new RegExp("."),cardinality:p||1,optionality:b.isOptional,newBlockMarker:i===d||i.def!==(j.definitionSymbol||g),casing:j.casing,def:j.definitionSymbol||g,placeholder:j.placeholder,nativeDef:g}),i=b.matches[h-1]}b.matches.splice(h++,0,{fn:j.validator?"string"==typeof j.validator?new RegExp(j.validator,f.casing?"i":""):new function(){this.test=j.validator}:new RegExp("."),cardinality:j.cardinality,optionality:b.isOptional,newBlockMarker:i===d||i.def!==(j.definitionSymbol||g),casing:j.casing,def:j.definitionSymbol||g,placeholder:j.placeholder,nativeDef:g})}else b.matches.splice(h++,0,{fn:null,cardinality:0,optionality:b.isOptional,newBlockMarker:i===d||i.def!==g&&null!==i.fn,casing:null,def:f.staticDefinitionSymbol||g,placeholder:f.staticDefinitionSymbol!==d?g:d,nativeDef:g}),u=!1}}function i(b){b&&b.matches&&a.each(b.matches,function(a,e){var g=b.matches[a+1];(g===d||g.matches===d||!1===g.isQuantifier)&&e&&e.isGroup&&(e.isGroup=!1,c||(h(e,f.groupmarker.start,0),!0!==e.openGroup&&h(e,f.groupmarker.end))),i(e)})}function j(){if(w.length>0){if(o=w[w.length-1],h(o,m),o.isAlternator){p=w.pop();for(var a=0;a<p.matches.length;a++)p.matches[a].isGroup=!1;w.length>0?(o=w[w.length-1],o.matches.push(p)):v.matches.push(p)}}else h(v,m)}function k(a){a.matches=a.matches.reverse();for(var b in a.matches)if(a.matches.hasOwnProperty(b)){var c=parseInt(b);if(a.matches[b].isQuantifier&&a.matches[c+1]&&a.matches[c+1].isGroup){var e=a.matches[b];a.matches.splice(b,1),a.matches.splice(c+1,0,e)}a.matches[b].matches!==d?a.matches[b]=k(a.matches[b]):a.matches[b]=function(a){return a===f.optionalmarker.start?a=f.optionalmarker.end:a===f.optionalmarker.end?a=f.optionalmarker.start:a===f.groupmarker.start?a=f.groupmarker.end:a===f.groupmarker.end&&(a=f.groupmarker.start),a}(a.matches[b])}return a}var l,m,n,o,p,q,r,s=/(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g,t=/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,u=!1,v=new g,w=[],x=[];for(c&&(f.optionalmarker.start=d,f.optionalmarker.end=d);l=c?t.exec(b):s.exec(b);){if(m=l[0],c)switch(m.charAt(0)){case"?":m="{0,1}";break;case"+":case"*":m="{"+m+"}"}if(u)j();else switch(m.charAt(0)){case f.escapeChar:u=!0,c&&j();break;case f.optionalmarker.end:case f.groupmarker.end:if(n=w.pop(),n.openGroup=!1,n!==d)if(w.length>0){if(o=w[w.length-1],o.matches.push(n),o.isAlternator){p=w.pop();for(var y=0;y<p.matches.length;y++)p.matches[y].isGroup=!1,p.matches[y].alternatorGroup=!1;w.length>0?(o=w[w.length-1],o.matches.push(p)):v.matches.push(p)}}else v.matches.push(n);else j();break;case f.optionalmarker.start:w.push(new g(!1,!0));break;case f.groupmarker.start:w.push(new g(!0));break;case f.quantifiermarker.start:var z=new g(!1,!1,!0);m=m.replace(/[{}]/g,"");var A=m.split(","),B=isNaN(A[0])?A[0]:parseInt(A[0]),C=1===A.length?B:isNaN(A[1])?A[1]:parseInt(A[1]);if("*"!==C&&"+"!==C||(B="*"===C?0:1),z.quantifier={min:B,max:C},w.length>0){var D=w[w.length-1].matches;l=D.pop(),l.isGroup||(r=new g(!0),r.matches.push(l),l=r),D.push(l),D.push(z)}else l=v.matches.pop(),l.isGroup||(c&&null===l.fn&&"."===l.def&&(l.fn=new RegExp(l.def,f.casing?"i":"")),r=new g(!0),r.matches.push(l),l=r),v.matches.push(l),v.matches.push(z);break;case f.alternatormarker:if(w.length>0){o=w[w.length-1];var E=o.matches[o.matches.length-1];q=o.openGroup&&(E.matches===d||!1===E.isGroup&&!1===E.isAlternator)?w.pop():o.matches.pop()}else q=v.matches.pop();if(q.isAlternator)w.push(q);else if(q.alternatorGroup?(p=w.pop(),q.alternatorGroup=!1):p=new g(!1,!1,!1,!0),p.matches.push(q),w.push(p),q.openGroup){q.openGroup=!1;var F=new g(!0);F.alternatorGroup=!0,w.push(F)}break;default:j()}}for(;w.length>0;)n=w.pop(),v.matches.push(n);return v.matches.length>0&&(i(v),x.push(v)),(f.numericInput||f.isRTL)&&k(x[0]),x}},e.extendDefaults=function(b){a.extend(!0,e.prototype.defaults,b)},e.extendDefinitions=function(b){a.extend(!0,e.prototype.definitions,b)},e.extendAliases=function(b){a.extend(!0,e.prototype.aliases,b)},e.format=function(a,b,c){return e(b).format(a,c)}
229,e.unmask=function(a,b){return e(b).unmaskedvalue(a)},e.isValid=function(a,b){return e(b).isValid(a)},e.remove=function(b){a.each(b,function(a,b){b.inputmask&&b.inputmask.remove()})},e.escapeRegex=function(a){var b=["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^"];return a.replace(new RegExp("(\\"+b.join("|\\")+")","gim"),"\\$1")},e.keyCode={ALT:18,BACKSPACE:8,BACKSPACE_SAFARI:127,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91,X:88},e}); 230/*! 231* bindings/inputmask.binding.min.js 232* https://github.com/RobinHerbots/Inputmask 233* Copyright (c) 2010 - 2017 Robin Herbots 234* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 235* Version: 3.3.8 236*/ 237 238!function(a){"function"==typeof define&&define.amd?define(["jquery","../inputmask","../global/document"],a):"object"==typeof exports?module.exports=a(require("jquery"),require("../inputmask"),require("../global/document")):a(jQuery,window.Inputmask,document)}(function(a,b,c){a(c).ajaxComplete(function(c,d,e){-1!==a.inArray("html",e.dataTypes)&&a(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(a,c){void 0===c.inputmask&&b().mask(c)})}).ready(function(){a(".inputmask, [data-inputmask], [data-inputmask-mask], [data-inputmask-alias]").each(function(a,c){void 0===c.inputmask&&b().mask(c)})})}); 239/*! 240* inputmask.extensions.min.js 241* https://github.com/RobinHerbots/Inputmask 242* Copyright (c) 2010 - 2017 Robin Herbots 243* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 244* Version: 3.3.8 245*/ 246 247!function(a){"function"==typeof define&&define.amd?define(["./dependencyLibs/inputmask.dependencyLib","./inputmask"],a):"object"==typeof exports?module.exports=a(require("./dependencyLibs/inputmask.dependencyLib"),require("./inputmask")):a(window.dependencyLib||jQuery,window.Inputmask)}(function(a,b){return b.extendDefinitions({A:{validator:"[A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",cardinality:1,casing:"upper"},"&":{validator:"[0-9A-Za-z\u0410-\u044f\u0401\u0451\xc0-\xff\xb5]",cardinality:1,casing:"upper"},"#":{validator:"[0-9A-Fa-f]",cardinality:1,casing:"upper"}}),b.extendAliases({url:{definitions:{i:{validator:".",cardinality:1}},mask:"(\\http://)|(\\http\\s://)|(ftp://)|(ftp\\s://)i{+}",insertMode:!1,autoUnmask:!1,inputmode:"url"},ip:{mask:"i[i[i]].i[i[i]].i[i[i]].i[i[i]]",definitions:{i:{validator:function(a,b,c,d,e){return c-1>-1&&"."!==b.buffer[c-1]?(a=b.buffer[c-1]+a,a=c-2>
247-1&&"."!==b.buffer[c-2]?b.buffer[c-2]+a:"0"+a):a="00"+a,new RegExp("25[0-5]|2[0-4][0-9]|[01][0-9][0-9]").test(a)},cardinality:1}},onUnMask:function(a,b,c){return a},inputmode:"numeric"},email:{mask:"*{1,64}[.*{1,64}][.*{1,64}][.*{1,63}]@-{1,63}.-{1,63}[.-{1,63}][.-{1,63}]",greedy:!1,onBeforePaste:function(a,b){return a=a.toLowerCase(),a.replace("mailto:","")},definitions:{"*":{validator:"[0-9A-Za-z!#$%&'*+/=?^_`{|}~-]",cardinality:1,casing:"lower"},"-":{validator:"[0-9A-Za-z-]",cardinality:1,casing:"lower"}},onUnMask:function(a,b,c){return a},inputmode:"email"},mac:{mask:"##:##:##:##:##:##"},vin:{mask:"V{13}9{4}",definitions:{V:{validator:"[A-HJ-NPR-Za-hj-npr-z\\d]",cardinality:1,casing:"upper"}},clearIncomplete:!0,autoUnmask:!0}}),b}); 248/*! 249* inputmask.regex.extensions.min.js 250* https://github.com/RobinHerbots/Inputmask 251* Copyright (c) 2010 - 2017 Robin Herbots 252* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 253* Version: 3.3.8 254*/ 255 256!function(a){"function"==typeof define&&define.amd?define(["./dependencyLibs/inputmask.dependencyLib","./inputmask"],a):"object"==typeof exports?module.exports=a(require("./dependencyLibs/inputmask.dependencyLib"),require("./inputmask")):a(window.dependencyLib||jQuery,window.Inputmask)}(function(a,b){return b.extendAliases({Regex:{mask:"r",greedy:!1,repeat:"*",regex:null,regexTokens:null,tokenizer:/\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,quantifierFilter:/[0-9]+[^,]/,isComplete:function(a,b){return new RegExp(b.regex,b.casing?"i":"").test(a.join(""))},definitions:{r:{validator:function(b,c,d,e,f){function g(a,b){this.matches=[],this.isGroup=a||!1,this.isQuantifier=b||!1,this.quantifier={min:1,max:1},this.repeaterPart=void 0}function h(b,c){var d=!1;c&&(l+="(",n++);for(var e=0;e<b.matches.length;e++){var g=b.matches[e];if(!0===g.isGroup)d=h(g,!0);else if(!0===g.isQuantifier){var j=a.inArray(g,b.matches),k=b.matches[j-1],m=l;if(isNaN(g.quantifier.max)){for(;g.repeaterPart&&g.repeaterPart!==l&&g.repeaterPart.length>l.length&&!(d=h(k,!0)););d=d||h(k,!0),d&&(g.repeaterPart=l),l=m+g.quantifier.max}else{for(var o=0,p=g.quantifier.max-1;o<p&&!(d=h(k,!0));o++);l=m+"{"+g.quantifier.min+","+g.quantifier.max+"}"}}else if(void 0!==g.matches)for(var q=0;q<g.length&&!(d=h(g[q],c));q++);else{var r;if("["==g.charAt(0)){r=l,r+=g;for(var s=0;s<n;s++)r+=")";var t=new RegExp("^("+r+")$",f.casing?"i":"");d=t.test(i)}else for(var u=0,v=g.length;u<v;u++)if("\\"!==g.charAt(u)){r=l,r+=g.substr(0,u+1),r=r.replace(/\|$/,"");for(var s=0;s<n;s++)r+=")";var t=new RegExp("^("+r+")$",f.casing?"i":"");if(d=t.test(i))break}l+=g}if(d)break}return c&&(l+=")",n--),d}var i,j,k=c.buffer.slice(),l="",m=!1,n=0;null===f.regexTokens&&function(){var a,b,c=new g,d=[];for(f.regexTokens=[];a=f.tokenizer.exec(f.regex);)switch(b=a[0],b.charAt(0)){case"(":d.push(new g(!0));break;case")":j=d.pop(),d.length>0?d[d.length-1].matches.push(j):c.matches.push(j);break;case"{":case"+":case"*":var e=new g(!1,!0);b=b.replace(/[{}]/g,"");var h=b.split(","),i=isNaN(h[0])?h[0]:parseInt(h[0]),k=1===h.length?i:isNaN(h[1])?h[1]:parseInt(h[1]);if(e.quantifier={min:i,max:k},d.length>0){var l=d[d.length-1].matches;a=l.pop(),a.isGroup||(j=new g(!0),j.matches.push(a),a=j),l.push(a),l.push(e)}else a=c.matches.pop(),a.isGroup||(j=new g(!0),j.matches.push(a),a=j),c.matches.push(a),c.matches.push(e);break;default:d.length>0?d[d.length-1].matches.push(b):c.matches.push(b)}c.matches.length>0&&f.regexTokens.push(c)}(),k.splice(d,0,b),i=k.join("");for(var o=0;o<f.regexTokens.length;o++){var p=f.regexTokens[o];if(m=h(p,p.isGroup))break}return m},cardinality:1}}}}),b}); 257/*! 258* inputmask.numeric.extensions.js 259* https://github.com/RobinHerbots/Inputmask 260* Copyright (c) 2010 - 2017 Robin Herbots 261* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 262* Version: 3.3.8 263*/(function(u){typeof define=="function"&&define.amd?define(["./dependencyLibs/inputmask.dependencyLib","./inputmask"],u):typeof exports=="object"?module.exports=u(require("./dependencyLibs/inputmask.dependencyLib"),require("./inputmask")):u(window.dependencyLib||jQuery,window.Inputmask)})((function(u,l,g){function h(i,r){for(var e="",t=0;t<i.length;t++)l.prototype.definitions[i.charAt(t)]||r.definitions[i.charAt(t)]||r.optionalmarker.start===i.charAt(t)||r.optionalmarker.end===i.charAt(t)||r.quantifiermarker.start===i.charAt(t)||r.quantifiermarker.end===i.charAt(t)||r.groupmarker.start===i.charAt(t)||r.groupmarker.end===i.charAt(t)||r.alternatormarker===i.charAt(t)?e+="\\"+i.charAt(t):e+=i.charAt(t);return e}return l.extendAliases({numeric:{mask:function(i){if(i.repeat!==0&&isNaN(i.integerDigits)&&(i.integerDigits=i.repeat),i.repeat=0,i.groupSeparator===i.radixPoint&&(i.radixPoint==="."?i.groupSeparator=",":i.radixPoint===","?i.groupSeparator=".":i.groupSeparator=""),i.groupSeparator===" "&&(i.skipOptionalPartCharacter=g),i.autoGroup=i.autoGroup&&i.groupSeparator!=="",i.autoGroup&&(typeof i.groupSize=="string"&&isFinite(i.groupSize)&&(i.groupSize=parseInt(i.groupSize)),isFinite(i.integerDigits))){var r=Math.floor(i.integerDigits/i.groupSize),e=i.integerDigits%i.groupSize;i.integerDigits=parseInt(i.integerDigits)+(e===0?r-1:r),i.integerDigits<1&&(i.integerDigits="*")}i.placeholder.length>1&&(i.placeholder=i.placeholder.charAt(0)),i.positionCaretOnClick==="radixFocus"&&i.placeholder===""&&i.integerOptional===!1&&(i.positionCaretOnClick="lvp"),i.definitions[";"]=i.definitions["~"],i.definitions[";
263"].definitionSymbol="~",i.numericInput===!0&&(i.positionCaretOnClick=i.positionCaretOnClick==="radixFocus"?"lvp":i.positionCaretOnClick,i.digitsOptional=!1,isNaN(i.digits)&&(i.digits=2),i.decimalProtect=!1);var t="[+]";if(t+=h(i.prefix,i),i.integerOptional===!0?t+="~{1,"+i.integerDigits+"}":t+="~{"+i.integerDigits+"}",i.digits!==g){i.radixPointDefinitionSymbol=i.decimalProtect?":":i.radixPoint;var o=i.digits.toString().split(",");isFinite(o[0]&&o[1]&&isFinite(o[1]))?t+=i.radixPointDefinitionSymbol+";{"+i.digits+"}":(isNaN(i.digits)||parseInt(i.digits)>0)&&(i.digitsOptional?t+="["+i.radixPointDefinitionSymbol+";{1,"+i.digits+"}]":t+=i.radixPointDefinitionSymbol+";{"+i.digits+"}")}return t+=h(i.suffix,i),t+="[-]",i.greedy=!1,t},placeholder:"",greedy:!1,digits:"*",digitsOptional:!0,enforceDigitsOnBlur:!1,radixPoint:".",positionCaretOnClick:"radixFocus",groupSize:3,groupSeparator:"",autoGroup:!1,allowMinus:!0,negationSymbol:{front:"-",back:""},integerDigits:"+",integerOptional:!0,prefix:"",suffix:"",rightAlign:!0,decimalProtect:!0,min:null,max:null,step:1,insertMode:!0,autoUnmask:!1,unmaskAsNumber:!1,inputmode:"numeric",preValidation:function(i,r,e,t,o){if(e==="-"||e===o.negationSymbol.front)return o.allowMinus===!0&&(o.isNegative=o.isNegative===g||!o.isNegative,i.join("")===""||{caret:r,dopost:!0});if(t===!1&&e===o.radixPoint&&o.digits!==g&&(isNaN(o.digits)||parseInt(o.digits)>0)){var a=u.inArray(o.radixPoint,i);if(a!==-1)return o.numericInput===!0?r===a:{caret:a+1}}return!0},postValidation:function(i,r,e){var t=e.suffix.split(""),o=e.prefix.split("");if(r.pos===g&&r.caret!==g&&r.dopost!==!0)return r;var a=r.caret!==g?r.caret:r.pos,s=i.slice();e.numericInput&&(a=s.length-a-1,s=s.reverse());var p=s[a];if(p===e.groupSeparator&&(p=s[a+=1]),a===s.length-e.suffix.length-1&&p===e.radixPoint)return r;p!==g&&p!==e.radixPoint&&p!==e.negationSymbol.front&&p!==e.negationSymbol.back&&(s[a]="?",e.prefix.length>0&&a>=(e.isNegative===!1?1:0)&&a<e.prefix.length-1+(e.isNegative===!1?1:0)?o[a-(e.isNegative===!1?1:0)]="?":e.suffix.length>0&&a>=s.length-e.suffix.length-(e.isNegative===!1?1:0)&&(t[a-(s.length-e.suffix.length-(e.isNegative===!1?1:0))]="?")),o=o.join(""),t=t.join("");var n=s.join("").replace(o,"");if(n=(n=(n=(n=n.replace(t,"")).replace(new RegExp(l.escapeRegex(e.groupSeparator),"g"),"")).replace(new RegExp("[-"+l.escapeRegex(e.negationSymbol.front)+"]","g"),"")).replace(new RegExp(l.escapeRegex(e.negationSymbol.back)+"$"),""),isNaN(e.placeholder)&&(n=n.replace(new RegExp(l.escapeRegex(e.placeholder),"g"),"")),n.length>1&&n.indexOf(e.radixPoint)!==1&&(p==="0"&&(n=n.replace(/^\?/g,"")),n=n.replace(/^0/g,"")),n.charAt(0)===e.radixPoint&&e.radixPoint!==""&&e.numericInput!==!0&&(n="0"+n),n!==""){if(n=n.split(""),(!e.digitsOptional||e.enforceDigitsOnBlur&&r.event==="blur")&&isFinite(e.digits)){var c=u.inArray(e.radixPoint,n),f=u.inArray(e.radixPoint,s);c===-1&&(n.push(e.radixPoint),c=n.length-1);for(var d=1;d<=e.digits;d++)e.digitsOptional&&(!e.enforceDigitsOnBlur||r.event!=="blur")||n[c+d]!==g&&n[c+d]!==e.placeholder.charAt(0)?f!==-1&&s[f+d]!==g&&(n[c+d]=n[c+d]||s[f+d]):n[c+d]=r.placeholder||e.placeholder.charAt(0)}if(e.autoGroup!==!0||e.groupSeparator===""||p===e.radixPoint&&r.pos===g&&!r.dopost)n=n.join("");else{var b=n[n.length-1]===e.radixPoint&&r.c===e.radixPoint;n=l((function(y,x){var m="";if(m+="("+x.groupSeparator+"*{"+x.groupSize+"}){*}",x.radixPoint!==""){var S=y.join("").split(x.radixPoint);S[1]&&(m+=x.radixPoint+"*{"+S[1].match(/^\d*\??\d*/)[0].length+"}")}return m})(n,e),{numericInput:!0,jitMasking:!0,definitions:{"*":{validator:"[0-9?]",cardinality:1}}}).format(n.join("")),b&&(n+=e.radixPoint),n.charAt(0)===e.groupSeparator&&n.substr(1)}}if(e.isNegative&&r.event==="blur"&&(e.isNegative=n!=="0"),n=o+n,n+=t,e.isNegative&&(n=e.negationSymbol.front+n,n+=e.negationSymbol.back),n=n.split(""),p!==g){if(p!==e.radixPoint&&p!==e.negationSymbol.front&&p!==e.negationSymbol.back)(a=u.inArray("?",n))>-1?n[a]=p:a=r.caret||0;else if(p===e.radixPoint||p===e.negationSymbol.front||p===e.negationSymbol.back){var v=u.inArray(p,n);v!==-1&&(a=v)}}e.numericInput&&(a=n.length-a-1,n=n.reverse());var P={caret:p===g||r.pos!==g?a+(e.numericInput?-1:1):a,buffer:n,refreshFromBuffer:r.dopost||i.join("")!==n.join("")};return P.refreshFromBuffer?P:r},onBeforeWrite:function(i,r,e,t){if(i)switch(i.type){case"keydown":return t.postValidation(r,{caret:e,dopost:!0},t);case"blur":case"checkval":var o;if((function(a){a.parseMinMaxOptions===g&&(a.min!==null&&(a.min=a.min.toString().replace(new RegExp(l.escapeRegex(a.groupSeparator),"g"),""),a.radixPoint===","&&(a.min=a.min.replace(a.radixPoint,".")),a.min=isFinite(a.min)?parseFloat(a.min):NaN,isNaN(a.min)&&(a.min=Number.MIN_VALUE)),a.max!==null&&(a.max=a.max.toString().replace(new RegExp(l.escapeRegex(a.groupSeparator),"g"),""),a.radixPoint===","&&(a.max=a.max.replace(a.radixPoint,".")),a.max=isFinite(a.max)?parseFloat(a.max):NaN,isNaN(a.max)&&(a.max=Number.MAX_VALUE)),a.parseMinMaxOptions="done")})(t),t.min!==null||t.max!==null){if(o=t.onUnMask(r.join(""),g,u.extend({},t,{unmaskAsNumber:!0})),t.min!==null&&o<t.min)return t.isNegative=t.min<0,t.postValidation(t.min.toString().replace(".",t.radixPoint).split(""),{caret:e,dopost:!0,placeholder:"0"},t);if(t.max!==null&&o>t.max)return t.isNegative=t.max<0,t.postValidation(t.max.toString().replace(".",t.radixPoint).split(""),{caret:e,dopost:!0,placeholder:"0"},t)}return t.postValidation(r,{caret:e,placeholder:"0",event:"blur"},t);case"_checkval":return{caret:e}}},regex:{integerPart:function(i,r){return r?new RegExp("["+l.escapeRegex(i.negationSymbol.front)+"+]?"):new RegExp("["+l.escapeRegex(i.negationSymbol.front)+"+]?\\d+")},integerNPart:function(i){return new RegExp("[\\d"+l.escapeRegex(i.groupSeparator)+l.escapeRegex(i.placeholder.charAt(0))+"]+")}},definitions:{"~":{validator:function(i,r,e,t,o,a){var s=t?new RegExp("[0-9"+l.escapeRegex(o.groupSeparator)+"]").test(i):new RegExp("[0-9]").test(i);if(s===!0){if(o.numericInput!==!0&&r.validPositions[e]!==g&&r.validPositions[e].match.def==="~"&&!a){var p=r.buffer.join(""),n=(p=(p=p.replace(new RegExp("[-"+l.escapeRegex(o.negationSymbol.front)+"]","g"),"")).replace(new RegExp(l.escapeRegex(o.negationSymbol.back)+"$"),"")).split(o.radixPoint);n.length>1&&(n[1]=n[1].replace(/0/g,o.placeholder.charAt(0))),n[0]==="0"&&(n[0]=n[0].replace(/0/g,o.placeholder.charAt(0))),p=n[0]+o.radixPoint+n[1]||"";var c=r._buffer.join("");for(p===o.radixPoint&&(p=c);p.match(l.escapeRegex(c)+"$")===null;)c=c.slice(1);s=(p=(p=p.replace(c,"")).split(""))[e]===g?{pos:e,remove:e}:{pos:e}}}else t||i!==o.radixPoint||r.validPositions[e-1]!==g||(r.buffer[e]="0",s={pos:e+1});return s},cardinality:1}
263,"+":{validator:function(i,r,e,t,o){return o.allowMinus&&(i==="-"||i===o.negationSymbol.front)},cardinality:1,placeholder:""},"-":{validator:function(i,r,e,t,o){return o.allowMinus&&i===o.negationSymbol.back},cardinality:1,placeholder:""},":":{validator:function(i,r,e,t,o){var a="["+l.escapeRegex(o.radixPoint)+"]",s=new RegExp(a).test(i);return s&&r.validPositions[e]&&r.validPositions[e].match.placeholder===o.radixPoint&&(s={caret:e+1}),s},cardinality:1,placeholder:function(i){return i.radixPoint}}},onUnMask:function(i,r,e){if(r===""&&e.nullable===!0)return r;var t=i.replace(e.prefix,"");return t=(t=t.replace(e.suffix,"")).replace(new RegExp(l.escapeRegex(e.groupSeparator),"g"),""),e.placeholder.charAt(0)!==""&&(t=t.replace(new RegExp(e.placeholder.charAt(0),"g"),"0")),e.unmaskAsNumber?(e.radixPoint!==""&&t.indexOf(e.radixPoint)!==-1&&(t=t.replace(l.escapeRegex.call(this,e.radixPoint),".")),t=(t=t.replace(new RegExp("^"+l.escapeRegex(e.negationSymbol.front)),"-")).replace(new RegExp(l.escapeRegex(e.negationSymbol.back)+"$"),""),Number(t)):t},isComplete:function(i,r){var e=i.join("");if(i.slice().join("")!==e)return!1;var t=e.replace(r.prefix,"");return t=(t=t.replace(r.suffix,"")).replace(new RegExp(l.escapeRegex(r.groupSeparator),"g"),""),r.radixPoint===","&&(t=t.replace(l.escapeRegex(r.radixPoint),".")),isFinite(t)},onBeforeMask:function(i,r){if(r.isNegative=g,i=i.toString().charAt(i.length-1)===r.radixPoint?i.toString().substr(0,i.length-1):i.toString(),r.radixPoint!==""&&isFinite(i)){var e=i.split("."),t=r.groupSeparator!==""?parseInt(r.groupSize):0;e.length===2&&(e[0].length>t||e[1].length>t||e[0].length<=t&&e[1].length<t)&&(i=i.replace(".",r.radixPoint))}var o=i.match(/,/g),a=i.match(/\./g);if(a&&o?a.length>o.length?i=(i=i.replace(/\./g,"")).replace(",",r.radixPoint):o.length>a.length?i=(i=i.replace(/,/g,"")).replace(".",r.radixPoint):i=i.indexOf(".")<i.indexOf(",")?i.replace(/\./g,""):i.replace(/,/g,""):i=i.replace(new RegExp(l.escapeRegex(r.groupSeparator),"g"),""),r.digits===0&&(i.indexOf(".")!==-1?i=i.substring(0,i.indexOf(".")):i.indexOf(",")!==-1&&(i=i.substring(0,i.indexOf(",")))),r.radixPoint!==""&&isFinite(r.digits)&&i.indexOf(r.radixPoint)!==-1){var s=i.split(r.radixPoint)[1].match(new RegExp("\\d*"))[0];if(parseInt(r.digits)<s.toString().length){var p=Math.pow(10,parseInt(r.digits));i=i.replace(l.escapeRegex(r.radixPoint),"."),i=(i=Math.round(parseFloat(i)*p)/p).toString().replace(".",r.radixPoint)}}return i},canClearPosition:function(i,r,e,t,o){var a=i.validPositions[r],s=a.input!==o.radixPoint||i.validPositions[r].match.fn!==null&&o.decimalProtect===!1||a.input===o.radixPoint&&i.validPositions[r+1]&&i.validPositions[r+1].match.fn===null||isFinite(a.input)||r===e||a.input===o.groupSeparator||a.input===o.negationSymbol.front||a.input===o.negationSymbol.back;return!s||a.match.nativeDef!=="+"&&a.match.nativeDef!=="-"||(o.isNegative=!1),s},onKeyDown:function(i,r,e,t){var o=u(this);if(i.ctrlKey)switch(i.keyCode){case l.keyCode.UP:o.val(parseFloat(this.inputmask.unmaskedvalue())+parseInt(t.step)),o.trigger("setvalue");break;case l.keyCode.DOWN:o.val(parseFloat(this.inputmask.unmaskedvalue())-parseInt(t.step)),o.trigger("setvalue")}}},currency:{prefix:"$ ",groupSeparator:",",alias:"numeric",placeholder:"0",autoGroup:!0,digits:2,digitsOptional:!1,clearMaskOnLostFocus:!1},decimal:{alias:"numeric"},integer:{alias:"numeric",digits:0,radixPoint:""},percentage:{alias:"numeric",digits:2,digitsOptional:!0,radixPoint:".",placeholder:"0",autoGroup:!1,min:0,max:100,suffix:" %",allowMinus:!1}}),l})); 264 265/*! 266* jquery.inputmask.min.js 267* https://github.com/RobinHerbots/Inputmask 268* Copyright (c) 2010 - 2017 Robin Herbots 269* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php) 270* Version: 3.3.8 271*/ 272 273!function(a){"function"==typeof define&&define.amd?define(["jquery","./inputmask"],a):"object"==typeof exports?module.exports=a(require("jquery"),require("./inputmask")):a(jQuery,window.Inputmask)}(function(a,b){return void 0===a.fn.inputmask&&(a.fn.inputmask=function(c,d){var e,f=this[0];if(void 0===d&&(d={}),"string"==typeof c)switch(c){case"unmaskedvalue":return f&&f.inputmask?f.inputmask.unmaskedvalue():a(f).val();case"remove":return this.each(function(){this.inputmask&&this.inputmask.remove()});case"getemptymask":return f&&f.inputmask?f.inputmask.getemptymask():"";case"hasMaskedValue":return!(!f||!f.inputmask)&&f.inputmask.hasMaskedValue();case"isComplete":return!f||!f.inputmask||f.inputmask.isComplete();case"getmetadata":return f&&f.inputmask?f.inputmask.getmetadata():void 0;case"setvalue":a(f).val(d),f&&void 0===f.inputmask&&a(f).triggerHandler("setvalue");break;case"option":if("string"!=typeof d)return this.each(function(){if(void 0!==this.inputmask)return this.inputmask.option(d)});if(f&&void 0!==f.inputmask)return f.inputmask.option(d);break;default:return d.alias=c,e=new b(d),this.each(function(){e.mask(this)})}else{if("object"==typeof c)return e=new b(c),void 0===c.mask&&void 0===c.alias?this.each(function(){if(void 0!==this.inputmask)return this.inputmask.option(c);e.mask(this)}):this.each(function(){e.mask(this)});if(void 0===c)return this.each(function(){e=new b(d),e.mask(this)})}}),a.fn.inputmask}); 274/*! 275 * jquery-timepicker v1.11.13 - A jQuery timepicker plugin inspired by Google Calendar. It supports both mouse and keyboard navigation. 276 * Copyright (c) 2017 Jon Thornton - http://jonthornton.github.com/jquery-timepicker/ 277 * License: MIT 278 */ 279 280!function(a){"object"==typeof exports&&exports&&"object"==typeof module&&module&&module.exports===exports?a(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(a){var b=a[0];return b.offsetWidth>0&&b.offsetHeight>0}function c(b){if(b.minTime&&(b.minTime=t(b.minTime)),b.maxTime&&(b.maxTime=t(b.maxTime)),b.durationTime&&"function"!=typeof b.durationTime&&(b.durationTime=t(b.durationTime)),"now"==b.scrollDefault)b.scrollDefault=function(){return b.roundingFunction(t(new Date),b)};else if(b.scrollDefault&&"function"!=typeof b.scrollDefault){var c=b.scrollDefault;b.scrollDefault=function(){return b.roundingFunction(t(c),b)}}
280else b.minTime&&(b.scrollDefault=function(){return b.roundingFunction(b.minTime,b)});if("string"===a.type(b.timeFormat)&&b.timeFormat.match(/[gh]/)&&(b._twelveHourTime=!0),b.showOnFocus===!1&&b.showOn.indexOf("focus")!=-1&&b.showOn.splice(b.showOn.indexOf("focus"),1),b.disableTimeRanges.length>0){for(var d in b.disableTimeRanges)b.disableTimeRanges[d]=[t(b.disableTimeRanges[d][0]),t(b.disableTimeRanges[d][1])];b.disableTimeRanges=b.disableTimeRanges.sort(function(a,b){return a[0]-b[0]});for(var d=b.disableTimeRanges.length-1;d>0;d--)b.disableTimeRanges[d][0]<=b.disableTimeRanges[d-1][1]&&(b.disableTimeRanges[d-1]=[Math.min(b.disableTimeRanges[d][0],b.disableTimeRanges[d-1][0]),Math.max(b.disableTimeRanges[d][1],b.disableTimeRanges[d-1][1])],b.disableTimeRanges.splice(d,1))}return b}function d(b){var c=b.data("timepicker-settings"),d=b.data("timepicker-list");if(d&&d.length&&(d.remove(),b.data("timepicker-list",!1)),c.useSelect){d=a("<select />",{"class":"ui-timepicker-select"});var g=d}else{d=a("<ul />",{"class":"ui-timepicker-list"});var g=a("<div />",{"class":"ui-timepicker-wrapper",tabindex:-1});g.css({display:"none",position:"absolute"}).append(d)}if(c.noneOption)if(c.noneOption===!0&&(c.noneOption=c.useSelect?"Time...":"None"),a.isArray(c.noneOption)){for(var i in c.noneOption)if(parseInt(i,10)==i){var k=e(c.noneOption[i],c.useSelect);d.append(k)}}else{var k=e(c.noneOption,c.useSelect);d.append(k)}if(c.className&&g.addClass(c.className),(null!==c.minTime||null!==c.durationTime)&&c.showDuration){"function"==typeof c.step?"function":c.step;g.addClass("ui-timepicker-with-duration"),g.addClass("ui-timepicker-step-"+c.step)}var l=c.minTime;"function"==typeof c.durationTime?l=t(c.durationTime()):null!==c.durationTime&&(l=c.durationTime);var n=null!==c.minTime?c.minTime:0,o=null!==c.maxTime?c.maxTime:n+v-1;o<n&&(o+=v),o===v-1&&"string"===a.type(c.timeFormat)&&c.show2400&&(o=v);var p=c.disableTimeRanges,w=0,x=p.length,z=c.step;"function"!=typeof z&&(z=function(){return c.step});for(var i=n,A=0;i<=o;A++,i+=60*z(A)){var B=i,C=s(B,c);if(c.useSelect){var D=a("<option />",{value:C});D.text(C)}else{var D=a("<li />");D.addClass(B%v<v/2?"ui-timepicker-am":"ui-timepicker-pm"),D.data("time",u(B,c)),D.text(C)}if((null!==c.minTime||null!==c.durationTime)&&c.showDuration){var E=r(i-l,c.step);if(c.useSelect)D.text(D.text()+" ("+E+")");else{var F=a("<span />",{"class":"ui-timepicker-duration"});F.text(" ("+E+")"),D.append(F)}}w<x&&(B>=p[w][1]&&(w+=1),p[w]&&B>=p[w][0]&&B<p[w][1]&&(c.useSelect?D.prop("disabled",!0):D.addClass("ui-timepicker-disabled"))),d.append(D)}if(g.data("timepicker-input",b),b.data("timepicker-list",g),c.useSelect)b.val()&&d.val(f(t(b.val()),c)),d.on("focus",function(){a(this).data("timepicker-input").trigger("showTimepicker")}),d.on("blur",function(){a(this).data("timepicker-input").trigger("hideTimepicker")}),d.on("change",function(){m(b,a(this).val(),"select")}),m(b,d.val(),"initial"),b.hide().after(d);else{var G=c.appendTo;"string"==typeof G?G=a(G):"function"==typeof G&&(G=G(b)),G.append(g),j(b,d),d.on("mousedown click","li",function(c){b.off("focus.timepicker"),b.on("focus.timepicker-ie-hack",function(){b.off("focus.timepicker-ie-hack"),b.on("focus.timepicker",y.show)}),h(b)||b[0].focus(),d.find("li").removeClass("ui-timepicker-selected"),a(this).addClass("ui-timepicker-selected"),q(b)&&(b.trigger("hideTimepicker"),d.on("mouseup.timepicker click.timepicker","li",function(a){d.off("mouseup.timepicker click.timepicker"),g.hide()}))})}}function e(b,c){var d,e,f;return"object"==typeof b?(d=b.label,e=b.className,f=b.value):"string"==typeof b?(d=b,f=""):a.error("Invalid noneOption value"),c?a("<option />",{value:f,"class":e,text:d}):a("<li />",{"class":e,text:d}).data("time",String(f))}function f(a,b){if(a=b.roundingFunction(a,b),null!==a)return s(a,b)}function g(b){if(b.target!=window){var c=a(b.target);c.closest(".ui-timepicker-input").length||c.closest(".ui-timepicker-wrapper").length||(y.hide(),a(document).unbind(".ui-timepicker"),a(window).unbind(".ui-timepicker"))}}function h(a){var b=a.data("timepicker-settings");return(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&b.disableTouchKeyboard}function i(b,c,d){if(!d&&0!==d)return!1;var e=b.data("timepicker-settings"),f=!1,d=e.roundingFunction(d,e);return c.find("li").each(function(b,c){var e=a(c);if("number"==typeof e.data("time"))return e.data("time")==d?(f=e,!1):void 0}),f}function j(a,b){b.find("li").removeClass("ui-timepicker-selected");var c=a.data("timepicker-settings"),d=t(l(a),c);if(null!==d){var e=i(a,b,d);if(e){var f=e.offset().top-b.offset().top;(f+e.outerHeight()>b.outerHeight()||f<0)&&b.scrollTop(b.scrollTop()+e.position().top-e.outerHeight()),(c.forceRoundTime||e.data("time")===d)&&e.addClass("ui-timepicker-selected")}}}function k(b,c){if("timepicker"!=c){var d=a(this);if(""===this.value)return void m(d,null,c);if(!d.is(":focus")||b&&"change"==b.type){var e=d.data("timepicker-settings"),f=t(this.value,e);if(null===f)return void d.trigger("timeFormatError");var g=!1;if(null!==e.minTime&&null!==e.maxTime&&(f<e.minTime||f>e.maxTime)&&(g=!0),a.each(e.disableTimeRanges,function(){if(f>=this[0]&&f<this[1])return g=!0,!1}),e.forceRoundTime){var h=e.roundingFunction(f,e);h!=f&&(f=h,c=null)}var i=s(f,e);g?(m(d,i,"error")||b&&"change"==b.type)&&d.trigger("timeRangeError"):m(d,i,c)}}}function l(a){return a.is("input")?a.val():a.data("ui-timepicker-value")}function m(a,b,c){if(a.is("input")){a.val(b);var d=a.data("timepicker-settings");d.useSelect&&"select"!=c&&a.data("timepicker-list").val(f(t(b),d))}return a.data("ui-timepicker-value")!=b?(a.data("ui-timepicker-value",b),"select"==c?a.trigger("selectTime").trigger("changeTime").trigger("change","timepicker"):["error","initial"].indexOf(c)==-1&&a.trigger("changeTime"),!0):(["error","initial"].indexOf(c)==-1&&a.trigger("selectTime"),!1)}function n(a){switch(a.keyCode){case 13:case 9:return;default:a.preventDefault()}}function o(c){var d=a(this),e=d.data("timepicker-list");if(!e||!b(e)){if(40!=c.keyCode)return!0;
280y.show.call(d.get(0)),e=d.data("timepicker-list"),h(d)||d.focus()}switch(c.keyCode){case 13:return q(d)&&(k.call(d.get(0),{type:"change"}),y.hide.apply(this)),c.preventDefault(),!1;case 38:var f=e.find(".ui-timepicker-selected");return f.length?f.is(":first-child")||(f.removeClass("ui-timepicker-selected"),f.prev().addClass("ui-timepicker-selected"),f.prev().position().top<f.outerHeight()&&e.scrollTop(e.scrollTop()-f.outerHeight())):(e.find("li").each(function(b,c){if(a(c).position().top>0)return f=a(c),!1}),f.addClass("ui-timepicker-selected")),!1;case 40:return f=e.find(".ui-timepicker-selected"),0===f.length?(e.find("li").each(function(b,c){if(a(c).position().top>0)return f=a(c),!1}),f.addClass("ui-timepicker-selected")):f.is(":last-child")||(f.removeClass("ui-timepicker-selected"),f.next().addClass("ui-timepicker-selected"),f.next().position().top+2*f.outerHeight()>e.outerHeight()&&e.scrollTop(e.scrollTop()+f.outerHeight())),!1;case 27:e.find("li").removeClass("ui-timepicker-selected"),y.hide();break;case 9:y.hide();break;default:return!0}}function p(c){var d=a(this),e=d.data("timepicker-list"),f=d.data("timepicker-settings");if(!e||!b(e)||f.disableTextInput)return!0;if("paste"===c.type||"cut"===c.type)return void setTimeout(function(){f.typeaheadHighlight?j(d,e):e.hide()},0);switch(c.keyCode){case 96:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 77:case 80:case 186:case 8:case 46:f.typeaheadHighlight?j(d,e):e.hide()}}function q(a){var b=a.data("timepicker-settings"),c=a.data("timepicker-list"),d=null,e=c.find(".ui-timepicker-selected");return!e.hasClass("ui-timepicker-disabled")&&(e.length&&(d=e.data("time")),null!==d&&("string"!=typeof d&&(d=s(d,b)),m(a,d,"select")),!0)}function r(a,b){a=Math.abs(a);var c,d,e=Math.round(a/60),f=[];return e<60?f=[e,w.mins]:(c=Math.floor(e/60),d=e%60,30==b&&30==d&&(c+=w.decimal+5),f.push(c),f.push(1==c?w.hr:w.hrs),30!=b&&d&&(f.push(d),f.push(w.mins))),f.join(" ")}function s(b,c){if("number"!=typeof b)return null;var d=parseInt(b%60),e=parseInt(b/60%60),f=parseInt(b/3600%24),g=new Date(1970,0,2,f,e,d,0);if(isNaN(g.getTime()))return null;if("function"===a.type(c.timeFormat))return c.timeFormat(g);for(var h,i,j="",k=0;k<c.timeFormat.length;k++)switch(i=c.timeFormat.charAt(k)){case"a":j+=g.getHours()>11?w.pm:w.am;break;case"A":j+=g.getHours()>11?w.PM:w.AM;break;case"g":h=g.getHours()%12,j+=0===h?"12":h;break;case"G":h=g.getHours(),b===v&&(h=c.show2400?24:0),j+=h;break;case"h":h=g.getHours()%12,0!==h&&h<10&&(h="0"+h),j+=0===h?"12":h;break;case"H":h=g.getHours(),b===v&&(h=c.show2400?24:0),j+=h>9?h:"0"+h;break;case"i":var e=g.getMinutes();j+=e>9?e:"0"+e;break;case"s":d=g.getSeconds(),j+=d>9?d:"0"+d;break;case"\\":k++,j+=c.timeFormat.charAt(k);break;default:j+=i}return j}function t(a,b){if(""===a||null===a)return null;if("object"==typeof a)return 3600*a.getHours()+60*a.getMinutes()+a.getSeconds();if("string"!=typeof a)return a;a=a.toLowerCase().replace(/[\s\.]/g,""),"a"!=a.slice(-1)&&"p"!=a.slice(-1)||(a+="m");var c="("+w.am.replace(".","")+"|"+w.pm.replace(".","")+"|"+w.AM.replace(".","")+"|"+w.PM.replace(".","")+")?",d=new RegExp("^"+c+"([0-9]?[0-9])\\W?([0-5][0-9])?\\W?([0-5][0-9])?"+c+"$"),e=a.match(d);if(!e)return null;var f=parseInt(1*e[2],10),g=e[1]||e[5],h=f,i=1*e[3]||0,j=1*e[4]||0;if(f<=12&&g){var k=g==w.pm||g==w.PM;h=12==f?k?12:0:f+(k?12:0)}else if(b){var l=3600*f+60*i+j;if(l>=v+(b.show2400?1:0)){if(b.wrapHours===!1)return null;h=f%24}}var m=3600*h+60*i+j;if(f<12&&!g&&b&&b._twelveHourTime&&b.scrollDefault){var n=m-b.scrollDefault();n<0&&n>=v/-2&&(m=(m+v/2)%v)}return m}function u(a,b){return a==v&&b.show2400?a:a%v}var v=86400,w={am:"am",pm:"pm",AM:"AM",PM:"PM",decimal:".",mins:"mins",hr:"hr",hrs:"hrs"},x={appendTo:"body",className:null,closeOnWindowScroll:!1,disableTextInput:!1,disableTimeRanges:[],disableTouchKeyboard:!1,durationTime:null,forceRoundTime:!1,maxTime:null,minTime:null,noneOption:!1,orientation:"l",roundingFunction:function(a,b){if(null===a)return null;if("number"!=typeof b.step)return a;var c=a%(60*b.step),d=b.minTime||0;return c-=d%(60*b.step),c>=30*b.step?a+=60*b.step-c:a-=c,u(a,b)},scrollDefault:null,selectOnBlur:!1,show2400:!1,showDuration:!1,showOn:["click","focus"],showOnFocus:!0,step:30,stopScrollPropagation:!1,timeFormat:"g:ia",typeaheadHighlight:!0,useSelect:!1,wrapHours:!0},y={init:function(b){return this.each(function(){var e=a(this),f=[];for(var g in x)e.data(g)&&(f[g]=e.data(g));var h=a.extend({},x,b,f);
280if(h.lang&&(w=a.extend(w,h.lang)),h=c(h),e.data("timepicker-settings",h),e.addClass("ui-timepicker-input"),h.useSelect)d(e);else{if(e.prop("autocomplete","off"),h.showOn)for(var i in h.showOn)e.on(h.showOn[i]+".timepicker",y.show);e.on("change.timepicker",k),e.on("keydown.timepicker",o),e.on("keyup.timepicker",p),h.disableTextInput&&e.on("keydown.timepicker",n),e.on("cut.timepicker",p),e.on("paste.timepicker",p),k.call(e.get(0),null,"initial")}})},show:function(c){var e=a(this),f=e.data("timepicker-settings");if(c&&c.preventDefault(),f.useSelect)return void e.data("timepicker-list").focus();h(e)&&e.blur();var k=e.data("timepicker-list");if(!e.prop("readonly")&&(k&&0!==k.length&&"function"!=typeof f.durationTime||(d(e),k=e.data("timepicker-list")),!b(k))){e.data("ui-timepicker-value",e.val()),j(e,k),y.hide(),k.show();var m={};f.orientation.match(/r/)?m.left=e.offset().left+e.outerWidth()-k.outerWidth()+parseInt(k.css("marginLeft").replace("px",""),10):m.left=e.offset().left+parseInt(k.css("marginLeft").replace("px",""),10);var n;n=f.orientation.match(/t/)?"t":f.orientation.match(/b/)?"b":e.offset().top+e.outerHeight(!0)+k.outerHeight()>a(window).height()+a(window).scrollTop()?"t":"b","t"==n?(k.addClass("ui-timepicker-positioned-top"),m.top=e.offset().top-k.outerHeight()+parseInt(k.css("marginTop").replace("px",""),10)):(k.removeClass("ui-timepicker-positioned-top"),m.top=e.offset().top+e.outerHeight()+parseInt(k.css("marginTop").replace("px",""),10)),k.offset(m);var o=k.find(".ui-timepicker-selected");if(!o.length){var p=t(l(e));null!==p?o=i(e,k,p):f.scrollDefault&&(o=i(e,k,f.scrollDefault()))}if(o.length&&!o.hasClass("ui-timepicker-disabled")||(o=k.find("li:not(.ui-timepicker-disabled):first")),o&&o.length){var q=k.scrollTop()+o.position().top-o.outerHeight();k.scrollTop(q)}else k.scrollTop(0);return f.stopScrollPropagation&&a(document).on("wheel.ui-timepicker",".ui-timepicker-wrapper",function(b){b.preventDefault();var c=a(this).scrollTop();a(this).scrollTop(c+b.originalEvent.deltaY)}),a(document).on("touchstart.ui-timepicker mousedown.ui-timepicker",g),a(window).on("resize.ui-timepicker",g),f.closeOnWindowScroll&&a(document).on("scroll.ui-timepicker",g),e.trigger("showTimepicker"),this}},hide:function(c){var d=a(this),e=d.data("timepicker-settings");return e&&e.useSelect&&d.blur(),a(".ui-timepicker-wrapper").each(function(){var c=a(this);if(b(c)){var d=c.data("timepicker-input"),e=d.data("timepicker-settings");e&&e.selectOnBlur&&q(d),c.hide(),d.trigger("hideTimepicker")}}),this},option:function(b,e){return"string"==typeof b&&"undefined"==typeof e?a(this).data("timepicker-settings")[b]:this.each(function(){var f=a(this),g=f.data("timepicker-settings"),h=f.data("timepicker-list");"object"==typeof b?g=a.extend(g,b):"string"==typeof b&&(g[b]=e),g=c(g),f.data("timepicker-settings",g),k.call(f.get(0),{type:"change"},"initial"),h&&(h.remove(),f.data("timepicker-list",!1)),g.useSelect&&d(f)})},getSecondsFromMidnight:function(){return t(l(this))},getTime:function(a){var b=this,c=l(b);if(!c)return null;var d=t(c);if(null===d)return null;a||(a=new Date);var e=new Date(a);return e.setHours(d/3600),e.setMinutes(d%3600/60),e.setSeconds(d%60),e.setMilliseconds(0),e},isVisible:function(){var a=this,c=a.data("timepicker-list");return!(!c||!b(c))},setTime:function(a){var b=this,c=b.data("timepicker-settings");if(c.forceRoundTime)var d=f(t(a),c);else var d=s(t(a),c);return a&&null===d&&c.noneOption&&(d=a),m(b,d,"initial"),k.call(b.get(0),{type:"change"},"initial"),b.data("timepicker-list")&&j(b,b.data("timepicker-list")),this},remove:function(){var a=this;if(a.hasClass("ui-timepicker-input")){var b=a.data("timepicker-settings");return a.removeAttr("autocomplete","off"),a.removeClass("ui-timepicker-input"),a.removeData("timepicker-settings"),a.off(".timepicker"),a.data("timepicker-list")&&a.data("timepicker-list").remove(),b.useSelect&&a.show(),a.removeData("timepicker-list"),this}}};a.fn.timepicker=function(b){return this.length?y[b]?this.hasClass("ui-timepicker-input")?y[b].apply(this,Array.prototype.slice.call(arguments,1)):this:"object"!=typeof b&&b?void a.error("Method "+b+" does not exist on jQuery.timepicker"):y.init.apply(this,arguments):this}}); 281 282/*! 283 * Masonry PACKAGED v4.2.0 284 * Cascading grid layout library 285 * http://masonry.desandro.com 286 * MIT License 287 * by David DeSandro 288 */(function(v,f){typeof define=="function"&&define.amd?define("jquery-bridget/jquery-bridget",["jquery"],function(g){return f(v,g)}):typeof module=="object"&&module.exports?module.exports=f(v,require("jquery")):v.jQueryBridget=f(v,v.jQuery)})(window,function(f,g){"use strict";var c=Array.prototype.slice,h=f.console,i=typeof h=="undefined"?function(){}:function(l){h.error(l)};function s(l,_,u){if(u=u||g||f.jQuery,!u)return;_.prototype.option||(_.prototype.option=function(m){u.isPlainObject(m)&&(this.options=u.extend(!0,this.options,m))}),u.fn[l]=function(m){if(typeof m=="string"){var d=c.call(arguments,1
288);return z(this,m,d)}return r(this,m),this};function z(m,d,o){var t,e="$()."+l+'("'+d+'")';return m.each(function(n,p){var y=u.data(p,l);if(!y){i(l+" not initialized. Cannot call methods, i.e. "+e);return}var E=y[d];if(!E||d.charAt(0)=="_"){i(e+" is not a valid method");return}var x=E.apply(y,o);t=t===void 0?x:t}),t!==void 0?t:m}function r(m,d){m.each(function(o,t){var e=u.data(t,l);e?(e.option(d),e._init()):(e=new _(t,d),u.data(t,l,e))})}a(u)}function a(l){!l||l&&l.bridget||(l.bridget=s)}return a(g||f.jQuery),s}),(function(v,f){typeof define=="function"&&define.amd?define("ev-emitter/ev-emitter",f):typeof module=="object"&&module.exports?module.exports=f():v.EvEmitter=f()})(typeof window!="undefined"?window:this,function(){function v(){}var f=v.prototype;return f.on=function(g,c){if(!(!g||!c)){var h=this._events=this._events||{},i=h[g]=h[g]||[];return i.indexOf(c)==-1&&i.push(c),this}},f.once=function(g,c){if(!(!g||!c)){this.on(g,c);var h=this._onceEvents=this._onceEvents||{},i=h[g]=h[g]||{};return i[c]=!0,this}},f.off=function(g,c){var h=this._events&&this._events[g];if(!(!h||!h.length)){var i=h.indexOf(c);return i!=-1&&h.splice(i,1),this}},f.emitEvent=function(g,c){var h=this._events&&this._events[g];if(!(!h||!h.length)){var i=0,s=h[i];c=c||[];for(var a=this._onceEvents&&this._onceEvents[g];s;){var l=a&&a[s];l&&(this.off(g,s),delete a[s]),s.apply(this,c),i+=l?0:1,s=h[i]}return this}},v});/*! 289 * getSize v2.0.2 290 * measure size of elements 291 * MIT license 292 */(function(v,f){"use strict";typeof define=="function"&&define.amd?define("get-size/get-size",[],function(){return f()}):typeof module=="object"&&module.exports?module.exports=f():v.getSize=f()})(window,function(){"use strict";function f(r){var m=parseFloat(r),d=r.indexOf("%")==-1&&!isNaN(m);return d&&m}function g(){}var c=typeof console=="undefined"?g:function(r){console.error(r)},h=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],i=h.length;function s(){for(var r={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},m=0;m<i;m++){var d=h[m];r[d]=0}return r}function a(r){var m=getComputedStyle(r);return m||c("Style returned "+m+". Are you running this code in a hidden iframe on Firefox? See http://bit.ly/getsizebug1"),m}var l=!1,_;function u(){if(!l){l=!0;var r=document.createElement("div");r.style.width="200px",r.style.padding="1px 2px 3px 4px",r.style.borderStyle="solid",r.style.borderWidth="1px 2px 3px 4px",r.style.boxSizing="border-box";var m=document.body||document.documentElement;m.appendChild(r);var d=a(r);z.isBoxSizeOuter=_=f(d.width)==200,m.removeChild(r)}}function z(r){if(u(),typeof r=="string"&&(r=document.querySelector(r)),!(!r||typeof r!="object"||!r.nodeType)){var m=a(r);if(m.display=="none")return s();var d={};d.width=r.offsetWidth,d.height=r.offsetHeight;for(var o=d.isBorderBox=m.boxSizing=="border-box",t=0;t<i;t++){var e=h[t],n=m[e],p=parseFloat(n);d[e]=isNaN(p)?0:p}var y=d.paddingLeft+d.paddingRight,E=d.paddingTop+d.paddingBottom,x=d.marginLeft+d.marginRight,b=d.marginTop+d.marginBottom,T=d.borderLeftWidth+d.borderRightWidth,I=d.borderTopWidth+d.borderBottomWidth,S=o&&_,W=f(m.width);W!==!1&&(d.width=W+(S?0:y+T));var O=f(m.height);return O!==!1&&(d.height=O+(S?0:E+I)),d.innerWidth=d.width-(y+T),d.innerHeight=d.height-(E+I),d.outerWidth=d.width+x,d.outerHeight=d.height+b,d}}return z}),(function(v,f){"use strict";typeof define=="function"&&define.amd?define("desandro-matches-selector/matches-selector",f):typeof module=="object"&&module.exports?module.exports=f():v.matchesSelector=f()})(window,function(){"use strict";var f=(function(){var g=window.Element.prototype;if(g.matches)return"matches";if(g.matchesSelector)return"matchesSelector";for(var c=["webkit","moz","ms","o"],h=0;h<c.length;h++){var i=c[h],s=i+"MatchesSelector";if(g[s])return s}})();return function(c,h){return c[f](h)}}),(function(v,f){typeof define=="function"&&define.amd?define("fizzy-ui-utils/utils",["de
292sandro-matches-selector/matches-selector"],function(g){return f(v,g)}):typeof module=="object"&&module.exports?module.exports=f(v,require("desandro-matches-selector")):v.fizzyUIUtils=f(v,v.matchesSelector)})(window,function(f,g){var c={};c.extend=function(i,s){for(var a in s)i[a]=s[a];return i},c.modulo=function(i,s){return(i%s+s)%s},c.makeArray=function(i){var s=[];if(Array.isArray(i))s=i;else if(i&&typeof i=="object"&&typeof i.length=="number")for(var a=0;a<i.length;a++)s.push(i[a]);else s.push(i);return s},c.removeFrom=function(i,s){var a=i.indexOf(s);a!=-1&&i.splice(a,1)},c.getParent=function(i,s){for(;i!=document.body;)if(i=i.parentNode,g(i,s))return i},c.getQueryElement=function(i){return typeof i=="string"?document.querySelector(i):i},c.handleEvent=function(i){var s="on"+i.type;this[s]&&this[s](i)},c.filterFindElements=function(i,s){i=c.makeArray(i);var a=[];return i.forEach(function(l){if(l instanceof HTMLElement){if(!s){a.push(l);return}g(l,s)&&a.push(l);for(var _=l.querySelectorAll(s),u=0;u<_.length;u++)a.push(_[u])}}),a},c.debounceMethod=function(i,s,a){var l=i.prototype[s],_=s+"Timeout";i.prototype[s]=function(){var u=this[_];u&&clearTimeout(u);var z=arguments,r=this;this[_]=setTimeout(function(){l.apply(r,z),delete r[_]},a||100)}},c.docReady=function(i){var s=document.readyState;s=="complete"||s=="interactive"?setTimeout(i):document.addEventListener("DOMContentLoaded",i)},c.toDashed=function(i){return i.replace(/(.)([A-Z])/g,function(s,a,l){return a+"-"+l}).toLowerCase()};var h=f.console;return c.htmlInit=function(i,s){c.docReady(function(){var a=c.toDashed(s),l="data-"+a,_=document.querySelectorAll("["+l+"]"),u=document.querySelectorAll(".js-"+a),z=c.makeArray(_).concat(c.makeArray(u)),r=l+"-options",m=f.jQuery;z.forEach(function(d){var o=d.getAttribute(l)||d.getAttribute(r),t;try{t=o&&JSON.parse(o)}catch(n){h&&h.error("Error parsing "+l+" on "+d.className+": "+n);return}var e=new i(d,t);m&&m.data(d,s,e)})})},c}),(function(v,f){typeof define=="function"&&define.amd?define("outlayer/item",["ev-emitter/ev-emitter","get-size/get-size"],f):typeof module=="object"&&module.exports?module.exports=f(require("ev-emitter"),require("get-size")):(v.Outlayer={},v.Outlayer.Item=f(v.EvEmitter,v.getSize))})(window,function(f,g){"use strict";function c(o){for(var t in o)return!1;return t=null,!0}var h=document.documentElement.style,i=typeof h.transition=="str
292ing"?"transition":"WebkitTransition",s=typeof h.transform=="string"?"transform":"WebkitTransform",a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[i],l={transform:s,transition:i,transitionDuration:i+"Duration",transitionProperty:i+"Property",transitionDelay:i+"Delay"};function _(o,t){o&&(this.element=o,this.layout=t,this.position={x:0,y:0},this._create())}var u=_.prototype=Object.create(f.prototype);u.constructor=_,u._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},u.handleEvent=function(o){var t="on"+o.type;this[t]&&this[t](o)},u.getSize=function(){this.size=g(this.element)},u.css=function(o){var t=this.element.style;for(var e in o){var n=l[e]||e;t[n]=o[e]}},u.getPosition=function(){var o=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),e=this.layout._getOption("originTop"),n=o[t?"left":"right"],p=o[e?"top":"bottom"],y=this.layout.size,E=n.indexOf("%")!=-1?parseFloat(n)/100*y.width:parseInt(n,10),x=p.indexOf("%")!=-1?parseFloat(p)/100*y.height:parseInt(p,10);E=isNaN(E)?0:E,x=isNaN(x)?0:x,E-=t?y.paddingLeft:y.paddingRight,x-=e?y.paddingTop:y.paddingBottom,this.position.x=E,this.position.y=x},u.layoutPosition=function(){var o=this.layout.size,t={},e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),p=e?"paddingLeft":"paddingRight",y=e?"left":"right",E=e?"right":"left",x=this.position.x+o[p];t[y]=this.getXValue(x),t[E]="";var b=n?"paddingTop":"paddingBottom",T=n?"top":"bottom",I=n?"bottom":"top",S=this.position.y+o[b];t[T]=this.getYValue(S),t[I]="",this.css(t),this.emitEvent("layout",[this])},u.getXValue=function(o){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?o/this.layout.size.width*100+"%":o+"px"},u.getYValue=function(o){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?o/this.layout.size.height*100+"%":o+"px"},u._transitionTo=function(o,t){this.getPosition();var e=this.position.x,n=this.position.y,p=parseInt(o,10),y=parseInt(t,10),E=p===this.position.x&&y===this.position.y;if(this.setPosition(o,t),E&&!this.isTransitioning){this.layoutPosition();return}var x=o-e,b=t-n,T={};T.transform=this.getTranslate(x,b),this.transition({to:T,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})},u.getTranslate=function(o,t){var e=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop");return o=e?o:-o,t=n?t:-t,"translate3d("+o+"px, "+t+"px, 0)"},u.goTo=function(o,t){this.setPosition(o,t),this.layoutPosition()},u.moveTo=u._transitionTo,u.setPosition=function(o,t){this.position.x=parseInt(o,10),this.position.y=parseInt(t,10)},u._nonTransition=function(o){this.css(o.to),o.isCleaning&&this._removeStyles(o.to);for(var t in o.onTransitionEnd)o.onTransitionEnd[t].call(this)},u.transition=function(o){if(!parseFloat(this.layout.options.transitionDuration)){this._nonTransition(o);return}var t=this._transn;for(var e in o.onTransitionEnd)t.onEnd[e]=o.onTransitionEnd[e];for(e in o.to)t.ingProperties[e]=!0,o.isCleaning&&(t.clean[e]=!0);if(o.from){this.css(o.from);var n=this.element.offsetHeight;n=null}this.enableTransition(o.to),this.css(o.to),this.isTransitioning=!0};function z(o){return o.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()})}var r="opacity,"+z(s);u.enableTransition=function(){if(!this.isTransitioning){var o=this.layout.options.transitionDuration;o=typeof o=="number"?o+"ms":o,this.css({transitionProperty:r,transitionDuration:o,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(a,this,!1)}},u.onwebkitTransitionEnd=function(o){this.ontransitionend(o)},u.onotransitionend=function(o){this.ontransitionend(o)};var m={"-webkit-transform":"transform"};u.ontransitionend=function(o){if(o.target===this.element){var t=this._transn,e=m[o.propertyName]||o.propertyName;if(delete t.ingProperties[e],c(t.ingProperties)&&this.disableTransition(),e in t.clean&&(this.element.style[o.propertyName]="",delete t.clean[e]),e in t.onEnd){var n=t.onEnd[e];n.call(this),delete t.onEnd[e]}this.emitEvent("transitionEnd",[this])}},u.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(a,this,!1),this.isTransitioning=!1},u._removeStyles=function(o){var t={};for(var e in o)t[e]="";this.css(t)};var d={transitionProperty:"",transitionDuration:"",transitionDelay:""};return u.removeTransitionStyles=function(){this.css(d)},u.stagger=function(o){o=isNaN(o)?0:o,this.staggerDelay=o+"ms"},u.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},u.remove=function(){if(!i||!parseFloat(this.layout.options.transitionDuration)){this.removeElem();return}this.once("transitionEnd",function(){this.removeElem()}),this.hide()},u.reveal=function(){delete this.isHidden,this.css({display:""});var o=this.layout.options,t={},e=this.getHideRevealTransitionEndProperty("visibleStyle");t[e]=this.onRevealTransitionEnd,this.transition({from:o.hiddenStyle,to:o.visibleStyle,isCleaning:!0,onTransitionEnd:t})},u.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},u.getHideRevealTransitionEndProperty=function(o){var t=this.layout.options[o];if(t.opacity)return"opacity";for(var e in t)return e},u.hide=function(){this.isHidden=!0,this.css({display:""});var o=this.layout.options,t={},e=this.getHideRevealTransitionEndProperty("hiddenStyle");t[e]=this.onHideTransitionEnd,this.transition({from:o.visibleStyle,to:o.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},u.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},u.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},_});/*! 293 * Outlayer v2.1.0 294 * the brains and guts of a layout library 295 * MIT license 296 */(function(v,f){"use strict";typeof define=="function"&&define.amd?define("outlayer/outlayer",["ev-emitter/ev-emitter","get-size/get-size","fizzy-ui-utils/utils","./item"],function(g,c,h,i){return f(v,g,c,h,i)}):typeof module=="object"&&module.exports?module.exports=f(v,require("ev-emitter"),require("get-size"),require("fizzy-ui-utils"),require("./item")):v.Outlayer=f(v,v.EvEmitter,v.getSize,v.fizzyUIUtils,v.Outlayer.Item)})(window,function(f,g,c,h,i){"use strict";var s=f.console,a=f.jQuery,l=function(){},_=0,u={};function z(t,e){var n=h.getQueryElement(t);if(!n){s&&s.error("Bad element for "+this.constructor.namespace+": "+(n||t));return}this.element=n,a&&(this.$element=a(this.element)),this.options=h.extend({},this.constructor.defaults),this.option(e);var p=++_;this.element.outlayerGUID=p,u[p]=this,this._create();var y=this._getOption("initLayout");y&&this.layout()}z.namespace="outlayer",z.Item=i,z.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var r=z.prototype;h.extend(r,g.prototype),r.option=function(t){h.extend(this.options,t)},r._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&this.options[e]!==void 0?this.options[e]:this.options[t]},z.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},r._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),h.extend(this.element.style,this.options.containerStyle);var t=this._getOption("resize");t&&this.bindResize()},r.reloadItems=function(){this.items=this._itemize(this.element.children)},r._itemize=function(t){for(var e=this._filterFindItemElements(t),n=this.constructor.Item,p=[],y=0;y<e.length;y++){var E=e[y],x=new n(E,this);p.push(x)}return p},r._filterFindItemElements=function(t){return h.filterFindElements(t,this.options.itemSelector)},r.getItemElements=function(){return this.items.map(function(t){return t.element})},r.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=t!==void 0?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0}
296,r._init=r.layout,r._resetLayout=function(){this.getSize()},r.getSize=function(){this.size=c(this.element)},r._getMeasurement=function(t,e){var n=this.options[t],p;n?(typeof n=="string"?p=this.element.querySelector(n):n instanceof HTMLElement&&(p=n),this[t]=p?c(p)[e]:n):this[t]=0},r.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},r._getItemsForLayout=function(t){return t.filter(function(e){return!e.isIgnored})},r._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),!(!t||!t.length)){var n=[];t.forEach(function(p){var y=this._getItemLayoutPosition(p);y.item=p,y.isInstant=e||p.isLayoutInstant,n.push(y)},this),this._processLayoutQueue(n)}},r._getItemLayoutPosition=function(){return{x:0,y:0}},r._processLayoutQueue=function(t){this.updateStagger(),t.forEach(function(e,n){this._positionItem(e.item,e.x,e.y,e.isInstant,n)},this)},r.updateStagger=function(){var t=this.options.stagger;if(t==null){this.stagger=0;return}return this.stagger=o(t),this.stagger},r._positionItem=function(t,e,n,p,y){p?t.goTo(e,n):(t.stagger(y*this.stagger),t.moveTo(e,n))},r._postLayout=function(){this.resizeContainer()},r.resizeContainer=function(){var t=this._getOption("resizeContainer");if(t){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},r._getContainerSize=l,r._setContainerMeasure=function(t,e){if(t!==void 0){var n=this.size;n.isBorderBox&&(t+=e?n.paddingLeft+n.paddingRight+n.borderLeftWidth+n.borderRightWidth:n.paddingBottom+n.paddingTop+n.borderTopWidth+n.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},r._emitCompleteOnItems=function(t,e){var n=this;function p(){n.dispatchEvent(t+"Complete",null,[e])}var y=e.length;if(!e||!y){p();return}var E=0;function x(){E++,E==y&&p()}e.forEach(function(b){b.once(t,x)})},r.dispatchEvent=function(t,e,n){var p=e?[e].concat(n):n;if(this.emitEvent(t,p),a)if(this.$element=this.$element||a(this.element),e){var y=a.Event(e);y.type=t,this.$element.trigger(y,n)}else this.$element.trigger(t,n)},r.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},r.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},r.stamp=function(t){t=this._find(t),t&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},r.unstamp=function(t){t=this._find(t),t&&t.forEach(function(e){h.removeFrom(this.stamps,e),this.unignore(e)},this)},r._find=function(t){if(t)return typeof t=="string"&&(t=this.element.querySelectorAll(t)),t=h.makeArray(t),t},r._manageStamps=function(){!this.stamps||!this.stamps.length||(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},r._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},r._manageStamp=l,r._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,p=c(t),y={left:e.left-n.left-p.marginLeft,top:e.top-n.top-p.marginTop,right:n.right-e.right-p.marginRight,bottom:n.bottom-e.bottom-p.marginBottom};return y},r.handleEvent=h.handleEvent,r.bindResize=function(){f.addEventListener("resize",this),this.isResizeBound=!0},r.unbindResize=function(){f.removeEventListener("resize",this),this.isResizeBound=!1},r.onresize=function(){this.resize()},h.debounceMethod(z,"onresize",100),r.resize=function(){!this.isResizeBound||!this.needsResizeLayout()||this.layout()},r.needsResizeLayout=function(){var t=c(this.element),e=this.size&&t;return e&&t.innerWidth!==this.size.innerWidth},r.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},r.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},r.prepended=function(t){var e=this._itemize(t);if(e.length){var n=this.items.slice(0);this.items=e.concat(n),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(n)}},r.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),!(!t||!t.length)){var e=this.updateStagger();t.forEach(function(n,p){n.stagger(p*e),n.reveal()})}},r.hide=function(t){if(this._emitCompleteOnItems("hide",t),!(!t||!t.length)){var e=this.updateStagger();t.forEach(function(n,p){n.stagger(p*e),n.hide()})}},r.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},r.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},r.getItem=function(t){for(var e=0;e<this.items.length;e++){var n=this.items[e];if(n.element==t)return n}},r.getItems=function(t){t=h.makeArray(t);var e=[];return t.forEach(function(n){var p=this.getItem(n);p&&e.push(p)},this),e},r.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),!(!e||!e.length)&&e.forEach(function(n){n.remove(),h.removeFrom(this.items,n)},this)},r.destroy=function(){var t=this.element.style;
296t.height="",t.position="",t.width="",this.items.forEach(function(n){n.destroy()}),this.unbindResize();var e=this.element.outlayerGUID;delete u[e],delete this.element.outlayerGUID,a&&a.removeData(this.element,this.constructor.namespace)},z.data=function(t){t=h.getQueryElement(t);var e=t&&t.outlayerGUID;return e&&u[e]},z.create=function(t,e){var n=m(z);return n.defaults=h.extend({},z.defaults),h.extend(n.defaults,e),n.compatOptions=h.extend({},z.compatOptions),n.namespace=t,n.data=z.data,n.Item=m(i),h.htmlInit(n,t),a&&a.bridget&&a.bridget(t,n),n};function m(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}var d={ms:1,s:1e3};function o(t){if(typeof t=="number")return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),n=e&&e[1],p=e&&e[2];if(!n.length)return 0;n=parseFloat(n);var y=d[p]||1;return n*y}return z.Item=i,z});/*! 297 * Masonry v4.2.0 298 * Cascading grid layout library 299 * http://masonry.desandro.com 300 * MIT License 301 * by David DeSandro 302 */(function(v,f){typeof define=="function"&&define.amd?define(["outlayer/outlayer","get-size/get-size"],f):typeof module=="object"&&module.exports?module.exports=f(require("outlayer"),require("get-size")):v.Masonry=f(v.Outlayer,v.getSize)})(window,function(f,g){var c=f.create("masonry");c.compatOptions.fitWidth="isFitWidth";var h=c.prototype;return h._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var i=0;i<this.cols;i++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},h.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var i=this.items[0],s=i&&i.element;this.columnWidth=s&&g(s).outerWidth||this.containerWidth}var a=this.columnWidth+=this.gutter,l=this.containerWidth+this.gutter,_=l/a,u=a-l%a,z=u&&u<1?"round":"floor";_=Math[z](_),this.cols=Math.max(_,1)},h.getContainerWidth=function(){var i=this._getOption("fitWidth"),s=i?this.element.parentNode:this.element,a=g(s);this.containerWidth=a&&a.innerWidth},h._getItemLayoutPosition=function(i){i.getSize();var s=i.size.outerWidth%this.columnWidth,a=s&&s<1?"round":"ceil",l=Math[a](i.size.outerWidth/this.columnWidth);l=Math.min(l,this.cols);for(var _=this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition",u=this[_](l,i),z={x:this.columnWidth*u.col,y:u.y},r=u.y+i.size.outerHeight,m=l+u.col,d=u.col;d<m;d++)this.colYs[d]=r;return z},h._getTopColPosition=function(i){var s=this._getTopColGroup(i),a=Math.min.apply(Math,s);return{col:s.indexOf(a),y:a}},h._getTopColGroup=function(i){if(i<2)return this.colYs;for(var s=[],a=this.cols+1-i,l=0;l<a;l++)s[l]=this._getColGroupY(l,i);return s},h._getColGroupY=function(i,s){if(s<2)return this.colYs[i];var a=this.colYs.slice(i,i+s);return Math.max.apply(Math,a)},h._getHorizontalColPosition=function(i,s){var a=this.horizontalColIndex%this.cols,l=i>1&&a+i>this.cols;a=l?0:a;var _=s.size.outerWidth&&s.size.outerHeight;return this.horizontalColIndex=_?a+i:this.horizontalColIndex,{col:a,y:this._getColGroupY(a,i)}},h._manageStamp=function(i){var s=g(i),a=this._getElementOffset(i),l=this._getOption("originLeft"),_=l?a.left:a.right,u=_+s.outerWidth,z=Math.floor(_/this.columnWidth);z=Math.max(0,z);var r=Math.floor(u/this.columnWidth);r-=u%this.columnWidth?0:1,r=Math.min(this.cols-1,r);for(var m=this._getOption("originTop"),d=(m?a.top:a.bottom)+s.outerHeight,o=z;o<=r;o++)this.colYs[o]=Math.max(d,this.colYs[o])},h._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var i={height:this.maxY};return this._getOption("fitWidth")&&(i.width=this._getContainerFitWidth()),i},h._getContainerFitWidth=function(){for(var i=0,s=this.cols;--s&&this.colYs[s]===0;)i++;return(this.cols-i)*this.columnWidth-this.gutter},h.needsResizeLayout=function(){var i=this.containerWidth;return this.getContainerWidth(),i!=this.containerWidth},c}); 303 304/*! jQuery & Zepto Lazy v1.7.10 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */ 305!function(t,e){"use strict";function r(r,a,i,u,l){function f(){L=t.devicePixelRatio>1,i=c(i),a.delay>=0&&setTimeout(function(){s(!0)},a.delay),(a.delay<0||a.combined)&&(u.e=v(a.throttle,function(t){"resize"===t.type&&(w=B=-1),s(t.all)}),u.a=function(t){t=c(t),i.push.apply(i,t)},u.g=function(){return i=n(i).filter(function(){return!n(this).data(a.loadedName)})},u.f=function(t){for(var e=0;e<t.length;e++){var r=i.filter(function(){return this===t[e]});r.length&&s(!1,r)}},s(),n(a.appendScroll).on("scroll."+l+" resize."+l,u.e))}function c(t){var i=a.defaultImage,o=a.placeholder,u=a.imageBase,l=a.srcsetAttribute,f=a.loaderAttribute,c=a._f||{};t=n(t).filter(function(){var t=n(this),r=m(this);return!t.data(a.handledName)&&(t.attr(a.attribute)||t.attr(l)||t.attr(f)||c[r]!==e)}).data("plugin_"+a.name,r);for(var s=0,d=t.length;s<d;s++){var A=n(t[s]),g=m(t[s]),h=A.attr(a.imageBaseAttribute)||u;g===N&&h&&A.attr(l)&&A.attr(l,b(A.attr(l),h)),c[g]===e||A.attr(f)||A.attr(f,c[g]),g===N&&i&&!A.attr(E)?A.attr(E,i):g===N||!o||A.css(O)&&"none"!==A.css(O)||A.css(O,"url('"+o+"')")}return t}function s(t,e){if(!i.length)return void(a.autoDestroy&&r.destroy());for(var o=e||i,u=!1,l=a.imageBase||"",f=a.srcsetAttribute,c=a.handledName,s=0;s<o.length;s++)if(t||e||A(o[s])){var g=n(o[s]),h=m(o[s]),b=g.attr(a.attribute),v=g.attr(a.imageBaseAttribute)||l,p=g.attr(a.loaderAttribute);g.data(c)||a.visibleOnly&&!g.is(":visible")||!((b||g.attr(f))&&(h===N&&(v+b!==g.attr(E)||g.attr(f)!==g.attr(F))||h!==N&&v+b!==g.css(O))||p)||(u=!0,g.data(c,!0),d(g,h,v,p))}u&&(i=n(i).filter(function(){return!n(this).data(c)}))}function d(t,e,r,i){++z;var o=function(){y("onError",t),p(),o=n.noop};y("beforeLoad",t);var u=a.attribute,l=a.srcsetAttribute,f=a.sizesAttribute,c=a.retinaAttribute,s=a.removeAttribute,d=a.loadedName,A=t.attr(c);if(i){var g=function(){s&&t.removeAttr(a.loaderAttribute),t.data(d,!0),y(T,t),setTimeout(p,1),g=n.noop};t.off(I).one(I,o).one(D,g),y(i,t,function(e){e?(t.off(D),g()):(t.off(I),o())})||t.trigger(I)}else{var h=n(new Image);h.one(I,o).one(D,function(){t.hide(),e===N?t.attr(C,h.attr(C)).attr(F,h.attr(F)).attr(E,h.attr(E)):t.css(O,"url('"+h.attr(E)+"')"),t[a.effect](a.effectTime),s&&(t.removeAttr(u+" "+l+" "+c+" "+a.imageBaseAttribute),f!==C&&t.removeAttr(f)),t.data(d,!0),y(T,t),h.remove(),p()});var m=(L&&A?A:t.attr(u))||"";h.attr(C,t.attr(f)).attr(F,t.attr(l)).attr(E,m?r+m:null),h.complete&&h.trigger(D)}}function A(t){var e=t.getBoundingClientRect(),r=a.scrollDirection,n=a.threshold,i=h()+n>e.top&&-n<e.bottom,o=g()+n>e.left&&-n<e.right;return"vertical"===r?i:"horizontal"===r?o:i&&o}function g(){return w>=0?w:w=n(t).width()}function h(){return B>=0?B:B=n(t).height()}function m(t){return t.tagName.toLowerCase()}function b(t,e){if(e){var r=t.split(",");t="";for(var a=0,n=r.length;a<n;a++)t+=e+r[a].trim()+(a!==n-1?",":"")}return t}function v(t,e){var n,i=0;return function(o,u){function l(){i=+new Date,e.call(r,o)}var f=+new Date-i;n&&clearTimeout(n),f>t||!a.enableThrottle||u?l():n=setTimeout(l,t-f)}}function p(){--z,i.length||z||y("onFinishedAll")}function y(t,e,n){return!!(t=a[t])&&(t.apply(r,[].slice.call(arguments,1
305)),!0)}var z=0,w=-1,B=-1,L=!1,T="afterLoad",D="load",I="error",N="img",E="src",F="srcset",C="sizes",O="background-image";"event"===a.bind||o?f():n(t).on(D+"."+l,f)}function a(a,o){var u=this,l=n.extend({},u.config,o),f={},c=l.name+"-"+ ++i;return u.config=function(t,r){return r===e?l[t]:(l[t]=r,u)},u.addItems=function(t){return f.a&&f.a("string"===n.type(t)?n(t):t),u},u.getItems=function(){return f.g?f.g():{}},u.update=function(t){return f.e&&f.e({},!t),u},u.force=function(t){return f.f&&f.f("string"===n.type(t)?n(t):t),u},u.loadAll=function(){return f.e&&f.e({all:!0},!0),u},u.destroy=function(){return n(l.appendScroll).off("."+c,f.e),n(t).off("."+c),f={},e},r(u,l,a,f,c),l.chainable?a:u}var n=t.jQuery||t.Zepto,i=0,o=!1;n.fn.Lazy=n.fn.lazy=function(t){return new a(this,t)},n.Lazy=n.lazy=function(t,r,i){if(n.isFunction(r)&&(i=r,r=[]),n.isFunction(i)){t=n.isArray(t)?t:[t],r=n.isArray(r)?r:[r];for(var o=a.prototype.config,u=o._f||(o._f={}),l=0,f=t.length;l<f;l++)(o[t[l]]===e||n.isFunction(o[t[l]]))&&(o[t[l]]=i);for(var c=0,s=r.length;c<s;c++)u[r[c]]=t[0]}},a.prototype.config={name:"lazy",chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:t,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250,beforeLoad:e,afterLoad:e,onError:e,onFinishedAll:e},n(t).on("load",function(){o=!0})}(window); 306/*! jQuery & Zepto Lazy - AV Plugin v1.4 - http://jquery.eisbehr.de/lazy - MIT&GPL-2.0 license - Copyright 2012-2018 Daniel 'Eisbehr' Kern */ 307!function(t){t.lazy(["av","audio","video"],["audio","video"],function(a,e){var r=a[0].tagName.toLowerCase();if("audio"===r||"video"===r){var o=a.find("data-src"),i=a.find("data-track"),n=0,c=function(){++n===o.length&&e(!1)},d=function(){var a=t(this),e=a[0].tagName.toLowerCase(),r=a.prop("attributes"),o=t("data-src"===e?"<source>":"<track>");"data-src"===e&&o.one("error",c),t.each(r,function(t,a){o.attr(a.name,a.value)}),a.replaceWith(o)};a.one("loadedmetadata",function(){e(!0)}).off("load error").attr("poster",a.attr("data-poster")),o.length?o.each(d):a.attr("data-src")?(t.each(a.attr("data-src").split(","),function(e,r){var o=r.split("|");a.append(t("<source>").one("error",c).attr({src:o[0].trim(),type:o[1].trim()}))}),this.config("removeAttribute")&&a.removeAttr("data-src")):e(!1),i.length&&i.each(d)}else e(!1)})}(window.jQuery||window.Zepto);
vendor: 23,890 bytes, lines 308-354
308"function"!==typeof Object.create&&(Object.create=function(f){function g(){}g.prototype=f;return new g}); 309(function(f,g,k){var l={init:function(a,b){this.$elem=f(b);this.options=f.extend({},f.fn.owlCarousel.options,this.$elem.data(),a);this.userOptions=a;this.loadContent()},loadContent:function(){function a(a){var d,e="";if("function"===typeof b.options.jsonSuccess)b.options.jsonSuccess.apply(this,[a]);else{for(d in a.owl)a.owl.hasOwnProperty(d)&&(e+=a.owl[d].item);b.$elem.html(e)}b.logIn()}var b=this,e;"function"===typeof b.options.beforeInit&&b.options.beforeInit.apply(this,[b.$elem]);"string"===typeof b.options.jsonPath? 310(e=b.options.jsonPath,f.getJSON(e,a)):b.logIn()},logIn:function(){this.$elem.data("owl-originalStyles",this.$elem.attr("style"));this.$elem.data("owl-originalClasses",this.$elem.attr("class"));this.$elem.css({opacity:0});this.orignalItems=this.options.items;this.checkBrowser();this.wrapperWidth=0;this.checkVisible=null;this.setVars()},setVars:function(){if(0===this.$elem.children().length)return!1;this.baseClass();this.eventTypes();this.$userItems=this.$elem.children();this.itemsAmount=this.$userItems.length; 311this.wrapItems();this.$owlItems=this.$elem.find(".owl-item");this.$owlWrapper=this.$elem.find(".owl-wrapper");this.playDirection="next";this.prevItem=0;this.prevArr=[0];this.currentItem=0;this.customEvents();this.onStartup()},onStartup:function(){this.updateItems();this.calculateAll();this.buildControls();this.updateControls();this.response();this.moveEvents();this.stopOnHover();this.owlStatus();!1!==this.options.transitionStyle&&this.transitionTypes(this.options.transitionStyle);!0===this.options.autoPlay&& 312(this.options.autoPlay=5E3);this.play();this.$elem.find(".owl-wrapper").css("display","block");this.$elem.is(":visible")?this.$elem.css("opacity",1):this.watchVisibility();this.onstartup=!1;this.eachMoveUpdate();"function"===typeof this.options.afterInit&&this.options.afterInit.apply(this,[this.$elem])},eachMoveUpdate:function(){!0===this.options.lazyLoad&&this.lazyLoad();!0===this.options.autoHeight&&this.autoHeight();this.onVisibleItems();"function"===typeof this.options.afterAction&&this.options.afterAction.apply(this, 313[this.$elem])},updateVars:function(){"function"===typeof this.options.beforeUpdate&&this.options.beforeUpdate.apply(this,[this.$elem]);this.watchVisibility();this.updateItems();this.calculateAll();this.updatePosition();this.updateControls();this.eachMoveUpdate();"function"===typeof this.options.afterUpdate&&this.options.afterUpdate.apply(this,[this.$elem])},reload:function(){var a=this;g.setTimeout(function(){a.updateVars()},0)},watchVisibility:function(){var a=this;if(!1===a.$elem.is(":visible"))a.$elem.css({opacity:0}), 314g.clearInterval(a.autoPlayInterval),g.clearInterval(a.checkVisible);else return!1;a.checkVisible=g.setInterval(function(){a.$elem.is(":visible")&&(a.reload(),a.$elem.animate({opacity:1},200),g.clearInterval(a.checkVisible))},500)},wrapItems:function(){this.$userItems.wrapAll('<div class="owl-wrapper">').wrap('<div class="owl-item"></div>');this.$elem.find(".owl-wrapper").wrap('<div class="owl-wrapper-outer">');this.wrapperOuter=this.$elem.find(".owl-wrapper-outer");this.$elem.css("display","block")}, 315baseClass:function(){var a=this.$elem.hasClass(this.options.baseClass),b=this.$elem.hasClass(this.options.theme);a||this.$elem.addClass(this.options.baseClass);b||this.$elem.addClass(this.options.theme)},updateItems:function(){var a,b;if(!1===this.options.responsive)return!1;if(!0===this.options.singleItem)return this.options.items=this.orignalItems=1,this.options.itemsCustom=!1,this.options.itemsDesktop=!1,this.options.itemsDesktopSmall=!1,this.options.itemsTablet=!1,this.options.itemsTabletSmall= 316!1,this.options.itemsMobile=!1;a=f(this.options.responsiveBaseWidth).width();a>(this.options.itemsDesktop[0]||this.orignalItems)&&(this.options.items=this.orignalItems);if(!1!==this.options.itemsCustom)for(this.options.itemsCustom.sort(function(a,b){return a[0]-b[0]}),b=0;b<this.options.itemsCustom.length;b+=1)this.options.itemsCustom[b][0]<=a&&(this.options.items=this.options.itemsCustom[b][1]);else a<=this.options.itemsDesktop[0]&&!1!==this.options.itemsDesktop&&(this.options.items=this.options.itemsDesktop[1]), 317a<=this.options.itemsDesktopSmall[0]&&!1!==this.options.itemsDesktopSmall&&(this.options.items=this.options.itemsDesktopSmall[1]),a<=this.options.itemsTablet[0]&&!1!==this.options.itemsTablet&&(this.options.items=this.options.itemsTablet[1]),a<=this.options.itemsTabletSmall[0]&&!1!==this.options.itemsTabletSmall&&(this.options.items=this.options.itemsTabletSmall[1]),a<=this.options.itemsMobile[0]&&!1!==this.options.itemsMobile&&(this.options.items=this.options.itemsMobile[1]);this.options.items>this.itemsAmount&& 318!0===this.options.itemsScaleUp&&(this.options.items=this.itemsAmount)},response:function(){var a=this,b,e;if(!0!==a.options.responsive)return!1;e=f(g).width();a.resizer=function(){f(g).width()!==e&&(!1!==a.options.autoPlay&&g.clearInterval(a.autoPlayInterval),g.clearTimeout(b),b=g.setTimeout(function(){e=f(g).width();a.updateVars()},a.options.responsiveRefreshRate))};f(g).resize(a.resizer)},updatePosition:function(){this.jumpTo(this.currentItem);!1!==this.options.autoPlay&&this.checkAp()},appendItemsSizes:function(){var a= 319this,b=0,e=a.itemsAmount-a.options.items;a.$owlItems.each(function(c){var d=f(this);d.css({width:a.itemWidth}).data("owl-item",Number(c));if(0===c%a.options.items||c===e)c>e||(b+=1);d.data("owl-roundPages",b)})},appendWrapperSizes:function(){this.$owlWrapper.css({width:this.$owlItems.length*this.itemWidth*2,left:0});this.appendItemsSizes()},calculateAll:function(){this.calculateWidth();this.appendWrapperSizes();this.loops();this.max()},calculateWidth:function(){this.itemWidth=Math.round(this.$elem.width()/ 320this.options.items)},max:function(){var a=-1*(this.itemsAmount*this.itemWidth-this.options.items*this.itemWidth);this.options.items>this.itemsAmount?this.maximumPixels=a=this.maximumItem=0:(this.maximumItem=this.itemsAmount-this.options.items,this.maximumPixels=a);return a},min:function(){return 0},loops:function(){var a=0,b=0,e,c;this.positionsInArray=[0];this.pagesInArray=[];for(e=0;e<this.itemsAmount;e+=1)b+=this.itemWidth,this.positionsInArray.push(-b),!0===this.options.scrollPerPage&&(c=f(this.$owlItems[e]), 321c=c.data("owl-roundPages"),c!==a&&(this.pagesInArray[a]=this.positionsInArray[e],a=c))},buildControls:function(){if(!0===this.options.navigation||!0===this.options.pagination)this.owlControls=f('<div class="owl-controls"/>').toggleClass("clickable",!this.browser.isTouch).appendTo(this.$elem);!0===this.options.pagination&&this.buildPagination();!0===this.options.navigation&&this.buildButtons()},buildButtons:function(){var a=this,b=f('<div class="owl-buttons"/>');a.owlControls.append(b);a.buttonPrev= 322f("<div/>",{"class":"owl-prev",html:a.options.navigationText[0]||""});a.buttonNext=f("<div/>",{"class":"owl-next",html:a.options.navigationText[1]||""});b.append(a.buttonPrev).append(a.buttonNext);b.on("touchstart.owlControls mousedown.owlControls",'div[class^="owl"]',function(a){a.preventDefault()});b.on("touchend.owlControls mouseup.owlControls",'div[class^="owl"]',function(b){b.preventDefault();f(this).hasClass("owl-next")?a.next():a.prev()})},buildPagination:function(){var a=this;a.paginationWrapper= 323f('<div class="owl-pagination"/>');a.owlControls.append(a.paginationWrapper);a.paginationWrapper.on("touchend.owlControls mouseup.owlControls",".owl-page",function(b){b.preventDefault();Number(f(this).data("owl-page"))!==a.currentItem&&a.goTo(Number(f(this).data("owl-page")),!0)})},updatePagination:function(){var a,b,e,c,d,g;if(!1===this.options.pagination)return!1;this.paginationWrapper.html("");a=0;b=this.itemsAmount-this.itemsAmount%this.options.items;for(c=0;c<this.itemsAmount;c+=1)0===c%this.options.items&& 324(a+=1,b===c&&(e=this.itemsAmount-this.options.items),d=f("<div/>",{"class":"owl-page"}),g=f("<span></span>",{text:!0===this.options.paginationNumbers?a:"","class":!0===this.options.paginationNumbers?"owl-numbers":""}),d.append(g),d.data("owl-page",b===c?e:c),d.data("owl-roundPages",a),this.paginationWrapper.append(d));this.checkPagination()},checkPagination:function(){var a=this;if(!1===a.options.pagination)return!1;a.paginationWrapper.find(".owl-page").each(function(){f(this).data("owl-roundPages")=== 325f(a.$owlItems[a.currentItem]).data("owl-roundPages")&&(a.paginationWrapper.find(".owl-page").removeClass("active"),f(this).addClass("active"))})},checkNavigation:function(){if(!1===this.options.navigation)return!1;!1===this.options.rewindNav&&(0===this.currentItem&&0===this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.addClass("disabled")):0===this.currentItem&&0!==this.maximumItem?(this.buttonPrev.addClass("disabled"),this.buttonNext.removeClass("disabled")):this.currentItem=== 326this.maximumItem?(this.buttonPrev.removeClass("disabled"),this.buttonNext.addClass("disabled")):0!==this.currentItem&&this.currentItem!==this.maximumItem&&(this.buttonPrev.removeClass("disabled"),this.buttonNext.removeClass("disabled")))},updateControls:function(){this.updatePagination();this.checkNavigation();this.owlControls&&(this.options.items>=this.itemsAmount?this.owlControls.hide():this.owlControls.show())},destroyControls:function(){this.owlControls&&this.owlControls.remove()},next:function(a){if(this.isTransition)return!1; 327this.currentItem+=!0===this.options.scrollPerPage?this.options.items:1;if(this.currentItem>this.maximumItem+(!0===this.options.scrollPerPage?this.options.items-1:0))if(!0===this.options.rewindNav)this.currentItem=0,a="rewind";else return this.currentItem=this.maximumItem,!1;this.goTo(this.currentItem,a)},prev:function(a){if(this.isTransition)return!1;this.currentItem=!0===this.options.scrollPerPage&&0<this.currentItem&&this.currentItem<this.options.items?0:this.currentItem-(!0===this.options.scrollPerPage? 328this.options.items:1);if(0>this.currentItem)if(!0===this.options.rewindNav)this.currentItem=this.maximumItem,a="rewind";else return this.currentItem=0,!1;this.goTo(this.currentItem,a)},goTo:function(a,b,e){var c=this;if(c.isTransition)return!1;"function"===typeof c.options.beforeMove&&c.options.beforeMove.apply(this,[c.$elem]);a>=c.maximumItem?a=c.maximumItem:0>=a&&(a=0);c.currentItem=c.owl.currentItem=a;if(!1!==c.options.transitionStyle&&"drag"!==e&&1===c.options.items&&!0===c.browser.support3d)return c.swapSpeed(0), 329!0===c.browser.support3d?c.transition3d(c.positionsInArray[a]):c.css2slide(c.positionsInArray[a],1),c.afterGo(),c.singleItemTransition(),!1;a=c.positionsInArray[a];!0===c.browser.support3d?(c.isCss3Finish=!1,!0===b?(c.swapSpeed("paginationSpeed"),g.setTimeout(function(){c.isCss3Finish=!0},c.options.paginationSpeed)):"rewind"===b?(c.swapSpeed(c.options.rewindSpeed),g.setTimeout(function(){c.isCss3Finish=!0},c.options.rewindSpeed)):(c.swapSpeed("slideSpeed"),g.setTimeout(function(){c.isCss3Finish=!0}, 330c.options.slideSpeed)),c.transition3d(a)):!0===b?c.css2slide(a,c.options.paginationSpeed):"rewind"===b?c.css2slide(a,c.options.rewindSpeed):c.css2slide(a,c.options.slideSpeed);c.afterGo()},jumpTo:function(a){"function"===typeof this.options.beforeMove&&this.options.beforeMove.apply(this,[this.$elem]);a>=this.maximumItem||-1===a?a=this.maximumItem:0>=a&&(a=0);this.swapSpeed(0);!0===this.browser.support3d?this.transition3d(this.positionsInArray[a]):this.css2slide(this.positionsInArray[a],1);this.currentItem= 331this.owl.currentItem=a;this.afterGo()},afterGo:function(){this.prevArr.push(this.currentItem);this.prevItem=this.owl.prevItem=this.prevArr[this.prevArr.length-2];this.prevArr.shift(0);this.prevItem!==this.currentItem&&(this.checkPagination(),this.checkNavigation(),this.eachMoveUpdate(),!1!==this.options.autoPlay&&this.checkAp());"function"===typeof this.options.afterMove&&this.prevItem!==this.currentItem&&this.options.afterMove.apply(this,[this.$elem])},stop:function(){this.apStatus="stop";g.clearInterval(this.autoPlayInterval)}, 332checkAp:function(){"stop"!==this.apStatus&&this.play()},play:function(){var a=this;a.apStatus="play";if(!1===a.options.autoPlay)return!1;g.clearInterval(a.autoPlayInterval);a.autoPlayInterval=g.setInterval(function(){a.next(!0)},a.options.autoPlay)},swapSpeed:function(a){"slideSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.slideSpeed)):"paginationSpeed"===a?this.$owlWrapper.css(this.addCssSpeed(this.options.paginationSpeed)):"string"!==typeof a&&this.$owlWrapper.css(this.addCssSpeed(a))}, 333addCssSpeed:function(a){return{"-webkit-transition":"all "+a+"ms ease","-moz-transition":"all "+a+"ms ease","-o-transition":"all "+a+"ms ease",transition:"all "+a+"ms ease"}},removeTransition:function(){return{"-webkit-transition":"","-moz-transition":"","-o-transition":"",transition:""}},doTranslate:function(a){return{"-webkit-transform":"translate3d("+a+"px, 0px, 0px)","-moz-transform":"translate3d("+a+"px, 0px, 0px)","-o-transform":"translate3d("+a+"px, 0px, 0px)","-ms-transform":"translate3d("+ 334a+"px, 0px, 0px)",transform:"translate3d("+a+"px, 0px,0px)"}},transition3d:function(a){this.$owlWrapper.css(this.doTranslate(a))},css2move:function(a){this.$owlWrapper.css({left:a})},css2slide:function(a,b){var e=this;e.isCssFinish=!1;e.$owlWrapper.stop(!0,!0).animate({left:a},{duration:b||e.options.slideSpeed,complete:function(){e.isCssFinish=!0}})},checkBrowser:function(){var a=k.createElement("div");a.style.cssText=" -moz-transform:translate3d(0px, 0px, 0px); -ms-transform:translate3d(0px, 0px, 0px); -o-transform:translate3d(0px, 0px, 0px); -webkit-transform:translate3d(0px, 0px, 0px); transform:translate3d(0px, 0px, 0px)"; 335a=a.style.cssText.match(/translate3d\(0px, 0px, 0px\)/g);this.browser={support3d:null!==a&&1===a.length,isTouch:"ontouchstart"in g||g.navigator.msMaxTouchPoints}},moveEvents:function(){if(!1!==this.options.mouseDrag||!1!==this.options.touchDrag)this.gestures(),this.disabledEvents()},eventTypes:function(){var a=["s","e","x"];this.ev_types={};!0===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl mousedown.owl","touchmove.owl mousemove.owl","touchend.owl touchcancel.owl mouseup.owl"]: 336!1===this.options.mouseDrag&&!0===this.options.touchDrag?a=["touchstart.owl","touchmove.owl","touchend.owl touchcancel.owl"]:!0===this.options.mouseDrag&&!1===this.options.touchDrag&&(a=["mousedown.owl","mousemove.owl","mouseup.owl"]);this.ev_types.start=a[0];this.ev_types.move=a[1];this.ev_types.end=a[2]},disabledEvents:function(){this.$elem.on("dragstart.owl",function(a){a.preventDefault()});this.$elem.on("mousedown.disableTextSelect",function(a){return f(a.target).is("input, textarea, select, option")})}, 337gestures:function(){function a(a){if(void 0!==a.touches)return{x:a.touches[0].pageX,y:a.touches[0].pageY};if(void 0===a.touches){if(void 0!==a.pageX)return{x:a.pageX,y:a.pageY};if(void 0===a.pageX)return{x:a.clientX,y:a.clientY}}}function b(a){"on"===a?(f(k).on(d.ev_types.move,e),f(k).on(d.ev_types.end,c)):"off"===a&&(f(k).off(d.ev_types.move),f(k).off(d.ev_types.end))}function e(b){b=b.originalEvent||b||g.event;d.newPosX=a(b).x-h.offsetX;d.newPosY=a(b).y-h.offsetY;d.newRelativeX=d.newPosX-h.relativePos; 338"function"===typeof d.options.startDragging&&!0!==h.dragging&&0!==d.newRelativeX&&(h.dragging=!0,d.options.startDragging.apply(d,[d.$elem]));(8<d.newRelativeX||-8>d.newRelativeX)&&!0===d.browser.isTouch&&(void 0!==b.preventDefault?b.preventDefault():b.returnValue=!1,h.sliding=!0);(10<d.newPosY||-10>d.newPosY)&&!1===h.sliding&&f(k).off("touchmove.owl");d.newPosX=Math.max(Math.min(d.newPosX,d.newRelativeX/5),d.maximumPixels+d.newRelativeX/5);!0===d.browser.support3d?d.transition3d(d.newPosX):d.css2move(d.newPosX)} 339function c(a){a=a.originalEvent||a||g.event;var c;a.target=a.target||a.srcElement;h.dragging=!1;!0!==d.browser.isTouch&&d.$owlWrapper.removeClass("grabbing");d.dragDirection=0>d.newRelativeX?d.owl.dragDirection="left":d.owl.dragDirection="right";0!==d.newRelativeX&&(c=d.getNewPosition(),d.goTo(c,!1,"drag"),h.targetElement===a.target&&!0!==d.browser.isTouch&&(f(a.target).on("click.disable",function(a){a.stopImmediatePropagation();a.stopPropagation();a.preventDefault();f(a.target).off("click.disable")}), 340a=f._data(a.target,"events").click,c=a.pop(),a.splice(0,0,c)));b("off")}var d=this,h={offsetX:0,offsetY:0,baseElWidth:0,relativePos:0,position:null,minSwipe:null,maxSwipe:null,sliding:null,dargging:null,targetElement:null};d.isCssFinish=!0;d.$elem.on(d.ev_types.start,".owl-wrapper",function(c){c=c.originalEvent||c||g.event;var e;if(3===c.which)return!1;if(!(d.itemsAmount<=d.options.items)){if(!1===d.isCssFinish&&!d.options.dragBeforeAnimFinish||!1===d.isCss3Finish&&!d.options.dragBeforeAnimFinish)return!1; 341!1!==d.options.autoPlay&&g.clearInterval(d.autoPlayInterval);!0===d.browser.isTouch||d.$owlWrapper.hasClass("grabbing")||d.$owlWrapper.addClass("grabbing");d.newPosX=0;d.newRelativeX=0;f(this).css(d.removeTransition());e=f(this).position();h.relativePos=e.left;h.offsetX=a(c).x-e.left;h.offsetY=a(c).y-e.top;b("on");h.sliding=!1;h.targetElement=c.target||c.srcElement}})},getNewPosition:function(){var a=this.closestItem();a>this.maximumItem?a=this.currentItem=this.maximumItem:0<=this.newPosX&&(this.currentItem= 342a=0);return a},closestItem:function(){var a=this,b=!0===a.options.scrollPerPage?a.pagesInArray:a.positionsInArray,e=a.newPosX,c=null;f.each(b,function(d,g){e-a.itemWidth/20>b[d+1]&&e-a.itemWidth/20<g&&"left"===a.moveDirection()?(c=g,a.currentItem=!0===a.options.scrollPerPage?f.inArray(c,a.positionsInArray):d):e+a.itemWidth/20<g&&e+a.itemWidth/20>(b[d+1]||b[d]-a.itemWidth)&&"right"===a.moveDirection()&&(!0===a.options.scrollPerPage?(c=b[d+1]||b[b.length-1],a.currentItem=f.inArray(c,a.positionsInArray)): 343(c=b[d+1],a.currentItem=d+1))});return a.currentItem},moveDirection:function(){var a;0>this.newRelativeX?(a="right",this.playDirection="next"):(a="left",this.playDirection="prev");return a},customEvents:function(){var a=this;a.$elem.on("owl.next",function(){a.next()});a.$elem.on("owl.prev",function(){a.prev()});a.$elem.on("owl.play",function(b,e){a.options.autoPlay=e;a.play();a.hoverStatus="play"});a.$elem.on("owl.stop",function(){a.stop();a.hoverStatus="stop"});a.$elem.on("owl.goTo",function(b,e){a.goTo(e)}); 344a.$elem.on("owl.jumpTo",function(b,e){a.jumpTo(e)})},stopOnHover:function(){var a=this;!0===a.options.stopOnHover&&!0!==a.browser.isTouch&&!1!==a.options.autoPlay&&(a.$elem.on("mouseover",function(){a.stop()}),a.$elem.on("mouseout",function(){"stop"!==a.hoverStatus&&a.play()}))},lazyLoad:function(){var a,b,e,c,d;if(!1===this.options.lazyLoad)return!1;for(a=0;a<this.itemsAmount;a+=1)b=f(this.$owlItems[a]),"loaded"!==b.data("owl-loaded")&&(e=b.data("owl-item"),c=b.find(".lazyOwl"),"string"!==typeof c.data("src")? 345b.data("owl-loaded","loaded"):(void 0===b.data("owl-loaded")&&(c.hide(),b.addClass("loading").data("owl-loaded","checked")),(d=!0===this.options.lazyFollow?e>=this.currentItem:!0)&&e<this.currentItem+this.options.items&&c.length&&this.lazyPreload(b,c)))},lazyPreload:function(a,b){function e(){a.data("owl-loaded","loaded").removeClass("loading");b.removeAttr("data-src");"fade"===d.options.lazyEffect?b.fadeIn(400):b.show();"function"===typeof d.options.afterLazyLoad&&d.options.afterLazyLoad.apply(this, 346[d.$elem])}function c(){f+=1;d.completeImg(b.get(0))||!0===k?e():100>=f?g.setTimeout(c,100):e()}var d=this,f=0,k;"DIV"===b.prop("tagName")?(b.css("background-image","url("+b.data("src")+")"),k=!0):b[0].src=b.data("src");c()},autoHeight:function(){function a(){var a=f(e.$owlItems[e.currentItem]).height();e.wrapperOuter.css("height",a+"px");e.wrapperOuter.hasClass("autoHeight")||g.setTimeout(function(){e.wrapperOuter.addClass("autoHeight")},0)}function b(){d+=1;e.completeImg(c.get(0))?a():100>=d?g.setTimeout(b, 347100):e.wrapperOuter.css("height","")}var e=this,c=f(e.$owlItems[e.currentItem]).find("img"),d;void 0!==c.get(0)?(d=0,b()):a()},completeImg:function(a){return!a.complete||"undefined"!==typeof a.naturalWidth&&0===a.naturalWidth?!1:!0},onVisibleItems:function(){var a;!0===this.options.addClassActive&&this.$owlItems.removeClass("active");this.visibleItems=[];for(a=this.currentItem;a<this.currentItem+this.options.items;a+=1)this.visibleItems.push(a),!0===this.options.addClassActive&&f(this.$owlItems[a]).addClass("active"); 348this.owl.visibleItems=this.visibleItems},transitionTypes:function(a){this.outClass="owl-"+a+"-out";this.inClass="owl-"+a+"-in"},singleItemTransition:function(){var a=this,b=a.outClass,e=a.inClass,c=a.$owlItems.eq(a.currentItem),d=a.$owlItems.eq(a.prevItem),f=Math.abs(a.positionsInArray[a.currentItem])+a.positionsInArray[a.prevItem],g=Math.abs(a.positionsInArray[a.currentItem])+a.itemWidth/2;a.isTransition=!0;a.$owlWrapper.addClass("owl-origin").css({"-webkit-transform-origin":g+"px","-moz-perspective-origin":g+ 349"px","perspective-origin":g+"px"});d.css({position:"relative",left:f+"px"}).addClass(b).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){a.endPrev=!0;d.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend");a.clearTransStyle(d,b)});c.addClass(e).on("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend",function(){a.endCurrent=!0;c.off("webkitAnimationEnd oAnimationEnd MSAnimationEnd animationend");a.clearTransStyle(c,e)})},clearTransStyle:function(a, 350b){a.css({position:"",left:""}).removeClass(b);this.endPrev&&this.endCurrent&&(this.$owlWrapper.removeClass("owl-origin"),this.isTransition=this.endCurrent=this.endPrev=!1)},owlStatus:function(){this.owl={userOptions:this.userOptions,baseElement:this.$elem,userItems:this.$userItems,owlItems:this.$owlItems,currentItem:this.currentItem,prevItem:this.prevItem,visibleItems:this.visibleItems,isTouch:this.browser.isTouch,browser:this.browser,dragDirection:this.dragDirection}},clearEvents:function(){this.$elem.off(".owl owl mousedown.disableTextSelect"); 351f(k).off(".owl owl");f(g).off("resize",this.resizer)},unWrap:function(){0!==this.$elem.children().length&&(this.$owlWrapper.unwrap(),this.$userItems.unwrap().unwrap(),this.owlControls&&this.owlControls.remove());this.clearEvents();this.$elem.attr("style",this.$elem.data("owl-originalStyles")||"").attr("class",this.$elem.data("owl-originalClasses"))},destroy:function(){this.stop();g.clearInterval(this.checkVisible);this.unWrap();this.$elem.removeData()},reinit:function(a){a=f.extend({},this.userOptions, 352a);this.unWrap();this.init(a,this.$elem)},addItem:function(a,b){var e;if(!a)return!1;if(0===this.$elem.children().length)return this.$elem.append(a),this.setVars(),!1;this.unWrap();e=void 0===b||-1===b?-1:b;e>=this.$userItems.length||-1===e?this.$userItems.eq(-1).after(a):this.$userItems.eq(e).before(a);this.setVars()},removeItem:function(a){if(0===this.$elem.children().length)return!1;a=void 0===a||-1===a?-1:a;this.unWrap();this.$userItems.eq(a).remove();this.setVars()}};f.fn.owlCarousel=function(a){return this.each(function(){if(!0=== 353f(this).data("owl-init"))return!1;f(this).data("owl-init",!0);var b=Object.create(l);b.init(a,this);f.data(this,"owlCarousel",b)})};f.fn.owlCarousel.options={items:5,itemsCustom:!1,itemsDesktop:[1199,4],itemsDesktopSmall:[979,3],itemsTablet:[768,2],itemsTabletSmall:!1,itemsMobile:[479,1],singleItem:!1,itemsScaleUp:!1,slideSpeed:200,paginationSpeed:800,rewindSpeed:1E3,autoPlay:!1,stopOnHover:!1,navigation:!1,navigationText:["prev","next"],rewindNav:!0,scrollPerPage:!1,pagination:!0,paginationNumbers:!1, 354responsive:!0,responsiveRefreshRate:200,responsiveBaseWidth:g,baseClass:"owl-carousel",theme:"owl-theme",lazyLoad:!1,lazyFollow:!0,lazyEffect:"fade",autoHeight:!1,jsonPath:!1,jsonSuccess:!1,dragBeforeAnimFinish:!0,mouseDrag:!0,touchDrag:!0,addClassActive:!1,transitionStyle:!1,beforeUpdate:!1,afterUpdate:!1,beforeInit:!1,afterInit:!1,beforeMove:!1,afterMove:!1,afterAction:!1,startDragging:!1,afterLazyLoad:!1}})(jQuery,window,document);
vendor: 11,425 bytes, lines 354-371
354 355/* 356 _ _ _ _ 357 ___| (_) ___| | __ (_)___ 358/ __| | |/ __| |/ / | / __| 359\__ \ | | (__| < _ | \__ \ 360|___/_|_|\___|_|\_(_)/ |___/ 361 |__/ 362 363 Version: 1.6.0 364 Author: Ken Wheeler 365 Website: http://kenwheeler.github.io 366 Docs: http://kenwheeler.github.io/slick 367 Repo: http://github.com/kenwheeler/slick 368 Issues: http://github.com/kenwheeler/slick/issues 369 370 */ 371!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):"undefined"!=typeof exports?module.exports=a(require("jquery")):a(jQuery)}(function(a){"use strict";var b=window.Slick||{};b=function(){function c(c,d){var f,e=this;e.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:a(c),appendDots:a(c),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(b,c){return a('<button type="button" data-role="none" role="button" tabindex="0" />').text(c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},e.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},a.extend(e,e.initials),e.activeBreakpoint=null,e.animType=null,e.animProp=null,e.breakpoints=[],e.breakpointSettings=[],e.cssTransitions=!1,e.focussed=!1,e.interrupted=!1,e.hidden="hidden",e.paused=!0,e.positionProp=null,e.respondTo=null,e.rowCount=1,e.shouldClick=!0,e.$slider=a(c),e.$slidesCache=null,e.transformType=null,e.transitionType=null,e.visibilityChange="visibilitychange",e.windowWidth=0,e.windowTimer=null,f=a(c).data("slick")||{},e.options=a.extend({},e.defaults,d,f),e.currentSlide=e.options.initialSlide,e.originalSettings=e.options,"undefined"!=typeof document.mozHidden?(e.hidden="mozHidden",e.visibilityChange="mozvisibilitychange"):"undefined"!=typeof document.webkitHidden&&(e.hidden="webkitHidden",e.visibilityChange="webkitvisibilitychange"),e.autoPlay=a.proxy(e.autoPlay,e),e.autoPlayClear=a.proxy(e.autoPlayClear,e),e.autoPlayIterator=a.proxy(e.autoPlayIterator,e),e.changeSlide=a.proxy(e.changeSlide,e),e.clickHandler=a.proxy(e.clickHandler,e),e.selectHandler=a.proxy(e.selectHandler,e),e.setPosition=a.proxy(e.setPosition,e),e.swipeHandler=a.proxy(e.swipeHandler,e),e.dragHandler=a.proxy(e.dragHandler,e),e.keyHandler=a.proxy(e.keyHandler,e),e.instanceUid=b++,e.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,e.registerBreakpoints(),e.init(!0)}var b=0;return c}(),b.prototype.activateADA=function(){var a=this;a.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},b.prototype.addSlide=b.prototype.slickAdd=function(b,c,d){var e=this;if("boolean"==typeof c)d=c,c=null;else if(0>c||c>=e.slideCount)return!1;e.unload(),"number"==typeof c?0===c&&0===e.$slides.length?a(b).appendTo(e.$slideTrack):d?a(b).insertBefore(e.$slides.eq(c)):a(b).insertAfter(e.$slides.eq(c)):d===!0?a(b).prependTo(e.$slideTrack):a(b).appendTo(e.$slideTrack),e.$slides=e.$slideTrack.children(this.options.slide),e.$slideTrack.children(this.options.slide).detach(),e.$slideTrack.append(e.$slides),e.$slides.each(function(b,c){a(c).attr("data-slick-index",b)}),e.$slidesCache=e.$slides,e.reinit()},b.prototype.animateHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.animate({height:b},a.options.speed)}},b.prototype.animateSlide=function(b,c){var d={},e=this;e.animateHeight(),e.options.rtl===!0&&e.options.vertical===!1&&(b=-b),e.transformsEnabled===!1?e.options.vertical===!1?e.$slideTrack.animate({left:b},e.options.speed,e.options.easing,c):e.$slideTrack.animate({top:b},e.options.speed,e.options.easing,c):e.cssTransitions===!1?(e.options.rtl===!0&&(e.currentLeft=-e.currentLeft),a({animStart:e.currentLeft}).animate({animStart:b},{duration:e.options.speed,easing:e.options.easing,step:function(a){a=Math.ceil(a),e.options.vertical===!1?(d[e.animType]="translate("+a+"px, 0px)",e.$slideTrack.css(d)):(d[e.animType]="translate(0px,"+a+"px)",e.$slideTrack.css(d))},complete:function(){c&&c.call()}})):(e.applyTransition(),b=Math.ceil(b),e.options.vertical===!1?d[e.animType]="translate3d("+b+"px, 0px, 0px)":d[e.animType]="translate3d(0px,"+b+"px, 0px)",e.$slideTrack.css(d),c&&setTimeout(function(){e.disableTransition(),c.call()},e.options.speed))},b.prototype.getNavTarget=function(){var b=this,c=b.options.asNavFor;return c&&null!==c&&(c=a(c).not(b.$slider)),c},b.prototype.asNavFor=function(b){var c=this,d=c.getNavTarget();null!==d&&"object"==typeof d&&d.each(function(){var c=a(this).slick("getSlick");c.unslicked||c.slideHandler(b,!0)})},b.prototype.applyTransition=function(a){var b=this,c={};b.options.fade===!1?c[b.transitionType]=b.transformType+" "+b.options.speed+"ms "+b.options.cssEase:c[b.transitionType]="opacity "+b.options.speed+"ms "+b.options.cssEase,b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.autoPlay=function(){var a=this;a.autoPlayClear(),a.slideCount>a.options.slidesToShow&&(a.autoPlayTimer=setInterval(a.autoPlayIterator,a.options.autoplaySpeed))},b.prototype.autoPlayClear=function(){var a=this;a.autoPlayTimer&&clearInterval(a.autoPlayTimer)},b.prototype.autoPlayIterator=function(){var a=this,b=a.currentSlide+a.options.slidesToScroll;a.paused||a.interrupted||a.focussed||(a.options.infinite===!1&&(1===a.direction&&a.currentSlide+1===a.slideCount-1?a.direction=0:0===a.direction&&(b=a.currentSlide-a.options.slidesToScroll,a.currentSlide-1===0&&(a.direction=1))),a.slideHandler(b))},b.prototype.buildArrows=function(){var b=this;b.options.arrows===!0&&(b.$prevArrow=a(b.options.prevArrow).addClass("slick-arrow"),b.$nextArrow=a(b.options.nextArrow).addClass("slick-arrow"),b.slideCount>b.options.slidesToShow?(b.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.prependTo(b.options.appendArrows),b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.appendTo(b.options.appendArrows),b.options.infinite!==!0&&b.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):b.$prevArrow.add(b.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},b.prototype.buildDots=function(){var c,d,b=this;if(b.options.dots===!0&&b.slideCount>b.options.slidesToShow){for(b.$slider.addClass("slick-dotted"),d=a("<ul />").addClass(b.options.dotsClass),c=0;c<=b.getDotCount();c+=1)d.append(a("<li />").append(b.options.customPaging.call(this,b,c)));b.$dots=d.appendTo(b.options.appendDots),b.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},b.prototype.buildOut=function(){var b=this;b.$slides=b.$slider.children(b.options.slide+":not(.slick-cloned)").addClass("slick-slide"),b.slideCount=b.$slides.length,b.$slides.each(function(b,c){a(c).attr("data-slick-index",b).data("originalStyling",a(c).attr("style")||"")}),b.$slider.addClass("slick-slider"),b.$slideTrack=0===b.slideCount?a('<div class="slick-track"/>').appendTo(b.$slider):b.$slides.wrapAll('<div class="slick-track"/>').parent(),b.$list=b.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),b.$slideTrack.css("opacity",0),(b.options.centerMode===!0||b.options.swipeToSlide===!0)&&(b.options.slidesToScroll=1),a("img[data-lazy]",b.$slider).not("[src]").addClass("slick-loading"),b.setupInfinite(),b.buildArrows(),b.buildDots(),b.updateDots(),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.options.draggable===!0&&b.$list.addClass("draggable")},b.prototype.buildRows=function(){var b,c,d,e,f,g,h,a=this;if(e=document.createDocumentFragment(),g=a.$slider.children(),a.options.rows>1){for(h=a.options.slidesPerRow*a.options.rows,f=Math.ceil(g.length/h),b=0;f>b;b++){var i=document.createElement("div");for(c=0;c<a.options.rows;c++){var j=document.createElement("div");for(d=0;d<a.options.slidesPerRow;d++){var k=b*h+(c*a.options.slidesPerRow+d);g.get(k)&&j.appendChild(g.get(k))}i.appendChild(j)}e.appendChild(i)}a.$slider.empty().append(e),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},b.prototype.checkResponsive=function(b,c){var e,f,g,d=this,h=!1,i=d.$slider.width(),j=window.innerWidth||a(window).width();if("window"===d.respondTo?g=j:"slider"===d.respondTo?g=i:"min"===d.respondTo&&(g=Math.min(j,i)),d.options.responsive&&d.options.responsive.length&&null!==d.options.responsive){f=null;for(e in d.breakpoints)d.breakpoints.hasOwnProperty(e)&&(d.originalSettings.mobileFirst===!1?g<d.breakpoints[e]&&(f=d.breakpoints[e]):g>d.breakpoints[e]&&(f=d.breakpoints[e]));null!==f?null!==d.activeBreakpoint?(f!==d.activeBreakpoint||c)&&(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):(d.activeBreakpoint=f,"unslick"===d.breakpointSettings[f]?d.unslick(f):(d.options=a.extend({},d.originalSettings,d.breakpointSettings[f]),b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b)),h=f):null!==d.activeBreakpoint&&(d.activeBreakpoint=null,d.options=d.originalSettings,b===!0&&(d.currentSlide=d.options.initialSlide),d.refresh(b),h=f),b||h===!1||d.$slider.trigger("breakpoint",[d,h])}},b.prototype.changeSlide=function(b,c){var f,g,h,d=this,e=a(b.currentTarget);switch(e.is("a")&&b.preventDefault(),e.is("li")||(e=e.closest("li")),h=d.slideCount%d.options.slidesToScroll!==0,f=h?0:(d.slideCount-d.currentSlide)%d.options.slidesToScroll,b.data.message){case"previous":g=0===f?d.options.slidesToScroll:d.options.slidesToShow-f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide-g,!1,c);break;case"next":g=0===f?d.options.slidesToScroll:f,d.slideCount>d.options.slidesToShow&&d.slideHandler(d.currentSlide+g,!1,c);break;case"index":var i=0===b.data.index?0:b.data.index||e.index()*d.options.slidesToScroll;d.slideHandler(d.checkNavigable(i),!1,c),e.children().trigger("focus");break;default:return}},b.prototype.checkNavigable=function(a){var c,d,b=this;if(c=b.getNavigableIndexes(),d=0,a>c[c.length-1])a=c[c.length-1];else for(var e in c){if(a<c[e]){a=d;break}d=c[e]}return a},b.prototype.cleanUpEvents=function(){var b=this;b.options.dots&&null!==b.$dots&&a("li",b.$dots).off("click.slick",b.changeSlide).off("mouseenter.slick",a.proxy(b.interrupt,b,!0)).off("mouseleave.
371slick",a.proxy(b.interrupt,b,!1)),b.$slider.off("focus.slick blur.slick"),b.options.arrows===!0&&b.slideCount>b.options.slidesToShow&&(b.$prevArrow&&b.$prevArrow.off("click.slick",b.changeSlide),b.$nextArrow&&b.$nextArrow.off("click.slick",b.changeSlide)),b.$list.off("touchstart.slick mousedown.slick",b.swipeHandler),b.$list.off("touchmove.slick mousemove.slick",b.swipeHandler),b.$list.off("touchend.slick mouseup.slick",b.swipeHandler),b.$list.off("touchcancel.slick mouseleave.slick",b.swipeHandler),b.$list.off("click.slick",b.clickHandler),a(document).off(b.visibilityChange,b.visibility),b.cleanUpSlideEvents(),b.options.accessibility===!0&&b.$list.off("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().off("click.slick",b.selectHandler),a(window).off("orientationchange.slick.slick-"+b.instanceUid,b.orientationChange),a(window).off("resize.slick.slick-"+b.instanceUid,b.resize),a("[draggable!=true]",b.$slideTrack).off("dragstart",b.preventDefault),a(window).off("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).off("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.cleanUpSlideEvents=function(){var b=this;b.$list.off("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.off("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.cleanUpRows=function(){var b,a=this;a.options.rows>1&&(b=a.$slides.children().children(),b.removeAttr("style"),a.$slider.empty().append(b))},b.prototype.clickHandler=function(a){var b=this;b.shouldClick===!1&&(a.stopImmediatePropagation(),a.stopPropagation(),a.preventDefault())},b.prototype.destroy=function(b){var c=this;c.autoPlayClear(),c.touchObject={},c.cleanUpEvents(),a(".slick-cloned",c.$slider).detach(),c.$dots&&c.$dots.remove(),c.$prevArrow&&c.$prevArrow.length&&(c.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.prevArrow)&&c.$prevArrow.remove()),c.$nextArrow&&c.$nextArrow.length&&(c.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),c.htmlExpr.test(c.options.nextArrow)&&c.$nextArrow.remove()),c.$slides&&(c.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function(){a(this).attr("style",a(this).data("originalStyling"))}),c.$slideTrack.children(this.options.slide).detach(),c.$slideTrack.detach(),c.$list.detach(),c.$slider.append(c.$slides)),c.cleanUpRows(),c.$slider.removeClass("slick-slider"),c.$slider.removeClass("slick-initialized"),c.$slider.removeClass("slick-dotted"),c.unslicked=!0,b||c.$slider.trigger("destroy",[c])},b.prototype.disableTransition=function(a){var b=this,c={};c[b.transitionType]="",b.options.fade===!1?b.$slideTrack.css(c):b.$slides.eq(a).css(c)},b.prototype.fadeSlide=function(a,b){var c=this;c.cssTransitions===!1?(c.$slides.eq(a).css({zIndex:c.options.zIndex}),c.$slides.eq(a).animate({opacity:1},c.options.speed,c.options.easing,b)):(c.applyTransition(a),c.$slides.eq(a).css({opacity:1,zIndex:c.options.zIndex}),b&&setTimeout(function(){c.disableTransition(a),b.call()},c.options.speed))},b.prototype.fadeSlideOut=function(a){var b=this;b.cssTransitions===!1?b.$slides.eq(a).animate({opacity:0,zIndex:b.options.zIndex-2},b.options.speed,b.options.easing):(b.applyTransition(a),b.$slides.eq(a).css({opacity:0,zIndex:b.options.zIndex-2}))},b.prototype.filterSlides=b.prototype.slickFilter=function(a){var b=this;null!==a&&(b.$slidesCache=b.$slides,b.unload(),b.$slideTrack.children(this.options.slide).detach(),b.$slidesCache.filter(a).appendTo(b.$slideTrack),b.reinit())},b.prototype.focusHandler=function(){var b=this;b.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",function(c){c.stopImmediatePropagation();var d=a(this);setTimeout(function(){b.options.pauseOnFocus&&(b.focussed=d.is(":focus"),b.autoPlay())},0)})},b.prototype.getCurrent=b.prototype.slickCurrentSlide=function(){var a=this;return a.currentSlide},b.prototype.getDotCount=function(){var a=this,b=0,c=0,d=0;if(a.options.infinite===!0)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else if(a.options.centerMode===!0)d=a.slideCount;else if(a.options.asNavFor)for(;b<a.slideCount;)++d,b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;else d=1+Math.ceil((a.slideCount-a.options.slidesToShow)/a.options.slidesToScroll);return d-1},b.prototype.getLeft=function(a){var c,d,f,b=this,e=0;return b.slideOffset=0,d=b.$slides.first().outerHeight(!0),b.options.infinite===!0?(b.slideCount>b.options.slidesToShow&&(b.slideOffset=b.slideWidth*b.options.slidesToShow*-1,e=d*b.options.slidesToShow*-1),b.slideCount%b.options.slidesToScroll!==0&&a+b.options.slidesToScroll>b.slideCount&&b.slideCount>b.options.slidesToShow&&(a>b.slideCount?(b.slideOffset=(b.options.slidesToShow-(a-b.slideCount))*b.slideWidth*-1,e=(b.options.slidesToShow-(a-b.slideCount))*d*-1):(b.slideOffset=b.slideCount%b.options.slidesToScroll*b.slideWidth*-1,e=b.slideCount%b.options.slidesToScroll*d*-1))):a+b.o
vendor: 4,100 bytes, line 371
371ptions.slidesToShow>b.slideCount&&(b.slideOffset=(a+b.options.slidesToShow-b.slideCount)*b.slideWidth,e=(a+b.options.slidesToShow-b.slideCount)*d),b.slideCount<=b.options.slidesToShow&&(b.slideOffset=0,e=0),b.options.centerMode===!0&&b.options.infinite===!0?b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)-b.slideWidth:b.options.centerMode===!0&&(b.slideOffset=0,b.slideOffset+=b.slideWidth*Math.floor(b.options.slidesToShow/2)),c=b.options.vertical===!1?a*b.slideWidth*-1+b.slideOffset:a*d*-1+e,b.options.variableWidth===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,b.options.centerMode===!0&&(f=b.slideCount<=b.options.slidesToShow||b.options.infinite===!1?b.$slideTrack.children(".slick-slide").eq(a):b.$slideTrack.children(".slick-slide").eq(a+b.options.slidesToShow+1),c=b.options.rtl===!0?f[0]?-1*(b.$slideTrack.width()-f[0].offsetLeft-f.width()):0:f[0]?-1*f[0].offsetLeft:0,c+=(b.$list.width()-f.outerWidth())/2)),c},b.prototype.getOption=b.prototype.slickGetOption=function(a){var b=this;return b.options[a]},b.prototype.getNavigableIndexes=function(){var e,a=this,b=0,c=0,d=[];for(a.options.infinite===!1?e=a.slideCount:(b=-1*a.options.slidesToScroll,c=-1*a.options.slidesToScroll,e=2*a.slideCount);e>b;)d.push(b),b=c+a.options.slidesToScroll,c+=a.options.slidesToScroll<=a.options.slidesToShow?a.options.slidesToScroll:a.options.slidesToShow;return d},b.prototype.getSlick=function(){return this},b.prototype.getSlideCount=function(){var c,d,e,b=this;return e=b.options.centerMode===!0?b.slideWidth*Math.floor(b.options.slidesToShow/2):0,b.options.swipeToSlide===!0?(b.$slideTrack.find(".slick-slide").each(function(c,f){return f.offsetLeft-e+a(f).outerWidth()/2>-1*b.swipeLeft?(d=f,!1):void 0}),c=Math.abs(a(d).attr("data-slick-index")-b.currentSlide)||1):b.options.slidesToScroll},b.prototype.goTo=b.prototype.slickGoTo=function(a,b){var c=this;c.changeSlide({data:{message:"index",index:parseInt(a)}},b)},b.prototype.init=function(b){var c=this;a(c.$slider).hasClass("slick-initialized")||(a(c.$slider).addClass("slick-initialized"),c.buildRows(),c.buildOut(),c.setProps(),c.startLoad(),c.loadSlider(),c.initializeEvents(),c.updateArrows(),c.updateDots(),c.checkResponsive(!0),c.focusHandler()),b&&c.$slider.trigger("init",[c]),c.options.accessibility===!0&&c.initADA(),c.options.autoplay&&(c.paused=!1,c.autoPlay())},b.prototype.initADA=function(){var b=this;b.$slides.add(b.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),b.$slideTrack.attr("role","listbox"),b.$slides.not(b.$slideTrack.find(".slick-cloned")).each(function(c){a(this).attr({role:"option","aria-describedby":"slick-slide"+b.instanceUid+c})}),null!==b.$dots&&b.$dots.attr("role","tablist").find("li").each(function(c){a(this).attr({role:"presentation","aria-selected":"false","aria-controls":"navigation"+b.instanceUid+c,id:"slick-slide"+b.instanceUid+c})}).first().attr("aria-selected","true").end().find("button").attr("role","button").end().closest("div").attr("role","toolbar"),b.activateADA()},b.prototype.initArrowEvents=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},a.changeSlide),a.$nextArrow.off("click.slick").on("click.slick",{message:"next"},a.changeSlide))},b.prototype.initDotEvents=function(){var b=this;b.options.dots===!0&&b.slideCount>b.options.slidesToShow&&a("li",b.$dots).on("click.slick",{message:"index"},b.changeSlide),b.options.dots===!0&&b.options.pauseOnDotsHover===!0&&a("li",b.$dots).on("mouseenter.slick",a.proxy(b.interrupt,b,!0)).on("mouseleave.slick",a.proxy(b.interrupt,b,!1))},b.prototype.initSlideEvents=function(){var b=this;b.options.pauseOnHover&&(b.$list.on("mouseenter.slick",a.proxy(b.interrupt,b,!0)),b.$list.on("mouseleave.
371slick",a.proxy(b.interrupt,b,!1)))},b.prototype.initializeEvents=function(){var b=this;b.initArrowEvents(),b.initDotEvents(),b.initSlideEvents(),b.$list.on("touchstart.slick mousedown.slick",{action:"start"},b.swipeHandler),b.$list.on("touchmove.slick mousemove.slick",{action:"move"},b.swipeHandler),b.$list.on("touchend.slick mouseup.slick",{action:"end"},b.swipeHandler),b.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},b.swipeHandler),b.$list.on("click.slick",b.clickHandler),a(document).on(b.visibilityChange,a.proxy(b.visibility,b)),b.options.accessibility===!0&&b.$list.on("keydown.slick",b.keyHandler),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),a(window).on("orientationchange.slick.slick-"+b.instanceUid,a.proxy(b.orientationChange,b)),a(window).on("resize.slick.slick-"+b.instanceUid,a.proxy(b.resize,b)),a("[draggable!=true]",b.$slideTrack).on("dragstart",b.preventDefault),a(window).on("load.slick.slick-"+b.instanceUid,b.setPosition),a(document).on("ready.slick.slick-"+b.instanceUid,b.setPosition)},b.prototype.initUI=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.show(),a.$nextArrow.show()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.show()},b.prototype.keyHandler=function(a){var b=this;a.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===a.keyCode&&b.options.accessibility===!0?b.changeSlide({data:{message:b.options.rtl===!0?"next":"previous"}}):39===a.keyCode&&b.options.accessibility===!0&&b.changeSlide({data:{message:b.options.rtl===!0?"previous":"next"}}))},b.prototype.lazyLoad=function(){function g(c){a("img[data-lazy]",c).each(function(){var c=a(this),d=a(this).attr("data-lazy"),e=document.createElement("img");e.onload=function(){c.animate({opacity:0}
vendor: 4,284 bytes, line 371
371,100,function(){c.attr("src",d).animate({opacity:1},200,function(){c.removeAttr("data-lazy").removeClass("slick-loading")}),b.$slider.trigger("lazyLoaded",[b,c,d])})},e.onerror=function(){c.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),b.$slider.trigger("lazyLoadError",[b,c,d])},e.src=d})}var c,d,e,f,b=this;b.options.centerMode===!0?b.options.infinite===!0?(e=b.currentSlide+(b.options.slidesToShow/2+1),f=e+b.options.slidesToShow+2):(e=Math.max(0,b.currentSlide-(b.options.slidesToShow/2+1)),f=2+(b.options.slidesToShow/2+1)+b.currentSlide):(e=b.options.infinite?b.options.slidesToShow+b.currentSlide:b.currentSlide,f=Math.ceil(e+b.options.slidesToShow),b.options.fade===!0&&(e>0&&e--,f<=b.slideCount&&f++)),c=b.$slider.find(".slick-slide").slice(e,f),g(c),b.slideCount<=b.options.slidesToShow?(d=b.$slider.find(".slick-slide"),g(d)):b.currentSlide>=b.slideCount-b.options.slidesToShow?(d=b.$slider.find(".slick-cloned").slice(0,b.options.slidesToShow),g(d)):0===b.currentSlide&&(d=b.$slider.find(".slick-cloned").slice(-1*b.options.slidesToShow),g(d))},b.prototype.loadSlider=function(){var a=this;a.setPosition(),a.$slideTrack.css({opacity:1}),a.$slider.removeClass("slick-loading"),a.initUI(),"progressive"===a.options.lazyLoad&&a.progressiveLazyLoad()},b.prototype.next=b.prototype.slickNext=function(){var a=this;a.changeSlide({data:{message:"next"}})},b.prototype.orientationChange=function(){var a=this;a.checkResponsive(),a.setPosition()},b.prototype.pause=b.prototype.slickPause=function(){var a=this;a.autoPlayClear(),a.paused=!0},b.prototype.play=b.prototype.slickPlay=function(){var a=this;a.autoPlay(),a.options.autoplay=!0,a.paused=!1,a.focussed=!1,a.interrupted=!1},b.prototype.postSlide=function(a){var b=this;b.unslicked||(b.$slider.trigger("afterChange",[b,a]),b.animating=!1,b.setPosition(),b.swipeLeft=null,b.options.autoplay&&b.autoPlay(),b.options.accessibility===!0&&b.initADA())},b.prototype.prev=b.prototype.slickPrev=function(){var a=this;a.changeSlide({data:{message:"previous"}})},b.prototype.preventDefault=function(a){a.preventDefault()},b.prototype.progressiveLazyLoad=function(b){b=b||1;var e,f,g,c=this,d=a("img[data-lazy]",c.$slider);d.length?(e=d.first(),f=e.attr("data-lazy"),g=document.createElement("img"),g.onload=function(){e.attr("src",f).removeAttr("data-lazy").removeClass("slick-loading"),c.options.adaptiveHeight===!0&&c.setPosition(),c.$slider.trigger("lazyLoaded",[c,e,f]),c.progressiveLazyLoad()},g.onerror=function(){3>b?setTimeout(function(){c.progressiveLazyLoad(b+1)},500):(e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),c.$slider.trigger("lazyLoadError",[c,e,f]),c.progressiveLazyLoad())},g.src=f):c.$slider.trigger("allImagesLoaded",[c])},b.prototype.refresh=function(b){var d,e,c=this;e=c.slideCount-c.options.slidesToShow,!c.options.infinite&&c.currentSlide>e&&(c.currentSlide=e),c.slideCount<=c.options.slidesToShow&&(c.currentSlide=0),d=c.currentSlide,c.destroy(!0),a.extend(c,c.initials,{currentSlide:d}),c.init(),b||c.changeSlide({data:{message:"index",index:d}},!1)},b.prototype.registerBreakpoints=function(){var c,d,e,b=this,f=b.options.responsive||null;if("array"===a.type(f)&&f.length){b.respondTo=b.options.respondTo||"window";for(c in f)if(e=b.breakpoints.length-1,d=f[c].breakpoint,f.hasOwnProperty(c)){for(;e>=0;)b.breakpoints[e]&&b.breakpoints[e]===d&&b.breakpoints.splice(e,1),e--;b.breakpoints.push(d),b.breakpointSettings[d]=f[c].settings}b.breakpoints.sort(function(a,c){return b.options.mobileFirst?a-c:c-a})}},b.prototype.reinit=function(){var b=this;b.$slides=b.$slideTrack.children(b.options.slide).addClass("slick-slide"),b.slideCount=b.$slides.length,b.currentSlide>=b.slideCount&&0!==b.currentSlide&&(b.currentSlide=b.currentSlide-b.options.slidesToScroll),b.slideCount<=b.options.slidesToShow&&(b.currentSlide=0),b.registerBreakpoints(),b.setProps(),b.setupInfinite(),b.buildArrows(),b.updateArrows(),b.initArrowEvents(),b.buildDots(),b.updateDots(),b.initDotEvents(),b.cleanUpSlideEvents(),b.initSlideEvents(),b.checkResponsive(!1,!0),b.options.focusOnSelect===!0&&a(b.$slideTrack).children().on("click.slick",b.selectHandler),b.setSlideClasses("number"==typeof b.currentSlide?b.currentSlide:0),b.setPosition(),b.focu
vendor: 2,346 bytes, line 371
371sHandler(),b.paused=!b.options.autoplay,b.autoPlay(),b.$slider.trigger("reInit",[b])},b.prototype.resize=function(){var b=this;a(window).width()!==b.windowWidth&&(clearTimeout(b.windowDelay),b.windowDelay=window.setTimeout(function(){b.windowWidth=a(window).width(),b.checkResponsive(),b.unslicked||b.setPosition()},50))},b.prototype.removeSlide=b.prototype.slickRemove=function(a,b,c){var d=this;return"boolean"==typeof a?(b=a,a=b===!0?0:d.slideCount-1):a=b===!0?--a:a,d.slideCount<1||0>a||a>d.slideCount-1?!1:(d.unload(),c===!0?d.$slideTrack.children().remove():d.$slideTrack.children(this.options.slide).eq(a).remove(),d.$slides=d.$slideTrack.children(this.options.slide),d.$slideTrack.children(this.options.slide).detach(),d.$slideTrack.append(d.$slides),d.$slidesCache=d.$slides,void d.reinit())},b.prototype.setCSS=function(a){var d,e,b=this,c={};b.options.rtl===!0&&(a=-a),d="left"==b.positionProp?Math.ceil(a)+"px":"0px",e="top"==b.positionProp?Math.ceil(a)+"px":"0px",c[b.positionProp]=a,b.transformsEnabled===!1?b.$slideTrack.css(c):(c={},b.cssTransitions===!1?(c[b.animType]="translate("+d+", "+e+")",b.$slideTrack.css(c)):(c[b.animType]="translate3d("+d+", "+e+", 0px)",b.$slideTrack.css(c)))},b.prototype.setDimensions=function(){var a=this;a.options.vertical===!1?a.options.centerMode===!0&&a.$list.css({padding:"0px "+a.options.centerPadding}):(a.$list.height(a.$slides.first().outerHeight(!0)*a.options.slidesToShow),a.options.centerMode===!0&&a.$list.css({padding:a.options.centerPadding+" 0px"})),a.listWidth=a.$list.width(),a.listHeight=a.$list.height(),a.options.vertical===!1&&a.options.variableWidth===!1?(a.slideWidth=Math.ceil(a.listWidth/a.options.slidesToShow),a.$slideTrack.width(Math.ceil(a.slideWidth*a.$slideTrack.children(".slick-slide").length))):a.options.variableWidth===!0?a.$slideTrack.width(5e3*a.slideCount):(a.slideWidth=Math.ceil(a.listWidth),a.$slideTrack.height(Math.ceil(a.$slides.first().outerHeight(!0)*a.$slideTrack.children(".slick-slide").length)));var b=a.$slides.first().outerWidth(!0)-a.$slides.first().width();a.options.variableWidth===!1&&a.$slideTrack.children(".slick-slide").width(a.slideWidth-b)},b.prototype.setFade=function(){var c,b=this;b.$slides.each(function(d,e){c=b.slideWidth*d*-1,b.options.rtl===!0?a(e).css({position:"relative",right:c,top:0,zIndex:b.options.zIndex-2,opacity:0}
vendor: 3,177 bytes, line 371
371):a(e).css({position:"relative",left:c,top:0,zIndex:b.options.zIndex-2,opacity:0})}),b.$slides.eq(b.currentSlide).css({zIndex:b.options.zIndex-1,opacity:1})},b.prototype.setHeight=function(){var a=this;if(1===a.options.slidesToShow&&a.options.adaptiveHeight===!0&&a.options.vertical===!1){var b=a.$slides.eq(a.currentSlide).outerHeight(!0);a.$list.css("height",b)}},b.prototype.setOption=b.prototype.slickSetOption=function(){var c,d,e,f,h,b=this,g=!1;if("object"===a.type(arguments[0])?(e=arguments[0],g=arguments[1],h="multiple"):"string"===a.type(arguments[0])&&(e=arguments[0],f=arguments[1],g=arguments[2],"responsive"===arguments[0]&&"array"===a.type(arguments[1])?h="responsive":"undefined"!=typeof arguments[1]&&(h="single")),"single"===h)b.options[e]=f;else if("multiple"===h)a.each(e,function(a,c){b.options[a]=c});else if("responsive"===h)for(d in f)if("array"!==a.type(b.options.responsive))b.options.responsive=[f[d]];else{for(c=b.options.responsive.length-1;c>=0;)b.options.responsive[c].breakpoint===f[d].breakpoint&&b.options.responsive.splice(c,1),c--;b.options.responsive.push(f[d])}g&&(b.unload(),b.reinit())},b.prototype.setPosition=function(){var a=this;a.setDimensions(),a.setHeight(),a.options.fade===!1?a.setCSS(a.getLeft(a.currentSlide)):a.setFade(),a.$slider.trigger("setPosition",[a])},b.prototype.setProps=function(){var a=this,b=document.body.style;a.positionProp=a.options.vertical===!0?"top":"left","top"===a.positionProp?a.$slider.addClass("slick-vertical"):a.$slider.removeClass("slick-vertical"),(void 0!==b.WebkitTransition||void 0!==b.MozTransition||void 0!==b.msTransition)&&a.options.useCSS===!0&&(a.cssTransitions=!0),a.options.fade&&("number"==typeof a.options.zIndex?a.options.zIndex<3&&(a.options.zIndex=3):a.options.zIndex=a.defaults.zIndex),void 0!==b.OTransform&&(a.animType="OTransform",a.transformType="-o-transform",a.transitionType="OTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.MozTransform&&(a.animType="MozTransform",a.transformType="-moz-transform",a.transitionType="MozTransition",void 0===b.perspectiveProperty&&void 0===b.MozPerspective&&(a.animType=!1)),void 0!==b.webkitTransform&&(a.animType="webkitTransform",a.transformType="-webkit-transform",a.transitionType="webkitTransition",void 0===b.perspectiveProperty&&void 0===b.webkitPerspective&&(a.animType=!1)),void 0!==b.msTransform&&(a.animType="msTransform",a.transformType="-ms-transform",a.transitionType="msTransition",void 0===b.msTransform&&(a.animType=!1)),void 0!==b.transform&&a.animType!==!1&&(a.animType="transform",a.transformType="transform",a.transitionType="transition"),a.transformsEnabled=a.options.useTransform&&null!==a.animType&&a.animType!==!1},b.prototype.setSlideClasses=function(a){var c,d,e,f,b=this;d=b.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),b.$slides.eq(a).addClass("slick-current"),b.options.centerMode===!0?(c=Math.floor(b.options.slidesToShow/2),b.options.infinite===!0&&(a>=c&&a<=b.slideCount-1-c?b.$slides.slice(a-c,a+c+1).addClass("slick-active").attr("aria-hidden","false"):(e=b.options.slidesToShow+a,
vendor: 1,607 bytes, line 372
372d.slice(e-c+1,e+c+2).addClass("slick-active").attr("aria-hidden","false")),0===a?d.eq(d.length-1-b.options.slidesToShow).addClass("slick-center"):a===b.slideCount-1&&d.eq(b.options.slidesToShow).addClass("slick-center")),b.$slides.eq(a).addClass("slick-center")):a>=0&&a<=b.slideCount-b.options.slidesToShow?b.$slides.slice(a,a+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):d.length<=b.options.slidesToShow?d.addClass("slick-active").attr("aria-hidden","false"):(f=b.slideCount%b.options.slidesToShow,e=b.options.infinite===!0?b.options.slidesToShow+a:a,b.options.slidesToShow==b.options.slidesToScroll&&b.slideCount-a<b.options.slidesToShow?d.slice(e-(b.options.slidesToShow-f),e+f).addClass("slick-active").attr("aria-hidden","false"):d.slice(e,e+b.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===b.options.lazyLoad&&b.lazyLoad()},b.prototype.setupInfinite=function(){var c,d,e,b=this;if(b.options.fade===!0&&(b.options.centerMode=!1),b.options.infinite===!0&&b.options.fade===!1&&(d=null,b.slideCount>b.options.slidesToShow)){for(e=b.options.centerMode===!0?b.options.slidesToShow+1:b.options.slidesToShow,c=b.slideCount;c>b.slideCount-e;c-=1)d=c-1,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d-b.slideCount).prependTo(b.$slideTrack).addClass("slick-cloned");for(c=0;e>c;c+=1)d=c,a(b.$slides[d]).clone(!0).attr("id","").attr("data-slick-index",d+b.slideCount).appendTo(b.$slideTrack).addClass("slick-cloned");b.$slideTrack.find(".slick-cloned").find("[id]").each(function(){a(this).attr("id","")})}},b.prototype.
vendor: 4,540 bytes, line 372
372interrupt=function(a){var b=this;a||b.autoPlay(),b.interrupted=a},b.prototype.selectHandler=function(b){var c=this,d=a(b.target).is(".slick-slide")?a(b.target):a(b.target).parents(".slick-slide"),e=parseInt(d.attr("data-slick-index"));return e||(e=0),c.slideCount<=c.options.slidesToShow?(c.setSlideClasses(e),void c.asNavFor(e)):void c.slideHandler(e)},b.prototype.slideHandler=function(a,b,c){var d,e,f,g,j,h=null,i=this;return b=b||!1,i.animating===!0&&i.options.waitForAnimate===!0||i.options.fade===!0&&i.currentSlide===a||i.slideCount<=i.options.slidesToShow?void 0:(b===!1&&i.asNavFor(a),d=a,h=i.getLeft(d),g=i.getLeft(i.currentSlide),i.currentLeft=null===i.swipeLeft?g:i.swipeLeft,i.options.infinite===!1&&i.options.centerMode===!1&&(0>a||a>i.getDotCount()*i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):i.options.infinite===!1&&i.options.centerMode===!0&&(0>a||a>i.slideCount-i.options.slidesToScroll)?void(i.options.fade===!1&&(d=i.currentSlide,c!==!0?i.animateSlide(g,function(){i.postSlide(d)}):i.postSlide(d))):(i.options.autoplay&&clearInterval(i.autoPlayTimer),e=0>d?i.slideCount%i.options.slidesToScroll!==0?i.slideCount-i.slideCount%i.options.slidesToScroll:i.slideCount+d:d>=i.slideCount?i.slideCount%i.options.slidesToScroll!==0?0:d-i.slideCount:d,i.animating=!0,i.$slider.trigger("beforeChange",[i,i.currentSlide,e]),f=i.currentSlide,i.currentSlide=e,i.setSlideClasses(i.currentSlide),i.options.asNavFor&&(j=i.getNavTarget(),j=j.slick("getSlick"),j.slideCount<=j.options.slidesToShow&&j.setSlideClasses(i.currentSlide)),i.updateDots(),i.updateArrows(),i.options.fade===!0?(c!==!0?(i.fadeSlideOut(f),i.fadeSlide(e,function(){i.postSlide(e)})):i.postSlide(e),void i.animateHeight()):void(c!==!0?i.animateSlide(h,function(){i.postSlide(e)}):i.postSlide(e))))},b.prototype.startLoad=function(){var a=this;a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&(a.$prevArrow.hide(),a.$nextArrow.hide()),a.options.dots===!0&&a.slideCount>a.options.slidesToShow&&a.$dots.hide(),a.$slider.addClass("slick-loading")},b.prototype.swipeDirection=function(){var a,b,c,d,e=this;return a=e.touchObject.startX-e.touchObject.curX,b=e.touchObject.startY-e.touchObject.curY,c=Math.atan2(b,a),d=Math.round(180*c/Math.PI),0>d&&(d=360-Math.abs(d)),45>=d&&d>=0?e.options.rtl===!1?"left":"right":360>=d&&d>=315?e.options.rtl===!1?"left":"right":d>=135&&225>=d?e.options.rtl===!1?"right":"left":e.options.verticalSwiping===!0?d>=35&&135>=d?"down":"up":"vertical"},b.prototype.swipeEnd=function(a){var c,d,b=this;if(b.dragging=!1,b.interrupted=!1,b.shouldClick=b.touchObject.swipeLength>10?!1:!0,void 0===b.touchObject.curX)return!1;if(b.touchObject.edgeHit===!0&&b.$slider.trigger("edge",[b,b.swipeDirection()]),b.touchObject.swipeLength>=b.touchObject.minSwipe){switch(d=b.swipeDirection()){case"left":case"down":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide+b.getSlideCount()):b.currentSlide+b.getSlideCount(),b.currentDirection=0;break;case"right":case"up":c=b.options.swipeToSlide?b.checkNavigable(b.currentSlide-b.getSlideCount()):b.currentSlide-b.getSlideCount(),b.currentDirection=1}"vertical"!=d&&(b.slideHandler(c),b.touchObject={},b.$slider.trigger("swipe",[b,d]))}else b.touchObject.startX!==b.touchObject.curX&&(b.slideHandler(b.currentSlide),b.touchObject={})},b.prototype.swipeHandler=function(a){var b=this;if(!(b.options.swipe===!1||"ontouchend"in document&&b.options.swipe===!1||b.options.draggable===!1&&-1!==a.type.indexOf("mouse")))switch(b.touchObject.fingerCount=a.originalEvent&&void 0!==a.originalEvent.touches?a.originalEvent.touches.length:1,b.touchObject.minSwipe=b.listWidth/b.options.touchThreshold,b.options.verticalSwiping===!0&&(b.touchObject.minSwipe=b.listHeight/b.options.touchThreshold),a.data.action){case"start":b.swipeStart(a);break;case"move":b.swipeMove(a);break;case"end":b.swipeEnd(a)}},b.prototype.swipeMove=function(a){var d,e,f,g,h,b=this;return h=void 0!==a.originalEvent?a.originalEvent.touches:null,!b.dragging||h&&1!==h.length?!1:(d=b.getLeft(b.currentSlide),b.touchObject.curX=void 0!==h?h[0].pageX:a.clientX,b.touchObject.curY=void 0!==h?h[0].pageY:a.clientY,b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curX-b.touchObject.startX,2))),b.options.verticalSwiping===!0&&(b.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(b.touchObject.curY-b.touchObject.startY,2)))),e=b.swipeDirection(),"vertical"!==e?(void 0!==a.originalEvent&&b.touchObject.swipeLength>
3724&&a.preventDefault(),g=(b.options.rtl===!1?1:-1)*(b.touchObject.curX>b.touchObject.startX?1:-1),b.options.verticalSwiping===!0&&(g=b.touchObject.curY>b.touchObject.startY?1:-1),f=b.touchObject.swipeLength,b.touchObject.edgeHit=!1,b.options.infinite===!1&&(0===b.currentSlide&&"right"===e||b.currentSlide>=b.getDotCount()&&"left"===e)&&(f=b.touchObject.swipeLength*b.options.edgeFriction,b.touchObject.edgeHit=!0),b.options.vertical===!1?b.swipeLeft=d+f*g:b.swipeLeft=d+f*(b.$list.height()/b.listWidth)*g,b.options.verticalSwiping===!0&&(b.swipeLeft=d+f*g),b.options.fade===!0||b.options.touchMove===!1?!1:b.animating===!0?(b.swipeLeft=null,!1):void b.setCSS(b.swipeLeft)):void 0)},b.prototype.swipeStart=function(a){var c,b=this;return b.interrupted=!0,1!==b.touchObject.fingerCount||b.slideCount<=b.options.slidesToShow?(b.touchObject={},!1):(void 0!==a.originalEvent&&void 0!==a.originalEvent.touches&&(c=a.originalEvent.touches[0]),b.touchObject.startX=b.touchObject.curX=void 0!==c?c.pageX:a.clientX,b.touchObject.startY=b.touchObject.curY=void 0!==c?c.pageY:a.clientY,void(b.dragging=!0))},b.prototype.unfilterSlides=b.prototype.slickUnfilter=function(){var a=this;null!==a.$slidesCache&&(a.unload(),a.$slideTrack.children(this.options.slide).detach(),a.$slidesCache.appendTo(a.$slideTrack),a.reinit())},b.prototype.unload=function(){var b=this;a(".slick-cloned",b.$slider).remove(),b.$dots&&b.$dots.remove(),b.$prevArrow&&b.htmlExpr.test(b.options.prevArrow)&&b.$prevArrow.remove(),b.$nextArrow&&b.htmlExpr.test(b.options.nextArrow)&&b.$nextArrow.remove(),b.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},b.prototype.unslick=function(a){var b=this;b.$slider.trigger("unslick",[b,a]),b.destroy()},b.prototype.updateArrows=function(){var b,a=this;b=Math.floor(a.options.slidesToShow/2),a.options.arrows===!0&&a.slideCount>a.options.slidesToShow&&!a.options.infinite&&(a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===a.currentSlide?(a.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-a.options.slidesToShow&&a.options.centerMode===!1?(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):a.currentSlide>=a.slideCount-1&&a.options.centerMode===!0&&(a.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),a.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},b.prototype.updateDots=function(){var a=this;null!==a.$dots&&(a.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true"),a.$dots.find("li").eq(Math.floor(a.currentSlide/a.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false"))},b.prototype.visibility=function(){var a=this;a.options.autoplay&&(document[a.hidden]?a.interrupted=!0:a.interrupted=!1)},a.fn.slick=function(){var f,g,a=this,c=arguments[0],d=Array.prototype.slice.call(arguments,1),e=a.length;for(f=0;e>f;f++)if("object"==typeof c||"undefined"==typeof c?a[f].slick=new b(a[f],c):g=a[f].slick[c].apply(a[f].slick,d),"undefined"!=typeof g)return g;return a}}); 373/** 374 * @license 375 * Video.js 7.15.4 <http://videojs.com/> 376 * Copyright Brightcove, Inc. <https://www.brightcove.com/> 377 * Available under Apache License Version 2.0 378 * <https://github.com/videojs/video.js/blob/main/LICENSE> 379 * 380 * Includes vtt.js <https://github.com/mozilla/vtt.js> 381 * Available under Apache License Version 2.0 382 * <https://github.com/mozilla/vtt.js/blob/main/LICENSE> 383 */ 384!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).videojs=t()}(this,function(){"use strict";var u="7.15.4",e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e,t){return e(t={exports:{}},t.exports),t.exports}for(var i,_="undefined"!=typeof window?window:"undefined"!=typeof e?e:"undefined"!=typeof self?self:{},n={},a=function(e,t){return n[e]=n[e]||[],t&&(n[e]=n[e].concat(t)),n[e]},r=function(e,t){t=a(e).indexOf(t);return!(t<=-1)&&(n[e]=n[e].slice(),n[e].splice(t,1),!0)},s="undefined"!=typeof e?e:"undefined"!=typeof window?window:{},o="undefined"!=typeof document?document:(o=s["__GLOBAL_DOCUMENT_CACHE@4"])||(s["__GLOBAL_DOCUMENT_CACHE@4"]={}),d=o,l={prefixed:!0},c=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],h=c[0],p=0;p<c.length;
384p++)if(c[p][1]in d){i=c[p];break}if(i){for(var f=0;f<i.length;f++)l[h[f]]=i[f];l.prefixed=i[0]!==h[0]}var m=[],g=function(a,s){return function(e,t,i){var n,r=s.levels[t],t=new RegExp("^("+r+")$");"log"!==e&&i.unshift(e.toUpperCase()+":"),i.unshift(a+":"),m&&(m.push([].concat(i)),n=m.length-1e3,m.splice(0,0<n?n:0)),!_.console||(n=!(n=_.console[e])&&"debug"===e?_.console.info||_.console.log:n)&&r&&t.test(e)&&n[Array.isArray(i)?"apply":"call"](_.console,i)}};var y=function t(i){function n(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];a("log",r,t)}var r="info",a=g(i,n);return n.createLogger=function(e){return t(i+": "+e)},n.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},n.level=function(e){if("string"==typeof e){if(!n.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},(n.history=function(){return m?[].concat(m):[]}).filter=function(t){return(m||[]).filter(function(e){return new RegExp(".*"+t+".*").test(e[0])})},n.history.clear=function(){m&&(m.length=0)},n.history.disable=function(){null!==m&&(m.length=0,m=null)},n.history.enable=function(){null===m&&(m=[])},n.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return a("error",r,t)},n.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return a("warn",r,t)},n.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return a("debug",r,t)},n}("VIDEOJS"),v=y.createLogger,b=t(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i,n=arguments[t];for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},t.apply(this,arguments)}e.exports=t}),T=Object.prototype.toString,S=function(e){return C(e)?Object.keys(e):[]};function E(t,i){S(t).forEach(function(e){return i(t[e],e)})}function k(i){for(var e=arguments.length,t=new Array(1<e?e-1:0),n=1;n<e;n++)t[n-1]=arguments[n];return Object.assign?b.apply(void 0,[i].concat(t)):(t.forEach(function(e){e&&E(e,function(e,t){i[t]=e})}),i)}function C(e){return!!e&&"object"==typeof e}function w(e){return C(e)&&"[object Object]"===T.call(e)&&e.constructor===Object}function I(e,t){if(!e||!t)return"";if("function"!=typeof _.getComputedStyle)return"";var i;try{i=_.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}var x=_.navigator&&_.navigator.userAgent||"",A=/AppleWebKit\/([\d.]+)/i.exec(x),P=A?parseFloat(A.pop()):null,L=/iPod/i.test(x),D=(Kt=x.match(/OS (\d+)_/i))&&Kt[1]?Kt[1]:null,O=/Android/i.test(x),R=function(){var e=x.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),i=e[2]&&parseFloat(e[2]);return t&&i?parseFloat(e[1]+"."+e[2]):t||null}(),M=O&&R<5&&P<537,N=/Firefox/i.test(x),U=/Edg/i.test(x),B=!U&&(/Chrome/i.test(x)||/CriOS/i.test(x)),F=(ai=x.match(/(Chrome|CriOS)\/(\d+)/))&&ai[2]?parseFloat(ai[2]):null,j=si=!(si=(si=/MSIE\s(\d+)\.\d/.exec(x))&&parseFloat(si[1]))&&/Trident\/7.0/i.test(x)&&/rv:11.0/.test(x)?11:si,H=/Safari/i.test(x)&&!B&&!O&&!U,q=/Windows/i.test(x),V=Boolean($()&&("ontouchstart"in _||_.navigator.maxTouchPoints||_.DocumentTouch&&_.document instanceof _.DocumentTouch)),W=/iPad/i.test(x)||H&&V&&!/iPhone/i.test(x),z=/iPhone/i.test(x)&&!W,G=z||W||L,X=(H||G)&&!B,K=Object.freeze({__proto__:null,IS_IPOD:L,IOS_VERSION:D,IS_ANDROID:O,ANDROID_VERSION:R,IS_NATIVE_ANDROID:M,IS_FIREFOX:N,IS_EDGE:U,IS_CHROME:B,CHROME_VERSION:F,IE_VERSION:j,IS_SAFARI:H,IS_WINDOWS:q,TOUCH_ENABLED:V,IS_IPAD:W,IS_IPHONE:z,IS_IOS:G,IS_ANY_SAFARI:X});function Y(e){return"string"==typeof e&&Boolean(e.trim())}function Q(e){if(0<=e.indexOf(" "))throw new Error("class has illegal whitespace characters")}function $(){return d===_.document}function J(e){return C(e)&&1===e.nodeType}function Z(){try{return _.parent!==_.self}catch(e){return!0}}function ee(i){return function(e,t){if(!Y(e))return d[i](null);t=J(t=Y(t)?d.querySelector(t):t)?t:d;return t[i]&&t[i](e)}}function te(e,i,t,n){void 0===i&&(i={}),void 0===t&&(t={});var r=d.createElement(e=void 0===e?"div":e);
384return Object.getOwnPropertyNames(i).forEach(function(e){var t=i[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(y.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+t+"."),r.setAttribute(e,t)):"textContent"===e?ie(r,t):r[e]===t&&"tabIndex"!==e||(r[e]=t)}),Object.getOwnPropertyNames(t).forEach(function(e){r.setAttribute(e,t[e])}),n&&Te(r,n),r}function ie(e,t){return"undefined"==typeof e.textContent?e.innerText=t:e.textContent=t,e}function ne(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function re(e,t){return Q(t),e.classList?e.classList.contains(t):new RegExp("(^|\\s)"+t+"($|\\s)").test(e.className)}function ae(e,t){return e.classList?e.classList.add(t):re(e,t)||(e.className=(e.className+" "+t).trim()),e}function se(e,t){return e?(e.classList?e.classList.remove(t):(Q(t),e.className=e.className.split(/\s+/).filter(function(e){return e!==t}).join(" ")),e):(y.warn("removeClass was called with an element that doesn't exist"),null)}function oe(e,t,i){var n=re(e,t);if((i="boolean"!=typeof(i="function"==typeof i?i(e,t):i)?!n:i)!==n)return(i?ae:se)(e,t),e}function ue(i,n){Object.getOwnPropertyNames(n).forEach(function(e){var t=n[e];null===t||"undefined"==typeof t||!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})}function le(e){var t={},i=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&0<e.attributes.length)for(var n=e.attributes,r=n.length-1;0<=r;r--){var a=n[r].name,s=n[r].value;"boolean"!=typeof e[a]&&-1===i.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function ce(e,t){return e.getAttribute(t)}function de(e,t,i){e.setAttribute(t,i)}function he(e,t){e.removeAttribute(t)}function pe(){d.body.focus(),d.onselectstart=function(){return!1}}function fe(){d.onselectstart=function(){return!0}}function me(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),i={};return["bottom","height","left","right","top","width"].forEach(function(e){void 0!==t[e]&&(i[e]=t[e])}),i.height||(i.height=parseFloat(I(e,"height"))),i.width||(i.width=parseFloat(I(e,"width"))),i}}function ge(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,i=e.offsetHeight,n=0,r=0;e.offsetParent&&e!==d[l.fullscreenElement];)n+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:n,top:r,width:t,height:i}}function ye(e,t){var i={x:0,y:0};if(G)for(var n=e;n&&"html"!==n.nodeName.toLowerCase();){var r,a=I(n,"transform");
384/^matrix/.test(a)?(r=a.slice(7,-1).split(/,\s/).map(Number),i.x+=r[4],i.y+=r[5]):/^matrix3d/.test(a)&&(a=a.slice(9,-1).split(/,\s/).map(Number),i.x+=a[12],i.y+=a[13]),n=n.parentNode}var s={},o=ge(t.target),u=ge(e),l=u.width,c=u.height,e=t.offsetY-(u.top-o.top),o=t.offsetX-(u.left-o.left);return t.changedTouches&&(o=t.changedTouches[0].pageX-u.left,e=t.changedTouches[0].pageY+u.top,G&&(o-=i.x,e-=i.y)),s.y=1-Math.max(0,Math.min(1,e/c)),s.x=Math.max(0,Math.min(1,o/l)),s}function ve(e){return C(e)&&3===e.nodeType}function _e(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function be(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(function(e){return J(e="function"==typeof e?e():e)||ve(e)?e:"string"==typeof e&&/\S/.test(e)?d.createTextNode(e):void 0}).filter(function(e){return e})}function Te(t,e){return be(e).forEach(function(e){return t.appendChild(e)}),t}function Se(e,t){return Te(_e(e),t)}function Ee(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var ke,Ce=ee("querySelector"),we=ee("querySelectorAll"),Ie=Object.freeze({__proto__:null,isReal:$,isEl:J,isInFrame:Z,createEl:te,textContent:ie,prependTo:ne,hasClass:re,addClass:ae,removeClass:se,toggleClass:oe,setAttributes:ue,getAttributes:le,getAttribute:ce,setAttribute:de,removeAttribute:he,blockTextSelection:pe,unblockTextSelection:fe,getBoundingClientRect:me,findPosition:ge,getPointerPosition:ye,isTextNode:ve,emptyEl:_e,normalizeContent:be,appendContent:Te,insertContent:Se,isSingleLeftClick:Ee,$:Ce,$$:we}),xe=!1,Ae=function(){if(!1!==ke.options.autoSetup){var e=Array.prototype.slice.call(d.getElementsByTagName("video")),t=Array.prototype.slice.call(d.getElementsByTagName("audio")),i=Array.prototype.slice.call(d.getElementsByTagName("video-js")),n=e.concat(t,i);if(n&&0<n.length)for(var r=0,a=n.length;r<a;r++){var s=n[r];if(!s||!s.getAttribute){Pe(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&ke(s)}else xe||Pe(1)}};function Pe(e,t){$()&&(t&&(ke=t),_.setTimeout(Ae,e))}function Le(){xe=!0,_.removeEventListener("load",Le)}$()&&("complete"===d.readyState?Le():_.addEventListener("load",Le));function De(e){var t=d.createElement("style");return t.className=e,t}function Oe(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t}var Re=3;_.WeakMap||(on=function(){function e(){this.vdata="vdata"+Math.floor(_.performance&&_.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var i=e[this.vdata]||Re++;return e[this.vdata]||(e[this.vdata]=i),this.data[i]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];y("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Me,Ne=new(_.WeakMap?WeakMap:on);function Ue(e,t){var i;Ne.has(e)&&(0===(i=Ne.get(e)).handlers[t].length&&(delete i.handlers[t],e.removeEventListener?e.removeEventListener(t,i.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,i.dispatcher)),Object.getOwnPropertyNames(i.handlers).length<=0&&(delete i.handlers,delete i.dispatcher,delete i.disabled),0===Object.getOwnPropertyNames(i).length&&Ne.delete(e))}function Be(t,i,e,n){e.forEach(function(e){t(i,e,n)})}function Fe(e){if(e.fixed_)return e;function t(){return!0}function i(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var n,r,a,s=e||_.event;for(n in e={},s)"layerX"!==n&&"layerY"!==n&&"keyLocation"!==n&&"webkitMovementX"!==n&&"webkitMovementY"!==n&&("returnValue"===n&&s.preventDefault||(e[n]=s[n]));e.target||(e.target=e.srcElement||d),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){s.preventDefault&&s.preventDefault(),e.returnValue=!1,s.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){s.stopPropagation&&s.stopPropagation(),e.cancelBubble=!0,s.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=i,e.stopImmediatePropagation=function(){s.stopImmediatePropagation&&s.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=i,null!==e.clientX&&void 0!==e.clientX&&(r=d.documentElement,a=d.body,e.pageX=e.clientX+(r&&r.scrollLeft||a&&a.scrollLeft||0)-(r&&r.clientLeft||a&&a.clientLeft||0),e.pageY=e.clientY+(r&&r.scrollTop||a&&a.scrollTop||0)-(r&&r.clientTop||a&&a.clientTop||0)),e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var je=function(){if("boolean"!=typeof Me){Me=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Me=!0}});_.addEventListener("test",null,e),_.removeEventListener("test",null,e)}catch(e){}}return Me},He=["touchstart","touchmove"];function qe(s,e,t){if(Array.isArray(e))return Be(qe,s,e,t);Ne.has(s)||Ne.set(s,{});var o=Ne.get(s);o.handlers||(o.handlers={}),o.handlers[e]||(o.handlers[e]=[]),t.guid||(t.guid=Re++),o.handlers[e].push(t),o.dispatcher||(o.disabled=!1,o.dispatcher=function(e,t){if(!o.disabled){e=Fe(e);var i=o.handlers[e.type];if(i)for(var n=i.slice(0),r=0,a=n.length;r<a&&!e.isImmediatePropagationStopped();r++)try{n[r].call(s,e,t)}catch(e){y.error(e)}}}),1===o.handlers[e].length&&(s.addEventListener?(t=!1,je()&&-1<He.indexOf(e)&&(t={passive:!0}),s.addEventListener(e,o.dispatcher,t)):s.attachEvent&&s.attachEvent("on"+e,o.dispatcher))}function Ve(e,t,i){if(Ne.has(e)){var n=Ne.get(e);if(n.handlers){if(Array.isArray(t))return Be(Ve,e,t,i);var r=function(e,t){n.handlers[t]=[],Ue(e,t)};if(void 0!==t){var a=n.handlers[t];if(a)if(i){if(i.guid)for(var s=0;s<a.length;s++)a[s].guid===i.guid&&a.splice(s--,1);Ue(e,t)}else r(e,t)}else for(var o in n.handlers)Object.prototype.hasOwnProperty.call(n.handlers||{},o)&&r(e,o)}}}function We(e,t,i){var n=Ne.has(e)?Ne.get(e):{},r=e.parentNode||e.ownerDocument;return"string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Fe(t),n.dispatcher&&n.dispatcher.call(e,t,i),r&&!t.isPropagationStopped()&&!0===t.bubbles?We.call(null,r,t,i):!r&&!t.defaultPrevented&&t.target&&t.target[t.type]&&(Ne.has(t.target)||Ne.set(t.target,{}),r=Ne.get(t.target),t.target[t.type]&&(r.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),r.disabled=!1)),!t.defaultPrevented}function ze(e,t,i){if(Array.isArray(t))return Be(ze,e,t,i);function n(){Ve(e,t,n),i.apply(this,arguments)}n.guid=i.guid=i.guid||Re++,qe(e,t,n)}function Ge(e,t,i){function n(){Ve(e,t,n),i.apply(this,arguments)}n.guid=i.guid=i.guid||Re++,qe(e,t,n)}function Xe(e,t,i){return t.guid||(t.guid=Re++),(e=t.bind(e)).guid=i?i+"_"+t.guid:t.guid,e}function Ke(t,i){var n=_.performance.now();return function(){var e=_.performance.now();i<=e-n&&(t.apply(void 0,arguments),n=e)}}function Ye(n,r,a,s){var o;function e(){var e=this,t=arguments,i=function(){i=o=null,a||n.apply(e,t)};!o&&a&&n.apply(e,t),s.clearTimeout(o),o=s.setTimeout(i,r)}return void 0===s&&(s=_),e.cancel=function(){s.clearTimeout(o),o=null},e}function Qe(){}var $e,Je=Object.freeze({__proto__:null,fixEvent:Fe,on:qe,off:Ve,trigger:We,one:ze,any:Ge});Qe.prototype.allowedEvents_={},Qe.prototype.addEventListener=Qe.prototype.on=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},qe(this,e,t),this.addEventListener=i},Qe.prototype.removeEventListener=Qe.prototype.off=function(e,t){Ve(this,e,t)},Qe.prototype.one=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},ze(this,e,t),this.addEventListener=i},Qe.prototype.any=function(e,t){var i=this.addEventListener;this.addEventListener=function(){},Ge(this,e,t),this.addEventListener=i},Qe.prototype.dispatchEvent=Qe.prototype.trigger=function(e){var t=e.type||e;e=Fe(e="string"==typeof e?{type:t}:e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),We(this,e)},Qe.prototype.queueTrigger=function(e){var t=this;$e=$e||new Map;var i=e.type||e,n=$e.get(this);n||(n=new Map,$e.set(this,n));var r=n.get(i);n.delete(i),_.clearTimeout(r);r=_.setTimeout(function(){0===n.size&&(n=null,$e.delete(t)),t.trigger(e)},0);n.set(i,r)};function Ze(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_||(e.constructor&&e.constructor.name?e.constructor.name:typeof e)}function et(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length}function tt(e,t,i){if(!e||!e.nodeName&&!st(e))throw new Error("Invalid target for "+Ze(t)+"#"+i+"; must be a DOM node or evented object.")}function it(e,t,i){if(!et(e))throw new Error("Invalid event type for "+Ze(t)+"#"+i+"; must be a non-empty string or array.")}function nt(e,t,i){if("function"!=typeof e)throw new Error("Invalid listener for "+Ze(t)+"#"+i+"; must be a function.")}function rt(e,t,i){var n,r,a=t.length<3||t[0]===e||t[0]===e.eventBusEl_,t=a?(n=e.eventBusEl_,3<=t.length&&t.shift(),r=t[0],t[1]):(n=t[0],r=t[1],t[2]);return tt(n,e,i),it(r,e,i),nt(t,e,i),{isTargetingSelf:a,target:n,type:r,listener:t=Xe(e,t)}}function at(e,t,i,n){tt(e,e,t),e.nodeName?Je[t](e,i,n):e[t](i,n)}var st=function(t){return t instanceof Qe||!!t.eventBusEl_&&["on","one","off","trigger"].every(function(e){return"function"==typeof t[e]}
384)},ot={on:function(){for(var e=this,t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];var r,a=rt(this,i,"on"),s=a.isTargetingSelf,o=a.target,u=a.type,l=a.listener;at(o,"on",u,l),s||((r=function(){return e.off(o,u,l)}).guid=l.guid,(s=function(){return e.off("dispose",r)}).guid=l.guid,at(this,"on","dispose",r),at(o,"on","dispose",s))},one:function(){for(var r=this,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=rt(this,t,"one"),a=n.isTargetingSelf,s=n.target,o=n.type,u=n.listener;a?at(s,"one",o,u):((a=function e(){r.off(s,o,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];u.apply(null,i)}).guid=u.guid,at(s,"one",o,a))},any:function(){for(var r=this,e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=rt(this,t,"any"),a=n.isTargetingSelf,s=n.target,o=n.type,u=n.listener;a?at(s,"any",o,u):((a=function e(){r.off(s,o,e);for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];u.apply(null,i)}).guid=u.guid,at(s,"any",o,a))},off:function(e,t,i){!e||et(e)?Ve(this.eventBusEl_,e,t):(t=t,tt(e=e,this,"off"),it(t,this,"off"),nt(i,this,"off"),i=Xe(this,i),this.off("dispose",i),e.nodeName?(Ve(e,t,i),Ve(e,"dispose",i)):st(e)&&(e.off(t,i),e.off("dispose",i)))},trigger:function(e,t){tt(this.eventBusEl_,this,"trigger");var i=e&&"string"!=typeof e?e.type:e;if(!et(i)){i="Invalid event type for "+Ze(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(i);(this.log||y).error(i)}return We(this.eventBusEl_,e,t)}};function ut(e,t){t=(t=void 0===t?{}:t).eventBusKey;if(t){if(!e[t].nodeName)throw new Error('The eventBusKey "'+t+'" does not refer to an element.');e.eventBusEl_=e[t]}else e.eventBusEl_=te("span",{className:"vjs-event-bus"});return k(e,ot),e.eventedCallbacks&&e.eventedCallbacks.forEach(function(e){e()}),e.on("dispose",function(){e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&Ne.has(e)&&Ne.delete(e)}),_.setTimeout(function(){e.eventBusEl_=null},0)}),e}var lt={state:{},setState:function(e){var i,n=this;return E(e="function"==typeof e?e():e,function(e,t){n.state[t]!==e&&((i=i||{})[t]={from:n.state[t],to:e}),n.state[t]=e}),i&&st(this)&&this.trigger({changes:i,type:"statechanged"}),i}};function ct(e,t){return k(e,lt),e.state=k({},e.state,t),"function"==typeof e.handleStateChanged&&st(e)&&e.on("statechanged",e.handleStateChanged),e}function dt(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toLowerCase()})}function ht(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})}function pt(){for(var i={},e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.forEach(function(e){e&&E(e,function(e,t){w(e)?(w(i[t])||(i[t]={}),i[t]=pt(i[t],e)):i[t]=e})}),i}var ft=_.Map||function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var i in this.map_)e.call(t,this.map_[i],i,this)},e}(),mt=_.Set||function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var i in this.set_)e.call(t,i,i,this)},e}(),gt=function(){function s(e,t,i){!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=pt({},this.options_),t=this.options_=pt(this.options_,t),this.id_=t.id||t.el&&t.el.id,this.id_||(e=e&&e.id&&e.id()||"no_player",this.id_=e+"_component_"+Re++),this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(ut(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),ct(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new mt,this.setIntervalIds_=new mt,this.rafIds_=new mt,this.namedRafs_=new ft,(this.clearingTimersOnDispose_=!1)!==t.initChildren&&this.initChildren(),this.ready(i),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var e=s.prototype;return e.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;0<=e;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.el_=null),this.player_=null}},e.isDisposed=function(){return Boolean(this.isDisposed_)},e.player=function(){return this.player_},e.options=function(e){return e&&(this.options_=pt(this.options_,e)),this.options_},e.el=function(){return this.el_},e.createEl=function(e,t,i){return te(e,t,i)},e.localize=function(e,i,t){void 0===t&&(t=e);var n=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[n],n=n&&n.split("-")[0],n=r&&r[n],t=t;return a&&a[e]?t=a[e]:n&&n[e]&&(t=n[e]),t=i?t.replace(/\{(\d+)\}/g,function(e,t){t=i[t-1];return"undefined"==typeof t?e:t}):t},e.handleLanguagechange=function(){},e.contentEl=function(){return this.contentEl_||this.el_},e.id=function(){return this.id_},e.name=function(){return this.name_},e.children=function(){return this.children_},e.getChildById=function(e){return this.childIndex_[e]},e.getChild=function(e){if(e)return this.childNameIndex_[e]},e.getDescendant=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];for(var t=t.reduce(function(e,t){return e.concat(t)},[]),n=this,r=0;r<t.length;r++)if(!(n=n.getChild(t[r]))||!n.getChild)return;return n},e.addChild=function(e,t,i){if(void 0===t&&(t={}),void 0===i&&(i=this.children_.length),"string"==typeof e){var n=ht(e),r=t.componentClass||n;t.name=n;var a=s.getComponent(r);if(!a)throw new Error("Component "+r+" does not exist");if("function"!=typeof a)return null;a=new a(this.player_||this,t)}else a=e;return a.parentComponent_&&a.parentComponent_.removeChild(a),this.children_.splice(i,0,a),a.parentComponent_=this,"function"==typeof a.id&&(this.childIndex_[a.id()]=a),(n=n||a.name&&ht(a.name()))&&(this.childNameIndex_[n]=a,this.childNameIndex_[dt(n)]=a),"function"==typeof a.el&&a.el()&&(n=null,this.children_[i+1]&&(this.children_[i+1].el_?n=this.children_[i+1].el_:J(this.children_[i+1])&&(n=this.children_[i+1])),this.contentEl().insertBefore(a.el(),n)),a},e.removeChild=function(e){if((e="string"==typeof e?this.getChild(e):e)&&this.children_){for(var t,i=!1,n=this.children_.length-1;0<=n;n--)if(this.children_[n]===e){i=!0,this.children_.splice(n,1);break}i&&(e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[ht(e.name())]=null,this.childNameIndex_[dt(e.name())]=null,(t=e.el())&&t.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el()))}},e.initChildren=function(){var i,t,e,n=this,r=this.options_.children;r&&(i=this.options_,t=s.getComponent("Tech"),(e=Array.isArray(r)?r:Object.keys(r)).concat(Object.keys(this.options_).filter(function(t){return!e.s
384ome(function(e){return"string"==typeof e?t===e:t===e.name})})).map(function(e){var t,e="string"==typeof e?r[t=e]||n.options_[t]||{}:(t=e.name,e);return{name:t,opts:e}}).filter(function(e){e=s.getComponent(e.opts.componentClass||ht(e.name));return e&&!t.isTech(e)}).forEach(function(e){var t=e.name,e=e.opts;!1!==(e=void 0!==i[t]?i[t]:e)&&((e=!0===e?{}:e).playerOptions=n.options_.playerOptions,(e=n.addChild(t,e))&&(n[t]=e))}))},e.buildCSSClass=function(){return""},e.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},e.triggerReady=function(){this.isReady_=!0,this.setTimeout(function(){var e=this.readyQueue_;this.readyQueue_=[],e&&0<e.length&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)},e.$=function(e,t){return Ce(e,t||this.contentEl())},e.$$=function(e,t){return we(e,t||this.contentEl())},e.hasClass=function(e){return re(this.el_,e)},e.addClass=function(e){ae(this.el_,e)},e.removeClass=function(e){se(this.el_,e)},e.toggleClass=function(e,t){oe(this.el_,e,t)},e.show=function(){this.removeClass("vjs-hidden")},e.hide=function(){this.addClass("vjs-hidden")},e.lockShowing=function(){this.addClass("vjs-lock-showing")},e.unlockShowing=function(){this.removeClass("vjs-lock-showing")},e.getAttribute=function(e){return ce(this.el_,e)},e.setAttribute=function(e,t){de(this.el_,e,t)},e.removeAttribute=function(e){he(this.el_,e)},e.width=function(e,t){return this.dimension("width",e,t)},e.height=function(e,t){return this.dimension("height",e,t)},e.dimensions=function(e,t){this.width(e,!0),this.height(t)},e.dimension=function(e,t,i){if(void 0!==t)return-1!==(""+(t=null===t||t!=t?0:t)).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(i||this.trigger("componentresize"));if(!this.el_)return 0;t=this.el_.style[e],i=t.indexOf("px");return-1!==i?parseInt(t.slice(0,i),10):parseInt(this.el_["offset"+ht(e)],10)},e.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");return t=I(this.el_,e),0!==(t=parseFloat(t))&&!isNaN(t)||(e="offset"+ht(e),t=this.el_[e]),t},e.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},e.currentWidth=function(){return this.currentDimension("width")},e.currentHeight=function(){return this.currentDimension("height")},e.focus=function(){this.el_.focus()},e.blur=function(){this.el_.blur()},e.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},e.handleKeyPress=function(e){this.handleKeyDown(e)},e.emitTapEvents=function(){var i,t=0,n=null;this.on("touchstart",function(e){1===e.touches.length&&(n={pageX:e.touches[0].pageX,pageY:e.touches[0].pageY},t=_.performance.now(),i=!0)}),this.on("touchmove",function(e){var t;1<e.touches.length?i=!1:n&&(t=e.touches[0].pageX-n.pageX,e=e.touches[0].pageY-n.pageY,10<Math.sqrt(t*t+e*e)&&(i=!1))});function e(){i=!1}this.on("touchleave",e),this.on("touchcancel",e),this.on("touchend",function(e){!(n=null)===i&&_.performance.now()-t<200&&(e.preventDefault(),this.trigger("tap"))})},e.enableTouchActivity=function(){var t,i,e;this.player()&&this.player().reportUserActivity&&(t=Xe(this.player(),this.player().reportUserActivity),this.on("touchstart",function(){t(),this.clearInterval(i),i=this.setInterval(t,250)}),e=function(e){t(),this.clearInterval(i)},this.on("touchmove",t),this.on("touchend",e),this.on("touchcancel",e))},e.setTimeout=function(e,t){var i,n=this;return e=Xe(this,e),this.clearTimersOnDispose_(),i=_.setTimeout(function(){n.setTimeoutIds_.has(i)&&n.setTimeoutIds_.delete(i),e()},t),this.setTimeoutIds_.add(i),i},e.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),_.clearTimeout(e)),e},e.setInterval=function(e,t){e=Xe(this,e),this.clearTimersOnDispose_();t=_.setInterval(e,t);return this.setIntervalIds_.add(t),t},e.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),_.clearInterval(e)),e},e.requestAnimationFrame=function(e){var t,i=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Xe(this,e),t=_.requestAnimationFrame(function(){i.rafIds_.has(t)&&i.rafIds_.delete(t),e()}),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},e.requestNamedAnimationFrame=function(e,t){var i=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Xe(this,t);var n=this.requestAnimationFrame(function(){t(),i.namedRafs_.has(e)&&i.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}},e.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},e.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),_.cancelAnimationFrame(e)),e):this.clearTimeout(e)},e.clearTimersOnDispose_=function(){var n=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
384h(function(e){var t=e[0],i=e[1];n[t].forEach(function(e,t){return n[i](t)})}),n.clearingTimersOnDispose_=!1}))},s.registerComponent=function(e,t){if("string"!=typeof e||!e)throw new Error('Illegal component name, "'+e+'"; must be a non-empty string.');var i=s.getComponent("Tech"),n=i&&i.isTech(t),i=s===t||s.prototype.isPrototypeOf(t.prototype);if(n||!i){var r=n?"techs must be registered using Tech.registerTech()":"must be a Component subclass";throw new Error('Illegal component, "'+e+'"; '+r+".")}e=ht(e),s.components_||(s.components_={});r=s.getComponent("Player");if("Player"===e&&r&&r.players){var a=r.players,r=Object.keys(a);if(a&&0<r.length&&r.map(function(e){return a[e]}).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return s.components_[e]=t,s.components_[dt(e)]=t},s.getComponent=function(e){if(e&&s.components_)return s.components_[e]},s}();gt.prototype.supportsRaf_="function"==typeof _.requestAnimationFrame&&"function"==typeof _.cancelAnimationFrame,gt.registerComponent("Component",gt);var yt=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e};var vt=function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t};function _t(e,t,i,n){return function(e,t,i){if("number"!=typeof t||t<0||i<t)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+i+").")}(e,n,i.length-1),i[n][t]}function bt(e){var t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:_t.bind(null,"start",0,e),end:_t.bind(null,"end",1,e)};return _.Symbol&&_.Symbol.iterator&&(t[_.Symbol.iterator]=function(){return(e||[]).values()}),t}function Tt(e,t){return Array.isArray(e)?bt(e):void 0===e||void 0===t?bt():bt([[e,t]])}function St(e,t){var i,n,r=0;if(!t)return 0;e&&e.length||(e=Tt(0,0));for(var a=0;a<e.length;a++)i=e.start(a),r+=(n=t<(n=e.end(a))?t:n)-i;return r/t}function Et(e){if(e instanceof Et)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:C(e)&&("number"==typeof e.code&&(this.code=e.code),k(this,e)),this.message||(this.message=Et.defaultMessages[this.code]||"")}Et.prototype.code=0,Et.prototype.message="",Et.prototype.status=null,Et.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Et.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var kt=0;kt<Et.errorTypes.length;kt++)Et[Et.errorTypes[kt]]=kt,Et.prototype[Et.errorTypes[kt]]=kt;var Ct=function(e,t){var i,n=null;try{i=JSON.parse(e,t)}catch(e){n=e}return[n,i]};function wt(e){return null!=e&&"function"==typeof e.then}function It(e){wt(e)&&e.then(null,function(e){})}function xt(n){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce(function(e,t,i){return n[t]&&(e[t]=n[t]),e},{cues:n.cues&&Array.prototype.map.call(n.cues,function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}})})}var At=function(e){var t=e.$$("track"),i=Array.prototype.map.call(t,function(e){return e.track});return Array.prototype.map.call(t,function(e){var t=xt(e.track);return e.src&&(t.src=e.src),t}).concat(Array.prototype.filter.call(e.textTracks(),function(e){return-1===i.indexOf(e)}).map(xt))},Pt=function(e,i){return e.forEach(function(e){var t=i.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(function(e){return t.addCue(e)})}),i.textTracks()},Lt=t(function(e,t){function i(e){if(!e||"object"!=typeof e||(t=e.which||e.keyCode||e.charCode)&&(e=t),"number"==typeof e)return o[e];var t=String(e),e=n[t.toLowerCase()];return e||((e=r[t.toLowerCase()])?e:1===t.length?t.charCodeAt(0):void 0)}i.isEventKey=function(e,t){if(e&&"object"==typeof e){var i=e.which||e.keyCode||e.charCode;if(null==i)return!1;if("string"==typeof t){e=n[t.toLowerCase()];if(e)return e===i;if(e=r[t.toLowerCase()])return e===i}else if("number"==typeof t)return t===i;return!1}};
384for(var n=(t=e.exports=i).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"â§":16,"â¥":18,"â":17,"â":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91},a=97;a<123;a++)n[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)n[a-48]=a;for(a=1;a<13;a++)n["f"+a]=a+111;for(a=0;a<10;a++)n["numpad "+a]=a+96;var s,o=t.names=t.title={};for(a in n)o[n[a]]=a;for(s in r)n[s]=r[s]});Lt.code,Lt.codes,Lt.aliases,Lt.names,Lt.title;var Dt="vjs-modal-dialog",Ot=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=te("div",{className:Dt+"-content"},{role:"document"}),i.descEl_=te("p",{className:Dt+"-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),ie(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}vt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},t.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,n.prototype.dispose.call(this)},t.buildCSSClass=function(){return Dt+" vjs-hidden "+n.prototype.buildCSSClass.call(this)},t.label=function(){return this.localize(this.options_.label||"Modal Window")},t.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},t.open=function(){var e;this.opened_||(e=this.player(),this.trigger("beforemodalopen"),this.opened_=!0,!this.options_.fillAlways&&(this.hasBeenOpened_||this.hasBeenFilled_)||this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0)},t.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},t.close=function(){var e;this.opened_&&(e=this.player(),this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose())},t.closeable=function(e){var t,i;return"boolean"==typeof e&&(t=this.closeable_=!!e,i=this.getChild("closeButton"),t&&!i&&(e=this.contentEl_,this.contentEl_=this.el_,i=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(i,"close",this.close_)),!t&&i&&(this.off(i,"close",this.close_),this.removeChild(i),i.dispose())),this.closeable_},t.fill=function(){this.fillWith(this.content())},t.fillWith=function(e){var t=this.contentEl(),i=t.parentNode,n=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,i.removeChild(t),this.empty(),Se(t,e),this.trigger("modalfill"),n?i.insertBefore(t,n):i.appendChild(t);t=this.getChild("closeButton");t&&i.appendChild(t.el_)},t.empty=function(){this.trigger("beforemodalempty"),_e(this.contentEl()),this.trigger("modalempty")},t.content=function(e){return"undefined"!=typeof e&&(this.content_=e),this.content_},t.conditionalFocus_=function(){var e=d.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,!t.contains(e)&&t!==e||(this.previouslyActiveEl_=e,this.focus())},t.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},t.handleKeyDown=function(e){if(e.stopPropagation(),Lt.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();
vendor: 5,747 bytes, line 384
384if(Lt.isEventKey(e,"Tab")){for(var t,i=this.focusableEls_(),n=this.el_.querySelector(":focus"),r=0;r<i.length;r++)if(n===i[r]){t=r;break}d.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(i[i.length-1].focus(),e.preventDefault()):e.shiftKey||t!==i.length-1||(i[0].focus(),e.preventDefault())}},t.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,function(e){return(e instanceof _.HTMLAnchorElement||e instanceof _.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof _.HTMLInputElement||e instanceof _.HTMLSelectElement||e instanceof _.HTMLTextAreaElement||e instanceof _.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof _.HTMLIFrameElement||e instanceof _.HTMLObjectElement||e instanceof _.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")})},e}(gt);Ot.prototype.options_={pauseOnOpen:!0,temporary:!0},gt.registerComponent("ModalDialog",Ot);var Rt,Mt=function(n){function e(e){var t;void 0===e&&(e=[]),(t=n.call(this)||this).tracks_=[],Object.defineProperty(yt(t),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<e.length;i++)t.addTrack(e[i]);return t}vt(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this,i=this.tracks_.length;""+i in this||Object.defineProperty(this,i,{get:function(){return this.tracks_[i]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},st(e)&&e.addEventListener("labelchange",e.labelchange_)},t.removeTrack=function(e){for(var t,i=0,n=this.length;i<n;i++)if(this[i]===e){(t=this[i]).off&&t.off(),this.tracks_.splice(i,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},t.getTrackById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},e}(Qe);for(Rt in Mt.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},Mt.prototype.allowedEvents_)Mt.prototype["on"+Rt]=null;function Nt(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].enabled=!1)}function Ut(e,t){for(var i=0;i<e.length;i++)Object.keys(e[i]).length&&t.id!==e[i].id&&(e[i].selected=!1)}function Bt(e){var t=["protocol","hostname","port","pathname","search","hash","host"],i=d.createElement("a");i.href=e;for(var n={},r=0;r<t.length;r++)n[t[r]]=i[t[r]];return"http:"===n.protocol&&(n.host=n.host.replace(/:80$/,"")),"https:"===n.protocol&&(n.host=n.host.replace(/:443$/,"")),n.protocol||(n.protocol=_.location.protocol),n.host||(n.host=_.location.host),n}function Ft(e){var t;return e.match(/^https?:\/\//)||((t=d.createElement("a")).href=e,e=t.href),e}function jt(e){if("string"==typeof e){e=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(e)return e.pop().toLowerCase()}return""}function Ht(e,t){return void 0===t&&(t=_.location),(":"===(e=Bt(e)).protocol?t:e).protocol+e.host!==t.protocol+t.host}var qt=function(n){function e(e){for(var t,i=(e=void 0===e?[]:e).length-1;0<=i;i--)if(e[i].enabled){Nt(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,t}vt(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this;e.enabled&&Nt(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&(e.enabledChange_=function(){t.changing_||(t.changing_=!0,Nt(t,e),t.changing_=!1,t.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))},t.removeTrack=function(e){n.prototype.removeTrack.call(this,e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)},e}(Mt),e=function(n){function e(e){for(var t,i=(e=void 0===e?[]:e).length-1;0<=i;i--)if(e[i].selected){Ut(e,e[i]);break}return(t=n.call(this,e)||this).changing_=!1,Object.defineProperty(yt(t),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),t}vt(e,n);var t=e.prototype;return t.addTrack=function(e){var t=this;e.selected&&Ut(this,e),n.prototype.addTrack.call(this,e),e.addEventListener&&(e.selectedChange_=function(){t.changing_||(t.changing_=!0,Ut(t,e),t.changing_=!1,t.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))},t.removeTrack=function(e){n.prototype.removeTrack.call(this,e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)},e}(Mt),s=function(i){function e(){return i.apply(this,arguments)||this}vt(e,i);var t=e.prototype;return t.addTrack=function(e){var t=this;i.prototype.addTrack.call(this,e),this.queueChange_||(this.queueChange_=function(){return t.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return t.trigger("selectedlanguagechange")}),e.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)},t.removeTrack=function(e){i.prototype.removeTrack.call(this,e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},e}(Mt),o=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,i=e.length;t<i;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}
384),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,i=0,n=this.trackElements_.length;i<n;i++)if(e===this.trackElements_[i].track){t=this.trackElements_[i];break}return t},t.removeTrackElement_=function(e){for(var t=0,i=this.trackElements_.length;t<i;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),Vt=function(){function t(e){t.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var e=t.prototype;return e.setCues_=function(e){var t=this.length||0,i=0,n=e.length;this.cues_=e,this.length_=e.length;function r(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})}if(t<n)for(i=t;i<n;i++)r.call(this,i)},e.getCueById=function(e){for(var t=null,i=0,n=this.length;i<n;i++){var r=this[i];if(r.id===e){t=r;break}}return t},t}(),Wt={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},zt={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},Gt={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},Xt={disabled:"disabled",hidden:"hidden",showing:"showing"},A=function(a){function e(e){void 0===e&&(e={});var t,i=a.call(this)||this,n={id:e.id||"vjs_track_"+Re++,kind:e.kind||"",language:e.language||""},r=e.label||"";for(t in n)!function(e){Object.defineProperty(yt(i),e,{get:function(){return n[e]},set:function(){}})}(t);return Object.defineProperty(yt(i),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),i}return vt(e,a),e}(Qe),Kt=Object.freeze({__proto__:null,parseUrl:Bt,getAbsoluteURL:Ft,getFileExtension:jt,isCrossOrigin:Ht}),Yt=function(e){if(!e)return!1;var t=Qt.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)},Qt=Object.prototype.toString;ei.httpHandler=function(n,r){return void 0===r&&(r=!1),function(e,t,i){if(e)n(e);else if(400<=t.statusCode&&t.statusCode<=599){e=i;if(r)if(_.TextDecoder){t=function(e){void 0===e&&(e="");return e.toLowerCase().split(";").reduce(function(e,t){var i=t.split("="),t=i[0],i=i[1];return"charset"===t.trim()?i.trim():e},"utf-8")}(t.headers&&t.headers["content-type"]);try{e=new TextDecoder(t).decode(i)}catch(e){}}else e=String.fromCharCode.apply(null,new Uint8Array(i));n({cause:e})}else n(null,i)}}; 385/** 386 * @license 387 * slighly modified parse-headers 2.0.2 <https://github.com/kesla/parse-headers/> 388 * Copyright (c) 2014 David Björklund 389 * Available under the MIT license 390 * <https://github.com/kesla/parse-headers/blob/master/LICENCE> 391 */ 392var $t=function(e){var n={};return e&&e.trim().split("\n").forEach(function(e){var t=e.indexOf(":"),i=e.slice(0,t).trim().toLowerCase(),t=e.slice(t+1).trim();"undefined"==typeof n[i]?n[i]=t:Array.isArray(n[i])?n[i].push(t):n[i]=[n[i],t]}),n},Jt=ei,P=ei;function Zt(e,t,i){var n=e;return Yt(t)?(i=t,"string"==typeof e&&(n={uri:e})):n=b({},t,{uri:e}),n.callback=i,n}function ei(e,t,i){return ti(t=Zt(e,t,i))}function ti(n){if("undefined"==typeof n.callback)throw new Error("callback argument missing");var r=!1,a=function(e,t,i){r||(r=!0,n.callback(e,t,i))};function s(){var e=void 0,e=l.response||l.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(l);if(m)try{e=JSON.parse(e)}catch(e){}return e}function t(e){return clearTimeout(u),(e=!(e instanceof Error)?new Error(""+(e||"Unknown XMLHttpRequest Error")):e).statusCode=0,a(e,g)}function e(){if(!o){clearTimeout(u);var e=n.useXDR&&void 0===l.status?200:1223===l.status?204:l.status,t=g,i=null;return 0!==e?(t={body:s(),statusCode:e,method:d,headers:{},url:c,rawRequest:l},l.getAllResponseHeaders&&(t.headers=$t(l.getAllResponseHeaders()))):i=new Error("Internal XMLHttpRequest Error"),a(i,t,t.body)}}var i,o,u,l=n.xhr||null,c=(l=l||new(n.cors||n.useXDR?ei.XDomainRequest:ei.XMLHttpRequest)).url=n.uri||n.url,d=l.method=n.method||"GET",h=n.body||n.data,p=l.headers=n.headers||{},f=!!n.sync,m=!1,g={body:void 0,headers:{},statusCode:0,method:d,url:c,rawRequest:l};if("json"in n&&!1!==n.json&&(m=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==d&&"HEAD"!==d&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),h=JSON.stringify(!0===n.json?h:n.json))),l.onreadystatechange=function(){4===l.readyState&&setTimeout(e,0)},l.onload=e,l.onerror=t,l.onprogress=function(){},l.onabort=function(){o=!0},l.ontimeout=t,l.open(d,c,!f,n.username,n.password),f||(l.withCredentials=!!n.withCredentials),!f&&0<n.timeout&&(u=setTimeout(function(){var e;o||(o=!0,l.abort("timeout"),(e=new Error("XMLHttpRequest timeout")).code="ETIMEDOUT",t(e))},n.timeout)),l.setRequestHeader)for(i in p)p.hasOwnProperty(i)&&l.setRequestHeader(i,p[i]);else if(n.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return;return 1}(n.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in n&&(l.responseType=n.responseType),"beforeSend"in n&&"function"==typeof n.beforeSend&&n.beforeSend(l),l.send(h||null),l}ei.XMLHttpRequest=_.XMLHttpRequest||function(){},ei.XDomainRequest="withCredentials"in new ei.XMLHttpRequest?ei.XMLHttpRequest:_.XDomainRequest,function(e,t){for(var i=0;i<e.length;i++)t(e[i])}(["get","put","post","patch","head","delete"],function(n){ei["delete"===n?"del":n]=function(e,t,i){return(t=Zt(e,t,i)).method=n.toUpperCase(),ti(t)}}),Jt.default=P;function ii(e,t){var i=new _.WebVTT.Parser(_,_.vttjs,_.WebVTT.StringDecoder()),n=[];i.oncue=function(e){t.addCue(e)},i.onparsingerror=function(e){n.push(e)},i.onflush=function(){t.trigger({type:"loadeddata",target:t})},i.parse(e),0<n.length&&(_.console&&_.console.groupCollapsed&&_.console.groupCollapsed("Text Track parsing errors for "+t.src),n.forEac
392h(function(e){return y.error(e)}),_.console&&_.console.groupEnd&&_.console.groupEnd()),i.flush()}function ni(e,n){var t={uri:e};(e=Ht(e))&&(t.cors=e),(e="use-credentials"===n.tech_.crossOrigin())&&(t.withCredentials=e),Jt(t,Xe(this,function(e,t,i){return e?y.error(e,t):(n.loaded_=!0,void("function"!=typeof _.WebVTT?n.tech_&&n.tech_.any(["vttjsloaded","vttjserror"],function(e){return"vttjserror"!==e.type?ii(i,n):void y.error("vttjs failed to load, stopping trying to process "+n.src)}):ii(i,n)))}))}var ri=function(u){function e(e){var t;if(!(e=void 0===e?{}:e).tech)throw new Error("A tech was not provided.");var e=pt(e,{kind:Gt[e.kind]||"subtitles",language:e.language||e.srclang||""}),i=Xt[e.mode]||"disabled",n=e.default;"metadata"!==e.kind&&"chapters"!==e.kind||(i="hidden"),(t=u.call(this,e)||this).tech_=e.tech,t.cues_=[],t.activeCues_=[],t.preload_=!1!==t.tech_.preloadTextTracks;var r=new Vt(t.cues_),s=new Vt(t.activeCues_),o=!1,a=Xe(yt(t),function(){this.tech_.isReady_&&!this.tech_.isDisposed()&&(this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1))});return t.tech_.one("dispose",function(){t.tech_.off("timeupdate",a)}),"disabled"!==i&&t.tech_.on("timeupdate",a),Object.defineProperties(yt(t),{default:{get:function(){return n},set:function(){}},mode:{get:function(){return i},set:function(e){Xt[e]&&i!==e&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||ni(this.src,this),this.tech_.off("timeupdate",a),"disabled"!==i&&this.tech_.on("timeupdate",a),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?r:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],i=0,n=this.cues.length;i<n;i++){var r=this.cues[i];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(o=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),e.src?(t.src=e.src,t.preload_||(t.loaded_=!0),(t.preload_||"subtitles"!==e.kind&&"captions"!==e.kind)&&ni(t.src,yt(t))):t.loaded_=!0,t}vt(e,u);var t=e.prototype;return t.addCue=function(e){var t=e;if(_.vttjs&&!(e instanceof _.vttjs.VTTCue)){for(var i in t=new _.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)i in t||(t[i]=e[i]);t.id=e.id,t.originalCue_=e}for(var n=this.tech_.textTracks(),r=0;r<n.length;r++)n[r]!==this&&n[r].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},t.removeCue=function(e){for(var t=this.cues_.length;t--;){var i=this.cues_[t];if(i===e||i.originalCue_&&i.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},e}(A);ri.prototype.allowedEvents_={cuechange:"cuechange"};var ai=function(n){function e(e){var t=pt(e=void 0===e?{}:e,{kind:zt[e.kind]||""}),e=n.call(this,t)||this,i=!1;return Object.defineProperty(yt(e),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),t.enabled&&(e.enabled=t.enabled),e.loaded_=!0,e}return vt(e,n),e}(A),si=function(n){function e(e){var t=pt(e=void 0===e?{}:e,{kind:Wt[e.kind]||""}),e=n.call(this,t)||this,i=!1;return Object.defineProperty(yt(e),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),t.selected&&(e.selected=t.selected),e}return vt(e,n),e}(A),L=function(r){function e(e){var t;void 0===e&&(e={});var i=r.call(this)||this,n=new ri(e);return i.kind=n.kind,i.src=n.src,i.srclang=n.language,i.label=n.label,i.default=n.default,Object.defineProperties(yt(i),{readyState:{get:function(){return t}},track:{get:function(){return n}}}),t=0,n.addEventListener("loadeddata",function(){t=2,i.trigger({type:"load",target:yt(i)})}),i}return vt(e,r),e}(Qe);L.prototype.allowedEvents_={load:"load"},L.NONE=0,L.LOADING=1,L.LOADED=2,L.ERROR=3;var oi={audio:{ListClass:qt,TrackClass:ai,capitalName:"Audio"},video:{ListClass:e,TrackClass:si,capitalName:"Video"},text:{ListClass:s,TrackClass:ri,capitalName:"Text"}};
vendor: 4,418 bytes, line 392
392Object.keys(oi).forEach(function(e){oi[e].getterName=e+"Tracks",oi[e].privateName=e+"Tracks_"});var ui={remoteText:{ListClass:s,TrackClass:ri,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:o,TrackClass:L,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},li=b({},oi,ui);ui.names=Object.keys(ui),oi.names=Object.keys(oi),li.names=[].concat(ui.names).concat(oi.names);var ci=Object.create||function(e){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return di.prototype=e,new di};function di(){}function hi(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function pi(e){function t(e,t,i,n){return 3600*(0|e)+60*(0|t)+(0|i)+(0|n)/1e3}e=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return e?e[3]?t(e[1],e[2],e[3].replace(":",""),e[4]):59<e[1]?t(e[1],e[2],0,e[4]):t(0,e[1],e[2],e[4]):null}function fi(){this.values=ci(null)}function mi(e,t,i,n){var r,a,s=n?e.split(n):[e];for(r in s)"string"==typeof s[r]&&(2===(a=s[r].split(i)).length&&t(a[0],a[1]))}function gi(t,e,s){var i=t;function n(){var e=pi(t);if(null===e)throw new hi(hi.Errors.BadTimeStamp,"Malformed timestamp: "+i);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function r(){t=t.replace(/^\s+/,"")}if(r(),e.startTime=n(),r(),"--\x3e"!==t.substr(0,3))throw new hi(hi.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);t=t.substr(3),r(),e.endTime=n(),r(),function(e,t){var a=new fi;mi(e,function(e,t){switch(e){case"region":for(var i=s.length-1;0<=i;i--)if(s[i].id===t){a.set(e,s[i].region);break}break;case"vertical":a.alt(e,t,["rl","lr"]);break;case"line":var n=t.split(","),r=n[0];a.integer(e,r),a.percent(e,r)&&a.set("snapToLines",!1),a.alt(e,r,["auto"]),2===n.length&&a.alt("lineAlign",n[1],["start","center","end"]);break;case"position":n=t.split(","),a.percent(e,n[0]),2===n.length&&a.alt("positionAlign",n[1],["start","center","end"]);break;case"size":a.percent(e,t);break;case"align":a.alt(e,t,["start","center","end","left","right"])}},/:/,/\s/),t.region=a.get("region",null),t.vertical=a.get("vertical","");try{t.line=a.get("line","auto")}catch(e){}t.lineAlign=a.get("lineAlign","start"),t.snapToLines=a.get("snapToLines",!0),t.size=a.get("size",100);try{t.align=a.get("align","center")}catch(e){t.align=a.get("align","middle")}try{t.position=a.get("position","auto")}catch(e){t.position=a.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=a.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(t,e)}((hi.prototype=ci(Error.prototype)).constructor=hi).Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},fi.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,i){return i?this.has(e)?this.values[e]:t[i]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,i){for(var n=0;n<i.length;++n)if(t===i[n]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&0<=(t=parseFloat(t))&&t<=100)&&(this.set(e,t),!0)}};var yi=d.createElement&&d.createElement("textarea"),vi={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},_i={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},bi={v:"title",lang:"lang"},Ti={rt:"ruby"};function Si(e,t){for(var i,n,r,a,s,o,u,l,c,d,h=e.document.createElement("div"),p=h,f=[];null!==(i=function(){if(!t)return null;var e=t.match(/^([^<]*)(<[^>]*>?)?/);return e=e[1]||e[2],t=t.substr(e.length),e}());)"<"!==i[0]?p.appendChild(e.document.createTextNode((s=i,yi.innerHTML=s,s=yi.textContent,yi.textContent="",s))):"/"!==i[1]?(a=pi(i.substr(1,i.length-2)))?(n=e.document.createProcessingInstruction("timestamp",a),p.appendChild(n)):(r=i.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/))&&(l=r[1],c=r[3],d=void 0,d=vi[l],(n=d?(d=e.document.createElement(d),(l=bi[l])&&c&&(d[l]=c.trim()),d):null)&&(o=p,Ti[(u=n).localName]&&Ti[u.localName]!==o.localName||(r[2]&&((a=r[2].split(".")).forEac
vendor: 7,890 bytes, line 392
392h(function(e){var t=/^bg_/.test(e),e=t?e.slice(3):e;_i.hasOwnProperty(e)&&(e=_i[e],n.style[t?"background-color":"color"]=e)}),n.className=a.join(" ")),f.push(r[1]),p.appendChild(n),p=n))):f.length&&f[f.length-1]===i.substr(2).replace(">","")&&(f.pop(),p=p.parentNode);return h}var Ei=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function ki(e){var t=[],i="";if(!e||!e.childNodes)return"ltr";function a(e,t){for(var i=t.childNodes.length-1;0<=i;i--)e.push(t.childNodes[i])}for(a(t,e);i=function e(t){if(!t||!t.length)return null;var i=t.pop(),n=i.textContent||i.innerText;if(n){var r=n.match(/^.*(\n|\r)/);return r?r[t.length=0]:n}return"ruby"===i.tagName?e(t):i.childNodes?(a(t,i),e(t)):void 0}(t);)for(var n=0;n<i.length;n++)if(function(e){for(var t=0;t<Ei.length;t++){var i=Ei[t];if(e>=i[0]&&e<=i[1])return 1}}(i.charCodeAt(n)))return"rtl";return"ltr"}function Ci(){}function wi(e,t,i){Ci.call(this),this.cue=t,this.cueDiv=Si(e,t.text);var n={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(n,this.cueDiv),this.div=e.document.createElement("div"),n={direction:ki(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:i.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(n),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function Ii(e){var t,i,n,r;e.div&&(t=e.div.offsetHeight,i=e.div.offsetWidth,n=e.div.offsetTop,r=(r=e.div.childNodes)&&(r=r[0])&&r.getClientRects&&r.getClientRects(),e=e.div.getBoundingClientRect(),r=r?Math.max(r[0]&&r[0].height||0,e.height/r.length):0),this.left=e.left,this.right=e.right,this.top=e.top||n,this.height=e.height||t,this.bottom=e.bottom||n+(e.height||t),this.width=e.width||i,this.lineHeight=void 0!==r?r:e.lineHeight}function xi(e,t,o,u){var i,n=new Ii(t),r=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||0<=e.line&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,i=t.textTrackList,n=0,r=0;r<i.length&&i[r]!==t;r++)"showing"===i[r].mode&&n++;return-1*++n}(r),s=[];if(r.snapToLines){switch(r.vertical){case"":s=["+y","-y"],i="height";break;case"rl":s=["+x","-x"],i="width";break;case"lr":s=["-x","+x"],i="width"}var l=n.lineHeight,c=l*Math.round(a),d=o[i]+l,h=s[0];Math.abs(c)>d&&(c=c<0?-1:1,c*=Math.ceil(d/l)*l),a<0&&(c+=""===r.vertical?o.height:o.width,s=s.reverse()),n.move(h,c)}else{var p=n.lineHeight/o.height*100;switch(r.lineAlign){case"center":a-=p/2;break;case"end":a-=p}switch(r.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],n=new Ii(t)}n=function(e,t){for(var i,n=new Ii(e),r=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(o,t[a])||e.within(o)&&e.overlapsAny(u);)e.move(t[a]);if(e.within(o))return e;var s=e.intersectPercentage(o);s<r&&(i=new Ii(e),r=s),e=new Ii(n)}return i||n}(n,s);t.move(n.toCSSCompatValues(o))}function Ai(){}Ci.prototype.applyStyles=function(e,t){for(var i in t=t||this.div,e)e.hasOwnProperty(i)&&(t.style[i]=e[i])},Ci.prototype.formatStyle=function(e,t){return 0===e?0:e+t},(wi.prototype=ci(Ci.prototype)).constructor=wi,Ii.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},Ii.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},Ii.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},Ii.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},Ii.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},Ii.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},Ii.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},Ii.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,i=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,n=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||n,height:e.height||t,bottom:e.bottom||n+(e.height||t),width:e.width||i}},Ai.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},Ai.convertCueToDOMTree=function(e,t){return e&&t?Si(e,t):null};Ai.processCues=function(n,r,e){if(!n||!r||!e)return null;for(;e.firstChild;)e.removeChild(e.firstChild);var a=n.document.createElement("div");if(a.style.position="absolute",a.style.left="0",a.style.right="0",a.style.top="0",a.style.bottom="0",a.style.margin="1.5%",e.appendChild(a),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return 1}(r)){var s=[],o=Ii.getSimpleBoxPosition(a),u={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var e,t,i=0;i<r.length;i++)t=r[i],e=new wi(n,t,u),a.appendChild(e.div),xi(0,e,o,s),t.dis
vendor: 3,752 bytes, line 392
392playState=e.div,s.push(Ii.getSimpleBoxPosition(e))}()}else for(var t=0;t<r.length;t++)a.appendChild(r[t].displayState)},(Ai.Parser=function(e,t,i){i||(i=t,t={}),t=t||{},this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=i||new TextDecoder("utf8"),this.regionList=[]}).prototype={reportOrThrowError:function(e){if(!(e instanceof hi))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var n=this;function t(){for(var e=n.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var i=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,n.buffer=e.substr(t),i}function i(e){e.match(/X-TIMESTAMP-MAP/)?mi(e,function(e,t){var i;"X-TIMESTAMP-MAP"===e&&(t=t,i=new fi,mi(t,function(e,t){switch(e){case"MPEGT":i.integer(e+"S",t);break;case"LOCA":i.set(e+"L",pi(t))}},/[^\d]:/,/,/),n.ontimestampmap&&n.ontimestampmap({MPEGTS:i.get("MPEGTS"),LOCAL:i.get("LOCAL")}))},/=/):mi(e,function(e,t){var r;"Region"===e&&(t=t,r=new fi,mi(t,function(e,t){switch(e){case"id":r.set(e,t);break;case"width":r.percent(e,t);break;case"lines":r.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var n=new fi;if(n.percent("x",i[0]),n.percent("y",i[1]),!n.has("x")||!n.has("y"))break;r.set(e+"X",n.get("x")),r.set(e+"Y",n.get("y"));break;case"scroll":r.alt(e,t,["up"])}},/=/,/\s/),r.has("id")&&((t=new(n.vttjs.VTTRegion||n.window.VTTRegion)).width=r.get("width",100),t.lines=r.get("lines",3),t.regionAnchorX=r.get("regionanchorX",0),t.regionAnchorY=r.get("regionanchorY",100),t.viewportAnchorX=r.get("viewportanchorX",0),t.viewportAnchorY=r.get("viewportanchorY",100),t.scroll=r.get("scroll",""),n.onregion&&n.onregion(t),n.regionList.push({id:r.get("id"),region:t})))},/:/)}e&&(n.buffer+=n.decoder.decode(e,{stream:!0}));try{if("INITIAL"===n.state){if(!/\r\n|\n/.test(n.buffer))return this;var r,a=(r=t()).match(/^WEBVTT([ \t].*)?$/);if(!a||!a[0])throw new hi(hi.Errors.BadSignature);n.state="HEADER"}for(var s=!1;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(s?s=!1:r=t(),n.state){case"HEADER":/:/.test(r)?i(r):r||(n.state="ID");continue;case"NOTE":r||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){n.state="NOTE";break}if(!r)continue;n.cue=new(n.vttjs.VTTCue||n.window.VTTCue)(0,0,"");try{n.cue.align="center"}catch(e){n.cue.align="middle"}if(n.state="CUE",-1===r.indexOf("--\x3e")){n.cue.id=r;continue}case"CUE":try{gi(r,n.cue,n.regionList)}catch(e){n.reportOrThrowError(e),n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":var o=-1!==r.indexOf("--\x3e");if(!r||o&&(s=!0)){n.oncue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}n.cue.text&&(n.cue.text+="\n"),n.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(n.state="ID");continue}}}catch(e){n.reportOrThrowError(e),"CUETEXT"===n.state&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state="INITIAL"===n.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var t=this;try{if(t.buffer+=t.decoder.decode(),!t.cue&&"HEADER"!==t.state||(t.buffer+="\n\n",t.parse()),"INITIAL"===t.state)throw new hi(hi.Errors.BadSignature)}catch(e){t.reportOrThrowError(e)}return t.onflush&&t.onflush(),this}};var Pi=Ai,Li={"":1,lr:1,rl:1},Di={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function Oi(e){return"string"==typeof e&&(!!Di[e.toLowerCase()]&&e.toLowerCase())}function Ri(e,t,i){this.hasBeenReset=!1;var n="",r=!1,a=e,s=t,o=i,u=null,l="",c=!0,d="auto",h="start",p="auto",f="auto",m=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return n},set:function(e){n=""+e}},pauseOnExit:{enumerable:!0,get:function(){return r},set:function(e){r=!!e}},startTime:{enumerable:!0,get:function(){return a}
vendor: 2,805 bytes, line 392
392,set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");s=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return o},set:function(e){o=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return l},set:function(e){e="string"==typeof(e=e)&&(!!Li[e.toLowerCase()]&&e.toLowerCase());if(!1===e)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");l=e,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return c},set:function(e){c=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){e=Oi(e);e&&(h=e,this.hasBeenReset=!0)}},position:{enumerable:!0,get:function(){return p},set:function(e){if(e<0||100<e)throw new Error("Position must be between 0 and 100.");p=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return f},set:function(e){e=Oi(e);e&&(f=e,this.hasBeenReset=!0)}},size:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||100<e)throw new Error("Size must be between 0 and 100.");m=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){e=Oi(e);if(!e)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=e,this.hasBeenReset=!0}}}),this.displayState=void 0}Ri.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)};var Mi=Ri,Ni={"":!0,up:!0};function Ui(e){return"number"==typeof e&&0<=e&&e<=100}function Bi(){var t=100,i=3,n=0,r=100,a=0,s=100,o="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return t},set:function(e){if(!Ui(e))throw new Error("Width must be between 0 and 100.");t=e}},lines:{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");i=e}},regionAnchorY:{enumerable:!0,get:function(){return r},set:function(e){if(!Ui(e))throw new Error("RegionAnchorX must be between 0 and 100.");r=e}},regionAnchorX:{enumerable:!0,get:function(){return n},set:function(e){if(!Ui(e))throw new Error("RegionAnchorY must be between 0 and 100.");n=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!Ui(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a}
vendor: 8,314 bytes, line 392
392,set:function(e){if(!Ui(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return o},set:function(e){e="string"==typeof(e=e)&&(!!Ni[e.toLowerCase()]&&e.toLowerCase());!1===e||(o=e)}}})}var Fi=t(function(e){e=e.exports={WebVTT:Pi,VTTCue:Mi,VTTRegion:Bi};_.vttjs=e,_.WebVTT=e.WebVTT;var t=e.VTTCue,i=e.VTTRegion,n=_.VTTCue,r=_.VTTRegion;e.shim=function(){_.VTTCue=t,_.VTTRegion=i},e.restore=function(){_.VTTCue=n,_.VTTRegion=r},_.VTTCue||e.shim()});Fi.WebVTT,Fi.VTTCue,Fi.VTTRegion;var ji=function(n){function i(t,e){var i;return void 0===e&&(e=function(){}),(t=void 0===t?{}:t).reportTouchActivity=!1,(i=n.call(this,null,t,e)||this).onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.hasStarted_=!1,i.on("playing",function(){this.hasStarted_=!0}),i.on("loadstart",function(){this.hasStarted_=!1}),li.names.forEach(function(e){e=li[e];t&&t[e.getterName]&&(i[e.privateName]=t[e.getterName])}),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)}),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new li.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}vt(i,n);var e=i.prototype;return e.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",function(){return t.setTimeout(function(){return t.triggerSourceset(e)},1)}),this.trigger({src:e,type:"sourceset"})},e.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},e.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},e.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Xe(this,function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),1===(this.bufferedPercent_=e)&&this.stopTrackingProgress()}),500)},e.onDurationChange=function(e){this.duration_=this.duration()},e.buffered=function(){return Tt(0,0)},e.bufferedPercent=function(){return St(this.buffered(),this.duration_)},e.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},e.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},e.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},e.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)},e.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.dispose=function(){this.clearTracks(oi.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),n.prototype.dispose.call(this)},e.clearTracks=function(e){var r=this;(e=[].concat(e)).forEach(function(e){for(var t=r[e+"Tracks"]()||[],i=t.length;i--;){var n=t[i];"text"===e&&r.removeRemoteTextTrack(n),t.removeTrack(n)}})},e.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var i=e[t];this.removeRemoteTextTrack(i)}},e.reset=function(){},e.crossOrigin=function(){},e.setCrossOrigin=function(){},e.error=function(e){return void 0!==e&&(this.error_=new Et(e),this.trigger("error")),this.error_},e.played=function(){return this.hasStarted_?Tt(0,0):Tt()},e.play=function(){},e.setScrubbing=function(){},e.scrubbing=function(){},e.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},e.initTrackListeners=function(){var r=this;oi.names.forEach(function(e){function t(){r.trigger(e+"trackchange")}var i=oi[e],n=r[i.getterName]();n.addEventListener("removetrack",t),n.addEventListener("addtrack",t),r.on("dispose",function(){n.removeEventListener("removetrack",t),n.removeEventListener("addtrack",t)})})},e.addWebVttScript_=function(){var e,t=this;_.WebVTT||(d.body.contains(this.el())?!this.options_["vtt.js"]&&w(Fi)&&0<Object.keys(Fi).length?this.trigger("vttjsloaded"):((e=d.createElement("script")).src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=function(){t.trigger("vttjsloaded")},e.onerror=function(){t.trigger("vttjserror")},this.on("dispose",function(){e.onload=null,e.onerror=null}),_.WebVTT=!0,this.el().parentNode.appendChild(e)):this.ready(this.addWebVttScript_))},e.emulateTextTracks=function(){function t(e){return n.addTrack(e.track)}function i(e){return n.removeTrack(e.track)}var e=this,n=this.textTracks(),r=this.remoteTextTracks();r.on("addtrack",t),r.on("removetrack",i),this.addWebVttScript_();function a(){return e.trigger("texttrackchange")}function s(){a();for(var e=0;e<n.length;e++){var t=n[e];t.removeEventListener("cuechange",a),"showing"===t.mode&&t.addEventListener("cuechange",a)}}s(),n.addEventListener("change",s),n.addEventListener("addtrack",s),n.addEventListener("removetrack",s),this.on("dispose",function(){r.off("addtrack",t),r.off("removetrack",i),n.removeEventListener("change",s),n.removeEventListener("addtrack",s),n.removeEventListener("removetrack",s);for(var e=0;e<n.length;e++)n[e].removeEventListener("cuechange",a)})},e.addTextTrack=function(e,t,i){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,i,n,r){void 0===r&&(r={});var a=e.textTracks();return r.kind=t,i&&(r.label=i),n&&(r.language=n),r.tech=e,r=new li.text.TrackClass(r),a.addTrack(r),r}(this,e,t,i)},e.createRemoteTextTrack=function(e){e=pt(e,{tech:this});return new ui.remoteTextEl.TrackClass(e)},e.addRemoteTextTrack=function(e,t){var i=this,n=this.createRemoteTextTrack(e=void 0===e?{}:e);return!0!==t&&!1!==t&&(y.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!0!==t&&this.ready(function(){return i.autoRemoteTextTracks_.addTrack(n.track)}),n},e.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},e.getVideoPlaybackQuality=function(){return{}},e.requestPictureInPicture=function(){var e=this.options_.Promise||_.Promise;if(e)return e.reject()},e.disablePictureInPicture=function(){return!0},e.setDisablePictureInPicture=function(){},e.setPoster=function(){},e.playsinline=function(){},e.setPlaysinline=function(){},e.overrideNativeAudioTracks=function(){},e.overrideNativeVideoTracks=function(){},e.canPlayType=function(){return""},i.canPlayType=function(){return""},i.canPlaySource=function(e,t){return i.canPlayType(e.type)},i.isTech=function(e){return e.prototype instanceof i||e instanceof i||e===i},i.registerTech=function(e,t){if(i.techs_||(i.techs_={}),!i.isTech(t))throw new Error("Tech "+e+" must be a Tech");if(!i.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!i.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=ht(e),i.techs_[e]=t,i.techs_[dt(e)]=t,"Tech"!==e&&i.defaultTechOrder_.push(e),t},i.getTech=function(e){if(e)return i.techs_&&i.techs_[e]?i.techs_[e]:(e=ht(e),_&&_.videojs&&_.videojs[e]?(y.warn("The "+e+" tech w
392as added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),_.videojs[e]):void 0)},i}(gt);li.names.forEach(function(e){var t=li[e];ji.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),ji.prototype.featuresVolumeControl=!0,ji.prototype.featuresMuteControl=!0,ji.prototype.featuresFullscreenResize=!1,ji.prototype.featuresPlaybackRate=!1,ji.prototype.featuresProgressEvents=!1,ji.prototype.featuresSourceset=!1,ji.prototype.featuresTimeupdateEvents=!1,ji.prototype.featuresNativeTextTracks=!1,ji.withSourceHandlers=function(r){r.registerSourceHandler=function(e,t){var i=(i=r.sourceHandlers)||(r.sourceHandlers=[]);void 0===t&&(t=i.length),i.splice(t,0,e)},r.canPlayType=function(e){for(var t,i=r.sourceHandlers||[],n=0;n<i.length;n++)if(t=i[n].canPlayType(e))return t;return""},r.selectSourceHandler=function(e,t){for(var i=r.sourceHandlers||[],n=0;n<i.length;n++)if(i[n].canHandleSource(e,t))return i[n];return null},r.canPlaySource=function(e,t){var i=r.selectSourceHandler(e,t);return i?i.canHandleSource(e,t):""};["seekable","seeking","duration"].forEach(function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})},r.prototype),r.prototype.setSource=function(e){var t=r.selectSourceHandler(e,this.options_);t||(r.nativeSourceHandler?t=r.nativeSourceHandler:y.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),t!==r.nativeSourceHandler&&(this.currentSource_=e),this.sourceHandler_=t.handleSource(e,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},r.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},gt.registerComponent("Tech",ji),ji.registerTech("Tech",ji),ji.defaultTechOrder_=[];var Hi={},qi={},Vi={};function Wi(e,t,i){e.setTimeout(function(){return function i(n,e,r,a,s,o){void 0===n&&(n={});void 0===e&&(e=[]);void 0===s&&(s=[]);void 0===o&&(o=!1);var t=e,e=t[0],u=t.slice(1);if("string"==typeof e)i(n,Hi[e],r,a,s,o);else if(e){var l=Qi(a,e);if(!l.setSource)return s.push(l),i(n,u,r,a,s,o);l.setSource(k({},n),function(e,t){return e?i(n,u,r,a,s,o):(s.push(l),void i(t,n.type===t.type?u:Hi[t.type],r,a,s,o))})}else u.length?i(n,u,r,a,s,o):o?r(n,s):i(n,Hi["*"],r,a,s,!0)}(t,Hi[t.type],i,e)},1)}function zi(e,t,i,n){void 0===n&&(n=null);var r="call"+ht(i),r=e.reduce(Yi(r),n),n=r===Vi,r=n?null:t[i](r);return function(e,t,i,n){for(var r=e.length-1;0<=r;r--){var a=e[r];a[t]&&a[t](n,i)}}(e,i,r,n),r}var Gi={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},Xi={setCurrentTime:1,setMuted:1,setVolume:1},Ki={play:1,pause:1};function Yi(i){return function(e,t){return e===Vi?Vi:t[i]?t[i](e):e}}function Qi(e,t){var i=qi[e.id()],n=null;if(null==i)return n=t(e),qi[e.id()]=[[t,n]],n;for(var r=0;r<i.length;r++){var a=i[r],s=a[0],a=a[1];s===t&&(n=a)}return null===n&&(n=t(e),i.push([t,n])),n}function $i(e){return e=jt(e=void 0===e?"":e),Zi[e.toLowerCase()]||""}function Ji(e){var t;return e=Array.isArray(e)?(t=[],e.forEach(function(e){e=Ji(e),Array.isArray(e)?t=t.concat(e):C(e)&&t.push(e)}),t):"string"==typeof e&&e.trim()?[en({src:e})]:C(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[en(e)]:[]}var Zi={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"};function en(e){var t;return e.type||(t=$i(e.src))&&(e.type=t),e}D=function(u){function e(e,t,i){var n=pt({createEl:!1},t),i=u.call(this,e,n,i)||this;if(t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(var r=0,a=t.playerOptions.techOrder;r<a.length;r++){var s=ht(a[r]),o=ji.getTech(s);if((o=!s?gt.getComponent(s):o)&&o.isSupported()){e.loadTech_(s);break}}return i}return vt(e,u),e}(gt);gt.registerComponent("MediaLoader",D);H=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}vt(e,n);var t=e.prototype;return t.createEl=function(e,t,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===i&&(i={}),t=k({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&y.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),i=k({role:"button"},i),this.tabIndex_=t.tabIndex;i=te(e,t,i);return i.appendChild(te("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},t.dispose=function(){this.controlTextEl_=null,n.prototype.dispose.call(this)},t.createControlTextEl=function(e){return this.controlTextEl_=te("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},t.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var i=this.localize(e);this.controlText_=e,ie(this.controlTextEl_,i),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",i)},t.buildCSSClass=function(){return"vjs-control vjs-button "+n.prototype.buildCSSClass.call(this)},t.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),"undefined"!=typeof this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},t.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),"undefined"!=typeof this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},t.handleLanguagechange=function(){this.controlText(this.controlText_)},t.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},t.handleKeyDown=function(e){Lt.isEventKey(e,"Space")||Lt.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):n.prototype.handleKeyDown.call(this,e)},e}(gt);gt.registerComponent("ClickableComponent",H),gt.registerComponent("PosterImage",function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.update(),i.update_=function(e){return i.update(e)},e.on("posterchange",i.update_),i}vt(e,n);var t=e.prototype;return t.dispose=function(){this.player().off("posterchange",this.update_),n.prototype.dispose.call(this)},t.createEl=function(){return te("div",{className:"vjs-poster",tabIndex:-1})},t.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},t.setSrc=function(e){this.el_.style.backgroundImage=e?'url("'+e+'")':""},t.handleClick=function(e){var t;this.player_.controls()&&(t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length,!this.player_.tech(!0)||(j||U)&&t||this.player_.tech(!0).focus(),this.player_.paused()?It(this.player_.play()):this.player_.pause())},e}(H));var tn="#222",nn={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
vendor: 4,578 bytes, line 392
392script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function rn(e,t){var i;if(4===e.length)i=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");i=e.slice(1)}return"rgba("+parseInt(i.slice(0,2),16)+","+parseInt(i.slice(2,4),16)+","+parseInt(i.slice(4,6),16)+","+t+")"}function an(e,t,i){try{e.style[t]=i}catch(e){return}}gt.registerComponent("TextTrackDisplay",function(a){function e(i,e,t){function n(e){return r.updateDisplay(e)}var r=a.call(this,i,e,t)||this;return i.on("loadstart",function(e){return r.toggleDisplay(e)}),i.on("texttrackchange",n),i.on("loadedmetadata",function(e){return r.preselectTrack(e)}),i.ready(Xe(yt(r),function(){if(i.tech_&&i.tech_.featuresNativeTextTracks)this.hide();else{i.on("fullscreenchange",n),i.on("playerresize",n),_.addEventListener("orientationchange",n),i.on("dispose",function(){return _.removeEventListener("orientationchange",n)});for(var e=this.options_.playerOptions.tracks||[],t=0;t<e.length;t++)this.player_.addRemoteTextTrack(e[t],!0);this.preselectTrack()}})),r}vt(e,a);var t=e.prototype;return t.preselectTrack=function(){for(var e,t,i,n={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,s=0;s<r.length;s++){var o=r[s];a&&a.enabled&&a.language&&a.language===o.language&&o.kind in n?i=o.kind!==a.kind&&i||o:a&&!a.enabled?t=e=i=null:o.default&&("descriptions"!==o.kind||e?o.kind in n&&!t&&(t=o):e=o)}i?i.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},t.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},t.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},t.clearDisplay=function(){"function"==typeof _.WebVTT&&_.WebVTT.processCues(_,[],this.el_)},t.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var i=[],n=0;n<e.length;++n){var r=e[n];"showing"===r.mode&&i.push(r)}this.updateForTrack(i)}else{for(var a=null,s=null,o=e.length;o--;){var u=e[o];"showing"===u.mode&&("descriptions"===u.kind?a=u:s=u)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},t.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),i=e.activeCues,n=i.length;n--;){var r,a=i[n];a&&(r=a.displayState,t.color&&(r.firstChild.style.color=t.color),t.textOpacity&&an(r.firstChild,"color",rn(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(r.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&an(r.firstChild,"backgroundColor",rn(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?an(r,"backgroundColor",rn(t.windowColor,t.windowOpacity)):r.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?r.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px "+tn:"raised"===t.edgeStyle?r.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px "+tn:"depressed"===t.edgeStyle?r.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px "+tn:"uniform"===t.edgeStyle&&(r.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px "+tn)),t.fontPercent&&1!==t.fontPercent&&(a=_.parseFloat(r.style.fontSize),r.style.fontSize=a*t.fontPercent+"px",r.style.height="auto",r.style.top="auto"),t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?r.firstChild.style.fontVariant="small-caps":r.firstChild.style.fontFamily=nn[t.fontFamily]))}},t.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof _.WebVTT&&!e.every(function(e){return!e.activeCues})){for(var t=[],i=0;i<e.length;++i)for(var n=e[i],r=0;r<n.activeCues.length;++r)t.push(n.activeCues[r]);_.WebVTT.processCues(_,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],o=0;o<s.activeCues.length;++o){var u=s.activeCues[o].displayState;ae(u,"vjs-text-track-cue"),ae(u,"vjs-text-track-cue-"+(s.language||a))}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},e}(gt)),gt.registerComponent("LoadingSpinner",function(i){function e(){return i.apply(this,arguments)||this}return vt(e,i),e.prototype.createEl=function(){var e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"
392Video Player"),e=te("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),t=i.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return t.appendChild(e),t},e}(gt));var sn=function(t){function e(){return t.apply(this,arguments)||this}vt(e,t);var i=e.prototype;return i.createEl=function(e,t,i){void 0===t&&(t={}),void 0===i&&(i={});i=te("button",t=k({className:this.buildCSSClass()},t),i=k({type:"button"},i));return i.appendChild(te("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},i.addChild=function(e,t){void 0===t&&(t={});var i=this.constructor.name;return y.warn("Adding an actionable (user controllable) child to a Button ("+i+") is not supported; use a ClickableComponent instead."),gt.prototype.addChild.call(this,e,t)},i.enable=function(){t.prototype.enable.call(this),this.el_.removeAttribute("disabled")},i.disable=function(){t.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},i.handleKeyDown=function(e){Lt.isEventKey(e,"Space")||Lt.isEventKey(e,"Enter")?e.stopPropagation():t.prototype.handleKeyDown.call(this,e)},e}(H);gt.registerComponent("Button",sn);W=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.mouseused_=!1,i.on("mousedown",function(e){return i.handleMouseDown(e)}),i}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-big-play-button"},t.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var i=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&0<this.player_.eme.sessions.length;return It(t),void(!this.player_.tech(!0)||(j||U)&&i||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),n=i&&i.getChild("playToggle");n?(i=function(){return n.focus()},wt(t)?t.then(i,function(){}):this.setTimeout(i,1)):this.player_.tech(!0).focus()},t.handleKeyDown=function(e){this.mouseused_=!1,n.prototype.handleKeyDown.call(this,e)},t.handleMouseDown=function(e){this.mouseused_=!0},e}(sn);W.prototype.controlText_="Play Video",gt.registerComponent("BigPlayButton",W),gt.registerComponent("CloseButton",function(i){function e(e,t){e=i.call(this,e,t)||this;return e.controlText(t&&t.controlText||e.localize("Close")),e}vt(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-close-button "+i.prototype.buildCSSClass.call(this)},t.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},t.handleKeyDown=function(e){Lt.isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):i.prototype.handleKeyDown.call(this,e)},e}(sn));var on=function(n){function e(e,t){var i=n.call(this,e,t=void 0===t?{}:t)||this;return t.replay=void 0===t.replay||t.replay,i.on(e,"play",function(e){return i.handlePlay(e)}),i.on(e,"pause",function(e){return i.handlePause(e)}),t.replay&&i.on(e,"ended",function(e){return i.handleEnded(e)}),i}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-play-control "+n.prototype.buildCSSClass.call(this)},t.handleClick=function(e){this.player_.paused()?It(this.player_.play()):this.player_.pause()},t.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},t.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},t.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},t.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",function(e){return t.handleSeeked(e)})},e}(sn);on.prototype.controlText_="Play",gt.registerComponent("PlayToggle",on);function un(e,t){e=e<0?0:e;var i=Math.floor(e%60),n=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),t=Math.floor(t/3600);return(r=0<(r=isNaN(e)||e===1/0?n=i="-":r)||0<t?r+":":"")+(n=((r||10<=a)&&n<10?"0"+n:n)+":")+(i=i<10?"0"+i:i)}var ln=un;function cn(e,t){return ln(e,t=void 0===t?e:t)}P=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,["timeupdate","ended"],function(e){return i.updateContent(e)}),i.updateTextNode_(),i}vt(e,n);var t=e.prototype;return t.createEl=function(){var e=this.buildCSSClass(),t=n.prototype.createEl.call(this,"div",{className:e+" vjs-time-control vjs-control"}),i=te("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+"Â "},{role:"presentation"});return t.appendChild(i),this.contentEl_=te("span",{className:e+"-display"},{"aria-live":"off",role:"presentation"}),t.appendChild(this.contentEl_),t},t.dispose=function(){this.contentEl_=null,this.textNode_=null,n.prototype.dispose.call(this)},t.updateTextNode_=function(e){var t=this;e=cn(e=void 0===e?0:e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",function(){var e;t.contentEl_&&((e=t.textNode_)&&t.contentEl_.firstChild!==e&&(e=null,y.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=d.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_)))}))},t.updateContent=function(e){},e}(gt);P.prototype.labelText_="Time",P.prototype.controlText_="Time",gt.registerComponent("TimeDisplay",P);A=function(e){function t(){return e.apply(this,arguments)||this}vt(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-current-time"},i.updateContent=function(e){var t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();this.updateTextNode_(t)},t}(P);A.prototype.labelText_="Current Time",A.prototype.controlText_="Current Time",gt.registerComponent("CurrentTimeDisplay",A);qt=function(n){function e(e,t){var i=n.call(this,e,t)||this,t=function(e){return i.updateContent(e)};return i.on(e,"durationchange",t),i.on(e,"loadstart",t),i.on(e,"loadedmetadata",t),i}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-duration"},t.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},e}(P);qt.prototype.labelText_="Duration",qt.prototype.controlText_="Duration",gt.registerComponent("DurationDisplay",qt),gt.registerComponent("TimeDivider",function(n){function e(){return n.apply(this,arguments)||this}return vt(e,n),e.prototype.createEl=function(){var e=n.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=n.prototype.createEl.call(this,"div"),i=n.prototype.createEl.call(this,"span",{textContent:"/"});return t.appendChild(i),e.appendChild(t),e},e}(gt));e=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,"durationchange",function(e){return i.updateContent(e)}),i}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-remaining-time"},t.createEl=function(){var e=n.prototype.createEl.call(this);return e.insertBefore(te("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e},t.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},e}(P);e.prototype.labelText_="Remaining Time",e.prototype.controlText_="Remaining Time",gt.registerComponent("RemainingTimeDisplay",e),gt.registerComponent("LiveDisplay",function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.updateShowing(),i.on(i.player(),"durationchange",function(e){return i.updateShowing(e)}),i}vt(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=te("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(te("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+"Â "})),this.contentEl_.appendChild(d.createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e},t.dispose=function(){this.contentEl_=null,n.prototype.dispose.call(this)},t.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},e}(gt));s=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}vt(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=te("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e},t.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},t.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},t.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,n.prototype.dispose.call(this)},e}(sn);s.prototype.controlText_="Seek to live, currently playing live",gt.registerComponent("SeekToLive",s);function dn(e,t,i){return e=Number(e),Math.min(i,Math.max(t,isNaN(e)?t:e))}o=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}vt(e,n);var t=e.prototype;return t.enabled=function(){return this.enabled_},t.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},t.disable=function(){var e;this.enabled()&&(e=this.bar.el_.ownerDocument,this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1)},t.createEl=function(e,t,i){return void 0===i&&(i={}),(t=void 0===t?{}:t).className=t.className+" vjs-slider",t=k({tabIndex:0},t),i=k({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),n.prototype.createEl.call(this,e,t,i)},t.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||B||e.preventDefault(),pe(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e)},t.handleMouseMove=function(e){},t.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;fe(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},t.update=function(){var t=this;if(this.el_&&this.bar){var i=this.getProgress();return i===this.progress_?i:(this.progress_=i,this.requestNamedAnimationFrame("Slider#update",function(){var e=t.vertical()?"height":"width";t.bar.el().style[e]=(100*i).toFixed(2)+"%"}),i)}},t.getProgress=function(){return Number(dn(this.getPercent(),0,1).toFixed(4))},t.calculateDistance=function(e){e=ye(this.el_,e);return this.vertical()?e.y:e.x},t.handleKeyDown=function(e){Lt.isEventKey(e,"Left")||Lt.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):Lt.isEventKey(e,"Right")||Lt.isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):n.prototype.handleKeyDown.call(this,e)},t.handleClick=function(e){e.stopPropagation(),e.preventDefault()},t.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},e}(gt);gt.registerComponent("Slider",o);
392function hn(e,t){return dn(e/t*100,0,100).toFixed(2)+"%"}gt.registerComponent("LoadProgressBar",function(r){function e(e,t){var i=r.call(this,e,t)||this;return i.partEls_=[],i.on(e,"progress",function(e){return i.update(e)}),i}vt(e,r);var t=e.prototype;return t.createEl=function(){var e=r.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),t=te("span",{className:"vjs-control-text"}),i=te("span",{textContent:this.localize("Loaded")}),n=d.createTextNode(": ");return this.percentageEl_=te("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(i),t.appendChild(n),t.appendChild(this.percentageEl_),e},t.dispose=function(){this.partEls_=null,this.percentageEl_=null,r.prototype.dispose.call(this)},t.update=function(e){var l=this;this.requestNamedAnimationFrame("LoadProgressBar#update",function(){var e=l.player_.liveTracker,t=l.player_.buffered(),e=e&&e.isLive()?e.seekableEnd():l.player_.duration(),i=l.player_.bufferedEnd(),n=l.partEls_,e=hn(i,e);l.percent_!==e&&(l.el_.style.width=e,ie(l.percentageEl_,e),l.percent_=e);for(var r=0;r<t.length;r++){var a=t.start(r),s=t.end(r),o=n[r];o||(o=l.el_.appendChild(te()),n[r]=o),o.dataset.start===a&&o.dataset.end===s||(o.dataset.start=a,o.dataset.end=s,o.style.left=hn(a,i),o.style.width=hn(s-a,i))}for(var u=n.length;u>t.length;u--)l.el_.removeChild(n[u-1]);n.length=t.length})},e}(gt)),gt.registerComponent("TimeTooltip",function(i){function e(e,t){t=i.call(this,e,t)||this;return t.update=Ke(Xe(yt(t),t.update),30),t}vt(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},t.update=function(e,t,i){var n=ge(this.el_),r=me(this.player_.el()),a=e.width*t;r&&n&&(t=e.left-r.left+a,r=e.width-a+(r.right-e.right),t<(e=n.width/2)?e+=e-t:r<e&&(e=r),e<0?e=0:e>n.width&&(e=n.width),e=Math.round(e),this.el_.style.right="-"+e+"px",this.write(i))},t.write=function(e){ie(this.el_,e)},t.updateTime=function(n,r,a,s){var o=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",function(){var e,t,i=o.player_.duration();i=o.player_.liveTracker&&o.player_.liveTracker.isLive()?((t=(e=o.player_.liveTracker.liveWindow())-r*e)<1?"":"-")+cn(t,e):cn(a,i),o.update(n,r,i),s&&s()})},e}(gt));L=function(i){function e(e,t){t=i.call(this,e,t)||this;return t.update=Ke(Xe(yt(t),t.update),30),t}vt(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},t.update=function(e,t){var i,n=this.getChild("timeTooltip");n&&(i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),n.updateTime(e,t,i))},e}(gt);L.prototype.options_={children:[]},G||O||L.prototype.options_.children.push("timeTooltip"),gt.registerComponent("PlayProgressBar",L);D=function(i){function e(e,t){t=i.call(this,e,t)||this;return t.update=Ke(Xe(yt(t),t.update),30),t}vt(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.update=function(e,t){var i=this,n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,function(){i.el_.style.left=e.width*t+"px"})},e}(gt);D.prototype.options_={children:["timeTooltip"]},gt.registerComponent("MouseTimeDisplay",D);W=function(a){function e(e,t){t=a.call(this,e,t)||this;return t.setEventHandlers_(),t}vt(e,a);var t=e.prototype;return t.setEventHandlers_=function(){var t=this;this.update_=Xe(this,this.update),this.update=Ke(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(e){return t.enableInterval_(e)},this.disableIntervalHandler_=function(e){return t.disableInterval_(e)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in d&&"visibilityState"in d&&this.on(d,"visibilitychange",this.toggleVisibility_)},t.toggleVisibility_=function(e){"hidden"===d.visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},t.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},t.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},t.createEl=function(){return a.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},t.update=function(e){var n=this;if("hidden"!==d.visibilityState){var r=a.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,i=n.player_.duration();
392t&&t.isLive()&&(i=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===e&&n.duration_===i||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[cn(e,i),cn(i,i)],"{1} of {2}")),n.currentTime_=e,n.duration_=i),n.bar&&n.bar.update(me(n.el()),n.getProgress())}),r}},t.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},t.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},t.getPercent=function(){var e,t=this.getCurrentTime_(),i=this.player_.liveTracker;return i&&i.isLive()?(e=(t-i.seekableStart())/i.liveWindow(),i.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},t.handleMouseDown=function(e){Ee(e)&&(e.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),a.prototype.handleMouseDown.call(this,e))},t.handleMouseMove=function(e){if(Ee(e)){var t=this.calculateDistance(e),i=this.player_.liveTracker;if(i&&i.isLive()){if(.99<=t)return void i.seekToLiveEdge();var n,r=i.seekableStart(),e=i.liveCurrentTime();if((n=(n=e<=(n=r+t*i.liveWindow())?e:n)<=r?r+.1:n)===1/0)return}else(n=t*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},t.enable=function(){a.prototype.enable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.show()},t.disable=function(){a.prototype.disable.call(this);var e=this.getChild("mouseTimeDisplay");e&&e.hide()},t.handleMouseUp=function(e){a.prototype.handleMouseUp.call(this,e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?It(this.player_.play()):this.update_()},t.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},t.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},t.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},t.handleKeyDown=function(e){var t,i=this.player_.liveTracker;Lt.isEventKey(e,"Space")||Lt.isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.handleAction(e)):Lt.isEventKey(e,"Home")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(0)):Lt.isEventKey(e,"End")?(e.preventDefault(),e.stopPropagation(),i&&i.isLive()?this.userSeek_(i.liveCurrentTime()):this.userSeek_(this.player_.duration())):/^[0-9]$/.test(Lt(e))?(e.preventDefault(),e.stopPropagation(),t=10*(Lt.codes[Lt(e)]-Lt.codes[0])/100,i&&i.isLive()?this.userSeek_(i.seekableStart()+i.liveWindow()*t):this.userSeek_(this.player_.duration()*t)):Lt.isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):Lt.isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):a.prototype.handleKeyDown.call(this,e)}
392,t.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in d&&"visibilityState"in d&&this.off(d,"visibilitychange",this.toggleVisibility_),a.prototype.dispose.call(this)},e}(o);W.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},G||O||W.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),gt.registerComponent("SeekBar",W);on=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.handleMouseMove=Ke(Xe(yt(i),i.handleMouseMove),30),i.throttledHandleMouseSeek=Ke(Xe(yt(i),i.handleMouseSeek),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}vt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},t.handleMouseMove=function(e){var t,i,n,r,a=this.getChild("seekBar");a&&(t=a.getChild("playProgressBar"),i=a.getChild("mouseTimeDisplay"),(t||i)&&(r=ge(n=a.el()),e=ye(n,e).x,e=dn(e,0,1),i&&i.update(r,e),t&&t.update(r,a.getProgress())))},t.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},t.enabled=function(){return this.enabled_},t.disable=function(){var e;
392this.children().forEach(function(e){return e.disable&&e.disable()}),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing()&&(e=this.getChild("seekBar"),this.player_.scrubbing(!1),e.videoWasPlaying&&It(this.player_.play())))},t.enable=function(){this.children().forEach(function(e){return e.enable&&e.enable()}),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},t.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},t.handleMouseDown=function(e){var t=this.el_.ownerDocument,i=this.getChild("seekBar");i&&i.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},t.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},e}(gt);on.prototype.options_={children:["seekBar"]},gt.registerComponent("ProgressControl",on);A=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,["enterpictureinpicture","leavepictureinpicture"],function(e){return i.handlePictureInPictureChange(e)}),i.on(e,["disablepictureinpicturechanged","loadedmetadata"],function(e){return i.handlePictureInPictureEnabledChange(e)}),i.disable(),i}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-picture-in-picture-control "+n.prototype.buildCSSClass.call(this)},t.handlePictureInPictureEnabledChange=function(){d.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},t.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},t.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},e}(sn);A.prototype.controlText_="Picture-in-Picture",gt.registerComponent("PictureInPictureToggle",A);qt=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,"fullscreenchange",function(e){return i.handleFullscreenChange(e)}),!1===d[e.fsApi_.fullscreenEnabled]&&i.disable(),i}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-fullscreen-control "+n.prototype.buildCSSClass.call(this)},t.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},t.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},e}(sn);qt.prototype.controlText_="Fullscreen",gt.registerComponent("FullscreenToggle",qt);gt.registerComponent("VolumeLevel",function(t){function e(){return t.apply(this,arguments)||this}return vt(e,t),e.prototype.createEl=function(){var e=t.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return e.appendChild(t.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),e},e}(gt)),gt.registerComponent("VolumeLevelTooltip",function(i){function e(e,t){t=i.call(this,e,t)||this;return t.update=Ke(Xe(yt(t),t.update),30),t}vt(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},t.update=function(e,t,i,n){if(!i){var r=me(this.el_),a=me(this.player_.el()),i=e.width*t;if(!a||!r)return;t=e.left-a.left+i,a=e.width-i+(a.right-e.right),e=r.width/2;t<e?e+=e-t:a<e&&(e=a),e<0?e=0:e>r.width&&(e=r.width),this.el_.style.right="-"+e+"px"}this.write(n+"%")},t.write=function(e){ie(this.el_,e)},t.updateVolume=function(e,t,i,n,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",function(){a.update(e,t,i,n.toFixed(0)),r&&r()})},e}(gt));P=function(i){function e(e,t){t=i.call(this,e,t)||this;return t.update=Ke(Xe(yt(t),t.update),30),t}vt(e,i);var t=e.prototype;return t.createEl=function(){return i.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},t.update=function(e,t,i){var n=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,i,r,function(){i?n.el_.style.bottom=e.height*t+"px":n.el_.style.left=e.width*t+"px"})},e}(gt);P.prototype.options_={children:["volumeLevelTooltip"]},gt.registerComponent("MouseVolumeLevelDisplay",P);e=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on("slideractive",function(e){return i.updateLastVolume_(e)}),i.on(e,"volumechange",function(e){return i.updateARIAAttributes(e)}),e.ready(function(){return i.updateARIAAttributes()}),i}vt(e,n);var t=e.prototype;return t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},t.handleMouseDown=function(e){Ee(e)&&n.prototype.handleMouseDown.call(this,e)},t.handleMouseMove=function(e){var t,i,n,r=this.getChild("mouseVolumeLevelDisplay");r&&(t=me(n=this.el()),i=this.vertical(),n=ye(n,e),n=i?n.y:n.x,n=dn(n,0,1),r.update(t,n,i)),Ee(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},t.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},t.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},t.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},t.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},t.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},t.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},t.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",function(){0===e.player_.volume()&&e.player_.lastVolume_(t)})},e}(o);e.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},G||O||e.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),e.prototype.playerEvent="volumechange",gt.registerComponent("
392VolumeBar",e);s=function(a){function e(e,t){var i,n,r;return(t=void 0===t?{}:t).vertical=t.vertical||!1,"undefined"!=typeof t.volumeBar&&!w(t.volumeBar)||(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),i=a.call(this,e,t)||this,n=yt(i),(r=e).tech_&&!r.tech_.featuresVolumeControl&&n.addClass("vjs-hidden"),n.on(r,"loadstart",function(){r.tech_.featuresVolumeControl?n.removeClass("vjs-hidden"):n.addClass("vjs-hidden")}),i.throttledHandleMouseMove=Ke(Xe(yt(i),i.handleMouseMove),30),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",function(e){return i.handleMouseDown(e)}),i.on("touchstart",function(e){return i.handleMouseDown(e)}),i.on("mousemove",function(e){return i.handleMouseMove(e)}),i.on(i.volumeBar,["focus","slideractive"],function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")}),i.on(i.volumeBar,["blur","sliderinactive"],function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")}),i}vt(e,a);var t=e.prototype;return t.createEl=function(){var e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),a.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+e})},t.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},t.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},t.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},e}(gt);s.prototype.options_={children:["volumeBar"]},gt.registerComponent("VolumeControl",s);L=function(a){function e(e,t){var i,n,r=a.call(this,e,t)||this;return i=yt(r),(n=e).tech_&&!n.tech_.featuresMuteControl&&i.addClass("vjs-hidden"),i.on(n,"loadstart",function(){n.tech_.featuresMuteControl?i.removeClass("vjs-hidden"):i.addClass("vjs-hidden")}),r.on(e,["loadstart","volumechange"],function(e){return r.update(e)}),r}vt(e,a);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-mute-control "+a.prototype.buildCSSClass.call(this)},t.handleClick=function(e){var t=this.player_.volume(),i=this.player_.lastVolume_();0===t?(this.player_.volume(i<.1?.1:i),this.player_.muted(!1)):this.player_.muted(!this.player_.muted())},t.update=function(e){this.updateIcon_(),this.updateControlText_()},t.updateIcon_=function(){var e=this.player_.volume(),t=3;G&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var i=0;i<4;i++)se(this.el_,"vjs-vol-"+i);ae(this.el_,"vjs-vol-"+t)},t.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},e}(sn);L.prototype.controlText_="Mute",gt.registerComponent("MuteToggle",L);D=function(n){function e(e,t){var i;return"undefined"!=typeof(t=void 0===t?{}:t).inline?t.inline=t.inline:t.inline=!0,"undefined"!=typeof t.volumeControl&&!w(t.volumeControl)||(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),(i=n.call(this,e,t)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(e,["loadstart"],function(e){return i.volumePanelState_(e)}),i.on(i.muteToggle,"keyup",function(e){return i.handleKeyPress(e)}),i.on(i.volumeControl,"keyup",function(e){return i.handleVolumeControlKeyUp(e)}),i.on("keydown",function(e){return i.handleKeyPress(e)}),i.on("mouseover",function(e){return i.handleMouseOver(e)}),i.on("mouseout",function(e){return i.handleMouseOut(e)}),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}vt(e,n);var t=e.prototype;return t.sliderActive_=function(){this.addClass("vjs-slider-active")},t.sliderInactive_=function(){this.removeClass("vjs-slider-active")},t.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},t.createEl=function(){var e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),n.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+e})},t.dispose=function(){this.handleMouseOut(),n.prototype.dispose.call(this)},t.handleVolumeControlKeyUp=function(e){Lt.isEventKey(e,"Esc")&&this.muteToggle.focus()},t.handleMouseOver=function(e){this.addClass("vjs-hover"),qe(d,"keyup",this.handleKeyPressHandler_)},t.handleMouseOut=function(e){this.removeClass("vjs-hover"),Ve(d,"keyup",this.handleKeyPressHandler_)},t.handleKeyPress=function(e){Lt.isEventKey(e,"Esc")&&this.handleMouseOut()},e}(gt);D.prototype.options_={children:["muteToggle","volumeControl"]}
392,gt.registerComponent("VolumePanel",D);var pn=function(n){function e(e,t){var i=n.call(this,e,t)||this;return t&&(i.menuButton_=t.menuButton),i.focusedChild_=-1,i.on("keydown",function(e){return i.handleKeyDown(e)}),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}vt(e,n);var t=e.prototype;return t.addEventListenerForItem=function(e){e instanceof gt&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},t.removeEventListenerForItem=function(e){e instanceof gt&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},t.removeChild=function(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),n.prototype.removeChild.call(this,e)},t.addItem=function(e){e=this.addChild(e);e&&this.addEventListenerForItem(e)},t.createEl=function(){var e=this.options_.contentElType||"ul";this.contentEl_=te(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");e=n.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return e.appendChild(this.contentEl_),qe(e,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),e},t.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,n.prototype.dispose.call(this)},t.handleBlur=function(e){var t=e.relatedTarget||d.activeElement;this.children().some(function(e){return e.el()===t})||(e=this.menuButton_)&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()},t.handleTapClick=function(t){var e;this.menuButton_&&(this.menuButton_.unpressButton(),e=this.children(),!Array.isArray(e)||(e=e.filter(function(e){return e.el()===t.target})[0])&&"CaptionSettingsMenuItem"!==e.name()&&this.menuButton_.focus())},t.handleKeyDown=function(e){Lt.isEventKey(e,"Left")||Lt.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(Lt.isEventKey(e,"Right")||Lt.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},t.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},t.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},t.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),0<t.length&&(e<0?e=0:e>=t.length&&(e=t.length-1),t[this.focusedChild_=e].el_.focus())},e}(gt);gt.registerComponent("Menu",pn);W=function(n){function e(e,t){var i;(i=n.call(this,e,t=void 0===t?{}:t)||this).menuButton_=new sn(e,t),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");t=sn.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+t,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;t=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",t),i.on(i.menuButton_,"click",t),i.on(i.menuButton_,"keydown",function(e){return i.handleKeyDown(e)}),i.on(i.menuButton_,"mouseenter",function(){i.addClass("vjs-hover"),i.menu.show(),qe(d,"keyup",i.handleMenuKeyUp_)}),i.on("mouseleave",function(e){return i.handleMouseLeave(e)}),i.on("keydown",function(e){return i.handleSubmenuKeyDown(e)}),i}vt(e,n);var t=e.prototype;return t.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},t.createMenu=function(){var e,t=new pn(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title&&(e=te("li",{className:"vjs-menu-title",textContent:ht(this.options_.title),tabIndex:-1}),e=new gt(this.player_,{el:e}),t.addItem(e)),this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)t.addItem(this.items[i]);return t},t.createItems=function(){},t.createEl=function(){return n.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},t.buildWrapperCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+sn.prototype.buildCSSClass()+" "+n.prototype.buildCSSClass.call(this)},t.buildCSSClass=function(){var e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup","vjs-menu-button "+e+" "+n.prototype.buildCSSClass.call(this)},t.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)}
vendor: 7,749 bytes, line 392
392,t.dispose=function(){this.handleMouseLeave(),n.prototype.dispose.call(this)},t.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},t.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Ve(d,"keyup",this.handleMenuKeyUp_)},t.focus=function(){this.menuButton_.focus()},t.blur=function(){this.menuButton_.blur()},t.handleKeyDown=function(e){Lt.isEventKey(e,"Esc")||Lt.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),Lt.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(Lt.isEventKey(e,"Up")||Lt.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},t.handleMenuKeyUp=function(e){(Lt.isEventKey(e,"Esc")||Lt.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},t.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},t.handleSubmenuKeyDown=function(e){(Lt.isEventKey(e,"Esc")||Lt.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),Lt.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},t.pressButton=function(){this.enabled_&&(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),G&&Z()||this.menu.focus())},t.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},t.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},t.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},e}(gt);gt.registerComponent("MenuButton",W);on=function(r){function e(e,t){var i=t.tracks,t=r.call(this,e,t)||this;if(t.items.length<=1&&t.hide(),!i)return yt(t);var n=Xe(yt(t),t.update);return i.addEventListener("removetrack",n),i.addEventListener("addtrack",n),i.addEventListener("labelchange",n),t.player_.on("ready",n),t.player_.on("dispose",function(){i.removeEventListener("removetrack",n),i.removeEventListener("addtrack",n),i.removeEventListener("labelchange",n)}),t}return vt(e,r),e}(W);gt.registerComponent("TrackButton",on);var fn=["Tab","Esc","Up","Down","Right","Left"],A=function(n){function e(e,t){e=n.call(this,e,t)||this;return e.selectable=t.selectable,e.isSelected_=t.selected||!1,e.multiSelectable=t.multiSelectable,e.selected(e.isSelected_),e.selectable?e.multiSelectable?e.el_.setAttribute("role","menuitemcheckbox"):e.el_.setAttribute("role","menuitemradio"):e.el_.setAttribute("role","menuitem"),e}vt(e,n);var t=e.prototype;return t.createEl=function(e,t,i){this.nonIconControl=!0;i=n.prototype.createEl.call(this,"li",k({className:"vjs-menu-item",tabIndex:-1},t),i);return i.replaceChild(te("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),i.querySelector(".vjs-icon-placeholder")),i},t.handleKeyDown=function(t){fn.some(function(e){return Lt.isEventKey(t,e)})||n.prototype.handleKeyDown.call(this,t)},t.handleClick=function(e){this.selected(!0)},t.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},e}(H);gt.registerComponent("MenuItem",A);var mn=function(u){function e(e,t){var n,i=t.track,r=e.textTracks();t.label=i.label||i.language||"Unknown",t.selected="showing"===i.mode,(n=u.call(this,e,t)||this).track=i,n.kinds=(t.kinds||[t.kind||n.track.kind]).filter(Boolean);function a(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(yt(n),t)}function s(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleSelectedLanguageChange.apply(yt(n),t)}var o;return e.on(["loadstart","texttrackchange"],a),r.addEventListener("change",a),r.addEventListener("selectedlanguagechange",s),n.on("dispose",function(){e.off(["loadstart","texttrackchange"],a),r.removeEventListener("change",a),r.removeEventListener("selectedlanguagechange",s)}),void 0===r.onchange&&n.on(["tap","click"],function(){if("object"!=typeof _.Event)try{o=new _.Event("change")}catch(e){}o||(o=d.createEvent("Event")).initEvent("change",!0,!0),r.dispatchEvent(o)}),n.handleTracksChange(),n}vt(e,u);var t=e.prototype;return t.handleClick=function(e){var t=this.track,i=this.player_.textTracks();if(u.prototype.handleClick.call(this,e),i)for(var n=0;n<i.length;n++){var r=i[n];-1!==this.kinds.indexOf(r.kind)&&(r===t?"showing"!==r.mode&&(r.mode="showing"):"disabled"!==r.mode&&(r.mode="disabled"))}},t.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},t.handleSelectedLanguageChange=function(e){var t;"showing"===this.track.mode&&((t=this.player_.cache_.selectedLanguage)&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind||(this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}))},t.dispose=function(){this.track=null,u.prototype.dispose.call(this)},e}(A);gt.registerComponent("TextTrackMenuItem",mn);var gn=function(i){function e(e,t){return t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,i.call(this,e,t)||this}vt(e,i);var t=e.prototype;return t.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(-1<this.options_.kinds.indexOf(a.kind)&&"showing"===a.mode){i=!1;break}}i!==this.isSelected_&&this.selected(i)},t.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),i=!0,n=0,r=t.length;n<r;n++){var a=t[n];if(-1<["captions","descriptions","subtitles"].indexOf(a.kind)&&"showing"===a.mode){i=!1;break}}i&&(this.player_.cache_.selectedLanguage={enabled:!1})},e}(mn);gt.registerComponent("OffTextTrackMenuItem",gn);qt=function(i){function e(e,t){return(t=void 0===t?{}:t).tracks=e.textTracks(),i.call(this,e,t)||this}return vt(e,i),e.prototype.createItems=function(e,t){var i;void 0===t&&(t=mn),this.label_&&(i=this.label_+" off"),(e=void 0===e?[]:e).push(new gn(this.player_,{kinds:this.kinds_,kind:this.kind_,label:i})),this.hideThreshold_+=1;var n=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<n.length;r++){var a,s=n[r];-1<this.kinds_.indexOf(s.kind)&&((a=new t(this.player_,{track:s,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1})).addClass("vjs-"+s.kind+"-menu-item"),e.push(a))}return e},e}(on);gt.registerComponent("TextTrackButton",qt);var yn=function(a){function e(e,t){var i=t.track,n=t.cue,r=e.currentTime();return t.selectable=!0,t.multiSelectable=!1,t.label=n.text,t.selected=n.startTime<=r&&r<n.endTime,(t=a.call(this,e,t)||this).track=i,t.cue=n,i.addEventListener("cuechange",Xe(yt(t),t.update)),t}vt(e,a);var t=e.prototype;return t.handleClick=function(e){a.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},t.update=function(e){var t=this.cue,i=this.player_.currentTime();this.selected(t.startTime<=i&&i<t.endTime)},e}(A);gt.registerComponent("ChaptersTrackMenuItem",yn);P=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-chapters-button "+n.prototype.buildWrapperCSSClass.call(this)},t.update=function(e){this.track_&&(!e||"addtrack"!==e.type&&"removetrack"!==e.type)||this.setTrack(this.findChapter
392sTrack()),n.prototype.update.call(this)},t.setTrack=function(e){var t;this.track_!==e&&(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_&&((t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&t.removeEventListener("load",this.updateHandler_),this.track_=null),this.track_=e,this.track_&&(this.track_.mode="hidden",(e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_))&&e.addEventListener("load",this.updateHandler_)))},t.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;0<=t;t--){var i=e[t];if(i.kind===this.kind_)return i}},t.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(ht(this.kind_))},t.createMenu=function(){return this.options_.title=this.getMenuCaption(),n.prototype.createMenu.call(this)},t.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var i=0,n=t.length;i<n;i++){var r=t[i],r=new yn(this.player_,{track:this.track_,cue:r});e.push(r)}return e},e}(qt);P.prototype.kind_="chapters",P.prototype.controlText_="Chapters",gt.registerComponent("ChaptersButton",P);o=function(a){function e(e,t,i){var i=a.call(this,e,t,i)||this,n=e.textTracks(),r=Xe(yt(i),i.handleTracksChange);return n.addEventListener("change",r),i.on("dispose",function(){n.removeEventListener("change",r)}),i}vt(e,a);var t=e.prototype;return t.handleTracksChange=function(e){for(var t=this.player().textTracks(),i=!1,n=0,r=t.length;n<r;n++){var a=t[n];if(a.kind!==this.kind_&&"showing"===a.mode){i=!0;break}}i?this.disable():this.enable()},t.buildCSSClass=function(){return"vjs-descriptions-button "+a.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+a.prototype.buildWrapperCSSClass.call(this)},e}(qt);o.prototype.kind_="descriptions",o.prototype.controlText_="Descriptions",gt.registerComponent("DescriptionsButton",o);e=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+n.prototype.buildWrapperCSSClass.call(this)},e}(qt);e.prototype.kind_="subtitles",e.prototype.controlText_="Subtitles",gt.registerComponent("SubtitlesButton",e);var vn=function(i){function e(e,t){return t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",(e=i.call(this,e,t)||this).addClass("vjs-texttrack-settings"),e.controlText(", opens "+t.kind+" settings dialog"),e}return vt(e,i),e.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},e}(mn);gt.registerComponent("CaptionSettingsMenuItem",vn);s=function(n){function e(e,t,i){return n.call(this,e,t,i)||this}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-captions-button "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-captions-button "+n.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new vn(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),n.prototype.createItems.call(this,e)},e}(qt);s.prototype.kind_="captions",s.prototype.controlText_="Captions",gt.registerComponent("CaptionsButton",s);var _n=function(n){function e(){return n.apply(this,arguments)||this}return vt(e,n),e.prototype.createEl=function(e,t,i){t=n.prototype.createEl.call(this,e,t,i),i=t.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(i.appendChild(te("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(te("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),t},e}(mn);gt.registerComponent("SubsCapsMenuItem",_n);L=function(i){function e(e,t){return(t=i.call(this,e,t=void 0===t?{}:t)||this).label_="subtitles",-1<["en","en-us","en-ca","fr-ca"].indexOf(t.player_.language_)&&(t.label_="captions"),t.menuButton_.controlText(ht(t.label_)),t}vt(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-subs-caps-button "+i.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+i.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){var e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new vn(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=i.prototype.createItems.call(this,e,_n)},e}(qt);L.prototype.kinds_=["captions","subtitles"],L.prototype.controlText_="Subtitles",gt.registerComponent("SubsCapsButton",L);var bn=function(s){function e(e,t){var n,i=t.track,r=e.audioTracks();t.label=i.label||i.language||"Unknown",t.selected=i.enabled,(n=s.call(this,e,t)||this).track=i,n.addClass("vjs-"+i.kind+"-menu-item");function a(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.handleTracksChange.apply(yt(n),t)}return r.addEventListener("change",a),n.on("dispose",function(){r.removeEventListener("change",a)}),n}vt(e,s);var t=e.prototype;return t.createEl=function(e,t,i){t=s.prototype.createEl.call(this,e,t,i),i=t.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(i.appendChild(s.prototype.createEl.call(this,"span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),i.appendChild(s.prototype.createEl.call(this,"span",{className:"vjs-control-text",textContent:this.localize("Descriptions")}))),t},t.handleClick=function(e){s.prototype.handleClick.call(this,e),this.track.enabled=!0},t.handleTracksChange=function(e){this.selected(this.track.enabled)},e}(A);gt.registerComponent("AudioTrackMenuItem",bn);D=function(i){function e(e,t){return(t=void 0===t?{}:t).tracks=e.audioTracks(),i.call(this,e,t)||this}vt(e,i);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-audio-button "+i.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-audio-button "+i.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),i=0;i<t.length;i++){var n=t[i];e.push(new bn(this.player_,{track:n,selectable:!0,multiSelectable:!1}))}return e},e}(on);D.prototype.controlText_="Audio Track",gt.registerComponent("AudioTrackButton",D);var Tn=function(a){function e(e,t){var i,n=t.rate,r=parseFloat(n,10);return t.label=n,t.selected=r===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,(i=a.call(this,e,t)||this).label=n,i.rate=r,i.on(e,"ratechange",function(e){return i.update(e)}),i}vt(e,a);var t=e.prototype;return t.handleClick=function(e){a.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},t.update=function(e){this.selected(this.player().playbackRate()===this.rate)},e}(A);Tn.prototype.contentElType="button",gt.registerComponent("PlaybackRateMenuItem",Tn);H=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(e,"loadstart",function(e){return i.updateVisibility(e)}),i.on(e,"ratechange",function(e){return i.updateLabel(e)}
392),i.on(e,"playbackrateschange",function(e){return i.handlePlaybackRateschange(e)}),i}vt(e,n);var t=e.prototype;return t.createEl=function(){var e=n.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=te("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e},t.dispose=function(){this.labelEl_=null,n.prototype.dispose.call(this)},t.buildCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildCSSClass.call(this)},t.buildWrapperCSSClass=function(){return"vjs-playback-rate "+n.prototype.buildWrapperCSSClass.call(this)},t.createItems=function(){for(var e=this.playbackRates(),t=[],i=e.length-1;0<=i;i--)t.push(new Tn(this.player(),{rate:e[i]+"x"}));return t},t.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},t.handleClick=function(e){for(var t=this.player().playbackRate(),i=this.playbackRates(),n=i[0],r=0;r<i.length;r++)if(i[r]>t){n=i[r];break}this.player().playbackRate(n)},t.handlePlaybackRateschange=function(e){this.update()},t.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},t.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&0<this.playbackRates().length},t.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},t.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},e}(W);H.prototype.controlText_="Playback Rate",gt.registerComponent("PlaybackRateMenuButton",H);P=function(n){function e(){return n.apply(this,arguments)||this}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-spacer "+n.prototype.buildCSSClass.call(this)},t.createEl=function(e,t,i){return void 0===e&&(e="div"),void 0===i&&(i={}),(t=void 0===t?{}:t).className||(t.className=this.buildCSSClass()),n.prototype.createEl.call(this,e,t,i)},e}(gt);gt.registerComponent("Spacer",P),gt.registerComponent("CustomControlSpacer",function(e){function t(){return e.apply(this,arguments)||this}vt(t,e);var i=t.prototype;return i.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},i.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:"Â "})},t}(P));o=function(e){function t(){return e.apply(this,arguments)||this}return vt(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(gt);o.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in d&&o.prototype.options_.children.splice(o.prototype.options_.children.length-1,0,"pictureInPictureToggle"),gt.registerComponent("ControlBar",o);e=function(n){function e(e,t){var i=n.call(this,e,t)||this;return i.on(e,"error",function(e){return i.open(e)}),i}vt(e,n);var t=e.prototype;return t.buildCSSClass=function(){return"vjs-error-display "+n.prototype.buildCSSClass.call(this)},t.content=function(){var e=this.player().error();return e?this.localize(e.message):""},e}(Ot);e.prototype.options_=b({},Ot.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),gt.registerComponent("ErrorDisplay",e);var Sn="vjs-text-track-settings",s=["#000","Black"],qt=["#00F","Blue"],L=["#0FF","Cyan"],on=["#0F0","Green"],D=["#F0F","Magenta"],A=["#F00","Red"],W=["#FFF","White"],H=["#FF0","Yellow"],P=["1","Opaque"],o=["0.5","Semi-Transparent"],e=["0","Transparent"],En={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[s,W,A,on,qt,H,D,L]},backgroundOpacity:{selector:".vjs-bg-opacity >
392 select",id:"captions-background-opacity-%s",label:"Transparency",options:[P,o,e]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[W,s,A,on,qt,H,D,L]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[P,o]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[e,o,P]}};function kn(e,t){if((e=t?t(e):e)&&"none"!==e)return e}En.windowColor.options=En.backgroundColor.options,gt.registerComponent("TextTrackSettings",function(n){function e(e,t){var i;return t.temporary=!1,(i=n.call(this,e,t)||this).updateDisplay=i.updateDisplay.bind(yt(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=te("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===t.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",function(){i.saveSettings(),i.close()}),i.on(i.$(".vjs-default-button"),"click",function(){i.setDefaults(),i.updateDisplay()}),E(En,function(e){i.on(i.$(e.selector),"change",i.updateDisplay)}),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}vt(e,n);var t=e.prototype;return t.dispose=function(){this.endDialog=null,n.prototype.dispose.call(this)},t.createElSelect_=function(e,t,i){var n=this;void 0===t&&(t=""),void 0===i&&(i="label");var e=En[e],r=e.id.replace("%s",this.id_),a=[t,r].join(" ").trim();return["<"+i+' id="'+r+'" class="'+("label"===i?"vjs-label":"")+'">',this.localize(e.label),"</"+i+">",'<select aria-labelledby="'+a+'">'].concat(e.options.map(function(e){var t=r+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+a+" "+t+'">',n.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")},t.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},t.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},t.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},t.createElColors_=function(){return te("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},t.createElFont_=function(){return te("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},t.createElControls_=function(){var e=this.localize("restore all settings to the default values");return te("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},t.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},t.label=function(){return this.localize("Caption Settings Dialog")},t.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},t.buildCSSClass=function(){return n.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},t.getValues=function(){var i,n,e,r=this;return n=function(e,t,i){var n,t=(n=r.$(t.selector),t=t.parser,kn(n.options[n.options.selectedIndex].value,t));return void 0!==t&&(e[i]=t),e},void 0===(e={})&&(e=0),S(i=En).reduce(function(e,t){return n(e,i[t],t)},e)},t.setValues=function(i){var n=this;E(En,function(e,t){!function(e,t,i){if(t)for(var n=0;n<e.options.length;n++)if(kn(e.options[n].value,i)===t){e.selectedIndex=n;break}}(n.$(e.selector),i[t],e.parser)})},t.setDefaults=function(){var i=this;E(En,function(e){var t=e.hasOwnProperty("default")?e.default:0;i.$(e.selector).selectedIndex=t})},t.restoreSettings=function(){var e;try{e=JSON.parse(_.localStorage.getItem(Sn))}catch(e){y.warn(e)}e&&this.setValues(e)},t.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?_.localStorage.setItem(Sn,JSON.stringify(e)):_.localStorage.removeItem(Sn)}catch(e){y.warn(e)}}},t.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},t.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,e=e&&e.captionsButton;
392t?t.focus():e&&e.focus()},e}(Ot)),gt.registerComponent("ResizeManager",function(a){function e(e,t){var i,n=t.ResizeObserver||_.ResizeObserver,r=pt({createEl:!(n=null===t.ResizeObserver?!1:n),reportTouchActivity:!1},t);return(i=a.call(this,e,r)||this).ResizeObserver=t.ResizeObserver||_.ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=Ye(function(){i.resizeHandler()},100,!1,yt(i)),n?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(e.el())):(i.loadListener_=function(){var e,t;i.el_&&i.el_.contentWindow&&(e=i.debouncedHandler_,t=i.unloadListener_=function(){Ve(this,"resize",e),Ve(this,"unload",t),t=null},qe(i.el_.contentWindow,"unload",t),qe(i.el_.contentWindow,"resize",e))},i.one("load",i.loadListener_)),i}vt(e,a);var t=e.prototype;return t.createEl=function(){return a.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},t.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},t.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,a.prototype.dispose.call(this)},e}(gt));var Cn={trackingThreshold:30,liveTolerance:15};gt.registerComponent("LiveTracker",function(n){function e(e,t){var t=pt(Cn,t,{createEl:!1}),i=n.call(this,e,t)||this;return i.handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",function(e){return i.handleDurationchange(e)}),i.one(i.player_,"canplay",function(){return i.toggleTracking()}),j&&"hidden"in d&&"visibilityState"in d&&i.on(d,"visibilitychange",i.handleVisibilityChange_),i}vt(e,n);var t=e.prototype;return t.handleVisibilityChange=function(){this.player_.duration()===1/0&&(d.hidden?this.stopTracking():this.startTracking())},t.trackLive_=function(){var e,t=this.player_.seekable();t&&t.length&&(e=Number(_.performance.now().toFixed(4)),t=-1===this.lastTime_?0:(e-this.lastTime_)/1e3,this.lastTime_=e,this.pastSeekEnd_=this.pastSeekEnd()+t,e=this.liveCurrentTime(),t=this.player_.currentTime(),t=this.player_.paused()||this.seekedBehindLive_||Math.abs(e-t)>this.options_.liveTolerance,(t=!this.timeupdateSeen_||e===1/0?!1:t)!==this.behindLiveEdge_&&(this.behindLiveEdge_=t,this.trigger("liveedgechange")))},t.handleDurationchange=function(){this.toggleTracking()},t.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},t.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},t.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},t.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&2<e,this.nextSeekedFromUser_=!1,this.trackLive_()},t.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},t.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},t.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},t.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},t.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.end(i));return t.length?t.sort()[t.length-1]:1/0},t.seekableStart=function(){for(var e=this.player_.seekable(),t=[],i=e?e.length:0;i--;)t.push(e.start(i));return t.length?t.sort()[0]:0}
392,t.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},t.isLive=function(){return this.isTracking()},t.atLiveEdge=function(){return!this.behindLiveEdge()},t.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},t.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},t.behindLiveEdge=function(){return this.behindLiveEdge_},t.isTracking=function(){return"number"==typeof this.trackingInterval_},t.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},t.dispose=function(){this.off(d,"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),n.prototype.dispose.call(this)},e}(gt));function wn(e){if((n=e.el()).hasAttribute("src"))return e.triggerSourceset(n.src),1;var t=e.$$("source"),i=[],n="";if(t.length){for(var r=0;r<t.length;r++){var a=t[r].src;a&&-1===i.indexOf(a)&&i.push(a)}return!!i.length&&(1===i.length&&(n=i[0]),e.triggerSourceset(n),!0)}}function In(e,t){for(var i={},n=0;n<e.length&&!((i=Object.getOwnPropertyDescriptor(e[n],t))&&i.set&&i.get);n++);return i.enumerable=!0,i.configurable=!0,i}function xn(a){var t,e,i,s=a.el();s.resetSourceWatch_||(t={},e=In([a.el(),_.HTMLMediaElement.prototype,_.Element.prototype,Dn],"innerHTML"),i=function(r){return function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=r.apply(s,t);return wn(a),n}},["append","appendChild","insertAdjacentHTML"].forEach(function(e){s[e]&&(t[e]=s[e],s[e]=i(t[e]))}),Object.defineProperty(s,"innerHTML",pt(e,{set:i(e.set)})),s.resetSourceWatch_=function(){s.resetSourceWatch_=null,Object.keys(t).forEach(function(e){s[e]=t[e]}),Object.defineProperty(s,"innerHTML",e)},a.one("sourceset",s.resetSourceWatch_))}function An(i){var n,t,r,a;i.featuresSourceset&&((n=i.el()).resetSourceset_||(t=In([i.el(),_.HTMLMediaElement.prototype,On],"src"),r=n.setAttribute,a=n.load,Object.defineProperty(n,"src",pt(t,{set:function(e){e=t.set.call(n,e);return i.triggerSourceset(n.src),e}})),n.setAttribute=function(e,t){t=r.call(n,e,t);return/src/i.test(e)&&i.triggerSourceset(n.src),t},n.load=function(){var e=a.call(n);return wn(i)||(i.triggerSourceset(""),xn(i)),e},n.currentSrc?i.triggerSourceset(n.currentSrc):wn(i)||xn(i),n.resetSourceset_=function(){n.resetSourceset_=null,n.load=a,n.setAttribute=r,Object.defineProperty(n,"src",t),n.resetSourceWatch_&&n.resetSourceWatch_()}))}function Pn(t,i,n,e){function r(e){return Object.defineProperty(t,i,{value:e,enumerable:!0,writable:!0})}var a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return(e=void 0===e?!0:e)&&(a.set=r),Object.defineProperty(t,i,a)}var Ln,Dn=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=d.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var i=d.createDocumentFragment();t.childNodes.length;)i.appendChild(t.childNodes[0]);return this.innerText="",_.Element.prototype.appendChild.call(this,i),this.innerHTML}}),On=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?Ft(_.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return _.Element.prototype.setAttribute.call(this,"src",e),e}}),Rn=function(l){function s(e,t){var i=l.call(this,e,t)||this,t=e.source,n=!1;if(t&&(i.el_.currentSrc!==t.src||e.tag&&3===e.tag.initNetworkState_)?i.setSource(t):i.handleLateInit_(i.el_),e.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var r=i.el_.childNodes,a=r.length,s=[];a--;){var o=r[a];"track"===o.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(o),i.remoteTextTracks().addTrack(o.track),i.textTracks().addTrack(o.track),n||i.el_.hasAttribute("crossorigin")||!Ht(o.src)||(n=!0)):s.push(o))}for(var u=0;u<s.length;u++)i.el_.removeChild(s[u])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&n&&y.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(V||z||M)&&!0===e.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}vt(s,l);var e=s.prototype;return e.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),s.disposeMediaElement(this.el_),this.options_=null,l.prototype.dispose.call(this)},e.setupSourcesetHandling_=function(){An(this)},e.restoreMetadataTracksInIOSNativePlayer_=function(){function e(){i=[];for(var e=0;e<n.length;e++){var t=n[e];"metadata"===t.kind&&i.push({track:t,storedMode:t.mode})}}var i,n=this.textTracks();e(),n.addEventListener("change",e),this.on("dispose",function(){return n.removeEventListener("change",e)});function r(){for(var e=0;e<i.length;e++){var t=i[e];"disabled"===t.track.mode&&t.track.mode!==t.storedMode&&(t.track.mode=t.storedMode)}n.removeEventListener("change",r)}this.on("webkitbeginfullscreen",function(){n.removeEventListener("change",e),n.removeEventListener("change",r),n.addEventListener("change",r)}),this.on("webkitendfullscreen",function(){n.removeEventListener("change",e),n.addEventListener("change",e),n.removeEventListener("change",r)})},e.overrideNative_=function(e,t){var i,n=this;t===this["featuresNative"+e+"Tracks"]&&(this[(i=e.toLowerCase())+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEac
392h(function(e){n.el()[i+"Tracks"].removeEventListener(e,n[i+"TracksListeners_"][e])}),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i))},e.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},e.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},e.proxyNativeTracksForType_=function(i){var e,t,n=this,r=oi[i],a=this.el()[r.getterName],s=this[r.getterName]();this["featuresNative"+r.capitalName+"Tracks"]&&a&&a.addEventListener&&(t=function(){for(var e=[],t=0;t<s.length;t++){for(var i=!1,n=0;n<a.length;n++)if(a[n]===s[t]){i=!0;break}i||e.push(s[t])}for(;e.length;)s.removeTrack(e.shift())},this[r.getterName+"Listeners_"]=e={change:function(e){var t={type:"change",target:s,currentTarget:s,srcElement:s};s.trigger(t),"text"===i&&n[ui.remoteText.getterName]().trigger(t)},addtrack:function(e){s.addTrack(e.track)},removetrack:function(e){s.removeTrack(e.track)}},Object.keys(e).forEach(function(t){var i=e[t];a.addEventListener(t,i),n.on("dispose",function(e){return a.removeEventListener(t,i)})}),this.on("loadstart",t),this.on("dispose",function(e){return n.off("loadstart",t)}))},e.proxyNativeTracks_=function(){var t=this;oi.names.forEach(function(e){t.proxyNativeTracksForType_(e)})},e.createEl=function(){var e,t=this.options_.tag;t&&(this.options_.playerElIngest||this.movingMediaElementInDOM)||(t?(e=t.cloneNode(!0),t.parentNode&&t.parentNode.insertBefore(e,t),s.disposeMediaElement(t),t=e):(t=d.createElement("video"),e=pt({},this.options_.tag&&le(this.options_.tag)),V&&!0===this.options_.nativeControlsForTouch||delete e.controls,ue(t,k(e,{id:this.options_.techId,class:"vjs-tech"}))),t.playerId=this.options_.playerId),"undefined"!=typeof this.options_.preload&&de(t,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(t.disablePictureInPicture=this.options_.disablePictureInPicture);for(var i=["loop","muted","playsinline","autoplay"],n=0;n<i.length;n++){var r=i[n],a=this.options_[r];"undefined"!=typeof a&&(a?de(t,r,r):he(t,r),t[r]=a)}return t},e.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,i=function(){t=!0};this.on("loadstart",i);var n=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",i),this.off("loadedmetadata",n),t||this.trigger("loadstart")})}var r=["loadstart"];r.push("loadedmetadata"),2<=e.readyState&&r.push("loadeddata"),3<=e.readyState&&r.push("canplay"),4<=e.readyState&&r.push("canplaythrough"),this.ready(function(){r.forEach(function(e){this.trigger(e)},this)})}},e.setScrubbing=function(e){this.isScrubbing_=e},e.scrubbing=function(){return this.isScrubbing_},e.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&X?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){y(e,"Video is not ready. (Video.js)")}},e.duration=function(){var t=this;return this.el_.duration===1/0&&O&&B&&0===this.el_.currentTime?(this.on("timeupdate",function e(){0<t.el_.currentTime&&(t.el_.duration===1/0&&t.trigger("durationchange"),t.off("timeupdate",e))}),NaN):this.el_.duration||NaN},e.width=function(){return this.el_.offsetWidth},e.height=function(){return this.el_.offsetHeight},e.proxyWebkitFullscreen_=function(){var e,t,i=this;"webkitDisplayingFullscreen"in this.el_&&(e=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))},this.on("webkitbeginfullscreen",t),this.on("dispose",function(){i.off("webkitbeginfullscreen",t),i.off("webkitendfullscreen",e)}))},e.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=_.navigator&&_.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},e.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)It(this.el_.play()),this.setTimeout(function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},e.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},e.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},e.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},e.reset=function(){s.resetMediaElement(this.el_)},e.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},e.setControls=function(e){this.el_.controls=!!e},e.addTextTrack=function(e,t,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,i):l.prototype.addTextTrack.call(this,e,t,i)},e.createRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return l.prototype.createRemoteTextTrack.call(this,e);var t=d.createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t},e.addRemoteTextTrack=function(e,t){t=l.prototype.addRemoteTextTrack.call(this,e,t);return this.featuresNativeTextTracks&&this.el().appendChild(t),t},e.removeRemoteTextTrack=function(e){if(l.prototype.removeRemoteTextTrack.call(this,e),this.featuresNativeTextTracks)for(var t=this.$$("track"),i=t.length;i--;)e!==t[i]&&e!==t[i].track||this.el().removeChild(t[i])},e.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return"undefined"!=typeof this.el().webkitDroppedFrameCount&&"undefined"!=typeof this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),_.performance&&"function"==typeof _.performance.now?e.creationTime=_.performance.now():_.performance&&_.performance.timing&&"number"==typeof _.performance.timing.navigationStart&&(e.creationTime=_.Date.now()-_.performance.timing.navigationStart),e},s}(ji);Pn(Rn,"TEST_VID",function(){if($()){var e=d.createElement("video"),t=d.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}}
vendor: 8,597 bytes, line 392
392),Rn.isSupported=function(){try{Rn.TEST_VID.volume=.5}catch(e){return!1}return!(!Rn.TEST_VID||!Rn.TEST_VID.canPlayType)},Rn.canPlayType=function(e){return Rn.TEST_VID.canPlayType(e)},Rn.canPlaySource=function(e,t){return Rn.canPlayType(e.type)},Rn.canControlVolume=function(){try{var e=Rn.TEST_VID.volume;return Rn.TEST_VID.volume=e/2+.1,e!==Rn.TEST_VID.volume}catch(e){return!1}},Rn.canMuteVolume=function(){try{var e=Rn.TEST_VID.muted;return Rn.TEST_VID.muted=!e,Rn.TEST_VID.muted?de(Rn.TEST_VID,"muted","muted"):he(Rn.TEST_VID,"muted"),e!==Rn.TEST_VID.muted}catch(e){return!1}},Rn.canControlPlaybackRate=function(){if(O&&B&&F<58)return!1;try{var e=Rn.TEST_VID.playbackRate;return Rn.TEST_VID.playbackRate=e/2+.1,e!==Rn.TEST_VID.playbackRate}catch(e){return!1}},Rn.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(d.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(d.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(d.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(d.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Rn.supportsNativeTextTracks=function(){return X||G&&B},Rn.supportsNativeVideoTracks=function(){return!(!Rn.TEST_VID||!Rn.TEST_VID.videoTracks)},Rn.supportsNativeAudioTracks=function(){return!(!Rn.TEST_VID||!Rn.TEST_VID.audioTracks)},Rn.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach(function(e){var t=e[0],i=e[1];Pn(Rn.prototype,t,function(){return Rn[i]()},!0)}),Rn.prototype.movingMediaElementInDOM=!G,Rn.prototype.featuresFullscreenResize=!0,Rn.prototype.featuresProgressEvents=!0,Rn.prototype.featuresTimeupdateEvents=!0,Rn.patchCanPlayType=function(){4<=R&&!N&&!B&&(Ln=Rn.TEST_VID&&Rn.TEST_VID.constructor.prototype.canPlayType,Rn.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":Ln.call(this,e)})},Rn.unpatchCanPlayType=function(){var e=Rn.TEST_VID.constructor.prototype.canPlayType;return Ln&&(Rn.TEST_VID.constructor.prototype.canPlayType=Ln),e},Rn.patchCanPlayType(),Rn.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Rn.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),i=t.length;i--;)e.removeChild(t[i]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach(function(e){Rn.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(t){Rn.prototype["set"+ht(t)]=function(e){(this.el_[t]=e)?this.el_.setAttribute(t,t):this.el_.removeAttribute(t)}}),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach(function(e){Rn.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(t){Rn.prototype["set"+ht(t)]=function(e){this.el_[t]=e}}),["pause","load","play"].forEach(function(e){Rn.prototype[e]=function(){return this.el_[e]()}}),ji.withSourceHandlers(Rn),Rn.nativeSourceHandler={},Rn.nativeSourceHandler.canPlayType=function(e){try{return Rn.TEST_VID.canPlayType(e)}catch(e){return""}},Rn.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Rn.nativeSourceHandler.canPlayType(e.type);if(e.src){e=jt(e.src);return Rn.nativeSourceHandler.canPlayType("video/"+e)}return""},Rn.nativeSourceHandler.handleSource=function(e,t,i){t.setSrc(e.src)},Rn.nativeSourceHandler.dispose=function(){},Rn.registerSourceHandler(Rn.nativeSourceHandler),ji.registerTech("Html5",Rn);var Mn=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Nn={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Un=["tiny","xsmall","small","medium","large","xlarge","huge"],Bn={};Un.forEach(function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Bn[e]="vjs-layout-"+t});var Fn={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},jn=function(c){function o(e,t,i){var n,r;if(e.id=e.id||t.id||"vjs_video_"+Re++,(t=k(o.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language)if("function"==typeof e.closest){var a=e.closest("[lang]");a&&a.getAttribute&&(t.language=a.getAttribute("lang"))}else for(var s=e;s&&1===s.nodeType;){if(le(s).hasOwnProperty("lang")){t.language=s.getAttribute("lang");break}s=s.parentNode}if((n=c.call(this,null,t,i)||this).boundDocumentFullscreenChange_=function(e){return n.documentFullscreenChange_(e)},n.boundFullWindowOnEscKey_=function(e){return n.fullWindowOnEscKey(e)},n.boundUpdateStyleEl_=function(e){return n.updateStyleEl_(e)},n.boundApplyInitTime_=function(e){return n.applyInitTime_(e)},n.boundUpdateCurrentBreakpoint_=function(e){return n.updateCurrentBreakpoint_(e)},n.boundHandleTechClick_=function(e){return n.handleTechClick_(e)},n.boundHandleTechDoubleClick_=function(e){return n.handleTechDoubleClick_(e)},n.boundHandleTechTouchStart_=function(e){return n.handleTechTouchStart_(e)},n.boundHandleTechTouchMove_=function(e){return n.handleTechTouchMove_(e)},n.boundHandleTechTouchEnd_=function(e){return n.handleTechTouchEnd_(e)},n.boundHandleTechTap_=function(e){return n.handleTechTap_(e)},n.isFullscreen_=!1,n.log=v(n.id_),n.fsApi_=l,n.isPosterFromTech_=!1,n.queuedCallbacks_=[],n.isReady_=!1,n.hasStarted_=!1,n.userActive_=!1,n.debugEnabled_=!1,!n.options_||!n.options_.techOrder||!n.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");n.tag=e,n.tagAttributes=e&&le(e),n.language(n.options_.language),t.languages?(r={},Object.getOwnPropertyNames(t.languages).forEach(function(e){r[e.toLowerCase()]=t.languages[e]}),n.languages_=r):n.languages_=o.prototype.options_.languages,n.resetCache_(),n.poster_=t.poster||"",n.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),n.changingSrc_=!1,n.playCallbacks_=[],n.playTerminatedQueue_=[],e.hasAttribute("autoplay")?n.autoplay(!0):n.autoplay(n.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(function(e){if("function"!=typeof n[e])throw new Error('plugin "'+e+'" does not exist')}),n.scrubbing_=!1,n.el_=n.createEl(),ut(yt(n),{eventBusKey:"el_"}),n.fsApi_.requestFullscreen&&(qe(d,n.fsApi_.fullscreenchange,n.boundDocumentFullscreenChange_),n.on(n.fsApi_.fullscreenchange,n.boundDocumentFullscreenChange_)),n.fluid_&&n.on(["playerreset","resize"],n.boundUpdateStyleEl_);i=pt(n.options_);t.plugins&&Object.keys(t.plugins).forEach(function(e){n[e](t.plugins[e])}),t.debug&&n.debug(!0),n.options_.playerOptions=i,n.middleware_=[],n.playbackRates(t.playbackRates),n.initChildren(),n.isAudio("audio"===e.nodeName.toLowerCase()),n.controls()?n.addClass("vjs-controls-enabled"):n.addClass("vjs-controls-disabled"),n.el_.setAttribute("role","region"),n.isAudio()?n.el_.setAttribute("aria-label",n.localize("Audio Player")):n.el_.setAttribute("aria-label",n.localize("Video Player")),n.isAudio()&&n.addClass("vjs-audio"),n.flexNotSupported_()&&n.addClass("vjs-no-flex"),V&&n.addClass("vjs-touch-enabled"),G||n.addClass("vjs-workinghover"),o.players[n.id_]=yt(n);e=u.split(".")[0];return n.addClass("vjs-v"+e),n.userActive(!0),n.reportUserActivity(),n.one("play",function(e){return n.listenForUserActivity_(e)}),n.on("stageclick",function(e){return n.handleStageClick_(e)}),n.on("keydown",function(e){return n.handleKeyDown(e)}),n.on("languagechange",function(e){return n.handleLanguagechange(e)}
392),n.breakpoints(n.options_.breakpoints),n.responsive(n.options_.responsive),n}vt(o,c);var e=o.prototype;return e.dispose=function(){var t=this;this.trigger("dispose"),this.off("dispose"),Ve(d,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ve(d,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),o.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),qi[this.id()]=null,li.names.forEach(function(e){e=li[e],e=t[e.getterName]();e&&e.off&&e.off()}),c.prototype.dispose.call(this)},e.createEl=function(){var t,i=this.tag,e=this.playerElIngest_=i.parentNode&&i.parentNode.hasAttribute&&i.parentNode.hasAttribute("data-vjs-player"),n="video-js"===this.tag.tagName.toLowerCase();e?t=this.el_=i.parentNode:n||(t=this.el_=c.prototype.createEl.call(this,"div"));var r,a,s=le(i);if(n){for(t=this.el_=i,i=this.tag=d.createElement("video");t.children.length;)i.appendChild(t.firstChild);re(t,"video-js")||ae(t,"video-js"),t.appendChild(i),e=this.playerElIngest_=t,Object.keys(t).forEach(function(e){try{i[e]=t[e]}catch(e){}})}i.setAttribute("tabindex","-1"),s.tabindex="-1",(j||B&&q)&&(i.setAttribute("role","application"),s.role="application"),i.removeAttribute("width"),i.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach(function(e){n&&"class"===e||t.setAttribute(e,s[e]),n&&i.setAttribute(e,s[e])}),i.playerId=i.id,i.id+="_html5_api",i.className="vjs-tech",(i.player=t.player=this).addClass("vjs-paused"),!0!==_.VIDEOJS_NO_DYNAMIC_STYLE&&(this.styleEl_=De("vjs-styles-dimensions"),r=Ce(".vjs-styles-defaults"),(a=Ce("head")).insertBefore(this.styleEl_,r?r.nextSibling:a.firstChild)),this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var o=i.getElementsByTagName("a"),u=0;u<o.length;u++){var l=o.item(u);ae(l,"vjs-hidden"),l.setAttribute("hidden","hidden")}return i.initNetworkState_=i.networkState,i.parentNode&&!e&&i.parentNode.insertBefore(t,i),ne(i,t),this.children_.unshift(i),this.el_.setAttribute("lang",this.language_),this.el_=t},e.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):y.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},e.width=function(e){return this.dimension("width",e)},e.height=function(e){return this.dimension("height",e)},e.dimension=function(e,t){var i=e+"_";if(void 0===t)return this[i]||0;if(""===t||"auto"===t)return this[i]=void 0,void this.updateStyleEl_();var n=parseFloat(t);isNaN(n)?y.error('Improper value "'+t+'" supplied for for '+e):(this[i]=n,this.updateStyleEl_())},e.fluid=function(e){var t,i=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,st(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),t=function(){i.on(["playerreset","resize"],i.boundUpdateStyleEl_)},st(e=this)?t():(e.eventedCallbacks||(e.eventedCallbacks=[]),e.eventedCallbacks.push(t))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},e.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},e.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},e.updateStyleEl_=function(){var e,t,i,n;!0!==_.VIDEOJS_NO_DYNAMIC_STYLE?(n=(i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:0<this.videoWidth()?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"))[1]/i[0],e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/n:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*n,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),Oe
392(this.styleEl_,"\n ."+i+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+i+".vjs-fluid {\n padding-top: "+100*n+"%;\n }\n ")):(t="number"==typeof this.width_?this.width_:this.options_.width,i="number"==typeof this.height_?this.height_:this.options_.height,(n=this.tech_&&this.tech_.el())&&(0<=t&&(n.width=t),0<=i&&(n.height=i)))},e.loadTech_=function(e,t){var i=this;this.tech_&&this.unloadTech_();var n=ht(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(ji.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;var a=this.autoplay(),s={source:t,autoplay:a="string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay?!1:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};li.names.forEach(function(e){e=li[e];s[e.getterName]=i[e.privateName]}),k(s,this.options_[n]),k(s,this.options_[r]),k(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&0<this.cache_.currentTime&&(s.startTime=this.cache_.currentTime);e=ji.getTech(e);if(!e)throw new Error("No Tech named '"+n+"' exists! '"+n+"' should be registered using videojs.registerTech()'");this.tech_=new e(s),this.tech_.ready(Xe(this,this.handleTechReady_),!0),Pt(this.textTracksJson_||[],this.tech_),Mn.forEach(function(t){i.on(i.tech_,t,function(e){return i["handleTech"+ht(t)+"_"](e)})}),Object.keys(Nn).forEach(function(t){i.on(i.tech_,t,function(e){0===i.tech_.playbackRate()&&i.tech_.seeking()?i.queuedCallbacks_.push({callback:i["handleTech"+Nn[t]+"_"].bind(i),event:e}):i["handleTech"+Nn[t]+"_"](e)})}),this.on(this.tech_,"loadstart",function(e){return i.handleTechLoadStart_(e)}),this.on(this.tech_,"sourceset",function(e){return i.handleTechSourceset_(e)}),this.on(this.tech_,"waiting",function(e){return i.handleTechWaiting_(e)}),this.on(this.tech_,"ended",function(e){return i.handleTechEnded_(e)}),this.on(this.tech_,"seeking",function(e){return i.handleTechSeeking_(e)}),this.on(this.tech_,"play",function(e){return i.handleTechPlay_(e)}),this.on(this.tech_,"firstplay",function(e){return i.handleTechFirstPlay_(e)}),this.on(this.tech_,"pause",function(e){return i.handleTechPause_(e)}),this.on(this.tech_,"durationchange",function(e){return i.handleTechDurationChange_(e)}),this.on(this.tech_,"fullscreenchange",function(e,t){return i.handleTechFullscreenChange_(e,t)}),this.on(this.tech_,"fullscreenerror",function(e,t){return i.handleTechFullscreenError_(e,t)}),this.on(this.tech_,"enterpictureinpicture",function(e){return i.handleTechEnterPictureInPicture_(e)}),this.on(this.tech_,"leavepictureinpicture",function(e){return i.handleTechLeavePictureInPicture_(e)}),this.on(this.tech_,"error",function(e){return i.handleTechError_(e)}),this.on(this.tech_,"posterchange",function(e){return i.handleTechPosterChange_(e)}),this.on(this.tech_,"textdata",function(e){return i.handleTechTextData_(e)}),this.on(this.tech_,"ratechange",function(e){return i.handleTechRateChange_(e)}),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||ne(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},e.unloadTech_=function(){var t=this;li.names.forEach(function(e){e=li[e];t[e.privateName]=t[e.getterName]()}),this.textTracksJson_=At(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},e.tech=function(e){return void 0===e&&y.warn("Using the tech directly can be dangerous. I hope you know
392what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},e.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},e.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},e.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},e.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},e.manualAutoplay_=function(e){var n=this;if(this.tech_&&"string"==typeof e){var t,i=function(){var e=n.muted();n.muted(!0);function t(){n.muted(e)}n.playTerminatedQueue_.push(t);var i=n.play();if(wt(i))return i.catch(function(e){throw t(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))})};if("any"!==e||this.muted()?t="muted"!==e||this.muted()?this.play():i():wt(t=this.play())&&(t=t.catch(i)),wt(t))return t.then(function(){n.trigger({type:"autoplay-success",autoplay:e})}).catch(function(){n.trigger({type:"autoplay-failure",autoplay:e})})}},e.updateSourceCaches_=function(e){var t=e=void 0===e?"":e,i="";"string"!=typeof t&&(t=e.src,i=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!i&&(i=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var i=e.cache_.sources.filter(function(e){return e.src===t});if(i.length)return i[0].type;for(var n=e.$$("source"),r=0;r<n.length;r++){var a=n[r];if(a.type&&a.src&&a.src===t)return a.type}return $i(t)}(this,t)),this.cache_.source=pt({},e,{src:t,type:i});for(var i=this.cache_.sources.filter(function(e){return e.src&&e.src===t}),n=[],r=this.$$("source"),a=[],s=0;s<r.length;s++){var o=le(r[s]);n.push(o),o.src&&o.src===t&&a.push(o.src)}a.length&&!i.length?this.cache_.sources=n:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},e.handleTechSourceset_=function(e){var t,i,n,r=this;this.changingSrc_||(t=function(e){return r.updateSourceCaches_(e)},i=this.currentSource().src,n=e.src,i&&!/^blob:/.test(i)&&/^blob:/.test(n)&&(this.lastSource_&&(this.lastSource_.tech===n||this.lastSource_.player===i)||(t=function(){})),t(n),e.src||this.tech_.any(["sourceset","loadstart"],function(e){"sourceset"!==e.type&&(e=r.techGet("currentSrc"),r.lastSource_.tech=e,r.updateSourceCaches_(e))})),this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},e.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},e.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},e.handleTechRateChange_=function(){0<this.tech_.playbackRate()&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(function(e){return e.callback(e.event)}),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},e.handleTechWaiting_=function(){var t=this;this.addClass("vjs-waiting"),this.trigger("waiting");var i=this.currentTime();this.on("timeupdate",function e(){i!==t.currentTime()&&(t.removeClass("vjs-waiting"),t.off("timeupdate",e))})},e.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},e.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},e.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},e.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},e.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},e.handleTechFirstPlay_=function(){this.options_.starttime&&(y.warn("Passing the `starttime` option to the player will be deprecated
392in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},e.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},e.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},e.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},e.handleTechClick_=function(e){this.controls_&&(this.paused()?It(this.play()):this.pause())},e.handleTechDoubleClick_=function(t){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),function(e){return e.contains(t.target)})||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,t):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},e.handleTechTap_=function(){this.userActive(!this.userActive())},e.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},e.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},e.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},e.handleStageClick_=function(){this.reportUserActivity()},e.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},e.documentFullscreenChange_=function(e){var t=e.target.player;t&&t!==this||(e=this.el(),!(t=d[this.fsApi_.fullscreenElement]===e)&&e.matches?t=e.matches(":"+this.fsApi_.fullscreen):!t&&e.msMatchesSelector&&(t=e.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(t))},e.handleTechFullscreenChange_=function(e,t){t&&(t.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(t.isFullscreen))},e.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},e.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},e.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},e.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},e.handleTechError_=function(){var e=this.tech_.error();this.error(e)},e.handleTechTextData_=function(){this.trigger("textdata",1<arguments.length?arguments[1]:null)},e.getCache=function(){return this.cache_},e.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},e.techCall_=function(n,r){this.ready(function(){if(n in Xi)return e=this.middleware_,t=this.tech_,i=r,t[t=n](e.reduce(Yi(t),i));if(n in Ki)return zi(this.middleware_,this.tech_,n,r);var e,t,i;try{this.tech_&&this.tech_[n](r)}catch(e){throw y(e),e}},!0)},e.techGet_=function(t){if(this.tech_&&this.tech_.isReady_){if(t in Gi)return e=this.middleware_,i=this.tech_,n=t,e.reduceRight(Yi(n),i[n]());if(t in Ki)return zi(this.middleware_,this.tech_,t);var e,i,n;try{return this.tech_[t]()}catch(e){if(void 0===this.tech_[t])throw y("Video.js: "+t+" method not defined for "+this.techName_+" playback technology.",e),e;if("TypeError"===e.name)throw y("Video.js: "+t+" unavailable on "+this.techName_+" playback technology element.",e),this.tech_.isReady_=!1,e;throw y(e),e}}},e.play=function(){var t=this,e=this.options_.Promise||_.Promise;return e?new e(function(e){t.play_(e)}):this.play_()},e.play_=function(e){var t=this;this.playCallbacks_.push(e=void 0===e?It:e);e=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!e)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(e||!X&&!G||this.load());e=this.techGet_("play");null===e?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(e)},e.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})},e.runPlayCallbacks_=function(t){var e=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],e.forEach(function(e){e(t)})},e.pause=function(){this.techCall_("pause")},e.paused=function(){return!1!==this.techGet_("paused")},e.played=function(){return this.techGet_("played")||Tt(0,0)},e.scrubbing=function(e){if("undefined"==typeof e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},e.currentTime=function(e){return"undefined"!=typeof e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},e.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},e.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=(e=parseFloat(e))<0?1/0:e)!==this.cache_.duration&&((this.cache_.duration=e)===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},e.remainingTime=function(){return this.duration()-this.currentTime()},e.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},e.buffered=function(){var e;return e=!(e=this.techGet_("buffered"))||!e.length?Tt(0,0):e},e.bufferedPercent=function(){return St(this.buffered(),this.duration())},e.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),e=e.end(e.length-1);return e=t<e?t:e},e.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(0<t&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},e.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},e.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},e.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},e.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},e.isFullscreen=function(e){if(void 0===e)return this.isFullscreen_;var t=this.isFullscreen_;this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),this.toggleFullscreenClass_()},e.requestFullscreen=function(s){var e=this.options_.Promise||_.Promise;if(e){var o=this;return new e(function(e,i){function n(){o.off("fullscreenerror",r),o.off("fullscreenchange",t)}function t(){n(),e()}function r(e,t){n(),i(t)}o.one("fullscreenchange",t),o.one("fullscreenerror",r);var a=o.requestFullscreenHelper_(s);a&&(a.then(n,n),a.then(e,i))})}return this.requestFullscreenHelper_()},e.requestFullscreenHelper_=function(e){var t=this;if(this.fsApi_.prefixed||(i=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(i=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](i);return i&&i.then(function(){return t.isFullscreen(!0)},function(){return t.isFullscreen(!1)}),i}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},e.exitFullscreen=function(){var e=this.options_.Promise||_.Promise;if(e){var s=this;return new e(function(e,i){function n(){s.off("fullscreenerror",r),s.off("fullscreenchange",t)}function t(){n(),e()}function r(e,t){n(),i(t)}s.one("fullscreenchange",t),s.one("fullscreenerror",r);var a=s.exitFullscreenHelper_();a&&(a.then(n,n),a.then(e,i))})}return this.exitFullscreenHelper_()},e.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=d[this.fsApi_.exitFullscreen]();return t&&It(t.then(function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},e.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=d.documentElement.style.overflow,qe(d,"keydown",this.boundFullWindowOnEscKey_),d.documentElement.style.overflow="hidden",ae(d.body,"vjs-full-window"),this.trigger("enterFullWindow")},e.fullWindowOnEscKey=function(e){Lt.isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},e.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Ve(d,"keydown",this.boundFullWindowOnEscKey_),d.documentElement.style.overflow=this.docOrigOverflow,se(d.body,"vjs-full-window"),this.trigger("exitFullWindow")},e.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},e.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},e.requestPictureInPicture=function(){if("pictureInPictureEnabled"in d&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},e.exitPictureInPicture=function(){if("pictureInPictureEnabled"in d)return d.exitPictureInPicture()},e.handleKeyDown=function(e){var t=this.options_.userActions;t&&t.hotkeys&&(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;
392if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)}(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e)))},e.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},i=t.fullscreenKey,n=t.muteKey,n=void 0===n?function(e){return Lt.isEventKey(e,"m")}:n,t=t.playPauseKey,t=void 0===t?function(e){return Lt.isEventKey(e,"k")||Lt.isEventKey(e,"Space")}:t;(void 0===i?function(e){return Lt.isEventKey(e,"f")}:i).call(this,e)?(e.preventDefault(),e.stopPropagation(),i=gt.getComponent("FullscreenToggle"),!1!==d[this.fsApi_.fullscreenEnabled]&&i.prototype.handleClick.call(this,e)):n.call(this,e)?(e.preventDefault(),e.stopPropagation(),gt.getComponent("MuteToggle").prototype.handleClick.call(this,e)):t.call(this,e)&&(e.preventDefault(),e.stopPropagation(),gt.getComponent("PlayToggle").prototype.handleClick.call(this,e))},e.canPlayType=function(e){for(var t,i=0,n=this.options_.techOrder;i<n.length;i++){var r=n[i],a=ji.getTech(r);if(a=a||gt.getComponent(r)){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else y.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},e.selectSource=function(e){function t(e,i,n){var r;return e.some(function(t){return i.some(function(e){if(r=n(t,e))return!0})}),r}var i,n=this,r=this.options_.techOrder.map(function(e){return[e,ji.getTech(e)]}).filter(function(e){var t=e[0],e=e[1];return e?e.isSupported():(y.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)}),a=function(e,t){var i=e[0];if(e[1].canPlaySource(t,n.options_[i.toLowerCase()]))return{source:t,tech:i}},a=this.options_.sourceOrder?t(e,r,(i=a,function(e,t){return i(t,e)})):t(r,e,a);return a||!1},e.handleSrc_=function(e,n){var r=this;if("undefined"==typeof e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var t,i,a=Ji(e);a.length?(this.changingSrc_=!0,n||(this.cache_.sources=a),this.updateSourceCaches_(a[0]),Wi(this,a[0],function(e,t){var i;return r.middleware_=t,n||(r.cache_.sources=a),r.updateSourceCaches_(e),r.src_(e)?1<a.length?r.handleSrc_(a.slice(1)):(r.changingSrc_=!1,r.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0),void r.triggerReady()):(t=t,i=r.tech_,void t.forEach(function(e){return e.setTech&&e.setTech(i)}))}),this.options_.retryOnError&&1<a.length&&(i=function(){r.off("error",t)},this.one("error",t=function(){r.error(null),r.handleSrc_(a.slice(1),!0)}),this.one("playing",i),this.resetRetryOnError_=function(){r.off("error",t),r.off("playing",i)})):this.setTimeout(function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})},0)},e.src=function(e){return this.handleSrc_(e,!1)},e.src_=function(e){var t,i,n=this,r=this.selectSource([e]);return!r||(t=r.tech,i=this.techName_,ht(t)!==ht(i)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready(function(){n.changingSrc_=!1})):this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1)},e.load=function(){this.techCall_("load")},e.reset=function(){var e=this,t=this.options_.Promise||_.Promise;this.paused()||!t?this.doReset_():It(this.play().then(function(){return e.doReset_()}))},e.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),st(this)&&this.trigger("playerreset")},e.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},e.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,e=e.remainingTimeDisplay;t&&t.updateContent(),e&&e.updateContent()},e.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},e.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},e.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},e.currentSource=function(){return this.cache_.source||{}},e.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},e.currentType=function(){return this.currentSource()&&this.currentSource().type||""},e.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},e.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t="undefined"==typeof t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},e.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},e.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},e.poster=function(e){if(void 0===e)return this.poster_;(e=e||"")!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},e.handleTechPosterChange_=function(){var e;this.poster_&&!this.options_.techCanOverridePoster||!this.tech_||!this.tech_.poster||(e=this.tech_.poster()||"")!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))},e.controls=function(e){if(void 0===e)return!!this.controls_;this.controls_!==(e=!!e)&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
392sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},e.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;this.usingNativeControls_!==(e=!!e)&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},e.error=function(t){var i=this;if(void 0===t)return this.error_||null;if(a("beforeerror").forEach(function(e){e=e(i,t);C(e)&&!Array.isArray(e)||"string"==typeof e||"number"==typeof e||null===e?t=e:i.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&t&&4===t.code){var e=function(){this.error(t)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],e),void this.one("loadstart",function(){this.off(["click","touchstart"],e)})}if(null===t)return this.error_=t,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Et(t),this.addClass("vjs-error"),y.error("(CODE:"+this.error_.code+" "+Et.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),a("error").forEach(function(e){return e(i,i.error_)})},e.reportUserActivity=function(e){this.userActivity_=!0},e.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",function(e){e.stopPropagation(),e.preventDefault()}),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},e.listenForUserActivity_=function(){var t,i,n,r=Xe(this,this.reportUserActivity),e=function(e){r(),this.clearInterval(t)};this.on("mousedown",function(){r(),this.clearInterval(t),t=this.setInterval(r,250)}),this.on("mousemove",function(e){e.screenX===i&&e.screenY===n||(i=e.screenX,n=e.screenY,r())}),this.on("mouseup",e),this.on("mouseleave",e);var a,e=this.getChild("controlBar");!e||G||O||(e.on("mouseenter",function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0}),e.on("mouseleave",function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout})),this.on("keydown",r),this.on("keyup",r),this.setInterval(function(){var e;this.userActivity_&&(this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a),(e=this.options_.inactivityTimeout)<=0||(a=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e)))},250)},e.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},e.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},e.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},e.addTextTrack=function(e,t,i){if(this.tech_)return this.tech_.addTextTrack(e,t,i)},e.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},e.removeRemoteTextTrack=function(e){var t=(t=(e=void 0===e?{}:e).track)||e;if(this.tech_)return this.tech_.removeRemoteTextTrack(t)},e.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},e.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},e.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},e.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),st(this)&&this.trigger("languagechange"))},e.languages=function(){return pt(o.prototype.options_.languages,this.languages_)},e.toJSON=function(){var e=pt(this.options_),t=e.tracks;e.tracks=[];for(var i=0;i<t.length;i++){var n=t[i];(n=pt(n)).player=void 0,e.tracks[i]=n}return e},e.createModal=function(e,t){var i=this;(t=t||{}).content=e||"";var n=new Ot(this,t);return this.addChild(n),n.on("dispose",function(){i.removeChild(n)}),n.open(),n},e.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),i=0;i<Un.length;i++){var n=Un[i];
392if(t<=this.breakpoints_[n]){if(e===n)return;e&&this.removeClass(Bn[e]),this.addClass(Bn[n]),this.breakpoint_=n;break}}},e.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},e.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=k({},Fn,e),this.updateCurrentBreakpoint_()),k(this.breakpoints_)},e.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?((this.responsive_=e)?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},e.currentBreakpoint=function(){return this.breakpoint_},e.currentBreakpointClass=function(){return Bn[this.breakpoint_]||""},e.loadMedia=function(e,t){var i,n,r,a=this;e&&"object"==typeof e&&(this.reset(),this.cache_.media=pt(e),i=(r=this.cache_.media).artwork,n=r.poster,e=r.src,r=r.textTracks,!i&&n&&(this.cache_.media.artwork=[{src:n,type:$i(n)}]),e&&this.src(e),n&&this.poster(n),Array.isArray(r)&&r.forEach(function(e){return a.addRemoteTextTrack(e,!1)}),this.ready(t))},e.getMedia=function(){if(this.cache_.media)return pt(this.cache_.media);var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}})};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:$i(t.poster)}]),t},o.getTagSettings=function(e){var t,i={sources:[],tracks:[]},n=le(e),r=n["data-setup"];if(re(e,"vjs-fill")&&(n.fill=!0),re(e,"vjs-fluid")&&(n.fluid=!0),null!==r&&(r=(t=Ct(r||"{}"))[0],t=t[1],r&&y.error(r),k(n,t)),k(i,n),e.hasChildNodes())for(var a=e.childNodes,s=0,o=a.length;s<o;s++){var u=a[s],l=u.nodeName.toLowerCase();"source"===l?i.sources.push(le(u)):"track"===l&&i.tracks.push(le(u))}return i},e.flexNotSupported_=function(){var e=d.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},e.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},e.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(function(e){return"number"==typeof e})&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},o}(gt);li.names.forEach(function(e){var t=li[e];jn.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),jn.prototype.crossorigin=jn.prototype.crossOrigin,jn.players={};P=_.navigator;jn.prototype.options_={techOrder:ji.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:P&&(P.languages&&P.languages[0]||P.userLanguage||P.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach(function(e){jn.prototype[e]=function(){return this.techGet_(e)}}),Mn.forEach(function(e){jn.prototype["handleTech"+ht(e)+"_"]=function(){return this.trigger(e)}}),gt.registerComponent("Player",jn);var Hn=t(function(i){function n(e,t){return i.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},n(e,t)}i.exports=n});function qn(e){return $n.hasOwnProperty(e)}function Vn(e){return qn(e)?$n[e]:void 0}function Wn(e,t,i){i=(i?"before":"")+"pluginsetup",e.trigger(i,t),e.trigger(i+":"+t.name,t)}function zn(t,i){function n(){Wn(this,{name:t,plugin:i,instance:null},!0);var e=i.apply(this,arguments);return Jn(this,t),Wn(this,{name:t,plugin:i,instance:e}),e}
392return Object.keys(i).forEach(function(e){n[e]=i[e]}),n}function Gn(r,a){return a.prototype.name=r,function(){Wn(this,{name:r,plugin:a,instance:null},!0);for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var n=Kn(a,[this].concat(t));return this[r]=function(){return n},Wn(this,n.getEventHash()),n}}var Xn=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}},Kn=t(function(n){function r(e,t,i){return Xn()?n.exports=r=Reflect.construct:n.exports=r=function(e,t,i){var n=[null];n.push.apply(n,t);n=new(Function.bind.apply(e,n));return i&&Hn(n,i.prototype),n},r.apply(null,arguments)}n.exports=r}),Yn="plugin",Qn="activePlugins_",$n={},Jn=function(e,t){e[Qn]=e[Qn]||{},e[Qn][t]=!0},Zn=function(){function i(e){if(this.constructor===i)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),ut(this),delete this.trigger,ct(this,this.constructor.defaultState),Jn(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}var e=i.prototype;return e.version=function(){return this.constructor.VERSION},e.getEventHash=function(e){return(e=void 0===e?{}:e).name=this.name,e.plugin=this.constructor,e.instance=this,e},e.trigger=function(e,t){return We(this.eventBusEl_,e,this.getEventHash(t=void 0===t?{}:t))},e.handleStateChanged=function(e){},e.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[Qn][e]=!1,this.player=this.state=null,t[e]=Gn(e,$n[e])},i.isBasic=function(e){e="string"==typeof e?Vn(e):e;return"function"==typeof e&&!i.prototype.isPrototypeOf(e.prototype)},i.registerPlugin=function(e,t){if("string"!=typeof e)throw new Error('Illegal plugin name, "'+e+'", must be a string, was '+typeof e+".");if(qn(e))y.warn('A plugin named "'+e+'" already exists. You may want to avoid re-registering plugins!');else if(jn.prototype.hasOwnProperty(e))throw new Error('Illegal plugin name, "'+e+'", cannot share a name with an existing player method!');if("function"!=typeof t)throw new Error('Illegal plugin for "'+e+'", must be a function, was '+typeof t+".");return $n[e]=t,e!==Yn&&(i.isBasic(t)?jn.prototype[e]=zn(e,t):jn.prototype[e]=Gn(e,t)),t},i.deregisterPlugin=function(e){if(e===Yn)throw new Error("Cannot de-register base plugin.");qn(e)&&(delete $n[e],delete jn.prototype[e])},i.getPlugins=function(e){var i;return(e=void 0===e?Object.keys($n):e).forEach(function(e){var t=Vn(e);t&&((i=i||{})[e]=t)}),i},i.getPluginVersion=function(e){e=Vn(e);return e&&e.VERSION||""},i}();Zn.getPlugin=Vn,Zn.BASE_PLUGIN_NAME=Yn,Zn.registerPlugin(Yn,Zn),jn.prototype.usingPlugin=function(e){return!!this[Qn]&&!0===this[Qn][e]},jn.prototype.hasPlugin=function(e){return!!qn(e)};var er=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hn(e,t)},tr=function(e){return 0===e.indexOf("#")?e.slice(1):e};function ir(e,t,i){if(r=ir.getPlayer(e))return t&&y.warn('Player "'+e+'" is already initialised. Options will not be applied.'),i&&r.ready(i),r;var n="string"==typeof e?Ce("#"+tr(e)):e;if(!J(n))throw new TypeError("The element or ID supplied is not valid. (videojs)");n.ownerDocument.defaultView&&n.ownerDocument.body.contains(n)||y.warn("The element supplied is not included in the DOM"),t=t||{},a("beforesetup").forEach(function(e){e=e(n,pt(t));C(e)&&!Array.isArray(e)?t=pt(t,e):y.error("please return an object in beforesetup hooks")});var r=new(gt.getComponent("Player"))(n,t,i);return a("setup").forEach(function(e){return e(r)}),r}ir.hooks_=n,ir.hooks=a,ir.hook=function(e,t){a(e,t)},ir.hookOnce=function(i,e){a(i,[].concat(e).map(function(t){return function e(){return r(i,e),t.apply(void 0,arguments)}}))},ir.removeHook=r,!0!==_.VIDEOJS_NO_DYNAMIC_STYLE&&$()&&((sr=Ce(".vjs-styles-defaults"))||(sr=De("vjs-styles-defaults"),(P=Ce("head"))&&P.insertBefore(sr,P.firstChild),Oe(sr,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n "))),Pe(1,ir),ir.VERSION=u,ir.options=jn.prototype.options_,ir.getPlayers=function(){return jn.players},ir.getPlayer=function(e){var t=jn.players;if("string"==typeof e){var i=tr(e),n=t[i];if(n)return n;i=Ce("#"+i)}else i=e;if(J(i)){e=i.player,i=i.playerId;if(e||t[i])return e||t[i]}},ir.getAllPlayers=function(){return Object.keys(jn.players).map(function(e){return jn.players[e]}
392).filter(Boolean)},ir.players=jn.players,ir.getComponent=gt.getComponent,ir.registerComponent=function(e,t){ji.isTech(t)&&y.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),gt.registerComponent.call(gt,e,t)},ir.getTech=ji.getTech,ir.registerTech=ji.registerTech,ir.use=function(e,t){Hi[e]=Hi[e]||[],Hi[e].push(t)},Object.defineProperty(ir,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(ir.middleware,"TERMINATOR",{value:Vi,writeable:!1,enumerable:!0}),ir.browser=K,ir.TOUCH_ENABLED=V,ir.extend=function(e,t){var i,n=function(){e.apply(this,arguments)},r={};for(i in"object"==typeof(t=void 0===t?{}:t)?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),er(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},ir.mergeOptions=pt,ir.bind=Xe,ir.registerPlugin=Zn.registerPlugin,ir.deregisterPlugin=Zn.deregisterPlugin,ir.plugin=function(e,t){return y.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Zn.registerPlugin(e,t)},ir.getPlugins=Zn.getPlugins,ir.getPlugin=Zn.getPlugin,ir.getPluginVersion=Zn.getPluginVersion,ir.addLanguage=function(e,t){var i;return e=(""+e).toLowerCase(),ir.options.languages=pt(ir.options.languages,((i={})[e]=t,i)),ir.options.languages[e]},ir.log=y,ir.createLogger=v,ir.createTimeRange=ir.createTimeRanges=Tt,ir.formatTime=cn,ir.setFormatTime=function(e){ln=e},ir.resetFormatTime=function(){ln=un},ir.parseUrl=Bt,ir.isCrossOrigin=Ht,ir.EventTarget=Qe,ir.on=qe,ir.one=ze,ir.off=Ve,ir.trigger=We,ir.xhr=Jt,ir.TextTrack=ri,ir.AudioTrack=ai,ir.VideoTrack=si,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(function(e){ir[e]=function(){return y.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Ie[e].apply(null,arguments)}}),ir.computedStyle=I,ir.dom=Ie,ir.url=Kt,ir.defineLazyProperty=Pn,ir.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});function nr(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=_.location&&_.location.href||"");var i="function"==typeof _.URL,n=/^\/\//.test(e),r=!_.location&&!/\/\//i.test(e);if(i?e=new _.URL(e,_.location||ar):/\/\//i.test(e)||(e=rr.buildAbsoluteURL(_.location&&_.location.href||"",e)),i){i=new URL(t,e);return r?i.href.slice(ar.length):n?i.href.slice(i.protocol.length):i.href}return rr.buildAbsoluteURL(e,t)}var rr=t(function(e,t){var i,a,n,r,s;i=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#[^]*)?$/,a=/^([^\/?#]*)([^]*)$/,n=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var n=s.parseURL(e);if(!n)throw new Error("Error trying to parse base URL.");return n.path=s.normalizePath(n.path),s.buildURLFromParts(n)}n=s.parseURL(t);if(!n)throw new Error("Error trying to parse relative URL.");if(n.scheme)return i.alwaysNormalize?(n.path=s.normalizePath(n.path),s.buildURLFromParts(n)):t;t=s.parseURL(e);if(!t)throw new Error("Error trying to parse base URL.");!t.netLoc&&t.path&&"/"!==t.path[0]&&(r=a.exec(t.path),t.netLoc=r[1],t.path=r[2]),t.netLoc&&!t.path&&(t.path="/");var r,e={scheme:t.scheme,netLoc:n.netLoc,path:null,params:n.params,query:n.query,fragment:n.fragment};return n.netLoc||(e.netLoc=t.netLoc,"/"!==n.path[0]&&(n.path?(r=(r=t.path).substring(0,r.lastIndexOf("/")+1)+n.path,e.path=s.normalizePath(r)):(e.path=t.path,n.params||(e.params=t.params,n.query||(e.query=t.query))))),null===e.path&&(e.path=i.alwaysNormalize?s.normalizePath(n.path):n.path),s.buildURLFromParts(e)},parseURL:function(e){e=i.exec(e);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(n,"");e.length!==(e=e.replace(r,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s}),ar="http://example.com",sr=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;t=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(t,1),-1<t},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1]);
392else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(t){this.on("data",function(e){t.push(e)})},e}(),or=function(e){return _.atob?_.atob(e):Buffer.from(e,"base64").toString("binary")};function ur(e){for(var t=or(e),i=new Uint8Array(t.length),n=0;n<t.length;n++)i[n]=t.charCodeAt(n);return i} 393/*! @name m3u8-parser @version 4.7.0 @license Apache-2.0 */function lr(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),e={};return t[1]&&(e.length=parseInt(t[1],10)),t[2]&&(e.offset=parseInt(t[2],10)),e}function cr(e){for(var t,i=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),n={},r=i.length;r--;)""!==i[r]&&((t=/([^=]*)=(.*)/.exec(i[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),n[t[0]]=t[1]);return n}function dr(t){var i={};return Object.keys(t).forEach(function(e){i[e.toLowerCase().replace(/-(\w)/g,function(e){return e[1].toUpperCase()})]=t[e]}),i}function hr(e){var t,i,n,r,a=e.serverControl,s=e.targetDuration,o=e.partTargetDuration;a&&(t="#EXT-X-SERVER-CONTROL",i="holdBack",n="partHoldBack",r=s&&3*s,e=o&&2*o,s&&!a.hasOwnProperty(i)&&(a[i]=r,this.trigger("info",{message:t+" defaulting HOLD-BACK to targetDuration * 3 ("+r+")."})),r&&a[i]<r&&(this.trigger("warn",{message:t+" clamping HOLD-BACK ("+a[i]+") to targetDuration * 3 ("+r+")"}),a[i]=r),o&&!a.hasOwnProperty(n)&&(a[n]=3*o,this.trigger("info",{message:t+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+a[n]+")."})),o&&a[n]<e&&(this.trigger("warn",{message:t+" clamping PART-HOLD-BACK ("+a[n]+") to partTargetDuration * 2 ("+e+")."}),a[n]=e))}function pr(e){return e&&e.replace(/avc1\.(\d+)\.(\d+)/i,function(e,t,i){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(i).toString(16)).slice(-2)})}function fr(e){var e=(e=void 0===e?"":e).split(","),a=[];return e.forEach(function(n){var r;n=n.trim(),Cr.forEach(function(e){var t,i=kr[e].exec(n.toLowerCase());!i||i.length<=1||(r=e,t=n.substring(0,i[1].length),i=n.replace(t,""),a.push({type:t,details:i,mediaType:e}))}),r||a.push({type:n,details:"",mediaType:"unknown"})}),a}function mr(e){return kr.audio.test((e=void 0===e?"":e).trim().toLowerCase())}function gr(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map(function(e){return pr(e.trim())}),i="video";1===t.length&&mr(t[0])?i="audio":1===t.length&&(n=t[0],kr.text.test((n=void 0===n?"":n).trim().toLowerCase()))&&(i="application");var n="mp4";return t.every(function(e){return kr.mp4.test(e)})?n="mp4":t.every(function(e){return kr.webm.test(e)})?n="webm":t.every(function(e){return kr.ogg.test(e)})&&(n="ogg"),i+"/"+n+';codecs="'+e+'"'}}function yr(e){return void 0===e&&(e=""),_.MediaSource&&_.MediaSource.isTypeSupported&&_.MediaSource.isTypeSupported(gr(e))||!1}function vr(e){return(e=void 0===e?"":e).toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<wr.length;t++)if(kr["muxer"+wr[t]].test(e))return!0;return!1})}function _r(e){return xr.test(e)?"hls":Ar.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null}var br=function(t){function e(){var e=t.call(this)||this;return e.buffer="",e}return vt(e,t),e.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");-1<t;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},e}(sr),Tr=String.fromCharCode(9),Sr=function(t){function e(){var e=t.call(this)||this;return e.customParsers=[],e.tagMappers=[],e}vt(e,t);var i=e.prototype;return i.push=function(i){var r,a,s=this;0!==(i=i.trim()).length&&("#"===i[0]?this.tagMappers.reduce(function(e,t){t=t(i);return t===i?e:e.concat([t])},[i]).forEach(function(e){for(var t,i,n=0;n<s.customParsers.length;n++)if(s.customParsers[n].call(s,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),r=/^#EXTM3U/.exec(e))s.trigger("data",{type:"tag",tagType:"m3u"});else{if(r=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return a={type:"tag",tagType:"inf"},r[1]&&(a.duration=parseFloat(r[1])),r[2]&&(a.title=r[2]),void s.trigger("data",a);if(r=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return a={type:"tag",tagType:"targetduration"},r[1]&&(a.duration=parseInt(r[1],10)),void s.trigger("data",a);if(r=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return a={type:"tag",tagType:"version"},r[1]&&(a.version=parseInt(r[1],10)),void s.trigger("data",a);if(r=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return a={type:"tag",tagType:"media-sequence"},r[1]&&(a.number=parseInt(r[1],10)),void s.trigger("data",a);if(r=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return a={type:"tag",tagType:"discontinuity-sequence"},r[1]&&(a.number=parseInt(r[1],10)),void s.trigger("data",a);if(r=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return a={type:"tag",tagType:"playlist-type"},r[1]&&(a.playlistType=r[1]),void s.trigger("data",a);if(r=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))return a=b(lr(r[1]),{type:"tag",tagType:"byterange"}),void s.trigger("data",a);if(r=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return a={type:"tag",tagType:"allow-cache"},r[1]&&(a.allowed=!/NO/.test(r[1])),void s.trigger("data",a);if(r=/^#EXT-X-MAP:?(.*)$/.exec(e))return a={type:"tag",tagType:"map"},r[1]&&((t=cr(r[1])).URI&&(a.uri=t.URI),t.BYTERANGE&&(a.byterange=lr(t.BYTERANGE))),void s.trigger("data",a);if(r=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e))return a={type:"tag",tagType:"stream-inf"},r[1]&&(a.attributes=cr(r[1]),a.attributes.RESOLUTION&&(i={},(t=a.attributes.RESOLUTION.split("x"))[0]&&(i.width=parseInt(t[0],10)),t[1]&&(i.height=parseInt(t[1],10)),a.attributes.RESOLUTION=i),a.attributes.BANDWIDTH&&(a.attributes.BANDWIDTH=parseInt(a.attributes.BANDWIDTH,10)),a.attributes["PROGRAM-ID"]&&(a.attributes["PROGRAM-ID"]=parseInt(a.attributes["PROGRAM-ID"],10))),void s.trigger("data",a);if(r=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return a={type:"tag",tagType:"media"},r[1]&&(a.attributes=cr(r[1])),void s.trigger("data",a);if(r=/^#EXT-X-ENDLIST/.exec(e))s.trigger("data",{type:"tag",tagType:"endlist"});else{if(!(r=/^#EXT-X-DISCONTINUITY/.exec(e)))return(r=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))?(a={type:"tag",tagType:"program-date-time"}
393,r[1]&&(a.dateTimeString=r[1],a.dateTimeObject=new Date(r[1])),void s.trigger("data",a)):(r=/^#EXT-X-KEY:?(.*)$/.exec(e))?(a={type:"tag",tagType:"key"},r[1]&&(a.attributes=cr(r[1]),a.attributes.IV&&("0x"===a.attributes.IV.substring(0,2).toLowerCase()&&(a.attributes.IV=a.attributes.IV.substring(2)),a.attributes.IV=a.attributes.IV.match(/.{8}/g),a.attributes.IV[0]=parseInt(a.attributes.IV[0],16),a.attributes.IV[1]=parseInt(a.attributes.IV[1],16),a.attributes.IV[2]=parseInt(a.attributes.IV[2],16),a.attributes.IV[3]=parseInt(a.attributes.IV[3],16),a.attributes.IV=new Uint32Array(a.attributes.IV))),void s.trigger("data",a)):(r=/^#EXT-X-START:?(.*)$/.exec(e))?(a={type:"tag",tagType:"start"},r[1]&&(a.attributes=cr(r[1]),a.attributes["TIME-OFFSET"]=parseFloat(a.attributes["TIME-OFFSET"]),a.attributes.PRECISE=/YES/.test(a.attributes.PRECISE)),void s.trigger("data",a)):(r=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))?(a={type:"tag",tagType:"cue-out-cont"},r[1]?a.data=r[1]:a.data="",void s.trigger("data",a)):(r=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))?(a={type:"tag",tagType:"cue-out"},r[1]?a.data=r[1]:a.data="",void s.trigger("data",a)):(r=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))?(a={type:"tag",tagType:"cue-in"},r[1]?a.data=r[1]:a.data="",void s.trigger("data",a)):(r=/^#EXT-X-SKIP:(.*)$/.exec(e))&&r[1]?((a={type:"tag",tagType:"skip"}).attributes=cr(r[1]),a.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(a.attributes["SKIPPED-SEGMENTS"]=parseInt(a.attributes["SKIPPED-SEGMENTS"],10)),a.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(a.attributes["RECENTLY-REMOVED-DATERANGES"]=a.attributes["RECENTLY-REMOVED-DATERANGES"].split(Tr)),void s.trigger("data",a)):(r=/^#EXT-X-PART:(.*)$/.exec(e))&&r[1]?((a={type:"tag",tagType:"part"}).attributes=cr(r[1]),["DURATION"].forEach(function(e){a.attributes.hasOwnProperty(e)&&(a.attributes[e]=parseFloat(a.attributes[e]))}),["INDEPENDENT","GAP"].forEach(function(e){a.attributes.hasOwnProperty(e)&&(a.attributes[e]=/YES/.test(a.attributes[e]))}),a.attributes.hasOwnProperty("BYTERANGE")&&(a.attributes.byterange=lr(a.attributes.BYTERANGE)),void s.trigger("data",a)):(r=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&r[1]?((a={type:"tag",tagType:"server-control"}).attributes=cr(r[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach(function(e){a.attributes.hasOwnProperty(e)&&(a.attributes[e]=parseFloat(a.attributes[e]))}),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach(function(e){a.attributes.hasOwnProperty(e)&&(a.attributes[e]=/YES/.test(a.attributes[e]))}),void s.trigger("data",a)):(r=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&r[1]?((a={type:"tag",tagType:"part-inf"}).attributes=cr(r[1]),["PART-TARGET"].forEach(function(e){a.attributes.hasOwnProperty(e)&&(a.attributes[e]=parseFloat(a.attributes[e]))}),void s.trigger("data",a)):(r=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&r[1]?((a={type:"tag",tagType:"preload-hint"}).attributes=cr(r[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){var t;a.attributes.hasOwnProperty(e)&&(a.attributes[e]=parseInt(a.attributes[e],10),t="BYTERANGE-LENGTH"===e?"length":"offset",a.attributes.byterange=a.attributes.byterange||{},a.attributes.byterange[t]=a.attributes[e],delete a.attributes[e])}),void s.trigger("data",a)):(r=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&r[1]?((a={type:"tag",tagType:"rendition-report"}).attributes=cr(r[1]),["LAST-MSN","LAST-PART"].forEach(function(e){a.attributes.hasOwnProperty(e)&&(a.attributes[e]=parseInt(a.attributes[e],10))}),void s.trigger("data",a)):void s.trigger("data",{type:"tag",data:e.slice(4)});s.trigger("data",{type:"tag",tagType:"discontinuity"})}}else s.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:i}))},i.addParser=function(e){var t=this,i=e.expression,n=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push(function(e){if(i.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:n,segment:a}),!0})},i.addTagMapper=function(e){var t=e.expression,i=e.map;this.tagMappers.push(function(e){return t.test(e)?i(e):e})},e}(sr),Er=function(t){function e(){var e=t.call(this)||this;e.lineStream=new br,e.parseStream=new Sr,e.lineStream.pipe(e.parseStream);var n,r,a=yt(e),o=[],u={},l=!1,c={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},d=0;e.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var h=0,p=0;return e.on("end",function(){u.uri||!u.parts&&!u.preloadHints||(!u.map&&n&&(u.map=n),!u.key&&r&&(u.key=r),u.t
vendor: 5,887 bytes, line 393
393imeline||"number"!=typeof d||(u.timeline=d),e.manifest.preloadSegment=u)}),e.parseStream.on("data",function(s){var t,i;({tag:function(){({version:function(){s.version&&(this.manifest.version=s.version)},"allow-cache":function(){this.manifest.allowCache=s.allowed,"allowed"in s||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var e={};"length"in s&&((u.byterange=e).length=s.length,"offset"in s||(s.offset=h)),"offset"in s&&((u.byterange=e).offset=s.offset),h=e.offset+e.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),0<s.duration&&(u.duration=s.duration),0===s.duration&&(u.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key:function(){if(s.attributes)if("NONE"!==s.attributes.METHOD)if(s.attributes.URI){if("com.apple.streamingkeydelivery"===s.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:s.attributes});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===s.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(s.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===s.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==s.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):s.attributes.KEYID&&"0x"===s.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:s.attributes.KEYFORMAT,keyId:s.attributes.KEYID.substring(2)},pssh:ur(s.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));s.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:s.attributes.METHOD||"AES-128",uri:s.attributes.URI},"undefined"!=typeof s.attributes.IV&&(r.iv=s.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(s.number)?this.manifest.mediaSequence=s.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+s.number})},"discontinuity-sequence":function(){isFinite(s.number)?(this.manifest.discontinuitySequence=s.number,d=s.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+s.number})},"playlist-type":function(){/VOD|EVENT/.test(s.playlistType)?this.manifest.playlistType=s.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+s.playlist})},map:function(){n={},s.uri&&(n.uri=s.uri),s.byterange&&(n.byterange=s.byterange),r&&(n.key=r)},"stream-inf":function(){this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||c,s.attributes?(u.attributes||(u.attributes={}),b(u.attributes,s.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){var e;this.manifest.mediaGroups=this.manifest.mediaGroups||c,s.attributes&&s.attributes.TYPE&&s.attributes["GROUP-ID"]&&s.attributes.NAME?((e=this.manifest.mediaGroups[s.attributes.TYPE])[s.attributes["GROUP-ID"]]=e[s.attributes["GROUP-ID"]]||{},t=e[s.attributes["GROUP-ID"]],(i={default:/yes/i.test(s.attributes.DEFAULT)}).default?i.autoselect=!0:i.autoselect=/yes/i.test(s.attributes.AUTOSELECT),s.attributes.LANGUAGE&&(i.language=s.attributes.LANGUAGE),s.attributes.URI&&(i.uri=s.attributes.URI),s.attributes["INSTREAM-ID"]&&(i.instreamId=s.attributes["INSTREAM-ID"]),s.attributes.CHARACTERISTICS&&(i.characteristics=s.attributes.CHARACTERISTICS),s.attributes.FORCED&&(i.forced=/yes/i.test(s.attributes.FORCED)),t[s.attributes.NAME]=i):this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){d+=1,u.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time":function(){"undefined"==typeof this.manifest.dateTimeString&&(this.manifest.dateTimeString=s.dateTimeString,this.manifest.dateTimeObject=s.dateTimeObject),u.dateTimeString=s.dateTimeString,u.dateTimeObject=s.dateTimeObject},targetduration:function(){!isFinite(s.duration)||s.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+s.duration}):(this.manifest.targetDuration=s.duration,hr.call(this,this.manifest))},start:function(){s.attributes&&!isNaN(s.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:s.attributes["TIME-OFFSET"],precise:s.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){u.cueOut=s.data},"cue-out-cont":function(){u.cueOutCont=s.data},"cue-in":function(){u.cueIn=s.data},skip:function(){this.manifest.skip=dr(s.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",s.attributes,["SKIPPED-SEGMENTS"])},part:function(){var i=this;l=!0;var e=this.manifest.segments.length,t=dr(s.attributes);u.parts=u.parts||[],u.parts.push(t),t.byterange&&(t.byterange.hasOwnProperty("offset")||(t.byterange.offset=p),p=t.byterange.offset+t.byterange.length);var n=u.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+n+" for segment #"+e,s.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEac
vendor: 4,124 bytes, line 393
393h(function(e,t){e.hasOwnProperty("lastPart")||i.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+t+" lacks required attribute(s): LAST-PART"})})},"server-control":function(){var e=this.manifest.serverControl=dr(s.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),hr.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var e=this.manifest.segments.length,t=dr(s.attributes),i=t.type&&"PART"===t.type;u.preloadHints=u.preloadHints||[],u.preloadHints.push(t),t.byterange&&(t.byterange.hasOwnProperty("offset")||(t.byterange.offset=i?p:0,i&&(p=t.byterange.offset+t.byterange.length)));var n=u.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+n+" for segment #"+e,s.attributes,["TYPE","URI"]),t.type)for(var r=0;r<u.preloadHints.length-1;r++){var a=u.preloadHints[r];a.type&&a.type===t.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+n+" for segment #"+e+" has the same TYPE "+t.type+" as preload hint #"+r})}},"rendition-report":function(){var e=dr(s.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);var t=this.manifest.renditionReports.length-1,e=["LAST-MSN","URI"];l&&e.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+t,s.attributes,e)},"part-inf":function(){this.manifest.partInf=dr(s.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",s.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),hr.call(this,this.manifest)}}[s.tagType]||function(){}).call(a)},uri:function(){u.uri=s.uri,o.push(u),!this.manifest.targetDuration||"duration"in u||(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),u.duration=this.manifest.targetDuration),r&&(u.key=r),u.timeline=d,n&&(u.map=n),p=0,u={}},comment:function(){},custom:function(){s.segment?(u.custom=u.custom||{},u.custom[s.customType]=s.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[s.customType]=s.data)}})[s.type].call(a)}),e}vt(e,t);var i=e.prototype;return i.warnOnMissingAttributes_=function(e,t,i){var n=[];i.forEach(function(e){t.hasOwnProperty(e)||n.push(e)}),n.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+n.join(", ")})},i.push=function(e){this.lineStream.push(e)},i.end=function(){this.lineStream.push("\n"),this.trigger("end")},i.addParser=function(e){this.parseStream.addParser(e)},i.addTagMapper=function(e){this.parseStream.addTagMapper(e)},e}(sr),kr={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},Cr=["video","audio","text"],wr=["Video","Audio","Text"],Ir="mp4a.40.2",xr=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Ar=/^application\/dash\+xml/i;function Pr(e,t){return(t=void 0===t?Object:t)&&"function"==typeof t.freeze?t.freeze(e):e}var Lr=Pr({HTML:"text/html",isHTML:function(e){return e===Lr.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),Dr=Pr({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===Dr.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"}),Or={freeze:Pr,MIME_TYPE:Lr,NAMESPACE:Dr},Rr=t(function(e,t){var i=Or.freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"Ã",Aacute:"Ã",Acirc:"Ã",Atilde:"Ã",Auml:"Ã",Aring:"Ã
",AElig:"Ã",Ccedil
393:"Ã",Egrave:"Ã",Eacute:"Ã",Ecirc:"Ã",Euml:"Ã",Igrave:"Ã",Iacute:"Ã",Icirc:"Ã",Iuml:"Ã",ETH:"Ã",Ntilde:"Ã",Ograve:"Ã",Oacute:"Ã",Ocirc:"Ã",Otilde:"Ã",Ouml:"Ã",Oslash:"Ã",Ugrave:"Ã",Uacute:"Ã",Ucirc:"Ã",Uuml:"Ã",Yacute:"Ã",THORN:"Ã",szlig:"Ã",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"ÂÂ",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"Ã",divide:"÷",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub
393:"â",sube:"â",supe:"â",oplus:"â",otimes:"â",perp:"â¥",sdot:"â
",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",OElig:"Å",oelig:"Å",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",fnof:"Æ",circ:"Ë",tilde:"Ë",ensp:"â",emsp:"â",thinsp:"â",zwnj:"â",zwj:"â",lrm:"â",rlm:"â",ndash:"â",mdash:"â",lsquo:"â",rsquo:"â",sbquo:"â",ldquo:"â",rdquo:"â",bdquo:"â",dagger:"â ",Dagger:"â¡",bull:"â¢",hellip:"â¦",permil:"â°",prime:"â²",Prime:"â³",lsaquo:"â¹",rsaquo:"âº",oline:"â¾",euro:"â¬",trade:"â¢",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",loz:"â",spades:"â ",clubs:"â£",hearts:"â¥",diams:"â¦"}),t.entityMap=t.HTML_ENTITIES});Rr.XML_ENTITIES,Rr.HTML_ENTITIES,Rr.entityMap;var Mr=Or.NAMESPACE,K=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,ai=new RegExp("[\\-\\.0-9"+K.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),Nr=new RegExp("^"+K.source+ai.source+"*(?::"+K.source+ai.source+"*)?$"),Ur=0,Br=1,Fr=2,jr=3,Hr=4,qr=5,Vr=6,Wr=7;function zr(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,zr)}function Gr(){}function Xr(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function Kr(e,t,i){for(var n=e.tagName,r=null,a=e.length;a--;){var s=e[a],o=s.qName,u=s.value,o=0<(c=o.indexOf(":"))?(l=s.prefix=o.slice(0,c),d=o.slice(c+1),"xmlns"===l&&d):(l=null,"xmlns"===(d=o)&&"");s.localName=d,!1!==o&&(null==r&&(r={},Yr(i,i={})),i[o]=r[o]=u,s.uri=Mr.XMLNS,t.startPrefixMapping(o,u))}for(var l,a=e.length;a--;)(l=(s=e[a]).prefix)&&("xml"===l&&(s.uri=Mr.XML),"xmlns"!==l&&(s.uri=i[l||""]));var c,d=0<(c=n.indexOf(":"))?(l=e.prefix=n.slice(0,c),e.localName=n.slice(c+1)):(l=null,e.localName=n),h=e.uri=i[l||""];if(t.startElement(h,d,n,e),!e.closed)return e.currentNSMap=i,e.localNSMap=r,1;if(t.endElement(h,d,n),r)for(l in r)t.endPrefixMapping(l)}function Yr(e,t){for(var i in e)t[i]=e[i]}function Qr(){this.attributeNames={}}(zr.prototype=new Error).name=zr.name,Gr.prototype={parse:function(e,t,i){var n=this.domBuilder;n.startDocument(),Yr(t,t={}),function(i,e,n,r,a){function s(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?65535<(t=parseInt(t.substr(1).replace("x","0x")))?(t-=65536,String.fromCharCode(55296+(t>>10),56320+(1023&t))):String.fromCharCode(t):(a.error("entity not found:"+e),e)}function t(e){var t;f<e&&(t=i.substring(f,e).replace(/&#?\w+;/g,s),d&&o(f),r.characters(t,0,e-f),f=e)}function o(e,t){for(;l<=e&&(t=c.exec(i));)u=t.index,l=u+t[0].length,d.lineNumber++;d.columnNumber=e-u+1}var u=0,l=0,c=/.*(?:\r\n?|\n)|.*$/g,d=r.locator,h=[{currentNSMap:e}],p={},f=0;for(;;){try{var m,g,y=i.indexOf("<",f);if(y<0)return i.substr(f).match(/^\s*$/)||(m=r.doc,g=m.createTextNode(i.substr(f)),m.appendChild(g),r.currentElement=g);switch(f<y&&t(y),i.charAt(y+1)){case"/":var v=i.indexOf(">",y+3),_=i.substring(y+2,v).replace(/[ \t\n\r]+$/g,""),b=h.pop();v<0?(_=i.substring(y+2).replace(/[\s<].*/,""),a.error("end tag name: "+_+" is not complete:"+b.tagName),v=y+1+_.length):_.match(/\s</)&&(_=_.replace(/[\s<].*/,""),a.error("end tag name: "+_+" maybe not complete"),v=y+1+_.length);var T=b.localNSMap,S=b.tagName==_;if(S||b.tagName&&b.tagName.toLowerCase()==_.toLowerCase()){if(r.endElement(b.uri,b.localName,_),T)for(var E in T)r.endPrefixMapping(E);S||a.fatalError("end tag name: "+_+" is not match the current start tagName:"+b.tagName)}else h.push(b);v++;break;case"?":d&&o(y),v=function(e,t,i){var n=e.indexOf("?>",t);if(n){t=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);return t?(t[0].length,i.processingInstruction(t[1],t[2]),n+2):-1}return-1}(i,y,r);break;case"!":d&&o(y),v=function(e,t,i,n){{if("-"===e.charAt(t+2)){if("-"!==e.charAt(t+3))return-1;var r=e.indexOf("--\x3e",t+4);return t<r?(i.comment(e,t+4,r-t-4),r+3):(n.error("Unclosed comment"),-1)}if("CDATA["==e.substr(t+3,6)){r=e.indexOf("]]>",t+9);return i.startCDATA(),i.characters(e,t+9,r-t-9),i.endCDATA(),r+3}var a=function(e,t){var i,n=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);for(;i=r.exec(e);)if(n.push(i),i[1])return n}(e,t),n=a.length;if(1<n&&/!doctype/i.test(a[0][0])){r=a[1][0],e=!1,t=!1;3<n&&(/^public$/i.test(a[2][0])?(e=a[3][0],t=4<n&&a[4][0]):/^system$/i.test(a[2][0])&&(t=a[3][0]));n=a[n-1];return i.startDTD(r,e,t),i.endDTD(),n.index+n[0].length}}return-1}(i,y,r,a);break;default:d&&o(y);var k=new Qr,C=h[h.length-1].currentNSMap,v=function(e,t,n,i,r,a){function s(e,t,i){e in n.attributeNames&&a.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,i)}var o,u=++t,l=Ur;for(;;){var c=e.charAt(u);switch(c){case"=":if(l===Br)o=e.slice(t,u),l=jr;else{if(l!==Fr)throw new Error("attribute equal must after attrName");l=jr}break;case"'":case'"':if(l===jr||l===Br){if(l===Br&&(a.warning('attribute value must after "="'),o=e.slice(t,u)),t=u+1,!(0<(u=e.indexOf(c,t))))throw new Error("attribute value no end '"+c+"' match");d=e.slice(t,u).replace(/&#?\w+;/g,r),s(o,d,t-1),l=qr}else{if(l!=Hr)throw new Error('attribute value must after "="');d=e.slice(t,u).replace(/&#?\w+;/g,r),s(o,d,t),a.warning('attribute "'+o+'" missed start quot('+c+")!!"),t=u+1,l=qr}break;case"/":switch(l){case Ur:n.setTagName(e.slice(t,u));case qr:case Vr:case Wr:l=Wr,n.closed=!0;case Hr:case Br:case Fr:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return a.error("unexpected end of input"),l==Ur&&n.setTagName(e.slice(t,u)),u;case">":switch(l){case Ur:n.setTagName(e.slice(t,u));case qr:case Vr:case Wr:break;case Hr:case Br:"/"===(d=e.slice(t,u)).slice(-1)&&(n.closed=!0,d=d.slice(0,-1));case Fr:l===Fr&&(d=o),l==Hr?(a.warning('attribute "'+d+'" missed quot(")!'),s(o,d.replace(/&#?\w+;/g,r),t)):(Mr.isHTML(i[""])&&d.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+d+'" missed value!! "'+d+'" instead!!'),s(d,d,t));break;case jr:throw new Error("attribute value missed!!")}return u;case"Â":c=" ";default:if(c<=" ")switch(l){case Ur:n.setTagName(e.slice(t,u)),l=Vr;break;case Br:o=e.slice(t,u),l=Fr;break;case Hr:var d=e.slice(t,u).replace(/&#?\w+;/g,r);a.warning('attribute "'+d+'" missed quot(")!!'),s(o,d,t);case qr:l=Vr}else switch(l){case Fr:n.tagName,Mr.isHTML(i[""])&&o.match(/^(?:disabled|checked|selected)$/i)||a.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!'),s(o,o,t),t=u,l=Br;break;case qr:a.warning('attribute space is required"'+o+'"!!');case Vr:l=Br,t=u;break;case jr:l=Hr,t=u;break;case Wr:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}(i,y,k,C,s,a),w=k.length;if(!k.closed&&function(e,t,i,n){var r=n[i];null==r&&((r=e.lastIndexOf("</"+i+">"))<t&&(r=e.lastIndexOf("</"+i)),n[i]=r);return r<t}(i,v,k.tagName,p)&&(k.closed=!0,n.nbsp||a.warning("unclosed xml attribute")),d&&w){for(var I=Xr(d,{}),x=0;x<w;x++){var A=k[x];o(A.offset),A.locator=Xr(d,{})}r.locator=I,Kr(k,r,C)&&h.push(k),r.locator=d}else Kr(k,r,C)&&h.push(k);Mr.isHTML(k.uri)&&!k.closed?v=function(e,t,i,n,r){if(/^(?:script|textarea)$/i.test(i)){var a=e.indexOf("</"+i+">",t),e=e.substring(t+1,a);if(/[&<]/.test(e))return/^script$/i.test(i)||(e=e.replace(/&#?\w+;/g,n)),r.characters(e,0,e.length),a}return t+1}(i,v,k.tagName,s,r):v++}}catch(e){if(e instanceof zr)throw e;a.error("element parse error: "+e),v=-1}f<v?f=v:t(Math.max(y,f)+1)}}(e,t,i,n,this.errorHandler),n.endDocument()}},Qr.prototype={setTagName:function(e){if(!Nr.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,i){if(!Nr.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:i}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}};var $r={XMLReader:Gr,ParseError:zr},Jr=Or.NAMESPACE;function Zr(e){return""!==e}function ea(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function ta(e){if(!e)return[];e=(e=e)?e.split(/[\t\n\f\r ]+/).filter(Zr):[];return Object.keys(e.reduce(ea,{}))}function ia(e,t){for(var i in e)t[i]=e[i]}function na(e,t){var i,n=e.prototype;n instanceof t||((i=function(){}).prototype=t.prototype,ia(n,i=new i),e.prototype=n=i),n.constructor!=e&&(n.constructor=e)}var si={},ra=si.ELEMENT_NODE=1,aa=si.ATTRIBUTE_NODE=2,sa=si.TEXT_NODE=3,oa=si.CDATA_SECTION_NODE=4,ua=si.ENTITY_REFERENCE_NODE=5,la=(si.ENTITY_NODE=6,si.PROCESSING_INSTRUCTION_NODE=7),ca=si.COMMENT_NODE=8,da=si.DOCUMENT_NODE=9,ha=si.DOCUMENT_TYPE_NODE=10,pa=si.DOCUMENT_FRAGMENT_NODE=11,Kt=(si.NOTATION_NODE=12,{}),fa={};Kt.INDEX_SIZE_ERR=(fa[1]="Index size error",1),Kt.DOMSTRING_SIZE_ERR=(fa[2]="DOMString size error",2);Kt.HIERARCHY_REQUEST_ERR=(fa[3]="Hierarchy request error",3);Kt.WRONG_DOCUMENT_ERR=(fa[4]="Wrong document",4),Kt.INVALID_CHARACTER_ERR=(fa[5]="Invalid character",5),Kt.NO_DATA_ALLOWED_ER
393R=(fa[6]="No data allowed",6),Kt.NO_MODIFICATION_ALLOWED_ERR=(fa[7]="No modification allowed",7);Kt.NOT_FOUND_ERR=(fa[8]="Not found",8);Kt.NOT_SUPPORTED_ERR=(fa[9]="Not supported",9);var ma;Kt.INUSE_ATTRIBUTE_ERR=(fa[10]="Attribute in use",10);function ga(e,t){var i;return t instanceof Error?i=t:(i=this,Error.call(this,fa[e]),this.message=fa[e],Error.captureStackTrace&&Error.captureStackTrace(this,ga)),i.code=e,t&&(this.message=this.message+": "+t),i}function ya(){}function va(e,t){this._node=e,this._refresh=t,_a(this)}function _a(e){var t,i=e._node._inc||e._node.ownerDocument._inc;e._inc!=i&&(t=e._refresh(e._node),Qa(e,"length",t.length),ia(t,e),e._inc=i)}function ba(){}function Ta(e,t){for(var i=e.length;i--;)if(e[i]===t)return i}function Sa(e,t,i,n){n?t[Ta(t,n)]=i:t[t.length++]=i,!e||(t=(i.ownerElement=e).ownerDocument)&&(n&&Aa(t,e,n),e=e,i=i,(t=t)&&t._inc++,i.namespaceURI===Jr.XMLNS&&(e._nsMap[i.prefix?i.localName:""]=i.value))}function Ea(e,t,i){var n=Ta(t,i);if(!(0<=n))throw ga(8,new Error(e.tagName+"@"+i));for(var r,a=t.length-1;n<a;)t[n]=t[++n];t.length=a,!e||(r=e.ownerDocument)&&(Aa(r,e,i),i.ownerElement=null)}function ka(){}function Ca(){}function wa(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function Ia(e,t){if(t(e))return 1;if(e=e.firstChild)do{if(Ia(e,t))return 1}while(e=e.nextSibling)}function xa(){}function Aa(e,t,i){e&&e._inc++,i.namespaceURI===Jr.XMLNS&&delete t._nsMap[i.prefix?i.localName:""]}function Pa(e,t,i){if(e&&e._inc){e._inc++;var n=t.childNodes;if(i)n[n.length++]=i;else{for(var r=t.firstChild,a=0;r;)r=(n[a++]=r).nextSibling;n.length=a}}}function La(e,t){var i=t.previousSibling,n=t.nextSibling;return i?i.nextSibling=n:e.firstChild=n,n?n.previousSibling=i:e.lastChild=i,Pa(e.ownerDocument,e),t}function Da(e,t,i){var n=t.parentNode;if(n&&n.removeChild(t),t.nodeType===pa){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;n=i?i.previousSibling:e.lastChild;for(r.previousSibling=n,a.nextSibling=i,n?n.nextSibling=r:e.firstChild=r,null==i?e.lastChild=a:i.previousSibling=a;r.parentNode=e,r!==a&&(r=r.nextSibling););return Pa(e.ownerDocument||e,e),t.nodeType==pa&&(t.firstChild=t.lastChild=null),t}function Oa(){this._nsMap={}}function Ra(){}function Ma(){}function Na(){}function Ua(){}function Ba(){}function Fa(){}function ja(){}function Ha(){}function qa(){}function Va(){}function Wa(){}function za(){}function Ga(e,t){var i,n=[],r=9==this.nodeType&&this.documentElement||this,a=r.prefix,s=r.namespaceURI;return Ya(this,n,e,t,i=s&&null==a&&null==(a=r.lookupPrefix(s))?[{namespace:s,prefix:null}]:i),n.join("")}function Xa(e,t,i){var n=e.prefix||"",r=e.namespaceURI;if(r&&("xml"!==n||r!==Jr.XML)&&r!==Jr.XMLNS){for(var a=i.length;a--;){var s=i[a];if(s.prefix===n)return s.namespace!==r}return 1}}function Ka(e,t,i){e.push(" ",t,'="',i.replace(/[<&"]/g,wa),'"')}function Ya(e,t,i,n,r){if(r=r||[],n){if(!(e=n(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case ra:var a=e.attributes,s=a.length,o=e.firstChild,u=e.tagName,l=u;if(!(i=Jr.isHTML(e.namespaceURI)||i)&&!e.prefix&&e.namespaceURI){for(var c,d=0;d<a.length;d++)if("xmlns"===a.item(d).name){c=a.item(d).value;break}if(c!==e.namespaceURI)for(var h=r.length-1;0<=h;h--){var p=r[h];if(p.namespace===e.namespaceURI){p.prefix&&(l=p.prefix+":"+u);break}}}t.push("<",l);for(var f=0;f<s;f++)"xmlns"==(m=a.item(f)).prefix?r.push({prefix:m.localName,namespace:m.value}):"xmlns"==m.nodeName&&r.push({prefix:"",namespace:m.value});for(var m,g,y,f=0;f<s;f++)Xa(m=a.item(f),0,r)&&(Ka(t,(g=m.prefix||"")?"xmlns:"+g:"xmlns",y=m.namespaceURI),r.push({prefix:g,namespace:y})),Ya(m,t,i,n,r);if(u===l&&Xa(e,0,r)&&(Ka(t,(g=e.prefix||"")?"xmlns:"+g:"xmlns",y=e.namespaceURI),r.push({prefix:g,namespace:y})),o||i&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),i&&/^script$/i.test(u))for(;o;)o.data?t.push(o.data):Ya(o,t,i,n,r.slice()),o=o.nextSibling;else for(;o;)Ya(o,t,i,n,r.slice()),o=o.nextSibling;t.push("</",l,">")}else t.push("/>");return;case da:case pa:for(o=e.firstChild;o;)Ya(o,t,i,n,r.slice()),o=o.nextSibling;return;case aa:return Ka(t,e.name,e.value),0;case sa:return t.push(e.data.replace(/[<&]/g,wa).replace(/]]>/g,"]]>"));
393case oa:return t.push("<![CDATA[",e.data,"]]>");case ca:return t.push("\x3c!--",e.data,"--\x3e");case ha:var v=e.publicId,_=e.systemId;return t.push("<!DOCTYPE ",e.name),void(v?(t.push(" PUBLIC ",v),_&&"."!=_&&t.push(" ",_),t.push(">")):_&&"."!=_?t.push(" SYSTEM ",_,">"):((_=e.internalSubset)&&t.push(" [",_,"]"),t.push(">")));case la:return t.push("<?",e.target," ",e.data,"?>");case ua:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function Qa(e,t,i){e[t]=i}Kt.INVALID_STATE_ERR=(fa[11]="Invalid state",11),Kt.SYNTAX_ERR=(fa[12]="Syntax error",12),Kt.INVALID_MODIFICATION_ERR=(fa[13]="Invalid modification",13),Kt.NAMESPACE_ERR=(fa[14]="Invalid namespace",14),Kt.INVALID_ACCESS_ERR=(fa[15]="Invalid access",15),ga.prototype=Error.prototype,ia(Kt,ga),ya.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var i=[],n=0;n<this.length;n++)Ya(this[n],i,e,t);return i.join("")}},va.prototype.item=function(e){return _a(this),this[e]},na(va,ya),ba.prototype={length:0,item:ya.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var i=this[t];if(i.nodeName==e)return i}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new ga(10);t=this.getNamedItem(e.nodeName);return Sa(this._ownerElement,this,e,t),t},setNamedItemNS:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new ga(10);return t=this.getNamedItemNS(e.namespaceURI,e.localName),Sa(this._ownerElement,this,e,t),t},removeNamedItem:function(e){e=this.getNamedItem(e);return Ea(this._ownerElement,this,e),e},removeNamedItemNS:function(e,t){t=this.getNamedItemNS(e,t);return Ea(this._ownerElement,this,t),t},getNamedItemNS:function(e,t){for(var i=this.length;i--;){var n=this[i];if(n.localName==t&&n.namespaceURI==e)return n}return null}},ka.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,i){var n=new xa;return n.implementation=this,n.childNodes=new ya,n.doctype=i||null,i&&n.appendChild(i),t&&(t=n.createElementNS(e,t),n.appendChild(t)),n},createDocumentType:function(e,t,i){var n=new Fa;return n.name=e,n.nodeName=e,n.publicId=t||"",n.systemId=i||"",n}},Ca.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return Da(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return La(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,i,n){var r=new i.constructor;for(var a in i){var s=i[a];"object"!=typeof s&&s!=r[a]&&(r[a]=s)}i.childNodes&&(r.childNodes=new ya);r.ownerDocument=t;switch(r.nodeType){case ra:var o=i.attributes,u=r.attributes=new ba,l=o.length;u._ownerElement=r;for(var c=0;c<l;c++)r.setAttributeNode(e(t,o.item(c),!0));break;case aa:n=!0}if(n)for(var d=i.firstChild;d;)r.appendChild(e(t,d,n)),d=d.nextSibling;return r}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==sa&&e.nodeType==sa?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return 0<this.attributes.length},lookupPrefix:function(e){for(var t=this;t;){var i=t._nsMap;if(i)for(var n in i)if(i[n]==e)return n;t=t.nodeType==aa?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var i=t._nsMap;if(i&&e in i)return i[e];t=t.nodeType==aa?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},ia(si,Ca),ia(si,Ca.prototype),xa.prototype={nodeName:"#document",nodeType:da,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType!=pa)return null==this.documentElement&&e.nodeType==ra&&(this.documentElement=e),Da(this,e,t),e.ownerDocument=this,e;for(var i=e.firstChild;i;){var n=i.nextSibling;this.insertBefore(i,t),i=n}return e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),La(this,e)},importNode:function(e,t){return function e(t,i,n){var r;switch(i.nodeType){case ra:(r=i.cloneNode(!1)).ownerDocument=t;case pa:break;case aa:n=!0}r=r||i.cloneNode(!1);r.ownerDocument=t;r.parentNode=null;if(n)for(var a=i.firstChild;a;)r.appendChild(e(t,a,n)),a=a.nextSibling;return r}(this,e,t)},getElementById:function(t){var i=null;return Ia(this.documentElement,function(e){if(e.nodeType==ra&&e.getAttribute("id")==t)return i=e,!0}),i},getElementsByClassName:function(s){var o=ta(s);return new va(this,function(r){var a=[];return 0<o.length&&Ia(r.documentElement,function(e){var t,i,n;e===r||e.nodeType!==ra||(t=e.getAttribute("class"))&&((i=s===t)||(t=ta(t),i=o.every((n=t,function(e){return n&&-1!==n.indexOf(e)}))),i&&a.push(e))}),a})},createElement:function(e){var t=new Oa;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new ya,(t.attributes=new ba)._ownerElement=t},createDocumentFragment:function(){var e=new Va;return e.ownerDocument=this,e.childNodes=new ya,e},createTextNode:function(e){var t=new Na;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new Ua;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new Ba;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var i=new Wa;return i.ownerDocument=this,i.tagName=i.target=e,i.nodeValue=i.data=t,i},createAttribute:function(e){var t=new Ra;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new qa;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var i=new Oa,n=t.split(":"),r=i.attributes=new ba;return i.childNodes=new ya,i.ownerDocument=this,i.nodeName=t,i.tagName=t,i.namespaceURI=e,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,r._ownerElement=i},createAttributeNS:function(e,t){var i=new Ra,n=t.split(":");return i.ownerDocument=this,i.nodeName=t,i.name=t,i.namespaceURI=e,i.specified=!0,2==n.length?(i.prefix=n[0],i.localName=n[1]):i.localName=t,i}},na(xa,Ca),xa.prototype.getElementsByTagName=(Oa.prototype={nodeType:ra,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){e=this.getAttributeNode(e);return e&&e.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){e=this.ownerDocument.createAttribute(e);e.value=e.nodeValue=""+t,this.setAttributeNode(e)},removeAttribute:function(e){e=this.getAttributeNode(e);e&&this.removeAttributeNode(e)}
393,appendChild:function(e){return e.nodeType===pa?this.insertBefore(e,null):function(e,t){var i=t.parentNode;i&&(n=e.lastChild,i.removeChild(t),n=e.lastChild);var n=e.lastChild;return t.parentNode=e,t.previousSibling=n,t.nextSibling=null,n?n.nextSibling=t:e.firstChild=t,e.lastChild=t,Pa(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){t=this.getAttributeNodeNS(e,t);t&&this.removeAttributeNode(t)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){t=this.getAttributeNodeNS(e,t);return t&&t.value||""},setAttributeNS:function(e,t,i){t=this.ownerDocument.createAttributeNS(e,t);t.value=t.nodeValue=""+i,this.setAttributeNode(t)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(n){return new va(this,function(t){var i=[];return Ia(t,function(e){e===t||e.nodeType!=ra||"*"!==n&&e.tagName!=n||i.push(e)}),i})},getElementsByTagNameNS:function(n,r){return new va(this,function(t){var i=[];return Ia(t,function(e){e===t||e.nodeType!==ra||"*"!==n&&e.namespaceURI!==n||"*"!==r&&e.localName!=r||i.push(e)}),i})}}).getElementsByTagName,xa.prototype.getElementsByTagNameNS=Oa.prototype.getElementsByTagNameNS,na(Oa,Ca),Ra.prototype.nodeType=aa,na(Ra,Ca),Ma.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(fa[3])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,i){var n=this.data.substring(0,e),t=this.data.substring(e+t);this.nodeValue=this.data=i=n+i+t,this.length=i.length}},na(Ma,Ca),Na.prototype={nodeName:"#text",nodeType:sa,splitText:function(e){var t=(i=this.data).substring(e),i=i.substring(0,e);this.data=this.nodeValue=i,this.length=i.length;t=this.ownerDocument.createTextNode(t);return this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling),t}},na(Na,Ma),Ua.prototype={nodeName:"#comment",nodeType:ca},na(Ua,Ma),Ba.prototype={nodeName:"#cdata-section",nodeType:oa},na(Ba,Ma),Fa.prototype.nodeType=ha,na(Fa,Ca),ja.prototype.nodeType=12,na(ja,Ca),Ha.prototype.nodeType=6,na(Ha,Ca),qa.prototype.nodeType=ua,na(qa,Ca),Va.prototype.nodeName="#document-fragment",Va.prototype.nodeType=pa,na(Va,Ca),Wa.prototype.nodeType=la,na(Wa,Ca),za.prototype.serializeToString=function(e,t,i){return Ga.call(e,t,i)},Ca.prototype.toString=Ga;try{Object.defineProperty&&(ma=function e(t){switch(t.nodeType){case ra:case pa:var i=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&i.push(e(t)),t=t.nextSibling;return i.join("");default:return t.nodeValue}},Object.defineProperty(va.prototype,"length",{get:function(){return _a(this),this.$$length}}),Object.defineProperty(Ca.prototype,"textContent",{get:function(){return ma(this)},set:function(e){switch(this.nodeType){case ra:case pa:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),Qa=function(e,t,i){e["$$"+t]=i})}catch(e){}var $a={DocumentType:Fa,DOMException:ga,DOMImplementation:ka,Element:Oa,Node:Ca,NodeList:ya,XMLSerializer:za},sr=t(function(e,t){var l=Or.NAMESPACE;function i(e){this.options=e||{locator:{}}}function c(){this.cdata=!1}function d(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function h(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function r(e,t,i){return"string"==typeof e?e.substr(t,i):e.length>=t+i||t?new java.lang.String(e,t,i)+"":e}function p(e,t){(e.currentElement||e.doc).appendChild(t)}i.prototype.parseFromString=function(e,t){var i=this.options,n=new f,r=i.domBuilder||new c,a=i.errorHandler,s=i.locator,o=i.xmlns||{},u=/\/x?html?$/.test(t),t=u?Rr.HTML_ENTITIES:Rr.XML_ENTITIES;return s&&r.setDocumentLocator(s),n.errorHandler=function(n,e,r){if(!n){
vendor: 2,712 bytes, line 393
393if(e instanceof c)return e;n=e}var a={},s=n instanceof Function;function t(t){var i=n[t];!i&&s&&(i=2==n.length?function(e){n(t,e)}:n),a[t]=i?function(e){i("[xmldom "+t+"]\t"+e+h(r))}:function(){}}return r=r||{},t("warning"),t("error"),t("fatalError"),a}(a,r,s),n.domBuilder=i.domBuilder||r,u&&(o[""]=l.HTML),o.xml=o.xml||l.XML,e&&"string"==typeof e?n.parse(e,o,t):n.errorHandler.error("invalid doc source"),r.doc},c.prototype={startDocument:function(){this.doc=(new a).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,i,n){var r=this.doc,a=r.createElementNS(e,i||t),s=n.length;p(this,a),this.currentElement=a,this.locator&&d(this.locator,a);for(var o=0;o<s;o++){var e=n.getURI(o),u=n.getValue(o),i=n.getQName(o),l=r.createAttributeNS(e,i);this.locator&&d(n.getLocator(o),l),l.value=l.nodeValue=u,a.setAttributeNode(l)}},endElement:function(e,t,i){var n=this.currentElement;n.tagName,this.currentElement=n.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){t=this.doc.createProcessingInstruction(e,t);this.locator&&d(this.locator,t),p(this,t)},ignorableWhitespace:function(e,t,i){},characters:function(e,t,i){var n;(e=r.apply(this,arguments))&&(n=this.cdata?this.doc.createCDATASection(e):this.doc.createTextNode(e),this.currentElement?this.currentElement.appendChild(n):/^\s*$/.test(e)&&this.doc.appendChild(n),this.locator&&d(this.locator,n))},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,i){e=r.apply(this,arguments);e=this.doc.createComment(e);this.locator&&d(this.locator,e),p(this,e)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,i){var n=this.doc.implementation;n&&n.createDocumentType&&(i=n.createDocumentType(e,t,i),this.locator&&d(this.locator,i),p(this,i))},warning:function(e){},error:function(e){},fatalError:function(e){throw new n(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){c.prototype[e]=function(){return null}});var f=$r.XMLReader,n=$r.ParseError,a=t.DOMImplementation=$a.DOMImplementation;t.XMLSerializer=$a.XMLSerializer,t.DOMParser=i,t.__DOMHandler=c});sr.DOMImplementation,sr.XMLSerializer;var Ja=sr.DOMParser;sr.__DOMHandler;function Za(e){return!!e&&"object"==typeof e}function es(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.reduce(function(t,i){return"object"!=typeof i||Object.keys(i).forEac
393h(function(e){Array.isArray(t[e])&&Array.isArray(i[e])?t[e]=t[e].concat(i[e]):Za(t[e])&&Za(i[e])?t[e]=es(t[e],i[e]):t[e]=i[e]}),t},{})}function ts(e){return e.reduce(function(e,t){return e.concat(t)},[])}function is(e){if(!e.length)return[];for(var t=[],i=0;i<e.length;i++)t.push(e[i]);return t}function ns(e){var t=e.baseUrl,i=void 0===(n=e.source)?"":n,n=void 0===(n=e.range)?"":n,e=void 0===(e=e.indexRange)?"":e,i={uri:i,resolvedUri:nr((void 0===t?"":t)||"",i)};return(n||e)&&(n=(n||e).split("-"),e=parseInt(n[0],10),n=parseInt(n[1],10),i.byterange={length:n-e+1,offset:e}),i}function rs(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e}function as(e){var s,t=e.type,i=e.duration,n=e.timescale,r=void 0===n?1:n,a=e.periodDuration,o=e.sourceDuration,e=function(e,t){for(var i=[],n=e;n<t;n++)i.push(n);return i}((n=$s[t](e)).start,n.end).map((s=e,function(e,t){var i=s.duration,n=s.timescale,r=s.periodIndex,a=s.startNumber;return{number:(void 0===a?1:a)+e,duration:i/(void 0===n?1:n),timeline:r,time:t*i}}));return"static"===t&&(e[t=e.length-1].duration=("number"==typeof a?a:o)-i/r*t),e}function ss(e){var t=e.baseUrl,i=void 0===(r=e.initialization)?{}:r,n=e.sourceDuration,r=void 0===(a=e.indexRange)?"":a,a=e.duration;if(!t)throw new Error(Ks);return i=ns({baseUrl:t,source:i.sourceURL,range:i.range}),(r=ns({baseUrl:t,source:t,indexRange:r})).map=i,a?(e=as(e)).length&&(r.duration=e[0].duration,r.timeline=e[0].timeline):n&&(r.duration=n,r.timeline=0),r.number=0,[r]}function os(e,t,i){for(var n=e.sidx.map||null,r=e.sidx.duration,a=e.timeline||0,s=(s=e.sidx.byterange).offset+s.length,o=t.timescale,u=t.references.filter(function(e){return 1!==e.referenceType}),l=[],c=e.endList?"static":"dynamic",d=s+t.firstOffset,h=0;h<u.length;h++){var p=t.references[h],f=p.referencedSize,p=p.subsegmentDuration,p=ss({baseUrl:i,timescale:o,timeline:a,periodIndex:a,duration:p,sourceDuration:r,indexRange:d+"-"+(d+f-1),type:c})[0];n&&(p.map=n),l.push(p),d+=f}return e.segments=l,e}function us(e){return e&&e.uri+"-"+(t=e.byterange,e=t.offset+t.length-1,t.offset+"-"+e);var t}function ls(e){var t;return(t=e.reduce(function(e,t){var i,n=t.attributes.id+(t.attributes.lang||"");return e[n]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(i=e[n].segments).push.apply(i,t.segments),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):e[n]=t,e},{}),Object.keys(t).map(function(e){return t[e]})).map(function(e){var t,n;return e.discontinuityStarts=(t=e.segments,n="discontinuity",t.reduce(function(e,t,i){return t[n]&&e.push(i),e},[])),e})}function cs(e,t){var i=us(e.sidx);return(i=i&&t[i]&&t[i].sidx)&&os(e,i,e.sidx.resolvedUri),e}function ds(e,l,c){var d;return void 0===l&&(l={}),void 0===c&&(c=!1),e=e.reduce(function(e,t){var i=t.attributes.role&&t.attributes.role.value||"",n=t.attributes.lang||"",r=t.attributes.label||"main";e[r=n&&!t.attributes.label?t.attributes.lang+(i?" ("+i+")":""):r]||(e[r]={language:n,autoselect:!0,default:"main"===i,playlists:[],uri:""});var a,s,o,u,u=cs((s=c,o=(a=t).attributes,u=a.segments,n=a.sidx,u={attributes:((a={NAME:o.id,BANDWIDTH:o.bandwidth,CODECS:o.codecs})["PROGRAM-ID"]=1,a),uri:"",endList:"static"===o.type,timeline:o.periodIndex,resolvedUri:"",targetDuration:o.duration,segments:u,mediaSequence:u.length?u[0].number:1},o.contentProtection&&(u.contentProtection=o.contentProtection),n&&(u.sidx=n),s&&(u.attributes.AUDIO="audio",u.attributes.SUBTITLES="subs"),u),l);return e[r].playlists.push(u),"undefined"==typeof d&&"main"===i&&((d=t).default=!0),e},{}),d||(e[Object.keys(e)[0]].default=!0),e}function hs(e){var t=e.attributes,i=e.segments,n=e.sidx,i={attributes:((e={NAME:t.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:t.width,height:t.height},CODECS:t.codecs,BANDWIDTH:t.bandwidth})["PROGRAM-ID"]=1,e),uri:"",endList:"static"===t.type,timeline:t.periodIndex,resolvedUri:"",targetDuration:t.duration,segments:i,mediaSequence:i.length?i[0].number:1};return t.contentProtection&&(i.contentProtection=t.contentProtection),n&&(i.sidx=n),i}function ps(e){return"video/mp4"===(e=e.attributes).mimeType||"video/webm"===e.mimeType||"video"===e.contentType}function fs(e){return"audio/mp4"===(e=e.attributes).mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType}function ms(e){return"text/vtt"===(e=e.attributes).mimeType||"text"===e.contentType}function gs(e,t,i){if(void 0===i&&(i={}),!e.length)return{};var n=(c=e[0].attributes).sourceDuration,r=c.type,a=c.suggestedPresentationDelay,s=c.minimumUpdatePeriod,o=ls(e.filter(ps)).map(hs),u=ls(e.filter(fs)),l=e.filter(ms),c=e.map(function(e){return e.attributes.captionServices}
393).filter(Boolean),o={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:((e={AUDIO:{},VIDEO:{}})["CLOSED-CAPTIONS"]={},e.SUBTITLES={},e),uri:"",duration:n,playlists:function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var i in e)e[i]=cs(e[i],t);return e}(o,i)};0<=s&&(o.minimumUpdatePeriod=1e3*s),t&&(o.locations=t),"dynamic"===r&&(o.suggestedPresentationDelay=a);var d,a=0===o.playlists.length;return u.length&&(o.mediaGroups.AUDIO.audio=ds(u,i,a)),l.length&&(o.mediaGroups.SUBTITLES.subs=(void 0===(d=i)&&(d={}),l.reduce(function(e,t){var i=t.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(cs(function(e){var t=e.attributes,i=e.segments;"undefined"==typeof i&&(i=[{uri:t.baseUrl,timeline:t.periodIndex,resolvedUri:t.baseUrl||"",duration:t.sourceDuration,number:0}],t.duration=t.sourceDuration);(e={NAME:t.id,BANDWIDTH:t.bandwidth})["PROGRAM-ID"]=1;return t.codecs&&(e.CODECS=t.codecs),{attributes:e,uri:"",endList:"static"===t.type,timeline:t.periodIndex,resolvedUri:t.baseUrl||"",targetDuration:t.duration,segments:i,mediaSequence:i.length?i[0].number:1}}(t),d)),e},{}))),c.length&&(o.mediaGroups["CLOSED-CAPTIONS"].cc=c.reduce(function(n,e){return e&&e.forEach(function(e){var t=e.channel,i=e.language;n[i]={autoselect:!1,default:!1,instreamId:t,language:i},e.hasOwnProperty("aspectRatio")&&(n[i].aspectRatio=e.aspectRatio),e.hasOwnProperty("easyReader")&&(n[i].easyReader=e.easyReader),e.hasOwnProperty("3D")&&(n[i]["3D"]=e["3D"])}),n},{})),o}function ys(e,t){for(var i,n,r,a,s,o,u=e.type,l=e.minimumUpdatePeriod,c=void 0===l?0:l,d=void 0===(l=e.media)?"":l,h=e.sourceDuration,p=void 0===(l=e.timescale)?1:l,f=void 0===(l=e.startNumber)?1:l,m=e.periodIndex,g=[],y=-1,v=0;v<t.length;v++){var _=t[v],b=_.d,T=_.r||0,S=_.t||0;y<0&&(y=S),S&&y<S&&(y=S);var E,k=void 0;k=T<0?(E=v+1)===t.length?"dynamic"===u&&0<c&&0<d.indexOf("$Number$")?(i=y,n=b,_=o=s=a=r=void 0,r=(S=e).NOW,a=S.clientOffset,s=S.availabilityStartTime,o=S.timescale,_=S.start,S=S.minimumUpdatePeriod,Math.ceil((((r+a)/1e3+(void 0===S?0:S)-(s+(void 0===_?0:_)))*(void 0===o?1:o)-i)/n)):(h*p-y)/b:(t[E].t-y)/b:T+1;for(var C=f+g.length+k,w=f+g.length;w<C;)g.push({number:w,duration:b/p,time:y,timeline:m}),y+=b,w++}return g}function vs(e,t){return e.replace(Js,(r=t,function(e,t,i,n){if("$$"===e)return"$";if("undefined"==typeof r[t])return e;e=""+r[t];return"RepresentationID"===t||(n=i?parseInt(n,10):1)<=e.length?e:new Array(n-e.length+1).join("0")+e}));var r}function _s(r,e){var a={RepresentationID:r.id,Bandwidth:r.bandwidth||0},t=void 0===(t=r.initialization)?{sourceURL:"",range:""}:t,s=ns({baseUrl:r.baseUrl,source:vs(t.sourceURL,a),range:t.range});return(t=e,(e=r).duration||t?e.duration?as(e):ys(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]).map(function(e){a.Number=e.number,a.Time=e.time;var t=vs(r.media||"",a),i=r.timescale||1,n=r.presentationTimeOffset||0,i=r.periodStart+(e.time-n)/i;return{uri:t,timeline:e.timeline,duration:e.duration,resolvedUri:nr(r.baseUrl||"",t),map:s,number:e.number,presentationTime:i}})}function bs(r,e){var t=r.duration,i=void 0===(i=r.segmentUrls)?[]:i,a=r.periodStart;if(!t&&!e||t&&e)throw new Error(Ys);var n,s=i.map(function(e){return i=e,e=(t=r).baseUrl,t=t.initialization,t=ns({baseUrl:e,source:(t=void 0===t?{}:t).sourceURL,range:t.range}),(i=ns({baseUrl:e,source:i.media,range:i.mediaRange})).map=t,i;var t,i});return t&&(n=as(r)),(n=e?ys(r,e):n).map(function(e,t){if(s[t]){var i=s[t],n=r.timescale||1,t=r.presentationTimeOffset||0;return i.timeline=e.timeline,i.duration=e.duration,i.number=e.number,i.presentationTime=a+(e.time-t)/n,i}}).filter(function(e){return e})}function Ts(e){var t,i=e.attributes,n=e.segmentInfo;n.template?(a=_s,t=es(i,n.template)):n.base?(a=ss,t=es(i,n.base)):n.list&&(a=bs,t=es(i,n.list));var r={attributes:i};if(!a)return r;var a,e=a(t,n.segmentTimeline);return t.duration?(i=t.duration,a=t.timescale,t.duration=i/(void 0===a?1:a)):e.length?t.duration=e.reduce(function(e,t){return Math.max(e,Math.ceil(t.duration))},0):t.duration=0,r.attributes=t,r.segments=e,n.base&&t.indexRange&&(r.sidx=e[0],r.segments=[]),r}function Ss(e,t){return is(e.childNodes).filter(function(e){return e.tagName===t})}function Es(e){return e.textContent.trim()}function ks(e){if(!(r=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e)))return 0;var t=(a=r.slice(1))[0],i=a[1],n=a[2],e=a[3],r=a[4],a=a[5];
393return 31536e3*parseFloat(t||0)+2592e3*parseFloat(i||0)+86400*parseFloat(n||0)+3600*parseFloat(e||0)+60*parseFloat(r||0)+parseFloat(a||0)}function Cs(e){return e&&e.attributes?is(e.attributes).reduce(function(e,t){var i=Zs[t.name]||Zs.DEFAULT;return e[t.name]=i(t.value),e},{}):{}}function ws(e,i){return i.length?ts(e.map(function(t){return i.map(function(e){return nr(t,Es(e))})})):e}function Is(e){var t=Ss(e,"SegmentTemplate")[0],i=Ss(e,"SegmentList")[0],n=i&&Ss(i,"SegmentURL").map(function(e){return es({tag:"SegmentURL"},Cs(e))}),r=Ss(e,"SegmentBase")[0],e=(a=i||t)&&Ss(a,"SegmentTimeline")[0],a=(a=i||r||t)&&Ss(a,"Initialization")[0];(t=t&&Cs(t))&&a?t.initialization=a&&Cs(a):t&&t.initialization&&(t.initialization={sourceURL:t.initialization});var s={template:t,segmentTimeline:e&&Ss(e,"S").map(Cs),list:i&&es(Cs(i),{segmentUrls:n,initialization:Cs(a)}),base:r&&es(Cs(r),{initialization:Cs(a)})};return Object.keys(s).forEach(function(e){s[e]||delete s[e]}),s}function xs(u,l,c){return function(e){var t=Cs(e),i=ws(l,Ss(e,"BaseURL")),n=Ss(e,"Role")[0],n={role:Cs(n)},t=es(u,t,n),n=Ss(e,"Accessibility")[0],n="urn:scte:dash:cc:cea-608:2015"===(n=Cs(n)).schemeIdUri?n.value.split(";").map(function(e){var t,i,n;return/^CC\d=/.test(n=e)?(i=(t=e.split("="))[0],n=t[1]):/^CC\d$/.test(e)&&(i=e),{channel:i,language:n}}):"urn:scte:dash:cc:cea-708:2015"===n.schemeIdUri?n.value.split(";").map(function(e){var t,i,n={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};return/=/.test(e)?(t=(i=e.split("="))[0],i=void 0===(i=i[1])?"":i,n.channel=t,n.language=e,i.split(",").forEach(function(e){var t=e.split(":"),e=t[0],t=t[1];"lang"===e?n.language=t:"er"===e?n.easyReader=Number(t):"war"===e?n.aspectRatio=Number(t):"3D"===e&&(n["3D"]=Number(t))})):n.language=e,n.channel&&(n.channel="SERVICE"+n.channel),n}):void 0;n&&(t=es(t,{captionServices:n}));n=Ss(e,"Label")[0];n&&n.childNodes.length&&(r=n.childNodes[0].nodeValue.trim(),t=es(t,{label:r}));var r=Ss(e,"ContentProtection").reduce(function(e,t){var i=Cs(t),n=eo[i.schemeIdUri];return n&&(e[n]={attributes:i},(t=Ss(t,"cenc:pssh")[0])&&(t=(t=Es(t))&&ur(t),e[n].pssh=t)),e},{});Object.keys(r).length&&(t=es(t,{contentProtection:r}));var a,s,o,r=Is(e),e=Ss(e,"Representation"),r=es(c,r);return ts(e.map((a=t,s=i,o=r,function(e){var t=Ss(e,"BaseURL"),t=ws(s,t),i=es(a,Cs(e)),n=Is(e);return t.map(function(e){return{segmentInfo:es(o,n),attributes:es(i,{baseUrl:e})}})})))}}function As(e,t){var i=t=void 0===t?{}:t,n=void 0===(a=i.manifestUri)?"":a,t=void 0===(r=i.NOW)?Date.now():r,r=void 0===(a=i.clientOffset)?0:a;if(!(i=Ss(e,"Period")).length)throw new Error(zs);var a=Ss(e,"Location"),s=Cs(e),e=ws([n],Ss(e,"BaseURL"));s.type=s.type||"static",s.sourceDuration=s.mediaPresentationDuration||0,s.NOW=t,s.clientOffset=r,a.length&&(s.locations=a.map(Es));var o,u,l=[];return i.forEach(function(e,t){var i,n=Cs(e),r=l[t-1];n.start=(i={attributes:n,priorPeriodAttributes:r?r.attributes:null,mpdType:s.type},t=i.attributes,r=i.priorPeriodAttributes,i=i.mpdType,"number"==typeof t.start?t.start:r&&"number"==typeof r.start&&"number"==typeof r.duration?r.start+r.duration:r||"static"!==i?null:0),l.push({node:e,attributes:n})}),{locations:s.locations,representationInfo:ts(l.map((o=s,u=e,function(e,t){var i=ws(u,Ss(e.node,"BaseURL")),n=parseInt(e.attributes.id,10),t=_.isNaN(n)?t:n,n=es(o,{periodIndex:t,periodStart:e.attributes.start});"number"==typeof e.attributes.duration&&(n.periodDuration=e.attributes.duration);t=Ss(e.node,"AdaptationSet"),e=Is(e.node);return ts(t.map(xs(n,i,e)))})))}}function Ps(e){if(""===e)throw new Error(Gs);var t,i,n=new Ja;try{i=(t=n.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!i||i&&0<i.getElementsByTagName("parsererror").length)throw new Error(Xs);return i}function Ls(e,t){void 0===t&&(t={});var i=As(Ps(e),t),e=i.representationInfo.map(Ts);return gs(e,i.locations,t.sidxMapping)}function Ds(e){return function(e){e=Ss(e,"UTCTiming")[0];if(!e)return null;var t=Cs(e);switch(t.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":t.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":t.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":t.method="DIRECT",t.value=Date.parse(t.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(Qs)}return t}(Ps(e))}function Os(e){return e instanceof Uint8Array?e:(Array.isArray(e)||(t=e,ArrayBuffer.isView(t))||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0));var t}function Rs(e,t){var i=void 0!==(t=(void 0===t?{}:t).le)&&t;e=no(e="bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e?0:e);
393for(var n=(t=e,Math.ceil(t.toString(2).length/8)),r=new Uint8Array(new ArrayBuffer(n)),a=0;a<n;a++){var s=i?a:Math.abs(a+1-r.length);r[s]=Number(e/ro[a]&no(255)),e<0&&(r[s]=Math.abs(~r[s]),r[s]-=0===a?1:2)}return r}function Ms(e,t){if("string"!=typeof(e="string"!=typeof e&&e&&"function"==typeof e.toString?e.toString():e))return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var i=new Uint8Array(e.length),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return i}function Ns(i,e,t){var n=void 0===t?{}:t,r=void 0===(t=n.offset)?0:t,a=void 0===(n=n.mask)?[]:n;return i=Os(i),n=(e=Os(e)).every||Array.prototype.every,e.length&&i.length-r>=e.length&&n.call(e,function(e,t){return e===(a[t]?a[t]&i[r+t]:i[r+t])})}function Us(e,t){return void 0===t&&(t=0),(e=Os(e)).length-t<10||!Ns(e,ao,{offset:t})?t:Us(e,t+=function(e,t){void 0===t&&(t=0);var i=(e=Os(e))[t+5],t=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&i)>>4?20+t:10+t}(e,t))}function Bs(e){return"string"==typeof e?Ms(e):e}function Fs(e,t,i){var n;void 0===i&&(i=!1),n=t,t=Array.isArray(n)?n.map(Bs):[Bs(n)],e=Os(e);var r=[];if(!t.length)return r;for(var a=0;a<e.length;){var s=(e[a]<<24|e[a+1]<<16|e[a+2]<<8|e[a+3])>>>0,o=e.subarray(a+4,a+8);if(0==s)break;var u=a+s;if(u>e.length){if(i)break;u=e.length}s=e.subarray(a+8,u);Ns(o,t[0])&&(1===t.length?r.push(s):r.push.apply(r,Fs(s,t.slice(1),i))),a=u}return r}function js(e,t,i,n){void 0===i&&(i=!0),void 0===n&&(n=!1);var r=function(e){for(var t=1,i=0;i<oo.length&&!(e&oo[i]);i++)t++;return t}(e[t]),a=e.subarray(t,t+r);return i&&((a=Array.prototype.slice.call(e,t,t+r))[0]^=oo[r-1]),{length:r,value:function(n,e){var t=void 0===e?{}:e,e=t.signed,e=void 0!==e&&e,t=t.le,r=void 0!==t&&t;n=Os(n);t=r?"reduce":"reduceRight",t=(n[t]||Array.prototype[t]).call(n,function(e,t,i){i=r?i:Math.abs(i+1-n.length);return e+no(t)*ro[i]},no(0));return!e||(e=ro[n.length]/no(2)-no(1))<(t=no(t))&&(t-=e,t-=e,t-=no(2)),Number(t)}(a,{signed:n}),bytes:a}}function Hs(e){return"string"==typeof e?e.match(/.{1,2}/g).map(Hs):"number"==typeof e?Rs(e):e}function qs(e,t,i){if(i>=t.length)return t.length;var n=js(t,i,!1);if(Ns(e.bytes,n.bytes))return i;var r=js(t,i+n.length);return qs(e,t,i+r.length+r.value+n.length)}function Vs(e,t){var i;i=t,t=Array.isArray(i)?i.map(Hs):[Hs(i)],e=Os(e);var n=[];if(!t.length)return n;for(var r=0;r<e.length;){var a=js(e,r,!1),s=js(e,r+a.length),o=r+a.length+s.length;127===s.value&&(s.value=qs(a,e,o),s.value!==e.length&&(s.value-=o));var u=o+s.value>e.length?e.length:o+s.value,u=e.subarray(o,u);Ns(t[0],a.bytes)&&(1===t.length?n.push(u):n=n.concat(Vs(u,t.slice(1)))),r+=a.length+s.length+u.length}return n}function Ws(e,t,i,n){void 0===n&&(n=1/0),e=Os(e),i=[].concat(i);for(var r,a=0,s=0;a<e.length&&(s<n||r);){var o=void 0;if(Ns(e.subarray(a),uo)?o=4:Ns(e.subarray(a),lo)&&(o=3),o){if(s++,r)return function(e){for(var t=[],i=1;i<e.length-2;)Ns(e.subarray(i,i+3),co)&&(t.push(i+2),i++),i++;if(0===t.length)return e;for(var n=e.length-t.length,r=new Uint8Array(n),a=0,i=0;i<n;a++,i++)a===t[0]&&(a++,t.shift()),r[i]=e[a];return r}(e.subarray(r,a));var u=void 0;"h264"===t?u=31&e[a+o]:"h265"===t&&(u=e[a+o]>>1&63),-1!==i.indexOf(u)&&(r=a+o),a+=o+("h264"===t?1:2)}else a++}return e.subarray(0,0)} 394/*! @name mpd-parser @version 0.19.0 @license Apache-2.0 */ 395var zs="INVALID_NUMBER_OF_PERIOD",Gs="DASH_EMPTY_MANIFEST",Xs="DASH_INVALID_XML",Ks="NO_BASE_URL",Ys="SEGMENT_TIME_UNSPECIFIED",Qs="UNSUPPORTED_UTC_TIMING_SCHEME",$s={static:function(e){var t=e.duration,i=e.timescale,n=void 0===i?1:i,r=e.sourceDuration,i=e.periodDuration,e=rs(e.endNumber),n=t/n;return"number"==typeof e?{start:0,end:e}:"number"==typeof i?{start:0,end:i/n}:{start:0,end:r/n}},dynamic:function(e){var t=e.NOW,i=e.clientOffset,n=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,s=e.duration,o=e.start,u=void 0===o?0:o,r=e.minimumUpdatePeriod,o=void 0===r?0:r,r=e.timeShiftBufferDepth,r=void 0===r?1/0:r,e=rs(e.endNumber),i=(t+i)/1e3,u=n+u,o=Math.ceil((i+o-u)*a/s),r=Math.floor((i-u-r)*a/s),s=Math.floor((i-u)*a/s);return{start:Math.max(0,r),end:"number"==typeof e?e:Math.min(o,s)}}},Js=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,Zs={mediaPresentationDuration:ks,availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e=e)&&(e+="Z"),Date.parse(e)/1e3},minimumUpdatePeriod:ks,suggestedPresentationDelay:ks,type:function(e){return e},timeShiftBufferDepth:ks,start:ks,width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?ks(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},eo={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},to=Math.pow(2,32),io=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},n=12;0===i.version?(i.earliestPresentationTime=t.getUint32(n),i.firstOffset=t.getUint32(n+4),n+=8):(i.earliestPresentationTime=t.getUint32(n)*to+t.getUint32(n+4),i.firstOffset=t.getUint32(n+8)*to+t.getUint32(n+12),n+=16);var r=t.getUint16(n+=2);for(n+=2;0<r;n+=12,r--)i.references.push({referenceType:(128&e[n])>>>7,referencedSize:2147483647&t.getUint32(n),subsegmentDuration:t.getUint32(n+4),startsWithSap:!!(128&e[n+8]),sapType:(112&e[n+8])>>>4,sapDeltaTime:268435455&t.getUint32(n+8)});return i},no=_.BigInt||Number,ro=[no("0x1"),no("0x100"),no("0x10000"),no("0x1000000"),no("0x100000000"),no("0x10000000000"),no("0x1000000000000"),no("0x100000000000000"),no("0x10000000000000000")],ao=Os([73,68,51]),so={EBML:Os([26,69,223,163]),DocType:Os([66,130]),Segment:Os([24,83,128,103]),SegmentInfo:Os([21,73,169,102]),Tracks:Os([22,84,174,107]),Track:Os([174]),TrackNumber:Os([215]),DefaultDuration:Os([35,227,131]),TrackEntry:Os([174]),TrackType:Os([131]),FlagDefault:Os([136]),CodecID:Os([134]),CodecPr
395ivate:Os([99,162]),VideoTrack:Os([224]),AudioTrack:Os([225]),Cluster:Os([31,67,182,117]),Timestamp:Os([231]),TimestampScale:Os([42,215,177]),BlockGroup:Os([160]),BlockDuration:Os([155]),Block:Os([161]),SimpleBlock:Os([163])},oo=[128,64,32,16,8,4,2,1],uo=Os([0,0,0,1]),lo=Os([0,0,1]),co=Os([0,0,3]),ho={webm:Os([119,101,98,109]),matroska:Os([109,97,116,114,111,115,107,97]),flac:Os([102,76,97,67]),ogg:Os([79,103,103,83]),ac3:Os([11,119]),riff:Os([82,73,70,70]),avi:Os([65,86,73]),wav:Os([87,65,86,69]),"3gp":Os([102,116,121,112,51,103]),mp4:Os([102,116,121,112]),fmp4:Os([115,116,121,112]),mov:Os([102,116,121,112,113,116]),moov:Os([109,111,111,118]),moof:Os([109,111,111,102])},po={aac:function(e){var t=Us(e);return Ns(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=Us(e);return Ns(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){e=Vs(e,[so.EBML,so.DocType])[0];return Ns(e,ho.webm)},mkv:function(e){e=Vs(e,[so.EBML,so.DocType])[0];return Ns(e,ho.matroska)},mp4:function(e){return!po["3gp"](e)&&!po.mov(e)&&(!(!Ns(e,ho.mp4,{offset:4})&&!Ns(e,ho.fmp4,{offset:4}))||(!(!Ns(e,ho.moof,{offset:4})&&!Ns(e,ho.moov,{offset:4}))||void 0))},mov:function(e){return Ns(e,ho.mov,{offset:4})},"3gp":function(e){return Ns(e,ho["3gp"],{offset:4})},ac3:function(e){var t=Us(e);return Ns(e,ho.ac3,{offset:t})},ts:function(e){if(e.length<189&&1<=e.length)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=Us(e);return Ns(e,ho.flac,{offset:t})},ogg:function(e){return Ns(e,ho.ogg)},avi:function(e){return Ns(e,ho.riff)&&Ns(e,ho.avi,{offset:8})},wav:function(e){return Ns(e,ho.riff)&&Ns(e,ho.wav,{offset:8})},h264:function(e){return Ws(e,"h264",7,3).length},h265:function(e){return Ws(e,"h265",[32,33],3).length}},fo=Object.keys(po).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);fo.forEach(function(e){var t=po[e];po[e]=function(e){return t(Os(e))}});function mo(e){e=Os(e);for(var t=0;t<fo.length;t++){var i=fo[t];if(zu[i](e))return i}return""}function go(e,t,i){return e&&i&&i.responseURL&&t!==i.responseURL?i.responseURL:t}function yo(e){return ir.log.debug?ir.log.debug.bind(ir,"VHS:",e+" >"):function(){}}function vo(e,t){var i,n=[];if(e&&e.length)for(i=0;i<e.length;i++)t(e.start(i),e.end(i))&&n.push([e.start(i),e.end(i)]);return ir.createTimeRanges(n)}function _o(e,i){return vo(e,function(e,t){return e-.1<=i&&i<=t+.1})}function bo(e,t){return vo(e,function(e){return t<=e-Ku})}function To(e){var t=[];if(!e||!e.length)return"";for(var i=0;i<e.length;i++)t.push(e.start(i)+" => "+e.end(i));return t.join(", ")}function So(e){for(var t=[],i=0;i<e.length;i++)t.push({start:e.start(i),end:e.end(i)});return t}function Eo(e){if(e&&e.length&&e.end)return e.end(e.length-1)}function ko(e){return(e.segments||[]).reduce(function(i,n,r){return n.parts?n.parts.forEach(function(e,t){i.push({duration:e.duration,segmentIndex:r,partIndex:t,part:e,segment:n})}):i.push({duration:n.duration,segmentIndex:r,partIndex:null,segment:n,part:null}),i},[])}function Co(e){return(e=e.segments&&e.segments.length&&e.segments[e.segments.length-1])&&e.parts||[]}function wo(e){var t=e.preloadSegment;if(t){e=t.parts,t=(t.preloadHints||[]).reduce(function(e,t){return e+("PART"===t.type?1:0)},0);return t+=e&&e.length?e.length:0}}function Io(e,t){return t.endList?0:e&&e.suggestedPresentationDelay?e.suggestedPresentationDelay:(e=0<Co(t).length)&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:e&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0}function xo(e,t,i){if((t="undefined"==typeof t?e.mediaSequence+e.segments.length:t)<e.mediaSequence)return 0;var n=function(e,t){var i=0,n=t-e.mediaSequence,r=e.segments[n];if(r){if("undefined"!=typeof r.start)return{result:r.start,precise:!0};if("undefined"!=typeof r.end)return{result:r.end-r.duration,precise:!0}}for(;n--;){if("undefined"!=typeof(r=e.segments[n]).end)return{result:i+r.end,precise:!0};if(i+=r.duration,"undefined"!=typeof r.start)return{result:i+r.start,precise:!0}}return{result:i,precise:!1}}(e,t);return n.precise?n.result:(t=function(e,t){for(var i,n=0,r=t-e.mediaSequence;r<e.segments.length;r++){if("undefined"!=typeof(i=e.segments[r]).start)return{result:i.start-n,precise:!0};if(n+=i.duration,"undefined"!=typeof i.end)return{result:i.end-n,precise:!0}}return{result:-1,precise:!1}}(e,t)).precise?t.result:n.result+i}function Ao(e,t,i){if(!e)return 0;if("undefined"==typeof t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return _.Infinity}return xo(e,t,i="number"!=typeof i?0:i)}function Po(e){var t=e.defaultDuration,i=e.durationList,n=e.startIndex,r=e.endIndex,a=0;if(r<n&&(n=(e=[r,n])[0],r=e[1]),n<0){for(var s=n;s<Math.min(0,r);s++)a+=t;n=0}for(var o=n;o<r;o++)a+=i[o].duration;return a}function Lo(e,t,i,n){return e&&e.segments?e.endList?Ao(e):null===t?null:(t=xo(e,e.mediaSequence+e.segments.length,t=t||0),i&&(t-=n="number"==typeof n?n:Io(null,e)),Math.max(0,t)):null}function Do(e){return e.excludeUntil&&e.excludeUntil>Date.now()}function Oo(e){return e.excludeUntil&&e.excludeUntil===1/0}function Ro(e){var t=Do(e);return!e.disabled&&!t}function Mo(e,t){return t.attributes&&t.attributes[e]}function No(e,t){if(1===e.playlists.length)return!0;var i=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(function(e){return!!Ro(e)&&(e.attributes.BANDWIDTH||0)<i}).length}function Uo(e,t){return!(!e&&!t||!e&&t||e&&!t)&&(e===t||(!(!e.id||!t.id||e.id!==t.id)||(!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri))))}function Bo(e,t){var i,n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},r=!1;for(i in n){for(var a in n[i])if(r=t(n[i][a]))break;if(r)break}return!!r}function Fo(i){if(!i||!i.playlists||!i.playlists.length)return Bo(i,function(e){return e.playlists&&e.playlists.length||e.uri});for(var e=0;e<i.playlists.length;e++){var t=function(e){var t=i.playlists[e],e=t.attributes&&t.attributes.CODECS;return e&&e.split(",").every(mr)||Bo(i,function(e){return Uo(t,e)})?"continue":{v:!1}}(e);if("continue"!==t&&"object"==typeof t)return t.v}return!0}function jo(e,t){return e+"-"+t}function Ho(r,a){r.mediaGroups&&["AUDIO","SUBTITLES"].forEach(function(e){if(r.mediaGroups[e])for(var t in r.mediaGroups[e])for(var i in r.mediaGroups[e][t]){var n=r.mediaGroups[e][t][i];a(n,e,t,i)}})}
395function qo(e){var t=e.playlist,i=e.uri,e=e.id;t.id=e,t.playlistErrors_=0,i&&(t.uri=i),t.attributes=t.attributes||{}}function Vo(o,e){o.uri=e;for(var t=0;t<o.playlists.length;t++)o.playlists[t].uri||(o.playlists[t].uri="placeholder-uri-"+t);var i,u=Fo(o);Ho(o,function(e,t,i,n){var r="placeholder-uri-"+t+"-"+i+"-"+n;if(!e.playlists||!e.playlists.length){if(u&&"AUDIO"===t&&!e.uri)for(var a=0;a<o.playlists.length;a++){var s=o.playlists[a];if(s.attributes&&s.attributes.AUDIO&&s.attributes.AUDIO===i)return}e.playlists=[b({},e)]}e.playlists.forEach(function(e,t){var i=jo(t,r);e.uri?e.resolvedUri=e.resolvedUri||Xu(o.uri,e.uri):(e.uri=0===t?r:i,e.resolvedUri=e.uri),e.id=e.id||i,e.attributes=e.attributes||{},o.playlists[e.id]=e,o.playlists[e.uri]=e})}),function(e){for(var t=e.playlists.length;t--;){var i=e.playlists[t];qo({playlist:i,id:jo(t,i.uri)}),i.resolvedUri=Xu(e.uri,i.uri),e.playlists[i.id]=i,(e.playlists[i.uri]=i).attributes.BANDWIDTH||$u.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(o),Ho(i=o,function(e){e.uri&&(e.resolvedUri=Xu(i.uri,e.uri))})}function Wo(e,t,i){var n=e.slice(),r=t.slice();i=i||0;for(var a,s=[],o=0;o<r.length;o++){var u=n[o+i],l=r[o];u?(a=u.map||a,s.push(function(e,t){if(!e)return t;var i=Ju(e,t);if(e.preloadHints&&!t.preloadHints&&delete i.preloadHints,e.parts&&!t.parts)delete i.parts;else if(e.parts&&t.parts)for(var n=0;n<t.parts.length;n++)e.parts&&e.parts[n]&&(i.parts[n]=Ju(e.parts[n],t.parts[n]));return!e.skipped&&t.skipped&&(i.skipped=!1),e.preload&&!t.preload&&(i.preload=!1),i}
395(u,l))):(a&&!l.map&&(l.map=a),s.push(l))}return s}function zo(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Xu(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Xu(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Xu(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Xu(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(function(e){e.resolvedUri||(e.resolvedUri=Xu(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(function(e){e.resolvedUri||(e.resolvedUri=Xu(t,e.uri))})}function Go(e){var t=e.segments||[],i=e.preloadSegment;if(i&&i.parts&&i.parts.length){if(i.preloadHints)for(var n=0;n<i.preloadHints.length;n++)if("MAP"===i.preloadHints[n].type)return t;i.duration=e.targetDuration,i.preload=!0,t.push(i)}return t}function Xo(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence}function Ko(e,a,t){void 0===t&&(t=Xo);var i=Ju(e,{}),n=i.playlists[a.id];if(!n)return null;if(t(n,a))return null;a.segments=Go(a);var r=Ju(n,a);if(r.preloadSegment&&!a.preloadSegment&&delete r.preloadSegment,n.segments){if(a.skip){a.segments=a.segments||[];for(var s=0;s<a.skip.skippedSegments;s++)a.segments.unshift({skipped:!0})}r.segments=Wo(n.segments,a.segments,a.mediaSequence-n.mediaSequence)}r.segments.forEach(function(e){zo(e,r.resolvedUri)});for(var o=0;o<i.playlists.length;o++)i.playlists[o].id===a.id&&(i.playlists[o]=r);return i.playlists[a.id]=r,i.playlists[a.uri]=r,Ho(e,function(e,t,i,n){if(e.playlists)for(var r=0;r<e.playlists.length;r++)a.id===e.playlists[r].id&&(e.playlists[r]=a)}),i}function Yo(e,t){var i=(n=e.segments[e.segments.length-1])&&n.parts&&n.parts[n.parts.length-1],n=i&&i.duration||n&&n.duration;return t&&n?1e3*n:500*(e.partTargetDuration||e.targetDuration||10)}function Qo(e,t,i,n){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),i.headers&&(e.responseHeaders=i.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),n(t=!t&&!e.aborted&&200!==i.statusCode&&206!==i.statusCode&&0!==i.statusCode?new Error("XHR Failed with a response of: "+(e&&(r||e.responseText))):t,e)}function $o(){function a(e,i){e=tl({timeout:45e3},e);var t=a.beforeRequest||ir.Vhs.xhr.beforeRequest;!t||"function"!=typeof t||(t=t(e))&&(e=t);var n=(!0===ir.Vhs.xhr.original?el:ir.Vhs.xhr)(e,function(e,t){return Qo(n,e,t,i)}),r=n.abort;return n.abort=function(){return n.aborted=!0,r.apply(n,arguments)},n.uri=e.uri,n.requestTime=Date.now(),n}return a.original=!0,a}function Jo(e){var t,i={};return e.byterange&&(i.Range=(t=e.byterange,e=t.offset+t.length-1,"bytes="+t.offset+"-"+e)),i}function Zo(e,t){return e=e.toString(16),"00".substring(0,2-e.length)+e+(t%2?" ":"")}function eu(e){return 32<=e&&e<126?String.fromCharCode(e):"."}function tu(i){var n={};
395return Object.keys(i).forEach(function(e){var t=i[e];ArrayBuffer.isView(t)?n[e]={bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:n[e]=t}),n}function iu(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")}function nu(e){return e.resolvedUri}function ru(e){for(var t=Array.prototype.slice.call(e),i="",n=0;n<t.length/16;n++)i+=t.slice(16*n,16*n+16).map(Zo).join("")+" "+t.slice(16*n,16*n+16).map(eu).join("")+"\n";return i}function au(e){var t=e.playlist,i=e.time,n=void 0===i?void 0:i;if(!(i=e.callback))throw new Error("getProgramTime: callback must be provided");return t&&void 0!==n?(e=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var i,n=0,r=0;r<t.segments.length&&!(e<=(n=(i=t.segments[r]).videoTimingInfo?i.videoTimingInfo.transmuxedPresentationEnd:n+i.duration));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(n<e){if(e>n+.25*a.duration)return null;i=a}return{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:n-i.duration,type:i.videoTimingInfo?"accurate":"estimate"}}(n,t))?"estimate"===e.type?i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:e.estimatedStart}):(t={mediaSeconds:n},(e=function(e,t){if(!t.dateTimeObject)return null;var i=t.videoTimingInfo.transmuxerPrependedSeconds,i=e-(t.videoTimingInfo.transmuxedPresentationStart+i);return new Date(t.dateTimeObject.getTime()+1e3*i)}(n,e.segment))&&(t.programDateTime=e.toISOString()),i(null,t)):i({message:"valid programTime was not found"}):i({message:"getProgramTime: playlist and time must be provided"})}function su(e){var t=e.programTime,i=e.playlist,n=e.retryCount,r=void 0===n?2:n,a=e.seekTo,s=e.pauseAfterSeek,o=void 0===s||s,u=e.tech,l=e.callback;if(!l)throw new Error("seekToProgramTime: callback must be provided");return"undefined"!=typeof t&&i&&a?i.endList||u.hasStarted_?function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0}(i)?(n=function(e,t){var i;try{i=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;if(i<(r=t.segments[0]).dateTimeObject)return null;for(var n=0;n<t.segments.length-1;n++){var r=t.segments[n];if(i<t.segments[n+1].dateTimeObject)break}var a,s=t.segments[t.segments.length-1],e=s.dateTimeObject,a=s.videoTimingInfo?(a=s.videoTimingInfo).transmuxedPresentationEnd-a.transmuxedPresentationStart-a.transmuxerPrependedSeconds:s.duration+.25*s.duration;return new Date(e.getTime()+1e3*a)<i?null:{segment:r=e<i?s:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:Qu.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"}}(t,i))?(s=n.segment,e=function(e,t){var i;try{n=new Date(e),i=new Date(t)}catch(e){}var n=n.getTime();return(i.getTime()-n)/1e3}(s.dateTimeObject,t),"estimate"===n.type?0===r?l({message:t+" is not buffered yet. Try again"}):(a(n.estimatedStart+e),void u.one("seeked",function(){su({programTime:t,playlist:i,retryCount:r-1,seekTo:a,pauseAfterSeek:o,tech:u,callback:l})})):(e=s.start+e,u.one("seeked",function(){return l(null,u.currentTime())}),o&&u.pause(),void a(e))):l({message:t+" was not found in the stream"}):l({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri}):l({message:"player must be playing a live stream to start buffering"}):l({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"})}function ou(e,t){if(4===e.readyState)return t()}function uu(e,t,r){function n(e,t,i,n){return t.abort(),o=!0,r(e,t,i,n)}function i(e,t){if(!o){if(e)return n(e,t,"",s);var i=t.responseText.substring(s&&s.byteLength||0,t.responseText.length);if(s=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];if((t=t.filter(function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})).length<=1)return Os(t[0]);var n=t.reduce(function(e,t,i){return e+(t.byteLength||t.length)}
395,0),r=new Uint8Array(n),a=0;return t.forEach(function(e){e=Os(e),r.set(e,a),a+=e.byteLength}),r}(s,Ms(i,!0)),a=a||Us(s),s.length<10||a&&s.length<a+2)return ou(t,function(){return n(e,t,"",s)});i=mo(s);return"ts"===i&&s.length<188||!i&&s.length<376?ou(t,function(){return n(e,t,"",s)}):n(null,t,i,s)}}var a,s=[],o=!1,u=t({uri:e,beforeSend:function(t){t.overrideMimeType("text/plain; charset=x-user-defined"),t.addEventListener("progress",function(e){return e.total,e.loaded,Qo(t,null,{statusCode:t.status},i)})}},function(e,t){return Qo(u,e,t,i)});return u}function lu(e,t){if(!Xo(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var i=0;i<e.segments.length;i++){var n=e.segments[i],r=t.segments[i];if(n.uri!==r.uri)return!1;if(n.byterange||r.byterange){n=n.byterange,r=r.byterange;if(n&&!r||!n&&r)return!1;if(n.offset!==r.offset||n.length!==r.length)return!1}}return!0}function cu(e,t){var i,n={};for(i in e){var r=e[i].sidx;if(r){var a=us(r);if(!t[a])break;var s=t[a].sidxInfo;s=s,r=r,(Boolean(!s.map&&!r.map)||Boolean(s.map&&r.map&&s.map.byterange.offset===r.map.byterange.offset&&s.map.byterange.length===r.map.byterange.length))&&s.uri===r.uri&&s.byterange.offset===r.byterange.offset&&s.byterange.length===r.byterange.length&&(n[a]=t[a])}}return n}function du(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e}function hu(i){var n=i.transmuxer,e=i.bytes,t=i.audioAppendStart,r=i.gopsToAlignWith,a=i.remux,s=i.onData,o=i.onTrackInfo,u=i.onAudioTimingInfo,l=i.onVideoTimingInfo,c=i.onVideoSegmentTimingInfo,d=i.onAudioSegmentTimingInfo,h=i.onId3,p=i.onCaptions,f=i.onDone,m=i.onEndedTimeline,g=i.onTransmuxerLog,y=i.isEndOfTimeline,v={buffer:[]},_=y;n.onmessage=function(e){var t;n.currentTransmux===i&&("data"===e.data.action&&function(e,t,i){var n=e.data.segment,r=n.type,a=n.initSegment,s=n.captions,o=n.captionStreams,u=n.metadata,l=n.videoFrameDtsTime,n=n.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:u});e=e.data.segment.boxes||{data:e.data.segment.data},a={type:r,data:new Uint8Array(e.data,e.data.byteOffset,e.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};"undefined"!=typeof l&&(a.videoFrameDtsTime=l),"undefined"!=typeof n&&(a.videoFramePtsTime=n),i(a)}(e,v,s),"trackinfo"===e.data.action&&o(e.data.trackInfo),"gopInfo"===e.data.action&&(v.gopInfo=e.data.gopInfo),"audioTimingInfo"===e.data.action&&u(e.data.audioTimingInfo),"videoTimingInfo"===e.data.action&&l(e.data.videoTimingInfo),"videoSegmentTimingInfo"===e.data.action&&c(e.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===e.data.action&&d(e.data.audioSegmentTimingInfo),"id3Frame"===e.data.action&&h([e.data.id3Frame],e.data.id3Frame.dispatchType),"caption"===e.data.action&&p(e.data.caption),"endedtimeline"===e.data.action&&(_=!1,m()),"log"===e.data.action&&g(e.data.log),"transmuxed"===e.data.type&&(_||(n.onmessage=null,e=(t={transmuxedData:v,callback:f}).transmuxedData,t=t.callback,e.buffer=[],t(e),sl(n))))},t&&n.postMessage({action:"setAudioAppendStart",appendStart:t}),Array.isArray(r)&&n.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),"undefined"!=typeof a&&n.postMessage({action:"setRemux",remux:a}),e.byteLength&&(r=e instanceof ArrayBuffer?e:e.buffer,a=e instanceof ArrayBuffer?0:e.byteOffset,n.postMessage({action:"push",data:r,byteOffset:a,byteLength:e.byteLength},[r])),y&&n.postMessage({action:"endTimeline"}),n.postMessage({action:"flush"})}function pu(e,t){e.postMessage({action:t}),sl(e)}function fu(e,t){if(!t.currentTransmux)return t.currentTransmux=e,pu(t,e),0;t.transmuxQueue.push(pu.bind(null,t,e))}function mu(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void hu(e);e.transmuxer.transmuxQueue.push(e)}function gu(i){var n=i.transmuxer,r=i.endAction||i.action,a=i.callback,e=b({},i,{endAction:null,transmuxer:null,callback:null}),t=function e(t){t.data.action===r&&(n.removeEventListener("message",e),t.data.data&&(t.data.data=new Uint8Array(t.data.data,i.byteOffset||0,i.byteLength||t.data.data.byteLength),i.data&&(i.data=t.data.data)),a(t.data))};n.addEventListener("message",t),i.data?(t=i.data instanceof ArrayBuffer,e.byteOffset=t?0:i.data.byteOffset,e.byteLength=i.data.byteLength,t=[t?i.data:i.data.buffer],n.postMessage(e,t)):n.postMessage(e)}function yu(e){e.forEach(function(e){e.abort()})}function vu(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:cl,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:dl,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:ll,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:ll,xhr:t}:null}function _u(a,s,o){return function(e,t){var i=t.response,e=vu(e,t);if(e)return o(e,a);if(16!==i.byteLength)return o({status:t.status,message:"Invalid HLS key at URL: "+t.uri,code:ll,xhr:t},a);for(var i=new DataView(i),n=new Uint32Array([i.getUint32(0),i.getUint32(4),i.getUint32(8),i.getUint32(12)]),r=0;r<s.length;r++)s[r].bytes=n;return o(null,a)}}function bu(i,n){var e=mo(i.map.bytes);if("mp4"!==e){var t=i.map.resolvedUri||i.map.uri;return n({internal:!0,message:"Found unsupported "+(e||"unknown")+" container for initialization segment at URL: "+t,code:ll})}gu({action:"probeMp4Tracks",data:i.map.bytes,transmuxer:i.transmuxer,callback:function(e){var t=e.tracks,e=e.data;return i.map.bytes=e,t.forEach(function(e){i.map.tracks=i.map.tracks||{},i.map.tracks[e.type]||"number"==typeof(i.map.tracks[e.type]=e).id&&e.timescale&&(i.map.timescales=i.map.timescales||{},i.map.timescales[e.id]=e.timescale)}),n(null)}})}function Tu(e){var i=e.segment,n=e.finishProcessingFn,r=e.responseType;
395return function(e,t){e=vu(e,t);if(e)return n(e,i);e="arraybuffer"!==r&&t.responseText?function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),i=0;i<e.length;i++)t[i]=e.charCodeAt(i);return t.buffer}(t.responseText.substring(i.lastReachedChar||0)):t.response;return i.stats={bandwidth:(t=t).bandwidth,bytesReceived:t.bytesReceived||0,roundTripTime:t.roundTripTime||0},i.key?i.encryptedBytes=new Uint8Array(e):i.bytes=new Uint8Array(e),n(null,i)}}function Su(e){var i=e.segment,t=e.bytes,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,u=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,e=i.map&&i.map.tracks||{},f=Boolean(e.audio&&e.video),m=r.bind(null,i,"audio","start"),g=r.bind(null,i,"audio","end"),y=r.bind(null,i,"video","start"),v=r.bind(null,i,"video","end");gu({action:"probeTs",transmuxer:i.transmuxer,data:t,baseStartTime:i.baseStartTime,callback:function(e){i.bytes=t=e.data;e=e.result;e&&(n(i,{hasAudio:e.hasAudio,hasVideo:e.hasVideo,isMuxed:f}),n=null,e.hasAudio&&!f&&m(e.audioStart),e.hasVideo&&y(e.videoStart),y=m=null),mu({bytes:t,transmuxer:i.transmuxer,audioAppendStart:i.audioAppendStart,gopsToAlignWith:i.gopsToAlignWith,remux:f,onData:function(e){e.type="combined"===e.type?"video":e.type,d(i,e)},onTrackInfo:function(e){n&&(f&&(e.isMuxed=!0),n(i,e))},onAudioTimingInfo:function(e){m&&"undefined"!=typeof e.start&&(m(e.start),m=null),g&&"undefined"!=typeof e.end&&g(e.end)},onVideoTimingInfo:function(e){y&&"undefined"!=typeof e.start&&(y(e.start),y=null),v&&"undefined"!=typeof e.end&&v(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){s(e)},onId3:function(e,t){o(i,e,t)},onCaptions:function(e){u(i,[e])},isEndOfTimeline:l,onEndedTimeline:function(){c()},onTransmuxerLog:p,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,i,e))}})}})}function Eu(e){var i=e.segment,n=e.bytes,t=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,u=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,f=new Uint8Array(n);if(0<Fs(f,["moof"]).length){i.isFmp4=!0;var m=i.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),t(i,g);var y=function(e){d(i,{data:f,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&u(i,e),h(null,i,{})};gu({action:"probeMp4StartTime",timescales:i.map.timescales,data:f,transmuxer:i.transmuxer,callback:function(e){var t=e.data,e=e.startTime;n=t.buffer,i.bytes=f=t,g.hasAudio&&!g.isMuxed&&r(i,"audio","start",e),g.hasVideo&&r(i,"video","start",e),m.video&&t.byteLength&&i.transmuxer?gu({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:i.transmuxer,data:f,timescales:i.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,i.bytes=f=e.data,e.logs.forEach(function(e){p(ir.mergeOptions(e,{stream:"mp4CaptionParser"}))}),y(e.captions)}}):y()}})}else if(i.transmuxer){if("undefined"==typeof i.container&&(i.container=mo(f)),"ts"!==i.container&&"aac"!==i.container)return t(i,{hasAudio:!1,hasVideo:!1}),h(null,i,{}),0;Su({segment:i,bytes:n,trackInfoFn:t,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})}else h(null,i,{})}function ku(e,i){var n=e.id,t=e.key,r=e.encryptedBytes,a=e.decryptionWorker,e=function e(t){t.data.source===n&&(a.removeEventListener("message",e),t=t.data.decrypted,i(new Uint8Array(t.bytes,t.byteOffset,t.byteLength)))};a.addEventListener("message",e),e=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),a.postMessage(tu({source:n,encrypted:r,key:e,iv:t.iv}),[r.buffer,e.buffer])}function Cu(e){var i=e.activeXhrs,m=e.decryptionWorker,g=e.trackInfoFn,y=e.timingInfoFn,v=e.videoSegmentTimingInfoFn,_=e.audioSegmentTimingInfoFn,b=e.id3Fn,T=e.captionsFn,S=e.isEndOfTimeline,E=e.endedTimelineFn,k=e.dataFn,C=e.doneFn,w=e.onTransmuxerLog,n=0,r=!1;return function(e,f){if(!r){if(e)return r=!0,yu(i),C(e,f);if((n+=1)===i.length){var t=function(){if(f.encryptedBytes)return t=(e={decryptionWorker:m,segment:f,trackInfoFn:g,timingInfoFn:y,videoSegmentTimingInfoFn:v,audioSegmentTimingInfoFn:_,id3Fn:b,captionsFn:T,isEndOfTimeline:S,endedTimelineFn:E,dataFn:k,doneFn:C,onTransmuxerLog:w}).decryptionWorker,i=e.segment,n=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,u=e.captionsFn,l=e.isEndOfTimeline,c=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,p=e.onTransmuxerLog,void ku({id:i.requestId,key:i.key,encryptedBytes:i.encryptedBytes,decryptionWorker:t},function(e){i.bytes=e,Eu({segment:i,bytes:i.bytes,trackInfoFn:n,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:u,isEndOfTimeline:l,endedTimelineFn:c,dataFn:d,doneFn:h,onTransmuxerLog:p})});var e,t,i,n,r,a,s,o,u,l,c,d,h,p;Eu({segment:f,bytes:f.bytes,trackInfoFn:g,timingInfoFn:y,videoSegmentTimingInfoFn:v,audioSegmentTimingInfoFn:_,id3Fn:b,captionsFn:T,isEndOfTimeline:S,endedTimelineFn:E,dataFn:k,doneFn:C,onTransmuxerLog:w})};if(f.endOfAllRequests=Date.now(),f.map&&f.map.encryptedBytes&&!f.map.bytes)return ku({decryptionWorker:m,id:f.requestId+"-init",encryptedBytes:f.map.encryptedBytes,key:f.map.key},function(e){f.map.bytes=e,bu(f,function(e){return e?(yu(i),C(e,f)):void t()})});t()}}}}function wu(e){var n=e.segment,r=e.progressFn;return e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedT
395imelineFn,e.dataFn,function(e){var t,i=e.target;if(!i.aborted)return n.stats=ir.mergeOptions(n.stats,(i=(t=e).target,(i={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-i.requestTime||0}).bytesReceived=t.loaded,i.bandwidth=Math.floor(i.bytesReceived/i.roundTripTime*8*1e3),i)),!n.stats.firstBytesReceivedAt&&n.stats.bytesReceived&&(n.stats.firstBytesReceivedAt=Date.now()),r(e,n)}}function Iu(e){var t,i,n,r=e.xhr,a=e.xhrOptions,s=e.decryptionWorker,o=e.segment,u=e.abortFn,l=e.progressFn,c=e.trackInfoFn,d=e.timingInfoFn,h=e.videoSegmentTimingInfoFn,p=e.audioSegmentTimingInfoFn,f=e.id3Fn,m=e.captionsFn,g=e.isEndOfTimeline,y=e.endedTimelineFn,v=e.dataFn,_=e.doneFn,e=e.onTransmuxerLog,b=[],_=Cu({activeXhrs:b,decryptionWorker:s,trackInfoFn:c,timingInfoFn:d,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:p,id3Fn:f,captionsFn:m,isEndOfTimeline:g,endedTimelineFn:y,dataFn:v,doneFn:_,onTransmuxerLog:e});o.key&&!o.key.bytes&&(e=[o.key],o.map&&!o.map.bytes&&o.map.key&&o.map.key.resolvedUri===o.key.resolvedUri&&e.push(o.map.key),e=r(ir.mergeOptions(a,{uri:o.key.resolvedUri,responseType:"arraybuffer"}),_u(o,e,_)),b.push(e)),o.map&&!o.map.bytes&&(!o.map.key||o.key&&o.key.resolvedUri===o.map.key.resolvedUri||(t=r(ir.mergeOptions(a,{uri:o.map.key.resolvedUri,responseType:"arraybuffer"}),_u(o,[o.map.key],_)),b.push(t)),t=r(ir.mergeOptions(a,{uri:o.map.resolvedUri,responseType:"arraybuffer",headers:Jo(o.map)}),(i=(t={segment:o,finishProcessingFn:_}
395).segment,n=t.finishProcessingFn,function(e,t){e=vu(e,t);if(e)return n(e,i);e=new Uint8Array(t.response);if(i.map.key)return i.map.encryptedBytes=e,n(null,i);i.map.bytes=e,bu(i,function(e){return e?(e.xhr=t,e.status=t.status,n(e,i)):void n(null,i)})})),b.push(t)),a=ir.mergeOptions(a,{uri:o.part&&o.part.resolvedUri||o.resolvedUri,responseType:"arraybuffer",headers:Jo(o)}),(a=r(a,Tu({segment:o,finishProcessingFn:_,responseType:a.responseType}))).addEventListener("progress",wu({segment:o,progressFn:l,trackInfoFn:c,timingInfoFn:d,videoSegmentTimingInfoFn:h,audioSegmentTimingInfoFn:p,id3Fn:f,captionsFn:m,isEndOfTimeline:g,endedTimelineFn:y,dataFn:v})),b.push(a);var T={};return b.forEach(function(e){var t,i;e.addEventListener("loadend",(t=(e={loadendState:T,abortFn:u}).loadendState,i=e.abortFn,function(e){e.target.aborted&&i&&!t.calledAbortFn&&(i(),t.calledAbortFn=!0)}))}),function(){return yu(b)}}function xu(e,t){return t=t.attributes||{},e&&e.mediaGroups&&e.mediaGroups.AUDIO&&t.AUDIO&&e.mediaGroups.AUDIO[t.AUDIO]}function Au(e){var n={};return e.forEach(function(e){var t=e.mediaType,i=e.type,e=e.details;n[t]=n[t]||[],n[t].push(pr(""+i+e))}),Object.keys(n).forEach(function(e){return 1<n[e].length?(hl("multiple "+e+" codecs found as attributes: "+n[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(n[e]=null)):void(n[e]=n[e][0])}),n}function Pu(e){var t=0;return e.audio&&t++,e.video&&t++,t}function Lu(e,t){var i,n=t.attributes||{},r=Au(function(e){e=e.attributes||{};if(e.CODECS)return fr(e.CODECS)}(t)||[]);return xu(e,t)&&!r.audio&&!function(e,t){if(!xu(e,t))return!0;var i,t=t.attributes||{},n=e.mediaGroups.AUDIO[t.AUDIO];for(i in n)if(!n[i].uri&&!n[i].playlists)return!0;return!1}(e,t)&&(i=Au(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var i,n=e.mediaGroups.AUDIO[t];if(!n)return null;for(i in n){var r=n[i];if(r.default&&r.playlists)return fr(r.playlists[0].attributes.CODECS)}return null}(e,n.AUDIO)||[])).audio&&(r.audio=i.audio),r}function Du(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}}function Ou(e,t){return(e=e&&_.getComputedStyle(e))?e[t]:""}function Ru(e,n){var r=e.slice();e.sort(function(e,t){var i=n(e,t);return 0===i?r.indexOf(e)-r.indexOf(t):i})}function Mu(e,t){var i,n;return(i=(i=e.attributes.BANDWIDTH?e.attributes.BANDWIDTH:i)||_.Number.MAX_VALUE)-(n=(n=t.attributes.BANDWIDTH?t.attributes.BANDWIDTH:n)||_.Number.MAX_VALUE)}function Nu(e,t,i,n,r,a){if(e){var s={bandwidth:t,width:i,height:n,limitRenditionByPlayerDimensions:r},o=e.playlists;Qu.isAudioOnly(e)&&(o=a.getAudioTrackPlaylists_(),s.audioOnly=!0);var u=o.map(function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height,n=e.attributes&&e.attributes.BANDWIDTH;return{bandwidth:n||_.Number.MAX_VALUE,width:t,height:i,playlist:e}});Ru(u,function(e,t){return e.bandwidth-t.bandwidth});var l=(u=u.filter(function(e){return!Qu.isIncompatible(e.playlist)})).filter(function(e){return Qu.isEnabled(e.playlist)}),e=(l=!l.length?u.filter(function(e){return!Qu.isDisabled(e.playlist)}):l).filter(function(e){return e.bandwidth*rl.BANDWIDTH_VARIANCE<t}),c=e[e.length-1],o=e.filter(function(e){return e.bandwidth===c.bandwidth})[0];if(!1===r){var d=o||l[0]||u[0];if(d&&d.playlist){r=o?"bandwidthBestRep":"sortedPlaylistReps";return l[0]&&(r="enabledPlaylistReps"),pl("choosing "+Du(d)+" using "+r+" with options",s),d.playlist}return pl("could not choose a playlist with options",s),null}d=e.filter(function(e){return e.width&&e.height});Ru(d,function(e,t){return e.width-t.width});var h,p,f,e=d.filter(function(e){return e.width===i&&e.height===n}),c=e[e.length-1],e=e.filter(function(e){return e.bandwidth===c.bandwidth})[0];e||(p=(h=d.filter(function(e){return e.width>i||e.height>n})).filter(function(e){return e.width===h[0].width&&e.height===h[0].height}),c=p[p.length-1],p=p.filter(function(e){return e.bandwidth===c.bandwidth})[0]),a.experimentalLeastPixelDiffSelector&&(m=d.map(function(e){return e.pixelDiff=Math.abs(e.width-i)+Math.abs(e.height-n),e}),Ru(m,function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff}),f=m[0]);var m=f||p||e||o||l[0]||u[0];if(m&&m.playlist){u="sortedPlaylistReps";return f?u="leastPixelDiffRep":p?u="resolutionPlusOneRep":e?u="resolutionBestRep":o?u="bandwidthBestRep":l[0]&&(u="enabledPlaylistReps"),pl("choosing "+Du(m)+" using "+u+" with options",s),m.playlist}return pl("could not choose a playlist with options",s),null}}function Uu(e){var t=e.inbandTextTracks,i=e.metadataArray,r=e.timestampOffset,n=e.videoDuration;if(i){var a=_.WebKitDataCue||_.VTTCue,s=t.metadataTrack_;if(s&&(i.forEach(function(e){var n=e.cueTime+r;
395!("number"!=typeof n||_.isNaN(n)||n<0)&&n<1/0&&e.frames.forEach(function(e){var t,i=new a(n,n,e.value||e.url||e.data||"");i.frame=e,i.value=e,t=i,Object.defineProperties(t.frame,{id:{get:function(){return ir.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),t.value.key}},value:{get:function(){return ir.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),t.value.data}},privateData:{get:function(){return ir.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),t.value.data}}}),s.addCue(i)})}),s.cues&&s.cues.length)){for(var o=s.cues,u=[],l=0;l<o.length;l++)o[l]&&u.push(o[l]);var c=u.reduce(function(e,t){var i=e[t.startTime]||[];return i.push(t),e[t.startTime]=i,e},{}),d=Object.keys(c).sort(function(e,t){return Number(e)-Number(t)});d.forEach(function(e,t){var e=c[e],i=Number(d[t+1])||n;e.forEach(function(e){e.endTime=i})})}}}function Bu(e,t,i){var n,r;if(i&&i.cues)for(n=i.cues.length;n--;)(r=i.cues[n]).startTime>=e&&r.endTime<=t&&i.removeCue(r)}function Fu(e){return"number"==typeof e&&isFinite(e)}function ju(e){var t=e.startOfSegment,i=e.duration,n=e.segment,r=e.part,a=e.playlist,s=a.mediaSequence,o=a.id,u=a.segments,l=e.mediaIndex,c=e.partIndex,d=e.timeline,h=(void 0===u?[]:u).length-1,p="mediaIndex/partIndex increment";return e.getMediaInfoForTime?p="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),a="number"==typeof c,u=e.segment.uri?"segment":"pre-segment",e=a?wo({preloadSegment:n})-1:0,u+" ["+(s+l)+"/"+(s+h)+"]"+(a?" part ["+c+"/"+e+"]":"")+" segment start/end ["+n.start+" => "+n.end+"]"+(a?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+i+"] timeline ["+d+"] selected by ["+p+"] playlist ["+o+"]"}function Hu(e){return e+"TimingInfo"}function qu(e){var t=e.timelineChangeController,i=e.currentTimeline,n=e.segmentTimeline,r=e.loaderType,e=e.audioDisabled;if(i!==n){if("audio"===r){i=t.lastTimelineChange({type:"main"});return!i||i.to!==n}if("main"===r&&e){t=t.pendingTimelineChange({type:"audio"});return t&&t.to===n?!1:!0}}}function Vu(e){var t=e.segmentDuration,e=e.maxDuration;return!!t&&Math.round(t)>e+Ku}function Wu(e,t){if("hls"!==t)return null;var i=function(e,t){e=e&&"number"==typeof e.start&&"number"==typeof e.end?e.end-e.start:0,t=t&&"number"==typeof t.start&&"number"==typeof t.end?t.end-t.start:0;return Math.max(e,t)}(e.audioTimingInfo,e.videoTimingInfo);if(!i)return null;var n=e.playlist.targetDuration,r=Vu({segmentDuration:i,maxDuration:2*n}),t=Vu({segmentDuration:i,maxDuration:n}),n="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+i+" when the reported duration is "+e.duration+" and the target duration is "+n+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return r||t?{severity:r?"warn":"info",message:n}:null}var zu=po,Gu=9e4,Xu=nr,Ku=1/30,Yu=ir.createTimeRange,Qu={liveEdgeDelay:Io,duration:Ao,seekable:function(e,t,i){var n=t||0,i=Lo(e,t,!0,i);return null===i?Yu():Yu(n,i)},getMediaInfoForTime:function(e){for(var t=e.playlist,i=e.currentTime,n=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,s=e.experimentalExactManifestTimings,o=i-a,u=ko(t),l=0,c=0;c<u.length;c++){var d=u[c];if(n===d.segmentIndex&&("number"!=typeof r||"number"!=typeof d.partIndex||r===d.partIndex)){l=c;break}}if(o<0){if(0<l)for(var h=l-1;0<=h;h--){var p=u[h];if(o+=p.duration,s){if(o<0)continue}else if(o+Ku<=0)continue;return{partIndex:p.partIndex,segmentIndex:p.segmentIndex,startTime:a-Po({defaultDuration:t.targetDuration,durationList:u,startIndex:l,endIndex:h})}}return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:i}}if(l<0){for(var f=l;f<0;f++)if((o-=t.targetDuration)<0)return{partIndex:u[0]&&u[0].partIndex||null,segmentIndex:u[0]&&u[0].segmentIndex||0,startTime:i};l=0}for(var m=l;m<u.length;m++){var g=u[m];
395if(o-=g.duration,s){if(0<o)continue}else if(0<=o-Ku)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+Po({defaultDuration:t.targetDuration,durationList:u,startIndex:l,endIndex:m})}}return{segmentIndex:u[u.length-1].segmentIndex,partIndex:u[u.length-1].partIndex,startTime:i}},isEnabled:Ro,isDisabled:function(e){return e.disabled},isBlacklisted:Do,isIncompatible:Oo,playlistEnd:Lo,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:Mo,estimateSegmentRequestTime:function(e,t,i,n){return Mo("BANDWIDTH",i)?(e*i.attributes.BANDWIDTH-8*(n=void 0===n?0:n))/t:NaN},isLowestEnabledRendition:No,isAudioOnly:Fo,playlistMatch:Uo},$u=ir.log,Ju=ir.mergeOptions,K=ir.EventTarget,Zu=function(a){function e(e,t,i){var n;if(void 0===i&&(i={}),n=a.call(this)||this,!e)throw new Error("A non-empty playlist URL or object is required");n.logger_=yo("PlaylistLoader");var r=i.withCredentials,r=void 0!==r&&r,i=i.handleManifestRedirects,i=void 0!==i&&i;n.src=e,n.vhs_=t,n.withCredentials=r,n.handleManifestRedirects=i;t=t.options_;return n.customTagParsers=t&&t.customTagParsers||[],n.customTagMappers=t&&t.customTagMappers||[],n.experimentalLLHLS=t&&t.experimentalLLHLS||!1,n.state="HAVE_NOTHING",n.handleMediaupdatetimeout_=n.handleMediaupdatetimeout_.bind(yt(n)),n.on("mediaupdatetimeout",n.handleMediaupdatetimeout_),n}vt(e,a);var t=e.prototype;return t.handleMediaupdatetimeout_=function(){var e,t,i=this;"HAVE_METADATA"===this.state&&(e=this.media(),t=Xu(this.master.uri,e.uri),this.experimentalLLHLS&&(t=function(i,e){if(e.endList)return i;var t,n,r,a=[];return e.serverControl&&e.serverControl.canBlockReload&&(r=e.preloadSegment,t=e.mediaSequence+e.segments.length,r&&(n=r.parts||[],-1<(r=wo(e)-1)&&r!=n.length-1&&a.push("_HLS_part="+r),(-1<r||n.length)&&t--),a.unshift("_HLS_msn="+t)),e.serverControl&&e.serverControl.canSkipUntil&&a.unshift("_HLS_skip="+(e.serverControl.canSkipDateranges?"v2":"YES")),a.forEach(function(e,t){i+=(0===t?"?":"&")+e}),i}(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials},function(e,t){if(i.request)return e?i.playlistRequestError(i.request,i.media(),"HAVE_METADATA"):void i.haveMetadata({playlistString:i.request.responseText,url:i.media().uri,id:i.media().id})}))},t.playlistRequestError=function(e,t,i){var n=t.uri,t=t.id;this.request=null,i&&(this.state=i),this.error={playlist:this.master.playlists[t],status:e.status,message:"HLS playlist request error at URL: "+n+".",responseText:e.responseText,code:500<=e.status?4:2},this.trigger("error")},t.parseManifest_=function(e){var t=this,i=e.url;return function(e){var t=e.onwarn,i=e.oninfo,n=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,r=e.customTagMappers,r=void 0===r?[]:r,e=e.experimentalLLHLS,s=new Er;t&&s.on("warn",t),i&&s.on("info",i),a.forEach(function(e){return s.addParser(e)}),r.forEach(function(e){return s.addTagMapper(e)}),s.push(n),s.end();var o=s.manifest;e||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){o.hasOwnProperty(e)&&delete o[e]}),o.segments&&o.segments.forEach(function(t){["parts","preloadHints"].forEach(function(e){t.hasOwnProperty(e)&&delete t[e]})})),o.targetDuration||(u=10,o.segments&&o.segments.length&&(u=o.segments.reduce(function(e,t){return Math.max(e,t.duration)},0)),t&&t("manifest has no targetDuration defaulting to "+u),o.targetDuration=u);var u=Co(o);return u.length&&!o.partTargetDuration&&(u=u.reduce(function(e,t){return Math.max(e,t.duration)},0),t&&(t("manifest has no partTargetDuration defaulting to "+u),$u.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),o.partTargetDuration=u),o}({onwarn:function(e){e=e.message;return t.logger_("m3u8-parser warn for "+i+": "+e)},oninfo:function(e){e=e.message;return t.logger_("m3u8-parser info for "+i+": "+e)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},t.haveMetadata=function(e){var t=e.playlistString,i=e.playlistOb
395ject,n=e.url,e=e.id;this.request=null,this.state="HAVE_METADATA";t=i||this.parseManifest_({url:n,manifestString:t});t.lastRequest=Date.now(),qo({playlist:t,uri:n,id:e});n=Ko(this.master,t);this.targetDuration=t.partTargetDuration||t.targetDuration,n?(this.master=n,this.media_=this.master.playlists[e]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(Yo(this.media(),!!n)),this.trigger("loadedplaylist")},t.dispose=function(){this.trigger("dispose"),this.stopRequest(),_.clearTimeout(this.mediaUpdateTimeout),_.clearTimeout(this.finalRenditionTimeout),this.off()},t.stopRequest=function(){var e;this.request&&(e=this.request,this.request=null,e.onreadystatechange=null,e.abort())},t.media=function(i,e){var n=this;if(!i)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof i){if(!this.master.playlists[i])throw new Error("Unknown playlist URI: "+i);i=this.master.playlists[i]}if(_.clearTimeout(this.finalRenditionTimeout),e){var t=(i.partTargetDuration||i.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=_.setTimeout(this.media.bind(this,i,!1),t)}else{var r=this.state,e=!this.media_||i.id!==this.media_.id,t=this.master.playlists[i.id];if(t&&t.endList||i.endList&&i.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=i,void(e&&(this.trigger("mediachanging"),"HAVE_MASTER"===r?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(Yo(i,!0)),e){if(this.state="SWITCHING_MEDIA",this.request){if(i.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.vhs_.xhr({uri:i.resolvedUri,withCredentials:this.withCredentials},function(e,t){if(n.request){if(i.lastRequest=Date.now(),i.resolvedUri=go(n.handleManifestRedirects,i.resolvedUri,t),e)return n.playlistRequestError(n.request,i,r);n.haveMetadata({playlistString:t.responseText,url:i.uri,id:i.id}),"HAVE_MASTER"===r?n.trigger("loadedmetadata"):n.trigger("mediachange")}})}}},t.pause=function(){this.mediaUpdateTimeout&&(_.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},t.load=function(e){var t=this;this.mediaUpdateTimeout&&(_.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var i=this.media();e?(e=i?(i.partTargetDuration||i.targetDuration)/2*1e3:5e3,this.mediaUpdateTimeout=_.setTimeout(function(){t.mediaUpdateTimeout=null,t.load()},e)):this.started?i&&!i.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},t.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(_.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=_.setTimeout(function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)},e))},t.start=function(){var i=this;
395if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=_.location.href),this.src.resolvedUri=this.src.uri,void setTimeout(function(){i.setupInitialPlaylist(i.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},function(e,t){if(i.request){if(i.request=null,e)return i.error={status:t.status,message:"HLS playlist request error at URL: "+i.src+".",responseText:t.responseText,code:2},"HAVE_NOTHING"===i.state&&(i.started=!1),i.trigger("error");i.src=go(i.handleManifestRedirects,i.src,t);t=i.parseManifest_({manifestString:t.responseText,url:i.src});i.setupInitialPlaylist(t)}})},t.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},t.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,Vo(this.master,this.srcUri()),e.playlists.forEach(function(t){t.segments=Go(t),t.segments.forEach(function(e){zo(e,t.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t,i,n,r=this.srcUri()||_.location.href;this.master=(i=jo(0,t=r),(n={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:_.location.href,resolvedUri:_.location.href,playlists:[{uri:t,id:i,resolvedUri:t,attributes:{}}]}).playlists[i]=n.playlists[0],n.playlists[t]=n.playlists[0],n),this.haveMetadata({playlistObject:e,url:r,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},e}(K),el=ir.xhr,tl=ir.mergeOptions,ai=Object.freeze({__proto__:null,createTransferableMessage:tu,initSegmentId:iu,segmentKeyId:nu,hexDump:ru,tagDump:function(e){e=e.bytes;return ru(e)},textRanges:function(e){for(var t,i,n="",r=0;r<e.length;r++)n+=(i=r,(t=e).start(i)+"-"+t.end(i)+" ");return n}}),Kt=ir.EventTarget,il=ir.mergeOptions,nl=function(a){function e(e,t,i,n){var r;void 0===i&&(i={}),(r=a.call(this)||this).masterPlaylistLoader_=n||yt(r),n||(r.isMaster_=!0);n=i.withCredentials,n=void 0!==n&&n,i=i.handleManifestRedirects,i=void 0!==i&&i;if(r.vhs_=t,r.withCredentials=n,r.handleManifestRedirects=i,!e)throw new Error("A non-empty playlist URL or object is required");return r.on("minimumUpdatePeriod",function(){r.refreshXml_()}),r.on("mediaupdatetimeout",function(){r.refreshMedia_(r.media().id)}),r.state="HAVE_NOTHING",r.loadedPlaylists_={},r.logger_=yo("DashPlaylistLoader"),r.isMaster_?(r.masterPlaylistLoader_.srcUrl=e,r.masterPlaylistLoader_.sidxMapping_={}):r.childPlaylist_=e,r}vt(e,a);var t=e.prototype;return t.requestErrored_=function(e,t,i){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,i&&(this.state=i),this.trigger("error"),!0):void 0)},t.addSidxSegments_=function(a,n,r){var s,o,u=this,l=a.sidx&&us(a.sidx);a.sidx&&l&&!this.masterPlaylistLoader_.sidxMapping_[l]?(s=go(this.handleManifestRedirects,a.sidx.resolvedUri),o=function(e,t){if(!u.requestErrored_(e,t,n)){var i,e=u.masterPlaylistLoader_.sidxMapping_;try{i=io(Os(t.response).subarray(8))}catch(e){return void u.requestErrored_(e,t,n)}return e[l]={sidxInfo:a.sidx,sidx:i},os(a,i,a.sidx.resolvedUri),r(!0)}},this.request=uu(s,this.vhs_.xhr,function(e,t,i,n){if(e)return o(e,t);if(!i||"mp4"!==i)return o({status:t.status,message:"Unsupported "+(i||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:a,internal:!0,blacklistDuration:1/0,code:2},t);var r=a.sidx.byterange,i=r.offset,r=r.length;if(n.length>=r+i)return o(e,{response:n.subarray(i,i+r),status:t.status,uri:t.uri});u.request=u.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:Jo({byterange:a.sidx.byterange})},o)})):this.mediaRequest_=_.setTimeout(function(){return r(!1)},0)},t.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},_.clearTimeout(this.minimumUpdatePeriodTimeout_),_.clearTimeout(this.mediaRequest_),_.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},t.hasPendingRequest=function(){return this.request||this.mediaRequest_},t.stopRequest=function(){var e;this.request&&(e=this.request,this.request=null,e.onreadystatechange=null,e.abort())},t.media=function(t){var i=this;if(!t)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof t){if(!this.masterPlaylistLoader_.master.playlists[t])throw new Error("Unknown playlist URI: "+t);t=this.masterPlaylistLoader_.master.playlists[t]}var e=!this.media_||t.id!==this.media_.id;if(e&&this.loadedPlaylists_[t.id]&&this.loadedPlaylists_[t.id].endList)return this.state="HAVE_METADATA",this.media_=t,void(e&&(this.trigger("mediachanging"),this.trigger("mediachange")));e&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(t,n,function(e){i.haveMetadata({startingState:n,playlist:t})}))},t.haveMetadata=function(e){var t=e.startingState,e=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[e.id]=e,this.mediaRequest_=null,this.refreshMedia_(e.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},t.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),_.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(_.clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},t.load=function(e){var t=this;_.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var i=this.media();e?(e=i?i.targetDuration/2*1e3:5e3,this.mediaUpdateTimeout=_.setTimeout(function(){return t.load()},e)):this.started?i&&!i.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},t.start=function(){var i=this;this.started=!0,this.isMaster_?this.requestMaster_(function(e,t){i.haveMaster_(),i.hasPendingRequest()||i.media_||i.media(i.masterPlaylistLoader_.master.playlists[0])}):this.mediaRequest_=_.setTimeout(function(){return i.haveMaster_()},0)},t.requestMaster_=function(n){var r=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},function(e,t){if(!r.requestErrored_(e,t)){var i=t.responseText!==r.masterPlaylistLoader_.masterXml_;return r.masterPlaylistLoader_.masterXml_=t.responseText,t.responseHeaders&&t.responseHeaders.date?r.masterLoaded_=Date.parse(t.responseHeaders.date):r.masterLoaded_=Date.now(),r.masterPlaylistLoader_.srcUrl=go(r.handleManifestRedirects,r.masterPlaylistLoader_.srcUrl,t),i?(r.handleMaster_(),void r.syncClientServerClock_(function(){return n(t,i)})):n(t,i)}"HAVE_NOTHING"===r.state&&(r.started=!1)})},t.syncClientServerClock_=function(i){var n=this,r=Ds(this.masterPlaylistLoader_.masterXml_);return null===r?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),i()):"DIRECT"===r.method?(this.masterPlaylistLoader_.clientOffset_=r.value-Date.now(),i()):void(this.request=this.vhs_.xhr({uri:Xu(this.masterPlaylistLoader_.srcUrl,r.value),method:r.method,withCredentials:this.withCredentials},function(e,t){if(n.request){if(e)return n.masterPlaylistLoader_.clientOffset_=n.masterLoaded_-Date.now(),i();t="HEAD"===r.method?t.responseHeaders&&t.responseHeaders.date?Date.parse(t.responseHeaders.date):n.masterLoaded_:Date.parse(t.responseText);n.masterPlaylistLoader_.clientOffset_=t-Date.now(),i()}}))},t.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},t.handleMaster_=function(){this.mediaRequest_=null;var e,t,t=(n={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_},e=n.masterXml,i=n.srcUrl,t=n.clientOffset,n=n.sidxMapping,n=Ls(e,{manifestUri:i,clientOffset:t,sidxMapping:n}),Vo(n,i),n),i=this.masterPlaylistLoader_.master;i&&(t=function(e,t,i){for(var a=!0,s=il(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),n=0;n<t.playlists.length;n++){var r,o=t.playlists[n];
395o.sidx&&(r=us(o.sidx),i&&i[r]&&i[r].sidx&&os(o,i[r].sidx,o.sidx.resolvedUri));o=Ko(s,o,lu);o&&(s=o,a=!1)}return Ho(t,function(e,t,i,n){var r;e.playlists&&e.playlists.length&&(r=e.playlists[0].id,(e=Ko(s,e.playlists[0],lu))&&((s=e).mediaGroups[t][i][n].playlists[0]=s.playlists[r],a=!1))}),(a=t.minimumUpdatePeriod===e.minimumUpdatePeriod&&a)?null:s}(i,t,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=t||i;var n=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return n&&n!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=n),(!i||t&&t.minimumUpdatePeriod!==i.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(t)},t.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(_.clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;0===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},t.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=_.setTimeout(function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)},t.refreshXml_=function(){var i=this;this.requestMaster_(function(e,t){var r,a;t&&(i.media_&&(i.media_=i.masterPlaylistLoader_.master.playlists[i.media_.id]),i.masterPlaylistLoader_.sidxMapping_=(t=i.masterPlaylistLoader_.master,r=i.masterPlaylistLoader_.sidxMapping_,a=cu(t.playlists,r),Ho(t,function(e,t,i,n){e.playlists&&e.playlists.length&&(e=e.playlists,a=il(a,cu(e,r)))}),a),i.addSidxSegments_(i.media(),i.state,function(e){i.refreshMedia_(i.media().id)}))})},t.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var i=this.masterPlaylistLoader_.master.playlists,n=!this.media_||this.media_!==i[e];n?this.media_=i[e]:this.trigger("playlistunchanged"),this.mediaUpdateTimeout||function e(){t.media().endList||(t.mediaUpdateTimeout=_.setTimeout(function(){t.trigger("mediaupdatetimeout"),e()},Yo(t.media(),Boolean(n))))}(),this.trigger("loadedplaylist")},e}(Kt),rl={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},si=function(n){return function(){var e=function(t){try{return URL.createObjectURL(new Blob([t],{type:"application/javascript"}))}catch(e){var i=new BlobBuilder;return i.append(t),URL.createObjectURL(i.getBlob())}}(n),t=du(new Worker(e));t.objURL=e;var i=t.terminate;return t.on=t.addEventListener,t.off=t.removeEventListener,t.terminate=function(){return URL.revokeObjectURL(e),i.call(this)},t}},sr=function(e){return"var browserWorkerPolyFill = "+du.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},K=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},al=si(sr(K(function(){var e=function(){this.init=function(){var a={};this.on=function(e,t){a[e]||(a[e]=[]),a[e]=a[e].concat(t)},this.off=function(e,t){return!!a[e]&&(t=a[e].indexOf(t),a[e]=a[e].slice(),a[e].splice(t,1),-1<t)},this.trigger=function(e){var t,i,n,r=a[e];if(r)if(2===arguments.length)for(i=r.length,t=0;t<i;++t)r[t].call(this,arguments[1]);else{for(n=[],t=arguments.length,t=1;t<arguments.length;++t)n.push(arguments[t]);for(i=r.length,t=0;t<i;++t)r[t].apply(this,n)}},this.dispose=function(){a={}}}};e.prototype.pipe=function(t){return this.on("data",function(e){t.push(e)}),this.on("done",function(e){t.flush(e)}),this.on("partialdone",function(e){t.partialFlush(e)}),this.on("endedtimeline",function(e){t.endTimeline(e)}),this.on("reset",function(e){t.reset(e)}),t},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var u,t,i,n,r,a,s,o,l,c,d,h,p,f,m,g,y,v,_,b,T,S,E,k,C,w,I,x,A,P,L,D,O,R,M,N,U,B,F,j=e,H=Math.pow(2,32)-1;!function(){if(T={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(var e in T)T.hasOwnProperty(e)&&(T[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);S=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),k=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),E=new Uint8Array([0,0,0,1]),C=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),w=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),I={video:C,audio:w},P=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),A=new Uint8Array([0,0,0,0,0,0,0,0]),L=new Uint8Array([0,0,0,0,0,0,0,0]),D=L,O=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=L,x=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),u=function(e){for(var t,i=[],n=0,r=1;r<arguments.length;r++)i.push(arguments[r]);for(r=i.length;r--;)n+=i[r].byteLength;for(t=new Uint8Array(n+8),new DataView(t.buffer,t.byteOffset,t.byteLength).setUint32(0,t.byteLength),t.set(e,4),r=0,n=8;r<i.length;r++)t.set(i[r],n),n+=i[r].byteLength;return t},t=function(){return u(T.dinf,u(T.dref,P))},i=function(e){return u(T.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},f=function(e){return u(T.hdlr,I[e])},p=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),u(T.mdhd,t)},h=function(e){return u(T.mdia,p(e),f(e.type),a(e))},r=function(e){return u(T.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},a=function(e){return u(T.minf,"video"===e.type?u(T.vmhd,x):u(T.smhd,A),t(),g(e))},qe=function(e,t){for(var i=[],n=t.length;n--;)i[n]=v(t[n]);return u.apply(null,[T.moof,r(e)].concat(i))},s=function(e){for(var t=e.length,i=[];t--;)i[t]=c(e[t]);
vendor: 7,906 bytes, line 395
395return u.apply(null,[T.moov,l(4294967295)].concat(i).concat(o(e)))},o=function(e){for(var t=e.length,i=[];t--;)i[t]=_(e[t]);return u.apply(null,[T.mvex].concat(i))},l=function(e){e=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return u(T.mvhd,e)},m=function(e){for(var t,i=e.samples||[],n=new Uint8Array(4+i.length),r=0;r<i.length;r++)t=i[r].flags,n[r+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return u(T.sdtp,n)},g=function(e){return u(T.stbl,y(e),u(T.stts,R),u(T.stsc,D),u(T.stsz,O),u(T.stco,L))},y=function(e){return u(T.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),("video"===e.type?M:N)(e))},M=function(e){for(var t,i,n=e.sps||[],r=e.pps||[],a=[],s=[],o=0;o<n.length;o++)a.push((65280&n[o].byteLength)>>>8),a.push(255&n[o].byteLength),a=a.concat(Array.prototype.slice.call(n[o]));for(o=0;o<r.length;o++)s.push((65280&r[o].byteLength)>>>8),s.push(255&r[o].byteLength),s=s.concat(Array.prototype.slice.call(r[o]));return t=[T.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),u(T.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([n.length],a,[r.length],s))),u(T.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio&&(i=e.sarRatio[0],e=e.sarRatio[1],t.push(u(T.pasp,new Uint8Array([(4278190080&i)>>24,(16711680&i)>>16,(65280&i)>>8,255&i,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e])))),u.apply(null,t)},N=function(e){return u(T.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))},d=function(e){e=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return u(T.tkhd,e)},v=function(e){var t,i=u(T.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),n=Math.floor(e.baseMediaDecodeTime/(1+H)),r=Math.floor(e.baseMediaDecodeTime%(1+H)),n=u(T.tfdt,new Uint8Array([1,0,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n,r>>>24&255,r>>>16&255,r>>>8&255,255&r]));return"audio"===e.type?(t=b(e,92),u(T.traf,i,n,t)):(r=m(e),t=b(e,r.length+92),u(T.traf,i,n,t,r))},c=function(e){return e.duration=e.duration||4294967295,u(T.trak,d(e),h(e))},_=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),u(T.trex,t)},U=function(e,t){var i=0,n=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(i=1),void 0!==e[0].size&&(n=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,i|n|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},B=function(e,t){var i,n,r,a,s=e.samples||[];for(t+=20+16*s.length,t=U(s,t),(n=new Uint8Array(t.length+16*s.length)).set(t),i=t.length,a=0;a<s.length;a++)r=s[a],n[i++]=(4278190080&r.duration)>>>24,n[i++]=(16711680&r.duration)>>>16,n[i++]=(65280&r.duration)>>>8,n[i++]=255&r.duration,n[i++]=(4278190080&r.size)>>>24,n[i++]=(16711680&r.size)>>>16,n[i++]=(65280&r.size)>>>8,n[i++]=255&r.size,n[i++]=r.flags.isLeading<<2|r.flags.dependsOn,n[i++]=r.flags.isDependedOn<<6|r.flags.hasRedundancy<<4|r.flags.paddingValue<<1|r.flags.isNonSyncSample,n[i++]=61440&r.flags.degradationPriority,n[i++]=15&r.flags.degradationPriority,n[i++]=(4278190080&r.compositionTimeOffset)>>>24,n[i++]=(16711680&r.compositionTimeOffset)>>>16,n[i++]=(65280&r.compositionTimeOffset)>>>8,n[i++]=255&r.compositionTimeOffset;return u(T.trun,n)},F=function(e,t){var i,n,r,a,s=e.samples||[];for(t+=20+8*s.length,t=U(s,t),(i=new Uint8Array(t.length+8*s.length)).set(t),n=t.length,a=0;a<s.length;a++)r=s[a],i[n++]=(4278190080&r.duration)>>>24,i[n++]=(16711680&r.duration)>>>16,i[n++]=(65280&r.duration)>>>8,i[n++]=255&r.duration,i[n++]=(4278190080&r.size)>>>24,i[n++]=(16711680&r.size)>>>16,i[n++]=(65280&r.size)>>>8,i[n++]=255&r.size;return u(T.trun,i)},b=function(e,t){return("audio"===e.type?F:B)(e,t)};n=function(){return u(T.ftyp,S,E,S,k)};function q(e,t){var i={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return i.dataOffset=t,i.compositionTimeOffset=e.pts-e.dts,i.duration=e.duration,i.size=4*e.length,i.size+=e.byteLength,e.keyFrame&&(i.flags.dependsOn=2,i.flags.isNonSyncSample=0),i}function V(e){for(var t=[];e--;)t.push(0);return t}function W(){var e,i;return z||(e={96e3:[ee,[227,64],V(154),[56]],88200:[ee,[231],V(170),[56]],64e3:[ee,[248,192],V(240),[56]],48e3:[ee,[255,192],V(268),[55,148,128],V(54),[112]],44100:[ee,[255,192],V(268),[55,163,128],V(84),[112]],32e3:[ee,[255,192],V(268),[55,234],V(226),[112]],24e3:[ee,[255,192],V(268),[55,255,128],V(268),[111,112],V(126),[224]],16e3:[ee,[255,192],V(268),[55,255,128],V(268),[111,255],V(269),[223,108],V(195),[1,192]],12e3:[te,V(268),[3,127,248],V(268),[6,255,240],V(268),[13,255,224],V(268),[27,253,128],V(259),[56]],11025:[te,V(268),[3,127,248],V(268),[6,255,240],V(268),[13,255,224],V(268),[27,255,192],V(268),[55,175,128],V(108),[112]],8e3:[te,V(268),[3,121,16],V(47),[7]]},i=e,z=Object.keys(i).reduce(function(e,t){return e[t]=new Uint8Array(i[t].reduce(function(e,t){return e.concat(t)},[])),e},{})),z}var z,G=function(e){return u(T.mdat,e)},X=qe,K=function(e){var t=n(),i=s(e),e=new Uint8Array(t.byteLength+i.byteLength);return e.set(t),e.set(i,t.byteLength),e},Y=function(e){var t,i,n=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,t=n.byteLength=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(i=e[t]).nalUnitType?(n.length&&(n.duration=i.dts-n.dts,r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n)),(n=[i]).byteLength=i.data.byteLength,n.pts=i.pts,n.dts=i.dts):("slice_layer_without_partitioning_rbsp_idr"===i.nalUnitType&&(n.keyFrame=!0),n.duration=i.dts-n.dts,n.byteLength+=i.data.byteLength,n.push(i));return r.length&&(!n.duration||n.duration<=0)&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.length,r.duration+=n.duration,r.push(n),r},Q=function(e){var t,i,n=[],r=[];for(n.byteLength=0,n.nalCount=0,n.duration=0,n.pts=e[0].pts,n.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(i=e[t]).keyFrame?(n.length&&(r.push(n),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration),(n=[i]).nalCount=i.length,n.byteLength=i.byteLength,n.pts=i.pts,n.dts=i.dts,n.duration=i.duration):(n.duration+=i.duration,n.nalCount+=i.length,n.byteLength+=i.byteLength,n.push(i));return r.length&&n.duration<=0&&(n.duration=r[r.length-1].duration),r.byteLength+=n.byteLength,r.nalCount+=n.nalCount,r.duration+=n.duration,r.push(n),r},$=function(e){var t;return!e[0][0].keyFrame&&1<e.length&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},J=function(e,t){for(var i,n,r,a=t||0,s=[],o=0;o<e.length;o++)for(n=e[o],i=0;i<n.length;i++)r=n[i],a+=(r=q(r,a)).size,s.push(r);return s},Z=function(e){for(var t,i,n,r,a,s=0,o=e.byteLength,u=e.nalCount,l=ne
395w Uint8Array(o+4*u),c=new DataView(l.buffer),d=0;d<e.length;d++)for(n=e[d],t=0;t<n.length;t++)for(r=n[t],i=0;i<r.length;i++)a=r[i],c.setUint32(s,a.data.byteLength),l.set(a.data,s+=4),s+=a.data.byteLength;return l},ee=[33,16,5,32,164,27],te=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],ie=function(e){return 9e4*e},ne=function(e,t){return e*t},re=function(e){return e/9e4},ae=function(e,t){return e/t},se=9e4,oe=ie,ue=re,le=function(e,t){return ie(ae(e,t))},ce=function(e,t){return ne(re(e),t)},de=function(e,t,i){return re(i?e:e-t)},he=function(e,t,i,n){var r,a,s,o,u,l,c=0,d=0;if(t.length&&(r=le(e.baseMediaDecodeTime,e.samplerate),a=Math.ceil(se/(e.samplerate/1024)),i&&n&&(s=r-Math.max(i,n),d=(c=Math.floor(s/a))*a),!(c<1||se/2<d))){for(o=(o=W()[e.samplerate])||t[0].data,u=0;u<c;u++)l=t[0],t.splice(0,0,{data:o,dts:l.dts-a,pts:l.pts-a});return e.baseMediaDecodeTime-=Math.floor(ce(d,e.samplerate)),d}},pe=function(e,t,i){return t.minSegmentDts>=i?e:(t.minSegmentDts=1/0,e.filter(function(e){return e.dts>=i&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)}))},fe=function(e){for(var t,i=[],n=0;n<e.length;n++)t=e[n],i.push({size:t.data.byteLength,duration:1024});return i},me=function(e){for(var t,i=0,n=new Uint8Array(function(e){for(var t=0,i=0;i<e.length;i++)t+=e[i].data.byteLength;return t}(e)),r=0;r<e.length;r++)t=e[r],n.set(t.data,i),i+=t.data.byteLength;return n},ge=se,ye=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},ve=function(e,t){var i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),t=e.timelineStartInfo.baseMediaDecodeTime,t+=i,t=Math.max(0,t),"audio"===e.type&&(t*=e.samplerate/ge,t=Math.floor(t)),t},_e=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},be=function(e){for(var t=0,i={payloadType:-1,payloadSize:0},n=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)n+=255,t++;for(n+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!i.payload&&4===n){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){i.payloadType=n,i.payloadSize=r,i.payload=e.subarray(t,t+r);break}i.payload=void 0}t+=r,r=n=0}return i},Te=function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Se=function(e,t){var i,n,r,a,s=[];if(!(64&t[0]))return s;for(n=31&t[0],i=0;i<n;i++)a={type:3&t[2+(r=3*i)],pts:e},4&t[2+r]&&(a.ccData=t[3+r]<<8|t[4+r],s.push(a));return s},Ee=function(e){for(var t=e.byteLength,i=[],n=1;n<t-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(i.push(n+2),n+=2):n++;if(0===i.length)return e;for(var r=t-i.length,a=new Uint8Array(r),s=0,n=0;n<r;s++,n++)s===i[0]&&(s++,i.shift()),a[n]=e[s];return a},ke=4,Ce=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new Me(0,0),new Me(0,1),new Me(1,0),new Me(1,1)],this.parse708captions_&&(this.cc708Stream_=new Pe),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};(Ce.prototype=new j).push=function(e){var t,i;if("sei_rbsp"===e.nalUnitType&&(t=be(e.escapedRBSP)).payload&&t.payloadType===ke&&(i=Te(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Se(e.pts,i),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}}
vendor: 7,055 bytes, line 395
395,Ce.prototype.flushCCStreams=function(t){this.ccStreams_.forEach(function(e){return"flush"===t?e.flush():e.partialFlush()},this)},Ce.prototype.flushStream=function(e){this.captionPackets_.length&&(this.captionPackets_.forEach(function(e,t){e.presortIndex=t}),this.captionPackets_.sort(function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts}),this.captionPackets_.forEach(function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)},this),this.captionPackets_.length=0),this.flushCCStreams(e)},Ce.prototype.flush=function(){return this.flushStream("flush")},Ce.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Ce.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},Ce.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Ce.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Ce.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Ce.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},Ce.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};function we(e){return 32<=e&&e<=127||160<=e&&e<=255}function Ie(e){this.windowNum=e,this.reset()}var xe={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600};Ie.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Ie.prototype.getText=function(){return this.rows.join("\n")},Ie.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Ie.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),0<this.rows.length&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Ie.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Ie.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Ie.prototype.backspace=function(){var e;this.isEmpty()||(e=this.rows[this.rowIdx],this.rows[this.rowIdx]=e.substr(0,e.length-1))};function Ae(e){this.serviceNum=e,this.text="",this.currentWindow=new Ie(-1),this.windows=[]}Ae.prototype.init=function(e,t){this.startPts=e;for(var i=0;i<8;i++)this.windows[i]=new Ie(i),"function"==typeof t&&(this.windows[i].beforeRowOverflow=t)},Ae.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]};var Pe=function e(){e.prototype.init.call(this);var t=this;this.current708Packet=null,this.services={},this.push=function(e){(3===e.type||null===t.current708Packet)&&t.new708Packet(),t.add708Bytes(e)}};Pe.prototype=new j,Pe.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Pe.prototype.add708Bytes=function(e){var t=e.ccData,i=t>>>8,t=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(i),this.current708Packet.data.push(t)},Pe.prototype.push708Packet=function(){var e,t=this.current708Packet,i=t.data,n=null,r=0,a=i[r++];for(t.seq=a>>6,t.sizeCode=63&a;r<i.length;r++)e=31&(a=i[r++]),7===(n=a>>5)&&0<e&&(n=i[r++]),this.pushServiceBlock(n,r,e),0<e&&(r+=e-1)},Pe.prototype.pushServiceBlock=function(e,t,i){for(var n,r=t,a=this.current708Packet.data,s=(s=this.services[e])||this.initService(e,r);r<t+i&&r<a.length;r++)n=a[r],we(n)?r=this.handleText(r,s):16===n?r=this.extendedCommands(r,s):128<=n&&n<=135?r=this.setCurrentWindow(r,s):152<=n&&n<=159?r=this.defineWindow(r,s):136===n?r=this.clearWindows(r,s):140===n?r=this.deleteWindows(r,s):137===n?r=this.displayWindows(r,s):138===n?r=this.hideWindows(r,s):139===n?r=this.toggleWindows(r,s):151===n?r=this.setWindowAttributes(r,s):144===n?r=this.setPenAttributes(r,s):145===n?r=this.setPenColor(r,s):146===n?r=this.setPenLocation(r,s):143===n?s=this.reset(r,s):8===n?s.currentWindow.backspace():12===n?s.currentWindow.clearText():13===n?s.currentWindow.pendingNewLine=!0:14===n?s.currentWindow.clearText():141===n&&r++},Pe.prototype.extendedCommands=function(e,t){var i=this.current708Packet.data[++e];return e=we(i)?this.handleText(e,t,!0):e},Pe.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Pe.prototype.initService=function(t,e){var i=this;return this.services[t]=new Ae(t),this.services[t].init(this.getPts(e),function(e){i.flushDisplayed(e,i.services[t])}),this.services[t]},Pe.prototype.handleText=function(e,t,i){var n=this.current708Packet.data[e],n=(n=xe[i=(i?4096:0)|n]||i,4096&i&&i===n?"":String.fromCharCode(n)),t=t.currentWindow;return t.pendingNewLine&&!t.isEmpty()&&t.newLine(this.getPts(e)),t.pendingNewLine=!1,t.addText(n),e},Pe.prototype.setCurrentWindow=function(e,t){var i=this.current708Packet.data[e];return t.setCurrentWindow(7&i),e},Pe.prototype.defineWindow=function(e,t){var i=this.current708Packet.data,n=i[e];t.setCurrentWindow(7&n);t=t.currentWindow,n=i[++e];return t.visible=(32&n)>>5,t.rowLock=(16&n)>>4,t.columnLock=(8&n)>>3,t.priority=7&n,n=i[++e],t.relativePositioning=(128&n)>>7,t.anchorVertical=127&n,n=i[++e],t.anchorHorizontal=n,n=i[++e],t.anchorPoint=(240&n)>>4,t.rowCount=15&n,n=i[++e],t.columnCount=63&n,n=i[++e],t.windowStyle=(56&n)>>3,t.penStyle=7&n,t.virtualRowCount=t.rowCount+1,e},Pe.prototype.setWindowAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],t=t.currentWindow.winAttr,n=i[++e];return t.fillOpacity=(192&n)>>6,t.fillRed=(48&n)>>4,t.fillGreen=(12&n)>>2,t.fillBlue=3&n,n=i[++e],t.borderType=(192&n)>>6,t.borderRed=(48&n)>>4,t.borderGreen=(12&n)>>2,t.borderBlue=3&n,n=i[++e],t.borderType+=(128&n)>>5,t.wordWrap=(64&n)>>6,t.printDirection=(48&n)>>4,t.scrollDirection=(12&n)>>2,t.justify=3&n,n=i[++e],t.effectSpeed=(240&n)>>4,t.effectDirection=(12&n)>>2,t.displayEffect=3&n,e},Pe.prototype.flushDisplayed=function(e,t){for(var i=[],n=0;n<8;n++)t.windows[n].visible&&!t.windows[n].isEmpty()&&i.push(t.windows[n].getText());t.endPts=e,t.text=i.join("\n\n"),this.pushCaption(t),t.startPts=e},Pe.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream
395:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},Pe.prototype.displayWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=1);return e},Pe.prototype.hideWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible=0);return e},Pe.prototype.toggleWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&(t.windows[r].visible^=1);return e},Pe.prototype.clearWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].clearText();return e},Pe.prototype.deleteWindows=function(e,t){var i=this.current708Packet.data[++e],n=this.getPts(e);this.flushDisplayed(n,t);for(var r=0;r<8;r++)i&1<<r&&t.windows[r].reset();return e},Pe.prototype.setPenAttributes=function(e,t){var i=this.current708Packet.data,n=i[e],t=t.currentWindow.penAttr,n=i[++e];return t.textTag=(240&n)>>4,t.offset=(12&n)>>2,t.penSize=3&n,n=i[++e],t.italics=(128&n)>>7,t.underline=(64&n)>>6,t.edgeType=(56&n)>>3,t.fontStyle=7&n,e},Pe.prototype.setPenColor=function(e,t){var i=this.current708Packet.data,n=i[e],t=t.currentWindow.penColor,n=i[++e];return t.fgOpacity=(192&n)>>6,t.fgRed=(48&n)>>4,t.fgGreen=(12&n)>>2,t.fgBlue=3&n,n=i[++e],t.bgOpacity=(192&n)>>6,t.bgRed=(48&n)>>4,t.bgGreen=(12&n)>>2,t.bgBlue=3&n,n=i[++e],t.edgeRed=(48&n)>>4,t.edgeGreen=(12&n)>>2,t.edgeBlue=3&n,e},Pe.prototype.setPenLocation=function(e,t){var i=this.current708Packet.data,n=i[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,n=i[++e],r.row=15&n,n=i[++e],r.column=63&n,e},Pe.prototype.reset=function(e,t){var i=this.getPts(e);return this.flushDisplayed(i,t),this.initService(t.serviceNum,e)};function Le(e){return null===e?"":(e=Oe[e]||e,String.fromCharCode(e))}function De(){for(var e=[],t=15;t--;)e.push("");return e}var Oe={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Re=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Me=function e(t,i){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=i||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,i,n,r,a=32639&e.ccData;a!==this.lastControlCode_?(4096==(61440&a)?this.lastControlCode_=a:a!==this.PADDING_&&(this.lastControlCode_=null),t=a>>>8,i=255&a,a===this.PADDING_||(a===this.RESUME_CAPTION_LOADING_?this.mode_="popOn":a===this.END_OF_CAPTION_?(this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),r=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=r,this.startPts_=e.pts):a===this.ROLL_UP_2_ROWS_?(this.rollUpRows_=2,this.setRollUp(e.pts)):a===this.ROLL_UP_3_ROWS_?(this.rollUpRows_=3,this.setRollUp(e.pts)):a===this.ROLL_UP_4_ROWS_?(this.rollUpRows_=4,this.setRollUp(e.pts)):a===this.CARRIAGE_RETURN_?(this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts):a===this.BACKSPACE_?"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1):a===this.ERASE_DISPLAYED_MEMORY_?(this.flushDisplayed(e.pts),this.displayed_=De()):a===this.ERASE_NON_DISPLAYED_MEMORY_?this.nonDisplayed_=De():a===this.RESUME_DIRECT_CAPTIONING_?("paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=De()),this.mode_="paintOn",this.startPts_=e.pts):this.isSpecialCharacter(t,i)?(n=Le((t=(3&t)<<8)|i),this[this.mode_](e.pts,n),this.column_++):this.isExtCharacter(t,i)?("popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),n=Le((t=(3&t)<<8)|i),this[this.mode_](e.pts,n),this.column_++):this.isMidRowCode(t,i)?(this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"])):this.isOffsetControlCode(t,i)?this.column_+=3&i:this.isPAC(t,i)?(r=Re.indexOf(7968&a),"rollUp"===this.mode_&&(r-this.rollUpRows_+1<0&&(r=this.rollUpRows_-1),this.setRollUp(e.pts,r)),r!==this.row_&&(this.clearFormatting(e.pts),this.row_=r),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&a)&&(this.column_=4*((14&a)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])):this.isNormalChar(t)&&(0===i&&(i=null),n=Le(t),n+=Le(i),this[this.mode_](e.pts,n),this.column_+=n.length))):this.lastControlCode_=null}};Me.prototype=new j,Me.prototype.flushDisplayed=function(e){var t=this.displayed_.map(function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}},this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream
vendor: 5,760 bytes, line 395
395:this.name_})},Me.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=De(),this.nonDisplayed_=De(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},Me.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},Me.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&48<=t&&t<=63},Me.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&32<=t&&t<=63},Me.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&32<=t&&t<=47},Me.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&33<=t&&t<=35},Me.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&64<=t&&t<=127},Me.prototype.isColorPAC=function(e){return 64<=e&&e<=79||96<=e&&e<=127},Me.prototype.isNormalChar=function(e){return 32<=e&&e<=127},Me.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=De(),this.displayed_=De()),void 0!==t&&t!==this.row_)for(var i=0;i<this.rollUpRows_;i++)this.displayed_[t-i]=this.displayed_[this.row_-i],this.displayed_[this.row_-i]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},Me.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);t=t.reduce(function(e,t){return e+"<"+t+">"},"");this[this.mode_](e,t)},Me.prototype.clearFormatting=function(e){var t;this.formatting_.length&&(t=this.formatting_.reverse().reduce(function(e,t){return e+"</"+t+">"},""),this.formatting_=[],this[this.mode_](e,t))},Me.prototype.popOn=function(e,t){var i=this.nonDisplayed_[this.row_];this.nonDisplayed_[this.row_]=i+=t},Me.prototype.rollUp=function(e,t){var i=this.displayed_[this.row_];this.displayed_[this.row_]=i+=t},Me.prototype.shiftRowsUp_=function(){for(var e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},Me.prototype.paintOn=function(e,t){var i=this.displayed_[this.row_];this.displayed_[this.row_]=i+=t};function Ne(e,t){var i=1;for(t<e&&(i=-1);4294967296<Math.abs(t-e);)e+=8589934592*i;return e}var Ue={CaptionStream:Ce,Cea608Stream:Me,Cea708Stream:Pe},Be={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},e=function e(t){var i,n;e.prototype.init.call(this),this.type_=t||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=Ne(e.dts,n),e.pts=Ne(e.pts,n),i=e.dts,this.trigger("data",e))},this.flush=function(){n=i,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};e.prototype=new j;function Fe(e,t,i){for(var n="",r=t;r<i;r++)n+="%"+("00"+e[r].toString(16)).slice(-2);return n}function je(e,t,i){return decodeURIComponent(Fe(e,t,i))}function He(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}var qe=e,Ce=Ne,Ve={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=je(e.data,1,t),e.value=je(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=je(e.data,1,t),e.url=je(e.data,t+1,e.data.length);break}},PRIV:function(e){for(var t,i=0;i<e.data.length;i++)if(0===e.data[i]){e.owner=(t=e.data,unescape(Fe(t,0,i)));break}e.privateData=e.data.subarray(i+1),e.data=e.privateData}},We=function(e){var t,i={descriptor:e&&e.descriptor},u=0,l=[],c=0;if(We.prototype.init.call(this),this.dispatchType=Be.METADATA_STREAM_TYPE.toString(16),i.descriptor)for(t=0;t<i.descriptor.length;t++)this.dispatchType+=("00"+i.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,i,n,r,a,s,o;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(c=0,l.length=0),0===l.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(l.push(e),c+=e.data.byteLength,1===l.length&&(u=He(e.data.subarray(6,10)),u+=10),!(c<u)){for(t={data:new Uint8Array(u),frames:[],pts:l[0].pts,dts:l[0].dts},r=0;r<u;)t.data.set(l[0].data.subarray(0,u-r),r),r+=l[0].data.byteLength,c-=l[0].data.byteLength,l.shift();i=10,64&t.data[5]&&(i+=4,i+=He(t.data.subarray(10,14)),u-=He(t.data.subarray(16,20)));do{if((n=He(t.data.subarray(i+4,i+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."})}while((o={id:String.fromCharCode(t.data[i],t.data[i+1],t.data[i+2],t.data[i+3]),data:t.data.subarray(i+10,i+n+10)}).key=o.id,Ve[o.id]&&(Ve[o.id](o),"com.apple.streaming.transportStreamTimestamp"===o.owner&&(s=(1&(a=o.data)[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2,s*=4,s+=3&a[7],o.timeStamp=s,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o))),t.frames.push(o),i+=10,(i+=n)<u);this.trigger("data",t)}}};We.prototype=new j;
vendor: 11,044 bytes, line 395
395var ze,Ge,e=We,qe=qe,Xe=function(){var r=new Uint8Array(188),a=0;Xe.prototype.init.call(this),this.push=function(e){var t,i=0,n=188;for(a?((t=new Uint8Array(e.byteLength+a)).set(r.subarray(0,a)),t.set(e,a),a=0):t=e;n<t.byteLength;)71!==t[i]||71!==t[n]?(i++,n++):(this.trigger("data",t.subarray(i,n)),i+=188,n+=188);i<t.byteLength&&(r.set(t.subarray(i),0),a=t.byteLength-i)},this.flush=function(){188===a&&71===r[0]&&(this.trigger("data",r),a=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){a=0,this.trigger("reset")}};Xe.prototype=new j,(ze=function(){var n,r,a,s;ze.prototype.init.call(this),(s=this).packetsWaitingForPmt=[],this.programMapTable=void 0,n=function(e,t){var i=0;t.payloadUnitStartIndicator&&(i+=e[i]+1),("pat"===t.type?r:a)(e.subarray(i),t)},r=function(e,t){t.section_number=e[7],t.last_section_number=e[8],s.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=s.pmtPid},a=function(e,t){var i,n;if(1&e[5]){for(s.programMapTable={video:null,audio:null,"timed-metadata":{}},i=3+((15&e[1])<<8|e[2])-4,n=12+((15&e[10])<<8|e[11]);n<i;){var r=e[n],a=(31&e[n+1])<<8|e[n+2];r===Be.H264_STREAM_TYPE&&null===s.programMapTable.video?s.programMapTable.video=a:r===Be.ADTS_STREAM_TYPE&&null===s.programMapTable.audio?s.programMapTable.audio=a:r===Be.METADATA_STREAM_TYPE&&(s.programMapTable["timed-metadata"][a]=r),n+=5+((15&e[n+3])<<8|e[n+4])}t.programMapTable=s.programMapTable}},this.push=function(e){var t={},i=4;if(t.payloadUnitStartIndicator=!!(64&e[1]),t.pid=31&e[1],t.pid<<=8,t.pid|=e[2],1<(48&e[3])>>>4&&(i+=e[i]+1),0===t.pid)t.type="pat",n(e.subarray(i),t),this.trigger("data",t);else if(t.pid===this.pmtPid)for(t.type="pmt",n(e.subarray(i),t),this.trigger("data",t);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([e,i,t]):this.processPes_(e,i,t)},this.processPes_=function(e,t,i){i.pid===this.programMapTable.video?i.streamType=Be.H264_STREAM_TYPE:i.pid===this.programMapTable.audio?i.streamType=Be.ADTS_STREAM_TYPE:i.streamType=this.programMapTable["timed-metadata"][i.pid],i.type="pes",i.data=e.subarray(t),this.trigger("data",i)}}).prototype=new j,ze.STREAM_TYPES={h264:27,adts:15},(Ge=function(){function n(e,t,i){var n,r,a,s,o=new Uint8Array(e.size),u={type:t},l=0,c=0;if(e.data.length&&!(e.size<9)){for(u.trackId=e.data[0].pid,l=0;l<e.data.length;l++)n=e.data[l],o.set(n.data,c),c+=n.data.byteLength;a=u,s=(r=o)[0]<<16|r[1]<<8|r[2],a.data=new Uint8Array,1==s&&(a.packetLength=6+(r[4]<<8|r[5]),a.dataAlignmentIndicator=0!=(4&r[6]),192&(s=r[7])&&(a.pts=(14&r[9])<<27|(255&r[10])<<20|(254&r[11])<<12|(255&r[12])<<5|(254&r[13])>>>3,a.pts*=4,a.pts+=(6&r[13])>>>1,a.dts=a.pts,64&s&&(a.dts=(14&r[14])<<27|(255&r[15])<<20|(254&r[16])<<12|(255&r[17])<<5|(254&r[18])>>>3,a.dts*=4,a.dts+=(6&r[18])>>>1)),a.data=r.subarray(9+r[8])),t="video"===t||u.packetLength<=e.size,(i||t)&&(e.size=0,e.data.length=0),t&&d.trigger("data",u)}}var t,d=this,r=!1,a={data:[],size:0},s={data:[],size:0},o={data:[],size:0};Ge.prototype.init.call(this),this.push=function(i){({pat:function(){},pes:function(){var e,t;switch(i.streamType){case Be.H264_STREAM_TYPE:e=a,t="video";break;case Be.ADTS_STREAM_TYPE:e=s,t="audio";break;case Be.METADATA_STREAM_TYPE:e=o,t="timed-metadata";break;default:return}i.payloadUnitStartIndicator&&n(e,t,!0),e.data.push(i),e.size+=i.data.byteLength},pmt:function(){var e={type:"metadata",tracks:[]};null!==(t=i.programMapTable).video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),r=!0,d.trigger("data",e)}})[i.type]()},this.reset=function(){a.size=0,a.data.length=0,s.size=0,s.data.length=0,this.trigger("reset")},this.flushStreams_=function(){n(a,"video"),n(s,"audio"),n(o,"timed-metadata")},this.flush=function(){var e;!r&&t&&(e={type:"metadata",tracks:[]},null!==t.video&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.video,codec:"avc",type:"video"}),null!==t.audio&&e.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+t.audio,codec:"adts",type:"audio"}),d.trigger("data",e)),r=!1,this.flushStreams_(),this.trigger("done")}}).prototype=new j;var Ke,Ye={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:Xe,TransportParseStream:ze,ElementaryStream:Ge,TimestampRolloverStream:qe,CaptionStream:Ue.CaptionStream,Cea608Stream:Ue.Cea608Stream,Cea708Stream:Ue.Cea708Stream,MetadataStream:e};for(Ke in Be)Be.hasOwnProperty(Ke)&&(Ye[Ke]=Be[Ke]);var Qe=Ye,$e=se,Je=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],Ze=function(u){var l,c=0;Ze.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+c+" outside syncword"})},this.push=function(e){var t,i,n,r,a,s,o=0;if(u||(c=0),"audio"===e.type){for(l&&l.length?(n=l,(l=new Uint8Array(n.byteLength+e.data.byteLength)).set(n),l.set(e.data,n.byteLength)):l=e.data;o+7<l.length;)if(255===l[o]&&240==(246&l[o+1])){if("number"==typeof s&&(this.skipWarn_(s,o),s=null),i=2*(1&~l[o+1]),t=(3&l[o+3])<<11|l[o+4]<<3|(224&l[o+5])>>5,a=(r=1024*(1+(3&l[o+6])))*$e/Je[(60&l[o+2])>>>2],l.byteLength-o<t)break;this.trigger("data",{pts:e.pts+c*a,dts:e.dts+c*a,sampleCount:r,audioobjecttype:1+(l[o+2]>>>6&3),channelcount:(1&l[o+2])<<2|(192&l[o+3])>>>6,samplerate:Je[(60&l[o+2])>>>2],samplingfrequencyindex:(60&l[o+2])>>>2,samplesize:16,data:l.subarray(o+7+i,o+t)}),c++,o+=t}else"number"!=typeof s&&(s=o),o++;"number"==typeof s&&(this.skipWarn_(s,o),s=null),l=l.subarray(o)}},this.flush=function(){c=0,this.trigger("done")},this.reset=function(){l=void 0,this.trigger("reset")},this.endTimeline=function(){l=void 0,this.trigger("endedtimeline")}};Ze.prototype=new j;var et,tt,it=Ze,nt=function(n){var r=n.byteLength,a=0,s=0;this.length=function(){return 8*r},this.bitsAvailable=function(){return 8*r+s},this.loadWord=function(){var e=n.byteLength-r,t=new Uint8Array(4),i=Math.min(4,r);if(0===i)throw new Error("no bytes available");t.set(n.subarray(e,e+i)),a=new DataView(t.buffer).getUint32(0),s=8*i,r-=i},this.skipBits=function(e){var t;e<s||(e-=s,e-=8*(t=Math.floor(e/8)),r-=t,this.loadWord()),a<<=e,s-=e},this.readBits=function(e){var t=Math.min(s,e),i=a>>>32-t;return 0<(s-=t)?a<<=t:0<r&&this.loadWord(),0<(t=e-t)?i<<t|this.readBits(t):i},this.skipLeadingZeros=function(){for(var e=0;e<s;++e)if(0!=(a&2147483648>>>e))return a<<=e,s-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()},rt=function(){var n,r,a=0;rt.prototype.init.call(this),this.push=function(e){for(var t,i=(r=r?((t=new Uint8Array(r.byteLength+e.data.byteLength)).set(r),t.set(e.data,r.byteLength),t):e.data).byteLength;a<i-3;a++)if(1===r[a+2]){n=a+5;break}for(;n<i;)switch(r[n]){case 0:if(0!==r[n-1]){n+=2;break}if(0!==r[n-2]){n++;break}for(a+3!==n-2&&this.trigger("data",r.subarray(a+3,n-2));1!==r[++n]&&n<i;);a=n-2,n+=3;break;case 1:if(0!==r[n-1]||0!==r[n-2]){n+=3;break}this.trigger("data",r.subarray(a+3,n-2)),a=n-2,n+=3;break;default:n+=3}r=r.subarray(a),n-=a,a=0},this.reset=function(){r=null,a=0,this.trigger("reset")},this.flush=function(){r&&3<r.byteLength&&this.trigger("data",r.subarray(a+3)),r=null,a=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}};rt.prototype=new j,tt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(et=function(){var i,n,r,a,s,o,m,t=new rt;et.prototype.init.call(this),(i=this).push=function(e){"video"===e.type&&(n=e.trackId,r=e.pts,a=e.dts,t.push(e))},t.on("data",function(e){var t={trackId:n,pts:r,dts:a,data:e,nalUnitTypeCode:31&e[0]};switch(t.nalUnitTypeCode){case 5:t.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:t.nalUnitType="sei_rbsp",t.escapedRBSP=s(e.subarray(1));break;case 7:t.nalUnitType="seq_parameter_set_rbsp",t.escapedRBSP=s(e.subarray(1)),t.config=o(t.escapedRBSP);break;case 8:t.nalUnitType="pic_parameter_set_rbsp";break;case 9:t.nalUnitType="access_unit_delimiter_rbsp"}i.trigger("data",t)}),t.on("done",function(){i.trigger("done")}),t.on("partialdone",function(){i.trigger("partialdone")}),t.on("reset",function(){i.trigger("reset")}),t.on("endedtimeline",function(){i.trigger("endedtimeline")}),this.flush=function(){t.flush()},this.partialFlush=function(){t.partialFlush()},this.reset=function(){t.reset()},this.endTimeline=function(){t.endTimeline()},m=function(e,t){for(var i=8,n=8,r=0;r<e;r++)i=0===(n=0!==n?(i+t.readExpGolomb()+256)%256:n)?i:n},s=function(e){for(var t=e.byteLength,i=[],n=1;n<t-2;)0===e[n]&&0===e[n+1]&&3===e[n+2]?(i.push(n+2),n+=2):n++;if(0===i.length)return e;for(var r=t-i.length,a=new Uint8Array(r),s=0,n=0;n<r;s++,n++)s===i[0]&&(s++,i.shift()),a[n]=e[s];return a},o=function(e){var t,i,n,r,a,s=0,o=0,u=0,l=0,c=[1,1],d=new nt(e),h=d.readUnsignedByte(),p=d.readUnsignedByte(),f=d.readUnsignedByte();if(d.skipUnsignedExpGolomb(),tt[h]&&(3===(i=d.readUnsignedExpGolomb())&&d.skipBits(1),d.skipUnsignedExpGolomb(),d.skipUnsignedExpGolomb(),d.skipBits(1),d.readBoolean()))for(r=3!==i?8:12,a=0;a<r;a++)d.readBoolean()&&m(a<6?16:64,d);if(d.skipUnsignedExpGolomb(),0===(n=d.readUnsignedExpGolomb()))d.readUnsignedExpGolomb();else if(1===n)for(d.skipBits(1),d.skipExpGolomb(),d.skipExpGolomb(),t=d.readUnsignedExpGolomb(),a=0;a<t;a++)d.skipExpGolomb();if(d.skipUnsignedExpGolomb(),d.skipBits(1),e=d.readUnsignedExpGolomb(),i=d.readUnsignedExpGolomb(),0===(n=d.readBits(1))&&d.skipBits(1),d.skipBits(1),d.readBoolean()&&(s=d.readUnsignedExpGolomb(),o=d.readUnsignedExpGolomb(),u=d.readUnsignedExpGolomb(),l=d.readUnsignedExpGolomb()),d.readBoolean()&&d.readBoolean()){switch(d.readUnsignedByte()){case 1:c=[1,1];break;case 2:c=[12,11];break;case 3:c=[10,11];break;case 4:c=[16,11];break;case 5:c=[40,33];break;case 6:c=[24,11];break;case 7:c=[20,11];break;case 8:c=[32,11];break;case 9:c=[80,33];break;case 10:c=[18,11];break;case 11:c=[15,11];break;case 12:c=[64,33];break;case 13:c=[160,99];break;case 14:c=[4,3];break;case 15:c=[3,2];break;case 16:c=[2,1];break;case 255:c=[d.readUnsignedByte()<<8|d.readUnsignedByte(),d.readUnsignedByte()<<8|d.readUnsignedByte()]}c&&(c[0],c[1])}return{profileIdc:h,levelIdc:f,profileCompatibility:p,width:16*(e+1)-2*s-2*o,height:(2-n)*(i+1)*16-2*u-2*l,sarRatio:c}}}).prototype=new j;function at(e,t){var i=0<=(i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9])?i:0;return(16&e[t+5])>>4?i+20:i+10}function st(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1
395]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:st(e,t+=at(e,t))}function ot(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]}var qe={H264Stream:et,NalByteStream:rt},ut=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],lt={isLikelyAacData:function(e){var t=st(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:at,parseAdtsSize:function(e,t){var i=(224&e[t+5])>>5,n=e[t+4]<<3;return 6144&e[t+3]|n|i},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return ut[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,i=10;64&e[5]&&(i+=4,i+=ot(e.subarray(10,14)));do{if((t=ot(e.subarray(i+4,i+8)))<1)return null;if("PRIV"===String.fromCharCode(e[i],e[i+1],e[i+2],e[i+3]))for(var n=e.subarray(i+10,i+t+10),r=0;r<n.byteLength;r++)if(0===n[r]){if("com.apple.streaming.transportStreamTimestamp"!==unescape(function(e,t,i){for(var n="",r=t;r<i;r++)n+="%"+("00"+e[r].toString(16)).slice(-2);return n}(n,0,r)))break;var a=n.subarray(r+1),s=(1&a[3])<<30|a[4]<<22|a[5]<<14|a[6]<<6|a[7]>>>2;return s*=4,s+=3&a[7]}}while(i+=10,(i+=t)<e.byteLength);return null}},ct=function(){var a=new Uint8Array,s=0;ct.prototype.init.call(this),this.setTimestamp=function(e){s=e},this.push=function(e){var t,i,n=0,r=0;for(a.length?(i=a.length,(a=new Uint8Array(e.byteLength+i)).set(a.subarray(0,i)),a.set(e,i)):a=e;3<=a.length-r;)if(a[r]!=="I".charCodeAt(0)||a[r+1]!=="D".charCodeAt(0)||a[r+2]!=="3".charCodeAt(0))if(255!=(255&a[r])||240!=(240&a[r+1]))r++;else{if(a.length-r<7)break;if(r+(n=lt.parseAdtsSize(a,r))>a.length)break;t={type:"audio",data:a.subarray(r,r+n),pts:s,dts:s},this.trigger("data",t),r+=n}else{if(a.length-r<10)break;if(r+(n=lt.parseId3TagSize(a,r))>a.length)break;t={type:"timed-metadata",data:a.subarray(r,r+n)},this.trigger("data",t),r+=n}e=a.length-r,a=0<e?a.subarray(r):new Uint8Array},this.reset=function(){a=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){a=new Uint8Array,this.trigger("endedtimeline")}};ct.prototype=new j;function dt(e,t){var i;if(e.length===t.length){for(i=0;i<e.length;i++)if(e[i]!==t[i])return;return 1}}function ht(e,t,i,n,r,a){return{start:{dts:e,pts:e+(i-t)},end:{dts:e+(n-t),pts:e+(r-i)},prependedContentDuration:a,baseMediaDecodeTime:e}}var pt,ft,mt,gt=ct,yt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],vt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],_t=qe.H264Stream,bt=lt.isLikelyAacData,Tt=se,St=function(a,s){var o=[],u=0,l=0,c=1/0,d=(s=s||{}).firstSequenceNumber||0;
vendor: 5,025 bytes, line 395
395St.prototype.init.call(this),this.push=function(t){_e(a,t),a&&yt.forEach(function(e){a[e]=t[e]}),o.push(t)},this.setEarliestDts=function(e){u=e},this.setVideoBaseMediaDecodeTime=function(e){c=e},this.setAudioAppendStart=function(e){l=e},this.flush=function(){var e,t,i,n,r;0!==o.length&&(e=pe(o,a,u),a.baseMediaDecodeTime=ve(a,s.keepOriginalTimestamps),r=he(a,e,l,c),a.samples=fe(e),t=G(me(e)),o=[],n=X(d,[a]),i=new Uint8Array(n.byteLength+t.byteLength),d++,i.set(n),i.set(t,n.byteLength),ye(a),n=Math.ceil(1024*Tt/a.samplerate),e.length&&(n=e.length*n,this.trigger("segmentTimingInfo",ht(le(a.baseMediaDecodeTime,a.samplerate),e[0].dts,e[0].pts,e[0].dts+n,e[0].pts+n,r||0)),this.trigger("timingInfo",{start:e[0].pts,end:e[0].pts+n})),this.trigger("data",{track:a,boxes:i})),this.trigger("done","AudioSegmentStream")},this.reset=function(){ye(a),o=[],this.trigger("reset")}};St.prototype=new j,(pt=function(s,a){var t,i,o=[],l=[],u=(a=a||{}).firstSequenceNumber||0;pt.prototype.init.call(this),delete s.minPTS,this.gopCache_=[],this.push=function(e){_e(s,e),"seq_parameter_set_rbsp"!==e.nalUnitType||t||(t=e.config,s.sps=[e.data],vt.forEach(function(e){s[e]=t[e]},this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,s.pps=[e.data]),o.push(e)},this.flush=function(){for(var e,t,i,n=0;o.length&&"access_unit_delimiter_rbsp"!==o[0].nalUnitType;)o.shift();if(0===o.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(e=Y(o),(t=Q(e))[0][0].keyFrame||((i=this.getGopForFusion_(o[0],s))?(n=i.duration,t.unshift(i),t.byteLength+=i.byteLength,t.nalCount+=i.nalCount,t.pts=i.pts,t.dts=i.dts,t.duration+=i.duration):t=$(t)),l.length){var r=a.alignGopsAtEnd?this.alignGopsAtEnd_(t):this.alignGopsAtStart_(t);if(!r)return this.gopCache_.unshift({gop:t.pop(),pps:s.pps,sps:s.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");ye(s),t=r}_e(s,t),s.samples=J(t),e=G(Z(t)),s.baseMediaDecodeTime=ve(s,a.keepOriginalTimestamps),this.trigger("processedGopsInfo",t.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),i=t[0],r=t[t.length-1],this.trigger("segmentTimingInfo",ht(s.baseMediaDecodeTime,i.dts,i.pts,r.dts+r.duration,r.pts+r.duration,n)),this.trigger("timingInfo",{start:t[0].pts,end:t[t.length-1].pts+t[t.length-1].duration}),this.gopCache_.unshift({gop:t.pop(),pps:s.pps,sps:s.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.trigger("baseMediaDecodeTime",s.baseMediaDecodeTime),this.trigger("timelineStartInfo",s.timelineStartInfo),n=X(u,[s]),t=new Uint8Array(n.byteLength+e.byteLength),u++,t.set(n),t.set(e,n.byteLength),this.trigger("data",{track:s,boxes:t}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),o=[],this.gopCache_.length=0,l.length=0,this.trigger("reset")},this.resetStream_=function(){ye(s),i=t=void 0},this.getGopForFusion_=function(e){for(var t,i,n,r=1/0,a=0;a<this.gopCache_.length;a++)i=(n=this.gopCache_[a]).gop,s.pps&&dt(s.pps[0],n.pps[0])&&s.sps&&dt(s.sps[0],n.sps[0])&&(i.dts<s.timelineStartInfo.dts||-1e4<=(i=e.dts-i.dts-i.duration)&&i<=45e3&&(!t||i<r)&&(t=n,r=i));return t?t.gop:null},this.alignGopsAtStart_=function(e){for(var t,i,n,r,a=e.byteLength,s=e.nalCount,o=e.duration,u=t=0;u<l.length&&t<e.length&&(i=l[u],n=e[t],i.pts!==n.pts);)n.pts>i.pts?u++:(t++,a-=n.byteLength,s-=n.nalCount,o-=n.duration);return 0===t?e:t===e.length?null:((r=e.slice(t)).byteLength=a,r.duration=o,r.nalCount=s,r.pts=r[0].pts,r.dts=r[0].dts,r)},this.alignGopsAtEnd_=function(e){for(var t,i,n=l.length-1,r=e.length-1,a=null,s=!1;0<=n&&0<=r;){if(t=l[n],i=e[r],t.pts===i.pts){s=!0;break}t.pts>i.pts?n--:(n===l.length-1&&(a=r),r--)}if(!s&&null===a)return null;if(0===(u=s?r:a))return e;var o=e.slice(u),u=o.reduce(function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e},{byteLength:0,duration:0,nalCount:0});return o.byteLength=u.byteLength,o.duration=u.duration,o.nalCount=u.nalCount,o.pts=o[0].pts,o.dts=o[0].dts,o},this.alignGopsWith=function(e){l=e}}).prototype=new j,(mt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,"undefined"!=typeof(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,mt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new j,mt.prototype.flush=function(e){var t,i,n,r=0,a={captions:[],captionStream
vendor: 7,780 bytes, line 395
395s:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,vt.forEach(function(e){a.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,yt.forEach(function(e){a.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,e=K(this.pendingTracks),a.initSegment=new Uint8Array(e.byteLength),a.initSegment.set(e),a.data=new Uint8Array(this.pendingBytes),n=0;n<this.pendingBoxes.length;n++)a.data.set(this.pendingBoxes[n],r),r+=this.pendingBoxes[n].byteLength;for(n=0;n<this.pendingCaptions.length;n++)(t=this.pendingCaptions[n]).startTime=de(t.startPts,s,this.keepOriginalTimestamps),t.endTime=de(t.endPts,s,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(n=0;n<this.pendingMetadata.length;n++)(i=this.pendingMetadata[n]).cueTime=de(i.pts,s,this.keepOriginalTimestamps),a.metadata.push(i);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),n=0;n<a.captions.length;n++)t=a.captions[n],this.trigger("caption",t);for(n=0;n<a.metadata.length;n++)i=a.metadata[n],this.trigger("id3Frame",i)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},mt.prototype.setRemux=function(e){this.remuxTracks=e},(ft=function(n){var r,a,s=this,o=!0;ft.prototype.init.call(this),this.baseMediaDecodeTime=(n=n||{}).baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var t={};(this.transmuxPipeline_=t).type="aac",t.metadataStream=new Qe.MetadataStream,t.aacStream=new gt,t.audioTimestampRolloverStream=new Qe.TimestampRolloverStream("audio"),t.timedMetadataTimestampRolloverStream=new Qe.TimestampRolloverStream("timed-metadata"),t.adtsStream=new it,t.coalesceStream=new mt(n,t.metadataStream),t.headOfPipeline=t.aacStream,t.aacStream.pipe(t.audioTimestampRolloverStream).pipe(t.adtsStream),t.aacStream.pipe(t.timedMetadataTimestampRolloverStream).pipe(t.metadataStream).pipe(t.coalesceStream),t.metadataStream.on("timestamp",function(e){t.aacStream.setTimestamp(e.timeStamp)}),t.aacStream.on("data",function(e){"timed-metadata"!==e.type&&"audio"!==e.type||t.audioSegmentStream||(a=a||{timelineStartInfo:{baseMediaDecodeTime:s.baseMediaDecodeTime},codec:"adts",type:"audio"},t.coalesceStream.numberOfTracks++,t.audioSegmentStream=new St(a,n),t.audioSegmentStream.on("log",s.getLogTrigger_("audioSegmentStream")),t.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),t.adtsStream.pipe(t.audioSegmentStream).pipe(t.coalesceStream),s.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!r}))}),t.coalesceStream.on("data",this.trigger.bind(this,"data")),t.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var i={};(this.transmuxPipeline_=i).type="ts",i.metadataStream=new Qe.MetadataStream,i.packetStream=new Qe.TransportPacketStream,i.parseStream=new Qe.TransportParseStream,i.elementaryStream=new Qe.ElementaryStream,i.timestampRolloverStream=new Qe.TimestampRolloverStream,i.adtsStream=new it,i.h264Stream=new _t,i.captionStream=new Qe.CaptionStream(n),i.coalesceStream=new mt(n,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",function(e){var t;if("metadata"===e.type){for(t=e.tracks.length;t--;)r||"video"!==e.tracks[t].type?a||"audio"!==e.tracks[t].type||((a=e.tracks[t]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime):(r=e.tracks[t]).timelineStartInfo.baseMediaDecodeTime=s.baseMediaDecodeTime;r&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new pt(r,n),i.videoSegmentStream.on("log",s.getLogTrigger_("videoSegmentStream")),i.videoSegmentStream.on("timelineStartInfo",function(e){a&&!n.keepOriginalTimestamps&&(a.timelineStartInfo=e,i.audioSegmentStream.setEarliestDts(e.dts-s.baseMediaDecodeTime))}),i.videoSegmentStream.on("processedGopsInfo",s.trigger.bind(s,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",function(e){a&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)}),i.videoSegmentStream.on("timingInfo",s.trigger.bind(s,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),a&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new St(a,n),i.audioSegmentStream.on("log",s.getLogTrigger_("audioSegmentStream")),i.audioSegmentStream.on("timingInfo",s.trigger.bind(s,"audioTimingInfo")),i.audioSegmentStream.on("segmentTimingInfo",s.trigger.bind(s,"audioSegmentTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),s.trigger("trackinfo",{hasAudio:!!a,hasVideo:!!r})}}),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",function(e){e.dispatchType=i.metadataStream.dispatchType,s.trigger("id3Frame",e)}),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(e){var t=this.transmuxPipeline_;n.keepOriginalTimestamps||(this.baseMediaDecodeTime=e),a&&(a.timelineStartInfo.dts=void 0,a.timelineStartInfo.pts=void 0,ye(a),t.audioTimestampRolloverStream&&t.audioTimestampRolloverStream.discontinuity()),r&&(t.videoSegmentStream&&(t.videoSegmentStream.gopCache_=[]),r.timelineStartInfo.dts=void 0,r.timelineStartInfo.pts=void 0,ye(r),t.captionStream.reset()),t.timestampRolloverStream&&t.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){a&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(e){var t=this.transmuxPipeline_;n.remux=e,t&&t.coalesceStream&&t.coalesceStream.setRemux(e)},this.alignGopsWith=function(e){r&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(t){var i=this;return function(e){e.stream=t,i.trigger("log",e)}},this.push=function(e){if(o){var t=bt(e);if(t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),this.transmuxPipeline_)for(var i=Object.keys(this.transmuxPipeline_),n=0;n<i.length;n++){var r=i[n];"headOfPipeline"!==r&&this.transmuxPipeline_[r].on&&this.transmuxPipeline_[r].on("log",this.getLogTrigger_(r))}o=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){o=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new j;function Et(e,c){var i=Lt(e,["moof","traf"]),e=Lt(e,["mdat"]),d={},n=[];return e.forEach(function(e,t){t=i[t];n.push({mdat:e,traf:t})}
395),n.forEach(function(e){var t,i,n,r,a,s=e.mdat,o=e.traf,u=Lt(o,["tfhd"]),l=Nt(u[0]),e=l.trackId,u=Lt(o,["tfdt"]),u=0<u.length?Ot(u[0]).baseMediaDecodeTime:0,o=Lt(o,["trun"]);c===e&&0<o.length&&(o=o,t=u,i=(l=l).defaultSampleDuration||0,n=l.defaultSampleSize||0,r=l.trackId,a=[],o.forEach(function(e){e=Mt(e).samples;e.forEach(function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=n),e.trackId=r,e.dts=t,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=t+e.compositionTimeOffset,t+=e.duration}),a=a.concat(e)}),s=function(e,t,i){for(var n,r,a=new DataView(e.buffer,e.byteOffset,e.byteLength),s={logs:[],seiNals:[]},o=0;o+4<e.length;o+=n)if(n=a.getUint32(o),o+=4,!(n<=0))switch(31&e[o]){case 6:var u=e.subarray(o+1,o+1+n),l=function(e,t){for(var i=e,n=0;n<t.length;n++){var r=t[n];if(i<r.size)return r;i-=r.size}return null}(o,t),u={nalUnitType:"sei_rbsp",size:n,data:u,escapedRBSP:Ut(u),trackId:i};if(l)u.pts=l.pts,u.dts=l.dts,r=l;else{if(!r){s.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+o+" for trackId "+i+". See mux.js#223."});break}u.pts=r.pts,u.dts=r.dts}s.seiNals.push(u)}return s}(s,a,e),d[e]||(d[e]={seiNals:[],logs:[]}),d[e].seiNals=d[e].seiNals.concat(s.seiNals),d[e].logs=d[e].logs.concat(s.logs))}),d}function kt(e){var t=31&e[1];return t<<=8,t|=e[2]}function Ct(e){return!!(64&e[1])}function wt(e){var t=0;return 1<(48&e[3])>>>4&&(t+=e[4]+1),t}function It(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}}var xt={Transmuxer:ft,VideoSegmentStream:pt,AudioSegmentStream:St,AUDIO_PROPERTIES:yt,VIDEO_PROPERTIES:vt,generateSegmentTimingInfo:ht},e=function(e){return e>>>0},At=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},Pt=e,Lt=function e(t,i){var n,r,a,s=[];if(!i.length)return null;for(n=0;n<t.byteLength;)r=Pt(t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]),a=At(t.subarray(n+4,n+8)),r=1<r?n+r:t.byteLength,a===i[0]&&(1===i.length?s.push(t.subarray(n+8,r)):(a=e(t.subarray(n+8,r),i.slice(1))).length&&(s=s.concat(a))),n=r;return s},Dt=e,Ot=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:Dt(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=Dt(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t},Rt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Mt=function(e){var t,i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},n=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&i.flags[2],a=4&i.flags[2],s=1&i.flags[1],o=2&i.flags[1],u=4&i.flags[1],l=8&i.flags[1],c=n.getUint32(4),d=8;for(r&&(i.dataOffset=n.getInt32(d),d+=4),a&&c&&(t={flags:Rt(e.subarray(d,d+4))},d+=4,s&&(t.duration=n.getUint32(d),d+=4),o&&(t.size=n.getUint32(d),d+=4),l&&(1===i.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(t),c--);c--;)t={},s&&(t.duration=n.getUint32(d),d+=4),o&&(t.size=n.getUint32(d),d+=4),u&&(t.flags=Rt(e.subarray(d,d+4)),d+=4),l&&(1===i.version?t.compositionTimeOffset=n.getInt32(d):t.compositionTimeOffset=n.getUint32(d),d+=4),i.samples.push(t);return i},Nt=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:t.getUint32(4)},n=1&i.flags[2],r=2&i.flags[2],a=8&i.flags[2],s=16&i.flags[2],o=32&i.flags[2],u=65536&i.flags[0],l=131072&i.flags[0],e=8;return n&&(e+=4,i.baseDataOffset=t.getUint32(12),e+=4),r&&(i.sampleDescriptionIndex=t.getUint32(e),e+=4),a&&(i.defaultSampleDuration=t.getUint32(e),e+=4),s&&(i.defaultSampleSize=t.getUint32(e),e+=4),o&&(i.defaultSampleFlags=t.getUint32(e)),u&&(i.durationIsEmpty=!0),!n&&l&&(i.baseDataOffsetIsMoof=!0),i},Ut=Ee,Bt=Ue.CaptionStream,Ft=function(){var t,r,a,s,o,i,n=!1;this.isInitialized=function(){return n},this.init=function(e){t=new Bt,n=!0,i=!!e&&e.isPartial,t.on("data",function(e){e.startTime=e.startPts/s,e.endTime=e.endPts/s,o.captions.push(e),o.captionStream
395s[e.stream]=!0}),t.on("log",function(e){o.logs.push(e)})},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(a!==e[0]||s!==t[a])},this.parse=function(e,t,i){if(!this.isInitialized())return null;if(!t||!i)return null;if(this.isNewInit(t,i))a=t[0],s=i[a];else if(null===a||!s)return r.push(e),null;for(;0<r.length;){var n=r.shift();this.parse(n,t,i)}return(e=function(e,t,i){if(null===t)return null;t=Et(e,t)[t]||{};return{seiNals:t.seiNals,logs:t.logs,timescale:i}}(e,a,s))&&e.logs&&(o.logs=o.logs.concat(e.logs)),null!==e&&e.seiNals?(this.pushNals(e.seiNals),this.flushStream(),o):o.logs.length?{logs:o.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(e){if(!this.isInitialized()||!e||0===e.length)return null;e.forEach(function(e){t.push(e)})},this.flushStream=function(){if(!this.isInitialized())return null;i?t.partialFlush():t.flush()},this.clearParsedCaptions=function(){o.captions=[],o.captionStreams={},o.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;t.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){r=[],s=a=null,o?this.clearParsedCaptions():o={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},jt=e,Ht=function(e){return("00"+e.toString(16)).slice(-2)},qe=function(e){return Lt(e,["moov","trak"]).reduce(function(e,t){var i,n,r=Lt(t,["tkhd"])[0];return r?(i=r[0],r=jt(r[n=0===i?12:20]<<24|r[1+n]<<16|r[2+n]<<8|r[3+n]),(t=Lt(t,["mdia","mdhd"])[0])?(i=t[0],e[r]=jt(t[n=0===i?12:20]<<24|t[1+n]<<16|t[2+n]<<8|t[3+n]),e):null):null},{})},j=function(n,e){var e=Lt(e,["moof","traf"]),e=[].concat.apply([],e.map(function(i){return Lt(i,["tfhd"]).map(function(e){var t=jt(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),e=n[t]||9e4,t=Lt(i,["tfdt"]).map(function(e){var t=e[0],i=jt(e[4]<<24|e[5]<<16|e[6]<<8|e[7]);return 1===t&&(i*=Math.pow(2,32),i+=jt(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),i})[0];return(t="number"!=typeof t||isNaN(t)?1/0:t)/e})})),e=Math.min.apply(null,e);return isFinite(e)?e:0},Ee=function(e,t){var i,n,r=Lt(t,["moof","traf"]),a=0,s=0;return r&&r.length&&(i=Lt(r[0],["tfhd"])[0],t=Lt(r[0],["trun"])[0],r=Lt(r[0],["tfdt"])[0],i&&(n=Nt(i).trackId),r&&(a=Ot(r).baseMediaDecodeTime),!t||(t=Mt(t)).samples&&t.samples.length&&(s=t.samples[0].compositionTimeOffset||0)),(a+s)/(e[n]||9e4)},qt=function(e){var t=0===e[0]?12:20;return jt(e[t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])},e=function(e){var e=Lt(e,["moov","trak"]),s=[];return e.forEach(function(e){var t={},i=Lt(e,["tkhd"])[0];i&&(i=(n=new DataView(i.buffer,i.byteOffset,i.byteLength)).getUint8(0),t.id=0===i?n.getUint32(12):n.getUint32(20));var n=Lt(e,["mdia","hdlr"])[0];n&&(a=At(n.subarray(8,12)),t.type="vide"===a?"video":"soun"===a?"audio":a);var r,a=Lt(e,["mdia","minf","stbl","stsd"])[0];a&&(a=a.subarray(8),t.codec=At(a.subarray(4,8)),(a=Lt(a,[t.codec])[0])&&(/^[a-z]vc[1-9]$/i.test(t.codec)?(r=a.subarray(78),"avcC"===At(r.subarray(4,8))&&11<r.length?(t.codec+=".",t.codec+=Ht(r[9]),t.codec+=Ht(r[10]),t.codec+=Ht(r[11])):t.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(t.codec)?(r=a.subarray(28),"esds"===At(r.subarray(4,8))&&20<r.length&&0!==r[19]?(t.codec+="."+Ht(r[19]),t.codec+="."+Ht(r[20]>>>2&63).replace(/^0/,"")):t.codec="mp4a.40.2"):t.codec=t.codec.toLowerCase()));e=Lt(e,["mdia","mdhd"])[0];e&&(t.timescale=qt(e)),s.push(t)}),s},Vt=j,Wt=e,zt=Ce,Gt={};Gt.ts={parseType:function(e,t){e=kt(e);return 0===e?"pat":e===t?"pmt":t?"pes":null},parsePat:function(e){var t=Ct(e),i=4+wt(e);return t&&(i+=e[i]+1),(31&e[i+10])<<8|e[i+11]},parsePmt:function(e){var t={},i=Ct(e),n=4+wt(e);if(i&&(n+=e[n]+1),1&e[n+5]){for(var r=3+((15&e[n+1])<<8|e[n+2])-4,a=12+((15&e[n+10])<<8|e[n+11]);a<r;){var s=n+a;t[(31&e[s+1])<<8|e[s+2]]=e[s],a+=5+((15&e[s+3])<<8|e[s+4])}return t}},parsePayloadUnitStartIndicator:Ct,parsePesType:function(e,t){switch(t[kt(e)]){case Be.H264_STREAM_TYPE:return"video";case Be.ADTS_STREAM_TYPE:return"audio";case Be.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!Ct(e))return null;var t=4+wt(e);if(t>=e.byteLength)return null;var i=null,n=e[t+7];return 192&n&&((i={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,i.pts*=4,i.pts+=(6&e[t+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,i.dts*=4,i.dts+=(6&e[t+18])>>>1)),i},videoPacketContainsKeyFrame:function(e){for(var t=4+wt(e),i=e.subarray(t),n=0,r=0,a=!1;r<i.byteLength-3;r++)if(1===i[r+2]){n=r+5;break}for(;n<i.byteLength;)switch(i[n]){case 0:if(0!==i[n-1]){n+=2;break}if(0!==i[n-2]){n++;break}for(r+3!==n-2&&"slice_layer_without_partitioning_rbsp_idr"===It(31&i[r+3])&&(a=!0);1!==i[++n]&&n<i.length;);r=n-2,n+=3;break;case 1:if(0!==i[n-1]||0!==i[n-2]){n+=3;break}"slice_layer_without_partitioning_rbsp_idr"===It(31&i[r+3])&&(a=!0),r=n-2,n+=3;break;default:n+=3}return i=i.subarray(r),n-=r,r=0,a=i&&3<i.byteLength&&"slice_layer_without_partitioning_rbsp_idr"===It(31&i[r+3])?!0:a}},Gt.aac=lt;function Xt(e,t,i){for(var n,r,a,s,o=0,u=188,l=!1;u<=e.byteLength;
395)if(71!==e[o]||71!==e[u]&&u!==e.byteLength)o++,u++;else{if(n=e.subarray(o,u),"pes"===Gt.ts.parseType(n,t.pid)&&(r=Gt.ts.parsePesType(n,t.table),a=Gt.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=Gt.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),l=!0)),l)break;o+=188,u+=188}for(o=(u=e.byteLength)-188,l=!1;0<=o;)if(71!==e[o]||71!==e[u]&&u!==e.byteLength)o--,u--;else{if(n=e.subarray(o,u),"pes"===Gt.ts.parseType(n,t.pid)&&(r=Gt.ts.parsePesType(n,t.table),a=Gt.ts.parsePayloadUnitStartIndicator(n),"audio"===r&&a&&(s=Gt.ts.parsePesTime(n))&&(s.type="audio",i.audio.push(s),l=!0)),l)break;o-=188,u-=188}}function Kt(e){var t,i={pid:null,table:null},n={};for(t in!function(e,t){for(var i,n=0,r=188;r<e.byteLength;)if(71!==e[n]||71!==e[r])n++,r++;else{switch(i=e.subarray(n,r),Gt.ts.parseType(i,t.pid)){case"pat":t.pid=Gt.ts.parsePat(i);break;case"pmt":var a=Gt.ts.parsePmt(i);t.table=t.table||{},Object.keys(a).forEach(function(e){t.table[e]=a[e]})}n+=188,r+=188}}(e,i),i.table)if(i.table.hasOwnProperty(t))switch(i.table[t]){case Be.H264_STREAM_TYPE:n.video=[],function(e,t,i){for(var n,r,a,s,o,u,l,c,d=0,h=188,p=!1,f={data:[],size:0};h<e.byteLength;)if(71!==e[d]||71!==e[h])d++,h++;else{if(n=e.subarray(d,h),"pes"===Gt.ts.parseType(n,t.pid))if(r=Gt.ts.parsePesType(n,t.table),a=Gt.ts.parsePayloadUnitStartIndicator(n),"video"===r&&(a&&!p&&(s=Gt.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),p=!0),!i.firstKeyFrame)){if(a&&0!==f.size){for(o=new Uint8Array(f.size),u=0;f.data.length;)l=f.data.shift(),o.set(l,u),u+=l.byteLength;!Gt.ts.videoPacketContainsKeyFrame(o)||(c=Gt.ts.parsePesTime(o))&&(i.firstKeyFrame=c,i.firstKeyFrame.type="video"),f.size=0}f.data.push(n),f.size+=n.byteLength}if(p&&i.firstKeyFrame)break;d+=188,h+=188}for(d=(h=e.byteLength)-188,p=!1;0<=d;)if(71!==e[d]||71!==e[h])d--,h--;else{if(n=e.subarray(d,h),"pes"===Gt.ts.parseType(n,t.pid)&&(r=Gt.ts.parsePesType(n,t.table),a=Gt.ts.parsePayloadUnitStartIndicator(n),"video"===r&&a&&(s=Gt.ts.parsePesTime(n))&&(s.type="video",i.video.push(s),p=!0)),p)break;d-=188,h-=188}}(e,i,n),0===n.video.length&&delete n.video;break;case Be.ADTS_STREAM_TYPE:n.audio=[],Xt(e,i,n),0===n.audio.length&&delete n.audio}return n}var Yt=se,Qt=function(e,t){var i,n,r=(Gt.aac.isLikelyAacData(e)?function(e){for(var t,i=!1,n=0,r=null,a=null,s=0,o=0;3<=e.length-o;){switch(Gt.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){i=!0;break}if((s=Gt.aac.parseId3TagSize(e,o))>e.length){i=!0;break}null===a&&(t=e.subarray(o,o+s),a=Gt.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){i=!0;break}if((s=Gt.aac.parseAdtsSize(e,o))>e.length){i=!0;break}null===r&&(t=e.subarray(o,o+s),r=Gt.aac.parseSampleRate(t)),n++,o+=s;break;default:o++}if(i)return null}if(null===r||null===a)return null;var u=Yt/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*n*u,pts:a+1024*n*u}]}}:Kt)(e);return r&&(r.audio||r.video)?(e=t,(t=r).audio&&t.audio.length&&("undefined"!=typeof(i=e)&&!isNaN(i)||(i=t.audio[0].dts),t.audio.forEach(function(e){e.dts=zt(e.dts,i),e.pts=zt(e.pts,i),e.dtsTime=e.dts/Yt,e.ptsTime=e.pts/Yt})),t.video&&t.video.length&&("undefined"!=typeof(n=e)&&!isNaN(n)||(n=t.video[0].dts),t.video.forEach(function(e){e.dts=zt(e.dts,n),e.pts=zt(e.pts,n),e.dtsTime=e.dts/Yt,e.ptsTime=e.pts/Yt}),t.firstKeyFrame&&((t=t.firstKeyFrame).dts=zt(t.dts,n),t.pts=zt(t.pts,n),t.dtsTime=t.dts/Yt,t.ptsTime=t.pts/Yt)),r):null},$t=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){var i,e;this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new xt.Transmuxer(this.options),i=this.self,(e=this.transmuxer).on("data",function(e){var t=e.initSegment;e.initSegment={data:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength};t=e.data;e.data=t.buffer,i.postMessage({action:"data",segment:e,byteOffset:t.byteOffset,byteLength:t.byteLength},[e.data])}),e.on("done",function(e){i.postMessage({action:"done"})}),e.on("gopInfo",function(e){i.postMessage({action:"gopInfo",gopInfo:e})}),e.on("videoSegmentTimingInfo",function(e){var t={start:{decode:ue(e.start.dts),presentation:ue(e.start.pts)},end:{decode:ue(e.end.dts),presentation:ue(e.end.pts)},baseMediaDecodeTime:ue(e.baseMediaDecodeTime)};
vendor: 5,643 bytes, line 395
395e.prependedContentDuration&&(t.prependedContentDuration=ue(e.prependedContentDuration)),i.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:t})}),e.on("audioSegmentTimingInfo",function(e){var t={start:{decode:ue(e.start.dts),presentation:ue(e.start.pts)},end:{decode:ue(e.end.dts),presentation:ue(e.end.pts)},baseMediaDecodeTime:ue(e.baseMediaDecodeTime)};e.prependedContentDuration&&(t.prependedContentDuration=ue(e.prependedContentDuration)),i.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:t})}),e.on("id3Frame",function(e){i.postMessage({action:"id3Frame",id3Frame:e})}),e.on("caption",function(e){i.postMessage({action:"caption",caption:e})}),e.on("trackinfo",function(e){i.postMessage({action:"trackinfo",trackInfo:e})}),e.on("audioTimingInfo",function(e){i.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ue(e.start),end:ue(e.end)}})}),e.on("videoTimingInfo",function(e){i.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ue(e.start),end:ue(e.end)}})}),e.on("log",function(e){i.postMessage({action:"log",log:e})})},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new Ft,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),e=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:e&&e.captions||[],logs:e&&e.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,e=e.data,t=Vt(t,e);this.self.postMessage({action:"probeMp4StartTime",startTime:t,data:e},[e.buffer])},t.probeMp4Tracks=function(e){var t=e.data,e=Wt(t);this.self.postMessage({action:"probeMp4Tracks",tracks:e,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,i=e.baseStartTime,e="number"!=typeof i||isNaN(i)?void 0:i*se,i=Qt(t,e),e=null;i&&((e={hasVideo:i.video&&2===i.video.length||!1,hasAudio:i.audio&&2===i.audio.length||!1}).hasVideo&&(e.videoStart=i.video[0].ptsTime),e.hasAudio&&(e.audioStart=i.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:e,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){e=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(e)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){e=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(oe(e)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(oe(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new $t(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new $t(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),sl=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():hu(e.currentTransmux))},ol=function(e){fu("reset",e)},ul=function(e){var t=new al;t.currentTransmux=null,t.transmuxQueue=[];var i=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,i.call(t)},t.postMessage({action:"init",options:e}),t},ll=2,cl=-101,dl=-102,hl=yo("CodecUtils"),pl=yo("PlaylistSelector"),Kt=function(){var e=this.useDevicePixelRatio&&_.devicePixelRatio||1;return Nu(this.playlists.master,this.systemBandwidth,parseInt(Ou(this.tech_.el(),"width"),10)*e,parseInt(Ou(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},fl=function(n){function e(e,t){var i=n.call(this)||this;if(!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=e.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=e.hasPlayed,i.currentTime_=e.currentTime,i.seekable_=e.seekable,i.seeking_=e.seeking,i.duration_=e.duration,i.mediaSource_=e.mediaSource,i.vhs_=e.vhs,i.loaderType_=e.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=e.segmentMetadataTrack,i.goalBufferLength_=e.goalBufferLength,i.sourceType_=e.sourceType,i.sourceUpdater_=e.sourceUpdater,i.inbandTextTracks_=e.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=e.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=e.parse708captions,i.experimentalExactManifestTimings=e.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=11<=ir.browser.IE_VERSION,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={}
vendor: 4,681 bytes, line 395
395,i.cacheEncryptionKeys_=e.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=e.decrypter,i.syncController_=e.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",function(){i.isEndOfStream_()||(i.ended_=!1)}),i.fetchAtBuffer_=!1,i.logger_=yo("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(yt(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()}),i}vt(e,n);var t=e.prototype;return t.createTransmuxer_=function(){return ul({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_})},t.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},t.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&_.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},t.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},t.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},t.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,_.clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},t.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},t.error=function(e){return"undefined"!=typeof e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},t.endOfStream=function(){this.ended_=!0,this.transmuxer_&&ol(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},t.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return ir.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,i=e.hasVideo,e=e.isMuxed;if(i&&t&&!this.audioDisabled_&&!e)return this.sourceUpdater_.buffered();if(i)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},t.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=iu(e),n=this.initSegments_[i];return t&&!n&&e.bytes&&(this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),n||e},t.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=nu(e),n=this.keyCache_[i];this.cacheEncryptionKeys_&&t&&!n&&e.bytes&&(this.keyCache_[i]=n={resolvedUri:e.resolvedUri,bytes:e.bytes});e={resolvedUri:(n||e).resolvedUri};return n&&(e.bytes=n.bytes),e},t.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},t.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},t.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},t.playlist=function(e,t){if(void 0===t&&(t={}),e){var i=this.playlist_,n=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(i&&(i.id?r=i.id:i.uri&&(r=i.uri)),this.logger_("playlist update ["+r
395+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!i||i.uri!==e.uri)return null!==this.mediaIndex&&this.resyncLoader(),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");t=e.mediaSequence-i.mediaSequence;this.logger_("live window shift ["+t+"]"),null!==this.mediaIndex&&(this.mediaIndex-=t,this.mediaIndex<0?(this.mediaIndex=null,this.partIndex=null):(r=this.playlist_.segments[this.mediaIndex],!this.partIndex||r.parts&&r.parts.length&&r.parts[this.partIndex]||(r=this.mediaIndex,this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=r))),n&&(n.mediaIndex-=t,n.mediaIndex<0?(n.mediaIndex=null,n.partIndex=null):(0<=n.mediaIndex&&(n.segment=e.segments[n.mediaIndex]),0<=n.partIndex&&n.segment.parts&&(n.part=n.segment.parts[n.partIndex]))),this.syncController_.saveExpiredSegmentInfo(i,e)}},t.pause=function(){this.checkBufferTimeout_&&(_.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},t.paused=function(){return null===this.checkBufferTimeout_},t.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"})},t.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},t.resyncLoader=function(){this.transmuxer_&&ol(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},t.remove=function(e,t,i,n){if(void 0===i&&(i=function(){}),void 0===n&&(n=!1),(t=t===1/0?this.duration_():t)<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r,a=1,s=function(){0===--a&&i()};for(r in!n&&this.audioDisabled_||(a++,this.sourceUpdater_.removeAudio(e,t,s)),!n&&"main"!==this.loaderType_||(this.gopBuffer_=function(e,t,i,n){for(var r=Math.ceil((t-n)*Gu),a=Math.ceil((i-n)*Gu),n=e.slice(),s=e.length;s--&&!(e[s].pts<=a););if(-1===s)return n;for(var o=s+1;o--&&!(e[o].pts<=r););return o=Math.max(o,0),n.splice(o,s-o+1),n}(this.gopBuffer_,e,t,this.timeMapping_),a++,this.sourceUpdater_.removeVideo(e,t,s)),this.inbandTextTracks_)Bu(e,t,this.inbandTextTracks_[r]);Bu(e,t,this.segmentMetadataTrack_),s()}else this.logger_("skipping remove because no source updater or starting media info")},t.monitorBuffer_=function(){this.checkBufferTimeout_&&_.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=_.setTimeout(this.monitorBufferTick_.bind(this),1)},t.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&_.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=_.setTimeout(this.monitorBufferTick_.bind(this),500)},t.fillBuffer_=function(){var e;
395this.sourceUpdater_.updating()||(e=this.chooseNextRequest_())&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))},t.isEndOfStream_=function(e,t,i){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===i&&(i=this.partIndex),!t||!this.mediaSource_)return!1;var n="number"==typeof e&&t.segments[e],e=e+1===t.segments.length,n=!n||!n.parts||i+1===n.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&e&&n},t.chooseNextRequest_=function(){var e=Eo(this.buffered_())||0,t=Math.max(0,e-this.currentTime_()),i=!this.hasPlayed_()&&1<=t,n=t>=this.goalBufferLength_(),r=this.playlist_.segments;if(!r.length||i||n)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());t={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};t.isSyncRequest?t.mediaIndex=function(e,t,i){t=t||[];for(var n=[],r=0,a=0;a<t.length;a++){var s=t[a];if(e===s.timeline&&(n.push(a),i<(r+=s.duration)))return a}return 0===n.length?0:n[n.length-1]}(this.currentTimeline_,r,e):null!==this.mediaIndex?(i=r[this.mediaIndex],n="number"==typeof this.partIndex?this.partIndex:-1,t.startOfSegment=i.end||e,i.parts&&i.parts[n+1]?(t.mediaIndex=this.mediaIndex,t.partIndex=n+1):t.mediaIndex=this.mediaIndex+1):(e=(s=Qu.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?e:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time})).segmentIndex,a=s.startTime,s=s.partIndex,t.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd":"currentTime",t.mediaIndex=e,t.startOfSegment=a,t.partIndex=s);var a=r[t.mediaIndex],s=a&&"number"==typeof t.partIndex&&a.parts&&a.parts[t.partIndex];if(!a||"number"==typeof t.partIndex&&!s)return null;"number"!=typeof t.partIndex&&a.parts&&(t.partIndex=0);a=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return t.mediaIndex>=r.length-1&&a&&!this.seeking_()?null:this.generateSegmentInfo_(t)},t.generateSegmentInfo_=function(e){var t=e.playlist,i=e.mediaIndex,n=e.startOfSegment,r=e.isSyncRequest,a=e.partIndex,s=e.forceTimestampOffset,o=e.getMediaInfoForTime,u=t.segments[i],e="number"==typeof a&&u.parts[a],o={requestId:"segment-loader-"+Math.random(),uri:e&&e.resolvedUri||u.resolvedUri,mediaIndex:i,partIndex:e?a:null,isSyncRequest:r,startOfSegment:n,playlist:t,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:e&&e.duration||u.duration,segment:u,part:e,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:o},s="undefined"!=typeof s?s:this.isPendingTimestampOffset_;o.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:n,buffered:this.buffered_(),overrideCheck:s});s=Eo(this.sourceUpdater_.audioBuffered());return"number"==typeof s&&(o.audioAppendStart=s-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(o.gopsToAlignWith=function(e,t,i){if("undefined"==typeof t||null===t||!e.length)return[];for(var n=Math.ceil((t-i+3)*Gu),r=0;r<e.length&&!(e[r].pts>n);r++);return e.slice(r)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),o},t.timestampOffsetForSegment_=function(e){return i=(t=e).segmentTimeline,n=t.currentTimeline,r=t.startOfSegment,e=t.buffered,t.overrideCheck||i!==n?!(i<n)&&e.length?e.end(e.length-1):r:null;var t,i,n,r},t.earlyAbortWhenNeeded_=function(e){var t,i,n,r,a,s,o,u,l,c,d,h,p;!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3||(t=this.currentTime_(),r=e.bandwidth,a=this.pendingSegment_.duration,p=Qu.estimateSegmentRequestTime(a,r,this.playlist_,e.bytesReceived),i=this.buffered_(),n=t,void 0===(e=this.vhs_.tech_.playbackRate())&&
395(e=1),p<=(e=((i.length?i.end(i.length-1):0)-n)/e-1)||(r={master:this.vhs_.playlists.master,currentTime:t,bandwidth:r,duration:this.duration_(),segmentDuration:a,timeUntilRebuffer:e,currentTimeline:this.currentTimeline_,syncController:this.syncController_},a=r.master,s=r.currentTime,o=r.bandwidth,u=r.duration,l=r.segmentDuration,c=r.timeUntilRebuffer,d=r.currentTimeline,h=r.syncController,a=(r=(a=!(a=(r=a.playlists.filter(function(e){return!Qu.isIncompatible(e)})).filter(Qu.isEnabled)).length?r.filter(function(e){return!Qu.isDisabled(e)}):a).filter(Qu.hasAttribute.bind(null,"BANDWIDTH")).map(function(e){var t=h.getSyncPoint(e,u,d,s)?1:2;return{playlist:e,rebufferingImpact:Qu.estimateSegmentRequestTime(l,o,e)*t-c}})).filter(function(e){return e.rebufferingImpact<=0}),Ru(a,function(e,t){return Mu(t.playlist,e.playlist)}),(r=a.length?a[0]:(Ru(r,function(e,t){return e.rebufferingImpact-t.rebufferingImpact}),r[0]||null))&&(p=p-e-r.rebufferingImpact,!r.playlist||r.playlist.uri===this.playlist_.uri||p<(e<=Ku?1:.5)||(this.bandwidth=r.playlist.attributes.BANDWIDTH*rl.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))))))},t.handleAbort_=function(e){this.logger_("Aborting "+ju(e)),this.mediaRequestsAborted+=1},t.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},t.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var i=Object.keys(e).sort(),n=Object.keys(t).sort();if(i.length!==n.length)return!1;for(var r=0;r<i.length;r++){var a=i[r];if(a!==n[r])return!1;if(e[a]!==t[a])return!1}return!0}(this.currentMediaInfo_,t=t||{})||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},t.handleTimingInfo_=function(e,t,i,n){var r;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||((r=this.pendingSegment_)[e=Hu(t)]=r[e]||{},r[e][i]=n,this.logger_("timinginfo: "+t+" - "+i+" - "+n),this.hasEnoughInfoToAppend_()&&this.processCallQueue_())},t.handleCaptions_=function(e,t){var g,y,v=this;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(0!==t.length?this.pendingSegment_.hasAppendedData_?(g=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),y={},t.forEach(function(e){y[e.stream]=y[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=y[e.stream];t.startTime=Math.min(t.startTime,e.startTime+g),t.endTime=Math.max(t.endTime,e.endTime+g),t.captions.push(e)}),Object.keys(y).forEach(function(e){var t,i,n,r,a,s,o,u,l,c,d=y[e],h=d.startTime,p=d.endTime,f=d.captions,m=v.inbandTextTracks_;v.logger_("adding cues from "+h+" -> "+p+" for "+e),t=m,i=v.vhs_.tech_,t[n=e]||(i.trigger({type:"usage",name:"vhs-608"}),i.trigger({type:"usage",name:"hls-608"}),/^cc708_/.test(r=n)&&(r="SERVICE"+n.split("_")[1]),(o=i.textTracks().getTrackById(r))?t[n]=o:(s=a=n,d=!1,(o=(i.options_.vhs&&i.options_.vhs.captionServices||{})[r])&&(a=o.label,s=o.language,d=o.default),t[n]=i.addRemoteTextTrack({kind:"captions",id:r,default:d,label:a,language:s},!1).track)),Bu(h,p,m[e]),l=(f={captionArray:f,inbandTextTracks:m,timestampOffset:g}).inbandTextTracks,m=f.captionArray,c=f.timestampOffset,m&&(u=_.WebKitDataCue||_.VTTCue,m.forEach(function(e){var t=e.stream;l[t].addCue(new u(e.startTime+c,e.endTime+c,e.text))}))}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})):this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t)):this.logger_("SegmentLoader received no captions from a caption event"))},t.handleId3_=function(e,t,i){var n,r,a,s;this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?(n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),r=this.inbandTextTracks_,a=i,s=this.vhs_.tech_,r.metadataTrack_||(r.metadataTrack_=s.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,r.metadataTrack_.inBandMetadataTrackDispatchType=a),Uu({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:n,videoDuration:this.duration_()})):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,i)))},t.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach(function(e){return e()}),this.metadataQueue_.caption.forEach(function(e){return e()}),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},t.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach(function(e){return e()})},t.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach(function(e){return e()})},t.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!qu({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},t.getCurrentMediaInfo_=function(e){return(e=void 0===e?this.pendingSegment_:e)&&e.trackInfo||this.currentMediaInfo_},t.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},t.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var i=t.hasAudio,n=t.hasVideo,t=t.isMuxed;return!(n&&!e.videoTimingInfo)&&(!(i&&!this.audioDisabled_&&!t&&!e.audioTimingInfo)&&!qu({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},t.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var i,n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.ke
395y,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4?(this.trigger("fmp4"),n.timingInfo.start=n[Hu(t.type)].start):(i=this.getCurrentMediaInfo_(),(i="main"===this.loaderType_&&i&&i.hasVideo)&&(r=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:i,firstVideoFrameTimeForData:r,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})),this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var r=this.chooseNextRequest_();if(r.mediaIndex!==n.mediaIndex||r.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},t.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},t.getInitSegmentAndUpdateState_=function(e){var t=e.type,i=e.initSegment,n=e.map,r=e.playlist;if(n){e=iu(n);if(this.activeInitSegmentId_===e)return null;i=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=e}return i&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,i):null},t.handleQuotaExceededError_=function(e,t){var i=this,n=e.segmentInfo,r=e.type,a=e.bytes,s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();1<s.length&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+So(s).join(", ")),1<o.length&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+So(o).join(", "));var u=s.length?s.start(0):0,l=s.length?s.end(s.length-1):0,c=o.length?o.start(0):0,e=o.length?o.end(o.length-1):0;if(l-u<=1&&e-c<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+a.byteLength+", audio buffer: "+So(s).join(", ")+", video buffer: "+So(o).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:n,type:r,bytes:a}));a=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+a),this.remove(0,a,function(){i.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=_.setTimeout(function(){i.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),i.quotaExceededErrorRetryTimeout_=null,i.processCallQueue_()},1e3)},!0)},t.handleAppendError_=function(e,t){var i=e.segmentInfo,n=e.type,e=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(n+" append of "+e.length+"b failed for segment #"+i.mediaIndex+" in playlist "+i.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:i,type:n,bytes:e}))},t.appendToSourceBuffer_=function(e){var t,i,n=e.segmentInfo,r=e.type,a=e.initSegment,s=e.data,o=e.bytes;o||(e=[s],s=s.byteLength,a&&(e.unshift(a),s+=a.byteLength),i=0,(e={bytes:s,segments:e}).bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(function(e){t.set(e,i),i+=e.byteLength})),o=t),this.sourceUpdater_.appendBuffer({segmentInfo:n,type:r,bytes:o},this.handleAppendError_.bind(this,{segmentInfo:n,type:r,bytes:o}))},t.handleSegmentTimingInfo_=function(e,t,i){this.pendingSegment_&&t===this.pendingSegment_.requestId&&((t=this.pendingSegment_.segment)[e=e+"TimingInfo"]||(t[e]={}),t[e].transmuxerPrependedSeconds=i.prependedContentDuration||0,t[e].transmuxedPresentationStart=i.start.presentation,t[e].transmuxedDecodeStart=i.start.decode,t[e].transmuxedPresentationEnd=i.end.presentation,t[e].transmuxedDecodeEnd=i.end.decode,t[e].baseMediaDecodeTime=i.baseMediaDecodeTime)},t.appendData_=function(e,t){var i=t.type,n=t.data;n&&n.byteLength&&("audio"===i&&this.audioDisabled_||(t=this.getInitSegmentAndUpdateState_({type:i,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null}),this.appendToSourceBuffer_({segmentInfo:e,type:i,initSegment:t,data:n})))},t.loadSegment_=function(t){var i=this;this.state="WAITING",this.pendingSegment_=t,this.trimBackBuffer_(t),"number"==typeof t.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(t):this.loadQueue_.push(function(){var e=b({},t,{forceTimestampOffset:!0});b(t,i.generateSegmentInfo_(e)),i.isPendingTimestampOffset_=!1,i.updateTransmuxerAndRequestSegment_(t)})},t.updateTransmuxerAndRequestSegment_=function(n){var r=this;this.shouldUpdateTransmuxerTimestampOffset_(n.timestampOffset)&&(this.gopBuffer_.length=0,n.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:n.timestampOffset}));
395var e=this.createSimplifiedSegmentObj_(n),t=this.isEndOfStream_(n.mediaIndex,n.playlist,n.partIndex),i=null!==this.mediaIndex,a=n.timeline!==this.currentTimeline_&&0<n.timeline,a=t||i&&a;this.logger_("Requesting "+ju(n)),e.map&&!e.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),n.abortRequests=Iu({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:e,abortFn:this.handleAbort_.bind(this,n),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",n.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",n.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:a,endedTimelineFn:function(){r.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(e){var t=e.message,i=e.level,e=e.stream;r.logger_(ju(n)+" logged from transmuxer stream "+e+" as a "+i+": "+t)}})},t.trimBackBuffer_=function(e){var t,i,n,r,r=(t=this.seekable_(),i=this.currentTime_(),n=this.playlist_.targetDuration||10,r=i-rl.BACK_BUFFER_LENGTH,t.length&&(r=Math.max(r,t.start(0))),Math.min(i-n,r));0<r&&this.remove(0,r)},t.createSimplifiedSegmentObj_=function(e){var t=e.segment,i=e.part,n={resolvedUri:(i||t).resolvedUri,byterange:(i||t).byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},i=e.playlist.segments[e.mediaIndex-1];return i&&i.timeline===t.timeline&&(i.videoTimingInfo?n.baseStartTime=i.videoTimingInfo.transmuxedDecodeEnd:i.audioTimingInfo&&(n.baseStartTime=i.audioTimingInfo.transmuxedDecodeEnd)),t.key&&(e=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]),n.key=this.segmentKey(t.key),n.key.iv=e),t.map&&(n.map=this.initSegmentForMap(t.map)),n},t.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},t.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<1/60?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+1/60):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},t.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},t.segmentRequestFinished_=function(e,t,i){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,i));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e)return this.pendingSegment_=null,this.state="READY",e.code===dl?void 0:(this.pause(),e.code===cl?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error")));e=this.pendingSegment_;this.saveBandwidthRelatedStats_(e.duration,t.stats),e.endOfAllRequests=t.endOfAllRequests,i.gopInfo&&(this.gopBuffer_=function(e,t,i){if(!t.length)return e;if(i)return t.slice();for(var n=t[0].pts,r=0;r<e.length&&!(e[r].pts>=n);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,i.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(e)}},t.setTimeMapping_=function(e){e=this.syncController_.mappingForTimeline(e);null!==e&&(this.timeMapping_=e)},t.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},t.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},t.trueSegmentStart_=function(e){var t=e.currentStart,i=e.playlist,n=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo,e=e.audioTimingInfo;if("undefined"!=typeof t)return t;if(!s)return e.start;i=i.segments[n-1];return 0!==n&&i&&"undefined"!=typeof i.start&&i.end===r+a?o.start:r},t.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var i=t.hasAudio,n=t.hasVideo,t=t.isMuxed,n="main"===this.loaderType_&&n,t=!this.audioDisabled_&&i&&!t;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);n&&e.waitingOnAppends++,t&&e.waitingOnAppends++,n&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),t&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},t.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||
395(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},t.checkForIllegalMediaSwitch=function(e){var t,i,e=(t=this.loaderType_,i=this.getCurrentMediaInfo_(),e=e,"main"===t&&i&&e?e.hasAudio||e.hasVideo?i.hasVideo&&!e.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!i.hasVideo&&e.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null);return!!e&&(this.error({message:e,blacklistDuration:1/0}),this.trigger("error"),!0)},t.updateSourceBufferTimestampOffset_=function(e){var t;null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_||(t=!1,e.timestampOffset-=e.timingInfo.start,e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset"))},t.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),t="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;t&&(e.timingInfo.end="number"==typeof t.end?t.end:t.start+e.duration)},t.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=Wu(e,this.sourceType_);t&&("warn"===t.severity?ir.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)?(this.logger_("Appended "+ju(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate"),(t=e.segment).end&&this.currentTime_()-t.end>3*e.playlist.targetDuration?this.resetEverything():(null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_())):this.logger_("Throwing away un-appended sync request "+ju(e))},t.recordThroughput_=function(e){var t,i;e.duration<1/60?this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+1/60):(t=this.throughput.rate,i=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/i*8*1e3),this.throughput.rate+=(i-t)/++this.throughput.count)},t.addSegmentMetadataCue_=function(e){var t,i,n,r;this.segmentMetadataTrack_&&(i=(t=e.segment).start,r=t.end,Fu(i)&&Fu(r)&&(Bu(i,r,this.segmentMetadataTrack_),n=_.WebKitDataCue||_.VTTCue,e={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:i,end:r},(r=new n(i,r,JSON.stringify(e))).value=e,this.segmentMetadataTrack_.addCue(r)))},e}(ir.EventTarget);function ml(){}function gl(e){return"string"!=typeof e?e:e.replace(/./,function(e){return e.toUpperCase()})}function yl(e,t){var i=t[e+"Buffer"];return i&&i.updating||t.queuePending[e]}function vl(e,t){if(0!==t.queue.length){var i=0,n=t.queue[i];if("mediaSource"!==n.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!yl(e,t)){if(n.type!==e){if(null===(i=function(e,t){for(var i=0;i<t.length;i++){var n=t[i];if("mediaSource"===n.type)return null;if(n.type===e)return i}return null}(e,t.queue)))return;n=t.queue[i]}t.queue.splice(i,1),(t.queuePending[e]=n).action(e,t),n.doneFn||(t.queuePending[e]=null,vl(e,t))}}else t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),n.action(t),n.doneFn&&n.doneFn(),vl("audio",t),vl("video",t))}}function _l(e,t){var i=t[e+"Buffer"],n=gl(e);
395i&&(i.removeEventListener("updateend",t["on"+n+"UpdateEnd_"]),i.removeEventListener("error",t["on"+n+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)}function bl(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)}function Tl(e){var t=e.type,i=e.sourceUpdater,n=e.action,r=e.doneFn,e=e.name;i.queue.push({type:t,action:n,doneFn:r,name:e}),vl(t,i)}function Sl(i,n){return function(e){var t;n.queuePending[i]&&(t=n.queuePending[i].doneFn,n.queuePending[i]=null,t&&t(n[i+"Error_"])),vl(i,n)}}function El(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))}function kl(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)}function Cl(e,t){(t.activePlaylistLoader=e).load()}function wl(e,t){for(var i=0;i<e.length;i++){if(Uo(t,e[i]))return!0;if(e[i].playlists&&wl(e[i].playlists,t))return!0}return!1}function Il(a){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){$l[e](e,a)});var e,s=a.mediaTypes,t=a.masterPlaylistLoader,i=a.tech,n=a.vhs,r=a.segmentLoaders,o=r.AUDIO,u=r.main;function l(){s.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})}for(e in["AUDIO","SUBTITLES"].forEach(function(e){var u,l,o,c,t,i,d,h,n,r;s[e].activeGroup=(u=e,l=a,function(t){var e=l.masterPlaylistLoader,i=l.mediaTypes[u].groups,n=e.media();if(!n)return null;var r=null;n.attributes[u]&&(r=i[n.attributes[u]]);var a=Object.keys(i);if(!r)if("AUDIO"===u&&1<a.length&&Fo(l.master))for(var s=0;s<a.length;s++){var o=i[a[s]];if(wl(o,n)){r=o;break}}else i.main?r=i.main:1===a.length&&(r=i[a[0]]);return"undefined"==typeof t?r:null!==t&&r&&r.filter(function(e){return e.id===t.id})[0]||null}),s[e].activeTrack=Jl[e](e,a),s[e].onGroupChanged=(o=e,c=a,function(){var e=c.segmentLoaders,t=e[o],i=e.main,n=c.mediaTypes[o],r=n.activeTrack(),a=n.getActiveGroup(),s=n.activePlaylistLoader,e=n.lastGroup_;a&&e&&a.id===e.id||(n.lastGroup_=a,n.lastTrack_=r,kl(t,n),a&&!a.isMasterPlaylist&&(a.playlistLoader?(t.resyncLoader(),Cl(a.playlistLoader,n)):s&&i.resetEverything()))}),s[e].onGroupChanging=(t=e,i=a,function(){var e=i.segmentLoaders[t];i.mediaTypes[t].lastGroup_=null,e.abort(),e.pause()}),s[e].onTrackChanged=(d=e,h=a,function(){var e=h.masterPlaylistLoader,t=h.segmentLoaders,i=t[d],n=t.main,r=h.mediaTypes[d],a=r.activeTrack(),s=r.getActiveGroup(),o=r.activePlaylistLoader,u=r.lastTrack_;if((!u||!a||u.id!==a.id)&&(r.lastGroup_=s,r.lastTrack_=a,kl(i,r),s)){if(s.isMasterPlaylist){if(!a||!u||a.id===u.id)return;var l=h.vhs.masterPlaylistController_,t=l.selectPlaylist();return l.media()===t?void 0:(r.logger_("track change. Switching master audio from "+u.id+" to "+a.id),e.pause(),n.resetEverything(),void l.fastQualityChange_(t))}if("AUDIO"===d){if(!s.playlistLoader)return n.setAudio(!0),void n.resetEverything();i.setAudio(!0),n.setAudio(!1)}o!==s.playlistLoader&&(i.track&&i.track(a),i.resetEverything()),Cl(s.playlistLoader,r)}}),s[e].getActiveGroup=(n=e,r=a.mediaTypes,function(){var e=r[n].activeTrack();return e?r[n].activeGroup(e):null})}),(r=s.AUDIO.activeGroup())&&(r=(r.filter(function(e){return e.default})[0]||r[0]).id,s.AUDIO.tracks[r].enabled=!0,s.AUDIO.onGroupChanged(),s.AUDIO.onTrackChanged(),s.AUDIO.getActiveGroup().playlistLoader?(u.setAudio(!1),o.setAudio(!0)):u.setAudio(!0)),t.on("mediachange",function(){["AUDIO","SUBTITLES"].forEach(function(e){return s[e].onGroupChanged()})}),t.on("mediachanging",function(){["AUDIO","SUBTITLES"].forEach(function(e){return s[e].onGroupChanging()})}),i.audioTracks().addEventListener("change",l),i.remoteTextTracks().addEventListener("change",s.SUBTITLES.onTrackChanged),n.on("dispose",function(){i.audioTracks().removeEventListener("change",l),i.remoteTextTracks().removeEventListener("change",s.SUBTITLES.onTrackChanged)}),i.clearTracks("audio"),s.AUDIO.tracks)i.audioTracks().addTrack(s.AUDIO.tracks[e])}function xl(e,t,i){var n,r,a,s,o=e.masterPlaylistController_,u=o[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(o);t.attributes&&(n=t.attributes.RESOLUTION,this.width=n&&n.width,this.height=n&&n.height,this.bandwidth=t.attributes.BANDWIDTH),this.codecs=Lu(o.master(),t),this.playlist=t,this.id=i,this.enabled=(r=e.playlists,a=t.id,s=u,function(e){var t=r.master.playlists[a],i=Oo(t),n=Ro(t);return"undefined"==typeof e?n:(e?delete t.disabled:t.disabled=!0,e===n||i||(s(),e?r.trigger("renditionenabled"):r.trigger("renditiondisabled")),e)})}function Al(t,e){var i=0,n=0,r=ir.mergeOptions(nc,e);function a(){n&&t.currentTime(n)}function s(e){null!=e&&(n=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",a),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())}function o(){return Date.now()-i<1e3*r.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):r.getSource&&"function"==typeof r.getSource?(i=Date.now(),r.getSource.call(t,s)):void ir.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}function u(){t.off("loadedmetadata",a),t.off("error",o),t.off("dispose",u)}t.ready(function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}),t.on("error",o),t.on("dispose",u),t.reloadSourceOnError=function(e){u(),Al(t,e)}}var Pl,Ll=["video","audio"],Dl=function(n,r,a){return function(t,i){var e=i[t+"Buffer"];if(bl(i.mediaSource,e)){i.logger_("Appending segment "+r.mediaIndex+"'s "+n.length+" b
395ytes to "+t+"Buffer");try{e.appendBuffer(n)}catch(e){i.logger_("Error with code "+e.code+" "+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+r.mediaIndex+" to "+t+"Buffer"),i.queuePending[t]=null,a(e)}}}},Ol=function(n,r){return function(t,i){var e=i[t+"Buffer"];if(bl(i.mediaSource,e)){i.logger_("Removing "+n+" to "+r+" from "+t+"Buffer");try{e.remove(n,r)}catch(e){i.logger_("Remove "+n+" to "+r+" from "+t+"Buffer failed")}}}},Rl=function(n){return function(e,t){var i=t[e+"Buffer"];bl(t.mediaSource,i)&&(t.logger_("Setting "+e+"timestampOffset to "+n),i.timestampOffset=n)}},Ml=function(i){return function(e,t){i()}},Nl=function(t){return function(e){if("open"===e.mediaSource.readyState){e.logger_("Calling mediaSource endOfStream("+(t||"")+")");try{e.mediaSource.endOfStream(t)}catch(e){ir.log.warn("Failed to call media source endOfStream",e)}}}},Ul=function(t){return function(e){e.logger_("Setting mediaSource duration to "+t);try{e.mediaSource.duration=t}catch(e){ir.log.warn("Failed to set media source duration",e)}}},Bl=function(){return function(t,e){if("open"===e.mediaSource.readyState){var i=e[t+"Buffer"];if(bl(e.mediaSource,i)){e.logger_("calling abort on "+t+"Buffer");try{i.abort()}catch(e){ir.log.warn("Failed to abort on "+t+"Buffer",e)}}}}},Fl=function(n,r){return function(e){var t=gl(n),i=gr(r);e.logger_("Adding "+n+"Buffer with codec "+r+" to mediaSource");i=e.mediaSource.addSourceBuffer(i);i.addEventListener("updateend",e["on"+t+"UpdateEnd_"]),i.addEventListener("error",e["on"+t+"Error_"]),e.codecs[n]=r,e[n+"Buffer"]=i}},jl=function(i){return function(e){var t=e[i+"Buffer"];if(_l(i,e),bl(e.mediaSource,t)){e.logger_("Removing "+i+"Buffer with codec "+e.codecs[i]+" from mediaSource");try{e.mediaSource.removeSourceBuffer(t)}catch(e){ir.log.warn("Failed to removeSourceBuffer "+i+"Buffer",e)}}}},Hl=function(r){return function(e,t){var i=t[e+"Buffer"],n=gr(r);
vendor: 1,299 bytes, line 395
395bl(t.mediaSource,i)&&t.codecs[e]!==r&&(t.logger_("changing "+e+"Buffer codec from "+t.codecs[e]+" to "+r),i.changeType(n),t.codecs[e]=r)}},ql=function(i){function e(e){var t=i.call(this)||this;return t.mediaSource=e,t.sourceopenListener_=function(){return vl("mediaSource",yt(t))},t.mediaSource.addEventListener("sourceopen",t.sourceopenListener_),t.logger_=yo("SourceUpdater"),t.audioTimestampOffset_=0,t.videoTimestampOffset_=0,t.queue=[],t.queuePending={audio:null,video:null},t.delayedAudioAppendQueue_=[],t.videoAppendQueued_=!1,t.codecs={},t.onVideoUpdateEnd_=Sl("video",yt(t)),t.onAudioUpdateEnd_=Sl("audio",yt(t)),t.onVideoError_=function(e){t.videoError_=e},t.onAudioError_=function(e){t.audioError_=e},t.createdSourceBuffers_=!1,t.initializedEme_=!1,t.triggeredReady_=!1,t}vt(e,i);var t=e.prototype;return t.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},t.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},t.hasInitializedAnyEme=function(){return this.initializedEme_},t.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},t.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
vendor: 8,634 bytes, line 395
395,t.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},t.addSourceBuffer=function(e,t){Tl({type:"mediaSource",sourceUpdater:this,action:Fl(e,t),name:"addSourceBuffer"})},t.abort=function(e){Tl({type:e,sourceUpdater:this,action:Bl(e),name:"abort"})},t.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?Tl({type:"mediaSource",sourceUpdater:this,action:jl(e),name:"removeSourceBuffer"}):ir.log.error("removeSourceBuffer is not supported!")},t.canRemoveSourceBuffer=function(){return!ir.browser.IE_VERSION&&!ir.browser.IS_FIREFOX&&_.MediaSource&&_.MediaSource.prototype&&"function"==typeof _.MediaSource.prototype.removeSourceBuffer},e.canChangeType=function(){return _.SourceBuffer&&_.SourceBuffer.prototype&&"function"==typeof _.SourceBuffer.prototype.changeType},t.canChangeType=function(){return this.constructor.canChangeType()},t.changeType=function(e,t){this.canChangeType()?Tl({type:e,sourceUpdater:this,action:Hl(t),name:"changeType"}):ir.log.error("changeType is not supported!")},t.addOrChangeSourceBuffers=function(i){var n=this;if(!i||"object"!=typeof i||0===Object.keys(i).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(i).forEach(function(e){var t=i[e];if(!n.hasCreatedSourceBuffers())return n.addSourceBuffer(e,t);n.canChangeType()&&n.changeType(e,t)})},t.appendBuffer=function(e,t){var i=this,n=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");Tl({type:r,sourceUpdater:this,action:Dl(a,n||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===r&&(this.videoAppendQueued_=!0,this.delayedAudioAppendQueue_.length&&(r=this.delayedAudioAppendQueue_.slice(),this.logger_("queuing delayed audio "+r.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,r.forEach(function(e){i.appendBuffer.apply(i,e)})))},t.audioBuffered=function(){return bl(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered||ir.createTimeRange()},t.videoBuffered=function(){return bl(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered||ir.createTimeRange()},t.buffered=function(){var e=bl(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=bl(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){var i=null,n=null,r=0,a=[],s=[];if(!(e&&e.length&&t&&t.length))return ir.createTimeRange();for(var o=e.length;o--;)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});for(o=t.length;o--;)a.push({time:t.start(o),type:"start"}),a.push({time:t.end(o),type:"end"});for(a.sort(function(e,t){return e.time-t.time}),o=0;o<a.length;o++)"start"===a[o].type?2===++r&&(i=a[o].time):"end"===a[o].type&&1===--r&&(n=a[o].time),null!==i&&null!==n&&(s.push([i,n]),n=i=null);return ir.createTimeRanges(s)}(this.audioBuffered(),this.videoBuffered())},t.setDuration=function(e,t){void 0===t&&(t=ml),Tl({type:"mediaSource",sourceUpdater:this,action:Ul(e),name:"duration",doneFn:t})},t.endOfStream=function(e,t){void 0===t&&(t=ml),Tl({type:"mediaSource",sourceUpdater:this,action:Nl(e="string"!=typeof(e=void 0===e?null:e)?void 0:e),name:"endOfStream",doneFn:t})},t.removeAudio=function(e,t,i){void 0===i&&(i=ml),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?Tl({type:"audio",sourceUpdater:this,action:Ol(e,t),doneFn:i,name:"remove"}):i()},t.removeVideo=function(e,t,i){void 0===i&&(i=ml),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?Tl({type:"video",sourceUpdater:this,action:Ol(e,t),doneFn:i,name:"remove"}):i()},t.updating=function(){return!(!yl("audio",this)&&!yl("video",this))},t.audioTimestampOffset=function(e){return"undefined"!=typeof e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(Tl({type:"audio",sourceUpdater:this,action:Rl(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},t.videoTimestampOffset=function(e){return"undefined"!=typeof e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(Tl({type:"video",sourceUpdater:this,action:Rl(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},t.audioQueueCallback=function(e){this.audioBuffer&&Tl({type:"audio",sourceUpdater:this,action:Ml(e),name:"callback"})},t.videoQueueCallback=function(e){this.videoBuffer&&Tl({type:"video",sourceUpdater:this,action:Ml(e),name:"callback"})},t.dispose=function(){var t=this;this.trigger("dispose"),Ll.forEach(function(e){t.abort(e),t.canRemoveSourceBuffer()?t.removeSourceBuffer(e):t[e+"QueueCallback"](function(){return _l(e,t)})}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},e}(ir.EventTarget),Vl=new Uint8Array("\n\n".split("").map(function(e){return e.charCodeAt(0)})),Wl=function(i){function e(e,t){return(t=i.call(this,e,t=void 0===t?{}:t)||this).mediaSource_=null,t.subtitlesTrack_=null,t.loaderType_="subtitle",t.featuresNativeTextTracks_=e.featuresNativeTextTracks,t.shouldSaveSegmentTimingInfo_=!1,t}vt(e,i);var t=e.prototype;return t.createTransmuxer_=function(){return null},t.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return ir.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,e=e[e.length-1].startTime;return ir.createTimeRanges([[t,e]])},t.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var i=iu(e),n=this.initSegments_[i];return t&&!n&&e.bytes&&(t=Vl.byteLength+e.bytes.byteLength,(t=new Uint8Array(t)).set(e.bytes),t.set(Vl,e.bytes.byteLength),this.initSegments_[i]=n={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:t}),n||e},t.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},t.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},t.track=function(e){return"undefined"==typeof e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},t.remove=function(e,t){Bu(e,t,this.subtitlesTrack_)},t.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline))return this.syncController_.one("timestampoffset",function(){e.state="READY",e.paused()||e.monitorBuffer_()}),void(this.state="WAITING_ON_TIMELINE");this.loadSegment_(t)}},t.timestampOffsetForSegment_=function(){return null},t.chooseNextRequest_=function(){return this.skipEmptySegments_(i.prototype.chooseNextRequest_.call(this))},t.skipEmptySegments_=function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},t.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},t.segmentRequestFinished_=function(e,t,i){var n=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===cl&&this.handleTimeout_(),e.code===dl?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),this.state="APPENDING",this.trigger("appending");var a=r.segment;if(a.map&&(a.map.bytes=t.map.bytes),r.bytes=t.bytes,"function"!=typeof _.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var s=function(){n.subtitlesTrack_.tech_.off("vttjsloaded",o),n.stopForError({message:"Error loading vtt.js"})},o=function(){n.subtitlesTrack_.tech_.off("vttjserror",s),n.segmentRequestFinished_(e,t,i)};return this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",o),void this.subtitlesTrack_.tech_.one("vttjserror",s)}a.requested=!0;try{this.parseVTTCues_(r)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(r,this.syncController_.timelines[r.timeline],this.playlist_),r.cues.length?r.timingInfo={start:r.cues[0].startTime,end:r.cues[r.cues.length-1].endTime}:r.timingInfo={start:r.startOfSegment,end:r.startOfSegment+r.duration},r.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");r.byteLength=r.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,r.cues.forEac
395h(function(e){n.subtitlesTrack_.addCue(n.featuresNativeTextTracks_?new _.VTTCue(e.startTime,e.endTime,e.text):e)}),function(t){var e=t.cues;if(e)for(var i=0;i<e.length;i++){for(var n=[],r=0,a=0;a<e.length;a++)e[i].startTime===e[a].startTime&&e[i].endTime===e[a].endTime&&e[i].text===e[a].text&&1<++r&&n.push(e[a]);n.length&&n.forEach(function(e){return t.removeCue(e)})}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},t.handleData_=function(){},t.updateTimingInfoEnd_=function(){},t.parseVTTCues_=function(t){var e=!1;"function"==typeof _.TextDecoder?i=new _.TextDecoder("utf8"):(i=_.WebVTT.StringDecoder(),e=!0);var i=new _.WebVTT.Parser(_,_.vttjs,i);t.cues=[],t.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=t.cues.push.bind(t.cues),i.ontimestampmap=function(e){t.timestampmap=e},i.onparsingerror=function(e){ir.log.warn("Error encountered when parsing cues: "+e.message)},t.segment.map&&(n=t.segment.map.bytes,e&&(n=El(n)),i.parse(n));var n=t.bytes;e&&(n=El(n)),i.parse(n),i.flush()},t.updateTimeMapping_=function(e,t,i){var n,r,a=e.segment;t&&(e.cues.length?(r=e.timestampmap,n=r.MPEGTS/Gu-r.LOCAL+t.mapping,e.cues.forEach(function(e){e.startTime+=n,e.endTime+=n}),i.syncInfo||(r=e.cues[0].startTime,t=e.cues[e.cues.length-1].startTime,i.syncInfo={mediaSequence:i.mediaSequence+e.mediaIndex,time:Math.min(r,t-a.duration)})):a.empty=!0)},e}(fl),zl=[{name:"VOD",run:function(e,t,i,n,r){if(i===1/0)return null;return{time:0,segmentIndex:0,partIndex:null}}},{name:"ProgramDateTime",run:function(e,t,i,n,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,s=null,o=ko(t);r=r||0;for(var u=0;u<o.length;u++){var l=o[t.endList||0===r?u:o.length-(u+1)],c=l.segment,d=e.timelineToDatetimeMappings[c.timeline];if(d&&c.dateTimeObject){var h=c.dateTimeObject.getTime()/1e3+d;if(c.parts&&"number"==typeof l.partIndex)for(var p=0;p<l.partIndex;p++)h+=c.parts[p].duration;d=Math.abs(r-h);if(null!==s&&(0===d||s<d))break;s=d,a={time:h,segmentIndex:l.segmentIndex,partIndex:l.partIndex}}}return a}},{name:"Segment",run:function(e,t,i,n,r){var a=null,s=null;r=r||0;for(var o=ko(t),u=0;u<o.length;u++){var l=o[t.endList||0===r?u:o.length-(u+1)],c=l.segment,d=l.part&&l.part.start||c&&c.start;if(c.timeline===n&&"undefined"!=typeof d){c=Math.abs(r-d);if(null!==s&&s<c)break;(!a||null===s||c<=s)&&(s=c,a={time:d,segmentIndex:l.segmentIndex,partIndex:l.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,i,n,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o<t.discontinuityStarts.length;o++){var u=t.discontinuityStarts[o],l=t.discontinuitySequence+o+1,c=e.discontinuities[l];if(c){l=Math.abs(r-c.time);if(null!==s&&s<l)break;(!a||null===s||l<=s)&&(s=l,a={time:c.time,segmentIndex:u,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,i,n,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],Gl=function(i){function e(e){var t=i.call(this)||this;return t.timelines=[],t.discontinuities=[],t.timelineToDatetimeMappings={},t.logger_=yo("SyncController"),t}vt(e,i);var t=e.prototype;return t.getSyncPoint=function(e,t,i,n){i=this.runStrategies_(e,t,i,n);return i.length?this.selectSyncPoint_(i,{key:"time",value:n}):null},t.getExpiredTime=function(e,t){if(!e||!e.segments)return null;t=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!t.length)return null;t=this.selectSyncPoint_(t,{key:"segmentIndex",value:0});return 0<t.segmentIndex&&(t.time*=-1),Math.abs(t.time+Po({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:t.segmentIndex,endIndex:0}))},t.runStrategies_=function(e,t,i,n){for(var r=[],a=0;a<zl.length;a++){var s=zl[a],o=s.run(this,e,t,i,n);o&&(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}))}return r},t.selectSyncPoint_=function(e,t){for(var i=e[0].syncPoint,n=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var s=Math.abs(e[a].syncPoint[t.key]-t.value);s<n&&(n=s,i=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+i.time+", segmentIndex:"+i.segmentIndex+("number"==typeof i.partIndex?",partIndex:"+i.partIndex:"")+"]"),i},t.saveExpiredSegmentInfo=function(e,t){for(var i=t.mediaSequence-e.mediaSequence-1;0<=i;i--){var n=e.segments[i];if(n&&"undefined"!=typeof n.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:n.start}
395,this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},t.setDateTimeMappingForStart=function(e){var t;this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject&&(e=(t=e.segments[0]).dateTimeObject.getTime()/1e3,this.timelineToDatetimeMappings[t.timeline]=-e)},t.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,i=e.shouldSaveTimelineMapping,n=this.calculateSegmentTimeMapping_(t,t.timingInfo,i),e=t.segment;n&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:e.start}));t=e.dateTimeObject;e.discontinuity&&i&&t&&(this.timelineToDatetimeMappings[e.timeline]=-t.getTime()/1e3)},t.timestampOffsetForTimeline=function(e){return"undefined"==typeof this.timelines[e]?null:this.timelines[e].time},t.mappingForTimeline=function(e){return"undefined"==typeof this.timelines[e]?null:this.timelines[e].mapping},t.calculateSegmentTimeMapping_=function(e,t,i){var n,r,a=e.segment,s=e.part,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},i&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+o.time+"] [mapping: "+o.mapping+"]")),n=e.startOfSegment,r=t.end+o.mapping;else{if(!o)return!1;n=t.start+o.mapping,r=t.end+o.mapping}return s&&(s.start=n,s.end=r),(!a.start||n<a.start)&&(a.start=n),a.end=r,!0},t.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,i=e.segment;if(i.discontinuity)this.discontinuities[i.timeline]={time:i.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var n=0;n<t.discontinuityStarts.length;n++){var r,a=t.discontinuityStarts[n],s=t.discontinuitySequence+n+1,o=a-e.mediaIndex,u=Math.abs(o);(!this.discontinuities[s]||this.discontinuities[s].accuracy>u)&&(r=void 0,r=o<0?i.start-Po({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:a}):i.end+Po({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:a}),this.discontinuities[s]={time:r,accuracy:u})}},t.dispose=function(){this.trigger("dispose"),this.off()},e}(ir.EventTarget),Xl=function(t){function e(){var e=t.call(this)||this;return e.pendingTimelineChanges_={},e.lastTimelineChanges_={},e}vt(e,t);var i=e.prototype;return i.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},i.pendingTimelineChange=function(e){var t=e.type,i=e.from,e=e.to;return"number"==typeof i&&"number"==typeof e&&(this.pendingTimelineChanges_[t]={type:t,from:i,to:e},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},i.lastTimelineChange=function(e){var t=e.type,i=e.from,e=e.to;return"number"==typeof i&&"number"==typeof e&&(this.lastTimelineChanges_[t]={type:t,from:i,to:e},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},i.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},e}(ir.EventTarget),Kl=si(sr(K(function(){function e(e,t,i){return e(i={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&i.path)}},i.exports),i.exports}var t=e(function(e){function n(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}e.exports=function(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e},e.exports.default=e.exports,e.exports.__esModule=!0}),i=e(function(i){function n(e,t){return i.exports=n=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},i.exports.default=i.exports,i.exports.__esModule=!0,n(e,t)}i.exports=n,i.exports.default=i.exports,i.exports.__esModule=!0}),n=e(function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,i(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0}),r=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;t=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(t,1),-1<t},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var i=t.length,n=0;n<i;++n)t[n].call(this,arguments[1]);
vendor: 3,805 bytes, lines 395-399
395else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(t){this.on("data",function(e){t.push(e)})},e}(); 396/*! @name aes-decrypter @version 3.1.2 @license Apache-2.0 */ 397var c=null,m=function(){function e(e){var t,i,n;c=c||function(){for(var e,t,i,n,r,a,s,o=[[[],[],[],[],[]],[[],[],[],[],[]]],u=o[0],l=o[1],c=u[4],d=l[4],h=[],p=[],f=0;f<256;f++)p[(h[f]=f<<1^283*(f>>7))^f]=f;for(e=t=0;!c[e];e^=i||1,t=p[t]||1)for(s=16843009*h[n=h[i=h[d[c[e]=r=(r=t^t<<1^t<<2^t<<3^t<<4)>>8^255&r^99]=e]]]^65537*n^257*i^16843008*e,a=257*h[r]^16843008*r,f=0;f<4;f++)u[f][e]=a=a<<24^a>>>8,l[f][r]=s=s<<24^s>>>8;for(f=0;f<5;f++)u[f]=u[f].slice(0),l[f]=l[f].slice(0);return o}(),this._tables=[[c[0][0].slice(),c[0][1].slice(),c[0][2].slice(),c[0][3].slice(),c[0][4].slice()],[c[1][0].slice(),c[1][1].slice(),c[1][2].slice(),c[1][3].slice(),c[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],s=e.length,o=1;if(4!==s&&6!==s&&8!==s)throw new Error("Invalid aes key size");var u=e.slice(0),l=[];for(this._key=[u,l],t=s;t<4*s+28;t++)n=u[t-1],(t%s==0||8===s&&t%s==4)&&(n=r[n>>>24]<<24^r[n>>16&255]<<16^r[n>>8&255]<<8^r[255&n],t%s==0&&(n=n<<8^n>>>24^o<<24,o=o<<1^283*(o>>7))),u[t]=u[t-s]^n;for(i=0;t;i++,t--)n=u[3&i?t:t-4],l[i]=t<=4||i<4?n:a[0][r[n>>>24]]^a[1][r[n>>16&255]]^a[2][r[n>>8&255]]^a[3][r[255&n]]}return e.prototype.decrypt=function(e,t,i,n,r,a){for(var s,o,u,l=this._key[1],c=e^l[0],d=n^l[1],h=i^l[2],p=t^l[3],f=l.length/4-2,m=4,t=this._tables[1],g=t[0],y=t[1],v=t[2],_=t[3],b=t[4],T=0;T<f;T++)s=g[c>>>24]^y[d>>16&255]^v[h>>8&255]^_[255&p]^l[m],o=g[d>>>24]^y[h>>16&255]^v[p>>8&255]^_[255&c]^l[m+1],u=g[h>>>24]^y[p>>16&255]^v[c>>8&255]^_[255&d]^l[m+2],p=g[p>>>24]^y[c>>16&255]^v[d>>8&255]^_[255&h]^l[m+3],m+=4,c=s,d=o,h=u;for(T=0;T<4;T++)r[(3&-T)+a]=b[c>>>24]<<24^b[d>>16&255]<<16^b[h>>8&255]<<8^b[255&p]^l[m++],s=c,c=d,d=h,h=p,p=s},e}(),l=function(t){function e(){var e=t.call(this,r)||this;return e.jobs=[],e.delay=1,e.timeout_=null,e}n(e,t);var i=e.prototype;return i.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},i.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},e}(r),g=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},a=function(){function u(e,t,i,n){var r=u.STEP,a=new Int32Array(e.buffer),s=new Uint8Array(e.byteLength),o=0;for(this.asyncStream_=new l,this.asyncStream_.push(this.decryptChunk_(a.subarray(o,o+r),t,i,s)),o=r;o<a.length;o+=r)i=new Uint32Array([g(a[o-4]),g(a[o-3]),g(a[o-2]),g(a[o-1])]),this.asyncStream_.push(this.decryptChunk_(a.subarray(o,o+r),t,i,s));this.asyncStream_.push(function(){ 398/*! @name pkcs7 @version 1.0.4 @license Apache-2.0 */ 399var e;n(null,(e=s).subarray(0,e.byteLength-e[e.byteLength-1]))})}return u.prototype.decryptChunk_=function(t,i,n,r){return function(){var e=function(e,t,i){for(var n,r,a,s,o=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),u=new m(Array.prototype.slice.call(t)),e=new Uint8Array(e.byteLength),l=new Int32Array(e.buffer),c=i[0],d=i[1],h=i[2],p=i[3],f=0;f<o.length;f+=4)n=g(o[f]),r=g(o[f+1]),a=g(o[f+2]),s=g(o[f+3]),u.decrypt(n,r,a,s,l,f),l[f]=g(l[f]^c),l[f+1]=g(l[f+1]^d),l[f+2]=g(l[f+2]^h),l[f+3]=g(l[f+3]^p),c=n,d=r,h=a,p=s;return e}(t,i,n);r.set(e,t.byteOffset)}},t(u,null,[{key:"STEP",get:function(){return 32e3}}]),u}();self.onmessage=function(e){var r=e.data,t=new Uint8Array(r.encrypted.bytes,r.encrypted.byteOffset,r.encrypted.byteLength),i=new Uint32Array(r.key.bytes,r.key.byteOffset,r.key.byteLength/4),e=new Uint32Array(r.iv.bytes,r.iv.byteOffset,r.iv.byteLength/4);new a(t,i,e,function(e,t){var i,n;self.postMessage((i={source:r.source,decrypted:t},n={}
399,Object.keys(i).forEach(function(e){var t=i[e];ArrayBuffer.isView(t)?n[e]={bytes:t.buffer,byteOffset:t.byteOffset,byteLength:t.byteLength}:n[e]=t}),n),[t.buffer])})}}))),Yl={AUDIO:function(s,o){return function(){var e=o.segmentLoaders[s],t=o.mediaTypes[s],i=o.blacklistCurrentPlaylist;kl(e,t);var n=t.activeTrack(),e=t.activeGroup(),e=(e.filter(function(e){return e.default})[0]||e[0]).id,r=t.tracks[e];if(n!==r){for(var a in ir.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),t.tracks)t.tracks[a].enabled=t.tracks[a]===r;t.onTrackChanged()}else i({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(i,n){return function(){var e=n.segmentLoaders[i],t=n.mediaTypes[i];ir.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),kl(e,t);e=t.activeTrack();e&&(e.mode="disabled"),t.onTrackChanged()}}},Ql={AUDIO:function(e,t,i){var n,r,a;t&&(n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e],t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",Yl[e](e,i)))},SUBTITLES:function(e,t,i){var n=i.tech,r=i.requestOptions,a=i.segmentLoaders[e],s=i.mediaTypes[e];t.on("loadedmetadata",function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!n.paused()||e.endList&&"none"!==n.preload())&&a.load()}),t.on("loadedplaylist",function(){a.playlist(t.media(),r),n.paused()||a.load()}),t.on("error",Yl[e](e,i))}},$l={AUDIO:function(e,t){var i,n,r=t.vhs,a=t.sourceType,s=t.segmentLoaders[e],o=t.requestOptions,u=t.master.mediaGroups,l=t.mediaTypes[e],c=l.groups,d=l.tracks,h=l.logger_,p=t.masterPlaylistLoader,f=Fo(p.master);for(i in u[e]&&0!==Object.keys(u[e]).length||(u[e]={main:{default:{default:!0}}},f&&(u[e].main.default.playlists=p.master.playlists)),u[e])for(var m in c[i]||(c[i]=[]),u[e][i]){var g=u[e][i][m],y=void 0,y=f?(h("AUDIO group '"+i+"' label '"+m+"' is a master playlist"),g.isMasterPlaylist=!0,null):"vhs-json"===a&&g.playlists?new Zu(g.playlists[0],r,o):g.resolvedUri?new Zu(g.resolvedUri,r,o):g.playlists&&"dash"===a?new nl(g.playlists[0],r,o,p):null,g=ir.mergeOptions({id:m,playlistLoader:y},g);Ql[e](e,g.playlistLoader,t),c[i].push(g),"undefined"==typeof d[m]&&(g=new ir.AudioTrack({id:m,kind:(n=void 0,n=(y=g).default?"main":"alternative",n=y.characteristics&&0<=y.characteristics.indexOf("public.accessibility.describes-video")?"main-desc":n),enabled:!1,language:g.language,default:g.default,label:m}),d[m]=g)}s.on("error",Yl[e](e,t))},SUBTITLES:function(e,t){var i,n=t.tech,r=t.vhs,a=t.sourceType,s=t.segmentLoaders[e],o=t.requestOptions,u=t.master.mediaGroups,l=t.mediaTypes[e],c=l.groups,d=l.tracks,h=t.masterPlaylistLoader;for(i in u[e])for(var p in c[i]||(c[i]=[]),u[e][i])if(!u[e][i][p].forced){var f=u[e][i][p],m=void 0;if("hls"===a)m=new Zu(f.resolvedUri,r,o);else if("dash"===a){if(!f.playlists.filter(function(e){return e.excludeUntil!==1/0}).length)return;m=new nl(f.playlists[0],r,o,h)}else"vhs-json"===a&&(m=new Zu(f.playlists?f.playlists[0]:f.resolvedUri,r,o));f=ir.mergeOptions({id:p,playlistLoader:m},f),Ql[e](e,f.playlistLoader,t),c[i].push(f),"undefined"==typeof d[p]&&(f=n.addRemoteTextTrack({id:p,kind:"subtitles",default:f.default&&f.autoselect,language:f.language,label:p},!1).track,d[p]=f)}s.on("error",Yl[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var i,n=t.tech,r=t.master.mediaGroups,t=t.mediaTypes[e],a=t.groups,s=t.tracks;for(i in r[e])for(var o in a[i]||(a[i]=[]),r[e][i]){var u,l,c=r[e][i][o];/^(?:CC|SERVICE)/.test(c.instreamId)&&(void 0===(l=(u=n.options_.vhs&&n.options_.vhs.captionServices||{})[(l={label:o,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect}).instreamId]?ir.mergeOptions(l,u[l.instreamId]):l).default&&delete l.default,a[i].push(ir.mergeOptions({id:o},c)),"undefined"==typeof s[o]&&(l=n.addRemoteTextTrack({id:l.instreamId,kind:"captions",default:l.default,language:l.language,label:l.label},!1).track,s[o]=l))}}},Jl={AUDIO:function(i,n){return function(){var e,t=n.mediaTypes[i].tracks;for(e in t)if(t[e].enabled)return t[e];return null}},SUBTITLES:function(i,n){return function(){var e,t=n.mediaTypes[i].tracks;for(e in t)if("showing"===t[e].mode||"hidden"===t[e].mode)return t[e];return null}}},Zl=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],ec=function(y){function e(e){var t=y.call(this)||this,i=e.src,n=e.handleManifestRedirects,r=e.withCredentials,a=e.tech,s=e.bandwidth,o=e.externVhs,u=e.useCueTags,l=e.blacklistDuration,c=e.enableLowInitialPlaylist,d=e.s
399ourceType,h=e.cacheEncryptionKeys,p=e.experimentalBufferBasedABR,f=e.experimentalLeastPixelDiffSelector;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var m,g=e.maxPlaylistRetries;null!==g&&"undefined"!=typeof g||(g=1/0),Pl=o,t.experimentalBufferBasedABR=Boolean(p),t.experimentalLeastPixelDiffSelector=Boolean(f),t.withCredentials=r,t.tech_=a,t.vhs_=a.vhs,t.sourceType_=d,t.useCueTags_=u,t.blacklistDuration=l,t.maxPlaylistRetries=g,t.enableLowInitialPlaylist=c,t.useCueTags_&&(t.cueTagsTrack_=t.tech_.addTextTrack("metadata","ad-cues"),t.cueTagsTrack_.inBandMetadataTrackDispatchType=""),t.requestOptions_={withCredentials:r,handleManifestRedirects:n,maxPlaylistRetries:g,timeout:null},t.on("error",t.pauseLoading),t.mediaTypes_=(m={},["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(function(e){m[e]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ml,activeTrack:ml,getActiveGroup:ml,onGroupChanged:ml,onTrackChanged:ml,lastTrack_:null,logger_:yo("MediaGroups["+e+"]")}}),m),t.mediaSource=new _.MediaSource,t.handleDurationChange_=t.handleDurationChange_.bind(yt(t)),t.handleSourceOpen_=t.handleSourceOpen_.bind(yt(t)),t.handleSourceEnded_=t.handleSourceEnded_.bind(yt(t)),t.mediaSource.addEventListener("durationchange",t.handleDurationChange_),t.mediaSource.addEventListener("sourceopen",t.handleSourceOpen_),t.mediaSource.addEventListener("sourceended",t.handleSourceEnded_),t.seekable_=ir.createTimeRanges(),t.hasPlayed_=!1,t.syncController_=new Gl(e),t.segmentMetadataTrack_=a.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,t.decrypter_=new Kl,t.sourceUpdater_=new ql(t.mediaSource),t.inbandTextTracks_={},t.timelineChangeController_=new Xl;h={vhs:t.vhs_,parse708captions:e.parse708captions,mediaSource:t.mediaSource,currentTime:t.tech_.currentTime.bind(t.tech_),seekable:function(){return t.seekable()},seeking:function(){return t.tech_.seeking()},duration:function(){return t.duration()},hasPlayed:function(){return t.hasPlayed_},goalBufferLength:function(){return t.goalBufferLength()},bandwidth:s,syncController:t.syncController_,decrypter:t.decrypter_,sourceType:t.sourceType_,inbandTextTracks:t.inbandTextTracks_,cacheEncryptionKeys:h,sourceUpdater:t.sourceUpdater_,timelineChangeController:t.timelineChangeController_,experimentalExactManifestTimings:e.experimentalExactManifestTimings};t.masterPlaylistLoader_=new("dash"===t.sourceType_?nl:Zu)(i,t.vhs_,t.requestOptions_),t.setupMasterPlaylistLoaderListeners_(),t.mainSegmentLoader_=new fl(ir.mergeOptions(h,{segmentMetadataTrack:t.segmentMetadataTrack_,loaderType:"main"}),e),t.audioSegmentLoader_=new fl(ir.mergeOptions(h,{loaderType:"audio"}),e),t.subtitleSegmentLoader_=new Wl(ir.mergeOptions(h,{loaderType:"vtt",featuresNativeTextTracks:t.tech_.featuresNativeTextTracks}),e),t.setupSegmentLoaderListeners_(),t.experimentalBufferBasedABR&&(t.masterPlaylistLoader_.one("loadedplaylist",function(){return t.startABRTimer_()}),t.tech_.on("pause",function(){return t.stopABRTimer_()}),t.tech_.on("play",function(){return t.startABRTimer_()})),Zl.forEach(function(e){t[e+"_"]=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]}.bind(yt(t),e)}),t.logger_=yo("MPC"),t.triggeredFmp4Usage=!1,"none"===t.tech_.preload()?(t.loadOnPlay_=function(){t.loadOnPlay_=null,t.masterPlaylistLoader_.load()},t.tech_.one("play",t.loadOnPlay_)):t.masterPlaylistLoader_.load(),t.timeToLoadedData__=-1,t.mainAppendsToLoadedData__=-1,t.audioAppendsToLoadedData__=-1;e="none"===t.tech_.preload()?"play":"loadstart";return t.tech_.one(e,function(){var e=Date.now();t.tech_.one("loadeddata",function(){t.timeToLoadedData__=Date.now()-e,t.mainAppendsToLoadedData__=t.mainSegmentLoader_.mediaAppends,t.audioAppendsToLoadedData__=t.audioSegmentLoader_.mediaAppends})}),t}vt(e,y);var t=e.prototype;return t.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},t.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},t.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},t.timeToLoadedData_=function(){return this.timeToLoadedData__},t.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},t.switchMedia_=function(e,t,i){var n=this.media(),r=n&&(n.id||n.uri),n=e.id||e.uri;r&&r!==n&&(this.logger_("switch media "+r+" -> "+n+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,i)},t.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=_.setInterval(function(){return e.checkABR_()},250)},t.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(_.clearInterval(this.abrTimer_),this.abrTimer_=null)},t.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var i,n=e.mediaGroups.AUDIO,r=Object.keys(n);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)i=this.mediaTypes_.AUDIO.activeTrack();else{var a,s=n.main||r.length&&n[r[0]];for(a in s)if(s[a].default){i={label:a};break}}if(!i)return t;var o,u=[];for(o in n)if(n[o][i.label]){var l=n[o][i.label];if(l.playlists&&l.playlists.length)u.push.apply(u,l.playlists);
399else if(l.uri)u.push(l);else if(e.playlists.length)for(var c=0;c<e.playlists.length;c++){var d=e.playlists[c];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===o&&u.push(d)}}return u.length?u:t},t.setupMasterPlaylistLoaderListeners_=function(){var i=this;this.masterPlaylistLoader_.on("loadedmetadata",function(){var e=i.masterPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;No(i.masterPlaylistLoader_.master,i.masterPlaylistLoader_.media())?i.requestOptions_.timeout=0:i.requestOptions_.timeout=t,e.endList&&"none"!==i.tech_.preload()&&(i.mainSegmentLoader_.playlist(e,i.requestOptions_),i.mainSegmentLoader_.load()),Il({sourceType:i.sourceType_,segmentLoaders:{AUDIO:i.audioSegmentLoader_,SUBTITLES:i.subtitleSegmentLoader_,main:i.mainSegmentLoader_},tech:i.tech_,requestOptions:i.requestOptions_,masterPlaylistLoader:i.masterPlaylistLoader_,vhs:i.vhs_,master:i.master(),mediaTypes:i.mediaTypes_,blacklistCurrentPlaylist:i.blacklistCurrentPlaylist.bind(i)}),i.triggerPresenceUsage_(i.master(),e),i.setupFirstPlay(),!i.mediaTypes_.AUDIO.activePlaylistLoader||i.mediaTypes_.AUDIO.activePlaylistLoader.media()?i.trigger("selectedinitialmedia"):i.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",function(){i.trigger("selectedinitialmedia")})}),this.masterPlaylistLoader_.on("loadedplaylist",function(){i.loadOnPlay_&&i.tech_.off("play",i.loadOnPlay_);var e,t=i.masterPlaylistLoader_.media();if(!t){if(i.excludeUnsupportedVariants_(),!(e=(e=i.enableLowInitialPlaylist?i.selectInitialPlaylist():e)||i.selectPlaylist())||!i.shouldSwitchToMedia_(e))return;if(i.initialMedia_=e,i.switchMedia_(i.initialMedia_,"initial"),!("vhs-json"===i.sourceType_&&i.initialMedia_.segments))return;t=i.initialMedia_}i.handleUpdatedMediaPlaylist(t)}),this.masterPlaylistLoader_.on("error",function(){i.blacklistCurrentPlaylist(i.masterPlaylistLoader_.error)}),this.masterPlaylistLoader_.on("mediachanging",function(){i.mainSegmentLoader_.abort(),i.mainSegmentLoader_.pause()}),this.masterPlaylistLoader_.on("mediachange",function(){var e=i.masterPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;No(i.masterPlaylistLoader_.master,i.masterPlaylistLoader_.media())?i.requestOptions_.timeout=0:i.requestOptions_.timeout=t,i.mainSegmentLoader_.playlist(e,i.requestOptions_),i.mainSegmentLoader_.load(),i.tech_.trigger({type:"mediachange",bubbles:!0})}),this.masterPlaylistLoader_.on("playlistunchanged",function(){var e=i.masterPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&i.stuckAtPlaylistEnd_(e)&&(i.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),i.tech_.trigger("playliststuck"))}),this.masterPlaylistLoader_.on("renditiondisabled",function(){i.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),i.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})}),this.masterPlaylistLoader_.on("renditionenabled",function(){i.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),i.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})})},t.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},t.triggerPresenceUsage_=function(e,t){var i,n=e.mediaGroups||{},r=!0,e=Object.keys(n.AUDIO);for(i in n.AUDIO)for(var a in n.AUDIO[i])n.AUDIO[i][a].uri||(r=!1);r&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),Pl.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),e.length&&1<Object.keys(n.AUDIO[e[0]]).length&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},t.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media(),i=this.tech_.buffered();return function(e){var t=e.currentPlaylist,i=e.nextPlaylist,n=e.forwardBuffer,r=e.bufferLowWaterLine,a=e.bufferHighWaterLine,s=e.duration,o=e.experimentalBufferBasedABR,u=e.log;if(!i)return ir.log.warn("We received no playlist to switch to. Please check your stream."),!1;var l="allowing switch "+(t&&t.id||"null")+" -> "+i.id;if(!t)return u(l+" as current playlist is not set"),!0;if(i.id===t.id)return!1;if(!t.endList)return u(l+" as current playlist is live"),!0;e=o?rl.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:rl.MAX_BUFFER_LOW_WATER_LINE;if(s<e)return u(l+" as duration < max low water line ("+s+" < "+e+")"),!0;e=i.attributes.BANDWIDTH,i=t.attributes.BANDWIDTH;if(e<i&&(!o||n<a)){t=l+" as next bandwidth < current bandwidth ("+e+" < "+i+")";return o&&(t+=" and forwardBuffer < bufferHighWaterLine ("+n+" < "+a+")"),u(t),!0}if((!o||i<e)&&r<=n){r=l+" as forwardBuffer >= bufferLowWaterLine ("+n+" >= "+r+")";return o&&(r+=" and next bandwidth > current bandwidth ("+e+" > "+i+")"),u(r),!0}return u("not "+l+" as no switching criteria met"),!1}({currentPlaylist:t,nextPlaylist:e,forwardBuffer:i.length?i.end(i.length-1)-this.tech_.currentTime():0,bufferLowWaterLine:this.bufferLowWaterLine(),bufferHighWaterLine:this.bufferHighWaterLine(),duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},t.setupSegmentLoaderListeners_=function(){var t=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",function(){var e=t.selectPlaylist();t.shouldSwitchToMedia_(e)&&t.switchMedia_(e,"bandwidthupdate"),t.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("progress",function(){t.trigger("progress")})),this.mainSegmentLoader_.on("error",function(){t.blacklistCurrentPlaylist(t.mainSegmentLoader_.error())}),this.mainSegmentLoader_.on("appenderror",function(){t.error=t.mainSegmentLoader_.error_,t.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",function(){t.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),t.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",function(){t.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",function(){t.error=t.audioSegmentLoader_.error_,t.trigger("error")}),this.mainSegmentLoader_.on("ended",function(){t.logger_("main segment loader ended"),t.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",function(e){t.experimentalBufferBasedABR||(t.delegateLoaders_("all",["abort"]),t.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))});function e(){if(!t.sourceUpdater_.hasCreatedSourceBuffers())return t.tryToCreateSourceBuffers_();var e=t.getCodecsOrExclude_();e&&t.sourceUpdater_.addOrChangeSourceBuffers(e)}this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",function(){t.triggeredFmp4Usage||(t.tech_.trigger({type:"usage",name:"vhs-fmp4"}),t.tech_.trigger({type:"usage",name:"hls-fmp4"}),t.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",function(){t.logger_("audioSegmentLoader ended"),t.onEndOfStream()})},t.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},t.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},t.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},t.fastQualityChange_=function(e){var t=this;(e=void 0===e?this.selectPlaylist():e)!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything(function(){ir.browser.IE_VERSION||ir.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())})):this.logger_("skipping fastQualityChange because new media is same as old")},t.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},t.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var i=this.seekable();if(!i.length)return!1;if(ir.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",function(){e.trigger("firstplay"),e.tech_.setCurrentTime(i.end(0)),e.hasPlayed_=!0}),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(i.end(0))}return this.hasPlayed_=!0,this.load(),!0},t.handleSourceOpen_=function(){var e;this.tryToCreateSourceBuffers_(),!this.tech_.autoplay()||"undefined"!=typeof(e=this.tech_.play())&&"function"==typeof e.then&&e.then(null,function(e){}),this.trigger("sourceopen")},t.handleSourceEnded_=function(){var e,t;!this.inbandTextTracks_.metadataTrack_||(e=this.inbandTextTracks_.metadataTrack_.cues)&&e.length&&(t=this.duration(),e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t)},t.handleDurationChange_=function(){this.tech_.trigger("durationchange")},t.onEndOfStream=function(){var e,t=this.mainSegmentLoader_.ended_;(t=this.mediaTypes_.AUDIO.activePlaylistLoader?((e=this.mainSegmentLoader_.getCurrentMediaInfo_())&&!e.hasVideo||t)&&this.audioSegmentLoader_.ended_:t)&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},t.stuckAtPlaylistEnd_=function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var i=Pl.Playlist.playlistEnd(e,t),e=this.tech_.currentTime(),t=this.tech_.buffered();if(!t.length)return i-e<=.1;t=t.end(t.length-1);return t-e<=.1&&i-t<=.1},t.blacklistCurrentPlaylist=function(e,t){var i=(e=void 0===e?{}:e).playlist||this.masterPlaylistLoader_.media();
399if(t=t||e.blacklistDuration||this.blacklistDuration,!i)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));i.playlistErrors_++;var n,r=this.masterPlaylistLoader_.master.playlists,a=r.filter(Ro),s=1===a.length&&a[0]===i;if(1===r.length&&t!==1/0)return ir.log.warn("Problem encountered with playlist "+i.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(s);s&&(n=!1,r.forEach(function(e){var t;e===i||"undefined"!=typeof(t=e.excludeUntil)&&t!==1/0&&(n=!0,delete e.excludeUntil)}),n&&(ir.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))),a=i.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,i.excludeUntil=a,e.reason&&(i.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});r=this.selectPlaylist();if(!r)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");t=e.internal?this.logger_:ir.log.warn,a=e.message?" "+e.message:"";t((e.internal?"Internal problem":"Problem")+" encountered with playlist "+i.id+"."+a+" Switching to playlist "+r.id+"."),r.attributes.AUDIO!==i.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),r.attributes.SUBTITLES!==i.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);a=r.targetDuration/2*1e3||5e3,a="number"==typeof r.lastRequest&&Date.now()-r.lastRequest<=a;return this.switchMedia_(r,"exclude",s||a)},t.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},t.delegateLoaders_=function(i,e){var n=this,r=[],t="all"===i;!t&&"main"!==i||r.push(this.masterPlaylistLoader_);var a=[];!t&&"audio"!==i||a.push("AUDIO"),!t&&"subtitle"!==i||(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach(function(e){e=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;e&&r.push(e)}),["main","audio","subtitle"].forEach(function(e){var t=n[e+"SegmentLoader_"];!t||i!==e&&"all"!==i||r.push(t)}),r.forEach(function(t){return e.forEach(function(e){"function"==typeof t[e]&&t[e]()})})},t.setCurrentTime=function(e){var t=_o(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},t.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:Pl.Playlist.duration(e):1/0:0},t.seekable=function(){return this.seekable_},t.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var i=this.syncController_.getExpiredTime(t,this.duration());if(null!==i){var n,r,a=this.masterPlaylistLoader_.master,s=Pl.Playlist.seekable(t,i,Pl.Playlist.liveEdgeDelay(a,t));if(0!==s.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(i=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=Pl.Playlist.seekable(t,i,Pl.Playlist.liveEdgeDelay(a,t))).length)return}this.seekable_&&this.seekable_.length&&(n=this.seekable_.end(0),r=this.seekable_.start(0)),!e||e.start(0)>s.end(0)||s.start(0)>e.end(0)?this.seekable_=s:this.seekable_=ir.createTimeRanges([[(e.start(0)>s.start(0)?e:s).start(0),(e.end(0)<s.end(0)?e:s).end(0)]]),this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===n&&this.seekable_.start(0)===r||(this.logger_("seekable updated ["+To(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},t.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();return t.length?void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))):void 0}e=this.tech_.buffered(),t=Pl.Playlist.duration(this.masterPlaylistLoader_.media());0<e.length&&(t=Math.max(t,e.end(e.length-1))),this.mediaSource.duration!==t&&this.sourceUpdater_.setDuration(t)}
399,t.dispose=function(){var n=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(function(e){var t,i=n.mediaTypes_[e].groups;for(t in i)i[t].forEach(function(e){e.playlistLoader&&e.playlistLoader.dispose()})}),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},t.master=function(){return this.masterPlaylistLoader_.master},t.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},t.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),e=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return t&&e},t.getCodecsOrExclude_=function(){var n=this,r={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};r.video=r.main;var e=Lu(this.master(),this.media()),a={},t=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(r.main.hasVideo&&(a.video=e.video||r.main.videoCodec||"avc1.4d400d"),r.main.isMuxed&&(a.video+=","+(e.audio||r.main.audioCodec||Ir)),(r.main.hasAudio&&!r.main.isMuxed||r.audio.hasAudio||t)&&(a.audio=e.audio||r.main.audioCodec||r.audio.audioCodec||Ir,r.audio.isFmp4=(r.main.hasAudio&&!r.main.isMuxed?r.main:r.audio).isFmp4),a.audio||a.video){var s,i,o={};if(["video","audio"].forEach(function(e){var t,i;a.hasOwnProperty(e)&&(t=r[e].isFmp4,i=a[e],!(t?yr:vr)(i))&&(i=r[e].isFmp4?"browser":"muxer",o[i]=o[i]||[],o[i].push(a[e]),"audio"===e&&(s=i))}),t&&s&&this.media().attributes.AUDIO&&(i=this.media().attributes.AUDIO,this.master().playlists.forEac
399h(function(e){(e.attributes&&e.attributes.AUDIO)===i&&e!==n.media()&&(e.excludeUntil=1/0)}),this.logger_("excluding audio group "+i+" as "+s+' does not support codec(s): "'+a.audio+'"')),!Object.keys(o).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var u=[];if(["video","audio"].forEach(function(e){var t=(fr(n.sourceUpdater_.codecs[e]||"")[0]||{}).type,i=(fr(a[e]||"")[0]||{}).type;t&&i&&t.toLowerCase()!==i.toLowerCase()&&u.push('"'+n.sourceUpdater_.codecs[e]+'" -> "'+a[e]+'"')}),u.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+u.join(", ")+".",blacklistDuration:1/0,internal:!0})}return a}t=Object.keys(o).reduce(function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+o[t].join(",")+'"'},"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:t,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},t.tryToCreateSourceBuffers_=function(){var e;"open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers()||!this.areMediaTypesKnown_()||(e=this.getCodecsOrExclude_())&&(this.sourceUpdater_.createSourceBuffers(e),e=[e.video,e.audio].filter(Boolean).join(","),this.excludeIncompatibleVariants_(e))},t.excludeUnsupportedVariants_=function(){var n=this,r=this.master().playlists,a=[];Object.keys(r).forEach(function(e){var t,i=r[e];-1===a.indexOf(i.id)&&(a.push(i.id),t=[],!(e=Lu(n.master,i)).audio||vr(e.audio)||yr(e.audio)||t.push("audio codec "+e.audio),!e.video||vr(e.video)||yr(e.video)||t.push("video codec "+e.video),e.text&&"stpp.ttml.im1t"===e.text&&t.push("text codec "+e.text),t.length&&(i.excludeUntil=1/0,n.logger_("excluding "+i.id+" for unsupported: "+t.join(", "))))})},t.excludeIncompatibleVariants_=function(e){var r=this,a=[],s=this.master().playlists,e=Au(fr(e)),o=Pu(e),u=e.video&&fr(e.video)[0]||null,l=e.audio&&fr(e.audio)[0]||null;Object.keys(s).forEach(function(e){var t,i,n=s[e];-1===a.indexOf(n.id)&&n.excludeUntil!==1/0&&(a.push(n.id),t=[],i=Lu(r.masterPlaylistLoader_.master,n),e=Pu(i),(i.audio||i.video)&&(e!==o&&t.push('codec count "'+e+'" !== "'+o+'"'),r.sourceUpdater_.canChangeType()||(e=i.video&&fr(i.video)[0]||null,i=i.audio&&fr(i.audio)[0]||null,e&&u&&e.type.toLowerCase()!==u.type.toLowerCase()&&t.push('video codec "'+e.type+'" !== "'+u.type+'"'),i&&l&&i.type.toLowerCase()!==l.type.toLowerCase()&&t.push('audio codec "'+i.type+'" !== "'+l.type+'"')),t.length&&(n.excludeUntil=1/0,r.logger_("blacklisting "+n.id+": "+t.join(" && ")))))})},t.updateAdCues_=function(e){var t=0,i=this.seekable();i.length&&(t=i.start(0)),function(e,t,i){if(void 0===i&&(i=0),e.segments)for(var n=i,r=0;r<e.segments.length;r++){var a,s,o,u=e.segments[r];if(o=o||function(e,t){for(var i=e.cues,n=0;n<i.length;n++){var r=i[n];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null}(t,n+u.duration/2)){if("cueIn"in u){o.endTime=n,o.adEndTime=n,n+=u.duration,o=null;continue}if(n<o.endTime){n+=u.duration;continue}o.endTime+=u.duration}else"cueOut"in u&&((o=new _.VTTCue(n,n+u.duration,u.cueOut)).adStartTime=n,o.adEndTime=n+parseFloat(u.cueOut),t.addCue(o)),"cueOutCont"in u&&(a=(s=u.cueOutCont.split("/").map(parseFloat))[0],s=s[1],(o=new _.VTTCue(n,n+u.duration,"")).adStartTime=n-a,o.adEndTime=o.adStartTime+s,t.addCue(o));n+=u.duration}}(e,this.cueTagsTrack_,t)},t.goalBufferLength=function(){var e=this.tech_.currentTime(),t=rl.GOAL_BUFFER_LENGTH,i=rl.GOAL_BUFFER_LENGTH_RATE,n=Math.max(t,rl.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*i,n)},t.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=rl.BUFFER_LOW_WATER_LINE,i=rl.BUFFER_LOW_WATER_LINE_RATE,n=Math.max(t,rl.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,rl.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*i,this.experimentalBufferBasedABR?r:n)},t.bufferHighWaterLine=function(){return rl.BUFFER_HIGH_WATER_LINE},e}(ir.EventTarget),tc=["seeking","seeked","pause","playing","error"],ic=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=yo("PlaybackWatcher"),this.logger_("initialize");function i(){return t.monitorCurrentTime_()}function n(){return t.monitorCurrentTime_()}function r(){return t.techWaiting_()}function a(){return t.cancelTimer_()}function s(){return t.fixesBadSeeks_()}var o=this.masterPlaylistController_,u=["main","subtitle","audio"],l={};u.forEach(function(e){l[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},o[e+"SegmentLoader_"].on("appendsdone",l[e].updateend),o[e+"SegmentLoader_"].on("playlistupdate",l[e].reset),t.tech_.on(["seeked","seeking"],l[e].reset)}),this.tech_.on("seekablechanged",s),this.tech_.on("waiting",r),this.tech_.on(tc,a),this.tech_.on("canplay",n),this.tech_.one("play",i),this.dispose=function(){t.logger_("dispose"),t.tech_.off("seekablechanged",s),t.tech_.off("waiting",r),t.tech_.off(tc,a),t.tech_.off("canplay",n),t.tech_.off("play",i),u.forEach(function(e){o[e+"SegmentLoader_"].off("appendsdone",l[e].updateend),o[e+"SegmentLoader_"].off("playlistupdate",l[e].reset),t.tech_.off(["seeked","seeking"],l[e].reset)}),t.checkCurrentTimeTimeout_&&_.clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&_.clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=_.setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];0<this[e+"StalledDownloads_"]&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,i=t[e+"SegmentLoader_"],n=i.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;
399if(e.length!==t.length)return!0;for(var i=0;i<e.length;i++)if(e.start(i)!==t.start(i)||e.end(i)!==t.end(i))return!0;return!1}(this[e+"Buffered_"],n);this[e+"Buffered_"]=n,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:i.playlist_&&i.playlist_.id,buffered:So(n)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(this.tech_.seeking()&&this.fixesBadSeeks_())return this.consecutiveUpdates=0,void(this.lastRecordedTime=this.tech_.currentTime());if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+.1>=t.end(t.length-1)))return this.techWaiting_();5<=this.consecutiveUpdates&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),i=this.tech_.currentTime();if(this.afterSeekableWindow_(t,i,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1)),"undefined"!=typeof(e=this.beforeSeekableWindow_(t,i)?(r=t.start(0))+(r===t.end(0)?0:.1):e))return this.logger_("Trying to seek outside of seekable at time "+i+" with seekable range "+To(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;var n,r,a=this.tech_.buffered();return n={buffered:a,targetDuration:this.media().targetDuration,currentTime:i},r=n.buffered,t=n.targetDuration,n=n.currentTime,!(!r.length||r.end(0)-r.start(0)<2*t||n>r.start(0))&&r.start(0)-n<t&&(e=a.start(0)+.1,this.logger_("Buffered region starts ("+a.start(0)+") just beyond seek point ("+i+"). Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0)},t.waiting_=function(){var e,t;this.techWaiting_()||(e=this.tech_.currentTime(),t=this.tech_.buffered(),(t=_o(t,e)).length&&e+3<=t.end(0)&&(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+t.start(0)+" -> "+t.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})))},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()&&this.fixesBadSeeks_())return!0;if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var i=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+i),this.cancelTimer_(),this.tech_.setCurrentTime(i),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}e=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,i=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:e.audioBuffered(),videoBuffered:e.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;e=bo(i,t);if(0<e.length){i=e.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+i+", seeking to "+e.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*i,t),!0}return!1},t.afterSeekableWindow_=function(e,t,i,n){if(void 0===n&&(n=!1),!e.length)return!1;var r=e.end(e.length-1)+.1;return(r=!i.endList&&n?e.end(e.length-1)+3*i.targetDuration:r)<t},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&0<e.start(0)&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t,i,n=e.videoBuffered,r=e.audioBuffered,a=e.currentTime;if(n)return n.length&&r.length?(i=_o(n,a-3),e=_o(n,a),(r=_o(r,a)).length&&!e.length&&i.length&&(t={start:i.end(0),end:r.end(0)})):bo(n,a).length||(t=this.gapFromVideoUnderflow_(n,a)),!!t&&(this.logger_("Encountered a gap in video from "+t.start+" to "+t.end+". Seeking to current time "+a),!0)},t.skipTheGap_=function(e){var t=this.tech_.buffered(),i=this.tech_.currentTime(),t=bo(t,i);this.cancelTimer_(),0!==t.length&&i===e&&(this.logger_("skipTheGap_:","currentTime:",i,"scheduled currentTime:",e,"nextRange start:",t.start(0)),this.tech_.setCurrentTime(t.start(0)+Ku),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}
399,t.gapFromVideoUnderflow_=function(e,t){for(var i=function(e){if(e.length<2)return ir.createTimeRanges();for(var t=[],i=1;i<e.length;i++){var n=e.end(i-1),r=e.start(i);t.push([n,r])}return ir.createTimeRanges(t)}(e),n=0;n<i.length;n++){var r=i.start(n),a=i.end(n);if(t-r<4&&2<t-r)return{start:r,end:a}}return null},e}(),nc={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},K=function(e){Al(this,e)},rc={PlaylistLoader:Zu,Playlist:Qu,utils:ai,STANDARD_PLAYLIST_SELECTOR:Kt,INITIAL_PLAYLIST_SELECTOR:function(){var t=this,e=this.playlists.master.playlists.filter(Qu.isEnabled);return Ru(e,Mu),e.filter(function(e){return!!Lu(t.playlists.master,e).video})[0]||null},lastBandwidthSelector:Kt,movingAverageBandwidthSelector:function(t){var i=-1,n=-1;if(t<0||1<t)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var e=this.useDevicePixelRatio&&_.devicePixelRatio||1;return i<0&&(i=this.systemBandwidth,n=this.systemBandwidth),0<this.systemBandwidth&&this.systemBandwidth!==n&&(i=t*this.systemBandwidth+(1-t)*i,n=this.systemBandwidth),Nu(this.playlists.master,i,parseInt(Ou(this.tech_.el(),"width"),10)*e,parseInt(Ou(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:Mu,comparePlaylistResolution:function(e,t){var i,n;return(i=(i=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width?e.attributes.RESOLUTION.width:i)||_.Number.MAX_VALUE)===(n=(n=t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width?t.attributes.RESOLUTION.width:n)||_.Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:i-n},xhr:$o()};Object.keys(rl).forEach(function(t){Object.defineProperty(rc,t,{get:function(){return ir.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),rl[t]},set:function(e){ir.log.warn("using Vhs."+t+" is UNSAFE be sure you know what you are doing"),"number"!=typeof e||e<0?ir.log.warn("value of Vhs."+t+" must be greater than or equal to 0"):rl[t]=e}})});function ac(e,t){for(var i=t.media(),n=-1,r=0;r<e.length;r++)if(e[r].id===i.id){n=r;break}e.selectedIndex_=n,e.trigger({selectedIndex:n,type:"change"})}var sc="videojs-vhs";rc.canPlaySource=function(){return ir.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};function oc(e){var n=e.player,t=e.sourceKeySystems,i=e.audioMedia,e=e.mainPlaylists;if(!n.eme.initializeMediaKeys)return Promise.resolve();var r,e=(e=e=i?e.concat([i]):e,r=Object.keys(t),e.reduce(function(e,n){if(!n.contentProtection)return e;var t=r.reduce(function(e,t){var i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e},{});return Object.keys(t).length&&e.push(t),e},[])),a=[],s=[];return e.forEach(function(e){s.push(new Promise(function(e,t){n.tech_.one("keysessioncreated",e)})),a.push(new Promise(function(t,i){n.eme.initializeMediaKeys({keySystems:e},function(e){e?i(e):t()})}))}),Promise.race([Promise.all(a),Promise.race(s)])}function uc(e){var t=e.player;return!!(e=function(e,t,i){if(!e)return e;var n={};t&&t.attributes&&t.attributes.CODECS&&(n=Au(fr(t.attributes.CODECS))),i&&i.attributes&&i.attributes.CODECS&&(n.audio=i.attributes.CODECS);var r,a=gr(n.video),s=gr(n.audio),o={};for(r in e)o[r]={},s&&(o[r].audioContentType=s),a&&(o[r].videoContentType=a),t.contentProtection&&t.contentProtection[r]&&t.contentProtection[r].pssh&&(o[r].pssh=t.contentProtection[r].pssh),"string"==typeof e[r]&&(o[r].url=e[r]);return ir.mergeOptions(e,o)}(e.sourceKeySystems,e.media,e.audioMedia))&&(!((t.currentSource().keySystems=e)&&!t.eme)||(ir.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))}function lc(){if(!_.localStorage)return null;var e=_.localStorage.getItem(sc);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}rc.supportsNativeHls=function(){if(!d||!d.createElement)return!1;var t=d.createElement("video");if(!ir.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some(function(e){return/maybe|probably/i.test(t.canPlayType(e))})}(),rc.supportsNativeDash=!!(d&&d.createElement&&ir.getTech("Html5").isSupported())&&/maybe|probably/i.test(d.createElement("video").canPlayType("application/d
399ash+xml")),rc.supportsTypeNatively=function(e){return"hls"===e?rc.supportsNativeHls:"dash"===e&&rc.supportsNativeDash},rc.isSupported=function(){return ir.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var cc=function(r){function e(e,t,i){var n=r.call(this,t,ir.mergeOptions(i.hls,i.vhs))||this;if(i.hls&&Object.keys(i.hls).length&&ir.log.warn("Using hls options is deprecated. Use vhs instead."),"number"==typeof i.initialBandwidth&&(n.options_.bandwidth=i.initialBandwidth),n.logger_=yo("VhsHandler"),t.options_&&t.options_.playerId&&((i=ir(t.options_.playerId)).hasOwnProperty("hls")||Object.defineProperty(i,"hls",{get:function(){return ir.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),t.trigger({type:"usage",name:"hls-player-access"}),yt(n)},configurable:!0}),i.hasOwnProperty("vhs")||Object.defineProperty(i,"vhs",{get:function(){return ir.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),t.trigger({type:"usage",name:"vhs-player-access"}),yt(n)},configurable:!0}),i.hasOwnProperty("dash")||Object.defineProperty(i,"dash",{get:function(){return ir.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),yt(n)},configurable:!0}),n.player_=i),n.tech_=t,n.source_=e,n.stats={},n.ignoreNextSeekingEvent_=!1,n.setOptions_(),n.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(n.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return n.on(d,["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(e){var t=d.fullscreenElement||d.webkitFullscreenElement||d.mozFullScreenElement||d.msFullscreenElement;t&&t.contains(n.tech_.el())?n.masterPlaylistController_.fastQualityChange_():n.masterPlaylistController_.checkABR_()}),n.on(n.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),n.on(n.tech_,"error",function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()}),n.on(n.tech_,"play",n.play),n}vt(e,r);var t=e.prototype;return t.setOptions_=function(){var e,t=this;this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage="undefined"!=typeof this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage&&((e=lc())&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))),"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=rl.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===rl.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach(function(e){"undefined"!=typeof t.source_[e]&&(t.options_[e]=t.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},t.src=function(e,t){var n=this;e&&(this.setOptions_(),this.options_.src=0===(e=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(e.substring(e.indexOf(",")+1)):e,this.options_.tech=this.tech_,this.options_.externVhs=rc,this.options_.sourceType=_r(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&ir.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new ec(this.options_),t=ir.mergeOptions({liveRangeSafeTimeDelta:.1},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_}),this.playbackWatcher_=new ic(t),this.masterPlaylistController_.on("error",function(){var e=ir.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}),t=this.options_.experimentalBufferBasedABR?rc.movingAverageBandwidthSelector(.55):rc.STANDARD_PLAYLIST_SELECTOR,this.masterPlaylistController_.selectPlaylist=(this.selectPlaylist||t).bind(this),this.masterPlaylistController_.selectInitialPlaylist=rc.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.bandwidth}
399,set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e=1/(this.bandwidth||1),t=0<this.throughput?1/this.throughput:0;return Math.floor(1/(e+t))},set:function(){ir.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return So(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return So(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",function(){n.options_.useBandwidthFromLocalStorage&&function(e){if(!_.localStorage)return;var t=(t=lc())?ir.mergeOptions(t,e):e;try{_.localStorage.setItem(sc,JSON.stringify(t))}catch(e){return}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})}),this.masterPlaylistController_.on("selectedinitialmedia",function(){var i;(i=n).representations=function(){var e=i.masterPlaylistController_.master(),e=Fo(e)?i.masterPlaylistController_.getAudioTrackPlaylists_():e.playlists;return e?e.filter(function(e){return!Oo(e)}).map(function(e,t){return new xl(i,e,e.id)}):[]}}),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",function(){n.setupEme_()}),this.on(this.masterPlaylistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.masterPlaylistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=_.URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_)))},t.setupEme_=function(){var t=this,e=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,i=uc({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",function(e){"output-restricted"===e.status&&t.masterPlaylistController_.blacklistCurrentPlaylist({playlist:t.masterPlaylistController_.media(),message:"DRM keystatus changed to "+e.status+". Playlist will fail to play. Check for HDCP content.",blacklistDuration:1/0})}),11!==ir.browser.IE_VERSION&&i?(this.logger_("waiting for EME key session creation"),oc({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.master.playlists}).then(function(){t.logger_("created EME key session"),t.masterPlaylistController_.sourceUpdater_.initializedEme()}).catch(function(e){t.logger_("error while creating EME key session",e),t.player_.error({message:"Failed to initialize media ke
399ys for EME",code:3})})):this.masterPlaylistController_.sourceUpdater_.initializedEme()},t.setupQualityLevels_=function(){var i=this,e=ir.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",function(){var t,e;t=i.qualityLevels_,(e=i).representations().forEach(function(e){t.addQualityLevel(e)}),ac(t,e.playlists)}),this.playlists.on("mediachange",function(){ac(i.qualityLevels_,i.playlists)}))},e.version=function(){return{"@videojs/http-streaming":"2.10.2","mux.js":"5.13.0","mpd-parser":"0.19.0","m3u8-parser":"4.7.0","aes-decrypter":"3.1.2"}},t.version=function(){return this.constructor.version()},t.canChangeType=function(){return ql.canChangeType()},t.play=function(){this.masterPlaylistController_.play()},t.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},t.duration=function(){return this.masterPlaylistController_.duration()},t.seekable=function(){return this.masterPlaylistController_.seekable()},t.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&_.URL.revokeObjectURL&&(_.URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),r.prototype.dispose.call(this)},t.convertToProgramTime=function(e,t){return au({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},t.seekToProgramTime=function(e,t,i,n){return void 0===i&&(i=!0),void 0===n&&(n=2),su({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:n,pauseAfterSeek:i,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},e}(ir.getComponent("Component")),dc={name:"videojs-http-streaming",VERSION:"2.10.2",canHandleSource:function(e,t){t=ir.mergeOptions(ir.options,t=void 0===t?{}:t);return dc.canPlayType(e.type,t)},handleSource:function(e,t,i){i=ir.mergeOptions(ir.options,i=void 0===i?{}:i);return t.vhs=new cc(e,t,i),ir.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return ir.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=$o(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){t=ir.mergeOptions(ir.options,t=void 0===t?{}:t).vhs.overrideNative,t=void 0===t?!ir.browser.IS_ANY_SAFARI:t,e=_r(e);return e&&(!rc.supportsTypeNatively(e)||t)?"maybe":""}};return yr("avc1.4d400d,mp4a.40.2")&&ir.getTech("Html5").registerSourceHandler(dc,0),ir.VhsHandler=cc,Object.defineProperty(ir,"HlsHandler",{get:function(){return ir.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),cc},configurable:!0}),ir.VhsSourceHandler=dc,Object.defineProperty(ir,"HlsSourceHandler",{get:function(){return ir.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),dc},configurable:!0}),ir.Vhs=rc,Object.defineProperty(ir,"Hls",{get:function(){return ir.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),rc},configurable:!0}),ir.use||(ir.registerComponent("Hls",rc),ir.registerComponent("Vhs",rc)),ir.options.vhs=ir.options.vhs||{},ir.options.hls=ir.options.hls||{},ir.registerPlugin?ir.registerPlugin("reloadSourceOnError",K):ir.plugin("reloadSourceOnError",K),ir}); 400(function(root,factory){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=factory(require("video.js"))}else if(typeof define==="function"&&define.amd){define(["videojs"],function(videojs){return root.Youtube=factory(videojs)})}else{root.Youtube=factory(root.videojs)}})(this,function(videojs){"use strict";var _isOnMobile=videojs.browser.IS_IOS||videojs.browser.IS_ANDROID;var Tech=videojs.getTech("Tech");var Youtube=videojs.extend(Tech,{constructor:function(options,ready){Tech.call(this,options,ready);this.setPoster(options.poster);this.setSrc(this.options_.source,true);setTimeout(function(){this.el_.parentNode.className+=" vjs-youtube";if(_isOnMobile){this.el_.parentNode.className+=" vjs-youtube-mobile"}if(Youtube.isApiReady){this.initYTPlayer()}else{Youtube.apiReadyQueue.push(this)}}.bind(this))},dispose:function(){if(this.ytPlayer){this.ytPlayer.stopVideo();this.ytPlayer.destroy()}else{var index=Youtube.apiReadyQueue.indexOf(this);if(index!==-1){Youtube.apiReadyQueue.splice(index,1)}}this.ytPlayer=null;this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-youtube","").replace(" vjs-youtube-mobile","");this.el_.parentNode.removeChild(this.el_);Tech.prototype.dispose.call(this)},createEl:function(){var div=document.createElement("div");div.setAttribute("id",this.options_.techId);div.setAttribute("style","width:100%;height:100%;top:0;left:0;position:absolute");div.setAttribute("class","vjs-tech");var divWrapper=document.createElement("div");divWrapper.appendChild(div);if(!_isOnMobile&&!this.options_.ytControls){var divBlocker=document.createElement("div");divBlocker.setAttribute("class","vjs-iframe-blocker");divBlocker.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%");divBlocker.onclick=function(){this.pause()}.bind(this);divWrapper.appendChild(divBlocker)}return divWrapper},initYTPlayer:function(){var playerVars={controls:0,modestbranding:1,rel:0,showinfo:0,loop:this.options_.loop?1:0};if(typeof this.options_.autohide!=="undefined"){playerVars.autohide=this.options_.autohide}if(typeof this.options_["cc_load_policy"]!=="undefined"){playerVars["cc_load_policy"]=this.options_["cc_load_policy"]}if(typeof this.options_.ytControls!=="undefined"){playerVars.controls=this.options_.ytControls}if(typeof this.options_.disablekb!=="undefined"){playerVars.disablekb=this.options_.disablekb}if(typeof this.options_.end!=="undefined"){playerVars.end=this.options_.end}if(typeof this.options_.color!=="undefined"){playerVars.color=this.options_.color}if(!playerVars.controls){playerVars.fs=0}else if(typeof this.options_.fs!=="undefined"){playerVars.fs=this.options_.fs}if(typeof this.options_.end!=="undefined"){playerVars.end=this.options_.end}if(typeof this.options_.hl!=="undefined"){playerVars.hl=this.options_.hl}else if(typeof this.options_.language!=="undefined"){playerVars.hl=this.options_.language.substr(0,2)}if(typeof this.options_["iv_load_policy"]!=="undefined"){playerVars["iv_load_policy"]=this.options_["iv_load_policy"]}if(typeof this.options_.list!=="undefined"){playerVars.list=this.options_.list}else if(this.url&&typeof this.url.listId!=="undefined"){playerVars.list=this.url.listId}if(typeof this.options_.listType!=="undefined"){playerVars.listType=this.options_.listType}if(typeof this.options_.modestbranding!=="undefined"){playerVars.modestbranding=this.options_.modestbranding}if(typeof this.options_.playlist!=="undefined"){playerVars.playlist=this.options_.playlist}if(typeof this.options_.playsinline!=="undefined"){playerVars.playsinline=this.options_.playsinline}if(typeof this.options_.rel!=="undefined"){playerVars.rel=this.options_.rel}if(typeof this.options_.showinfo!=="undefined"){playerVars.showinfo=this.options_.showinfo}if(typeof this.options_.start!=="undefined"){playerVars.start=this.options_.start}if(typeof this.options_.theme!=="undefined"){playerVars.theme=this.options_.theme}if(typeof this.options_.customVars!=="undefined"){var customVars=this.options_.customVars;
400Object.keys(customVars).forEach(function(key){playerVars[key]=customVars[key]})}this.activeVideoId=this.url?this.url.videoId:null;this.activeList=playerVars.list;this.ytPlayer=new YT.Player(this.options_.techId,{videoId:this.activeVideoId,playerVars:playerVars,events:{onReady:this.onPlayerReady.bind(this),onPlaybackQualityChange:this.onPlayerPlaybackQualityChange.bind(this),onPlaybackRateChange:this.onPlayerPlaybackRateChange.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onPlayerError.bind(this)}})},onPlayerReady:function(){if(this.options_.muted){this.ytPlayer.mute()}var playbackRates=this.ytPlayer.getAvailablePlaybackRates();if(playbackRates.length>1){this.featuresPlaybackRate=true}this.playerReady_=true;this.triggerReady();if(this.playOnReady){this.play()}else if(this.cueOnReady){this.cueVideoById_(this.url.videoId);this.activeVideoId=this.url.videoId}},onPlayerPlaybackQualityChange:function(){},onPlayerPlaybackRateChange:function(){this.trigger("ratechange")},onPlayerStateChange:function(e){var state=e.data;if(state===this.lastState||this.errorNumber){return}this.lastState=state;switch(state){case-1:this.trigger("loadstart");this.trigger("loadedmetadata");this.trigger("durationchange");this.trigger("ratechange");break;case YT.PlayerState.ENDED:this.trigger("ended");break;case YT.PlayerState.PLAYING:this.trigger("timeupdate");this.trigger("durationchange");this.trigger("playing");this.trigger("play");if(this.isSeeking){this.onSeeked()}break;case YT.PlayerState.PAUSED:this.trigger("canplay");if(this.isSeeking){this.onSeeked()}else{this.trigger("pause")}break;case YT.PlayerState.BUFFERING:this.player_.trigger("timeupdate");this.player_.trigger("waiting");break}},onPlayerError:function(e){this.errorNumber=e.data;this.trigger("pause");this.trigger("error")},error:function(){var code=1e3+this.errorNumber;switch(this.errorNumber){case 5:return{code:code,message:"Error while trying to play the video"};case 2:case 100:return{code:code,message:"Unable to find the video"};case 101:case 150:return{code:code,message:"Playback on other Websites has been disabled by the video owner."}}return{code:code,message:"YouTube unknown error ("+this.errorNumber+")"}},loadVideoById_:function(id){var options={videoId:id};if(this.options_.start){options.startSeconds=this.options_.start}if(this.options_.end){options.endEnd=this.options_.end}this.ytPlayer.loadVideoById(options)},cueVideoById_:function(id){var options={videoId:id};if(this.options_.start){options.startSeconds=this.options_.start}if(this.options_.end){options.endEnd=this.options_.end}this.ytPlayer.cueVideoById(options)},src:function(src){if(src){this.setSrc({src:src})}return this.source},poster:function(){if(_isOnMobile){return null}return this.poster_},setPoster:function(poster){this.poster_=poster},setSrc:function(source){if(!source||!source.src){return}delete this.errorNumber;this.source=source;this.url=Youtube.parseUrl(source.src);if(!this.options_.poster){if(this.url.videoId){this.poster_="https://img.youtube.com/vi/"+this.url.videoId+"/0.jpg";this.trigger("posterchange");this.checkHighResPoster()}}if(this.options_.autoplay&&!_isOnMobile){if(this.isReady_){this.play()}else{this.playOnReady=true}}else if(this.activeVideoId!==this.url.videoId){if(this.isReady_){this.cueVideoById_(this.url.videoId);this.activeVideoId=this.url.videoId}else{this.cueOnReady=true}}},autoplay:function(){return this.options_.autoplay},setAutoplay:function(val){this.options_.autoplay=val},loop:function(){return this.options_.loop},setLoop:function(val){this.options_.loop=val},play:function(){if(!this.url||!this.url.videoId){return}this.wasPausedBeforeSeek=false;if(this.isReady_){if(this.url.listId){if(this.activeList===this.url.listId){this.ytPlayer.playVideo()}else{this.ytPlayer.loadPlaylist(this.url.listId);this.activeList=this.url.listId}}if(this.activeVideoId===this.url.videoId){this.ytPlayer.playVideo()}else{this.loadVideoById_(this.url.videoId);this.activeVideoId=this.url.videoId}}else{this.trigger("waiting");this.playOnReady=true}},pause:function(){if(this.ytPlayer){this.ytPlayer.pauseVideo()}},paused:function(){return this.ytPlayer?this.lastState!==YT.PlayerState.PLAYING&&this.lastState!==YT.PlayerState.BUFFERING:true},currentTime:function(){return this.ytPlayer?this.ytPlayer.getCurrentTime():0},setCurrentTime:function(seconds){if(this.lastState===YT.PlayerState.PAUSED){this.timeBeforeSeek=this.currentTime()}if(!this.isSeeking){this.wasPausedBeforeSeek=this.paused()}this.ytPlayer.seekTo(seconds,true);this.trigger("timeupdate");this.trigger("seeking");this.isSeeking=true;if(this.lastState===YT.PlayerState.PAUSED&&this.timeBeforeSeek!==seconds){clearInterval(this.checkSeekedInPauseInterval);this.checkSeekedInPauseInterval=setInterval(function(){if(this.lastState!==YT.PlayerState.PAUSED||!this.isSeeking){clearInterval(this.checkSeekedInPauseInterval)}else if(this.currentTime()!==this.timeBeforeSeek){this.trigger("timeupdate");this.onSeeked()}}.bind(this),250)}},seeking:function(){return this.isSeeking},seekable:function(){if(!this.ytPlayer){return videojs.createTimeRange()}return videojs.createTimeRange(0,this.ytPlayer.getDuration())},onSeeked:function(){clearInterval(this.checkSeekedInPauseInterval);this.isSeeking=false;if(this.wasPausedBeforeSeek){this.pause()}this.trigger("seeked")},playbackRate:function(){return this.ytPlayer?this.ytPlayer.getPlaybackRate():1},setPlaybackRate:function(suggestedRate){if(!this.ytPlayer){return}this.ytPlayer.setPlaybackRate(suggestedRate)},duration:function(){return this.ytPlayer?this.ytPlayer.getDuration():0},currentSrc:function(){return this.source&&this.source.src},ended:function(){return this.ytPlayer?this.lastState===YT.PlayerState.ENDED:false},volume:function(){return this.ytPlayer?this.ytPlayer.getVolume()/100:1},setVolume:function(percentAsDecimal){if(!this.ytPlayer){return}this.ytPlayer.setVolume(percentAsDecimal*100);this.setTimeout(function(){this.trigger("volumechange")},50)},muted:function(){return this.ytPlayer?this.ytPlayer.isMuted():false},setMuted:function(mute){if(!this.ytPlayer){return}else{this.muted(true)}if(mute){this.ytPlayer.mute()}else{this.ytPlayer.unMute()}this.setTimeout(function(){this.trigger("volumechange")},50)},buffered:function(){if(!this.ytPlayer||!this.ytPlayer.getVideoLoadedFraction){return videojs.createTimeRange()}var bufferedEnd=this.ytPlayer.getVideoLoadedFraction()*this.ytPlayer.getDuration();return videojs.createTimeRange(0,bufferedEnd)},preload:function(){},load:function(){},reset:function(){},supportsFullScreen:function(){return true},checkHighResPoster:function(){var uri="https://img.youtube.com/vi/"+this.url.videoId+"/maxresdefault.jpg";try{var image=new Image;image.onload=function(){if("naturalHeight"in image){if(image.naturalHeight<=90||image.naturalWi
400dth<=120){return}}else if(image.height<=90||image.width<=120){return}this.poster_=uri;this.trigger("posterchange")}.bind(this);image.onerror=function(){};image.src=uri}catch(e){}}});Youtube.isSupported=function(){return true};Youtube.canPlaySource=function(e){return Youtube.canPlayType(e.type)};Youtube.canPlayType=function(e){return e==="video/youtube"};Youtube.parseUrl=function(url){var result={videoId:null};var regex=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/;var match=url.match(regex);if(match&&match[2].length===11){result.videoId=match[2]}var regPlaylist=/[?&]list=([^#\&\?]+)/;match=url.match(regPlaylist);if(match&&match[1]){result.listId=match[1]}return result};function apiLoaded(){YT.ready(function(){Youtube.isApiReady=true;for(var i=0;i<Youtube.apiReadyQueue.length;++i){Youtube.apiReadyQueue[i].initYTPlayer()}})}function loadScript(src,callback){var loaded=false;var tag=document.createElement("script");var firstScriptTag=document.getElementsByTagName("script")[0];firstScriptTag.parentNode.insertBefore(tag,firstScriptTag);tag.onload=function(){if(!loaded){loaded=true;callback()}};tag.onreadystatechange=function(){if(!loaded&&(this.readyState==="complete"||this.readyState==="loaded")){loaded=true;callback()}};tag.src=src}function injectCss(){var css=".vjs-youtube .vjs-iframe-blocker { display: none; }"+".vjs-youtube.vjs-user-inactive .vjs-iframe-blocker { display: block; }"+".vjs-youtube .vjs-poster { background-size: cover; }"+".vjs-youtube-mobile .vjs-big-play-button { display: none; }";var head=document.head||document.getElementsByTagName("head")[0];var style=document.createElement("style");style.type="text/css";if(style.styleSheet){style.styleSheet.cssText=css}else{style.appendChild(document.createTextNode(css))}head.appendChild(style)}Youtube.apiReadyQueue=[];loadScript("https://www.youtube.com/iframe_api",apiLoaded);injectCss();if(typeof videojs.registerTech!=="undefined"){videojs.registerTech("Youtube",Youtube)}else{videojs.registerComponent("Youtube",Youtube)}}); 401(function(f,h){typeof define=="function"&&define.amd?define(["video.js"],function(g){return f.Vimeo=h(g)}):typeof module=="object"&&module.exports?module.exports=f.Vimeo=h(require("video.js")):f.Vimeo=h(f.videojs)})(this,function(f){"use strict";var h={UNSTARTED:-1,ENDED:0,PLAYING:1,PAUSED:2,BUFFERING:3},g=f.getComponent("Tech");class u extends g{constructor(e,r){super(e,r),e.poster&&this.setPoster(e.poster),this.setSrc(this.options_.source.src,!0),setTimeout(function(){this.el_.parentNode.className+=" vjs-vimeo"}.bind(this))}dispose(){this.el_.parentNode.className=this.el_.parentNode.className.replace(" vjs-vimeo","")}createEl(){this.vimeo={},this.vimeoInfo={},this.baseUrl="https://player.vimeo.com/video/",this.baseApiUrl="https://www.vimeo.com/api/v2/video/";var e=u.parseUrl(this.options_.source.src);this.videoId=e.videoId,this.videoSearch=e.videoSearch,this.iframe=document.createElement("iframe"),this.iframe.setAttribute("id",this.options_.techId),this.iframe.setAttribute("title","Vimeo Video Player"),this.iframe.setAttribute("class","vimeoplayer"),this.iframe.setAttribute("src",this.baseUrl+this.videoId+"?api=1&player_id="+this.options_.techId+this.videoSearch),this.iframe.setAttribute("frameborder","0"),this.iframe.setAttribute("scrolling","no"),this.iframe.setAttribute("marginWidth","0"),this.iframe.setAttribute("marginHeight","0"),this.iframe.setAttribute("webkitAllowFullScreen","0"),this.iframe.setAttribute("mozallowfullscreen","0"),this.iframe.setAttribute("allowFullScreen","0");var r=document.createElement("div");if(r.setAttribute("class","vimeoFrame"),r.appendChild(this.iframe),!b&&!this.options_.ytControls){var o=document.createElement("div");o.setAttribute("class","vjs-iframe-blocker"),o.setAttribute("style","position:absolute;top:0;left:0;width:100%;height:100%"),o.onclick=function(){this.onPause()}.bind(this),r.appendChild(o)}return u.isApiReady?this.initPlayer():u.apiReadyQueue.push(this),this.options_.poster==""&&$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},(function(a){return function(m){a.setPoster(m[0].thumbnail_large)}})(this)),r}initPlayer(){var e=this,r=u.parseUrl(this.options_.source.src).videoId;this.vimeo&&this.vimeo.api&&(this.vimeo.api("unload"),delete this.vimeo),e.vimeo=$f(e.iframe),e.vimeoInfo={state:h.UNSTARTED,volume:1,muted:!1,muteVolume:1,time:0,duration:0,buffered:0,url:e.baseUrl+e.videoId,error:null},this.vimeo.addEvent("ready",function(o){e.onReady(),e.vimeo.addEvent("loadProgress",function(a,m){e.onLoadProgress(a)}),e.vimeo.addEvent("playProgress",function(a,m){e.onPlayProgress(a)}),e.vimeo.addEvent("bufferstart",function(a){e.onBufferStart(a)}),e.vimeo.addEvent("play",function(a){e.onPlay()}),e.vimeo.addEvent("pause",function(a){e.onPause()}),e.vimeo.addEvent("finish",function(a){e.onFinish()}),e.vimeo.addEvent("seek",function(a,m){e.onSeek(a)})})}onReady(){this.isReady_=!0,this.triggerReady(),this.trigger("loadedmetadata"),this.startMuted&&(this.setMuted(!0),this.startMuted=!1)}playbackRate(){}onLoadProgress(e){var r=!this.vimeoInfo.duration;this.vimeoInfo.duration=e.duration,this.vimeoInfo.buffered=e.percent,this.trigger("progress"),r&&this.trigger("durationchange")}onPlayProgress(e){this.vimeoInfo.time=e.seconds,this.trigger("timeupdate")}onBufferStart(e){this.vimeoInfo.state=h.BUFFERING,this.player_.trigger("timeupdate"),this.player_.trigger("waiting")}onPlay(){this.vimeoInfo.state=h.PLAYING,this.trigger("play")}onPause(){this.vimeoInfo.state=h.PAUSED,this.trigger("pause")}onFinish(){this.vimeoInfo.state=h.ENDED,this.trigger("ended")}onSeek(e){this.trigger("seeking"),this.vimeoInfo.time=e.seconds,this.trigger("timeupdate"),this.trigger("seeked")}onError(e){this.error=e,this.trigger("error")}error(){switch(this.errorNumber){case 2:return{code:"Unable to find the video"};case 5:return{code:"Error while trying to play the video"};case 100:return{code:"Unable to find the video"};case 101:case 150:return{code:"Playback on other Websites has been disabled by the video owner."}}return{code:"Vimeo unknown error ("+this.errorNumber+")"}}src(){return this.source}poster(){return this.poster_}setPoster(e){this.poster_=e}setSrc(e){!e||!e.src||(this.source=e,this.url=u.parseUrl(e.src),this.options_.poster||this.url.videoId&&($.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"}
401,(function(r){return function(o){r.poster_=o[0].thumbnail_small}})(this)),this.checkHighResPoster()),this.options_.autoplay&&!b&&(this.isReady_?this.play():this.playOnReady=!0))}supportsFullScreen(){return!1}enterFullScreen(){}load(){}play(){this.vimeo.api("play")}pause(){this.vimeo.api("pause")}paused(){return this.vimeoInfo.state!==h.PLAYING&&this.vimeoInfo.state!==h.BUFFERING}currentTime(){return this.vimeoInfo.time||0}setCurrentTime(e){this.vimeo.api("seekTo",e),this.player_.trigger("timeupdate")}duration(){return this.vimeoInfo.duration||0}buffered(){return f.createTimeRange(0,this.vimeoInfo.buffered*this.vimeoInfo.duration||0)}volume(){return this.vimeoInfo.muted?this.vimeoInfo.muteVolume:this.vimeoInfo.volume}setVolume(e){this.vimeo.api("setvolume",e),this.vimeoInfo.volume=e,this.player_.trigger("volumechange")}currentSrc(){return this.el_.src}muted(){return this.vimeoInfo.muted||!1}setMuted(e){e?(this.vimeoInfo.muteVolume=this.vimeoInfo.volume,this.setVolume(0)):this.setVolume(this.vimeoInfo.muteVolume),this.vimeoInfo.muted=e,this.player_.trigger("volumechange")}checkHighResPoster(){var e="";try{$.getJSON(this.baseApiUrl+this.videoId+".json?callback=?",{format:"json"},(function(o){return function(a){o=a[0].thumbnail_large}})(e));var r=new Image;r.onload=function(){if("naturalHeight"in this){if(this.naturalHeight<=90||this.naturalWidth<=120){this.onerror();return}}else if(this.height<=90||this.width<=120){this.onerror();return}this.poster_=e,this.trigger("posterchange")}.bind(this),r.onerror=function(){},r.src=e}catch{}}}u.isSupported=function(){return!0},u.canPlaySource=function(n){return n.type==="video/vimeo"};var b=/(iPad|iPhone|iPod|Android)/g.test(navigator.userAgent);u.parseUrl=function(n){var e={videoId:null,videoSearch:""},r=/^.*(vimeo\.com\/)((channels\/[A-z]+\/)|(groups\/[A-z]+\/videos\/))?([0-9]+)?(\?[^#]+)?/,o=n.match(r);return o&&(e.videoId=o[5],o[6]&&(e.videoSearch=o[6].replace("?","&"))),e};function P(){var n=".vjs-vimeo .vjs-iframe-blocker { display: none; }.vjs-vimeo.vjs-user-inactive .vjs-iframe-blocker { display: block; }.vjs-vimeo .vjs-poster { background-size: cover; }.vjs-vimeo { height:100%; }.vimeoplayer { width:100%; height:180%; position:absolute; left:0; top:-40%; }",e=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",r.styleSheet?r.styleSheet.cssText=n:r.appendChild(document.createTextNode(n)),e.appendChild(r)}u.apiReadyQueue=[];var S=function(){u.isApiReady=!0,P();for(var n=0;n<u.apiReadyQueue.length;++n)u.apiReadyQueue[n].initPlayer()};S(),f.registerTech("Vimeo",u);var U=(function(){function n(t){return new n.fn.init(t)}var e={},r=!1,o=!1,a=Array.prototype.slice,m="*";n.fn=n.prototype={element:null,init:function(t){return typeof t=="string"&&(t=document.getElementById(t)),this.element=t,this},api:function(t,i){if(!this.element||!t)return!1;var s=this,l=s.element,d=l.id!==""?l.id:null,c=A(i)?null:i,v=A(i)?i:null;return v&&E(t,v,d),y(t,c,l),s},addEvent:function(t,i){if(!this.element)return!1;var s=this,l=s.element,d=l.id!==""?l.id:null;return E(t,i,d),t!="ready"?y("addEventListener",t,l):t=="ready"&&o&&i.call(null,d),s},removeEvent:function(t){if(!this.element)return!1;var i=this,s=i.element,l=s.id!==""?s.id:null,d=R(t,l);t!="ready"&&d&&y("removeEventListener",t,s)}};function y(t,i,s){if(!s.contentWindow.postMessage)return!1;var l=JSON.stringify({method:t,value:i});s.contentWindow.postMessage(l,m)}function I(t){var i,s;try{i=JSON.parse(t.data),s=i.event||i.method}catch{}if(s=="ready"&&!o&&(o=!0),!/^https?:\/\/player.vimeo.com/.test(t.origin))return!1;m==="*"&&(m=t.origin);var l=i.value,d=i.data,c=c===""?null:i.player_id,v=w(s,c),p=[];return v?(l!==void 0&&p.push(l),d&&p.push(d),c&&p.push(c),p.length>0?v.apply(null,p):v.call()):!1}function E(t,i,s){s?(e[s]||(e[s]={}),e[s][t]=i):e[t]=i}function w(t,i){if(i&&e[i])return e[i][t];if(e[t])return e[t]}function R(t,i){if(i&&e[i]){if(!e[i][t])return!1;e[i][t]=null}else{if(!e[t])return!1;e[t]=null}return!0}function A(t){return!!(t&&t.constructor&&t.call&&t.apply)}function _(t){return toString.call(t)==="[object Array]"}return n.fn.init.prototype=n.fn,window.addEventListener?window.addEventListener("message",I,!1):window.attachEvent("onmessage",I),window.Froogaloop=window.$f=n})()}); 402 403class GoogleAnalytics4Helper{static initGoogleAnalytics(e){var i;if(window.dataLayer=window.dataLayer||[],e.trackingCode){const t=e.hasOwnProperty("pageViewEventId");if(e.isConsentModelEnabled){const a=e.isConsentModeAccepted?"granted":"denied";n("consent","default",{ad_storage:a,ad_user_data:a,ad_personalization:a,analytics_storage:a})}n("js",new Date);const c=e.trackingCode.split(";");for(let a of c)if(a){const d={send_page_view:!t,allow_enhanced_conversions:!0,debug_mode:!1,click_id:e.click_id,click_id_type:e.click_id_type};if(((i=e.crossDomainLinkerDomains)==null?void 0:i.length)>0){const s=[window.location.hostname,...e.crossDomainLinkerDomains];d.linker={domains:[...new Set(s)],decorate_forms:!0}}n("config",a,d)}t&&n("event","page_view",{event_id:e.pageViewEventId})}function n(){window.dataLayer.push(arguments)}}} 404 405class HistoryHelper{static removeParamFromUrlAndHistory(e){const r=new
405URL(window.location.href);r.searchParams.delete(e),window.history.pushState({},"",r)}} 406 407class RedirectPageHelper{static init(){var e=document.getElementById("redirect-form"),a=new URL(e.getAttribute("data-url"));e.action=a.origin+a.pathname,a.searchParams.forEach(function(n,r){var t=document.createElement("input");t.type="hidden",t.name=r,t.value=n,e.appendChild(t)}),setTimeout(function(){e.requestSubmit()},3e3)}} 408 409var w=i=>{throw TypeError(i)};var y=(i,n,e)=>n.has(i)||w("Cannot "+e);var o=(i,n,e)=>(y(i,n,"read from private field"),e?e.call(i):n.get(i)),r=(i,n,e)=>n.has(i)?w("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(i):n.set(i,e),m=(i,n,e,a)=>(y(i,n,"write to private field"),a?a.call(i,e):n.set(i,e),e);(()=>{var n,e,a,c,d,S;const t=class t{static reviseS3ImagesForWebpSupport(){o(t,d,S)||($(`img[src^='${o(t,n)}'][src$='${o(t,e)}']`).each((s,l)=>{const f=$(l),p=f.attr("src");f.attr("src",p.replace(o(t,e),o(t,a)))}),$(`[style*='url('][style*='${o(t,n)}'][style*='${o(t,e)}']`).each((s,l)=>{const f=$(l),p=f.attr("style");f.attr("style",p.replace(o(t,e),o(t,a)))}))}static getS3SupportedUrl(s){return s&&(!o(t,d,S)&&s.indexOf(o(t,n))!==-1&&s.indexOf(o(t,e))!==-1?s.replace(o(t,e),o(t,a)):s)}};n=new WeakMap,e=new WeakMap,a=new WeakMap,c=new WeakMap,d=new WeakSet,S=function(){if(typeof o(t,c)=="undefined"){const s=document.createElement("canvas");s.getContext&&s.getContext("2d")?m(t,c,s.toDataURL("image/webp").indexOf("data:image/webp")===0):m(t,c,!1)}return o(t,c)},r(t,d),r(t,n,"https://dy9ihb9itgy3g.cloudfront.net"),r(t,e,".webp"),r(t,a,".jpg"),r(t,c);let i=t;window.CommonHelpers=window.CommonHelpers||{},window.CommonHelpers.webpImagesHelper=i})(); 410 411window.Syvo={eventNames:{onUrlChanged:"syvo:onUrlChanged"}};function SyvoModule(r,t){const e=this;let o=!1;e.isLoaded=s,e.load=i,e.getModuleEventName=n,e.name=r,e.eventNames={onBeforeLoad:n("onBeforeLoad"),onAfterLoad:n("onAfterLoad")};function i(l){if(!o){const a=$(window);a.trigger(e.eventNames.onBeforeLoad,[e,l]),t(l),o=!0,a.trigger(e.eventNames.onAfterLoad,[e,l])}}function s(){return o}function n(l){return`${e.name}:${l}`}}window.convertToBool=r=>{if(typeof r=="undefined")return!1;switch(typeof r=="string"&&(r=r.toLowerCase()),r){case"true":case 1:return!0;default:return!1}},window.getElementOffset=r=>{if(r){var t={top:0,left:0};if(typeof r.getBoundingClientRect!="function")return t;var e=r.getBoundingClientRect(),o=r.ownerDocument.defaultView;return t={top:e.top+o.pageYOffset,left:e.left+o.pageXOffset},t}},(()=>{const r=-new Date().getTimezoneOffset();$.cookie("timeZoneOffset",r,{expires:1,path:"/"}),$.fn.serializeObject=function(){const t={},e=this.serializeArray();return $.each(e,function(){t[this.name]?(t[this.name].push||(t[this.name]=[t[this.name]]),t[this.name].push(this.value||"")):t[this.name]=this.value||""}),t},$.serializeArrayToDictionary=t=>{const e={};return $.each(t,function(){e[this.name]?(e[this.name].push||(e[this.name]=[e[this.name]]),e[this.name].push(this.value||""),e[this.name]=e[this.name].join(",")):e[this.name]=this.value||""}),e},$.convertToBool=t=>window.convertToBool(t),$.getCurrentViewport=()=>{let t=window,e="inner";return"innerWidth"in window||(e="client",t=document.documentElement||document.body),{width:t[e+"Width"],height:t[e+"Height"]}},$.fixedHeader=t=>{const e={init:s,destroy:n,reinit:l},o={root:{selector:"body",classModifier:"fixed-header"},header:{selector:"[data-property=fixed-header]",events:{timeout:250,onAfterInit:"syvo_fixedHeader:onAfterInit",onAfterDestroy:"syvo_fixedHeader:onAfterDestroy",onCalculate:"syvo_fixedHeader:onCalculate",onBeforeChange:"syvo_fixedHeader:onBeforeChange",onAfterChange:"syvo_fixedHeader:onAfterChange",onApply:"syvo_fixedHeader:onApply",onReset:"syvo_fixedHeader:onReset",onHeightChanged:"syvo_fixedHeader:onHeightChanged"},callbacks:{onAfterInit:K(),onAfterDestroy:K(),onCalculate:K(),onBeforeChange:K(),onAfterChange:K(),onApply:K(),onReset:K(),onHeightChanged:K()}},scrolledFromTop:null},i=$(window);if(e.settings=$.extend(!0,{},o,t),!e.settings.root||!e.settings.header||!e.settings.header.events||!e.settings.header.callbacks)return;return s();function s(){return M(),j(),W(),x(e.$header,e.settings.header.events.onAfterInit,_,e.settings.header.callbacks.onAfterInit),e;function M(){e.$root=$(e.settings.root.selector),e.$header=$(e.settings.header.selector),e.$placeholder=$("<div class='primary-block-placeholder' style='display: none;'></div>")}function j(){i.on("hashchange",C),i.on("scroll",A),i.on("resize gestureend syvo:pinchend orientationchange",b),i.on(window.Syvo.Popups.eventNames.onAfterVisibilityChanged,p),i.on("load",g)}function W(){I(),T(),e.$header.after(e.$placeholder)}}function n(){return W(),j(),M(),x(e.$header,e.settings.header.events.onAfterDestroy,B,e.settings.header.callbacks.onAfterDestroy),e;function M(){e.headerHeight=0,e.fixedHeaderHeight=0,e.$root=$(),e.$header=$(),e.$placeholder=null}function j(){i.off("hashchange",C),i.off("scroll",A),i.off("resize gestureend syvo:pinchend orientationchange",b),i.off(window.Syvo.Popups.eventNames.onAfterVisibilityChanged,p),i.off("load",g)}function W(){P(!1),h(),e.$placeholder.remove()}}function l(){return n(),s()}function a(){if(e.settings.scrolledFromTop||e.settings.scrolledFromTop===0)return e.settings.scrolledFromTop;const M=Math.abs(e.headerHeight-e.fixedHeaderHeight);return M===0?1:M}function d(M){return(M||e.$header).outerHeight()}function g(M){S()}function C(M){clearTimeout(e.windowOnHashChangeTimeout),e.windowOnHashChangeTimeout=setTimeout(()=>{I()},e.settings.header.events.timeOut)}function A(M){T()}function p(M,j){j&&j.$popup instanceof jQuery&&e.$header.has(j.$popup).length>0&&S(!0)}function b(M){f()?d()!==e.fixedHeaderHeight&&m():d()!==e.headerHeight&&m()}function m(){clearTimeout(e.headerOuterHeightChangedTimeout),e.headerOuterHeightChangedTimeout=setTimeout(()=>{S()},e.settings.header.events.timeOut),x(e.$header,e.settings.header.events.onHeightChanged,Z,e.settings.header.callbacks.onHeightChanged)}function T(){const M=f();i.scrollTop()>=a()?M||(S(),P(!0)):M&&(S(),P(!1))}function P(M){x(e.$header,e.settings.header.events.onBeforeChange,L,e.settings.header.callbacks.onBeforeChange),M===!0?v():y(),x(e.$header,e.settings.header.events.onAfterChange,D,e.settings.header.callbacks.onAfterChange)}function S(M=!1){u(M),e.$placeholder.height(e.headerHeight),x(e.$header,e.settings.header.events.onCalculate,F,e.settings.header.callbacks.onCalculate)}function f(M){return(M||e.$root).hasClass(e.settings.root.classModifier)}function v(){e.$placeholder.show(),E(e.$root,!0),e.isHeaderFixed=!0,x(e.$header,e.settings.header.events.onApply,te,e.settings.header.callbacks.onApply)}function y(){e.$placeholder.hide(),E(e.$root,!1),e.isHeaderFixed=!1,x(e.$header,e.settings.header.events.onReset,R,e.settings.header.callbacks.onReset)}function E(M,j){M.length!==0&&(j===!0?M.addClass(e.settings.root.classModifier):M.removeClass(e.settings.root.classModifier))}function I(){const M=window.location.hash;if(!M)return;const W=$(M).offset();W&&$("html, body").animate({scrollTop:W.top-e.$header.outerHeight()},"fast")}function u(M=!1){(M||!e.$hiddenRoot)&&(e.$hiddenRoot=c()),e.$hiddenRoot.insertAfter(e.$root);const j=e.$hiddenRoot.find(e.settings.header.selector);f(e.$hiddenRoot)?(e.fixedHeaderHeight=d(j),E(e.$hiddenRoot,!1),e.headerHeight=d(j)):(e.headerHeight=d(j),E(e.$hiddenRoot,!0),e.fixedHeaderHeight=d(j)),e.$hiddenRoot.remove()}function c(){const M=$(`<div class="theme-typo iblock-fix ${e.$root.attr("class")}"></div>`);M.css("position","fixed").css("top","100%").css("left","0").css("right","0").css("bottom","auto").css("opacity","0").css("z-index","0").append(e.$header.clone());const j=M.find("[id]");return $.each(j,(W,se)=>{const z=$(se);z.attr("id",z.attr("id")+"-cloned")}),M}function h(){e.$hiddenRoot&&e.$hiddenRoot.remove()}function x(M,j,W,se){!M||M.length===0||(typeof j=="string"&&M.trigger(j,[e.headerHeight,e.fixedHeaderHeight]),typeof W=="function"&&W(),typeof se=="function"&&se())}function _(){}function B(){e.$hiddenRoot=null}function F(){}function L(){}function D(){}function te(){}function R(){}function Z(){}function K(){return()=>{}}},$.checkContains=(t,e)=>{if(t instanceof jQuery&&e instanceof jQuery){let o=0;const i=t.length;for(;o<i;o++){let s=0;const n=e.length;for(;s<n;s++)if($.contains(t[o],e[s]))return!0}}return!1},$.fn.spyChanges=function(t,e){if(typeof t!="function")return;const o=this;let i=t(),s;n();function n(){const l=t();l!==i&&(o.trigger(e),i=l),clearTimeout(s),s=setTimeout(n,100)}},$.fn.setCursorPosition=function(t){return this.length===0?this:$(this).setSelection(t,t)},$.fn.setSelection=function(t,e){if(this.length===0)return this;const o=this[0];if(o.createTextRange){const i=o.createTextRange();i.collapse(!0),i.moveEnd("character",e),i.moveStart("character",t),i.select()}else o.setSelectionRange&&(o.focus(),o.setSelectionRange(t,e));return this},$.fn.focusEnd=function(){this.setCursorPosition(this.val().length)},$.fn.focusStart=function(){this.setCursorPosition(0)},$.fn.showInlineBlock=function(){this.css("display","inline-block")}
411,$.fn.getCssBackgroundImageUrl=function(){const t=`${window.location.origin}${Common.getBaseHref()}`;return this.css("background-image").replace(/^url\(['"](.+)['"]\)/,"$1").replace(t,"")},$.validator.addMethod("minDate",function(t,e,o){let i=null;if(typeof o=="string"){const n=$(e),l=n.datepicker("option","dateFormat");if(l)try{i=new Date($.datepicker.parseDate(l,o))}catch(a){i=$.datepicker._determineDate(n,o,new Date)}}if(o instanceof Date&&(i=o),this.optional(e))return!0;(i==null||isNaN(i.getTime()))&&(i=$.datepicker._determineDate($(e).data("datepicker"),o,new Date));const s=$(e).datepicker("getDate");return i<=s}),$.validator.addMethod("maxDate",function(t,e,o){let i=null;if(typeof o=="string"){const n=$(e),l=n.datepicker("option","dateFormat");if(l)try{i=new Date($.datepicker.parseDate(l,o))}catch(a){i=$.datepicker._determineDate(n,o,new Date)}}if(o instanceof Date&&(i=o),this.optional(e))return!0;(i==null||isNaN(i.getTime()))&&(i=$.datepicker._determineDate($(e).data("datepicker"),o,new Date));const s=$(e).datepicker("getDate");return i>=s}),$.validator.addMethod("string-regex-format",(t,e,o)=>{if(t){const i=e.getAttribute("data-val-string-regex-format-regexp");if(i)return new RegExp(i).test(t)}return!0}),jQuery.validator.unobtrusive.adapters.addBool("string-regex-format"),$.validator.addMethod("future-event-date",(t,e)=>{const i=$(e).closest("[data-container='future-event-date']"),s={};i.find("[data-val-future-event-date]").each((C,A)=>{s[$(A).attr("data-property")]=parseInt($(A).val())});const l=s.eventmonth,a=s.eventday,d=s.eventyear;if(isNaN(l)||isNaN(a)||isNaN(d))return!0;const g=new Date;return g.setHours(0,0,0,0),new Date(d,l-1,a)>g},""),jQuery.validator.unobtrusive.adapters.addBool("future-event-date"),$.validator.addMethod("future-date",t=>{if(!t)return!0;const e=new Date,o=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`;return t>o},""),jQuery.validator.unobtrusive.adapters.addBool("future-date"),$.validator.addMethod("dateFormat",function(t,e,o){try{return this.optional(e)||$.datepicker.parseDate(o,t)!==null}catch(i){return!1}}),$.validator.addMethod("creditCardExpirationDate",function(t,e,o){try{const i=(t||"").replace(/\D/g,"");if(i.length!==4)return!1;let s=new Date,n=s.getMonth()+1,l=parseInt(s.getFullYear().toString().substring(2,4)),a=parseInt(i.substring(0,2)),d=parseInt(i.substring(2,4));return!(isNaN(d)||isNaN(a)||d<l||a>12||a<n&&d===l)}catch(i){return!1}})})(jQuery),Number.prototype.formatMoney=function(r,t,e,o,i){i=i===void 0||i<1||i==="begin"?"begin":"end",o=isNaN(o=Math.abs(o))?2:o;let s=parseFloat(this,o);t=t===void 0?".":t,e=e===void 0?",":e;const n="",l=s<0?"(":"",a=s<0?")":"",d=parseInt(s=Math.abs(+s||0))+"";let g=d.length>3?d.length%3:0,C=l;return C+=i==="begin"&&r?r+"":"",C+=n,C+=g?d.substr(0,g)+e:"",C+=d.substr(g).replace(/(\d{3})(?=\d)/g,"$1"+e),C+=o?t+(Math.ceil(Math.abs(s-d).toFixed(6)*Math.pow(10,o))/Math.pow(10,o)).toFixed(o).slice(o):"",C+=i==="end"&&r?r+"":"",C+=a,C},Number.prototype.formatMoneyInternational=function(r,t){r=r==null?"en_us":r,t=t==null?r:t;const e={float:{symbol:null,symbolPosition:"end",decimal:".",comma:""},bg:{symbol:" BGN",symbolPosition:"end",decimal:",",comma:" "},ca:{symbol:" \u20AC",symbolPosition:"end",decimal:",",comma:"."},cs:{symbol:" Kc",symbolPosition:"end",decimal:",",comma:" "},da:{symbol:"kr ",symbolPosition:"begin",decimal:",",comma:"."},de:{symbol:" \u20AC",symbolPosition:"end",decimal:",",comma:"."},de_au:{symbol:" \u20AC",symbolPosition:"end",decimal:",",comma:"."},de_lu:{symbol:" \u20AC",symbolPosition:"end",decimal:",",comma:"."},el:{symbol:" \u20AC",symbolPosition:"end",decimal:",",comma:"."},en_us:{symbol:"$",symbolPosition:"begin",decimal:".",comma:","},en_gb:{symbol:"\xA3 ",symbolPosition:"begin",decimal:".",comma:","},en_au:{symbol:"$ ",symbolPosition:"begin",decimal:".",comma:","},en_ca:{symbol:"$",symbolPosition:"begin",decimal:".",comma:","},en_ie:{symbol:"\u20AC ",symbolPosition:"begin",decimal:".",comma:","},es_mx:{symbol:"$ ",symbolPosition:"begin",decimal:".",comma:","}
411,es:{symbol:" \u20AC",symbolPosition:"end",decimal:",",comma:"."},fi:{symbol:" \u20AC",symbolPosition:"end",decimal:",",comma:" "},fr:{symbol:" \u20AC",symbolPosition:"end",decimal:",",comma:" "},fr_ca:{symbol:" $",symbolPosition:"end",decimal:",",comma:" "},fr_ch:{symbol:"SFr. ",symbolPosition:"begin",decimal:".",comma:"'"},hu:{symbol:" Ft",symbolPosition:"end",decimal:",",comma:" "},it:{symbol:"\u20AC ",symbolPosition:"begin",decimal:",",comma:"."},it_ch:{symbol:"₣ ",symbolPosition:"begin",decimal:".",comma:"'"},ja:{symbol:"\xA5 ",symbolPosition:"begin",decimal:".",comma:"'"},nl:{symbol:"\u20AC ",symbolPosition:"begin",decimal:",",comma:"."},no:{symbol:"kr ",symbolPosition:"begin",decimal:",",comma:" "},pl:{symbol:" zl",symbolPosition:"end",decimal:",",comma:" "},pt_br:{symbol:"R$ ",symbolPosition:"begin",decimal:",",comma:"."},pt:{symbol:" \u20AC",symbolPosition:"end",decimal:",",comma:"."},ro:{symbol:" lei",symbolPosition:"end",decimal:",",comma:"."},ru:{symbol:" p.",symbolPosition:"end",decimal:",",comma:" "},hr:{symbol:" kn",symbolPosition:"end",decimal:",",comma:"."},sr:{symbol:" Din.",symbolPosition:"end",decimal:",",comma:"."},sv:{symbol:" kr",symbolPosition:"end",decimal:",",comma:"."},tr:{symbol:" TL",symbolPosition:"end",decimal:",",comma:"."},id:{symbol:" Rp.",symbolPosition:"begin",decimal:" ",comma:"."}
411,uk:{symbol:" rpH.",symbolPosition:"end",decimal:",",comma:" "},be:{symbol:" p.",symbolPosition:"end",decimal:",",comma:" "},sl:{symbol:" SIT",symbolPosition:"end",decimal:",",comma:"."},et:{symbol:" kr",symbolPosition:"end",decimal:".",comma:" "},lv:{symbol:"Ls ",symbolPosition:"begin",decimal:",",comma:" "},lt:{symbol:" Lt",symbolPosition:"end",decimal:",",comma:"."},af:{symbol:"R ",symbolPosition:"begin",decimal:".",comma:","},fo:{symbol:"kr ",symbolPosition:"begin",decimal:",",comma:"."}},o=this+"";let i;return e[r]?(i=parseFloat(o.replace(e[t].comma,"").replace(e[t].decimal,".").replace(/[^\d\.\,\-]/g,"")),i.formatMoney(e[r].symbol,e[r].decimal,e[r].comma,2,e[r].symbolPosition)):(i=parseFloat(o.replace(e.en_us.decimal,".").replace(e.en_us.comma,"").replace(/[^\d\.\,\-]/g,"")),console.log("Error: "+r+" country code unknown."),i.formatMoney(e.en_us.symbol,e.en_us.decimal,e.en_us.comma,2,e.en_us.symbolPosition))},String.prototype.formatMoneyInternational=Number.prototype.formatMoneyInternational;function formatMoneyByIndexOfCurrency(r,t){t===void 0&&(t=window.common_settings.checkoutCurrencyIndex),isNaN(r)||(r=(r-0).toFixed(2));const o=(window.common_settings.currencies||[]).find(i=>i.currency===t);return o?o.format.replace("0.00",r):r}window.days={SUNDAY:0,MONDAY:1,TUESDAY:2,WEDNESDAY:3,THURSDAY:4,FRIDAY:5,SATURDAY:6},Date.prototype.toDateWithoutOffset=function(){const r=this,t=r.getTimezoneOffset()*6e4;return new Date(r.getTime()+t)},window.googleAdwordsAsync=r=>{for(let e in r)r.hasOwnProperty(e)&&e.indexOf("google")===0&&(window[e]=r[e]);const t=document.write;document.write=e=>{$("body").append(e)},$.getScript("https://www.googleadservices.com/pagead/conversion.js",()=>{setTimeout(()=>{document.write=t},100)})},Common={AuthNet:{rawCardFieldNames:["cardnumber","cardsecurecode","securitycode","cardcvc","cardmonth","cardyear","expirationdate","cardexpirationdate"],isConfigured:()=>{var r,t,e,o;return typeof Accept!="undefined"&&!!((t=(r=window.authNet)==null?void 0:r.settings)!=null&&t.apiLoginId)&&!!((o=(e=window.authNet)==null?void 0:e.settings)!=null&&o.clientKey)},parseExpiration:r=>{const t=(r||"").replace(/\D/g,"");if(t.length<4)return null;const e=t.slice(0,2);let o=t.slice(2);return o.length===2&&(o="20"+o),{month:e,year:o}},tokenize:r=>{const t=n=>{const l=Object.keys(r).find(a=>a.toLowerCase()===n);return l?r[l]:null},e=(t("cardnumber")||"").replace(/\s/g,"");if(!e)return Promise.resolve(null);if(!Common.AuthNet.isConfigured())return Promise.reject("Payment gateway is not configured");let o=t("cardmonth"),i=t("cardyear");if(!o||!i){const n=Common.AuthNet.parseExpiration(t("expirationdate")||t("cardexpirationdate"));n&&(o=n.month,i=n.year)}const s={cardNumber:e,month:("0"+o).slice(-2),year:String(i),cardCode:t("cardsecurecode")||t("securitycode")||t("cardcvc")};return new Promise((n,l)=>{Accept.dispatchData({authData:{apiLoginID:window.authNet.settings.apiLoginId,clientKey:window.authNet.settings.clientKey},cardData:s},a=>{a.messages.resultCode==="Error"?l(a.messages.message.map(d=>d.text).join(" ")):n({opaqueDataDescriptor:a.opaqueData.dataDescriptor,opaqueDataValue:a.opaqueData.dataValue})})})},tokenizeAndCleanse:async r=>{const t=await Common.AuthNet.tokenize(r);return Object.keys(r).filter(e=>Common.AuthNet.rawCardFieldNames.indexOf(e.toLowerCase())!==-1).forEach(e=>{delete r[e]}),t&&(r.opaqueDataDescriptor=t.opaqueDataDescriptor,r.opaqueDataValue=t.opaqueDataValue),r},tokenizeAndCleanseArray:async r=>{const t={};r.forEach(i=>{t[i.name]=i.value});const e=await Common.AuthNet.tokenize(t),o=r.filter(i=>Common.AuthNet.rawCardFieldNames.indexOf(i.name.toLowerCase())===-1);return e&&(o.push({name:"opaqueDataDescriptor",value:e.opaqueDataDescriptor}),o.push({name:"opaqueDataValue",value:e.opaqueDataValue})),o}},Stripe:{init:r=>{if(!r)throw new Error("Stripe initialization failed!");const t="#stripe-card-number",e="#stripe-card-date",o="#stripe-card-cvc",i="#stripe-postal-code";let s,n,l,a,d,g;function C(){if($(t).length===0)return null;const m={styleReferenceInputSelector:".hidden-input-holder input",placeholdersEnabled:!1},T=$.extend(!0,{},m,r),P={locale:"en",apiVersion:"2020-08-27"};r.clientId&&(P.stripeAccount=r.clientId),s=Stripe(T.publicKey,P);const S=A(T);n=s.elements({fonts:Common.getAllGoogleFonts().map(v=>({cssSrc:v}))}),l=n.create("cardNumber",{style:S,placeholder:p(T,$(t))}),l.mount(t),a=n.create("cardExpiry",{style:S,placeholder:p(T,$(e))}),a.mount(e),d=n.create("cardCvc",{style:S,placeholder:p(T,$(o))}),d.mount(o);let f=$(i);f.length===1&&(g=n.create("postalCode",{style:S,placeholder:p(T,f)}),g.mount(i)),l.on("change",function(v){b($(t),!v.complete)}),a.on("change",function(v){b($(e),!v.complete)}),d.on("change",function(v){b($(o),!v.complete)}),g&&g.on("change",function(v){b($(i),!v.complete)})}return C.prototype.getStripe=()=>s,C.prototype.getFormElements=()=>({elements:n,cardElement:l,cardExpiryElement:a,cardCvcElement:d,postalCodeElement:g}),C.prototype.getIntent=(m,T)=>{if(s===null||l===null)throw new Error("Can't get Stripe intent: initialization failed!");const P={},S=$.extend(!0,{},P,T);return new Promise((f,v)=>{s.createPaymentMethod({type:"card",card:l}).then(y=>{if(y.error)f({status:!1,message:"Your card was declined",intent:null});else{if(S.paymentMethodOnly)return f({status:!0,intent:null,paymentId:y.paymentMethod.id});$.ajax({url:S.url,type:"post",data:{paymentId:y.paymentMethod.id,payload:m},dataType:"json",success:E=>{var I,u;f({status:!0,message:null,intent:E.intent,cardLast4:(u=(I=y.paymentMethod)==null?void 0:I.card)==null?void 0:u.last4,clientSecret:E.clientSecret})},error:E=>{var u;const I=((u=E.responseJSON)!=null?u:{}).message;f({status:!1,message:E.status===403&&I==="Forbidden"?"We couldn\u2019t submit your form because this connection was flagged as unsafe. Please switch to a secure network and try again.":I||"Payment Error!",intent:null})}})}},y=>{f({status:!1,message:"Payment Error!",intent:null})})})},C.prototype.requiresActionPopup=(m,T,P)=>{if(s===null)throw new Error("Can't get Stripe intent: initialization failed!");s.handleCardAction(m).then(S=>{S.error?typeof P=="function"&&P(S):typeof T=="function"&&T()})},new C;function A(m){const T=$(m.styleReferenceInputSelector);return{base:{color:T.css("color"),lineHeight:T.css("line-height"),fontWeight:T.css("font-weight"),fontFamily:T.css("font-family"),fontSize:T.css("font-size"),letterSpacing:T.css("letter-spacing")}}}function p(m,T){return m.placeholdersEnabled&&T.attr("stripe-placeholder")||""}function b(m,T){m.has(":visible").toggleClass("stripe-invalid",T),m.trigger("stripeFieldValidationUpdated")}}},isRobot:()=>["Googlebot","Bingbot","Slurp","DuckDuckBot","Baiduspider"].some(e=>navigator.userAgent.indexOf(e)>=0),GoogleMapsApi:{getLoader:()=>
411{const r="https://maps.googleapis.com/maps/api/js",t="__googleMapsApiOnLoadCallback",e=["channel","client","key","language","region","v"],o={language:"en",libraries:["places","geometry"]},i=Common.isRobot();return s=>{const n=$.extend(!0,{},o,s);return Common.GoogleMapsApi.instancePromise=Common.GoogleMapsApi.instancePromise||new Promise((l,a)=>{i&&a(new Error("Could not load the Google Maps API"));const d=setTimeout(()=>{window[t]=()=>{},a(new Error("Could not load the Google Maps API"))},n.timeout||3e4);window[t]=()=>{d!==null&&clearTimeout(d),l(window.google.maps),delete window[t]};const g=document.createElement("script"),C=[`callback=${t}`];e.forEach(A=>{n[A]&&C.push(`${A}=${n[A]}`)}),n.libraries&&n.libraries.length&&C.push(`libraries=${n.libraries.join(",")}`),g.src=`${n.apiUrl||r}?${C.join("&")}`,document.body.appendChild(g)}),Common.GoogleMapsApi.instancePromise}},getMarkerClustererLoader(){const r="https://unpkg.com/@googlemaps/markerclusterer/dist/index.min.js",t=Common.isRobot();return()=>(Common.GoogleMapsApi.markerclustererPromise=Common.GoogleMapsApi.markerclustererPromise||new Promise((e,o)=>{t&&o(new Error("Could not load the Marker Clusterer"));const i=setTimeout(()=>{o(new Error("Timeout expired load the Marker Clusterer"))},3e4),s=document.createElement("script");s.src=r,s.onload=function(){i!==null&&clearTimeout(i),e(window.markerClusterer.MarkerClusterer)},s.onerror=function(){o(new Error("Could not load the Marker Clusterer"))},document.body.appendChild(s)}),Common.GoogleMapsApi.markerclustererPromise)},makeADACompliant:r=>{const t=$(r).find("img").filter(e=>!$(e).attr("alt"));$.each(t,(e,o)=>{const i=$(o);i.attr("role")||i.attr("role","presentation"),i.attr("alt",`Google Image #${e}`)})}},pickHiddenVars:r=>{const t={parent:{selector:"[data-vars]"},vars:{nameAttr:"data-var-name",typeAttr:"data-var-type",valueAttr:"data-var-value"}},e={settings:$.extend(!0,{},t,r)};if(!e.settings||!e.settings.parent||!e.settings.vars)return;e.vars={},o();function o(){i(),s();function i(){const n={},a=$(e.settings.parent.selector).find("["+e.settings.vars.nameAttr+"]");$.each(a,function(){const d=$(this),g=d.attr(e.settings.vars.nameAttr);if(!g)return;const C=d.attr(e.settings.vars.typeAttr);if(!C)return;const A=d.css(d.attr(e.settings.vars.valueAttr));A&&(n[g]=n[g]||{},n[g][C]=A)}),$.isEmptyObject(n)||(e.vars=n)}function s(){window.common_settings=window.common_settings||{},window.common_settings.vars=e.vars}}},getAllFontsFromCss:()=>{function r(o,...i){this.family=o,this.src=i||[]}r.prototype.toString=function(){return"[Font "+this.family+": "+this.src+"]"};const t=[],e=Array.from(document.styleSheets).filter(o=>!o.href||o.href.startsWith(window.location.origin));for(let o=0;o<e.length;o++){const s=e[o].cssRules;for(let n=0;n<s.length;n++){const l=s[n];l instanceof CSSFontFaceRule&&l.style.src.indexOf("data:")===-1&&t.push(new r(l.style.fontFamily,[l.style.src]))}}return t},getAllGoogleFonts:()=>$("head > link[href*='fonts.googleapis.com']").map((r,t)=>$(t).attr("href")).toArray(),getBaseHref:()=>$("base").attr("href").toLowerCase(),copyToClipboard:{eventNames:{onSuccess:"copy-to-cl
411ipboard:onSuccess",onError:"copy-to-clipboard:onError",onFinally:"copy-to-clipboard:onFinally"},load:r=>{if(typeof document.execCommand!="function"&&typeof navigator.clipboard!="undefined")return;const t=$(window),e=$("body"),o={controlDataAttr:"copy-to-clipboard",targetSelector:"[data-property=copy-to-clipboard]"};let i=!1,s={};return n(),{init:n,destroy:l,reload:a};function n(p){if(i)return;const b=A(p);if(!C(b)){i=!1;return}s=b,e.on("click",`[${s.controlDataAttr}]`,d),i=!0}function l(){i&&(e.off("click",`[${s.controlDataAttr}]`,d),s={},i=!1)}function a(p){l(),n(p)}function d(p){p.preventDefault(),g($(p.currentTarget))}function g(p){if(!p||p.length===0)return;const b=p.attr(s.controlDataAttr);if(!b)return;if(typeof navigator.clipboard!="undefined"){navigator.clipboard.writeText(b).then(()=>{t.trigger(Common.copyToClipboard.eventNames.onSuccess,{message:b})},T=>{t.trigger(Common.copyToClipboard.eventNames.onError,{message:T})}).finally(()=>{t.trigger(Common.copyToClipboard.eventNames.onFinally)});return}const m=$("<textarea>");m.css({position:"fixed",opacity:"0"}),e.append(m),m[0].select();try{const T=document.execCommand("copy");if(!T)throw T;t.trigger(Common.copyToClipboard.eventNames.onSuccess,{message:b})}catch(T){t.trigger(Common.copyToClipboard.eventNames.onError,{message:T})}finally{m.remove(),t.trigger(Common.copyToClipboard.eventNames.onFinally)}}function C(p){return!!p.controlDataAttr}function A(p){return $.extend(!0,{},o,r||{},p||{})}}},initDownloadLink:r=>{const t={targets:{selector:"[download-link]",dataAttr:"download-l
411ink"}},e={settings:$.extend(!0,{},t,r)};if(!e.settings.targets||!e.settings.targets.selector)return;return e.init=o,e.destroy=i,e.reload=s,o();function o(){return a(),d(),e;function a(){e.$targets=$(e.settings.targets.selector).filter(function(){return $(this).attr(e.settings.targets.dataAttr)})}function d(){e.$targets.on("click",n)}}function i(){return d(),a(),e;function a(){e.$targets=$()}function d(){e.$targets.off("click",n)}}function s(){return i(),o()}function n(a){typeof window.navigator.msSaveBlob=="function"&&(a.preventDefault(),l($(this)))}function l(a){return new Promise((d,g)=>{try{const C=a.attr(e.settings.targets.dataAttr),A=new XMLHttpRequest;A.onloadstart=()=>{A.responseType="blob"},A.onload=()=>{window.navigator.msSaveBlob(A.response,C)},A.open("GET",C,!0),A.send(),d()}catch(C){g()}})}},serializeFormToObject:(r,t,e)=>{let o=r.serializeArray();e&&(o=o.filter(n=>!!n.value||n.value==="0"||n.value===0)),o.filter(n=>n.value==="false").forEach(n=>{if(o.find(l=>n.name===l.name&&l.value==="true")){const l=o.indexOf(n);o.splice(l,1)}});const i={};o.forEach((n,l)=>{let a=n.value;if(t&&(a=s(n.name),a=typeof a=="boolean"?a:n.value),n.name.endsWith("[]")){const d=n.name.substring(0,n.name.length-2);i[d]||(i[d]=[]),i[d].push(a);return}i[n.name]=a});function s(n){const l=r.find('[name="'+n+'"]');if(l&&l.is("[type=checkbox]"))return l.is(":checked")}return i},convertJsonToFormData:(r,t,e,o)=>{const i=e||new FormData,s=t||{};for(let n in r){if(!r.hasOwnProperty(n))continue;let l=n;o&&(l=o+"."+n);const a=r[n];a&&a.constructor==={}.constructor?Common.convertJsonToFormData(a,s,i,l):a&&Array.isArray(a)?a.forEach((d,g)=>{if(d&&d.constructor==={}.constructor){const C=l+"["+g+"]";Common.convertJsonToFormData(d,s,i,C)}else i.append(l,r[n])}):(i.append(l,r[n]),s[l]=r[n])}return i},toQueryParams(r,t){const e=[];for(let o in r)if(r.hasOwnProperty(o)){const i=t?t+"."+o:o,s=r[o];if(s!==null&&typeof s=="object")if(Array.isArray(s))for(let n=0;n<s.length;n++)typeof s[n]=="object"?e.push(Common.toQueryParams(s[n],i+"["+n+"]")):e.push(encodeURIComponent(i)+"="+encodeURIComponent(s[n]));else e.push(Common.toQueryParams(s,i));else e.push(encodeURIComponent(i)+"="+encodeURIComponent(s))}return e.join("&")},updateModelStateErrors:(r,t,e)=>{t.find("[data-valmsg-for]").empty(),e&&e.length&&e.empty();for(let o in r){let i=t.find("[data-valmsg-for="+o+"]");i&&i.length?i.append("<span>"+r[o].join("<br/>")+"</span>"):e&&e.length&&e.append("<span class='text-danger'>"+r[o].join("<br/>")+"</span>")}},showLoader:r=>{const t={$el:$,plugin:{image:"",fontawesome:"fa fa-circle-o-notch fa-spin fa-3x fa-fw",zIndex:1e4,maxSize:30,color:"rgba(43, 46, 51, 0.68)"}},e=$.extend(!0,t,r);(e.$el===jQuery||e.$el instanceof jQuery)&&e.$el.LoadingOverlay("show",e.plugin)},hideLoader:r=>{const t={$el:$},e=$.extend(!0,t,r);(e.$el===jQuery||e.$el instanceof jQuery)&&e.$el.LoadingOverlay("hide",e.plugin)},slickSliderLazyLoad:{inited:function(r){const t=this,e=t.getCurrentSlides(r,r.currentSlide),o=t.getFutureSlides(r,r.currentSlide);t.addToPlugin(e),t.addToPlugin(o,!0)},onAfterInited:function(r){const t=this,e=t.getCurrentSlides(r,r.currentSlide),o=t.getFutureSlides(r,r.currentSlide);t.addToPlugin(e),t.addToPlugin(o,!0)},beforeChanged:function(r,t,e){const o=this,i=o.getFutureSlides(r,t),s=o.getCurrentSlides(r,e),n=o.getCurrentSlides(r,t),l=$().add(i).add(s.not(n));o.addToPlugin(l,!0)},afterChanged:function(r,t){const e=this,o=e.getCurrentSlides(r,t),i=e.getFutureSlides(r,r.currentSlide);e.addToPlugin(o),e.addToPlugin(i,!0)},getSlides:(r,t,e)=>{if(t===e)return $();const o=r.$slides.length-1+r.options.slidesToShow,i=0-r.options.slidesToShow;if(t>o||e>o)for(;t>o||e>o;)t-=r.$slides.length,e-=r.$slides.length;else if(t<i||e<i)for(;t<i||e<i;)t+=r.$slides.length,e+=r.$slides.length;const s=[];if(e<t)for(let n=e;n<t;n++)s.push(`[data-slick-index=${n}]`);else for(let n=t;n<e;n++)s.push(`[data-slick-index=${n}]`);return r.$slideTrack.children(s.join(","))},getCurrentSlides:function(r,t){return this.getSlides(r,t,t+r.options.slidesToShow)},getFutureSlides:function(r,t){const e=this;let o=t+r.options.slidesToShow,i=null;return r.options.infinite&&(i=t-r.options.slidesToScroll),$().add(s()).add(n());function s(){return e.getSlides(r,o,o+r.options.slidesToScroll)}function n(){return i!==null?e.getSlides(r,i,i+r.options.slidesToScroll):$()}},addToPlugin:function(r,t){r.length>
4110&&[window.Syvo.Lazy_Load.getSettings(),window.Syvo.Lazy_Load.getResponsiveSettings()].forEach(o=>{if(!o)return;const i=r.find(`[${o.lazy.plugin.attribute}]`);i.length>0&&(e(window.Syvo.Lazy_Load.pluginAddItems,i),t&&e(window.Syvo.Lazy_Load.pluginForce,i),e(window.Syvo.Lazy_Load.pluginUpdate))});function e(o,i){typeof o=="function"&&(window.Syvo.Lazy_Load.isLoaded()?o(i):$(window).on(window.Syvo.Lazy_Load.eventNames.onAfterLoad,()=>{o(i)}))}}},lazyLoading:{eventNames:Object.freeze({onBeforeLoad:"syvo_lazyloading:onBeforeLoad",onAfterLoad:"syvo_lazyloading:onAfterLoad",onLoad:"syvo_lazyloading:onLoad",onFinishedAll:"syvo_lazyloading:onFinishedAll"}),defaults:Object.freeze({chainable:!0,autoDestroy:!0,bind:"load",threshold:500,visibleOnly:!1,appendScroll:window,scrollDirection:"both",imageBase:null,defaultImage:"data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",placeholder:null,delay:-1,combined:!1,attribute:"data-src",srcsetAttribute:"data-srcset",sizesAttribute:"data-sizes",retinaAttribute:"data-retina",loaderAttribute:"data-loader",imageBaseAttribute:"data-imagebase",removeAttribute:!0,handledName:"handled",loadedName:"loaded",effect:"show",effectTime:0,enableThrottle:!0,throttle:250}),constants:Object.freeze({SELECTOR:"[data-lazy-load][data-src]",mode:Object.freeze({DEFAULT:"default",BG:"bg"})}),load:r=>{if(typeof $.fn.Lazy!="function")return;const t={selector:Common.lazyLoading.constants.SELECTOR,dataAttrMode:"data-lazy-load",callbacks:{onBeforeLoad:I(),onAfterLoad:I(),onLoad:I(),onFinishedAll:I()},plugin:{threshold:375,scrollDirection:"vertical",attribute:"data-src",removeAttribute:!1,beforeLoad:d,afterLoad:g,onLoad:C,onFinishedAll:A}},e={};let o={};const i=$(window);return n(),{init:n,destroy:l,reload:a,isInited:s,get:p,setAttr:b,getAttr:m,getItems:T,addItems:P,update:S,loadAll:f,force:v};function s(){return e.isInited}function n(u){if(e.isInited)return e.isInited;const c=$.extend(!0,{},t,r||{},u||{});if(!c.selector||!c.callbacks||!c.plugin)return e.isInited;return h(),x(),e.isInited=!0,e.isInited;function h(){o=c,e.$targets=$(o.selector)}function x(){e.plugin=e.$targets.Lazy(o.plugin),o.plugin.chainable===!0&&(e.plugin=e.plugin.data("plugin_lazy")),e.plugin=e.plugin||{}}}function l(){if(!e.isInited)return e.isInited;return c(),u(),e.isInited=!1,e.isInited;function u(){e.$targets=$(),e.plugin={}}function c(){y()}}function a(u){return l(),n(u),e.isInited}function d(u){typeof o.callbacks.onBeforeLoad=="function"&&o.callbacks.onBeforeLoad(u,o),i.trigger(Common.lazyLoading.eventNames.onBeforeLoad,{$_el:u,settings:o})}function g(u){typeof o.callbacks.onAfterLoad=="function"&&o.callbacks.onAfterLoad(u,o),Common.lazyLoading.constants.mode.BG===u.attr(o.dataAttrMode)&&E(u,o.plugin.attribute),i.trigger(Common.lazyLoading.eventNames.onAfterLoad,{$_el:u,settings:o})}function C(u){typeof o.callbacks.onLoad=="function"&&o.callbacks.onLoad(u,o),i.trigger(Common.lazyLoading.eventNames.onLoad,{$_el:u,settings:o})}function A(u){typeof o.callbacks.onFinishedAll=="function"&&o.callbacks.onFinishedAll(u,o),i.trigger(Common.lazyLoading.eventNames.onFinishedAll,{$_el:u,settings:o})}function p(){return e.$targets.data("plugin_lazy")}function b(u,c){typeof e.plugin.config=="function"&&e.plugin.config(u,c)}function m(u){if(typeof e.plugin.config=="function")return e.plugin.config(u)}function T(){if(typeof e.plugin.getItems=="function")return e.plugin.getItems()}function P(u){if(typeof e.plugin.addItems=="function")return e.plugin.addItems(u)}function S(){typeof e.plugin.update=="function"&&e.plugin.update()}function f(){typeof e.plugin.loadAll=="function"&&e.plugin.loadAll()}function v(u){typeof e.plugin.force=="function"&&e.plugin.force(u)}function y(){typeof e.plugin.destroy=="function"&&e.plugin.destroy()}function E(u,c){if(!u||u.length===0)return;const h=u.find("img"),x=u.attr(c);h.attr("src",x)}function I(){return()=>{}}}},nativeLoadingLazy:{mode:Object.freeze({PARENT_BG:"parent-bg"}),load:r=>{const t={nativeSelector:"img[loading=lazy]",dataAttrMode:"data-loading-mode",dataAttrState:"data-loading-state",plugin:{thresholdTarget:0,offsetWindow:.15}},e={};let o=null;return i(),{init:i,destroy:s,reload:n};
411function i(p){const b=a(p);if(!l(b))return;m(),T();function m(){o=b,"IntersectionObserver"in window?e.scrollManager=C():e.scrollManager=A(),e.slickManager=g()}function T(){e.scrollManager.init(),e.slickManager.init()}}function s(){p(),b();function p(){e.scrollManager.destroy(),e.slickManager.destroy()}function b(){e.scrollManager=null,e.slickManager=null}}function n(p){s(),i(p)}function l(p){return!!p.nativeSelector&&!!p.dataAttrMode&&!!p.dataAttrState}function a(p){return{...t,...r||{},...p||{}}}function d(p,b){const m=p.getAttribute(b.dataAttrState);if(window.convertToBool(m))return;const T=p.getAttribute(b.dataAttrMode);Common.nativeLoadingLazy.mode.PARENT_BG===T&&P(p,b);function P(S,f){if(!S.parentElement)return;const v=S.getAttribute("src");v&&(S.parentElement.style.backgroundImage=`url('${v}')`,S.setAttribute(f.dataAttrState,"true"))}}function g(){let p=!1;return{init:b,destroy:m,reload:T};function b(){if(p)return;f(),v(),p=!0;function f(){e.$root=$("body")}function v(){e.$root.on("init reInit breakpoint",".slick-slider",P)}}function m(){if(!p)return;f(),v(),p=!1;function f(){e.$root.off("init reInit breakpoint",".slick-slider",P)}function v(){e.$root=$()}}function T(){m(),b()}function P(f,v){const y=$(f.currentTarget);S(y,v)}function S(f,v){if(!f.hasClass("slick-initialized")||!v.$slideTrack)return;const y=v.$slideTrack.children(".slick-cloned");if(y.length===0)return;const E=y.find(o.nativeSelector);E.length!==0&&$.each(E,(I,u)=>{d(u,o)})}}function C(){let p=!1;const b={};return{init:m,destroy:T,reload:P};function m(){if(p)return;S(),v(),p=!0;function S(){b.imagesLoadingLazy=document.querySelectorAll(o.nativeSelector);const y=o.plugin.offsetWindow?o.plugin.offsetWindow*100:0;b.imageObserver=new IntersectionObserver(f,{threshold:o.plugin.thresholdTarget,rootMargin:`${y}% 0px ${y}% 0px`})}function f(y,E){y.forEach(I=>{if(I.isIntersecting){const u=I.target;d(u,o),E.unobserve(u)}})}function v(){b.imagesLoadingLazy.forEach(y=>{b.imageObserver.observe(y)})}}function T(){if(!p)return;f(),S(),p=!1;function S(){b.imagesLoadingLazy=[],b.imageObserver=null}function f(){b.imagesLoadingLazy.forEach(v=>{b.imageObserver.unobserve(v)})}}function P(){T(),m()}}function A(){let p,b=!1;const m={};return{init:T,destroy:P,reload:S};function T(){if(b)return;y(),E(),I(),b=!0;function y(){m.imagesLoadingLazy=document.querySelectorAll(o.nativeSelector)}function E(){document.addEventListener("scroll",v),window.addEventListener("resize",v),window.addEventListener("orientationChange",v)}function I(){f()}}function P(){E(),y(),b=!1;function y(){o=null,m.imagesLoadingLazy=[]}function E(){document.removeEventListener("scroll",v),window.removeEventListener("resize",v),window.removeEventListener("orientationChange",v)}function I(){}}function S(){P(),T()}function f(){!m.imagesLoadingLazy||!NodeList.prototype.isPrototypeOf(m.imagesLoadingLazy)||(p&&clearTimeout(p),p=setTimeout(()=>{const y=window.innerHeight*o.plugin.offsetWindow,E=window.scrollY-y,I=window.scrollY+window.innerHeight+y;m.imagesLoadingLazy.forEach(u=>{const c=window.getElementOffset(u),h=u.offsetHeight*o.plugin.thresholdTarget,x=c.top+h,_=c.top+u.offsetHeight-h;(x<E&&_>I||x<E&&_>E||x>E&&_<I||x<I&&_>I)&&d(u,o)})},20))}function v(){f()}}}},createExpandableBlock:r=>{const t={expandableBlock:{selector:"[data-property=expandable-block]",expandedClass:"expanded",lettersAllowed:250,loadingClass:"expandable-block--is-loading"},expandToggle:{selector:"[data-trigger=expandable-block]",targetAttr:"data-target",expandedClass:"expanded",hiddenClass:"hidden",collapseText:"<",expandText:">",collapseSpeed:100,expandSpeed:1e3},overlay:{class:"expandable-block-overlay",color:"transparent"},fakeParagraph:{class:"fake-paragraph"}},e=$(window),o={isInited:!1,isFirstLoad:null,init:i,destroy:s,reload:n,expand:m,collapse:T,update:l};return i();function i(u){if(o.settings=$.extend(!0,{},t,u||r),!o.settings.expandableBlock||!o.settings.expandToggle||!o.settings.overlay)return o;return c(),h(),x(),o;function c(){o.isInited=!0,o.$expandableBlock=$(o.settings.expandableBlock.selector),o.$expandToggle=$(o.settings.expandToggle.selector);const _=o.$expandableBlock.filter((F,L)=>a($(L))),B=o.$expandToggle.filter((F,L)=>a(P($(L))));return p(o.$expandableBlock.not(_),o.$expandToggle.not(B)),o.$expandableBlock=_,o.$expandToggle=B,o.lastWidth=$.getCurrentViewport().width,o.isFirstLoad=!0,o}function h(){e.on("load",d),e.on("resize",g),o.$expandToggle.on("click",C)}async function x(){await b(),A()}}function s(){return c(),h(),u(),o;function u(){o.$expandableBlock=$(),o.$expandToggle=$(),o.fakeParagraphText=null,o.windowEventHandlerTimer=null,o.isInited=!1,o.lastWidth=null,o.isFirstLoad=null}function c(){e.off("load",d),e.off("resize",g),o.$expandToggle.off("click",C)}function h(){o.windowEventHandlerTimer&&clearTimeout(o.windowEventHandlerTimer),p()}}function n(u){return s(),i(u)}function l(){o.isInited&&b()}function a(u){const c=Number(u.attr("data-letters-allowed"))||o.settings.expandableBlock.lettersAllowed;return u.text().replace(/\s/g,"").length>c}function d(){o.windowEventHandlerTimer&&clearTimeout(o.windowEventHandlerTimer),o.windowEventHandlerTimer=setTimeout(async()=>{await b(),A(),o.isFirstLoad=!1},100)}function g(){o.lastWidth!==$.getCurrentViewport().width&&(o.lastWidth=$.getCurrentViewport().width,o.windowEventHandlerTimer&&clearTimeout(o.windowEventHandlerTimer),o.windowEventHandlerTimer=setTimeout(()=>{b()},100))}function C(u){return f($(u.currentTarget)),!1}function A(){o.$expandableBlock.css("position","relative").css("overflow","hidden"),o.$expandToggle.removeClass(o.settings.expandToggle.hiddenClass)}function p(u,c){u=u||o.$expandableBlock,c=c||o.$expandToggle,u.css("position","").css("overflow","").css("height","").removeClass(o.settings.expandableBlock.loadingClass),c.addClass(o.settings.expandToggle.hiddenClass);
411const h=u.find(`.${o.settings.overlay.class}`);h.length>0&&h.remove()}async function b(){return o.isFirstLoad||o.$expandableBlock.addClass(o.settings.expandableBlock.loadingClass),await Promise.all(o.$expandToggle.toArray().map(u=>T($(u)))),o.isFirstLoad?(o.$expandableBlock.removeClass(o.settings.expandableBlock.loadingClass),Promise.resolve()):new Promise((u,c)=>{setTimeout(()=>{o.$expandableBlock.removeClass(o.settings.expandableBlock.loadingClass),u()},500)})}async function m(u){o.isInited&&(await y(P(u)),u.html(o.settings.expandToggle.collapseText),u.addClass(o.settings.expandToggle.expandedClass))}async function T(u){o.isInited&&(await v(P(u)),u.html(o.settings.expandToggle.expandText),u.removeClass(o.settings.expandToggle.expandedClass))}function P(u){const c=u.attr(o.settings.expandToggle.targetAttr);if(!c)return o.$expandableBlock;const h=$(c);return c.length===0?o.$expandableBlock:h}function S(u){return u.hasClass(o.settings.expandableBlock.expandedClass)}function f(u){const c=P(u);S(c)?T(u):m(u)}function v(u){const c=E(u);return c.css("max-width",0),c.show(),new Promise(h=>{u.animate({height:`${I(u,x=>x.height())}px`},o.settings.expandToggle.collapseSpeed,"swing",()=>{c.css("max-width","100%"),u.removeClass(o.settings.expandableBlock.expandedClass),h()})})}function y(u){const c=E(u),h=u.html();return c.hide(),new Promise((x,_)=>{u.animate({height:`${I(u,B=>B.height(),h)}px`},o.settings.expandToggle.expandSpeed,"swing",()=>{u.addClass(o.settings.expandableBlock.expandedClass),u.css("height",""),x()})})}function E(u){let c=u.find(`.${o.settings.overlay.class}`);if(c.length>0)return c.css("height",I(u,x=>x.css("line-height"))),c;c=$(`<div class="${o.settings.overlay.class}"></div>`);const h=Common.colorFormatHexToRgb(o.settings.overlay.color);return c.css("display","block").css("width","100%").css("height",I(u,x=>x.css("line-height"))).css("position","absolute").css("bottom",0).css("right",0).css("transition","max-width 1s ease").css("background-image",`-webkit-linear-gradient(to right, rgba(${h[0]}, ${h[1]}, ${h[2]}, 0) 0%, rgba(${h[0]}, ${h[1]}, ${h[2]}, 1) 80%)`).css("background-image",`-moz-linear-gradient(to right, rgba(${h[0]}, ${h[1]}, ${h[2]}, 0) 0%, rgba(${h[0]}, ${h[1]}, ${h[2]}, 1) 80%)`).css("background-image",`-o-linear-gradient(to right, rgba(${h[0]}, ${h[1]}, ${h[2]}, 0) 0%, rgba(${h[0]}, ${h[1]}, ${h[2]}, 1) 80%)`).css("background-image",`linear-gradient(to right, rgba(${h[0]}, ${h[1]}, ${h[2]}, 0) 0%, rgba(${h[0]}, ${h[1]}, ${h[2]}, 1) 80%)`),u.append(c),c}function I(u,c,h){const x=`.${o.settings.fakeParagraph.class}`;let _=u.find(x);if(!h){const F=Number(u.attr("data-letters-allowed"))||o.settings.expandableBlock.lettersAllowed;h=Common.stringRepeat(F,"X x ")}_.length===0&&(_=$(`<p class='${o.settings.fakeParagraph.class}'></p>`)),_.html(h).css("display","block").css("position","absolute").css("top",0).css("left",0).css("right",0).css("opacity",0),u.append(_);const B=c(_);return u.find(x).remove(),B}},loadInstagramEmbedScript:r=>{let t={};const e=$(window),o=new Promise(()=>{}),i={elements:{selector:"[data-instgrm-permalink]"},script:{src:"https://www.instagram.com/embed.js"},successCallback:()=>{},errorCallback:()=>{$("blockquote.instagram-media").hide()}};if(t.settings=$.extend(!0,{},i,r),!t.settings.elements||!t.settings.elements.selector||!t.settings.script||!t.settings.script.src)return;return t.init=s,t.destroy=n,t.reload=l,window.isInstagramEmbedScriptLoaded?l():s();function s(A){return p(),A||b(),t;function p(){t.$elements=$(t.settings.elements.selector),t.promise=o}function b(){e.on("load",a)}}function n(){return A(),p(),t;function A(){t.$elements=$(),t.promise=o}function p(){e.off("load",a)}}function l(){return n(),s(!0),t.promise=A(),t;function A(){return d()}}function a(){t.promise=d()}async function d(){if(t.$elements.length!==0)try{await g().then((A,p,b)=>{window.isInstagramEmbedScriptLoaded=!0,C(t.settings.successCallback,A)},(A,p,b)=>{window.isInstagramEmbedScriptLoaded=!1,C(t.settings.errorCallback,b)})}catch(A){window.isInstagramEmbedScriptLoaded=!1,C(t.settings.errorCallback,A,message)}}function g(){return $.ajax({url:t.settings.script.src,dataType:"script",cache:!0})}function C(A,p){typeof A=="function"&&A(t,p)}},initTogglePopupSidebar:()=>{const r=$("[toggle-popup]"),t="active";r.click(function(e){e.preventDefault();const o=$(this).attr("toggle-popup");if(!o)return;
411const i=r.filter("[toggle-popup='"+o+"']"),s=$(o),n=$("body");return s.hasClass(t)?(i.removeClass("active"),s.removeClass("active"),n.removeClass("body-overflow-mobile"),n.removeClass("overflow-hidden-mobile")):(i.addClass("active"),s.addClass("active"),n.addClass("body-overflow-mobile"),n.addClass("overflow-hidden-mobile")),!1})},initToggleAccordeon:()=>{const r=$("[toggle-accordeon]");r.click(function(t){t.preventDefault();const e=$(this).attr("toggle-accordeon");if(!e)return;const o=r.filter("[toggle-accordeon='"+e+"']"),i=$(e);return o.toggleClass("active"),$(e).toggleClass("active"),!1})},initIntelligentNavbar:()=>{const r=$(".main-navbar .common-navbar > ul > li");if(r.length===0)return;const t={$li:null,hoveringTimeout:null,bluringTimeout:null};e();function e(){let C=0;const A=r.length;for(;C<A;C++)s.call(r[C]);o()}function o(){$(window).on("touchstart",C=>{const A=$(C.target);!t.$li||t.$li.is(A)||$.checkContains(t.$li,A)||(a(),g())}),r.on("mouseenter touchstart",i),r.on("mouseleave",s)}function i(C){const A=$(this);A.is(t.$li)||(a(),g(A)),t.hovering||(n(),d())}function s(C){const A=$(this);A.is(t.$li)||(a(),g(A)),t.bluring||(l(),a())}function n(){t.hovering=!0,t.hoveringTimeout=setTimeout(()=>{t.hovering=!1},500)}function l(){t.bluring=!0,t.bluringTimeout=setTimeout(()=>{t.bluring=!1},500)}function a(){t.$li!=null&&(t.$li.removeClass("mouseentered"),t.$li.addClass("mouseleft"))}function d(){t.$li!=null&&(t.$li.removeClass("mouseleft"),t.$li.addClass("mouseentered"))}function g(C){C!=null&&(t.$li=C),clearTimeout(t.hoveringTimeout),t.hovering=!1,clearTimeout(t.bluringTimeout),t.bluring=!1}},initCheckboxDropdowns:r=>{const t={init:o,reinit:s,destroy:i},e={parent:{selector:".main-navbar, .responsive-navbar",scrollerSelector:".main-navbar-extended-contents",attrs:{noAnimation:"data-noanimation"},oppositeActionSelector:"[data-main-navbar-action=opposite]"},checkbox:{selector:"input[type=checkbox], [data-trigger='menu-opener']",attrs:{noIsCheckedAnimation:"data-checked-noanimation"}},listItem:{anyItemSelector:"li, [data-menu-item]",emptySelector:"[data-menu-item='empty']",openedByParentSelector:"[data-menu-item='parently-opened']"}};if(t.settings=$.extend(!0,{},e,r),!t.settings.parent||!t.settings.checkbox||!t.settings.listItem)return;o();function o(){n(),a()}function i(){d()}function s(){i(),o()}function n(){t.$parent=$(t.settings.parent.selector)}function l(b,m){const T=b.closest(t.settings.parent.scrollerSelector);return T.length>0?T:m}function a(){t.$parent.on("change",t.settings.checkbox.selector,A),t.$parent.on("show.bs.collapse",g),t.$parent.on("hidden.bs.collapse",C)}function d(){t.$parent.off("change",t.settings.checkbox.selector,A),t.$parent.off("show.bs.collapse",g),t.$parent.off("hidden.bs.collapse",C)}function g(){$(t.settings.parent.oppositeActionSelector).hide()}function C(){$(t.settings.parent.oppositeActionSelector).show()}function A(b){const m=$(this),T=m.prop("checked"),P=m.closest("li"),S=m.closest(t.settings.parent.selector),f=l(m,S);if(T){const I=m.parentsUntil(t.settings.parent.selector).children(t.settings.checkbox.selector),u=I.not(I[0]).parent(t.settings.listItem.anyItemSelector).siblings(t.settings.listItem.anyItemSelector).children(t.settings.checkbox.selector);S.find(t.settings.checkbox.selector).not(I).not(u).prop("checked",!1).removeAttr("checked");const c=m.siblings("ul").children();c.not(t.settings.listItem.emptySelector).length<=1&&c.children(t.settings.checkbox.selector).prop("checked",!0),c.filter(t.settings.listItem.openedByParentSelector).children(t.settings.checkbox.selector).prop("checked",!0)}else m.parent(t.settings.listItem.anyItemSelector).find(t.settings.checkbox.selector).prop("checked",!1).removeAttr("checked");P.nextAll(t.settings.listItem.emptySelector).children(t.settings.checkbox.selector).prop("checked",T),!(!T||$.convertToBool(S.attr(t.settings.parent.attrs.noAnimation))||$.convertToBool(m.attr(t.settings.checkbox.attrs.noIsCheckedAnimation)))&&p(m,f)}function p(b,m){setTimeout(()=>{m.animate({scrollTop:T()},"slow")},500);function T(){return b.offset().top+m.scrollTop()}}},initMaterialStyle:()=>{$("[material-style]").addClass("no-content").change(function(){const r=$(this),t=r.val();t&&t.length>0?(r.removeClass("no-content"),r.addClass("has-content")):(r.removeClass("has-content"),r.addClass("no-content"))}
411).keyup(function(){$(this).hasClass("dirty")||$(this).addClass("dirty")})},initCloseButton:()=>{$("[data-trigger='close']").click(function(t){t.preventDefault();const o=$(this).attr("close-target");if(o){const i=$(o);if(i.length>0)i.fadeOut("slow");else return console.error("Wrong target for closing."),!1}})},initAccordeonListingFilter:(r,t)=>{const e=$(".filters-accordeon .product-control"),o=$(".filters-accordeon .panel-collapse");let i=$.getCurrentViewport().width;t||common_settings.isMobile?n():s(),$(window).resize(()=>{s()});function s(){const a=$.getCurrentViewport().width;a<r?(i>=r||i===a)&&(n(),i=a):(i<r||i===a)&&(l(),i=a)}function n(){e.addClass("collapsed"),o.removeClass("in"),$(window).trigger("syvo_filters:ready")}function l(){e.removeClass("collapsed"),o.addClass("in"),$(window).trigger("syvo_filters:ready")}},initStickySubmit:r=>{const t=$(window),e={target:{selector:"[data-property='sticky-submit']",activeClass:"sticky"},parent:{selector:"[data-property='sticky-submit-parent']",activeClass:"sticky-submit-active",screenTopTouchedTopClass:"top-touched",screenTopUnTouchedTopClass:"top-untouched",screenTopTouchedBottomClass:"bottom-touched",screenTopUnTouchedBottomClass:"bottom-untouched",screenBottomTouchedTopClass:"screen-bottom--top-touched",screenBottomUnTouchedTopClass:"screen-bottom--top-untouched",screenBottomTouchedBottomClass:"screen-bottom--bottom-touched",screenBottomUnTouchedBottomClass:"screen-bottom--bottom-untouched"},dependencies:{list:[{selector:".filter-input input",action:"click touch"}],activeClass:"sticky-forced"},breakpoint:992};let o,i;const s={};return s.init=n,s.destroy=l,s.reinit=a,n();function n(u){if(s.settings=$.extend(!0,{},e,u||r),!s.settings.parent||!s.settings.target)return null;return c(),h(),x(),s.inited=!0,s.$parent.trigger("syvo_sticky_submit:inited"),s;function c(){s.$target=$(s.settings.target.selector),s.$parent=d(s.$target),s.lastWidth=$.getCurrentViewport().width,s.activatedFromDependency=[],i=0,o=g()}function h(){t.on("scroll",p),t.on("resize orientationchange",b),t.on("syvo_filters:ready",m),t.on("syvo_fixedHeader:onCalculate",T),s.settings.dependencies&&s.settings.dependencies.list&&s.settings.dependencies.list.length>0&&s.settings.dependencies.list.forEach(_=>{$(_.selector).on(_.action,P)})}function x(){C()}}function l(){return u(),c(),s.inited=!1,s.$parent.trigger("syvo_sticky_submit:destroyed"),h(),s;function u(){s.$parent.removeClass(s.settings.parent.screenTopTouchedTopClass),s.$parent.removeClass(s.settings.parent.screenTopUnTouchedTopClass),s.$parent.removeClass(s.settings.parent.screenBottomTouchedTopClass),s.$parent.removeClass(s.settings.parent.screenBottomUnTouchedTopClass),s.$parent.removeClass(s.settings.parent.screenTopUnTouchedBottomClass),s.$parent.removeClass(s.settings.parent.screenTopTouchedBottomClass),s.$parent.removeClass(s.settings.parent.screenBottomUnTouchedBottomClass),s.$parent.removeClass(s.settings.parent.screenBottomTouchedBottomClass),s.$parent.removeClass(s.settings.parent.activeClass)}function c(){t.off("scroll",p),t.off("resize orientationchange",b),t.off("syvo_filters:ready",m),t.off("syvo_fixedHeader:onCalculate",T),s.settings.dependencies&&s.settings.dependencies.list&&s.settings.dependencies.list.length>0&&s.settings.dependencies.list.forEach(x=>{$(x.selector).off(x.action,P)})}function h(){s.$target=$(),s.$parent=$(),s.lastWidth=null,s.activatedFromDependency=null,i=null,o=null}}function a(u){return l(),n(u)}function d(u){return u.closest(s.settings.parent.selector)}function g(){const u=t.scrollTop();return{top:u+i,bottom:u+$.getCurrentViewport().height}}function C(){I(),A()}function A(){o=g(),s.$target.each((u,c)=>{const h=$(c);if(h.parent().length===0)return;const x=d(h),_=x.offset().top,B=_+x.height()-h.height();o.top<_?v(x,h):f(x,h),y(h,x,_),E(h,x,B),s.activatedFromDependency&&x.length>0&&s.activatedFromDependency.indexOf(x[0])>=0&&S(x,h)})}function p(u){A()}function b(u){clearTimeout(s.resizedFinished),s.resizedFinished=setTimeout(()=>{a()},1e3)}function m(u){a()}function T(u,c,h){i=h,A()}function P(u){const c=$(u.currentTarget).closest(s.settings.parent.selector),h=c.find(s.settings.target.selector);S(c,h)}function S(u,c){u.length>0&&s.activatedFromDependency.indexOf(u[0])===-1&&s.activatedFromDependency.push(u[0]),v(u,c,!0),f(u,c),u.trigger("syvo_
411sticky_submit:dependencyFired")}function f(u,c){c.width(c.width()),s.activatedFromDependency&&u.length>0&&s.activatedFromDependency.indexOf(u[0])>=0&&c.addClass(s.settings.dependencies.activeClass),u.addClass(s.settings.parent.activeClass),c.addClass(s.settings.target.activeClass),u.trigger("syvo_sticky_submit:activated")}function v(u,c,h){c.removeClass(s.settings.target.activeClass),u.removeClass(s.settings.parent.activeClass),u.trigger("syvo_sticky_submit:deactivated"),h&&c.removeClass(s.settings.dependencies.activeClass),(!s.activatedFromDependency||s.activatedFromDependency.length===0||u.length===0&&s.activatedFromDependency.indexOf(u[0])===-1||h)&&c.width("")}function y(u,c,h){const x={fixedHeaderOffset:i,$target:u,$parent:c,parentTop:h};o.top<h?(c.hasClass(s.settings.parent.screenTopTouchedTopClass)&&c.removeClass(s.settings.parent.screenTopTouchedTopClass),c.hasClass(s.settings.parent.screenTopUnTouchedTopClass)||(c.addClass(s.settings.parent.screenTopUnTouchedTopClass),c.trigger("syvo_sticky_submit:screenTopUnTouchedTop",x))):(c.hasClass(s.settings.parent.screenTopUnTouchedTopClass)&&c.removeClass(s.settings.parent.screenTopUnTouchedTopClass),c.hasClass(s.settings.parent.screenTopTouchedTopClass)||(c.addClass(s.settings.parent.screenTopTouchedTopClass),c.trigger("syvo_sticky_submit:screenTopTouchedTop",x))),o.bottom>h?(c.hasClass(s.settings.parent.screenBottomTouchedTopClass)&&c.removeClass(s.settings.parent.screenBottomTouchedTopClass),c.hasClass(s.settings.parent.screenBottomUnTouchedTopClass)||(c.addClass(s.settings.parent.screenBottomUnTouchedTopClass),c.trigger("syvo_sticky_submit:screenBottomUnTouchedTop",x))):(c.hasClass(s.settings.parent.screenBottomUnTouchedTopClass)&&c.removeClass(s.settings.parent.screenBottomUnTouchedTopClass),c.hasClass(s.settings.parent.screenBottomTouchedTopClass)||(c.addClass(s.settings.parent.screenBottomTouchedTopClass),c.trigger("syvo_sticky_submit:screenBottomTouchedTop",x)))}function E(u,c,h){const x={fixedHeaderOffset:i,$target:u,$parent:c,parentBottom:h};o.top>h?(c.hasClass(s.settings.parent.screenTopUnTouchedBottomClass)&&c.removeClass(s.settings.parent.screenTopUnTouchedBottomClass),c.hasClass(s.settings.parent.screenTopTouchedBottomClass)||(c.addClass(s.settings.parent.screenTopTouchedBottomClass),c.trigger("syvo_sticky_submit:screenTopTouchedBottom",x))):(c.hasClass(s.settings.parent.screenTopTouchedBottomClass)&&c.removeClass(s.settings.parent.screenTopTouchedBottomClass),c.hasClass(s.settings.parent.screenTopUnTouchedBottomClass)||(c.addClass(s.settings.parent.screenTopUnTouchedBottomClass),c.trigger("syvo_sticky_submit:screenTopUnTouchedBottom",x))),o.bottom<h?(c.hasClass(s.settings.parent.screenBottomUnTouchedBottomClass)&&c.removeClass(s.settings.parent.screenBottomUnTouchedBottomClass),c.hasClass(s.settings.parent.screenBottomTouchedBottomClass)||(c.addClass(s.settings.parent.screenBottomTouchedBottomClass),c.trigger("syvo_sticky_submit:screenBottomTouchedBottom",x))):(c.hasClass(s.settings.parent.screenBottomTouchedBottomClass)&&c.removeClass(s.settings.parent.screenBottomTouchedBottomClass),c.hasClass(s.settings.parent.screenBottomUnTouchedBottomClass)||(c.addClass(s.settings.parent.screenBottomUnTouchedBottomClass),c.trigger("syvo_sticky_submit:screenBottomUnTouchedBottom",x)))}function I(){if(!s.settings.breakpoint)return;const u=$.getCurrentViewport().width;u<s.settings.breakpoint?s.lastWidth>=s.settings.breakpoint&&(s.lastWidth=u,l()):s.lastWidth<s.settings.breakpoint&&(s.lastWidth=u,a())}},checkBreakPoint:(r,t,e,o)=>{const i={};i.init=s,i.destroy=n,i.reload=l,s();function s(){a(),d(),g()}function n(){C(),A()}function l(){n(),s()}function a(){i.lastWidth=t}function d(){const b=$.getCurrentViewport().width;b<r?i.lastWidth>=r&&(typeof o=="function"&&o(),i.lastWidth=b):i.lastWidth<r&&(typeof e=="function"&&e(),i.lastWidth=b)}function g(){$(window).on("resize orientationchange",p)}function C(){i.lastWidth=null}function A(){$(window).off("resize orientationchange",p)}function p(){d()}return i},initScrollToButton:()=>{const r=$("[data-trigger='scroll-to']");let t=0;const e=$("[data-property=fixed-header]");let o=0;r.on("click",l=>{l.preventDefault(),i($(l.currentTarget))}
411),r.on("keydown",l=>{l.which===13&&(l.preventDefault(),i($(l.currentTarget)))}),e.on("syvo_fixedHeader:onCalculate",(l,a,d)=>{o=d});function i(l){const a=$(l.attr("data-target")),d=l.attr("data-focus-target")==="true"||l.hasClass("sr-only-focusable");setTimeout(()=>{t=n(a),s(t,a,d)},0)}function s(l,a,d=!0){if(d){const g=a.attr("tabindex");a.attr("tabindex","0"),a.focus(),typeof g=="undefined"?a.removeAttr("tabindex"):a.attr("tabindex",g)}else $("html, body").animate({scrollTop:l},"slow")}function n(l){let a=$(document).scrollTop();const d=$(l);return d.length>0?a=$(d[0]).offset().top-o:console.error("Wrong target for scrolling."),a}},initBridalLiveIFrame:()=>{const r=["https://app.bridallive.com","https://qa.bridallive.com"];let t=0,e=!1;$(window).on("syvo_fixedHeader:onCalculate",(i,s,n)=>{t=n}),window.addEventListener("message",i=>{if(!r.includes(i.origin)&&i.origin!==window.origin||!i.data)return;const s=o(i);if(s.length)switch(i.data.type){case"bridallive.appointment_type_selected":e=!0;break;case"bridallive.height_change":if(!e||!i.data.heights)return;let n=i.data.heights.content;n<550&&(n=550);const l=$.getCurrentViewport().width<992?40:20;s.css("height",n+l+"px");break;case"bridallive.scroll-to-top":if(!e)return;let a=s.offset().top;a-=t,a<0&&(a=0),$("html, body").animate({scrollTop:a},"smooth");break}},!1);function o(i){return $("iframe").filter((s,n)=>n.contentWindow===i.source)}},initStepper:r=>{let t={};const e={steps:{count:3,selector:"[data-stepper-steps]",dataAttr:"data-stepper-steps"},counter:{selector:"[data-property=stepper-counter]",current:{selector:"[data-stepper-step-current]",dataAttr:"data-stepper-step-current"},count:{selector:"[data-stepper-step-count]",dataAttr:"data-stepper-step-count"}},progress:{selector:"[data-property=stepper-progress]",step:{selector:"[data-stepper-progress]",dataAttr:"data-stepper-progress",currentClass:"data-stepper--current"}},toggles:{selector:"[data-stepper-step]",dataAttr:"data-stepper-step"},callbacks:{onStepChanged:S}};if(t.settings=$.extend(!0,{},e,r),!t.settings.steps||!t.settings.counter||!t.settings.counter.current||!t.settings.counter.count||!t.settings.toggles||!t.settings.toggles.selector)return;return t.init=o,t.destroy=i,t.reload=s,t.switchToStep=l,t.getCurrentStep=a,t.toggleCounter=d,t.toggleButtons=g,t.toggleProgress=C,o();function o(){return f(),v(),l("1"),t;function f(){t.$steps=$(t.settings.steps.selector),t.$stepCounter=$(t.settings.counter.selector),t.$stepCurrent=$(t.settings.counter.current.selector),t.$stepCount=$(t.settings.counter.count.selector),t.$toggles=$(t.settings.toggles.selector),t.$progress=$(t.settings.progress.selector),t.$progressStep=t.$progress.find(t.settings.progress.step.selector)}function v(){t.$toggles.on("click",n)}}function i(){return v(),f(),t;function f(){t=null}function v(){t.$toggles.off("click",n)}}function s(f){return i(),o(f)}function n(f){l($(f.currentTarget).attr(t.settings.toggles.dataAttr))}function l(f){p(f),A(f),m(f),P("onStateChanged",f)}function a(){return parseInt(t.$stepCurrent.text())}function d(f){b(f)}function g(f){t.$toggles.toggle(f)}function C(f){T(f)}function A(f){const v=t.$steps.filter((y,E)=>{const I=$(E).attr(t.settings.steps.dataAttr);if(I)return I.split(",").map(u=>u.trim()).indexOf(f.toString())!==-1});v.show(),t.$steps.not(v).hide()}function p(f){t.$stepCurrent.text(f),t.$stepCurrent.attr(t.settings.counter.current.dataAttr,f);const v=parseInt(f);b(isNaN(v)||v<=t.settings.steps.count)}function b(f){t.$stepCounter.toggle(f!==!1)}function m(f){t.$progressStep.removeClass(t.settings.progress.step.currentClass),t.$progressStep.filter((E,I)=>$(I).attr(t.settings.progress.step.dataAttr)===f).addClass(t.settings.progress.step.currentClass);const y=parseInt(f);T(isNaN(y)||y<=t.settings.steps.count)}function T(f){t.$progress.toggle(f!==!1)}function P(f,v){t.settings.callbacks&&typeof t.settings.callbacks[f]=="function"&&t.settings.callbacks[f](v)}function S(){}},initInputToggle:()=>{const r=$("[data-trigger='toggle']");t();function t(){$.each(r,function(){const o=$(this);$("input[name='"+o.attr("name")+"']").not(o).change(()=>{o.trigger("change")});const s=o.attr("toggle-target");if(!s)return;const n=$(s);o.prop("checked")?n.show("slow"):n.hide("fast")}),e()}function e(){r.on("change",function(){const o=$(this),i=o.attr("toggle-target");if(i){const s=$(i);o.prop("checked")?s.show("slow"):s.hide("fast")}})}},initTimeInputV2:r=>
411{const t={parent:{selector:"[data-property='v2-time']"},textInput:{selector:"input[type=text]"},timeInput:{selector:"input[type=time]"},controls:{addMinutes:{selector:"[data-trigger=v2-time-add-minutes]",dataAttr:"data-time-add-minutes"}}},e={init:s,destroy:n,reload:l},o=Object.freeze({DEFAULT:Object.freeze({INPUTMASK_REGEX:"([0]?[0-9]|1[0-2]):([0-5][0-9])",INPUTMASK_PLACEHOLDER:"HH:MM",TIME_REGEX:/^([0-1]?[0-9]|2[0-3]):([0-5][0-9])$/}),EN:Object.freeze({LANG_REGEX:/^en-([A-Za-z]{2})(-[\w]{4}){0,1}$/,INPUTMASK_REGEX:"([0-1]?[0-9]|2[0-3]):([0-5][0-9]) (AM|PM)",INPUTMASK_PLACEHOLDER:"HH:MM AM",TIME_REGEX:/^([0-1]?[0-9]|2[0-3]):([0-5][0-9])$/,AM_PM:Object.freeze({BEFORE_NOON:"AM",AFTER_NOON:"PM"})})}),i={};return s();function s(f){const v=c(f);if(!u(v))return;return y(),E(),I(),e;function y(){var h,x,_;i.settings=v,i.$parent=$(i.settings.parent.selector),i.$textInput=i.$parent.find(i.settings.textInput.selector),i.cultureInfo=(h=$("html").attr("lang"))!=null&&h.match(o.EN.LANG_REGEX)?o.EN:o.DEFAULT,i.$addMinutesControl=$((_=(x=i.settings.controls)==null?void 0:x.addMinutes)==null?void 0:_.selector)}function E(){var h;i.$parent.on("focus",i.settings.textInput.selector,a),i.$parent.on("input",i.settings.timeInput.selector,d),(h=i.settings.controls)!=null&&h.addMinutes&&i.$parent.on("click",i.settings.controls.addMinutes.selector,g)}function I(){$.each(i.$textInput,(h,x)=>{p(x)}),i.$textInput.inputmask({regex:i.cultureInfo.INPUTMASK_REGEX,clearMaskOnLostFocus:!1,showMaskOnHover:!1,placeholder:i.cultureInfo.INPUTMASK_PLACEHOLDER,clearIncomplete:!0,oncomplete:C,onIncomplete:A})}function u(h){var x,_,B;return!!((x=h.parent)!=null&&x.selector)&&!!((_=h.timeInput)!=null&&_.selector)&&!!((B=h.textInput)!=null&&B.selector)}function c(h){return $.extend(!0,{},t,r||{},h||{})}}function n(){}function l(f){s(f)}function a(f){const y=$(f.currentTarget).siblings(i.settings.timeInput.selector);y.length!==0&&$.each(y,(E,I)=>{I.showPicker()})}function d(f){b(f.currentTarget)}function g(f){const v=$(f.currentTarget),y=v.attr(i.settings.controls.addMinutes.dataAttr);if(!y)return;const E=Number(y);if(isNaN(E))return;const I=v.closest(i.settings.parent.selector);if(I.length===0)return;const u=I.find(i.settings.timeInput.selector);if(u.length===0)return;const c=S(u.val());if(!c)return;let h=c.minutes+E;if(h>59||h<0){let _=h%60;_<0&&(_+=60);const B=(h-_)/60;let F=c.hours+B;F>23?F=0:F<0&&(F=23),c.hours=F,c.minutes=_}else c.minutes=h;const x=T(c);u.val(x),$.each(u,(_,B)=>{b(B)})}function C(f){p(f.currentTarget)}function A(f){const y=$(f.currentTarget).siblings(i.settings.timeInput.selector);y.length!==0&&y.val("")}function p(f){const v=$(f),y=v.siblings(i.settings.timeInput.selector);if(y.length===0)return;const E=m(v.val());if(!E){y.val("");return}y.val(E)}function b(f){const v=$(f),y=v.siblings(i.settings.textInput.selector);if(y.length===0)return;const E=P(v.val());if(!E){y.val("");return}y.val(E)}function m(f){var E;const v=i.cultureInfo.INPUTMASK_REGEX,y=f.match(v);if(!(!y||y.length<3)){if((E=i.cultureInfo)!=null&&E.AM_PM){if(y.length<4)return;const I=Number(y[1]);if(isNaN(I)||I<1||I>12)return;const u=Number(y[2]);if(isNaN(u)||u<0||u>59||y[3]!==i.cultureInfo.AM_PM.AFTER_NOON&&y[3]!==i.cultureInfo.AM_PM.BEFORE_NOON)return;let h=y[3]===i.cultureInfo.AM_PM.AFTER_NOON?I===12?I:I+12:I===12?0:I;h=h<10?`0${h}`:h;const x=u<10?`0${u}`:u;return`${h}:${x}`.trim()}return f}}function T(f){if(!f)return;const v=f.hours<10?`0${f.hours}`:f.hours,y=f.minutes<10?`0${f.minutes}`:f.minutes;return`${v}:${y}`}function P(f){var y;const v=S(f);if(v){if((y=i.cultureInfo)!=null&&y.AM_PM){let E=v.hours>11?i.cultureInfo.AM_PM.AFTER_NOON:i.cultureInfo.AM_PM.BEFORE_NOON,I=v.hours===0?12:v.hours>12?v.hours-12:v.hours;I=I<10?`0${I}`:I;const u=v.minutes<10?`0${v.minutes}`:v.minutes;return`${I}:${u} ${E}`.trim()}return timeString}}function S(f){const v=i.cultureInfo.TIME_REGEX,y=f.match(v);if(!y||y.length<3)return;const E=Number(y[1]);if(isNaN(E)||E<0||E>23)return;const I=Number(y[2]);if(!(isNaN(I)||I<0||I>59))return{hours:E,minutes:I}}},initDraggableToggleV2:r=>
411{const t={parent:{selector:"[data-property='v2-toggle']"},input:{selector:"input[type='checkbox']"},handle:{selector:".handle"},area:{selector:".v2-control"}},e={settings:$.extend(!0,{},t,r)};if(!e.settings||!e.settings.parent||!e.settings.handle)return;e.toggles=[],o();function o(){i(),s()}function i(){$.each($(e.settings.parent.selector),function(){const l=$(this);e.toggles.push(l)})}function s(){if(e.toggles.length===0)return;let l=0;const a=e.toggles.length;for(;l<a;l++)n(e.toggles[l])}function n(l){l.input=l.find(e.settings.input.selector),l.area=l.find(e.settings.area.selector),l.handle=l.find(e.settings.handle.selector),a();function a(){typeof $.fn.draggable=="function"&&l.handle.draggable({axis:"x",containment:"parent",stop:()=>{b()},start:()=>{p()}}),typeof $.fn.swipe=="function"&&l.area.swipe({allowPageScroll:"none",threshold:0,swipe:(m,T,P,S,f,v)=>{A(T,P)}}),l.on("click",d),l.on("keyup",g);function d(m){C($(m.target))}function g(m){m.which===32&&C($(m.target))}function C(m){m.is(l.handle)||l.input.prop("checked",!l.input.prop("checked")).change()}function A(m,T){T>=l.area.width()/2&&(m===$.fn.swipe.directions.LEFT?l.input.prop("checked",!1).change():m===$.fn.swipe.directions.RIGHT&&l.input.prop("checked",!0).change())}function p(){l.handle.css("left","")}function b(){parseInt(l.handle.css("left"))+l.handle.width()/2<=l.area.width()/2?l.input.prop("checked",!1).change():l.input.prop("checked",!0).change(),l.handle.css("left","")}}}},initAutocompleteV2:r=>{const t={parent:{selector:"[data-property='v2-autocomplete']"},input:{dataAttr:"data-autocomplete-target",triggerEvent:"keyup",debounce:500},list:{dataAttr:"data-autocomplete-list",updatingClass:"is-updating",values:{dataAttr:"data-autocomplete-value",parent:"li",hideClass:"is-hidden",updatingClass:"is-updating"}},onBeforeChange:()=>{},onChange:()=>{},onAfterChange:()=>{}},e={settings:$.extend(!0,{},t,r)};if(!e.settings||!e.settings.parent||!e.settings.input||!e.settings.list)return;e.autocompletes=[],o();function o(){i(),s()}function i(){$.each($(e.settings.parent.selector),function(){const a=$(this);e.autocompletes.push(a.find("["+e.settings.input.dataAttr+"]"))})}function s(){if(e.autocompletes.length===0)return;let a=0;const d=e.autocompletes.length;for(;a<d;a++)n(e.autocompletes[a])}function n(a){a.list=$(a.attr(e.settings.input.dataAttr));const d=a.list.find($("["+e.settings.list.values.dataAttr+"]"));if(d.length===0)return;a.list.values=[],$.each(d,function(){const C=$(this);a.list.values.push({item:C.closest(e.settings.list.values.parent),value:l(C)})}),a.list.cachedValues=a.list.values,g();function g(){a.on(e.settings.input.triggerEvent,function(){const A=$(this);clearTimeout(a.timeOut),a.timeOut=setTimeout(()=>{C(A.val())},e.settings.input.debounce)});function C(A){const p=P();let b=[],m=$(),T=$();if(A){let f=0;const v=p.length;for(;f<v;f++)p[f].value.toLowerCase().startsWith(A.toLowerCase())?(b.push(p[f]),T=T.add(p[f].item)):m=m.add(p[f].item)}else{let f=0;const v=p.length;for(;f<v;f++)T=T.add(p[f].item);b=p}a.lastValue=A,a.list.cachedValues=b,S(()=>{a.list.addClass(e.settings.list.updatingClass),v(T),f(m),setTimeout(()=>{a.list.removeClass(e.settings.list.updatingClass)},50);function f(y){y.addClass(e.settings.list.values.updatingClass),setTimeout(()=>{y.removeClass(e.settings.list.values.updatingClass),y.addClass(e.settings.list.values.hideClass)},50)}function v(y){y.addClass(e.settings.list.values.updatingClass),setTimeout(()=>{y.removeClass(e.settings.list.values.updatingClass),y.removeClass(e.settings.list.values.hideClass)},50)}});function P(){return A&&A.startsWith(a.lastValue)?a.list.cachedValues:a.list.values}function S(f,v,y){E(),I(),u();function E(){typeof v=="function"&&v(),typeof e.settings.onBeforeChange=="function"&&e.settings.onBeforeChange(),a.list.trigger("v2-autocomplete:onBeforeChange")}function I(){typeof f=="function"&&f(),typeof e.settings.onChange=="function"&&e.settings.onChange(),a.list.trigger("v2-autocomplete:onChange")}function u(){typeof y=="function"&&y(),typeof e.settings.onAfterChange=="function"&&e.settings.onAfterChange(),a.list.trigger("v2-autocomplete:onAfterChange")}}}}}function l(a){let d=a.attr(e.settings.list.values.dataAttr);return d||(d=a.text()),d}},initScrollbarV2:r=>
411{const t={target:{selector:"[data-property='v2-scrollbar']"},mCS:{advanced:{autoUpdateTimeout:10},callbacks:{onOverflowYNone:function(){$(this).addClass("no-scrollbar")},onOverflowY:function(){$(this).removeClass("no-scrollbar")}}}},e={settings:$.extend(!0,{},t,r),mCS:[]};if(!e.settings||!e.settings.target||!e.settings.target.selector||!e.settings.mCS)return;return e.init=o,e.destroy=i,e.reload=s,o(),e;function o(){n(),l();function n(){$.each($(e.settings.target.selector),function(){const a=$(this);e.mCS.push(a)})}function l(){if(e.mCS.length===0)return;let a=0;const d=e.mCS.length;for(;a<d;a++)g(e.mCS[a]);function g(C){C.mCustomScrollbar(e.settings.mCS)}}return e}function i(){n(),l();function n(){if(e.mCS.length===0)return;let a=0;const d=e.mCS.length;for(;a<d;a++)g(e.mCS[a]);function g(C){C.mCustomScrollbar("destroy")}}function l(){e.mCS=[]}return e}function s(){return i(),o(),e}},initIonRangeV2:function(r){const t={parent:{selector:"[data-property='v2-range']"},input:{dataAttr:"v2-range-target",fromAttr:"v2-range-from",toAttr:"v2-range-to"},ionSettings:{min:0,max:0,type:"double",prefix:this.getCheckoutCurrencyPrefix(),postfix:this.getCheckoutCurrencyPostfix(),grid:!1,prettify_enabled:!0,prettify_separator:",",input_values_separator:"-",max_postfix:"",change_triggered:!1,extra_classes:"ion-control"}},e={settings:$.extend(!0,{},t,r)};if(!e.settings||!e.settings.parent||!e.settings.input||!e.settings.ionSettings)return;e.priceRanges=[],o();function o(){i()}function i(){const n=$(e.settings.parent.selector).find("["+e.settings.input.dataAttr+"]");$.each(n,function(){l($(this))});function l(a){const d=S(a.attr(e.settings.input.dataAttr)),g=$.extend(!0,{},e.settings.ionSettings,d);g.onFinish=P,g.onUpdate=T,a.ionRangeSlider(g);const C=a.data("ionRangeSlider");C.updateRange=m,e.priceRanges.push(C);const A=a.closest(e.settings.parent.selector),p=A.find("["+e.settings.input.fromAttr+"]"),b=A.find("["+e.settings.input.toAttr+"]");p.change(m),b.change(m);function m(){const f=parseFloat(p.val()),v=parseFloat(b.val()),y=!isNaN(f)&&f>C.options.min?f:C.options.min,E=!isNaN(v)&&v<C.options.max?v:C.options.max;C.update({from:y,to:E})}function T(f){p.val(f.from),b.val(f.to)}function P(f){p.val(f.from),b.val(f.to).change()}function S(f){if(f)try{return JSON.parse(f)}catch(v){console.log(v)}}}}},_partsOfPriceFormat:()=>{const r=window.common_settings.currencies.find(t=>t.currency==window.common_settings.checkoutCurrencyIndex);return r&&r.format.indexOf("0.00")!==-1?r.format.split("0.00"):[]},formatPriceByCurrency:(r,t)=>{var s;let e="";const o=t.format,i=o.match(/0+(\.0+)?/);if(i){const n=i[0];let l=0;(s=i[1])!=null&&s.length&&(l=i[1].length-1);let a=r.toFixed(2);a=Common.trimZeros(a,l),e=o.replace(n,a)}return e!=null||(e=r.toFixed(2)),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,","),e},trimZeros:(r,t=0)=>{const e=r.match(/^(\d+)([.,])(\d+)$/);if(!e)return r;let[,o,i,s]=e;return s=s.replace(/0+$/g,""),s.length<t&&(s=s.padEnd(t,"0")),s.length?o+i+s:o},getCheckoutCurrencyPrefix:function(){return this._partsOfPriceFormat()[0]||null},getCheckoutCurrencyPostfix:function(){return this._partsOfPriceFormat()[1]||null},initReCaptchaScaling:r=>{const t=r||304,e=$(".g-recaptcha");o(e,t),$(window).resize(()=>{o(e,t)}),$(".modal").on("modal:open shown",()=>{o(e,t)});function o(i,s){const l=i.parent().width()/s||1;i.css({transform:"scale("+l+")"})}},initReCaptchaAccessibilityFixes:()=>{$("#g-recaptcha-response, [name=g-recaptcha-response]").attr("aria-label","Google ReCaptcha")},sessionStorageManager:{setKey:(r,t,e)=>{sessionStorage.setItem(r,JSON.stringify(t),e)},getKey:(r,t,e)=>JSON.parse(sessionStorage.getItem(r)),removeItem:r=>{sessionStorage.removeItem(r)}},saveQueryStringValues:()=>{const t=new URI(location.href).query(!0);for(let e in t)t.hasOwnProperty(e)&&sessionStorage.setItem(e,t[e])},initTransferReceivers:()=>{const r=$("form[data-transfer-property]"),t=r.data("transfer-property"),e=Common.sessionStorageManager.getKey(t)||{};r.find("input, select, textarea").each(function(i,s){if($(this).data("transfer-ignore"))return;let l=$(this).data("transfer-field");typeof l=="undefined"&&(l=$(this).attr("name"));const a=e,d=$(this).data("transfer-property");typeof d!="undefined"&&d!=t&&(localdata=Common.sessionStorageManager.getKey(d)||{});const g=a[l];typeof g!="undefined"&&$(this).val(g).trigger("change")})},initTransferSenders:()=>{const r=$("[transfer-emitter]"),t=r.data("transfer-property");r.find("[transfer-submitter]").click(e=>{if(r.valid()){const o=Common.serializeFormToObject(r);Common.sessionStorageManager.setKey(t,o)}else e.preventDefault()})},initTelephoneMask:r=>{typeof $.fn.inputmask=="function"&&(r||(r=$("[data-property=phone-mask]")),r.each(function(){let t=$(this).attr("data-property-unmask-regex"),e=t?new RegExp(t,"g"):/-/g;r.inputmask({mask:"+1-999-999-9999",autoUnmask:!0,onUnMask:o=>o.replace(e,"")})}))},initStellar:(r,t,e)=>{if(!t||!(t instanceof Object))return;const o={verticalScrolling:!0,responsive:!0,horizontalOffset:0,hideDistantElements:!1},i={settings:e?$.extend(!0,{},o,e):o};window.common_settings&&window.common_settings.isMobile&&$("body").addClass("is-mobile-device"),$("body").hasClass("is-mobile-device")||s();function s(){if(typeof $.stellar=="function"){n();let d=$.getCurrentViewport().width,g=a(d,!1);$(window).resize(()=>{const C=$.getCurrentViewport().width;(d>r&&C<=r||d<=r&&C>r)&&(g=a(C,g)),d=C})}}function n(){$.each(t,(d,g)=>{$(d).attr("data-stellar-background-ratio",g)})}function l(){setTimeout(()=>{$.each(t,(d,g)=>{$(d).css("background-position","")})},0)}function a(d,g){return d>r?($.stellar(i.settings),!0):(g&&($.stellar("destroy"),$.stellar({verticalScrolling:!1,verticalOffset:0,horizontalOffset:0,hideDistantElements:!1}
411),$.stellar("destroy"),l()),!1)}},calculateTax:(r,t,e,o,i)=>{let s=0;if(isNaN(r)||!t||t.length===0||!e||e.length===0||isNaN(o))return s;r=parseInt(r);const n=e.filter(d=>d.stateId==r);if(n.length===0)return s;const l=n[0].taxPercent;if(!n.find(d=>d.taxPercent!=l)){let d=t.reduce((C,A)=>C+A.price,0);i&&i.length>0&&i.indexOf(r)!==-1&&(d<o?d=0:d-=o),s=(d*(l||0)/100).toFixed(2)-0}else s=t.reduce((d,g)=>{const C=n.find(A=>A.productId==g.productId)||{TaxPercent:0};return d+((g.price*C.taxPercent/100).toFixed(2)-0)},0);return s},createAndSubmitForm:(r,t)=>{const e=$("<form />",{method:"post",action:r,id:"form"+Date.now()});for(let o in t)if(t.hasOwnProperty(o)){const i=$("<input />",{type:"hidden",name:o,value:t[o]});e.append(i)}$("body").append(e),e[0].submit()},toCamel:r=>{let t,e,o,i;if(r instanceof Array)return r.map(s=>(typeof s=="object"&&(s=Common.toCamel(s)),s));t={};for(e in r)r.hasOwnProperty(e)&&(o=(e.charAt(0).toLowerCase()+e.slice(1)||e).toString(),i=r[e],(i instanceof Array||i!==null&&i.constructor===Object)&&(i=Common.toCamel(i)),t[o]=i);return t},stringFormat:function(r,t){if(typeof r!="string")return r;Array.isArray(t)||(t=Array.from(arguments).slice(1));function e(o,i,s){if(!o)return"";let n=o.split("{"+i+"}");return i+1<s.length&&(n=n.map(l=>e(l,i+1,s))),n.join(s[i]==null||typeof s[i]=="undefined"?"":s[i])}return e(r,0,t)},stringRepeat:(r,t=" ")=>{for(;t.length<r;)t+=t.substr(0,r-t.length);return t},colorFormatRgbToHex:(r,t,e)=>"#"+[r,t,e].map(o=>{const i=o.toString(16);return i.length===1?"0"+i:i}).join(""),colorFormatHexToRgb:r=>r.replace(/^#?([a-f\d])([a-f\d])([a-f\d])$/i,(e,o,i,s)=>"#"+o+o+i+i+s+s).substring(1).match(/.{2}/g).map(e=>parseInt(e,16)),initCarouselSwipeFix:()=>{const r=$(".carousel");r.length>0&&r.swipe({swipeStatus:function(t,e){const o=$(this);o.data("stopclick",!0),e===$.fn.swipe.phases.PHASE_CANCEL&&o.data("stopclick",!1)},triggerOnTouchEnd:!1}).on("click",function(t){const e=$(this);e.data("stopclick")===!0&&(t.stopImmediatePropagation(),t.preventDefault(),e.data("stopclick",!1))})},submenuFix:()=>{const r=$(".common-navbar"),t=r.find("> ul > li"),e="submenu-right",o="submenu-bottom",i=992,s=$(window);if(r.length===0||t.length===0)return;let n=$.getCurrentViewport().width>i?i-1:i+1;l($.getCurrentViewport().width),s.on("resize",()=>{l($.getCurrentViewport().width)});function l(d){(d<i&&n>=i||d>=i&&n<i)&&a(),n=d}function a(){const d=$.getCurrentViewport(),g=d.width/2,C=d.height/2,A=s.scrollTop();$.each(t,(p,b)=>{const m=$(b);m.toggleClass(e,m.offset().left>g).toggleClass(o,m.offset().top-A>C)})}},bindEvents:()=>{const r=$("html, body"),t=$(window),e=$(".close-dropdown");setTimeout(()=>{$("#spinner").hide()},500),$(".clickable").on("click",n=>{n.stopPropagation()}),e.on("click",n=>{o($(n.currentTarget))}),e.on("keyup",n=>{n.which===13&&o($(n.currentTarget))});function o(n){let l=n.closest(".dropdown-menu");l.length===0&&(l=n.parent());let a=l.prevAll("[data-toggle=dropdown]");a.length===0&&(a=l.prev()),a.dropdown("toggle"),a.focus()}$(".dropdown").on("show.bs.dropdown",function(n){n.stopPropagation(),$(this).hasClass("allow-body-overflow")||r.addClass("overflow-hidden-mobile")}).on("hide.bs.dropdown",n=>{n.stopPropagation(),r.removeClass("overflow-hidden-mobile")}),$(".navbar-collapse").on("show.bs.collapse shown.bs.collapse",function(n){n.stopPropagation(),$(this).hasClass("allow-body-overflow")||r.addClass("overflow-hidden-mobile")}).on("hide.bs.collapse hidden.bs.collapse",n=>{n.stopPropagation(),r.removeClass("overflow-hidden-mobile")}),$(".show-search").on("click",n=>{n.preventDefault();const l=$(n.currentTarget),a=$(".search-form");a.removeClass("collapsed"),a.removeClass("lost-focus"),a.removeClass("has-focus"),a.addClass("in"),a.find('input[type="search"]').filter((g,C)=>$(C).parents(":not(.search-holder)").filter((A,p)=>{let b=$(p);return b.is(":not(:visible)")||b.width()===0||b.height()===0}).length===0).focus(),l.addClass("show-search--active")}),$(".close-search-form").on("click",n=>{n.preventDefault();const l=$(".search-form");l.removeClass("in"),l.addClass("collapsed"),l.find('input[type="search"]').blur();const a=$(".show-search--active");a.removeClass("show-search--active"),a.focus()}),$(".search-form input").focus(function(n){const l=$(this).closest(".search-form");l.removeClass("lost-focus"),l.addClass("has-focus")}).blur(function(n){const l=$(this).closest(".search-form");l.removeClass("has-focus"),l.addClass("lost-focus")}),t.one("touchstart touchmove mousedown keyup click",n=>
411{t.trigger("syvo:userInteracted",n.data)}),i(),s();function i(){const n=$("html"),l=$("body"),a=$(".sr-only-focusable"),d=$("[data-trigger=ada-visual]"),g=$("[data-trigger=ada-autoplay]"),C="ada-magic",A="ada-magic--visual",p="{0}-origin",b="a[href][target=_blank]",m="new tab",T="Opens in new tab",P=` - ${T}`;x(Z()),_(M()),D(),a.one("click focus touchstart",S),l.on("keydown",f),d.on("click touchstart",v),d.on("keyup",y),g.on("click touchstart",E),g.on("keyup",I),t.one("syvo:userInteracted",()=>{t.one(Common.VideoJs.EventName.PLAY,F)});function S(){h()}function f(z){const U=$(z.currentTarget);z.which===9&&!U.is("input, select, textarea, button")&&(h(),l.off("keydown",f))}function v(){const z=Z();x(!z)}function y(z){if(console.log(z.which),u(z.which)){const U=Z();x(!U)}}function E(){const z=M();_(!z)}function I(z){if(u(z.which)){const U=M();_(!U)}}function u(z){return z===13||z===32}function c(){return n.hasClass(C)}function h(z=!0){z===!0?c()||(n.addClass(C),D()):c()&&(te(),n.removeClass(C))}function x(z=!0){const U=z===!0;n.toggleClass(A,U),K(U),R(U),B(U)}function _(z=!0){const U=z===!0;j(U),Common.Slick.pauseAll(U),z?t.on(Common.VideoJs.EventName.FIRST_PLAY,F):t.off(Common.VideoJs.EventName.FIRST_PLAY,F),Common.VideoJs.pauseAll(U),L(U)}function B(z){$.each(d,(J,q)=>{const le=$(q);U(le)});function U(J){let q;z===!0?q=J.attr("data-enabled-title"):q=J.attr("data-disabled-title"),J.html(Common.decodeHtml(q))}}function F(z,U){M()&&U.player.pause()}function L(z){$.each(g,(J,q)=>{const le=$(q);U(le)});function U(J){let q;z===!0?q=J.attr("data-enabled-title"):q=J.attr("data-disabled-title"),J.html(Common.decodeHtml(q))}}function D(){$(b).each((z,U)=>{const J=$(U);W(J,"aria-label");let q=J.attr("aria-label");typeof q=="undefined"?J.attr("aria-label",T):q.toLowerCase().indexOf(m)===-1&&(q+=P,J.attr("aria-label",q))})}function te(){$(b).each((z,U)=>{const J=$(U);se(J,"aria-label")})}function R(z=!0){var $e,oe,re,he;const U="h1, h2, h3, h4, h5, p, span, li, a, label",J="input, select, textarea",q="rgb(0, 0, 0)",le="rgba(0, 0, 0, 0)",O="none",H=window.getComputedStyle($(":root")[0]),G=window.common_settings.vars.color,Q=(oe=($e=G==null?void 0:G.primary)!=null?$e:H.getPropertyValue("--color-primary"))!=null?oe:q,X=(he=(re=G==null?void 0:G.secondary)!=null?re:H.getPropertyValue("--color-secondary"))!=null?he:le,ee=parseInt(n.css("font-size")),ne=2,fe=$(U),pe=$(J);if(z===!0){let de=ee;if($.each(pe,(ce,ue)=>{const ae=$(ue);W(ae,"style");const ve=ae.css("background-image"),ge=parseInt(ae.css("font-size"));ve===O&&(ae.css("border-color",Q),ae.css("background-color",X),ae.css("color",Q)),ge&&ge<ee&&(de=ge)}),$.each(fe,(ce,ue)=>{const ae=$(ue);W(ae,"style");const ve=ae.css("background-image"),ge=parseInt(ae.css("font-size"));ve===O&&(ae.css("background-color",Q),ae.css("color",X)),ge&&ge<ee&&(de=ge)}),de<ee){W(n,"style");let ce=ee/de;ce>ne&&(ce=2),n.css("font-size",`${(ce*ee).toFixed(2)}px`)}}else $.each(pe,(de,ce)=>{const ue=$(ce);se(ue,"style")}),$.each(fe,(de,ce)=>{const ue=$(ce);se(ue,"style")}),se(n,"style")}function Z(){return sessionStorage.getItem("ada-visual")==="true"}function K(z){sessionStorage.setItem("ada-visual",z)}function M(){return sessionStorage.getItem("ada-autoplay")==="true"}function j(z){sessionStorage.setItem("ada-autoplay",z)}function W(z,U){const J=Common.stringFormat(p,U),q=`[${J}]`;if(!z.is(q)){const le=z.attr(U);z.attr(J,typeof le=="undefined"?"":le)}}function se(z,U,J=!1){const q=Common.stringFormat(p,U),le=`[${q}]`;if(z.is(le)){const O=z.attr(q);typeof O=="undefined"||O===""?z.removeAttr(U):z.attr(U,O),J&&z.removeAttr(q)}}}function s(){let n=!1;t.on("touchstart",function(g){g.originalEvent instanceof TouchEvent&&g.originalEvent.touches.length===2&&(n=!0,l($(this),g))}),t.on("touchmove",function(g){n&&a($(this),g)}),t.on("touchmove",function(g){n&&(d($(this),g),n=!1)});function l(g,C){!g||g.length===0||g.trigger("syvo:pinchstart",C)}function a(g,C){!g||g.length===0||g.trigger("syvo:pinchmove",C)}function d(g,C){!g||g.length===0||g.trigger("syvo:pinchend",C)}}},initFixes:()=>{setTimeout(()=>{const r=$("select");r.length!==0&&r.not("[no-styler], .video-js select").styler()},50)},initADANavbar:()=>{const r=$(".main-navbar"),t=".common-navbar > ul, [role=menubar]",e="li, [role=none], [data-menu-item]",o=".common-submenu, [role=menu]",i="[role=menuitem]",s="checkbox, [data-trigger=menu-opener]",n="ul, [role=menu]",l="li[data-menu-item=empty], [role=none][data-menu-item=empty]",a=Object.freeze({TAB:0,SPACE:1,ENTER:2,ESCAPE:3,LEFT_ARROW:4,UP_ARROW:5,RIGHT_ARROW:6,DOW
411N_ARROW:7,HOME:8,END:9});r.find(s).attr("tabindex","-1"),r.find(i).attr("tabindex","0"),r.on("keyup",i,d),r.on("focus",i,b),r.on("change",s,p);function d(S){let f=g(S.which);const v=$(S.currentTarget);if(typeof f=="undefined"||!v.is(i))return;v.closest(o).length===0?A($(S.currentTarget),f):C($(S.currentTarget),f)}function g(S){switch(S){case 9:return a.TAB;case 32:return a.SPACE;case 13:return a.ENTER;case 27:return a.ESCAPE;case 37:return a.LEFT_ARROW;case 38:return a.UP_ARROW;case 39:return a.RIGHT_ARROW;case 40:return a.DOWN_ARROW;case 36:return a.HOME;case 35:return a.END;default:return}}function C(S,f,v=!1){const y=S.siblings(s);if(f===a.ESCAPE){const E=S.parent(e).parentsUntil(e);if(E.length===0)return S;const I=E.siblings(s),u=E.siblings(i);return I.length===0?S:(I.prop("checked",!1),m(I,v),v||P(u),u)}if(f===a.LEFT_ARROW){if(y.length>0&&y.prop("checked"))return y.prop("checked",!1),m(y,v),v||P(S),S;const E=S.parentsUntil(t);if(E.length===3){const I=$(E[2]).children(i);if(I.length===0)return S;const u=A(I,a.LEFT_ARROW,!0),c=u.siblings(s);return m(c,!1),u}else{const I=S.parent(e).parentsUntil(e);if(I.length===0)return S;const u=I.siblings(s),c=I.siblings(i);return u.length===0?S:(u.prop("checked",!1),m(u,v),v||P(c),c)}return S}if(f===a.RIGHT_ARROW){if(y.length>0&&!y.prop("checked"))return y.prop("checked",!0),m(y,!0),S;const E=S.parentsUntil(t);if(E.length===3){const I=$(E[2]).children(i);if(I.length===0)return S;const u=A(I,a.RIGHT_ARROW,!0),c=u.siblings(s);return m(c,!1),u}return S}if(f===a.DOWN_ARROW){const E=S.parent(e);let I=E.nextAll().not(l),u;if(I.length===0){const x=E.parent(n).parentsUntil(n),_=x.next(l);if(_.length===0)if(x.is(l)){const B=x.prevAll(e).not(l);if(B.length===0)return S;const F=$(B[0]).children(n).children(e).not(l);if(F.length===0)return S;u=$(F[0])}else{const B=S.closest(n).children(e).not(l);if(B.length===0)return S;u=$(B[0])}else{const B=$(_.children(n).children(e).not(l));if(B.length===0)return S;u=$(B[0])}}else u=$(I[0]);if(u.length===0||u.is(E))return S;const c=u.children(s),h=u.children(i);return y.prop("checked")?(y.prop("checked",!1),m(y,!0),c.prop("checked",!0),m(y,v),v||P(h)):P(h),h}if(f===a.UP_ARROW){const E=S.closest(e);let I=E.prevAll().not(l),u;if(I.length===0){const x=E.closest(n).parentsUntil(n);if(x.is(l)){const _=x.prev(e);if(_.length===0)return S;const B=$(_[0]).children(n).children(e).not(l);if(B.length===0)return S;u=$(B[B.length-1])}else{const _=x.nextUntil(`:not(${l})`);if(_.length===0){const B=S.closest(n).children(e).not(l);if(B.length===0)return S;u=$(B[0])}else{const B=$(_[_.length-1]).children(n).children(e).not(l);if(B.length===0)return S;u=$(B[B.length-1])}}}else u=$(I[0]);if(u.length===0||u.is(E))return S;const c=u.children(s),h=u.children(i);return y.prop("checked")?(y.prop("checked",!1),m(y,!0),c.prop("checked",!0),m(c,v),v||P(h)):P(h),h}}function A(S,f,v=!1){if(f===a.ESCAPE)return;const y=S.siblings(s);if(f===a.DOWN_ARROW)return y.prop("checked",!0),m(y,!0),S;if(f===a.UP_ARROW)return y.prop("checked",!1),m(y,!1),S;if(f===a.HOME){const E=S.closest(e),I=S.closest(t).children(e).not(l);if(I.length===0)return S;const u=$(I[0]);if(u.length===0||u.is(E))return S;const c=u.children(s),h=u.children(i);return y.prop("checked")?(y.prop("checked",!1),m(y,!0),c.prop("checked",!0),m(c,v),v||P(h)):P(h),h}if(f===a.END){const E=S.closest(e),I=S.closest(t).children(e).not(l);if(I.length===0)return S;const u=$(I[I.length-1]);if(u.length===0||u.is(E))return S;const c=u.children(s),h=u.children(i);return y.prop("checked")?(y.prop("checked",!1),m(y,!0),c.prop("checked",!0),m(c,v),v||P(h)):P(h),h}if(f===a.RIGHT_ARROW){const E=S.closest(e);let I=E.nextAll().not(l),u;if(I.length===0){const x=S.closest(t).children(e).not(l);if(x.length===0)return S;u=$(x[0])}else u=$(I[0]);if(u.length===0||u.is(E))return S;const c=u.children(s),h=u.children(i);return y.prop("checked")?(y.prop("checked",!1),m(y,!0),c.prop("checked",!0),m(c,v),v||P(h)):P(h),h}if(f===a.LEFT_ARROW){const E=S.closest(e);let I=E.prevAll().not(l),u;if(I.length===0){const x=S.closest(t).children(e).not(l);if(x.length===0)return S;u=$(x[x.length-1])}else u=$(I[0]);if(u.length===0||u.is(E))return S;const c=u.children(s),h=u.children(i);return y.prop("checked")?(y.prop("checked",!1),m(y,!0),c.prop("checked",!0),m(c,v),v||P(h)):P(h),h}}function p(S){const f=$(S.currentTarget);m(f)}function b(S){const f=$(S.currentTarget);T(f)}function m(S,f=!0){const v=S.prop("checked");if(S.attr("aria-expanded",v),f===!0){if(v){const y=S.siblings(n).children().not(l).find(i);if(y.length!==0){P($(y[0]));return}}P(S.siblings(i))}}function T(S){const f=S.closest(e);$().add(f.nextAll()).add(f.prevAll()).children(i).attr("tabindex","-1")}function P(S){S.attr("tabindex","0"),S.focus()}},Slick:(()=>{const r=Object.freeze({PAUSE_ALL:y("pauseAll")}),t="[tabindex], button, [type=button], [role=button], a",e="slick-ada-dots",o="slick-ada-dot",i="slick-ada-arrow",s="slick-ada-arrow--prev",n="slick-ada-arrow--next",l="slick-ada-btn",a="slick-ada-btn--pause",d=`<button type="button" class="sr-only sr-only-focusable ${l} ${a}">Pause autoplay</button>`,g=`<button type="button" class="sr-only sr-only-focusable ${i} ${s}">Previous Slide</button>`,C=`<button type="button" class="sr-only sr-only-focusable ${i} ${n}">Next Slide</button>`,A=`<div class="sr-only sr-only-container ${e}" role="tablist"></div>`,p=`<button type="button" role="tab" tabindex="0" class="${o}"></button>
411`,b="data-slide-index",m="slick-{0}-origin",T={},P=[13,32,35,36,37,38,39,40];return{EventName:r,init:v,pauseAll:f,sliders:T};function f(E=!0){const I=Object.values(T);I.length!==0&&I.forEach(u=>E===!0?u.pause():u.options.autoplay===!0&&u.play())}function v(){if(typeof $.fn.slick=="function"){let B=function(){f()},F=function(){return D(this),$.isPlainObject(arguments[0])&&(arguments[0].accessibility=!1,L(arguments[0])),x.apply(this,arguments)},L=function(R){if(!Array.isArray(R.responsive))return;const Z=window.innerWidth||$(window).width(),K=R.mobileFirst===!0,M=R.responsive.filter(W=>$.isPlainObject(W)&&$.isPlainObject(W.settings)).filter(W=>K?W.breakpoint<Z:W.breakpoint>Z).sort((W,se)=>W.breakpoint-se.breakpoint),j=K?M[M.length-1]:M[0];j&&j.settings.rows>0&&(R.rows=j.settings.rows),R.responsive.forEach(W=>{$.isPlainObject(W)&&$.isPlainObject(W.settings)&&delete W.settings.rows})},D=function(R){$.each(R,(Z,K)=>{const M=$(K);te(M)})},te=function(R){let Z,K,M,j=Xe(R),W=X();W||(W=ee(),R.off("init",U),R.off("reInit",O),R.off("destroy",J),R.off("unslick",H),R.off("afterChange",q),R.off("breakpoint",le),R.children().each((k,w)=>{const V=$(w);oe(V,"role"),oe(V,"tabindex"),oe(V,"aria-hidden"),oe(V,"aria-labelledby"),oe(V,"style"),oe(V,"class"),V.find(t).each((N,Y)=>{const ie=$(Y);ie.closest(".slick-slide").is(V)&&(oe(ie,"tabindex"),oe(ie,"aria-label"))})}),R.on("init",U),R.on("reInit",O),R.on("destroy",J),R.on("unslick",H),R.on("afterChange",q),R.on("breakpoint",le));let se=`slick-${W}-ada-dot{0}`,z=`slick-${W}-slide{0}`;function U(k,w){if(w.$slider.is(R)&&w.$slideTrack){let N=function(){};var V=N;Z=Z||w.initADA,w.initADA=N,clearTimeout(K),Ce(w.$slideTrack,"Scroll List"),he(w),Ie(w),ue(w),ve(w),pe(w),G(w)}}function J(k,w){w.$slider.is(R)&&($e(w),ge(w),ae(w),Ee(w),clearTimeout(K),K=setTimeout(()=>{ce(w),Q(w)},1e3),w.initADA=Z||w.initADA,Z=void 0)}function q(k,w){w.$slider.is(R)&&(We(w),he(w),de(w))}function le(k,w){w.$slider.is(R)&&(ge(w),ae(w),Ee(w),Ie(w),ue(w),ve(w),he(w),de(w))}function O(k,w){w.$slider.is(R)&&(Ce(w.$slideTrack,"Scroll List"),clearTimeout(M),he(w),Ie(w),ue(w),ve(w),pe(w),G(w))}function H(k,w){w.$slider.is(R)&&($e(w),ge(w),ae(w),Ee(w),re(w.$slideTrack,"role"),clearTimeout(M),M=setTimeout(()=>{ce(w)},1e3))}function G(k){const w=ee();return w||!T.hasOwnProperty(w)?(T[w]=k,!0):!1}function Q(){const k=X();(k||!T.hasOwnProperty(k))&&(delete T[k],fe())}function X(){return R.attr("data-slick-id")}function ee(){let k=X();return typeof k=="undefined"&&(k=Math.floor(new Date().getTime()/Math.random()),ne(k)),k}function ne(k){R.attr("data-slick-id",k)}function fe(){R.removeAttr("data-slick-id")}function pe(k){k.$slides.on("keyup",null,{slick:k},Be),k.$slides.on("focus",null,{slick:k},De)}function $e(k){k.$slides.off("keyup",Be),k.$slides.off("focus",De)}function oe(k,w){const V=Common.stringFormat(m,w),N=`[${V}]`;if(!k.is(N)){const Y=k.attr(w);k.attr(V,typeof Y=="undefined"?"":Y)}}function re(k,w,V=!1){const N=Common.stringFormat(m,w),Y=`[${N}]`;if(k.is(Y)){const ie=k.attr(N);typeof ie=="undefined"||ie===""?k.removeAttr(w):k.attr(w,ie),V&&k.removeAttr(N)}}function he(k){k.$slides.each((w,V)=>{const N=$(V);let Y=Number(N.attr("data-slick-index"));isNaN(Y)&&(Y=w);const ie=typeof k.currentSlide=="undefined"||Y===k.currentSlide,me=N.hasClass("slick-active"),Ae=ie||me;oe(N,"id"),oe(N,"role"),oe(N,"tabindex"),oe(N,"aria-labelledby"),oe(N,"aria-hidden");const Se=Common.stringFormat(z,Y);N.attr("id",Se),N.attr("role","tabpanel"),N.attr("tabindex",ie?"0":"-1"),N.attr("aria-hidden",!Ae);const xe=Common.stringFormat(se,Y),be=$(`#${xe}`);oe(N,"aria-labelledby"),be.length!==0?N.attr("aria-labelledby",xe):(N.removeAttr("aria-labelledby"),N.text().trim().replace(/\s/g,"").length===0&&typeof N.attr("aria-label")=="undefined"&&(oe(N,"aria-label"),Ce(N,`Action #${w}`))),N.find(t).each((Oe,Qe)=>{const ye=$(Qe);ye.closest(".slick-slide").is(N)&&(ie?(re(ye,"tabindex"),(ye.is("[role=none]")||ye.is("[role=presentation]"))&&(oe(ye,"tabindex"),ye.attr("tabindex","-1"))):(oe(ye,"tabindex"),ye.attr("tabindex","-1")))})}),k.$slideTrack.children(".slick-cloned").each((w,V)=>{const N=$(V);N.attr("tabindex","-1").attr("aria-hidden",!0),N.find(t).attr("tabindex","-1"),N.find("[id]").removeAttr("id")})}function de(k){if(k.$dots){k.$dots.attr("role","none").attr("aria-hidden","true"),k.$dots.children("li").attr("role","none").attr("aria-hidden","true");const w=k.$dots.find(t).attr("tabindex","-1").attr("aria-hidden","true");Ce(w,"Hidden Dot")}}function ce(k){R.children().each((w,V)=>{const N=$(V);re(N,"id",!0),re(N,"role",!0),re(N,"tabindex",!0),re(N,"aria-hidden",!0),re(N,"aria-labelledby",!0),re(N,"style",!0),re(N,"class",!0),N.find(t).each((Y,ie)=>{const me=$(ie);me.closest(".slick-slide").is(N)&&(re(me,"tabindex",!0),re(me,"aria-label",!0))})})}function ue(k){let w=_e(k);w.length===0&&(w=Ke(k));let V=Le(k);V.length===0&&(V=Ze(k)),V.on("click",null,{slick:k},Ne),V.on("keyup",null,{slick:k},Me),w.on("click",null,{slick:k},He),w.on("keyup",null,{slick:k},Fe)}function ae(k){let w=Le(k),V=_e(k);w.off("click",Ne),w.off("keyup",Me),V.off("click",He),V.off("keyup",Fe),Ye(k)}function ve(k){let w=Pe(k);w.length===0&&(w=je(k)),w.on("click",null,{slick:k},Ve),w.on("keyup",null,{slick:k},Re)}function ge(k){let w=Pe(k);w.off("click",Ve),w.off("keyup",Re),Ge(k)}function Ie(k){let w=Te(k);w.length===0&&(w=qe(k));const V=ke(k),N=k.currentSlide,Y=V.filter(`[${b}="${N}"]`);Y.attr("aria-selected",!0),V.not(Y).attr("tabindex","-1"),w.on("click",`.${o}[${b}]`,{slick:k},ze),w.on("keyup",`.${o}[${b}]`,{slick:k},Ue)}function Ee(k){let w=Te(k);w.off("click",`.${o}[${b}]`,ze),w.off("keyup",`.${o}[${b}]`,Ue),Je(k)}function De(k){const w=k.data.slick;if(w){const V=$(k.currentTarget);w.$slides.filter(V).length>0&&(w.paused||w.pause())}}function Be(k){if(k.preventDefault(),!P.includes(k.which))return;const w=k.data.slick;if(!w)return;const V=$(k.currentTarget);if(w.$slides.filter(V).length>0){let N=Number(V.attr("data-slick-index"));if(!isNaN(N)){const Y=N;switch(k.which){case 32:case 13:w.paused?w.play():w.pause(),V.focus();break;case 37:case 38:N--,w.prev();break;case 39:case 40:N++,w.next();break;case 36:N=0,w.goTo(N);break;case 35:N=w.$slides.length-1,w.goTo(N);break;default:break}N<0?N=w.$slides.length-1:N>w.$slides.length-1&&(N=0),Y!==N&&w.$slides.filter(`[data-slick-index=${N}]:not(.slick-cloned)`).focus()}}}function Ne(k){const w=k.data.slick;w&&w.prev()}function Me(k){if(k.which===13||k.which===37){const w=k.data.slick;w&&w.prev()}}function He(k){const w=k.data.slick;w&&w.next()}function Fe(k){if(k.which===13||k.which===37){const w=k.data.slick;w&&w.next()}}function Ve(k){const w=k.data.slick;w&&(w.paused?w.play():w.pause())}function Re(k){if(k.which===13||k.which===37){const w=k.data.slick;w&&(w.paused?w.play():w.pause())}}function ze(k){const w=k.data.slick;if(w){const V=$(k.currentTarget);let N=Number(V.attr(b));isNaN(N)||(we(N,w),w.goTo(N))}}function Ue(k){if(k.preventDefault(),!P.includes(k.which))return;const w=k.data.slick;if(!w)return;const N=$(k.currentTarget).attr(b);if(isNaN(N))return;const Y=Number(N);switch(k.which){case 37:case 38:me();break;case 39:case 40:Ae();break;case 36:Se();break;case 35:xe();break;case 13:case 32:ie();break}function ie(){w.goTo(Y)}function me(){if(Y===0)return;const be=Y-1;we(be,w)}function Ae(){const be=ke(w);if(Y===be.length-1)return;const Oe=Y+1;we(Oe,w)}function Se(){we(0,w)}function xe(){const be=ke(w);we(be.length-1,w)}}function we(k,w,V=!0){const N=ke(w);if(k<0||k>=N.length)return;const Y=N.filter(`[${b}=${k}]`);Y.attr("tabindex","0").attr("aria-selected",!0),V&&Y.focus(),N.not(Y).attr("tabindex","-1").attr("aria-selected",!1)}function Pe(k){let w=k.$slider.children(`.${l}.${a}`);return w.length===0&&(w=k.$slideTrack.children(`.${l}.${a}`)),w}function je(k){const w=$(d);return k.$slider.prepend(w),w}function Ge(k){const w=Pe(k);if(w.length===0)return;const V=k.$slides.index(w);V>-1?k.slickRemove(V):w.remove()}function _e(k){let w=k.$slider.children(`.${i}.${n}`);return w.length===0&&(w=k.$slideTrack.children(`.${i}.${n}`)),w}function Le(k){let w=k.$slider.children(`.${i}.${s}`);return w.length===0&&(w=k.$slideTrack.children(`.${i}.${s}`)),w}function Ke(k){const w=$(C);return k.$slider.prepend(w),w}function Ze(k){const w=$(g);return k.$slider.prepend(w),w}function Ye(k){const w=Le(k);if(w.length>0){const N=k.$slides.index(w);N>-1?k.slickRemove(N):w.remove()}const V=_e(k);if(V.length>0){const N=k.$slides.index(V);N>-1?k.slickRemove(N):V.remove()}}function Te(k){let w=k.$slider.children(`.${e}`);return w.length===0&&(w=k.$slideTrack.children(`.${e}`)),w}function qe(k){const w=$(A);return Ce(w,"Tab List"),k.$slides.each((V,N)=>{const Y=$(N);let ie=Number(Y.attr("data-slick-index"));isNaN(ie)&&(ie=V);const me=$(p),Ae=Common.stringFormat(se,V),Se=Common.stringFormat(z,ie);me.attr(b,ie).attr("id",Ae).attr("aria-controls",Se).text(ie),Ce(me,`Switch to slide #${ie}`),w.append(me),oe(Y,"aria-labelledby"),Y.attr("aria-labelledby",Ae)}),We(k),k.$slider.prepend(w),w}function We(k){we(k.currentSlide,k,!1)}function Je(k){const w=Te(k);if(w.length===0)return;const V=k.$slides.index(w);V>-1?k.slickRemove(V):w.remove()}function ke(k){return Te(k).children(`.${o}[${b}]`)}function Xe(k){return k.attr("aria-label")}function Ce(k,w){k!=null&&k.length&&(typeof j!="undefined"?k.attr("aria-label",`${j} ${w}`):k.attr("aria-label",w))}};var E=B,I=F,u=L,c=D,h=te;const x=$.fn.slick;$.fn.slick=F,$(window).on(r.PAUSE_ALL,B)}}function y(E){return`SYVO_Slick:${E}`}})(),VideoJs:(()=>{const r=Object.freeze({READY:s("ready"),DISPOSE:s("dispose"),AUTOPLAY_SUCCESS:s("autoplay-success"),AUTOPLAY_FAILURE:s("autoplay-failure"),USER_ACTIVE:s("useractive"),USER_INACTIVE:s("userinactive"),LOAD_START:s("loadstart"),LOADED_META_DATA:s("loadedmetadata"),FIRST_PLAY:s("firstplay"),PLAY:s("play"),PAUSE:s("pause"),ENDED:s("ended"),ENTER_FULL_WINDOW:s("enterFullWindow"),EXIT_FULL_WINDOW:s("exitFullWindow"),FULL_SCREEN_CHANGE:s("fullscreenchange"),POSTER_CHANGE:s("posterchange")}),t={EventName:r,init:()=>{}};if(typeof window.videojs!="function")return;const e=window.videojs.getComponent("Player");return t.init=i,t.pauseAll=o,t;function o(n){const l=Object.values(e.players);l.length!==0&&l.forEach(a=>n===!0?a.pause():a.options_.autoplay===!0&&a.play())}function i(){const n=$(window),l=d.bind(void 0);for(const g in window.videojs)window.videojs.hasOwnProperty(g)&&!l.hasOwnProperty(g)&&(l[g]=window.videojs[g]);const a=window.videojs;return window.videojs=l,t;function d(g,C,A){return a.apply(this,[g,C,b()]);function b(){return L;function L(){const D=this,te=$(D.el_);return D.on("dispose",m),D.on("autoplay-success",T),D.on("autoplay-failure",P),D.on("useractive",S),D.on("userinactive",f),D.on("loadstart",v),D.on("loadedmetadata",y),D.on("firstplay",E),D.on("play",I),D.on("pause",u),D.on("ended",c),D.on("enterFullWindow",h),D.on("exitFullWindow",x),D.on("fullscreenchange",_),D.on("posterchange",B),F(r.READY,te,D,C),typeof A=="function"?A.apply(this,arguments):this}}function m(){const L=this,D=$(L.el_);L.off("dispose",m),L.off("autoplay-success",T),L.off("autoplay-failure",P),L.off("useractive",S),L.off("userinactive",f),L.off("loadstart",v),L.off("loadedmetadata",y),L.off("firstplay",E),L.off("play",I),L.off("pause",u),L.off("ended",c),L.off("enterFullWindow",h),L.off("exitFullWindow",x),L.off("fullscreenchange",_),L.off("posterchange",B),F(r.DISPOSE,D,L,C)}function T(){const L=this,D=$(L.el_);F(r.AUTOPLAY_SUCCESS,D,L,C)}function P(){const L=this,D=$(L.el_);F(r.AUTOPLAY_FAILURE,D,L,C)}function S(){const L=this,D=$(L.el_);F(r.USER_ACTIVE,D,L,C)}function f(){const L=this,D=$(L.el_);F(r.USER_INACTIVE,D,L,C)}function v(){const L=this,D=$(L.el_);F(r.LOAD_START,D,L,C)}function y(){const L=this,D=$(L.el_);F(r.LOADED_META_DATA,D,L,C)}function E(){const L=this,D=$(L.el_);F(r.FIRST_PLAY,D,L,C)}function I(){const L=this,D=$(L.el_);F(r.PLAY,D,L,C)}function u(){const L=this,D=$(L.el_);F(r.PAUSE,D,L,C)}function c(){const L=this,D=$(L.el_);F(r.ENDED,D,L,C)}function h(){const L=this,D=$(L.el_);F(r.ENTER_FULL_WINDOW,D,L,C)}function x(){const L=this,D=$(L.el_);F(r.EXIT_FULL_WINDOW,D,L,C)}function _(){const L=this,D=$(L.el_);F(r.FULL_SCREEN_CHANGE,D,L,C)}function B(){const L=this,D=$(L.el_);F(r.POSTER_CHANGE,D,L,C)}function F(L,D,te=null,R=null){const Z={event:L};te&&(Z.player=te,Z.playerId=te.id_),R!==null&&(Z.options=R),D.length!==0&&(Z.$el=D,D.trigger(L,Z)),n.trigger(L,Z)}}}function s(n){return`SYVO_VideoJs:${n}`}})(),MagicZoom:(()=>{const r=Object.freeze({NOT_EXISTS:A("notExists"),ALL_LOADED_TIMEOUT:A("allLoadedTimeout"),ZOOM_READY:A("zoomReady"),UPDATE:A("update"),ZOOM_IN:A("zoomIn"),ZOOM_OUT:A("zoomOut"),EXPAND_OPEN:A("expandOpen"),EXPAND_CLOSE:A("expandClose"),ALL_LOADED:A("allLoaded")}),t="MagicZoom Zoomed image";let e=!1,o=!1,i=!1,s;const n={eventNames:r,init:C,applyAccessibility:g,isInited:l,areAllLoaded:a};return n;function l(){return e}function a(){return o}function d(){return typeof window.MagicZoom!="undefined"&&typeof window.MagicZoom.registerCallback=="function"}function g(p){if(!d())return;const b=$(".mz-zoom-window"),m='<span class="sr-only">{0}</span>';b.each((T,P)=>{const S=$(P),f=`MagicZoom zoom window image #${T}`,v=$(Common.stringFormat(m,f));S.find("img").attr("role","presentation").attr("alt",f),S.append(v)}),$(`#${p}
411 .mz-nav-controls button`).each((T,P)=>{const S=$(P);S.attr("aria-label",S.attr("title"))})}function C(p=".overview a[href], .MagicZoom",b=1e4){if(e)return n;const m=$(window);if(!d()){m.trigger(r.NOT_EXISTS,{_$el:$(p),event:r.NOT_EXISTS});return}let T=$(p);return i||(window.MagicZoom.registerCallback("onZoomReady",P),window.MagicZoom.registerCallback("onUpdate",S),window.MagicZoom.registerCallback("onZoomIn",f),window.MagicZoom.registerCallback("onZoomOut",v),window.MagicZoom.registerCallback("onExpandOpen",y),window.MagicZoom.registerCallback("onExpandClose",E),s=setTimeout(()=>{o=!0,m.trigger(r.ALL_LOADED_TIMEOUT,{_$el:$(p),event:r.ALL_LOADED_TIMEOUT})},b),i=!0),m.one("load",I),e=!0,n;function P(_){c(_),u(r.ZOOM_READY,_)}function S(_,B,F){u(r.UPDATE,_,{prevImageSelector:B,newImageSelector:F})}function f(_){u(r.ZOOM_IN,_)}function v(_){u(r.ZOOM_OUT,_)}function y(_){h(_),u(r.EXPAND_OPEN,_)}function E(_){u(r.EXPAND_CLOSE,_)}function I(){x()}function u(_,B,F=null){const L=$(`#${B}`),D={event:_,zoomId:B};F!==null&&(D.options=F),L.length!==0&&(D.$el=L,L.trigger(_,D)),m.trigger(_,D)}function c(_){B(_),g(_),F(_);function B(L){$(".mz-lens img").each((D,te)=>{const R=$(te);let Z=t;const K=R.parent().parent().children("img").attr("alt");typeof K!="undefined"&&(Z=`Zoom for ${K}`),R.attr("alt",Z)}),$(".mz-zoom-window").attr("aria-hidden","true")}function F(L){D(L),x();function D(te){const R=$(`#${te}`);R.length!==0&&!T.has(R).length>0&&(T=T.add(R))}}}function h(_){if(!d())return;const B=$(`#${_}`);let L=B.children("img").attr("alt");(typeof L=="undefined"||L.length===0)&&(L=B.attr("aria-label"),(typeof L=="undefined"||L.length===0)&&(L=B.attr("title")));const D=$(".mz-expand").attr("role","presentation").attr("tabindex","-1").attr("aria-hidden",!0).attr("aria-label",`Full size zoom dialog for ${L}`),te=D.find(".magic-thumbs");te.find("ul").attr("role","none").attr("aria-hidden",!0).children().each((R,Z)=>{$(Z).attr("role","none").find("img").attr("role","presentation").attr("alt",`Switch to related image #${R} of ${L}`)}),te.find("button").each((R,Z)=>{const K=$(Z);let M=K.attr("aria-label");(typeof M=="undefined"||M.length===0)&&(K.hasClass("magic-thumbs-button-prev")?K.attr("aria-label","Full screen zoom dialog thumbs Prev Button"):K.hasClass("magic-thumbs-button-next")?K.attr("aria-label","Full screen zoom dialog thumbs Next Button"):K.attr("aria-label",`Full screen zoom dialog thumbs Button #${R}`))}),D.find("[tabindex], button, [type=button], [role=button], a").each((R,Z)=>{const K=$(Z).attr("tabindex","-1");let M=K.text();(typeof M=="undefined"||M.length===0)&&(M=K.attr("title"),(typeof M=="undefined"||M.length===0)&&(M=K.attr("aria-label"),(typeof M=="undefined"||M.length===0)&&K.attr("aria-label",`Full size zoom dialog Button #${R}`)))}),D.find(".mz-figure > img").attr("role","presentation").attr("alt",`Full size image for ${L}`),D.find(".mz-expand-bg > img").attr("role","presentation").attr("alt",`Full size zoom dialog background for ${L}`)}function x(){const _=B();return _&&F(),_;function B(){const L=$(p);return L.length===0||L.toArray().every(D=>window.MagicZoom.running(D))}function F(){o||(o=!0,clearTimeout(s),setTimeout(()=>{m.trigger(r.ALL_LOADED,{_$el:T,event:r.ALL_LOADED})}))}}}function A(p){return`SYVO_MagicZoom:${p}`}})(),initResponsiveSlick:(r,t,e,o,i)=>{if(!r||!t||!e||!o)return;const s={$slider:$(t),init:n,reinit:a,destroy:d};return n(),s;function n(){g(),C(),p(),l()}function l(){s.$slider.trigger("setPosition")}function a(){d(),n()}function d(){A(),s.slick=b("unslick")}function g(){s.prevWidth=$.getCurrentViewport().width}function C(){$(window).on("resize",T),s.$slider.on("setPosition",P)}function A(){$(window).off("resize",T),s.$slider.off("setPosition",P)}function p(){const f=$.getCurrentViewport().width;f<=r?s.slick?s.prevWidth>r&&(s.slick=b(o)):s.slick=b(o):s.slick?s.prevWidth<=r&&(s.slick=b(e)):s.slick=b(e),s.prevWidth=f}function b(f){if(s.slick&&s.$slider.slick("unslick"),f!=="unslick")return s.$slider.slick(f)}function m(){}function T(){p()}function P(f,v){S(v)}function S(f){!f||!f.$slider||!i||Common.setRelatedArrowsPosition(f,i)}},notificationsInit:r=>{const t=$(window),e={parent:{selector:"[data-parent=common-notifications]"},notification:{selector:"[data-property=common-notification]",closeBtnSelector:"[data-trigger=common-notification-close]"}},o={init:i,reinit:n,destroy:s};return i();function i(p){if(o.settings=$.extend(!0,{},e,p||r),!o.settings.parent||!o.settings.notification)return;return b(),T(),m(),o;function b(){o.$parent=a(),o.$notification=d(o.$parent),o.$closeBtn=$(o.settings.notification.closeBtnSelector)}function m(){A()}function T(){o.$closeBtn.on("click",l)}}function s(){return p(),m(),o;function p(){o.$closeBtn.off("click",l)}function b(){}function m(){o.$parent=$(),o.$notification=$(),o.$closeBtn=$()}}function n(p){return s(),i(p)}function l(p){C($(p.currentTarget))}function a(){return $(o.settings.parent.selector)}function d(p){return p.find(o.settings.notification.selector)}function g(p){return p.closest(o.settings.notification.selector)}function C(p){g(p).hide(),A()}function A(){o.$parent.each((p,b)=>{const m=$(b);d(m).filter(":visible").length>0||m.remove()}),o.$parent=a(),o.$parent.length===0&&s()}},googleTranslateResponsiveInit:r=>{return new Promise((e,o)=>{typeof google.translate.TranslateElement!="function"?window.googleTranslateElementInit=i:i();function i(){e(t())}});function t(){const o={HORIZONTAL:1,Hk:0,SIMPLE:2,VERTICAL:0,hk:1,xk:2},i="googtrans",s={target:"google_translate_element",layout:o.SIMPLE,pageLanguage:"en",labelAttr:"data-google-translate-label",btnAttr:"data-google-translate-btn",includedLanguages:"en",responsive:[{breakpoint:992,settings:{target:"google_translate_element_mobile",layout:o.HORIZONTAL}}]},n={init:a,reinit:g,destroy:d},l=$(window);return a();function a(c){if(n.settings=$.extend(!0,{}
411,s,c||r),!n.settings.target||m()&&!n.settings.responsive.every(B=>!!B.settings))return;h(),x(),_();function h(){n.lastBreakpoint=v().breakpoint,n.$btns=$(`[${n.settings.btnAttr}]`),n.$labels=$(`[${n.settings.labelAttr}]`)}function x(){T()}function _(){m()&&l.on("resize",C),n.$btns.on("click",A)}return n}function d(){c(),h(),x();function c(){m()&&l.off("resize",C),n.$btns.off("click",A)}function h(){P()}function x(){n.lastBreakpoint=null,n.$btns=$(),n.$labels=$()}return n}function g(c){return d(),a(c)}function C(c){S(v().breakpoint)}function A(c){c.preventDefault();const h=p($(c.currentTarget).attr(n.settings.btnAttr)),x=I();h!==x?(u(h),location.reload()):b(h)}function p(c){if(n.settings.includedLanguages.split(",").indexOf(c)!==-1)return c;const x=f();return u(x.pageLanguage),x.pageLanguage}function b(c){const h=n.$btns.filter((x,_)=>$(_).attr(n.settings.btnAttr)===c);n.$btns.removeClass("active"),h.addClass("active"),n.$labels.text(c),l.trigger("googleTranslateResponsiveInit:onSetLanguage",[c,h])}function m(){return $.isArray(n.settings.responsive)&&n.settings.responsive.length>0}function T(){const c=f();n.translateElement=new google.translate.TranslateElement(c,c.target),b(I()),$("#goog-gt-votingForm input").each((h,x)=>{$(x).attr("aria-label","Enter "+x.name)})}function P(){const c=y(n.lastBreakpoint).settings;$(c.target).html(""),n.translateElement=null}function S(c){n.lastBreakpoint!==c&&location.reload()}function f(){return n.currentBreakpoint=v(),$.extend(!0,{},n.settings,n.currentBreakpoint.settings)}function v(){let c=n.settings.responsive;const h=$.getCurrentViewport().width;return c=c.sort((x,_)=>x.breakpoint-_.breakpoint).filter(x=>x.breakpoint>h),c.length===0&&c.push(E()),c[0]}function y(c){if(!n.settings.responsive)return E();let h=n.settings.responsive.filter(x=>x.breakpoint===c);return h.length===0&&h.push(E()),h[0]}function E(){return{breakpoint:8e3,settings:Object.assign({},n.settings)}}function I(){let c=$.cookie(i);return p(c?c.substr(-2):null)}function u(c){const h=f(),x=c===h.pageLanguage?"":`/auto/${c}`;let _=window.location.hostname;if(_=_.replace("www.",""),x){const B=$.cookie.raw;$.cookie(i,x,{domain:_}),$.cookie(i,x,{domain:"."+_}),$.cookie.raw=B}else $.removeCookie(i,{path:"/"}),$.removeCookie(i,{domain:_}),$.removeCookie(i,{domain:"."+_})}}},applyForMobile:r=>{const t={breakpoint:992,targets:[]},e={settings:$.extend(!0,{},t,r)};if(!e.settings||!e.settings.breakpoint||!e.settings.targets||!$.isArray(e.settings.targets)||e.settings.targets.length===0)return;o();function o(){e.defaultState=i();let a=l($.getCurrentViewport().width,common_settings.isMobile);$(window).resize(()=>{a=l(a)})}function i(){const a={};let d=0;const g=e.settings.targets.length;for(;d<g;d++)a[e.settings.targets[d].selector]=$(e.settings.targets[d].selector).attr(e.settings.targets[d].attr);return a}function s(){let a=0;const d=e.settings.targets.length;for(;a<d;a++)e.defaultState.hasOwnProperty(e.settings.targets[a].selector)&&$(e.settings.targets[a].selector).attr(e.settings.targets[a].attr,e.defaultState[e.settings.targets[a].selector])}function n(){let a=0;const d=e.settings.targets.length;for(;a<d;a++){let g;e.defaultState.hasOwnProperty(e.settings.targets[a].selector)?g=e.defaultState[e.settings.targets[a].selector]:g=$(e.settings.targets[a].selector).attr(e.settings.targets[a].attr),e.settings.targets[a].modifyFunc&&typeof e.settings.targets[a].modifyFunc=="function"&&$(e.settings.targets[a].selector).attr(e.settings.targets[a].attr,e.settings.targets[a].modifyFunc(g))}}function l(a,d){const g=$.getCurrentViewport().width;if(d)return C(),g;if(g<e.settings.breakpoint){if(a==null||a>=e.settings.breakpoint||a===g)return C(),g}else if(a<e.settings.breakpoint)return A(),g;function C(){n()}function A(){s()}}},safaryAutozoomOnFocus:r=>{const t={targets:[{selector:"head meta[name=viewport]",attr:"content"}],onlyForMobile:!0},e={settings:$.extend(!0,{},t,r)};function o(){const s={};let n=0;const l=e.settings.targets.length;for(;n<l;n++)s[e.settings.targets[n].selector]=$(e.settings.targets[n].selector).attr(e.settings.targets[n].attr);return s}function i(){if(!e.defaultState)return;let s=0;const n=e.settings.targets.length;for(;s<n;s++)e.defaultState.hasOwnProperty(e.settings.targets[s].selector)&&$(e.settings.targets[s].selector).attr(e.settings.targets[s].attr,e.defaultState[e.settings.targets[s].selector])}return{disableAutozoom(){if(!e.settings||!e.settings.targets||!$.isArray(e.settings.targets)||e.settings.targets.length===0)return;s();function s(){if(e.defaultState=o(),!e.settings.selector){n();return}l()}function n(){let g=0;const C=e.settings.targets.length;for(;g<C;g++)e.settings.targets[g].modifyFunc=d;Common.applyForMobile({breakpoint:e.settings.onlyForMobile?992:8e3,targets:e.settings.targets})}function l(){const g=$(e.settings.selector);if(g.length===0)return;g.on("touchstart focus",()=>{A()}),g.on("touchend",()=>{setTimeout(C,500)}),g.on("blur",()=>{C()});function C(){i()}function A(){a()}}function a(){let g=0;const C=e.settings.targets.length;for(;g<C;g++){let A;e.defaultState.hasOwnProperty(e.settings.targets[g].selector)?A=e.defaultState[e.settings.targets[g].selector]:A=$(e.settings.targets[g].selector).attr(e.settings.targets[g].attr),$(e.settings.targets[g].selector).attr(e.settings.targets[g].attr,d(A))}}function d(g){const C=A(g.split(", "));return p(C),b(C);function A(m){const T={};let P=0;const S=m.length;for(;P<S;P++){const f=m[P].split("=");if(f.length===2){T[f[0]]=f[1];continue}if(f.length===1){T[f[0]]="";continue}f.length>2&&(T[f[0]]=f.splice(1,1).join("="))}return T}function p(m){m["user-scalable"]=0,m["maximum-scale"]=1}function b(m){return $.param(m).replace(/&/g,", ")}}},resetAutozoom(){i()}}},setRelatedArrowsPosition:(r,t,e)=>{if(!r||!r.$slider||!r.$prevArrow||!r.$nextArrow)return;const o=r.$slider.find(t);if(o.length===0)return;const i=a(),s=o.outerHeight()-2*i,n=o.offset().top-l().offset().top+i;r.$prevArrow.css("position","absolute").css("height",s+"px").css("top",n+"px"),r.$nextArrow.css("position","absolute").css("height",s+"px").css("top",n+"px");function l(){if(r.$slider.css("position")!=="static")return r.$slider;return d();function d(){const g=r.$slider.parents().filter(function(){return $(this).css("position")!=="static"});return g.length!==0?$(g[0]):$("body")}}function a(){const d=r.$slider.find(e).outerHeight();return d||0}},setSlidesEqualHeight:(r,t)=>{const e="slick-slider--equal-slides";if(!r||!r.$slider||!r.$slides)return;const o=r.$slider.find(t);r.$slider.removeClass(e);const i=n();r.$slideTrack.children(".slick-slide").css("height",i?`${i}px`:""),r.$slider.addClass(e);function n(){if(o.length===0)return r.$slideTrack.height();let l;return $.each(o,(a,d)=>{const g=$(d),C=g.outerHeight(),A=parseFloat(g.css("margin-top")),p=parseFloat(g.css("margin-bottom")),b=C+(isNaN(A)?0:A)+(isNaN(p)?0:p);(!l||b>l)&&(l=b)}),l}},getWindowLocationParameter:(r,t)=>{t=typeof t=="boolean"?t:!1,r=r.toLowerCase();const e=new URL(window.location.href.toLowerCase()).searchParams;if(e.has(r)){const o=e.get(r);return o!==void 0||!t?o:t}},localStorageManager:{getValueFromLocalStorage:r=>{const t=JSON.parse(localStorage.getItem(r));if(t&&t.expires){if(new Date(t.expires)>new Date)return t.value;localStorage.removeItem(r)}return null},setValueToLocalStorage:(r,t)=>{const e=new Date,o={value:t,expires:e.setDate(e.getDate()+1)};localStorage.setItem(r,JSON.stringify(o))},setProductStyleToLocalStorage:r=>{const t={productStyle:r,referrer:document.URL}
411;Common.localStorageManager.setValueToLocalStorage("productStyle",t)},getProductStyleFromLocalStorage:()=>{const r=Common.localStorageManager.getValueFromLocalStorage("productStyle");return r&&document.referrer===r.referrer?r.productStyle:null}},StoreLocator:{constants:{Status:{OK:200,NOT_FOUND:404,ERROR:500},SearchType:{LOCATION:1,DEFAULT_LOCATION:2,BY_USER_COORDINATES:3,IN_AREA:4}},formatStringForUrl:r=>r.replace(/\-/g,"_").replace(/\s/g,"-").replace(/\_/g,"--"),serializeFormAndModelToQueryString:(r,t,e,o,i)=>{let s=t.serializeArray();s=s.filter(l=>!["searchTerms","country","regionCode"].includes(l.name));let n="";return e&&r.userGeolocation!=null&&(s.push({name:"userCoordinates.latitude",value:r.userGeolocation.latitude}),s.push({name:"userCoordinates.longitude",value:r.userGeolocation.longitude}),i!=null&&i.length&&s.push({name:"searchRadiusInMeters",value:i.val()})),o&&r.location!=null&&(s.push({name:"location.countryCode",value:r.location.countryCode!=null?Common.StoreLocator.formatStringForUrl(r.location.countryCode):null}),s.push({name:"location.regionCode",value:r.location.regionCode!=null?Common.StoreLocator.formatStringForUrl(r.location.regionCode):null}),s.push({name:"location.postCodeOrCity",value:r.location.postCodeOrCity!=null?Common.StoreLocator.formatStringForUrl(r.location.postCodeOrCity):null}),r.location.postCodeOrCity!=null&&(i!=null&&i.length)&&s.push({name:"searchRadiusInMeters",value:i.val()}),r.location.geolocation&&s.push({name:"geolocationJSON",value:JSON.stringify(r.location.geolocation)})),$.each(s,(l,a)=>{$.trim(a.value)&&(n+=n==""?"?"+a.name+"="+a.value:"&"+a.name+"="+a.value)}),n},updateDistanceToStore:(r,t)=>{r.location!=null?r.location.postCodeOrCity&&e(r.location.coordinates):r.userGeolocation!=null&&e(r.userGeolocation);function e(i){r.stores.forEach(s=>{const n=google.maps.geometry.spherical.computeDistanceBetween(new google.maps.LatLng(s.coordinates.latitude,s.coordinates.longitude),new google.maps.LatLng(i.latitude,i.longitude)),l=o(n);s.target.find(t.distance.selector).html(`${t.distance.beforeHtml}${l.toFixed(t.distance.decimalPlaces)}${t.distance.afterHtml}`)})}function o(i){return i*.000621371192}}},CustomerDemand:{constants:{areas:{pdp:0,storeLocator:1,webchat:2,modalForm:3},phonePrefix:"+",localStoragePhoneKey:"customerPhone",localStoragePhoneCodeKey:"customerPhoneCode",localStorageLocationKey:"customerLocation",localStorageEmailKey:"customerEmail"},isPhoneComplete:r=>r.inputmask("isComplete"),initializePhoneCode:(r,t)=>{const e=$(r),o={plugin:{dropdownAutoWidth:!0,minimumResultsForSearch:10,templateSelection:s},callbacks:{onAfterInit:()=>{}}},i=$.extend(!0,o,t||{});if(!i.plugin||(e.select2(i.plugin),!i.callbacks))return;e.hasClass("select2-hidden-accessible")&&typeof i.callbacks.onAfterInit=="function"&&i.callbacks.onAfterInit(e,i);function s(n){return n.id?`${Common.CustomerDemand.constants.phonePrefix}${n.id}`:n.text}},initializePhoneInputMask:(r,t)=>{t=t||{},r.inputmask({placeholder:t.phoneMaskSymbolPlaceholder,mask:t.phoneMask,autoUnmask:!0,removeMaskOnSubmit:!0,onUnMask:(e,o)=>Common.CustomerDemand.isPhoneComplete(r)?o:null})},initZipCodeAutocomplete:(r,t,e,o)=>{r.length>0&&Common.GoogleMapsApi.getLoader()({key:t}).then(()=>{const s={},n=r,l=new google.maps.places.AutocompleteService,a=new google.maps.places.PlacesService(document.createElement("div"));let d=null;n.autocomplete({minLength:2,delay:500,classes:{"ui-autocomplete":e===Common.CustomerDemand.constants.modalForm?"ui-autocomplete-modal":""},source:(p,b)=>{const m=$.trim(p.term);return m in s?(b(g(s[m])),!1):(d==null&&(d=new google.maps.places.AutocompleteSessionToken),l.getPlacePredictions({input:$.trim(n.val()),types:["geocode"],sessionToken:d},T=>{s[m]=T,b(g(s[m]))}),!1)},focus:()=>!1,select:(p,b)=>(n.val(b.item.label).trigger("change"),C(b.item.value).then(m=>{if(m){const T=A(m);n.val(T.postCodeOrCity),n.valid(),o&&o(T)}}),!1)}).focus(p=>{$(p.currentTarget).data("uiAutocomplete").search($(p.currentTarget).val())});function g(p){return p&&p.length>0?$.map(p,b=>({value:b.place_id,label:b.description})):[]}function C(p){return new Promise((b,m)=>{a.getDetails({placeId:p,fields:["address_component","formatted_address","geometry","place_id"],language:"en",sessionToken:d},T=>{d=null,b(T)})})}function A(p){let b=null;if(p&&p.address_components){b={countryCode:null,regionCode:null,postCodeOrCity:null};for(let m=0;m<p.address_components.length;m++){const T=p.address_components[m];for(let P=0;P<T.types.length;P++){const S=T.types[P];S==="administrative_area_level_1"?b.regionCode=T.short_name:S==="country"&&(b.countryCode=T.short_name),b.postCodeOrCity||(S==="postal_code"||S==="postal_town"||S==="locality")&&(b.postCodeOrCity=T.short_name)}}}return b}})},submitForm:(r,t,e,o,i)=>{var d,g;t.$form.validate({errorElement:"span",errorClass:"error",validClass:"valid"});const s=t.$form.valid(),n=Common.CustomerDemand.isPhoneComplete(t.$phone),l=!!t.$email.val();if(s&&(n||l)){const C={};t.$form.find("input:not([type='radio']):not([name='formId']):not([data-field-id]),select:not([data-field-id]),input[type=radio]:not([data-field-id]):checked,textarea:not([data-field-id])").map((T,P)=>{P=$(P);const S=P.attr("name");C.hasOwnProperty(S)||(C[S]=P.val())});let A={form:t.$form,beforeShowDatepicker:T=>{$(T).parent().append($("#ui-datepicker-div"))}},p=window.Syvo.Custom_Form.collectFormData(A);C.additionalFormResult=p?{formId:p.formId,fields:p.fields}:null,r&&(C["g-recaptcha-response"]=r);let b=t.$phone.inputmask("unmaskedvalue"),m="";t.$phoneCode.length>0?m=t.$phoneCode.val():m=(g=(d=t.settings.phoneFormat)==null?void 0:d.phoneCode)!=null?g:"",Common.localStorageManager.setValueToLocalStorage(Common.CustomerDemand.constants.localStoragePhoneKey,b),Common.localStorageManager.setValueToLocalStorage(Common.CustomerDemand.constants.localStoragePhoneCodeKey,m),Common.localStorageManager.setValueToLocalStorage(Common.CustomerDemand.constants.localStorageEmailKey,t.$email.val()),t.$submitButton.prop("disabled",!0),t.$submitButtonTitle.hide(),t.$successButtonTitle.hide(),t.$loadingButtonTitle.show(),t.$phone.length>0&&(C.phone=`${Common.CustomerDemand.constants.phonePrefix}${m}${b}`),i&&typeof i.onBeforeSent=="function"&&i.onBeforeSent(C),$.ajax({url:e,type:"post",data:C}
411).done(T=>{i&&typeof i.onSucceeded=="function"&&i.onSucceeded(T),Common.CustomerDemand.triggerGoogleAnalyticsEvent(t.area,t.$itemDescription,"Register"),t.$loadingButtonTitle.hide(),t.$submitButtonTitle.hide(),t.$successButtonTitle.show(),t.$successMessage.show(),t.location&&Common.localStorageManager.setValueToLocalStorage(Common.CustomerDemand.constants.localStorageLocationKey,t.location),t.area===Common.CustomerDemand.constants.areas.pdp&&o&&(window.location.href=Common.CustomerDemand.getLocationUrl(t.location,o))}).fail(T=>{i&&typeof i.onFailed=="function"&&i.onFailed(T),t.$submitButton.prop("disabled",!1),t.$loadingButtonTitle.hide(),t.$successButtonTitle.hide(),t.$submitButtonTitle.show()}).always(()=>{i&&typeof i.onAfterSent=="function"&&i.onAfterSent()})}},triggerGoogleAnalyticsEvent:(r,t,e)=>{const o=$(document);let i=null;switch(r){case Common.CustomerDemand.constants.areas.pdp:i="Product Demand";break;case Common.CustomerDemand.constants.areas.storeLocator:i="Store Demand";break;case Common.CustomerDemand.constants.areas.webchat:i="Widget Demand";break;case Common.CustomerDemand.constants.areas.modalForm:i="Modal Form Demand";break}if(i===null)return;let s={category:i,action:e,label:t.val()};o.trigger(window.Syvo.Google_Analytics_4.eventNames.onCustomerDemandClicked,s),o.trigger(window.Syvo.Google_Tag_Manager.eventNames.onCustomerDemandClicked,s)},triggerEmptyPhoneEvent:r=>{r.formSubmissionAttemptsCount++===0&&!Common.CustomerDemand.isPhoneComplete(r.$phone)&&Common.CustomerDemand.triggerGoogleAnalyticsEvent(r.area,r.$itemDescription,"Click (no phone)")},initializePhoneAndZipCodeFromStorage:r=>{const t=Common.localStorageManager.getValueFromLocalStorage(Common.CustomerDemand.constants.localStoragePhoneKey),e=Common.localStorageManager.getValueFromLocalStorage(Common.CustomerDemand.constants.localStoragePhoneCodeKey),o=Common.localStorageManager.getValueFromLocalStorage(Common.CustomerDemand.constants.localStorageEmailKey),i=Common.localStorageManager.getValueFromLocalStorage(Common.CustomerDemand.constants.localStorageLocationKey);t&&r.$phone.val(t),e&&r.$phoneCode.length>0&&r.$phoneCode.val(e),o&&r.$email.val(o),i!=null&&i.postCodeOrCity&&(r.location=i,r.$zipCode.val(i.postCodeOrCity))},getLocationUrl:(r,t)=>{let e="";return r&&(e=`/${[r.countryCode?o(r.countryCode):null,r.regionCode?o(r.regionCode):null,r.postCodeOrCity?o(r.postCodeOrCity):null].filter(s=>s).join("/")}`),window.location.origin+t+e;function o(i){return i.replace(/\-/g,"_").replace(/\s/g,"-").replace(/\_/g,"--")}}},slickDotsSlider:r=>{const t={parent:{selector:"[data-property=slick-dots-slider]",activeClass:"slick-dots-slider"},control:{selector:".slick-dots > li",pluginCurrentSelector:".slick-active",currentClass:"dot-current",edgeClass:"dot-edge",hiddenClass:"dot-hidden",activeClass:"dot-active",activeCount:4},timeout:250};let e=!1;const o={settings:$.extend(!0,{},t,r)};if(!o.settings.parent||!o.settings.control)return;return o.init=s,o.destroy=n,o.reload=l,o.setIndexFromParent=i,s();function i(y,E){m(A(y,E))}function s(){if(e)return o;y(),E(),I(),a(),a(!0);function y(){o.$parents=$(o.settings.parent.selector),o.$controls=o.$parents.find(o.settings.control.selector)}function E(){o.$controls.on("click",g)}function I(){$.each(o.$parents,(u,c)=>{m(A($(c)))})}return o}function n(){if(!e)return o;I(),E(),y(),a(!1);function y(){o.$parents=$(),o.$controls=$()}function E(){o.$controls.off("click",g)}function I(){T(o.$controls)}return o}function l(){return n(),s()}function a(y){e=y,d(()=>{y===!0?o.$parents.addClass(o.settings.parent.activeClass):o.$parents.removeClass(o.settings.parent.activeClass)})}function d(y){setTimeout(()=>{typeof y=="function"&&y()},o.settings.timeout)}function g(y){y.preventDefault(),C($(this))}function C(y){const E=b(y),I=p(E),u=new f(E,I,y);m(u)}function A(y,E){const I=p(y),u=typeof E=="undefined"?I.filter(o.settings.control.pluginCurrentSelector):I.filter((c,h)=>c===E);return new f(y,I,u,E)}function p(y){return y.find(o.settings.control.selector)}function b(y){return y.closest(o.settings.parent.selector)}function m(y){y.currentIndex=P(y);const E=S(y),I=y.$controls.filter((_,B)=>_>=E.begin&&_<=E.end),u=y.$controls.filter((_,B)=>_===E.begin||_===E.end),c=y.$controls.not(u),h=y.$controls.not(I);y.$controls.not(y.$current).removeClass(o.settings.control.currentClass),y.$current.addClass(o.settings.control.currentClass),d(()=>{u.addClass(o.settings.control.edgeClass),c.removeClass(o.settings.control.edgeClass),I.removeClass(o.settings.control.hiddenClass).addClass(o.settings.control.activeClass),h.removeClass(o.settings.control.activeClass).addClass(o.settings.control.hiddenClass)})}function T(y){y.removeClass(o.settings.control.currentClass).removeClass(o.settings.control.activeClass).removeClass(o.settings.control.hiddenClass)}function P(y){if(typeof y.currentIndex!="undefined")return y.currentIndex;let E;return $.each(y.$controls,(u,c)=>{typeof E=="undefined"&&(E=I(u,$(c)))}),E;
411function I(u,c){if(c.is(y.$current))return u}}function S(y){const E=y.$controls.length,I=0,u=E-1,c=y.currentIndex,h=o.settings.control.activeCount;if(h>E)return new v(I,u,c);if(c<=1)return new v(I,I+h-1,c);if(u-c<=1)return new v(u-h+1,u,c);let x=c-1;x<I&&(x=I);let _=x+h-1;return _>u&&(_=u,x=_-h+1),new v(x,_,c)}function f(y,E,I,u){this.$controls=E,this.$current=I,this.currentIndex=u}function v(y,E,I){this.current=I,this.begin=y,this.end=E}},initPhoneMask:()=>{const r=$("input[data-val-string-regex-format-regexp]");$.each(r,(t,e)=>{const o=$(e),i=o.attr("data-val-string-regex-format-regexp");try{new RegExp(i)}catch(s){return}Inputmask({regex:i}).mask(o)})},initExpirationDateInput:r=>{if(!r)return;const t=$(r),e=/^\d{1,2}\/\d{2}(\d{2})?$/;t.attr("data-rule-pattern","^(0[1-9]|1[0-2])/?([0-9]{4}|[0-9]{2})$"),t.attr("data-msg-pattern","Please enter a valid date (MM/YY)"),t.on("keypress",o=>{const i=String.fromCharCode(o.which),s=$(o.currentTarget),n=s.val()||"";if(/\d/.test(i))return i==="0"&&n==="0"?(o.preventDefault(),!1):!0;if(i==="/"){const l=n.replace(/\D/g,"");if(l.length===1&&l!=="0"&&!n.includes("/"))return s.val("0"+l+"/"),o.preventDefault(),!1;if(n==="0")return o.preventDefault(),!1;if(!n.includes("/"))return l.length===4?s[0].selectionStart===2?!0:(o.preventDefault(),!1):!0}return o.preventDefault(),!1}),t.on("input",o=>{const i=$(o.currentTarget);let s=i.val()||"";const n=o.originalEvent&&o.originalEvent.inputType||"";if(/^delete/.test(n))return;const l=i[0].selectionStart,a=s.length,d=n==="insertReplacementText"||n==="insertFromPaste"||!n;if(d){if(!e.test(s)){i.val("");return}const b=s.match(/^(\d{1,2})\/(\d{2,4})$/);if(b){let m=b[1],T=b[2];const P=parseInt(m,10);if(isNaN(P)||P<1||P>12){i.val("");return}let S=m.padStart(2,"0");T.length===4&&(T=T.slice(2,4)),i.val(S+"/"+T);return}}s=s.replace(/[^\d/]/g,"");const g=l===a,C=s.split("/");let A=C[0],p=C[1]!==void 0?C[1].replace(/\D/g,""):null;if(A.length===2&&!s.includes("/")){const b=parseInt(A,10);if(b<1||b>12){const m=A.slice(1,2);A="0"+A.slice(0,1),p=m+(p||"")}}if(p===null&&A.length>2?(p=A.slice(2),A=A.slice(0,2)):A.length>2&&(A=A.slice(0,2)),p!==null?(p.length===4?p=p.slice(2,4):p=p.slice(0,2),i.val(A+"/"+p)):A.length===2&&g?i.val(A+"/"):i.val(A),!d){const m=i.val().length-a;i[0].setSelectionRange(l+m,l+m)}}),t.on("blur",o=>{const i=$(o.currentTarget);let s=i.val()||"";if(!s)return;if(!s.includes("/")&&s.length===4){const d=s.slice(0,2),g=s.slice(2,4);i.val(d+"/"+g);return}const n=s.split("/");let l=n[0].replace(/\D/g,""),a=n[1]!==void 0?n[1].replace(/\D/g,""):"";l.length===1&&l!=="0"&&(l="0"+l,n[1]!==void 0?i.val(l+"/"+a):i.val(l+"/"))})},iframeScrollToView:r=>{t(r);function t(e){const o={target:{selector:"[data-trigger=iframe-scroll-to-view] iframe"}},i=$(window);let s={isLoaded:!1,settings:$.extend(!0,{},o,e),init:n,reload:a,destroy:l};if(!s.settings||!s.settings.target)return;return n();function n(){return s.isLoaded||(A(),p(),s.isLoaded=!0),s;function A(){s.$target=$(s.settings.target.selector),s.$fixedHeader=$("[data-property=fixed-header]"),s.fixedHeaderHeight=0}function p(){i.on("load",d),s.$fixedHeader.on("syvo_fixedHeader:onCalculate",C)}}function l(){return s.isLoaded&&(p(),A(),s.isLoaded=!1),s;function A(){s.$target=$()}function p(){s.$target.off("load reload",g),i.off("load",d),s.$fixedHeader.off("syvo_fixedHeader:onCalculate",C)}}function a(A){return l(),t(A)}function d(){s.$target.on("load reload",g)}function g(A){p($(A.currentTarget));function p(b){$("html, body").animate({scrollTop:b.offset().top-s.fixedHeaderHeight},"slow")}}function C(A,p,b){s.fixedHeaderHeight=b}}},validateCaptcha:()=>new Promise((r,t)=>{if(typeof grecaptcha!="undefined"&&window.recaptchaV3Key)grecaptcha.ready(()=>{grecaptcha.execute(window.recaptchaV3Key,{action:"submit"}).then(e=>r(e))});else return r(null)}),decodeHtml:r=>{const t=document.createElement("textarea");t.innerHTML=r;const e=t.value;return t.remove(),e},fixCollapsePanelScroll:()=>{const r={target:{panelHeadersSelector:"[data-toggle='collapse']"}},t=$(window);let e={isLoaded:!1,settings:$.extend(!0,{},r),init:o,reload:s,destroy:i};if(!e.settings||!e.settings.target)return;return o();function o(){return e.isLoaded||(d(),g(),e.isLoaded=!0),e;function d(){e.fixedHeaderHeight=0,e.$panelHeaders=$(".main-content "+e.settings.target.panelHeadersSelector),e.$collapsePanels=e.$panelHeaders.map((C,A)=>{const p=$(A),b=$(p.attr("data-target"));if(b.length>0)return b;const m=$(p.attr("href"));if(m.length>0)return m})}function g(){t.on("syvo_fixedHeader:onCalculate",n),e.$collapsePanels.each((C,A)=>{$(A).on("shown.bs.collapse",a)})}}function i(){return e.isLoaded&&(g(),d(),e.isLoaded=!1),e;function d(){e.fixedHeaderHeight=0,e.$panelHeaders=$(),e.$collapsePanels=$()}function g(){t.off("syvo_fixedHeader:onCalculate",n),e.$collapsePanels.each((C,A)=>{$(A).off("shown.bs.collapse",a)})}}function s(){i(),o()}function n(d,g,C){e.fixedHeaderHeight=C}function l(d){const g=d.offset().top,C=g+d.outerHeight(),A=t.scrollTop()+e.fixedHeaderHeight,p=$.getCurrentViewport().height+t.scrollTop();return C>A&&g<p}function a(d){const g=$(d.currentTarget);l(g.parent().find(e.settings.target.panelHeadersSelector))||$("html, body").animate({scrollTop:$(d.currentTarget).parent().offset().top-e.fixedHeaderHeight},{duration:500})}},initTextAreaAutoHeight:r=>{const t={selector:"[data-textarea-autoheight]"},e=$.extend(!0,{},t,r);if(!e.selector)return;$(e.selector).css("overflow","hidden").on("input",i);function i(n){const l=$(n.currentTarget),a=parseFloat(l.css("border-top"))||0,d=parseFloat(l.css("border-bottom"))||0;l.css("height",n.currentTarget.scrollHeight+a+d);const g=s(l);l.css("height",g+a+d)}function s(n){const l=n.val(),a=n.parent();let d=n.clone();d.removeAttr("id").removeAttr("style").removeAttr("height").css("position","absolute").css("z-index","-1").css("opacity",0).css("visibility","hidden"),d.val(l),a.append(d);const g=d[0].scrollHeight;return d.remove(),g}},templatePagination:{constants:Object.freeze({modes:Object.freeze({INSERT:0,SHOW_HIDE:1}),settings:Object.freeze({PLUGIN_CLASS:"syvo-pagination",INITIALIZED_CLASS:"syvo-pagination--initialized",ITEM_CLASS:"syvo-pagination__item"})}),init(r){const t={selector:".gallerylooks-images > .grid",mode:Common.templatePagination.constants.modes.INSERT,ignoreImgUrls:[],pluginClass:Common.templatePagination.constants.settings.PLUGIN_CLASS,initializedClass:Common.templatePagination.constants.settings.INITIALIZED_CLASS,items:[],itemsPerPage:15,itemSelector:"",itemClass:Common.templatePagination.constants.settings.ITEM_CLASS,itemTemplate:`<div id="{6}" 412 data-image-url="{0}" 413 data-image-title="{1}" 414 data-button-link="{2}" 415 data-button-title="{3}" 416 data-article-header="{4}" 417 data-article-description="{5}"> 418 <img src="" alt="{1}" data-lazy-load data-src="{0}"/> 419 </div>`,prevArrow:'<div class="btn grid-arrow grid-arrow--prev border-color secondary-bg color-primary" role="button" aria-label="Prev Page"><i class="icon icon-syvo icon-chevron-up" aria-hidden="true"></i></div>',nextArrow:'<div class="btn grid-arrow grid-arrow--next border-color secondary-bg color-primary" role="button" aria-label="Next Page"><i class="icon icon-syvo icon-chevron-down" aria-hidden="true"></i></div>',arrowClass:"syvo-pagination__arrow",prevArrowClass:"syvo-pagination__arrow--prev",nextArrowClass:"syvo-pagination__arrow--next",additionalApplyHtmlTemplateToItem:null,callbacks:{onBeforePageChanged:()=>{},onAfterPageChanged:()=>{}}};let e=$("[data-property='fixed-header']"),o=0;const i={target:{},parent:{},breakpoint:null};let s=!1;const n={prevArrow:{},nextArrow:{}};let l={},a;return n.init=d,n.destroy=g,n.reload=C,d();function d(O){if(s)return n;const H=q(O);if(!le(H))return;return G(),Q(),X(),s=!0,n;function G(){var pe;
419l=H,n.$parent=$(l.selector),te(),n.parentCssHeight=(pe=n.$parent.css("height"))!=null?pe:"",n.$prevArrow=$(l.prevArrow),n.$nextArrow=$(l.nextArrow);const ee=l.items.length/l.itemsPerPage,ne=l.items.length%l.itemsPerPage;n.pageCount=Math.trunc(ee)+(ne>0?1:0),n.currentPage=0,n.itemTemplate=Common.decodeHtml(l.itemTemplate);const fe=se(n.currentPage);U(fe),n.$currentItems=z(),Z(),K(),F()}function Q(){n.$parent.on("click",D(n.$prevArrow),A),n.$parent.on("click",D(n.$nextArrow),p),n.$parent.on("syvo_sticky_submit:screenBottomTouchedTop",T),n.$parent.on("syvo_sticky_submit:screenBottomUnTouchedTop",P),n.$parent.on("syvo_sticky_submit:screenTopTouchedTop",S),n.$parent.on("syvo_sticky_submit:screenTopUnTouchedTop",f),n.$parent.on("syvo_sticky_submit:screenTopTouchedBottom",v),n.$parent.on("syvo_sticky_submit:screenTopUnTouchedBottom",y),n.$parent.on("syvo_sticky_submit:screenBottomTouchedBottom",E),n.$parent.on("syvo_sticky_submit:screenBottomUnTouchedBottom",I),e.on("syvo_fixedHeader:onCalculate syvo_fixedHeader:onAfterDestroy",u)}function X(){L(),R()}}function g(){if(!s)return n;return G(),O(),H(),s=!1,n;function O(){n.$parent.off("click",D(n.$prevArrow),A),n.$parent.off("click",D(n.$nextArrow),p),n.$parent.off("syvo_sticky_submit:screenBottomTouchedTop",T),n.$parent.off("syvo_sticky_submit:screenBottomUnTouchedTop",P),n.$parent.off("syvo_sticky_submit:screenTopTouchedTop",S),n.$parent.off("syvo_sticky_submit:screenTopUnTouchedTop",f),n.$parent.off("syvo_sticky_submit:screenTopTouchedBottom",v),n.$parent.off("syvo_sticky_submit:screenTopUnTouchedBottom",y),n.$parent.off("syvo_sticky_submit:screenBottomTouchedBottom",E),n.$parent.off("syvo_sticky_submit:screenBottomUnTouchedBottom",I),e.off("syvo_fixedHeader:onCalculate syvo_fixedHeader:onAfterDestroy",u)}function H(){n.itemTemplate=null,n.currentPage=0,n.pageCount=0,n.prevArrow.stickyOptions={},n.$prevArrow=$(),n.nextArrow.stickyOptions={},n.$nextArrow=$(),U([]),n.$currentItems=$(),n.parentCssHeight="",te(!1),n.$parent=$(),l={}}function G(){a=!1,h(0),L(!1,!1),Z(!1),R(!1)}}function C(){return s&&(g(),d()),n}function A(O){h(n.currentPage-1)}function p(O){h(n.currentPage+1)}function b(){l.callbacks&&typeof l.callbacks.onBeforePageChanged=="function"&&l.callbacks.onBeforePageChanged(n.$currentItems,n.currentPage,l)}function m(){l.callbacks&&typeof l.callbacks.onAfterPageChanged=="function"&&l.callbacks.onAfterPageChanged(n.$currentItems,n.currentPage,l)}function T(O,H){c(n.$prevArrow,null,null,!1),c(n.$nextArrow,null,null,!1)}function P(O,H){H.$target.is(n.$prevArrow)&&c(n.$prevArrow,null,null,!1),H.$target.is(n.$nextArrow)&&c(n.$nextArrow,j()?n.$prevArrow.outerHeight(!0):0,"auto",!1)}function S(O,H){H.$target.is(n.$prevArrow)&&(n.$parent.hasClass(n.prevArrow.stickyOptions.parent.screenBottomUnTouchedBottomClass)?c(n.$prevArrow,W()?n.$parent.height()-n.$nextArrow.outerHeight(!0)-n.$prevArrow.outerHeight(!0):n.$parent.height()-n.$prevArrow.outerHeight(!0),"auto",!1):c(n.$prevArrow,o)),H.$target.is(n.$nextArrow)&&(n.$parent.hasClass(n.nextArrow.stickyOptions.parent.screenBottomUnTouchedBottomClass)?c(n.$nextArrow,n.$parent.height()-n.$nextArrow.outerHeight(!0),"auto",!1):c(n.$nextArrow,j()?o+n.$prevArrow.outerHeight(!0):o))}function f(O,H){H.$target.is(n.$prevArrow)&&c(n.$prevArrow,null,null,!1),H.$target.is(n.$nextArrow)&&(n.$parent.hasClass(n.nextArrow.stickyOptions.parent.screenBottomTouchedBottomClass)?c(n.$nextArrow,n.$prevArrow.outerHeight(!0),"auto",!1):c(n.$nextArrow,null,null,!1))}function v(O,H){c(n.$prevArrow,null,null,!1),c(n.$nextArrow,null,null,!1)}function y(O,H){H.$target.is(n.$prevArrow)&&c(n.$prevArrow,W()?n.$parent.height()-n.$nextArrow.outerHeight(!0)-n.$prevArrow.outerHeight(!0):n.$parent.height()-n.$prevArrow.outerHeight(!0),"auto",!1),H.$target.is(n.$nextArrow)&&c(n.$nextArrow,null,null,!1)}function E(O,H){H.$target.is(n.$prevArrow)&&(n.$parent.hasClass(n.prevArrow.stickyOptions.parent.screenTopUnTouchedTopClass)?c(n.$prevArrow,null,null,!1):c(n.$prevArrow,W()?$.getCurrentViewport().height-n.$nextArrow.outerHeight(!0)-n.$prevArrow.outerHeight(!0):$.getCurrentViewport().height-n.$prevArrow.outerHeight(!0))),H.$target.is(n.$nextArrow)&&(n.$parent.hasClass(n.nextArrow.stickyOptions.parent.screenTopUnTouchedTopClass)?c(n.$nextArrow,j()?n.$prevArrow.outerHeight(!0):0,"auto",!1):c(n.$nextArrow,$.getCurrentViewport().height-n.$nextArrow.outerHeight(!0)))}function I(O,H){H.$target.is(n.$prevArrow)&&n.$parent.hasClass(n.prevArrow.stickyOptions.parent.screenTopTouchedTopClass)&&c(n.$prevArrow,W()?n.$parent.height()-n.$nextArrow.outerHeight(!0)-n.$prevArrow.outerHeight(!0):n.$parent.height()-n.$prevArrow.outerHeight(!0),null,!1),H.$target.is(n.$nextArrow)&&n.$parent.hasClass(n.nextArrow.stickyOptions.parent.screenTopTouchedTopClass)&&c(n.$nextArrow,null,null,!1)}function u(O,H,G){o=G}function c(O,H,G,Q=!0){if(n.$parent.find(O).length===0)return;const ee="";if(typeof H!="undefined"&&H!=null){const ne=Number(H);O.css("top",isNaN(ne)?H:`${ne}px`)}else O.css("top",ee);if(typeof G!="undefined"&&G!=null){const ne=Number(G);O.css("bottom",isNaN(ne)?G:`${ne}px`)}else O.css("bottom",ee);if(Q===!0){const ne=O.offset().left;O.css("transition","none"),O.css("left",`${ne}px`),O.css("position","fixed")}else O.css("position",ee),O.css("left",ee),setTimeout(()=>{O.css("transition",ee)})}function h(O){if(a)return;O<0?O=0:O>n.pageCount-1&&(O=n.pageCount-1);const H=se(O),G=M(O);b(),a=!0,x(),_().then(()=>{n.currentPage=O,B(H,G.startIndex),L(),a=!1,m(),f(new Event("click",n.$prevArrow),{$target:n.$prevArrow}),f(new Event("click",n.$nextArrow),{$target:n.$nextArrow})})}function x(){switch(l.mode){case Common.templatePagination.constants.modes.INSERT:const O=n.$parent.outerHeight(),H=n.$currentItems.find("img"),G=Array.isArray(l.ignoreImgUrls)&&l.ignoreImgUrls.length>0;$.each(H,(Q,X)=>{const ne=$(X).attr("src");G&&l.ignoreImgUrls.indexOf(ne)!==-1||(X.remove(),ne&&typeof URL.revokeObjectURL=="function"&&URL.revokeObjectURL(ne))}),n.$currentItems.remove(),n.$parent.css("height",`${O}px`);break;case Common.templatePagination.constants.modes.SHOW_HIDE:n.$currentItems.hide();break}}function _(){return new Promise((O,H)=>{const G=n.$parent.offset().top-o;$("html, body").animate({scrollTop:G},{duration:"slow",always:()=>{O()}})})}function B(O,H){if(!O||O.length===0)return;const G=j(),Q=W();switch(l.mode){case Common.templatePagination.constants.modes.INSERT:let X="";O.forEach((ne,fe)=>{X+=J(ne,fe+H)}),n.$currentItems=$(X);break;case Common.templatePagination.constants.modes.SHOW_HIDE:Z(!1);
419let ee=$();O.forEach(ne=>{ee=ee.add(ne)}),n.$currentItems=ee;break}switch(Z(),U(O),n.$parent.css("min-height",n.parentCssHeight),l.mode){case Common.templatePagination.constants.modes.INSERT:G?n.$currentItems.insertAfter(n.$prevArrow):Q?n.$currentItems.insertBefore(n.$nextArrow):n.$currentItems.appendTo(n.$parent);break;case Common.templatePagination.constants.modes.SHOW_HIDE:n.$currentItems.show();break}}function F(){const O=`.${l.pluginClass}`;n.prevArrow.stickyOptions=$.extend(!0,{},i,{target:{selector:`${l.selector} ${D(n.$prevArrow)}`,activeClass:`sticky--${l.prevArrowClass}`},parent:{selector:O,activeClass:`sticky-submit-active--${l.prevArrowClass}`,screenTopTouchedTopClass:`screen-top-touched-top--${l.prevArrowClass}`,screenTopUnTouchedTopClass:`screen-top-untouched-top--${l.prevArrowClass}`,screenTopTouchedBottomClass:`screen-top-touched-bottom--${l.prevArrowClass}`,screenTopUnTouchedBottomClass:`screen-top-untouched-bottom--${l.prevArrowClass}`,screenBottomTouchedTopClass:`screen-bottom-touched-top--${l.prevArrowClass}`,screenBottomUnTouchedTopClass:`screen-bottom-untouched-top--${l.prevArrowClass}`,screenBottomTouchedBottomClass:`screen-bottom--touched-bottom--${l.prevArrowClass}`,screenBottomUnTouchedBottomClass:`screen-bottom--untouched-bottom--${l.prevArrowClass}`}}),n.nextArrow.stickyOptions=$.extend(!0,{},i,{target:{selector:`${l.selector} ${D(n.$nextArrow)}`,activeClass:`sticky--${l.nextArrowClass}`},parent:{selector:O,activeClass:`sticky-submit-active--${l.nextArrowClass}`,screenTopTouchedTopClass:`screen-top-touched-top--${l.nextArrowClass}`,screenTopUnTouchedTopClass:`screen-top-untouched-top--${l.nextArrowClass}`,screenTopTouchedBottomClass:`screen-top-touched-bottom--${l.nextArrowClass}`,screenTopUnTouchedBottomClass:`screen-top-untouched-bottom--${l.nextArrowClass}`,screenBottomTouchedTopClass:`screen-bottom-touched-top--${l.nextArrowClass}`,screenBottomUnTouchedTopClass:`screen-bottom-untouched-top--${l.nextArrowClass}`,screenBottomTouchedBottomClass:`screen-bottom--touched-bottom--${l.nextArrowClass}`,screenBottomUnTouchedBottomClass:`screen-bottom--untouched-bottom--${l.nextArrowClass}`}})}function L(O=!0,H=!0){const G=j(),Q=W();G?(!O||n.currentPage===0)&&(n.prevArrow.stickySubmit&&typeof n.prevArrow.stickySubmit.destroy=="function"&&n.prevArrow.stickySubmit.destroy(),n.$prevArrow.remove()):O&&n.currentPage>0&&(n.$parent.prepend(n.$prevArrow),n.prevArrow.stickySubmit&&typeof n.prevArrow.stickySubmit.init=="function"?n.prevArrow.stickySubmit.init(n.prevArrow.stickyOptions):n.prevArrow.stickySubmit=Common.initStickySubmit(n.prevArrow.stickyOptions)),Q?(!H||n.currentPage===n.pageCount-1)&&(n.nextArrow.stickySubmit&&typeof n.nextArrow.stickySubmit.destroy=="function"&&n.nextArrow.stickySubmit.destroy(),n.$nextArrow.remove()):H&&n.currentPage<n.pageCount&&(n.$parent.append(n.$nextArrow),n.nextArrow.stickySubmit&&typeof n.nextArrow.stickySubmit.init=="function"?n.nextArrow.stickySubmit.init(n.nextArrow.stickyOptions):n.nextArrow.stickySubmit=Common.initStickySubmit(n.nextArrow.stickyOptions))}function D(O){let H=[];return $.each(O,(G,Q)=>{let X="";Q.tagName&&(X+=Q.tagName.toLowerCase()),Q.id&&(X+=`#${Q.id}`),Q.classList.length>0&&(X+=`.${Q.classList.value.replaceAll(" ",".")}`),X&&X.length>0&&H.push(X)}),H.length>0?H.join(","):""}function te(O=!0){!n.$parent||n.$parent.length===0||(O===!0?n.$parent.addClass(l.pluginClass):n.$parent.removeClass(l.pluginClass))}function R(O=!0){!n.$parent||n.$parent.length===0||(O===!0?n.$parent.addClass(l.initializedClass):n.$parent.removeClass(l.initializedClass))}function Z(O=!0){!n.$currentItems||n.$currentItems.length===0||(O===!0?n.$currentItems.addClass(l.itemClass):n.$currentItems.removeClass(l.itemClass))}function K(O=!0){(n.$prevArrow||n.$prevArrow.length>0)&&(O===!0?n.$prevArrow.addClass(l.arrowClass).addClass(l.prevArrowClass):n.$prevArrow.removeClass(l.arrowClass).removeClass(l.prevArrowClass)),(n.$nextArrow||n.$nextArrow.length>0)&&(O===!0?n.$nextArrow.addClass(l.arrowClass).addClass(l.nextArrowClass):n.$nextArrow.removeClass(l.arrowClass).addClass(l.nextArrowClass))}function M(O){let H=O*l.itemsPerPage,G=H+l.itemsPerPage-1;return G>l.items.length&&(G=l.items.length-1),{startIndex:H,endIndex:G}}function j(){return n.$parent.find(n.$prevArrow).length>0}function W(){return n.$parent.find(n.$nextArrow).length>0}function se(O){const H=M(O);return l.items.filter((Q,X)=>X>=H.startIndex&&X<=H.endIndex)}function z(){switch(l.mode){case Common.templatePagination.constants.modes.INSERT:return l.itemSelector?n.$parent.find(l.itemSelector):n.$parent.children();case Common.templatePagination.constants.modes.SHOW_HIDE:return l.itemSelector?n.$parent.find(`${l.itemSelector}:visible`):n.$parent.children(":visible")}}function U(O){n.currentItems=n.currentItems||[],n.currentItems.length=0,$.extend(!0,n.currentItems,O)}function J(O,H){var X,ee,ne,fe,pe,$e,oe,re,he,de,ce,ue;let Q=Common.stringFormat(n.itemTemplate,(ee=(X=O.image)==null?void 0:X.url)!=null?ee:"",(fe=(ne=O.image)==null?void 0:ne.title)!=null?fe:"",($e=(pe=O.button)==null?void 0:pe.link)!=null?$e:"",(re=(oe=O.button)==null?void 0:oe.title)!=null?re:"",(de=(he=O.article)==null?void 0:he.header)!=null?de:"",(ue=(ce=O.article)==null?void 0:ce.description)!=null?ue:"",H!=null?H:"0");return typeof l.additionalApplyHtmlTemplateToItem=="function"&&(Q=l.additionalApplyHtmlTemplateToItem(Q,O,H)),Q}function q(O){return $.extend(!0,{},t,r||{},O||{})}function le(O){return!!O.selector}}}
419,templateVideos:{init(r){const t={selector:"[data-video-type=template-table-video]"};let e=!1;const o={},i={videos:[]};let s={};return o.init=n,o.destroy=l,o.reload=a,n();function n(p){if(e)return o;const b=d(p);if(!g(b))return;return m(),T(),e=!0,o;function m(){s=b,i.$videos=$(s.selector)}function T(){$.each(i.$videos,(P,S)=>{C(S,P)})}}function l(){if(!e)return o;return p(),b(),e=!1,o;function p(){i.videos.forEach(m=>A(m))}function b(){i.$videos=null,i.videos.length=0}}function a(){return e&&(l(),n()),o}function d(p){return $.extend(!0,{},t,r||{},p||{})}function g(p){return!!p.selector}function C(p,b){const m=$(p),T=m.attr("data-video-url");if(!T)return;const P=m.attr("data-template-table-video");if(!P)return;const S=JSON.parse(P.replace(/'/g,'"'));if(!S)return;const f={src:T};let v={source:f,techOrder:["html5"],sources:[f],controls:!0,controlBar:!1,class:"vjs-styles-defaults",autoplay:S.autoplay===!0&&S.muted===!0,loop:S.loop===!0,muted:S.muted===!0,poster:S.placeholderUrl};if(T.indexOf("youtube")>=0||T.indexOf("youtu.be")>=0?(v.techOrder=["youtube"],v.source.type="video/youtube",v.sources=[v.source],v.youtube={iv_load_policy:3},v.iv_load_policy=3,v.preload="auto",v.language="en",v.aspectRatio="16:9",v.fluid=!0,v.controls=!0):T.indexOf("vimeo")>=0&&(v.techOrder=["vimeo"],v.source.type="video/vimeo",v.sources=[v.source],v.preload="auto",v.language="en",v.aspectRatio="16:9",v.fluid=!0,v.controls=!0),S.videoWidth&&S.videoHeight){const I=parseInt(S.videoWidth),u=parseInt(S.videoHeight);!isNaN(I)&&!isNaN(u)&&I>0&&u>0&&(v.aspectRatio=`${I}:${u}`,v.fluid=!0)}m.attr("id",S.id),m.attr("aria-label",S.videoTitle),m.attr("webkit-playsinline",!0),m.attr("playsinline",!0),m.attr("allow","autoplay; fullscreen"),m.addClass("template-table-video video-js"),S.muteBtn?v.controlBar=!0:m.addClass("no-mute-btn"),S.fullscreenBtn?v.controlBar=!0:m.addClass("no-fulls-screen-btn"),S.playBtn?v.controlBar=!0:m.addClass("no-play-btn");const y=videojs(p,v,E);function E(){v.autoplay&&(v.muted?(y.volume(0),setTimeout(()=>{y.play()},500)):y.pause()),i.videos.push(y)}}function A(p){p.dispose()}}},lazyMasonry:{init(r){const t={selector:".gallerylooks-images > .grid",plugin:{itemSelector:".grid-item",percentPosition:!0}},e=$(window),o={grid:{}};let i={},s=!1;return o.init=n,o.destroy=l,o.reload=a,n();function n(p){if(s)return o;const b=C(p);if(!A(b))return;return m(),T(),P(),s=!0,o;function m(){i=b,o.$grid=$(i.selector)}function T(){e.on("load",d)}function P(){document.readyState==="complete"&&g()}}function l(){if(!s)return o;return m(),p(),b(),s=!1,o;function p(){e.off("load",d)}function b(){i={},o.$grid=$(),o.grid={}}function m(){clearTimeout(o.grid.layoutFuncTimeout),o.lazyLoading.destroy(),o.$grid.masonry("destroy"),o.$grid.removeData("masonry")}}function a(){return s&&(l(),n()),o}function d(p){g()}function g(){o.lazyLoading=Common.lazyLoading.load({selector:`${i.selector} ${Common.lazyLoading.constants.SELECTOR}`,callbacks:{onAfterLoad:()=>{typeof o.$grid.masonry=="function"&&(clearTimeout(o.grid.layoutFuncTimeout),o.grid.layoutFuncTimeout=setTimeout(()=>{o.$grid.masonry("layout")},1e3))}}}),o.$grid.masonry(i.plugin)}function C(p){return $.extend(!0,{},t,r||{},p||{})}function A(p){return!!p.selector&&!!p.plugin}}},attribution:{storageKey:"syvo_campaign_attribution",utmParams:["utm_source","utm_medium","utm_campaign","utm_term","utm_content"],genericTtlDays:90,googleClickIdCookie:"click_id",googleClickIdTypeCookie:"click_id_type",vendors:[{key:"google",params:["gclid","wbraid","gbraid","gclsrc"],ttlDays:90},{key:"facebook",params:["fbclid"],ttlDays:7},{key:"tiktok",params:["ttclid"],ttlDays:7},{key:"microsoft",params:["msclkid"],ttlDays:90},{key:"pinterest",params:["epik"],ttlDays:30},{key:"snapchat",params:["ScCid"],ttlDays:30}],readBuckets(){let r;try{const o=JSON.parse(localStorage.getItem(Common.attribution.storageKey));r=o&&o.buckets?o.buckets:{}}catch(o){return{}}const t={};let e=!1;if(Object.keys(r).forEach(o=>{Common.attribution.bucketValid(o,r[o])?t[o]=r[o]:e=!0}),e)try{localStorage.setItem(Common.attribution.storageKey,JSON.stringify({buckets:t}))}catch(o){}return t},bucketValid(r,t){const e=t?new Date(t.capturedAt||"").getTime():0;if(!e)return!1;const o=Common.attribution.vendors.find(s=>s.key===r),i=o?o.ttlDays:Common.attribution.genericTtlDays;return Date.now()-e<=i*24*60*60*1e3}
419,capture(){const r=new URLSearchParams(window.location.search),t=new Date().toISOString(),e=document.referrer||void 0,o=window.location.href,i=Common.attribution.readBuckets(),s={};let n=!1;Common.attribution.utmParams.forEach(a=>{const d=r.get(a);d&&(s[a]=d,n=!0)});let l=!1;Common.attribution.vendors.forEach(a=>{const d={};let g=!1;a.params.forEach(C=>{const A=r.get(C);d[C]=A||null,A&&(g=!0)}),g&&(i[a.key]=Object.assign({capturedAt:t,referrer:e,landingPage:o},s,d),l=!0,a.key==="google"&&Common.attribution.saveGoogleClickId(a,d))}),l||(n?i.generic=Object.assign({capturedAt:t,referrer:e,landingPage:o},s):i.generic||(i.generic={capturedAt:t,referrer:e,landingPage:o}));try{localStorage.setItem(Common.attribution.storageKey,JSON.stringify({buckets:i}))}catch(a){}},saveGoogleClickId(r,t){const e=a=>{const d=r.params.indexOf(a);return d<0?0:r.params.length-d},o=r.params.map(a=>({id:t[a],type:a})).find(a=>a.id);if(!o)return;const i=$.cookie(Common.attribution.googleClickIdCookie),s=$.cookie(Common.attribution.googleClickIdTypeCookie),n=i&&s?{id:i,type:s}:null;if(n&&o.type!==n.type&&e(o.type)<=e(n.type))return;const l={expires:r.ttlDays,path:Common.getBaseHref()};$.cookie(Common.attribution.googleClickIdCookie,o.id,l),$.cookie(Common.attribution.googleClickIdTypeCookie,o.type,l)},getGoogleAdsClickId(){return $.cookie(Common.attribution.googleClickIdCookie)||null},getGoogleAdsClickIdType(){return $.cookie(Common.attribution.googleClickIdTypeCookie)||null},getForTracking(){const r=Common.attribution.readBuckets(),t={};Common.attribution.vendors.forEach(i=>{const s=r[i.key];s&&i.params.forEach(n=>{t[n]=s[n]||null})});const e=o();return e&&(Common.attribution.utmParams.forEach(i=>{t[i]=e[i]||null}),t.referrer=e.referrer||null,t.landingPage=e.landingPage||null,t.capturedAt=e.capturedAt||null),t;function o(){return Common.attribution.vendors.map(s=>r[s.key]).filter(Boolean).sort((s,n)=>Date.parse(s.capturedAt)-Date.parse(n.capturedAt))[0]||r.generic||null}}},bridalLiveTracking:{build(){const r=Common.attribution.getForTracking()||{},t=v=>r[v]||S(v)||null,e={utmSource:t("utm_source"),utmMedium:t("utm_medium"),utmCampaign:t("utm_campaign"),utmTerm:t("utm_term"),utmContent:t("utm_content"),referrer:r.referrer||document.referrer||null,landingPage:r.landingPage||window.location.href,capturedAt:r.capturedAt||new Date().toISOString()};let o=null;const i=t("gclid"),s=t("wbraid"),n=t("gbraid"),l=t("gclsrc");(i||s||n)&&(o="google_ads");const a=t("fbclid"),d=$.cookie("_fbc")||null,g=$.cookie("_fbp")||null;!o&&(a||d)&&(o="facebook_ads");const C=t("ttclid");!o&&C&&(o="tiktok");const A=t("msclkid"),p=t("epik")||$.cookie("_epik")||null,b=t("ScCid")||$.cookie("_scid")||null;return e.source=o||P(e,e.referrer,p,b),e.gclid=i,e.wbraid=s,e.gbraid=n,e.gclsrc=l,e.fbclid=a,e.fbc=d,e.fbp=g,e.ttclid=C,e.msclkid=A,e.ga4ClientId=m(),e.sessionId=T(),f(e);function m(){const v=/^GA\d\.\d\.(\d+\.\d+)$/.exec($.cookie("_ga")||"");return v?v[1]:null}function T(){const v=document.cookie?document.cookie.split(";"):[];for(let y=0;y<v.length;y++){const E=v[y].indexOf("=");if(E===-1)continue;const I=v[y].slice(0,E).trim();if(!/^_ga_[A-Z0-9]{10}$/i.test(I))continue;const u=decodeURIComponent(v[y].slice(E+1).trim()),c=/^GS\d\.\d\.s(\d+)/.exec(u);if(c)return c[1]}return null}function P(v,y,E,I){const u=(v.utmMedium||"").toLowerCase();if(u==="organic")return"organic";if(u==="cpc"||u==="ppc"||u.startsWith("paid")){const c=(v.utmSource||"").toLowerCase();return/google|adwords/.test(c)?"other":/facebook|instagram|meta/.test(c)?"facebook_ads":/tiktok/.test(c)?"tiktok":"other"}
419return E||I?"other":y?/google\.|bing\.|yahoo\.|duckduckgo\./i.test(y)?"organic":"other":"direct"}function S(v){try{return sessionStorage.getItem(v)||null}catch(y){return null}}function f(v){return Object.keys(v).forEach(y=>{(v[y]===void 0||v[y]===null||v[y]==="")&&delete v[y]}),v}}},initRelatedImages:r=>{const t={resizeRatio:.8,containerSelector:".product-image, .overview[data-lazy-background]",containerDataAttr:"data-related-image",applyClass:"related-image"},e={isInited:!1,images:[]},o=[],i=$(window);return e.init=s,e.destroy=l,e.reload=n,s(r);function s(c){if(e.isInited)return e;const h=a(c);if(!d(h))return e;return x(),_(),B(),e.isInited=!0,e;function x(){e.settings=h,e.$containers=$(e.settings.containerSelector),e.$modals=$(".modal"),e.$bsDropdowns=$(".dropdown"),e.$bsCollapses=$(".collapse, .navbar-collapse")}function _(){i.on(Common.MagicZoom.eventNames.ZOOM_READY,p),i.on(Common.lazyLoading.eventNames.onFinishedAll,b),e.$bsDropdowns.on("shown.bs.dropdown",C),e.$bsCollapses.on("shown.bs.collapse",A),$.modal&&e.$modals.on($.modal.OPEN,g)}function B(){T()}}function n(c){l(),s(c)}function l(){if(!e.isInited)return;x(),h(),c(),e.isInited=!1;function c(){e.settings={},e.$containers=$(),e.$bsDropdowns=$(),e.$bsCollapses=$(),o.length=0}function h(){i.off(Common.MagicZoom.ZOOM_READY,p),i.off(window.Syvo.Lazy_Load.eventNames.onFinishedAllLazyLoad,b),e.$bsDropdowns.off("shown.bs.dropdown",C),e.$bsCollapses.off("shown.bs.collapse",A),$.modal&&e.$modals.off($.modal.OPEN,g)}function x(){P()}}function a(c){return $.extend(!0,{},t,r||{},c||{})}function d(c){return c.resizeRatio<=1&&c.resizeRatio>=0&&!!c.containerSelector&&!!c.containerDataAttr&&!!c.applyClass}function g(c){const h=$(c.currentTarget);f(h.find(e.settings.containerSelector))}function C(c){const h=$(c.currentTarget);f(h.find(e.settings.containerSelector))}function A(c){const h=$(c.currentTarget);f(h.find(e.settings.containerSelector))}function p(c,h){h.$el instanceof jQuery&&f(h.$el.closest(e.settings.containerSelector))}function b(){o.forEach(c=>{c.is(":visible")&&u(c,!0)})}function m(c){u($(c.currentTarget))}function T(){f(e.$containers)}function P(){e.images.forEach(c=>{c.$container.removeClass(e.settings.applyClass),c.$img.off("load",m)}),e.images.length=0}function S(c){return!(c.length===0||!(c.attr(e.settings.containerDataAttr)!=="false"))}function f(c){c.length!==0&&$.each(e.$containers,(h,x)=>{const _=$(x);v(_)})}function v(c){if(S(c))if(c.is("img")){let h=y(c,c);h.$img[0].complete&&u(h.$img)}else{let h=c.children("img");if(h.length===0&&(h=c.find("img")),h.length===0)return;h.each((x,_)=>{const B=$(_);let F=y(B,c);_.complete&&u(F.$img)})}}function y(c,h){let x=I(c);return x||(x=E(c,h)),x}function E(c,h){const x={$img:c,$container:h,isLoaded:!1};return e.images.push(x),x.$img.on("load",m),x}function I(c){return e.images.find(h=>h.$img.is(c))}function u(c,h){if(!(c instanceof jQuery)||c.length===0)return;const x=c[0].naturalWidth,_=c[0].naturalHeight,B=I(c);if(!B||B.isLoaded)return;let F=x*B.$container.outerHeight()/(_*B.$container.outerWidth());const L=!isNaN(F);if(!L&&h!==!0?o.push(B.$img):(L?(F>1&&(F=1/F),F>=e.settings.resizeRatio?B.$container.removeClass(e.settings.applyClass):B.$container.addClass(e.settings.applyClass)):h&&B.$container.addClass(e.settings.applyClass),B.isLoaded=!0),h){const D=o.findIndex(te=>te.is(c));D!==-1&&o.splice(D,1),B.isLoaded=!0}}}},CommonMonCherry={findInStore:(r,t)=>{r.on("syvo_sticky_submit:activated",function(i){e($(this),"-1%")}),r.on("syvo_sticky_submit:screenTopTouchedTop",function(i){const s=$(this);e($(this),0)}),r.on("syvo_sticky_submit:screenTopUnTouchedTop",function(i){o($(this))}),$(window).resize(()=>{r.hasClass("top-touched")?e(r):o(r)});function e(i,s){const n=i.find("[data-property='sticky-submit']");typeof s=="undefined"?n.css("transform",""):n.css("transform",`translateY(${s})`),i.css("padding-bottom",n.height()+"px"),n.css("top",t.height()+"px")}function o(i){const s=i.find("[data-property='sticky-submit']");s.css("transform",""),i.css("padding-bottom",""),s.css("top","")}},overViewVideosInImageSliderOnMobile:()=>{const r="[data-list='preview-videos']",t="[data-list='overview-videos']",e=$(r),o=$(t);if(o.length===0&&e.length===0)return;const i="[data-list='previews']",s="[data-list='overviews']",n=$(i),l=$(s);if(l.length===0&&n.length===0)return;const a={previewsSlider:{selector:i,_$el:n},overviewsSlider:{selector:s,_$el:l},previewVideosSlider:{selector:r,_$el:e},overviewVideosSlider:{selector:t,_$el:o}
419,initCount:0};$(window).on("Video:onBeforeLoad",()=>{d()}),$(window).on("Video:onAfterLoad",()=>{g()}),$(window).on("Product_Views:onBeforeLoad",()=>{C()}),$(window).on("Product_Views:onAfterLoad",()=>{p()});function d(){A(),a.overviewVideosSlider.$listItems=b(a.overviewVideosSlider._$el.html()),a.overviewsSlider.$listItems=b(a.overviewsSlider._$el.html()),a.previewVideosSlider.$listItems=b(a.previewVideosSlider._$el.html()),a.previewsSlider.$listItems=b(a.previewsSlider._$el.html());function b(m){const T=$(m).find("[id]");let P=0;const S=T.length;for(;P<S;P++){const f=$(T[P]).attr("id");m=m.replace(f,f+"cloned")}return $(m).filter(function(){return this.nodeType!==3})}}function g(){a.videoModel=window.Syvo.Video,a.overviewVideosSlider.$players=a.overviewVideosSlider.$listItems.find("[data-video-type='video-js']");let b=0;const m=a.overviewVideosSlider.$players.length;for(;b<m;b++){const T=a.videoModel.initVideoJsSingleItem(a.overviewVideosSlider.$players[b]);T&&a.videoModel.playerItems.push(T)}a.videoModel.handleCarouselVideos()}function C(){A()}function A(){const b=".list-item";a.previewsSlider.$slides=a.previewsSlider._$el.children(b),a.overviewsSlider.$slides=a.overviewsSlider._$el.children(b),a.previewVideosSlider.$slides=a.previewVideosSlider._$el.children(b),a.overviewVideosSlider.$slides=a.overviewVideosSlider._$el.children(b)}function p(){const b=$(a.previewsSlider.selector+","+a.overviewsSlider.selector);let m=null;T(),Common.checkBreakPoint(992,$.getCurrentViewport().width>=992?991:993,()=>{S()},()=>{f()});function T(){a.productViewsModel=window.Syvo.Product_Views}function P(){u(a.overviewsSlider._$el)&&(a.overviewsSlider.slick=a.overviewsSlider._$el.slick("getSlick")),u(a.previewsSlider._$el)&&(a.previewsSlider.slick=a.previewsSlider._$el.slick("getSlick"))}function S(){u(a.previewsSlider._$el)||u(a.overviewsSlider._$el)?c():b.on("init reinit",()=>{a.initCount++,a.initCount===2&&c()});function c(){clearTimeout(m),m=setTimeout(()=>{P(),v()},100),a.initCount=0}}function f(){u(a.overviewsSlider._$el)||u(a.overviewsSlider._$el)?c():b.on("init reinit",()=>{c()});function c(){clearTimeout(m),m=setTimeout(()=>{P(),y()},100)}}function v(){if(!a.overviewsSlider.added&&!a.previewsSlider.added)return;E();let c,h;if(u(a.overviewsSlider._$el)?c=a.overviewsSlider.slick.$slides.length-a.overviewsSlider.$listItems.length:c=a.overviewVideosSlider.$listItems.length,u(a.previewsSlider._$el)?h=a.previewsSlider.slick.$slides.length-a.previewsSlider.$listItems.length:h=a.previewVideosSlider.$listItems.length,c>0||h>0){if(u(a.overviewsSlider._$el)){if(c>0)for(let x=1;x<=c;x++)a.overviewsSlider._$el.slick("slickRemove",a.overviewsSlider.slick.$slides.length-x);a.overviewsSlider.added=!1}if(u(a.previewsSlider._$el)){if(h>0)for(let x=1;x<=h;x++)a.previewsSlider._$el.slick("slickRemove",a.previewsSlider.slick.$slides.length-x);a.previewsSlider.added=!1}I()}}function y(){if(a.overviewsSlider.added&&a.previewsSlider.added)return;E();const c=a.overviewVideosSlider.$listItems.length>0&&u(a.overviewsSlider._$el)&&a.overviewsSlider.slick.$slides.length===a.overviewsSlider.$listItems.length,h=a.previewVideosSlider.$slides.length>0&&u(a.previewsSlider._$el)&&a.previewsSlider.slick.$slides.length===a.previewsSlider.$listItems.length;if(c||h){if(c){for(let x=0;x<a.overviewVideosSlider.$slides.length;x++)a.overviewsSlider._$el.slick("slickAdd",a.overviewVideosSlider.$listItems[x]);a.overviewsSlider.added=c}if(h){for(let x=0;x<a.previewVideosSlider.$slides.length;x++)a.previewsSlider._$el.slick("slickAdd",a.previewVideosSlider.$listItems[x]);a.previewsSlider.added=h}}}function E(){!a.overviewVideosSlider.$listItems||a.overviewVideosSlider.$listItems.length===0||(a.overviewVideosSlider.$players=a.overviewVideosSlider.$listItems.find("[data-video-type='video-js']"),a.overviewVideosSlider.$players.length!==0&&(a.overviewVideosSlider.$players.css("padding-bottom",a.overviewsSlider._$el.height()/a.overviewsSlider._$el.width()*100+"%"),typeof a.videoModel.pauseAll=="function"&&a.videoModel.pauseAll()))}function I(){clearTimeout(a.reinitSlickTimeout),a.reinitSlickTimeout=setTimeout(()=>{a.overviewsSlider._$el.slick("unslick"),a.overviewsSlider._$el.html(a.overviewsSlider.$slides);const c=a.overviewsSlider._$el.height();a.productViewsModel.settings.overviews&&a.overviewsSlider._$el.slick(a.productViewsModel.settings.overviews),a.previewsSlider._$el.slick("unslick"),a.previewsSlider._$el.html(a.previewsSlider.$slides);const h=a.previewsSlider._$el.height();a.productViewsModel.settings.previews&&a.previewsSlider._$el.slick(a.productViewsModel.settings.previews),P(),a.overviewsSlider.slick.$list.css("height",c),a.previewsSlider.slick.$list.css("height",h)},500)}function u(c){return!c||c.length===null?!1:c.hasClass("slick-initialized")}}},initFixedHeaderMdAndMore:()=>{const r=$("body").hasClass("page-plp");let t;Common.checkBreakPoint(992,$.getCurrentViewport().width>992?991:993,e,o);function e(){i()}function o(){s()}function i(){if(t&&typeof t.init=="function"){t.init();return}t=$.fixedHeader()}function s(){if(r){if(t&&typeof t.destroy=="function"){t.destroy();return}}else i()}}},jQuery(r=>{Common.nativeLoadingLazy.load(),CommonHelpers.webpImagesHelper.reviseS3ImagesForWebpSupport(),Common.pickHiddenVars(),Common.initIntelligentNavbar(),Common.initCheckboxDropdowns(),Common.initTransferReceivers(),Common.initTransferSenders(),Common.initTelephoneMask(),Common.initCarouselSwipeFix(),Common.initCloseButton(),Common.initInputToggle(),Common.initStickySubmit(),Common.initADANavbar(),Common.Slick.init(),Common.MagicZoom.init(),Common.VideoJs.init(),Common.saveQueryStringValues(),Common.initScrollToButton(),Common.initBridalLiveIFrame(),Common.initPhoneMask(),Common.loadInstagramEmbedScript(),Common.initTextAreaAutoHeight(),Common.fixCollapsePanelScroll(),Common.submenuFix(),Common.templateVideos.init(),Common.attribution.capture(),Array.isArray(window.launchAfterJquery)&&window.launchAfterJquery.length>0&&r.each(window.launchAfterJquery,(t,e)=>{typeof e=="function"&&e()})}); 420 421(function(){const w=window.Syvo.Wishlist_Share=new SyvoModule("Wishlist_Share",u);function u(p){let a=!1;const h={parent:{selector:"[data-property=parent]"},form:{selector:"[data-property=share-form]",errorElement:"label",action:"wishlist/share-friend"},success:{selector:"[data-property=form-result]",message:"Your favs have been successfully shared with {0}",property:"[data-property=success-result]"},error:{selector:"[data-property=form-result]",message:"Something goes wrong. Please, try again"}},t=$.extend({},h,p);if(!t.parent||!t.form||!t.success||!t.error)return;d();function d(){if(!t.parent.selector||!t.form.selector)return;const l=$(t.parent.selector),i=$(t.form.selector);y(),i.submit(function(e){e.preventDefault(),a=!1;const r=$(this);if(!r.valid())return!1;Common.validateCaptcha().then(o=>{g(e,o,r)})});function g(e,r,o){const s=Common.serializeFormToObject(i);r&&(s["g-recaptcha-response"]=r),$.ajax({type:"POST",url:o.attr("action")||t.form.action,dataType:"json",data:s}).done(function(n){c(!0,o)}).fail(function(n){c(!1,o)}).always(function(){a=!0})}l.on("modal:close",function(){return a&&(v(),a=!1),!0});function y(){const e={};t.form.errorElement&&(e.errorElement=t.form.errorElement),i.validate(e)}function c(e,r){m(),e&&e===!0&&f(t.success),(!e||e===!1)&&f(t.error),r[0].reset()}function f(e){if(!e)return;const r=l.find(e.selector);if(!r||r.length===0)return;let o=e.message;const s=$(e.property);(!s||s.length===0)&&r.text(o);const n=s.val();n&&n.length>0&&(o=jQuery.validator.format(e.message,n)),r.text(o),r.show()}function m(){const e=$(t.form.selector);(e||e.length>0)&&e.hide();const r=$(t.success.selector);(r||r.length>0)&&r.hide();const o=$(t.error.selector);(o||o.length>0)&&o.hide()}function v(){m();const e=$(t.form.selector);(e||e.length>0)&&e.show()}}}})(); 422 423(()=>{const d=window.Syvo.Acuity_IFrame_Analytics=new SyvoModule("Acuity_IFrame_Analytics",s),n=$(document),i=Object.freeze({APPOINTMENT_SENT:"appointmentRequestSent"});function s(){window.addEventListener("message",o=>{var t,r;if(o.origin!=="https://conversion-tracking-sandbox.acuityinnovation.com"&&o.origin!==window.origin)return;let e=(t=o.data)==null?void 0:t.label;if(!e){const a=m(o);a&&(e=$(a).attr("appointment-label"))}(o.data===i.APPOINTMENT_SENT||((r=o.data)==null?void 0:r.name)===i.APPOINTMENT_SENT)&&(n.trigger(window.Syvo.Google_Analytics_4.eventNames.onBookAppointmentSent,{seoIdentifier:e}),n.trigger(window.Syvo.Google_Ads.eventNames.onBookAppointmentSent,{seoIdentifier:e}),n.trigger(window.Syvo.Facebook_Pixel.eventNames.onBookAppointmentSent,{seoIdentifier:e}),n.trigger(window.Syvo.Google_Tag_Manager.eventNames.onBookAppointmentSent,{seoIdentifier:e}),n.trigger(window.Syvo.Pinterest_Pixel.eventNames.onBookAppointmentSent,{seoIdentifier:e}),n.trigger(window.Syvo.TikTok_Pixel.eventNames.onBookAppointmentSent,{seoIdentifier:e}),n.trigger(window.Syvo.Snapchat_Pixel.eventNames.onBookAppointmentSent,{seoIdentifier:e}),n.trigger(window.Syvo.OpenAi_Pixel.eventNames.onBookAppointmentSent,{seoIdentifier:e}))},!1)}function m(o){const e=Array.from(document.getElementsByTagName("iframe")).filter(t=>t.contentWindow===o.source);return e.length>0?e[0]:null}})(); 424 425(()=>{const k=window.Syvo.BridalLive_IFrame_Analytics=new SyvoModule("BridalLive_IFrame_Analytics",_),c=["https://app.bridallive.com","https://qa.bridallive.com"],t=$(document),g=Object.freeze({APPOINTMENT_SENT:"appointmentRequestSent"});let d=null;function _(e){const n=$.extend(!0,{iFrameSelector:"iframe"},e);f(),N(n.iFrameSelector)}function f(){window.addEventListener("message",e=>{var r,m,p,u,w,v,S,y;if(!c.includes(e.origin)&&e.origin!==window.origin)return;let n=(r=e.data)==null?void 0:r.label;const i=A(e);if(i.length){if(n||(n=i.attr("appointment-label")),b(i.get(0)),((m=e.data)==null?void 0:m.type)==="bridallive.event_scheduled"||e.data===g.APPOINTMENT_SENT||((p=e.data)==null?void 0:p.name)===g.APPOINTMENT_SENT){const o={seoIdentifier:n,appointmentType:d!=null?d:void 0};t.trigger(window.Syvo.Google_Analytics_4.eventNames.onBookAppointmentSent,o),t.trigger(window.Syvo.Google_Ads.eventNames.onBookAppointmentSent,o),t.trigger(window.Syvo.Facebook_Pixel.eventNames.onBookAppointmentSent,o),t.trigger(window.Syvo.Google_Tag_Manager.eventNames.onBookAppointmentSent,o),t.trigger(window.Syvo.Pinterest_Pixel.eventNames.onBookAppointmentSent,o),t.trigger(window.Syvo.TikTok_Pixel.eventNames.onBookAppointmentSent,o),t.trigger(window.Syvo.Snapchat_Pixel.eventNames.onBookAppointmentSent,o),t.trigger(window.Syvo.OpenAi_Pixel.eventNames.onBookAppointmentSent,o),d=null;return}if(((u=e.data)==null?void 0:u.type)==="bridallive.appointment_type_selected"){const o=e.data.value;let a=o;
425if(typeof o=="string")try{a=JSON.parse(o),typeof a=="string"&&(a=JSON.parse(a))}catch(O){a=null}d=(v=(w=a==null?void 0:a.type)==null?void 0:w.description)!=null?v:null,t.trigger(window.Syvo.Google_Analytics_4.eventNames.onAppointmentTypeSelected,n),t.trigger(window.Syvo.Google_Tag_Manager.eventNames.onAppointmentTypeSelected,n),t.trigger(window.Syvo.OpenAi_Pixel.eventNames.onAppointmentTypeSelected,n);return}if(((S=e.data)==null?void 0:S.type)==="bridallive.date_and_time_selected"){t.trigger(window.Syvo.Google_Analytics_4.eventNames.onAppointmentDateTimeSelected,n),t.trigger(window.Syvo.Google_Tag_Manager.eventNames.onAppointmentDateTimeSelected,n),t.trigger(window.Syvo.OpenAi_Pixel.eventNames.onAppointmentDateTimeSelected,n);return}if(((y=e.data)==null?void 0:y.type)==="bridallive.redirect"){t.trigger(window.Syvo.Google_Analytics_4.eventNames.onAppointmentUserRedirected,n),t.trigger(window.Syvo.Google_Tag_Manager.eventNames.onAppointmentUserRedirected,n),t.trigger(window.Syvo.OpenAi_Pixel.eventNames.onAppointmentUserRedirected,n);return}}},!1)}function A(e){return $("iframe").filter((i,r)=>r.contentWindow===e.source)}function N(e){l(e);const n=window.Syvo.BridalLive_IFrame;n&&n.eventNames&&(t.on(n.eventNames.iFrameCreated,()=>l(e)),t.on(n.eventNames.iFrameReload,()=>l(e)))}function l(e){$(e).each((n,i)=>{const r=$(i);r.data("bl-tracking-bound")||(r.data("bl-tracking-bound",!0),r.on("load",()=>{r.data("bl-tracking-sent",!1),s(i)}),s(i))})}function b(e){const n=$(e);n.data("bl-tracking-sent")||(n.data("bl-tracking-sent",!0),s(e))}function s(e){const n=T(e);if(!n)return;const i=JSON.stringify(Common.bridalLiveTracking.build());setTimeout(()=>{try{e.contentWindow&&e.contentWindow.postMessage({type:"bridallive.set_tracking",value:i},n)}catch(r){}},500)}function T(e){const n=e.getAttribute("src")||e.getAttribute("data-src")||"";if(!n.includes("bridallive.com"))return null;try{const i=new URL(n,window.location.origin).origin;return c.includes(i)?i:null}catch(i){return null}}})(); 426 427(()=>{const g=window.Syvo.CloudBridal_IFrame_Analytics=new SyvoModule("CloudBridal_IFrame_Analytics",a),e=$(document);function a(){window.addEventListener("message",t=>{if(t.origin!=="https://go.cloudbridal.com"&&t.origin!==window.origin)return;const i=m(t);let r=i?$(i).attr("appointment-label"):void 0;const o=t.data;if(o&&o.type==="resize-iframe"&&o.height){i.style.height=o.height+"px";return}if(o&&o.type==="appointment-booked"){const n={seoIdentifier:r,appointmentType:o.appointmentType};e.trigger(window.Syvo.Google_Analytics_4.eventNames.onBookAppointmentSent,n),e.trigger(window.Syvo.Google_Ads.eventNames.onBookAppointmentSent,n),e.trigger(window.Syvo.Facebook_Pixel.eventNames.onBookAppointmentSent,n),e.trigger(window.Syvo.Google_Tag_Manager.eventNames.onBookAppointmentSent,n),e.trigger(window.Syvo.Pinterest_Pixel.eventNames.onBookAppointmentSent,n),e.trigger(window.Syvo.TikTok_Pixel.eventNames.onBookAppointmentSent,n),e.trigger(window.Syvo.Snapchat_Pixel.eventNames.onBookAppointmentSent,n),e.trigger(window.Syvo.OpenAi_Pixel.eventNames.onBookAppointmentSent,n)}},!1)}function m(t){const i=Array.from(document.getElementsByTagName("iframe")).filter(r=>r.contentWindow===t.source);return i.length>0?i[0]:null}})(); 428 429(function(){const t=window.Syvo.Facebook_Pixel=new SyvoModule("Facebook_Pixel",l);t.eventNames.onProductAddedToWishlist=t.getModuleEventName("onProductAddedToWishlist"),t.eventNames.onUserRegistered=t.getModuleEventName("onUserRegistered"),t.eventNames.onBookAppointmentSent=t.getModuleEventName("onBookAppointmentSent"),t.eventNames.onContactUsSent=t.getModuleEventName("onContactUsSent"),t.eventNames.onProductDetailsCallButtonClicked=t.getModuleEventName("onProductDetailsCallButtonClicked"),t.eventNames.onProductDetailsSmsButtonClicked=t.getModuleEventName("onProductDetailsSmsButtonClicked"),t.eventNames.onProductDetailsLinkButtonClicked=t.getModuleEventName("onProductDetailsLinkButtonClicked");function l(o){const i=$(document);if(m(),!o.trackingCode)return;(function(n,e,a,f,r,c,s){n.fbq||(r=n.fbq=function(){r.callMethod?r.callMethod.apply(r,arguments):r.queue.push(arguments)},n._fbq||(n._fbq=r),r.push=r,r.loaded=!0,r.version="2.0",r.queue=[],c=e.createElement(a),c.async=!0,c.src=f,s=e.getElementsByTagName(a)[0],s.parentNode.insertBefore(c,s))})(window,document,"script","https://connect.facebook.net/en_US/fbevents.js"),fbq("init",o.trackingCode,o.userData||{});const v=o.pageViewEventId||new Date().getTime().toString();if(u(v,"PageView",!0),o.event){const n=o.isStandardEvent?"track":"trackCustom";fbq(n,o.event,o.parameters,{eventID:o.eventId})}function m(){o.trackingCode&&(i.on(t.eventNames.onProductAddedToWishlist,(n,e)=>{fbq("track",e.eventName,e.eventParameters,{eventID:e.eventId})}),i.on(t.eventNames.onUserRegistered,(n,e)=>{fbq("track",e.event,{},{eventID:e.eventId})}),i.on(t.eventNames.onContactUsSent,(n,e)=>{fbq("track",e.event,{},{eventID:e.eventId})})),i.on(t.eventNames.onBookAppointmentSent,(n,e)=>{d("Schedule",!0)}),i.on(t.eventNames.onProductDetailsCallButtonClicked,(n,e)=>{d("PhoneCall",!1)}),i.on(t.eventNames.onProductDetailsSmsButtonClicked,(n,e)=>{d("Sms",!1)}),i.on(t.eventNames.onProductDetailsLinkButtonClicked,(n,e)=>{if(e.trackingCode){const a=e.trackingCode.trim().substring(0,40).replace(/\s+/g,"_").replace(/\W/g,"");d(a,!1)}})}function d(n,e){const a=new Date().getTime().toString();k(a,n),u(a,n,e)}function k(n,e){if(o.isConversionsApiEnabled&&o.antiForgeryToken){const a={eventId:n,eventName:e,currentUri:location.href,referrerUri:document.referrer};$.ajax({type:"POST",url:o.trackingEventUrl,headers:{RequestVerificationToken:o.antiForgeryToken},data:a})}}function u(n,e,a){o.trackingCode&&fbq(a?"track":"trackCustom",e,{},{eventID:n})}}})(); 430 431(()=>{let n=window.Syvo.Google_Ads=new SyvoModule("Google_Ads",u);n.eventNames.onBookAppointmentSent=n.getModuleEventName("onBookAppointmentSent"),n.eventNames.onContactUsSent=n.getModuleEventName("onContactUsSent");const i=$(document);function u(c){const m=Object.freeze({Appointment:1,ContactUs:2});if(c.trackingCode){let t=function(s,e){let o=null;const v=c.googleAdsConversions.filter(p=>p.eventType===s);if(v.length>0)o=v[0];else return;(e!=null&&e.email||e!=null&&e.phone)&&l("set","user_data",{email:e.email,phone_number:e.phone}),o&&l("event","conversion",{send_to:`${o.conversionId}/${o.conversionLabel}`})};var r=t;i.on(n.eventNames.onBookAppointmentSent,(s,e)=>{t(m.Appointment,e)}),i.on(n.eventNames.onContactUsSent,(s,e)=>{t(m.ContactUs,e)})}function l(){window.dataLayer.push(arguments)}}})(); 432 433(()=>{let t=window.Syvo.Google_Analytics_4=new SyvoModule("Google_Analytics_4",w);t.eventNames.blockRedirect=t.getModuleEventName("blockRedirect"),t.eventNames.allowRedirect=t.getModuleEventName("allowRedirect"),t.eventNames.onHomePageVideoPlayed=t.getModuleEventName("onHomePageVideoPlayed"),t.eventNames.onProductVideoPlayed=t.getModuleEventName("onProductVideoPlayed"),t.eventNames.onProductSearch=t.getModuleEventName("onProductSearch"),t.eventNames.onStoreSearch=t.getModuleEventName("onStoreSearch"),t.eventNames.onProductsFilterClicked=t.getModuleEventName("onProductsFilterClicked"),t.eventNames.onFindInStoreClicked=t.getModuleEventName("onFindInStoreClicked"),t.eventNames.onProductImageSwiped=t.getModuleEventName("onProductImageSwiped"),t.eventNames.onProductImageDotClicked=t.getModuleEventName("onProductImageDotClicked"),t.eventNames.onProductImageArrowClicked=t.getModuleEventName("onProductImageArrowClicked"),t.eventNames.onStorePhoneClicked=t.getModuleEventName("onStorePhoneClicked"),t.eventNames.onStoreDirectionsClicked=t.getModuleEventName("onStoreDirectionsClicked"),t.eventNames.onStoreSiteClicked=t.getModuleEventName("onStoreSiteClicked"),t.eventNames.onStoreDetailsClicked=t.getModuleEventName("onStoreDetailsClicked"),t.eventNames.onSearchStoresByLocation=t.getModuleEventName("onSearchStoresByLocation"),t.eventNames.onProductShared=t.getModuleEventName("onProductShared"),t.eventNames.onCustomerDemandClicked=t.getModuleEventName("onCustomerDemandClicked"),t.eventNames.onProductDescriptionVideoPlayed=t.getModuleEventName("onProductDescriptionVideoPlayed"),t.eventNames.onProductDetailsCallButtonClicked=t.getModuleEventName("onProductDetailsCallButtonClicked"),t.eventNames.onProductDetailsSmsButtonClicked=t.getModuleEventName("onProductDetailsSmsButtonClicked"),t.eventNames.onProductDetailsLinkButtonClicked=t.getModuleEventName("onProductDetailsLinkButtonClicked"),t.eventNames.onBookAppointmentSent=t.getModuleEventName("onBookAppointmentSent"),t.eventNames.onAppointmentPaid=t.getModuleEventName("onAppointmentPaid"),t.eventNames.onAppointmentTypeSelected=t.getModuleEventName("onAppointmentTypeSelected"),t.eventNames.onAppointmentDateTimeSelected=t.getModuleEventName("onAppointmentDateTimeSelected"),t.eventNames.onAppointmentUserRedirected=t.getModuleEventName("onAppointmentUserRedirected"),t.eventNames.onProductAddedToWishlist=t.getModuleEventName("onProductAddedToWishlist"),t.eventNames.onUserRegistered=t.getModuleEventName("onUserRegistered"),t.eventNames.onContactUsSent=t.getModuleEventName("onContactUsSent"),t.eventNames.onGownLocatorContactMethodChosen=t.getModuleEventName("onGownLocatorContactMethodChosen"),t.eventNames.onGownLocatorMessageSent=t.getModuleEventName("onGownLocatorMessageSent"),t.eventNames.onGownLocatorOpen=t.getModuleEventName("onGownLocatorOpen"),t.eventNames.onGownLocatorRetailersSubmit=t.getModuleEventName("onGownLocatorRetailersSubmit"),t.eventNames.onGownLocatorPhoneNumberEntered=t.getModuleEventName("onGownLocatorPhoneNumberEntered"),t.eventNames.onGownLocatorEmailEntered=t.getModuleEventName("onGownLocatorEmailEntered"),t.eventNames.onTrunkShowSearchItemCTAClicked=t.getModuleEventName("onTrunkShowSearchItemCTAClicked"),t.eventNames.onCustomFormSubmitted=t.getModuleEventName("onCustomFormSubmitted"),t.eventNames.onConsentModeGranted=t.getModuleEventName("onConsentModeGranted"),t.eventNames.onConsentModeDenied=t.getModuleEventName("onConsentModeDenied"),t.eventNames.onAppointmentFormInitiated=t.getModuleEventName("onAppointmentFormInitiated"),t.eventNames.onAppointmentLocationSubmitted=t.getModuleEventName("onAppointmentLocationSubmitted"),t.eventNames.onAppointmentClientInformationSubmitted=t.getModuleEventName("onAppointmentClientInformationSubmitted");const r=$(document),k=$(window);function w(A){var y,C,S,b;const M={redirect:{blockAttr:"data-block-ga-redirect"},click_id:(y=Common.attribution.getGoogleAdsClickId())!=null?y:void 0,click_id_type:(C=Common.attribution.getGoogleAdsClickIdType())!=null?C:void 0},s=$.extend(!0,{},M,A);window.dataLayer=window.dataLayer||[],GoogleAnalytics4Helper.initGoogleAnalytics(s),s.trackingCode&&(s.parameters&&(_("event",s.event,s.parameters),s.event==="view_item_list"&&((b=(S=s.parameters)==null?void 0:S.items)==null?void 0:b.length)>0&&$("[data-link=product-title],[data-link=product-images],[data-link=product-overlay]").click(i=>{i.preventDefault();const c=$(i.currentTarget),m=$.convertToBool(c.attr(s.redirect.blockAttr)),d=c.prop("href"),u=c.closest("[data-product-id]").data("product-id"),p=$.grep(s.parameters.items,v=>v.id===u);if(p.length===1){const v=p[0],o="select_item",e={items:[v],item_list_name:s.parameters.item_list_name};a(o,e),P(()=>{m||location.assign(d)})}else m||location.assign(d)})),E());function _(){window.dataLayer.push(arguments)}function P(i,c){let m=!1;function d(){m||(m=!0,i())}return setTimeout(d,c||1e3),d}function E(){k.on(t.eventNames.blockRedirect,i),k.on(t.eventNames.allowRedirect,c);function i(o,e){e.attr(s.redirect.blockAttr,!0)}function c(o,e){e.attr(s.redirect.blockAttr,!1)}const m=[],d=[];let u=!1;const p=[];r.on(t.eventNames.onProductAddedToWishlist,(o,e)=>{if(_("event",e.eventName,e.eventParameters),Array.isArray(e.eventParameters.items)&&e.eventParameters.items.length>0&&e.eventParameters.items[0].item_name){const n={event_category:"Product",event_action:"Add",event_label:"Wishlist",name:e.eventParameters.items[0].item_name};a("product_added_to_wishlist",n)}}),r.on(t.eventNames.onUserRegistered,o=>{a("user_registered",{event_category:"User",event_action:"Submit",event_label:"Signup"})}),r.on(t.eventNames.onAppointmentFormInitiated,()=>{a("appointment_form_initiated")}),r.on(t.eventNames.onAppointmentLocationSubmitted,(o,e)=>{const n=N(e);a("appointment_location_submitted",n)}),r.on(t.eventNames.onAppointmentClientInformationSubmitted,(o,e)=>{const n=N(e);a("appointment_client_information_submitted",n)}),r.on(t.eventNames.onBookAppointmentSent,(o,e)=>{var l;const n={event_category:"Lead",event_action:"Submit",event_label:(l=e==null?void 0:e.seoIdentifier)!=null?l:"Appointment",appointment_type:e==null?void 0:e.appointmentType,location:e==null?void 0:e.location};a("appointment_submitted",n)}),r.on(t.eventNames.onAppointmentPaid,(o,e)=>{var l;const n={event_category:"Lead",event_action:"Submit",event_label:(l=e==null?void 0:e.label)!=null?l:"Appointment Payment",appointment_type:e==null?void 0:e.appointmentType,location:e==null?void 0:e.location};a("appointment_paid",n)}),r.on(t.eventNames.onAppointmentTypeSelected,(o,e)=>{var l;const n={event_category:"Appointment",event_action:"Select",event_label:(l=e==null?void 0:e.label)!=null?l:"Appointment Type Selected",appointment_type:e==null?void 0:e.appointmentType,location:e==null?void 0:e.location,is_revisited:e==null?void 0:e.isRevisited};a("appointment_type_selected",n)}),r.on(t.eventNames.onAppointmentDateTimeSelected,(o,e)=>{var l;const n={event_category:"Appointment",event_action:"Select",event_label:(l=e==null?void 0:e.label)!=null?l:"Appointment Date and Time Selected",appointment_type:e==null?void 0:e.appointmentType,location:e==null?void 0:e.location,date:e==null?void 0:e.date,time:e==null?void 0:e.time,is_revisited:e==null?void 0:e.isRevisited};a("appointment_date_and_time_selected",n)}),r.on(t.eventNames.onAppointmentUserRedirected,(o,e)=>{const n={event_category:"Appointment",event_action:"Redirect",event_label:e!=null?e:"Appointment User Redirected"};a("appointment_user_redirect",n)}),r.on(t.eventNames.onContactUsSent,()=>{a("contact_us_request_sent",{event_category:"Contact",event_action:"Submit",event_label:"ContactUs"})}),r.on(t.eventNames.onGownLocatorOpen,(o,e)=>{a("gown_locator_open",{event_category:"Gown Locator",event_action:"Open",event_label:e})}),r.on(t.eventNames.onGownLocatorRetailersSubmit,(o,e)=>{a("gown_locator_retailers_submit",{event_category:"Gown Locator",event_action:"Submit retailers",event_label:e})}),r.on(t.eventNames.onGownLocatorContactMethodChosen,(o,e)=>{const n={event_category:"Gown Locator",event_action:"Contact method click",event_label:e.productName,contactMethod:e.contactMethod};a("gown_locator_contact_method_chosen",n)}),r.on(t.eventNames.onGownLocatorPhoneNumberEntered,(o,e)=>{const n={event_category:"Gown Locator",event_action:"Enter (phone)",event_label:e.productName};a("gown_locator_phone_entered",n)}),r.on(t.eventNames.onGownLocatorEmailEntered,(o,e)=>{const n={event_category:"Gown Locator",event_action:"Enter (email)",event_label:e.productName};a("gown_locator_email_entered",n)}),r.on(t.eventNames.onGownLocatorMessageSent,(o,e)=>{a("gown_locator_submit",{event_category:"Gown Locator",event_action:"Submit",event_label:e})}),r.on(t.eventNames.onHomePageVideoPlayed,(o,e)=>{m.includes(e)||(a("homepage_video_played",{event_category:"Video",event_action:"Play",event_label:"Homepage slider"}),m.push(e))}),r.on(t.eventNames.onProductVideoPlayed,(o,e)=>{d.includes(e)||(a("pdp_description_video_played",{event_category:"Video",event_action:"Play",event_label:"Product"}),d.push(e))}),r.on(t.eventNames.onProductSearch,(o,e)=>{a("product_search_clicked",{event_category:"Search product",event_action:"Trigger",event_label:e})}),r.on(t.eventNames.onStoreSearch,(o,e)=>{a("store_search_clicked",{event_category:"Search store",event_action:"Trigger",event_label:e})}),r.on(t.eventNames.onProductsFilterClicked,(o,e)=>{const n=Object.assign({event_category:"Product filter",event_action:"Apply"},e||{});a("product_filter_applied",n)}),r.on(t.eventNames.onFindInStoreClicked,(o,e)=>{const n={event_category:"Link",event_action:"Click",event_label:"Find in store ("+e+")"};a("find_in_store_pdp_clicked",n)}),r.on(t.eventNames.onProductImageSwiped,()=>{a("product_image_swiped_on_pdp",{event_category:"Product image",event_action:"Swipe",event_label:"PDP"})}),r.on(t.eventNames.onP
433roductImageDotClicked,()=>{a("product_image_pdp_dot_clicked",{event_category:"Product image",event_action:"Dot Click",event_label:"PDP"})}),r.on(t.eventNames.onProductImageArrowClicked,()=>{a("product_image_pdp_arrow_clicked",{event_category:"Product image",event_action:"Arrow Click",event_label:"PDP"})}),r.on(t.eventNames.onStorePhoneClicked,(o,e)=>{a("phone_call_store_locator_clicked",{event_category:"Store phone",event_action:"Click",event_label:e})}),r.on(t.eventNames.onStoreDirectionsClicked,(o,e)=>{a("directions_store_locator_clicked",{event_category:"Store directions",event_action:"Click",event_label:e})}),r.on(t.eventNames.onStoreSiteClicked,(o,e)=>{a("website_link_store_locator_clicked",{event_category:"Store site",event_action:"Click",event_label:e})}),r.on(t.eventNames.onStoreDetailsClicked,(o,e)=>{a("details_store_locator_clicked",{event_category:"Store details",event_action:"Click",event_label:e})}),r.on(t.eventNames.onSearchStoresByLocation,(o,e)=>{const n={event_category:"Search store",event_action:e.count===0?"Not found":"Found",event_label:e.location,value:e.count};a("search_store_location",n)}),r.on(t.eventNames.onProductShared,(o,e)=>{const n={event_category:`Share in ${e.socialNetwork}`,event_action:"Click",event_label:e.placement};a("share_product_clicked",n)}),r.on(t.eventNames.onCustomerDemandClicked,(o,e)=>{const n={event_category:e.category,event_action:e.action,event_label:e.label};a("customer_demand_clicked",n)}),r.on(t.eventNames.onProductDetailsCallButtonClicked,(o,e)=>{a("phone_call_clicked",{event_category:"Contact",event_action:"Click",event_label:"Call button PDP"})}),r.on(t.eventNames.onProductDetailsSmsButtonClicked,(o,e)=>{a("send_sms_clicked",{event_category:"Contact",event_action:"Click",event_label:"Sms button PDP"})}),r.on(t.eventNames.onProductDetailsLinkButtonClicked,(o,e)=>{const n={event_category:"Contact",event_action:"Click",event_label:e.trackingCode};a("custom_link_clicked",n)}),r.on(t.eventNames.onCustomFormSubmitted,(o,e)=>{e=e||{};const n={event_category:"Custom Form",event_action:"Click",event_label:e.title};a("custom_form_submitted",n)}),r.on(t.eventNames.onConsentModeGranted,(o,e)=>
433{_("consent","update",{ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"})}),r.on(t.eventNames.onConsentModeDenied,(o,e)=>{_("consent","denied",{ad_user_data:"denied",ad_personalization:"denied",ad_storage:"denied",analytics_storage:"denied"})}),v("[data-property=slider-top-link]","slider_top_link_clicked",("Homepage. "+$("[data-property=slider-top-link]").text().replace(/\s/g," ")).replace(/ {2,}/g," ")),v("[data-property=find-store]","find_a_store_button_clicked","Find a store"),v("[data-property=all-dresses]","all_dresses_button_clicked","All dresses"),v("[data-property=trunk-shows]","trunk_shows_button_clicked","Trunk shows"),v("[href*=keepcake\\.com]","keepcake_link_clicked","Keep cake"),v("[data-property='preheader-promo'] a","promo_link_clicked","Promo link"),$("[data-target=#main-navbar]").click(()=>{u||(a("menu_hamburger_clicked",{event_category:"Link",event_action:"Click",event_label:"Menu hamburger"}),u=!0)}),$("[data-property=blog-cta-banner]").click(()=>{a("blog_banner_cta_clicked",{event_category:"Blog",event_action:"Click",event_label:"CTA Banner"})}),r.on(t.eventNames.onProductDescriptionVideoPlayed,(o,e)=>{d.includes(e)||(a("video_pdp_description_played",{event_category:"Video",event_action:"Play",event_label:"Product description"}),d.push(e))}),$("[data-property=color]").click(function(){const o=$(this).data("value");p.includes(o)||(a("item_color_clicked_on_pdp",{event_category:"Product color",event_action:"Click",event_label:o}),p.push(o))}),r.on(t.eventNames.onTrunkShowSearchItemCTAClicked,(o,e)=>{const n={event_category:"Trunk shows",event_action:"Click",event_label:`Search Item CTA (${e.link})`};a("trunk_show_search_item_cta_clicked",n)});function v(o,e,n){$(o).on("click",l=>{const g=$(l.currentTarget),h=g.attr("target")==="_blank",f=g.attr("href"),L=$.convertToBool(g.attr(s.redirect.blockAttr)),T=g.attr("rel")==="modal:open";!h&&!T&&l.preventDefault(),a(e,{event_category:"Link",event_action:"Click",event_label:n}),P(()=>{!h&&!L&&location.assign(f)})})}}function a(i,c){c==null&&(c={}),s.trackingCode&&_("event",i,c)}function N(i){if(i&&(i.hasOwnProperty("appointmentType")||i.hasOwnProperty("isRevisited"))){let c={};for(let m in i)switch(m){case"appointmentType":c.appointment_type=i.appointmentType;break;case"isRevisited":c.is_revisited=i.isRevisited;break;default:c[m]=i[m];break}return c}}}})(); 434 435(function(){var o=window.Syvo.Google_Tag_Manager=new SyvoModule("Google_Tag_Manager",w);o.eventNames.blockRedirect=o.getModuleEventName("blockRedirect"),o.eventNames.allowRedirect=o.getModuleEventName("allowRedirect"),o.eventNames.onHomePageVideoPlayed=o.getModuleEventName("onHomePageVideoPlayed"),o.eventNames.onProductVideoPlayed=o.getModuleEventName("onProductVideoPlayed"),o.eventNames.onProductSearch=o.getModuleEventName("onProductSearch"),o.eventNames.onStoreSearch=o.getModuleEventName("onStoreSearch"),o.eventNames.onProductsFilterClicked=o.getModuleEventName("onProductsFilterClicked"),o.eventNames.onFindInStoreClicked=o.getModuleEventName("onFindInStoreClicked"),o.eventNames.onProductImageSwiped=o.getModuleEventName("onProductImageSwiped"),o.eventNames.onProductImageDotClicked=o.getModuleEventName("onProductImageDotClicked"),o.eventNames.onProductImageArrowClicked=o.getModuleEventName("onProductImageArrowClicked"),o.eventNames.onStorePhoneClicked=o.getModuleEventName("onStorePhoneClicked"),o.eventNames.onStoreSiteClicked=o.getModuleEventName("onStoreSiteClicked"),o.eventNames.onStoreDetailsClicked=o.getModuleEventName("onStoreDetailsClicked"),o.eventNames.onStoreDirectionsClicked=o.getModuleEventName("onStoreDirectionsClicked"),o.eventNames.onSearchStoresByLocation=o.getModuleEventName("onSearchStoresByLocation"),o.eventNames.onProductShared=o.getModuleEventName("onProductShared"),o.eventNames.onCustomerDemandClicked=o.getModuleEventName("onCustomerDemandClicked"),o.eventNames.onProductDescriptionVideoPlayed=o.getModuleEventName("onProductDescriptionVideoPlayed"),o.eventNames.onProductDetailsCallButtonClicked=o.getModuleEventName("onProductDetailsCallButtonClicked"),o.eventNames.onProductDetailsSmsButtonClicked=o.getModuleEventName("onProductDetailsSmsButtonClicked"),o.eventNames.onProductDetailsLinkButtonClicked=o.getModuleEventName("onProductDetailsLinkButtonClicked"),o.eventNames.onBookAppointmentSent=o.getModuleEventName("onBookAppointmentSent"),o.eventNames.onAppointmentPaid=o.getModuleEventName("onAppointmentPaid"),o.eventNames.onAppointmentTypeSelected=o.getModuleEventName("onAppointmentTypeSelected"),o.eventNames.onAppointmentDateTimeSelected=o.getModuleEventName("onAppointmentDateTimeSelected"),o.eventNames.onAppointmentUserRedirected=o.getModuleEventName("onAppointmentUserRedirected"),o.eventNames.onProductAddedToWishlist=o.getModuleEventName("onProductAddedToWishlist"),o.eventNames.onUserRegistered=o.getModuleEventName("onUserRegistered"),o.eventNames.onContactUsSent=o.getModuleEventName("onContactUsSent"),o.eventNames.onGownLocatorContactMethodChosen=o.getModuleEventName("onGownLocatorContactMethodChosen"),o.eventNames.onGownLocatorMessageSent=o.getModuleEventName("onGownLocatorMessageSent"),o.eventNames.onGownLocatorOpen=o.getModuleEventName("onGownLocatorOpen"),o.eventNames.onGownLocatorRetailersSubmit=o.getModuleEventName("onGownLocatorRetailersSubmit"),o.eventNames.onGownLocatorPhoneNumberEntered=o.getModuleEventName("onGownLocatorPhoneNumberEntered"),o.eventNames.onGownLocatorEmailEntered=o.getModuleEventName("onGownLocatorEmailEntered"),o.eventNames.onTrunkShowSearchItemCTAClicked=o.getModuleEventName("onTrunkShowSearchItemCTAClicked"),o.eventNames.onCustomFormSubmitted=o.getModuleEventName("onCustomFormSubmitted");const n=$(document),p=$(window);function w(d){var r,t;const c={redirect:{blockAttr:"data-block-ga-redirect"}}
435;window.dataLayer=window.dataLayer||[],window.dataLayer.push({click_id:(r=Common.attribution.getGoogleAdsClickId())!=null?r:void 0,click_id_type:(t=Common.attribution.getGoogleAdsClickIdType())!=null?t:void 0});const i=$.extend(!0,{},c,d);i.containerId&&(function(e,a,s,m,l){e[m]=e[m]||[],e[m].push({"gtm.start":new Date().getTime(),event:"gtm.js"});var v=a.getElementsByTagName(s)[0],u=a.createElement(s),k=m!="dataLayer"?"&l="+m:"";u.async=!0,u.src="https://www.googletagmanager.com/gtm.js?id="+l+k,v.parentNode.insertBefore(u,v)})(window,document,"script","dataLayer",i.containerId),N(i)}function N(d){p.on(o.eventNames.blockRedirect,c),p.on(o.eventNames.allowRedirect,i);function c(t,e){e.attr(d.redirect.blockAttr,!0)}function i(t,e){e.attr(d.redirect.blockAttr,!1)}n.on(o.eventNames.onProductAddedToWishlist,(t,e,a)=>{window.dataLayer.push({event:"productAddedToWishlist",name:e.productName,productIds:[e.productId],type:"product",eventCallback:a})}),n.on(o.eventNames.onUserRegistered,(t,e,a)=>{window.dataLayer.push({event:"userRegistered",eventCallback:a})}),n.on(o.eventNames.onBookAppointmentSent,(t,e)=>{var a;window.dataLayer.push({event:"appointmentRequestSent",email:e==null?void 0:e.email,phone:e==null?void 0:e.phone,label:(a=e==null?void 0:e.seoIdentifier)!=null?a:"Appointment",appointment_type:e==null?void 0:e.appointmentType,location:e==null?void 0:e.location})}),n.on(o.eventNames.onAppointmentPaid,(t,e)=>{var a;window.dataLayer.push({event:"appointmentPaid",label:(a=e==null?void 0:e.label)!=null?a:"Appointment Payment",appointment_type:e==null?void 0:e.appointmentType,location:e==null?void 0:e.location})}),n.on(o.eventNames.onAppointmentTypeSelected,(t,e)=>{var a;window.dataLayer.push({event:"appointmentTypeSelected",label:(a=e==null?void 0:e.label)!=null?a:"Appointment Type Selected",appointment_type:e==null?void 0:e.appointmentType,location:e==null?void 0:e.location})}),n.on(o.eventNames.onAppointmentDateTimeSelected,(t,e)=>{var a;window.dataLayer.push({event:"appointmentDateTimeSelected",label:(a=e==null?void 0:e.label)!=null?a:"Appointment Date and Time Selected",appointment_type:e==null?void 0:e.appointmentType,location:e==null?void 0:e.location,date:e==null?void 0:e.date,time:e==null?void 0:e.time})}),n.on(o.eventNames.onAppointmentUserRedirected,(t,e)=>{window.dataLayer.push({event:"appointmentUserRedirected",label:e!=null?e:"Appointment User Redirected"})}),n.on(o.eventNames.onContactUsSent,(t,e)=>{window.dataLayer.push({event:"contactUsRequestSent"})}),n.on(o.eventNames.onGownLocatorOpen,(t,e)=>{window.dataLayer.push({event:"gownLocatorOpen",productName:e})}),n.on(o.eventNames.onGownLocatorRetailersSubmit,(t,e)=>{window.dataLayer.push({event:"gownLocatorRetailersSubmit",productName:e})}),n.on(o.eventNames.onGownLocatorContactMethodChosen,(t,e)=>{window.dataLayer.push({event:"gownLocatorContactMethodChosen",productName:e.productName,contactMethod:e.contactMethod})}),n.on(o.eventNames.onGownLocatorPhoneNumberEntered,(t,e)=>{window.dataLayer.push({event:"gownLocatorPhoneNumberEntered",productName:e.productName})}),n.on(o.eventNames.onGownLocatorEmailEntered,(t,e)=>{window.dataLayer.push({event:"gownLocatorEmailEntered",productName:e.productName})}),n.on(o.eventNames.onGownLocatorMessageSent,(t,e)=>{window.dataLayer.push({event:"gownLocatorSubmit",productName:e})}),n.on(o.eventNames.onProductDetailsCallButtonClicked,(t,e)=>{window.dataLayer.push({event:"phoneCallProductDetailsClicked"})}),n.on(o.eventNames.onProductDetailsSmsButtonClicked,(t,e)=>{window.dataLayer.push({event:"smsProductDetailsClicked"})}),n.on(o.eventNames.onProductDetailsLinkButtonClicked,(t,e)=>{window.dataLayer.push({event:"customLinkProductDetailsClicked",title:e.trackingCode})}),n.on(o.eventNames.onCustomFormSubmitted,(t,e)=>{e=e||{},window.dataLayer.push({event:"customFormSubmitted",title:e.title})});const r=[];n.on(o.eventNames.onHomePageVideoPlayed,(t,e)=>{r.includes(e)||(window.dataLayer.push({event:"homePageVideoPlayed"}),r.push(e))}),n.on(o.eventNames.onProductVideoPlayed,t=>{window.dataLayer.push({event:"productDetailsVideoPlayed"})}),n.on(o.eventNames.onProductSearch,(t,e)=>{window.dataLayer.push({event:"productSearchClicked",searchTerm:e})}),n.on(o.eventNames.onStoreSearch,(t,e)=>{window.dataLayer.push({event:"storeSearchClicked",searchTerm:e})}),n.on(o.eventNames.onProductsFilterClicked,(t,e)=>{window.dataLayer.push(Object.assign({event:"productsFilterClicked"},e||{}))}),n.on(o.eventNames.onFindInStoreClicked,(t,e)=>{window.dataLayer.push({event:"findInStoreClicked",name:e})}),n.on(o.eventNames.onProductImageSwiped,()=>{window.dataLayer.push({event:"pdpProductImageSwiped"})}),n.on(o.eventNames.onProductImageDotClicked,()=>{window.dataLayer.push({event:"pdpProductImageDotClicked"})}),n.on(o.eventNames.onProductImageArrowClicked,()=>{window.dataLayer.push({event:"pdpProductImageArrowClicked"})}),n.on(o.eventNames.onStorePhoneClicked,(t,e)=>{window.dataLayer.push({event:"storeLocatorPhoneClicked",name:e})}),n.on(o.eventNames.onStoreDirectionsClicked,(t,e)=>{window.dataLayer.push({event:"storeLocatorDirectionsClicked",name:e})}),n.on(o.eventNames.onStoreSiteClicked,(t,e)=>{window.dataLayer.push({event:"storeLocatorSiteClicked",name:e})}),n.on(o.eventNames.onStoreDetailsClicked,(t,e)=>{window.dataLayer.push({event:"storeLocatorDetailsClicked",name:e})}),n.on(o.eventNames.onSearchStoresByLocation,(t,e)=>{window.dataLayer.push({event:"storeLocationSearch",action:e.count===0?"Not found":"Found",searchTerm:e.location,count:e.count})}),n.on(o.eventNames.onProductShared,(t,e)=>{window.dataLayer.push({event:"shareProductClicked",socialNetwork:e.socialNetwork,placement:e.placement})}),n.on(o.eventNames.onCustomerDemandClicked,(t,e)=>{window.dataLayer.push({event:"customerDemandClicked",category:e.category,action:e.action,label:e.label})}),n.on(o.eventNames.onProductDescriptionVideoPlayed,t=>{window.dataLayer.push({event:"productDescriptionVideoPlayed"})}),n.on(o.eventNames.onTrunkShowSearchItemCTAClicked,(t,e)=>{window.dataLayer.push({event:"trunkShowSearchItemCTAClicked",link:e.link})}
435),h(d,"[data-property='preheader-promo'] a","promoLinkClicked","Promo link")}function h(d,c,i,r){$(c).on("click",t=>{const e=$(t.currentTarget),a=e.attr("target")==="_blank",s=e.attr("href"),m=$.convertToBool(e.attr(d.redirect.blockAttr)),l=e.attr("rel")==="modal:open";!a&&!l&&t.preventDefault(),window.dataLayer.push({event:i,category:"Link",action:"Click",label:r,eventCallback:g(()=>{!a&&!m&&!l&&location.assign(s)})})})}function g(d,c){let i=!1;function r(){i||(i=!0,d())}return setTimeout(r,c||1e3),r}})(); 436 437(()=>{const s=window.Syvo.Hubspot=new SyvoModule("Hubspot",i);s.eventNames.onProductAddedToWishlist=s.getModuleEventName("onProductAddedToWishlist");function i(o){if(!o.portalId)return;const d=$(document),n=$("form");n.length>0&&(r(o.cssClass),u(o.additionalFields)),l();function l(){o.hubspotWishlistEventId&&d.on(s.eventNames.onProductAddedToWishlist,(t,e,a)=>{_hsq.push(["trackCustomBehavioralEvent",{name:o.hubspotWishlistEventId,properties:{product:e.productName,email:o.email}}])})}function r(t){var a;t&&n.addClass(t);const e=n.filter(".custom-form");if(e.length>0){const m=(a=window.location.pathname.split("/").reverse().find(c=>c))!=null?a:"homepage";e.addClass("form-"+m)}}function u(t){for(let e of t!=null?t:[])n.append(`<input type="${e.type}" value="${e.value}" name="${e.name}" aria-label="${e.ariaLabel}" style="visibility: hidden; position: absolute; top: -10000px;"/>`)}}})(); 438 439(()=>{let t=window.Syvo.OpenAi_Pixel=new SyvoModule("OpenAi_Pixel",u);t.eventNames.onBookAppointmentSent=t.getModuleEventName("onBookAppointmentSent"),t.eventNames.onAppointmentTypeSelected=t.getModuleEventName("onAppointmentTypeSelected"),t.eventNames.onAppointmentDateTimeSelected=t.getModuleEventName("onAppointmentDateTimeSelected"),t.eventNames.onAppointmentUserRedirected=t.getModuleEventName("onAppointmentUserRedirected"),t.eventNames.onProductSearch=t.getModuleEventName("onProductSearch"),t.eventNames.onProductShared=t.getModuleEventName("onProductShared"),t.eventNames.onContactUsSent=t.getModuleEventName("onContactUsSent"),t.eventNames.onUserRegistered=t.getModuleEventName("onUserRegistered"),t.eventNames.onProductAddedToWishlist=t.getModuleEventName("onProductAddedToWishlist");const m=$(document),s=Object.freeze({PageViewed:1,ContentsViewed:2,ItemsAdded:3,CheckoutStarted:4,OrderCreated:5,ShippingAddressAdded:6,ShippingMethodSelected:7}),r=Object.freeze({[s.PageViewed]:{name:"page_viewed",dataType:"contents"},[s.ContentsViewed]:{name:"contents_viewed",dataType:"contents"},[s.ItemsAdded]:{name:"items_added",dataType:"contents"},[s.CheckoutStarted]:{name:"checkout_started",dataType:"contents"},[s.OrderCreated]:{name:"order_created",dataType:"contents"},[s.ShippingAddressAdded]:{name:"custom",customEventName:"shipping_address_added",dataType:"custom"},[s.ShippingMethodSelected]:{name:"custom",customEventName:"shipping_method_selected",dataType:"custom"}});function u(c){if(!c.trackingCode)return;if(c.event){const n=r[c.event];n&&o(n.name,Object.assign({type:n.dataType},c.parameters),{event_id:c.eventId,custom_event_name:n.customEventName})}i();function i(){m.on(t.eventNames.onBookAppointmentSent,()=>{o("appointment_scheduled",{type:"customer_action"})}),m.on(t.eventNames.onAppointmentTypeSelected,(n,e)=>{o("custom",{type:"custom",contents:p({appointment:(e==null?void 0:e.label)||"Appointment Type Selected",appointment_type:e==null?void 0:e.appointmentType,location:e==null?void 0:e.location})},{custom_event_name:"appointment_type_selected"})}),m.on(t.eventNames.onAppointmentDateTimeSelected,(n,e)=>{o("custom",{type:"custom",contents:p({appointment:(e==null?void 0:e.label)||"Appointment Date and Time Selected",appointment_type:e==null?void 0:e.appointmentType,location:e==null?void 0:e.location,appointment_date:e==null?void 0:e.date,appointment_time:e==null?void 0:e.time})},{custom_event_name:"appointment_date_and_time_selected"})}),m.on(t.eventNames.onAppointmentUserRedirected,(n,e)=>{o("custom",{type:"custom",contents:p({appointment:e||"Appointment User Redirected"})},{custom_event_name:"appointment_user_redirect"})}),m.on(t.eventNames.onContactUsSent,()=>{o("lead_created",{type:"customer_action"})}),m.on(t.eventNames.onUserRegistered,()=>{o("registration_completed",{type:"customer_action"})}),m.on(t.eventNames.onProductAddedToWishlist,(n,e)=>{o("custom",{type:"custom",contents:p({product:{id:e==null?void 0:e.productId,name:e==null?void 0:e.productName}})},{custom_event_name:"product_added_to_wishlist"})}),m.on(t.eventNames.onProductSearch,(n,e)=>{o("custom",{type:"custom",contents:p({search_term:e})},{custom_event_name:"product_search"})}),m.on(t.eventNames.onProductShared,(n,e)=>{o("custom",{type:"custom",contents:p({social_network:e==null?void 0:e.socialNetwork})},{custom_event_name:"product_shared"})})}}function p(c){const i=n=>typeof n=="string"&&n?n:void 0;return Object.entries(c).map(([n,e])=>{var d;return{id:i(e==null?void 0:e.id),name:i((d=e==null?void 0:e.name)!=null?d:e),content_type:n}}).filter(n=>n.id||n.name)}function o(c,i,n){window.oaiq("measure",c,i,n)}})(); 440 441(function(){var e=window.Syvo.Pinterest_Pixel=new SyvoModule("Pinterest_Pixel",c);e.eventNames.onUserRegistered=e.getModuleEventName("onUserRegistered"),e.eventNames.onBookAppointmentSent=e.getModuleEventName("onBookAppointmentSent"),e.eventNames.onProductSearch=e.getModuleEventName("onProductSearch");const o=$(document);function c(t){t.trackingCode&&(t.event&&pintrk("track",t.event,t.parameters),o.on(e.eventNames.onBookAppointmentSent,(r,n)=>{var i;pintrk("track","lead",{lead_type:(i=n==null?void 0:n.seoIdentifier)!=null?i:"Appointment"})}),o.on(e.eventNames.onUserRegistered,(r,n)=>{pintrk("track","signup")}),o.on(e.eventNames.onProductSearch,(r,n)=>{pintrk("track","search",{search_query:n})}))}})(); 442 443(()=>{let e=window.Syvo.Snapchat_Pixel=new SyvoModule("Snapchat_Pixel",a);e.eventNames.onBookAppointmentSent=e.getModuleEventName("onBookAppointmentSent"),e.eventNames.onProductSearch=e.getModuleEventName("onProductSearch"),e.eventNames.onProductShared=e.getModuleEventName("onProductShared"),e.eventNames.onContactUsSent=e.getModuleEventName("onContactUsSent"),e.eventNames.onUserRegistered=e.getModuleEventName("onUserRegistered"),e.eventNames.onProductAddedToWishlist=e.getModuleEventName("onProductAddedToWishlist");const r=$(document),n=Object.freeze({PageView:1,ProductsList:2,ProductView:3,AddToCart:4,InitiateCheckout:5,Purchase:6,CheckoutAddShippingAddress:7,CheckoutAddShippingMethod:8}),c=Object.freeze({[n.PageView]:"PAGE_VIEW",[n.ProductsList]:"LIST_VIEW",[n.ProductView]:"VIEW_CONTENT",[n.AddToCart]:"ADD_CART",[n.InitiateCheckout]:"START_CHECKOUT",[n.Purchase]:"PURCHASE",[n.CheckoutAddShippingAddress]:"CUSTOM_EVENT_1",[n.CheckoutAddShippingMethod]:"
443CUSTOM_EVENT_2"});function a(d){if(!d.trackingCode)return;if(d.event&&d.parameters){const o=c[d.event];o&&snaptr("track",o,d.parameters)}i();function i(){r.on(e.eventNames.onBookAppointmentSent,(o,t)=>{var s;snaptr("track","RESERVE",{description:(s=t==null?void 0:t.seoIdentifier)!=null?s:"Appointment"})}),r.on(e.eventNames.onProductSearch,(o,t)=>{snaptr("track","SEARCH",{search_string:t})}),r.on(e.eventNames.onContactUsSent,(o,t)=>{snaptr("track","CUSTOM_EVENT_3",{description:"Contact Us"})}),r.on(e.eventNames.onUserRegistered,(o,t)=>{snaptr("track","SIGN_UP")}),r.on(e.eventNames.onProductAddedToWishlist,(o,t)=>{snaptr("track","ADD_TO_WISHLIST",t)}),r.on(e.eventNames.onProductShared,(o,t)=>{snaptr("track","SHARE",{description:t==null?void 0:t.socialNetwork})})}}})(); 444 445(()=>{const g=window.Syvo.Syvo_Pos_IFrame_Analytics=new SyvoModule("Syvo_Pos_IFrame_Analytics",a),n=$(document);function a(m){const p=m.allowedOrigin;window.addEventListener("message",t=>{var o,i;if(t.origin!==p&&t.origin!==window.origin)return;const r=(o=t.data)==null?void 0:o.type,e=(i=t.data)==null?void 0:i.data;switch(r){case"appointment-form-initiated":n.trigger(window.Syvo.Google_Analytics_4.eventNames.onAppointmentFormInitiated);break;case"appointment-location-submitted":n.trigger(window.Syvo.Google_Analytics_4.eventNames.onAppointmentLocationSubmitted,e);break;case"appointment-type-submitted":n.trigger(window.Syvo.Google_Analytics_4.eventNames.onAppointmentTypeSelected,e),n.trigger(window.Syvo.Google_Tag_Manager.eventNames.onAppointmentTypeSelected,e),n.trigger(window.Syvo.OpenAi_Pixel.eventNames.onAppointmentTypeSelected,e);break;case"appointment-time-slot-submitted":n.trigger(window.Syvo.Google_Analytics_4.eventNames.onAppointmentDateTimeSelected,e),n.trigger(window.Syvo.Google_Tag_Manager.eventNames.onAppointmentDateTimeSelected,e),n.trigger(window.Syvo.OpenAi_Pixel.eventNames.onAppointmentDateTimeSelected,e);break;case"appointment-client-information-submitted":n.trigger(window.Syvo.Google_Analytics_4.eventNames.onAppointmentClientInformationSubmitted,e);break;case"appointment-payment-submitted":n.trigger(window.Syvo.Google_Analytics_4.eventNames.onAppointmentPaid,e),n.trigger(window.Syvo.Google_Tag_Manager.eventNames.onAppointmentPaid,e);break;case"appointment-submitted":e.seoIdentifier=`Appointment ${e.appointmentType} booked in ${e.location}`,n.trigger(window.Syvo.Google_Analytics_4.eventNames.onBookAppointmentSent,e),n.trigger(window.Syvo.Google_Ads.eventNames.onBookAppointmentSent,e),n.trigger(window.Syvo.Facebook_Pixel.eventNames.onBookAppointmentSent,e),n.trigger(window.Syvo.Google_Tag_Manager.eventNames.onBookAppointmentSent,e),n.trigger(window.Syvo.Pinterest_Pixel.eventNames.onBookAppointmentSent,e),n.trigger(window.Syvo.TikTok_Pixel.eventNames.onBookAppointmentSent,e),n.trigger(window.Syvo.Snapchat_Pixel.eventNames.onBookAppointmentSent,e),n.trigger(window.Syvo.OpenAi_Pixel.eventNames.onBookAppointmentSent,e);break}},!1)}})(); 446 447(()=>{let t=window.Syvo.TikTok_Pixel=new SyvoModule("TikTok_Pixel",v);t.eventNames.onBookAppointmentSent=t.getModuleEventName("onBookAppointmentSent"),t.eventNames.onProductSearch=t.getModuleEventName("onProductSearch"),t.eventNames.onContactUsSent=t.getModuleEventName("onContactUsSent"),t.eventNames.onUserRegistered=t.getModuleEventName("onUserRegistered"),t.eventNames.onProductAddedToWishlist=t.getModuleEventName("onProductAddedToWishlist");const r=$(document),c=Object.freeze({ProductsList:1,ProductView:2,AddToCart:3,InitiateCheckout:4,PlaceAnOrder:5});function v(n){var o,u,i,s,m,l,k;if(!n.trackingCode)return;if(n.parameters){n.parameters.value=(o=n.parameters.value)!=null?o:void 0,n.parameters.currency=(u=n.parameters.value&&n.parameters.currency)!=null?u:void 0;for(let e of n.parameters.contents)e.value=(i=e.value)!=null?i:void 0,e.currency=(s=e.value&&e.currency)!=null?s:void 0,e.brand=(m=e.brand)!=null?m:void 0,e.quantity=(l=e.quantity)!=null?l:void 0,e.price=(k=e.price)!=null?k:void 0}if(n.event)switch(n.event){case c.ProductsList:d(n.parameters);break;case c.ProductView:d(n.parameters);break;case c.AddToCart:f(n.parameters);break;case c.InitiateCheckout:N(n.parameters,1);break;case c.PlaceAnOrder:C(n.parameters);break}P();function d(e){e&&ttq.track("ViewContent",e)}function f(e){e&&ttq.track("AddToCart",e)}function N(e){e&&ttq.track("InititateCheckout",e)}function C(e){e&&ttq.track("PlaceAnOrder",e)}function P(){r.on(t.eventNames.onBookAppointmentSent,(e,a)=>{ttq.track("SubmitForm")}),r.on(t.eventNames.onProductSearch,(e,a)=>{ttq.track("Search",{query:a})}),r.on(t.eventNames.onContactUsSent,(e,a)=>{ttq.track("Contact")}),r.on(t.eventNames.onUserRegistered,(e,a,h)=>{ttq.track("CompleteRegistration")}),r.on(t.eventNames.onProductAddedToWishlist,(e,a,h)=>{ttq.track("AddToWishlist",{content_id:a.productId,content_name:a.productName})})}}})(); 448 449(function(){const g=window.Syvo.Register=new SyvoModule("Register",l);function l(e){e=e||{};let t=e.form||$("form[name='sign-up']");e.form=t,e.successRedirectUrl=e.successRedirectUrl?e.successRedirectUrl:Common.getBaseHref();let a=!1;window.Syvo.Custom_Form.initFormFields(e),t.submit(u);function u(d){d.preventDefault(),a||(a=!0,Common.validateCaptcha().then(r=>{f(d,r)}))}function f(d,r){let s=window.Syvo.Custom_Form.collectFormData(e);if(!t.valid())return a=!1,!1;const i={};t.find("input:not([type='radio']):not([name='formId']):not([data-field-id]),select:not([data-field-id]),input[type=radio]:not([data-field-id]):checked,textarea:not([data-field-id])").map((o,n)=>{n=$(n);const m=n.attr("name");i.hasOwnProperty(m)||(n.is(":checkbox")?i[m]=n.is(":checked"):i[m]=n.val())}),i.additionalFormResult=s?{formId:s.formId,fields:s.fields}:null;const c=Common.convertJsonToFormData(i);r&&c.append("g-recaptcha-response",r),Common.showLoader(),$.ajax({url:t.attr("action"),type:"post",data:c,contentType:!1,processData:!1}).done(o=>{$(document).trigger(window.Syvo.Google_Analytics_4.eventNames.onUserRegistered),$(document).trigger(window.Syvo.Facebook_Pixel.eventNames.onUserRegistered,o),$(document).trigger(window.Syvo.Pinterest_Pixel.eventNames.onUserRegistered),$(document).trigger(window.Syvo.Google_Tag_Manager.eventNames.onUserRegistered),$(document).trigger(window.Syvo.TikTok_Pixel.eventNames.onUserRegistered),$(document).trigger(window.Syvo.Snapchat_Pixel.eventNames.onUserRegistered),$(document).trigger(window.Syvo.OpenAi_Pixel.eventNames.onUserRegistered),setTimeout(()=>{document.location.href=e.successRedirectUrl},1e3),Common.hideLoader(),a=!1}).fail(o=>{o!=null&&o.responseJSON&&Common.updateModelStateErrors(o.responseJSON,t,t.find(".error-summary")),Common.hideLoader(),a=!1})}}})(); 450 451(function(){const V=window.Syvo.Auto_Submiter=new SyvoModule("Auto_Submiter",P);window.Syvo.Auto_Submiter.submiterType={FORM:0,POPOVER_FORM:1};function P(e){const C="a[rel=popover]",M="click",D="[data-default-submit]",E="[data-property='tip-block']",B="[data-property='response-msg']",R="[data-property='tip-block']",A="[data-property='response-msg']",_=function(){};let m=D,k=C,F=M,d=E,h=B,v=R,b=A,u="",g=l=>Common.serializeFormToObject(l,!0),T=()=>{},y=_,n;e.selectors&&(e.selectors.form&&(m=e.selectors.form),e.selectors.popover&&(k=e.selectors.popover),e.selectors.successfulBlock&&(d=e.selectors.successfulBlock),e.selectors.successfulText&&(h=e.selectors.successfulText),e.selectors.errorBlock&&(v=e.selectors.errorBlock),e.selectors.errorText&&(b=e.selectors.errorText)),e.showPopoverEvents&&(F=e.showPopoverEvents),e.messages&&e.messages.success&&(u=e.messages.success),e.formDataCollector&&(g=e.formDataCollector),e.popoverShownCallback&&(T=e.popoverShownCallback),e.callback&&(y=e.callback),e.modules&&e.modules.combineFields&&(n={selectors:e.modules.combineFields.selectors,order:e.modules.combineFields.order});const w=e.removeStyler;$(d).hide(),$(v).hide(),$.fn.styler&&!w&&$(m).find("select").on("change",function(){const l=$(this);setTimeout(function(){l.trigger("refresh"),l.valid()},1)}),w&&$("select").styler("destroy"),e.type===window.Syvo.Auto_Submiter.submiterType.FORM?q(m):e.type===window.Syvo.Auto_Submiter.submiterType.POPOVER_FORM&&j(k,m);function q(l){$(l).submit(function(s){s.preventDefault();const r=$(this);if(r.valid()&&r.data("validator").pendingRequest===0){const t=s.currentTarget.action;n&&x();const o=g(r),c=I(o);$.ajax({url:t,type:"post",data:c}).done(function(a){u=u&&u.length>0?u:a.message,$(h).text(u);const i=$(d);N(r),i.show(),$(window).scrollTop(i.position().top)}).fail(function(a){$(b).text((a.responseJSON||{}).message);const i=$(v);i.show(),$(window).scrollTop(i.position().top)}).always(function(a){setTimeout(function(){block.hide()},5e3),y(a.responseJSON||a)})}})}function x(){n.selectors&&$.each(n.selectors,function(l,s){const r=$(s).not(n.order);
451if(r&&r.length>0){let t=$(s+n.order);t&&t.length>0&&(t=t.sort(function(o,c){return $(o).data("order")-$(c).data("order")}),$.each(t,function(o,c){r.val(r.val()+$(c).val())}))}})}function j(l,s){const r=[];$(l).on(F,t=>{$(l).not($(t.target)).popover("hide"),$(t.target).popover("show")}).popover({html:"true",trigger:"manual"}).on("shown.bs.popover",t=>{const o=$(t.target);$(t.target).parent().find(".close-popover").on("click",()=>{o.popover("hide")})}),$(l).on("shown.bs.popover",function(){const t=$(this);r[t.data("unique")]&&$(s).replaceWith(r[t.data("unique")]),$("body").data("validator",null),$.validator.unobtrusive.parse("body"),T($(s),t),$(s).submit(function(o){o.preventDefault();const c=$(this);if(c.valid()&&c.data("validator").pendingRequest===0){const a=o.currentTarget.action;n&&x();const i=g(c);$.ajax({url:a,type:"post",data:i}).done(function(p){c.find("input, select").each(function(){const f=$(this);f.is("select")?f.find("option").each(function(G,W){const S=$(W);S.val()===f.val()?S.prop("selected",!0):S.prop("selected",!1)}):f.prop("value",f.val());const O=t.data("viewId");O&&$("[data-property='"+O+"']").text(f.val())}),r[t.data("unique")]=c.clone(),t.popover("hide"),$(h).text(p.message),$(d).show(),y(p,c)}).fail(function(p){$(b).text((p.responseJSON||{}).message),$(v).show(),$(d).hide(),t.popover("hide")}).always(function(p){})}})})}function N(l){l.trigger("reset"),l.validate().resetForm(),$.fn.styler&&!w&&$("select").trigger("refresh")}function J(){const l=$("[data-additional-field]"),s=[],r=[];return l.each(function(){const t=$(this).closest("div").find("[data-additional-title]").text();let o=$(this).attr("name");if(r.indexOf(o)===-1){r.push(o),o.endsWith("[]")&&(o=o.substring(0,o.length-2));const c={title:t,key:o};s.push(c)}}),s}function I(l){const s=Object.assign({},l),r=[],t=J();for(let o in s)s.hasOwnProperty(o)&&t.forEach(function(c,a){c.key===o&&(c.value=s[o],r.push(c),delete s[o])});return s.additionalInfo=JSON.stringify(r),s}}})(); 452 453(()=>{const m=window.Syvo.Cart=new SyvoModule("Cart",z);function z(n){const x={selector:"[data-property=cart]",addons:{addon:{selector:"[data-addon-product-id]",attr:"data-addon-product-id",addButton:{selector:"[data-trigger=add-addon-product]",action:"",addClass:"common-cart__addon__preview__picture__action--add",addedClass:"common-cart__addon__preview__picture__action--added disabled"}},previews:{listSelector:".common-cart__addon__previews__list > .list",slider:{slidesToShow:1,slidesToScroll:1,infinite:!0,dots:!1,arrows:!0,prevArrow:"<div class='slick-arrow slick-prev products-arrow'><span class='arrow'></span></div>",nextArrow:"<div class='slick-arrow slick-next products-arrow'><span class='arrow'></span></div>"}},details:{listSelector:".common-cart__addon__details__list > .list",slider:{dots:!1,arrows:!1,infinite:!0,slidesToShow:1,slidesToScroll:1}}},sidebar:{parent:{selector:"[data-property=sticky-submit-parent]"},target:{selector:"[data-property=sticky-submit]"}}};m.settings=$.extend(!0,{},x,n),m.$cart=$(m.settings.selector),Common.notificationsInit(),m.settings.addons&&N(),P(),$("[data-property='remove-cart-item']").on("click",t=>{if(confirm("Do you really want to remove current product from cart?")===!0){const e=$(t.target).closest("[data-cart-item-id]").attr("data-cart-item-id");$.ajax({url:n.urls.remove,type:"post",data:{cartItemId:e}}).always(()=>{window.location.href=n.urls.main})}}),$.modal&&$.modal.BEFORE_OPEN&&($("[data-property='remove-button']").on("click",t=>{t.preventDefault();const a=$(t.currentTarget),e=a.attr("href"),o=$("[data-property='remove-cart-item-id']"),d=$("[data-property='remove-product-id']"),l=a.closest("[data-cart-item-id]").attr("data-cart-item-id");o.val(l),d.val(a.data("productId")),$(e).modal()}),$("[data-property='remove-tryon-button']").on("click",t=>{t.preventDefault();const a=$(t.currentTarget),e=a.attr("href"),o=$("[data-property='tryon-kit-item-id']"),d=a.closest("[data-cart-item-id]").attr("data-cart-item-id");o.val(d),$(e).modal()}),$("[data-trigger='confirm-delete-tryon-close']").on("click",t=>{t.preventDefault(),$.modal.close()})),$("[data-property='checkout']").on("click",t=>{window.location.href=n.urls.checkout}),$("[data-property='edit-wishlist']").on("click",t=>{const e=$(t.currentTarget).closest("[data-stock-id]");$.get(n.urls.getSizesColors,{stockId:e.data("stockId")}).done(o=>{const d=e.find(n.controls.color);d.replaceWith(_(n.controls.color,o.colors,d.text()));const l=e.find(n.controls.size);l.replaceWith(_(n.controls.size,o.sizes,l.text()));
453const c=e.find(n.controls.quantity);c.replaceWith(_(n.controls.quantity,[1,2,3,4,5,6,7,8,9,10],c.text()))}),e.find("[data-property='edit-wishlist']").hide(),e.find("[data-property='cancel-edit-wishlist']").show(),e.find("[data-property='save-wishlist']").show()}),$("[data-property='cancel-edit-wishlist']").on("click",t=>{const e=$(t.currentTarget).closest("[data-stock-id]");$.get(n.urls.get,{stockId:e.data("stockId")}).done(o=>{e.find(n.controls.color).replaceWith(I(n.controls.color,o.color)),e.find(n.controls.size).replaceWith(I(n.controls.size,o.size)),e.find(n.controls.quantity).replaceWith(I(n.controls.quantity,o.quantity))}),e.find("[data-property='edit-wishlist']").show(),e.find("[data-property='cancel-edit-wishlist']").hide(),e.find("[data-property='save-wishlist']").hide()}),$("[data-property='save-wishlist']").on("click",t=>{const e=$(t.currentTarget).closest("[data-stock-id]"),o=e.find(n.controls.color),d=e.find(n.controls.size),l=e.find(n.controls.quantity),c=e.find("[data-property='price-control']"),y=e.find("[data-property='availability-control']"),k=e.find("[data-property='move-cart']"),C=e.data("productId"),v=e.data("stockId");$.post(n.urls.update,{productId:C,stockId:v,quantity:l.val(),color:o.val(),size:d.val()}).done(r=>{e.data("stockId",r.stockId),e.data("productId",r.productId),e.find("[data-property='stock-id']").val(r.stockId),e.find("[data-property='product-id']").val(r.productId),e.find("[data-property='remove-button']").data("stockId",r.stockId),o.replaceWith(I(n.controls.color,r.color)),d.replaceWith(I(n.controls.size,r.size)),l.replaceWith(I(n.controls.quantity,r.quantity)),c.text("$"+r.price),y.text(B(r.availability,r.availableDate,k))}),e.find("[data-property='edit-wishlist']").show(),e.find("[data-property='cancel-edit-wishlist']").hide(),e.find("[data-property='save-wishlist']").hide()}),$("[data-action='remove-parent']").on("click",t=>{const a=$(t.currentTarget);t.preventDefault(),a.parent().remove()}),n.modules&&n.modules.useCartPromotions&&n.modules.useCartPromotions==!0&&$("[data-action='update-promo-item']").on("click",t=>{const e=$(t.currentTarget).data("stockId");$.ajax({method:"GET",data:{stockId:e},success:o=>{A(o,e)},url:n.urls.getStocksForUpdatePromoItem})});function P(){if(!m.settings.sidebar||!m.settings.sidebar.parent||!m.settings.sidebar.target)return;const t=$(window),e=$(m.settings.sidebar.target.selector).closest(m.settings.sidebar.parent.selector);let o=0;t.on("syvo_fixedHeader:onCalculate",d),e.on("syvo_sticky_submit:inited syvo_sticky_submit:screenTopTouchedTop",c=>{l($(c.currentTarget)).css("top",o)}),e.on("syvo_sticky_submit:destroyed syvo_sticky_submit:screenTopUnTouchedTop",c=>{l($(c.currentTarget)).css("top","")});function d(c,y,k){o=k}function l(c){return c.find(m.settings.sidebar.target.selector)}}function N(){const t={init:e,reinit:d,destroy:o};let a=!1;return e();function e(r){if(t.settings=$.extend(!0,{},m.settings.addons,r||{}),!t.settings.addon||!t.settings.addon.addButton||!t.settings.previews||!t.settings.details)return;f(),w(),g();function f(){l(),t.$previewList=$(t.settings.previews.listSelector),t.$detailsList=$(t.settings.details.listSelector)}function g(){t.$previewList.slick(t.settings.previews.slider),t.$detailsList.slick(t.settings.details.slider),C()}function w(){t.$previewList.on("setPosition",c),t.$previewList.on("click",t.settings.addon.addButton.selector,y)}return t}function o(){r(),f(),g();function r(){t.$previewList.off("setPosition",c),t.$previewList.off("click",t.settings.addon.addButton.selector,y)}function f(){t.$previewList.slick("unslick"),t.$detailsList.slick("unslick")}function g(){t.$previewList=$(),t.$detailsList=$()}return t}function d(r){return o(),e(r)}function l(){!t.settings.previews.listSelector||!t.settings.previews.slider||!t.settings.details.listSelector||!t.settings.details.slider||(t.settings.previews.slider.asNavFor=t.settings.details.listSelector,t.settings.details.slider.asNavFor=t.settings.previews.listSelector)}function c(r,f){Common.setRelatedArrowsPosition(f,".product-image")}function y(r){const f=$(r.currentTarget);if(!a&&!k(f)){a=!0;const g=f.attr(t.settings.addon.attr);g&&(Common.showLoader(),v(f),$.ajax({url:t.settings.addon.addButton.action,t
453ype:"post",data:{addOnProductId:g}}).done(()=>{location.href=n.urls.main}).fail(()=>{v(f,!1)}).always(()=>{a=!1,Common.hideLoader()}))}}function k(r){return r.hasClass(t.settings.addon.addButton.addedClass)}function C(){const r=t.$previewList.find(t.settings.addon.addButton.selector);r.length!==0&&r.each((f,g)=>{const w=$(g),b=w.attr(t.settings.addon.attr),S=m.$cart.find(t.settings.addon.selector).filter((u,h)=>{const p=$(h).attr(t.settings.addon.attr);return b===p});v(w,S.length>0)})}function v(r,f=!0){r.removeClass(t.settings.addon.addButton.addClass),r.removeClass(t.settings.addon.addButton.addedClass),f?r.addClass(t.settings.addon.addButton.addedClass):r.addClass(t.settings.addon.addButton.addClass)}}function A(t,a){t=Common.toCamel(t);const e=t.stocks,o=t.currentStock,d=$("#update-cart-promo-item-modal"),l=d.find("[data-property='colors']"),c=d.find("[data-property='sizes']"),y=$("#update-cart-promo-item-form"),k=y.find("input[type='hidden'][name='currentStockId']"),C=y.find("input[type='hidden'][name='newStockId']"),v=b(e),r=S(e);f(),d.modal("show");function f(){k.val(o.id),c.closest("[data-property='select-holder']").show(),c.closest("[data-property='select-holder']").show(),r.length===0&&c.closest("[data-property='select-holder']").hide(),v.length===0&&l.closest("[data-property='select-holder']").hide(),w(!0),w(!1),l.off("change"),l.on("change",()=>{g(!1)}),c.off("change"),c.on("change",()=>{g(!0)}),l.val(o.colorName),l.trigger("change")}function g(u){u?o.size=c.val():o.colorName=l.val();const h={full:()=>e.filter(i=>i.size==o.size&&i.colorName==o.colorName),size:e.filter(i=>i.size==o.size),color:e.filter(i=>i.colorName==o.colorName)};let p=u?v:r;p.forEach(i=>{i.enable=h[u?"size":"color"].filter(s=>u&&s.colorName==i.name||!u&&s.size==i.name).length>0,i.name==o[u?"colorName":"size"]&&(i.enable||(o[u?"colorName":"size"]=null))}),p=u?r:v,p.forEach(i=>{i.enable=h[u?"color":"size"].filter(s=>!u&&s.colorName==i.name||u&&s.size==i.name).length>0}),w(u),r.length>0&&(o.size=c.val()),v.length>0&&(o.colorName=l.val()),C.val(h.full()[0].id)}function w(u){const p=(u?v:r).map(s=>$("<option></option>").attr("value",s.name).attr("disabled",!s.enable).text(s.name)),i=u?l:c;i.empty(),i.append(p),l.val(o.colorName),c.val(o.size),i.trigger("refresh")}function b(u){const h=u.filter(s=>s.colorName!=null).map(s=>({name:s.colorName,colorHex:s.colorHex,enable:!0})),p=[];h.forEach(s=>{p[s.name]=s});const i=[];for(let s in p)p.hasOwnProperty(s)&&i.push(p[s]);return i}function S(u){const h=u.filter(s=>s.size!=null).map(s=>({name:s.size,order:s.sizeOrder,enable:!0})),p=[];h.forEach(s=>{p[s.name]=s});let i=[];for(let s in p)p.hasOwnProperty(s)&&i.push(p[s]);return i=i.sort((s,O)=>s.order-O.order),i}}function _(t,a,e){let o="<select "+T(t)+">";for(let d=0;d<a.length;d++)e==a[d]?o+='<option value="'+a[d]+'" selected>'+a[d]+"</option>":o+='<option value="'+a[d]+'">'+a[d]+"</option>";return o+="</select>",o}function I(t,a){return"<span "+T(t)+">"+a+"</span>"}function T(t){return t.replace("[","").replace("]","")}function B(t,a,e){switch(e.removeClass("disabled").prop("disabled",!1),t){case 1:return"Available Online";case 2:return"Available in Stock";case 3:return"Available in Stock and Online";case 4:return"Available Date: "+a;default:return e.addClass("disabled").prop("disabled",!0),"Out of Stock"}}}})(); 454 455(function(){const qe=window.Syvo.Checkout_Billing=new SyvoModule("Checkout_Billing",ie);function ie(l){HistoryHelper.removeParamFromUrlAndHistory("an");const m=$("ul.list-error"),E=$("[data-form='promocode']"),S=$("[data-property='promocode']"),R=$("[data-parent='promolist']"),k=$("[data-property='promolist']"),_="[data-trigger='promolist-remove']",se=` 456 <div class="list-item" data-trigger="promolist-remove" data-promo-code="{0}"> 457 <label class="chv2-promo"> 458 <div class="chv2-promo__title"> 459 <i class="icon icon-syvo icon-price-tag" 460 aria-hidden="true"></i> 461 <span>{1}</span> 462 </div> 463 <div class="chv2-promo__icon"> 464 <i class="icon icon-syvo icon-close-x" 465 aria-hidden="true"></i> 466 </div> 467 </label> 468 </div>`,J=E.find("[data-msg='success']"),K=E.find("[data-msg='fail']"),v=$("[data-form='paymentform']"),ce=$("[data-property='grandtotal-price']"),Y=$("[data-parent='promo']"),le=$("[data-property='promo']"),de=$("[data-property='tax']"),me=$("[data-property='shipping-price']"),D=$("[data-trigger='disclaimer']"),W=$("[data-property='disclaimer-error']"),L=$("[data-trigger='additional-disclaimer']"),T=$(".pay-methods-list");let C=!1;const pe=l.availablePayMethods||[],fe=l.currentPayMethods||pe[0],G=$("[data-property='eventtype']"),B=$("[data-property='highschool']"),h=$("[data-property='eventday']"),N=$("[data-property='eventmonth']"),F=$("[data-property='eventyear']"),ue=l.showEventType||!1,A=l.typesWithHighSch
468ool||[],he=l.showHighSchool||!1,U="stc_",M=$(".stc"),ye=$("[data-property=cardnumber]"),ge=$("[data-property=cardmonth]"),$e=$("[data-property=cardyear]"),ve=$("[data-property=cardcode]"),ze=$("[data-property=firstName]"),Re=$("[data-property=lastName]"),Ce=$("[data-property=cardholder]"),O={card:0,payPal:2,afterPay:4,applePay:6,klarna:8};let p,w,Q,X;const I=l.order;let P=!1,Z=!1;E.submit(be),k.on("click",_,ke),v.submit(Se),v.find('input:not([type="submit"])').keydown(Te),we(),Ie(),T.find("input:radio").change(Ee),T.find("input[value='"+fe+"']").prop("checked",!0).change(),$(window).trigger("products:changePrice",[$("[data-price][data-property=grandtotal-price]").attr("data-price")]),je(),G.change(re),H(),he&&(ue?re():B.show()),Oe(),Ve(),_e(),xe(),b();function we(){if(typeof Stripe!="undefined"){let c=function(){const d=$(".hidden-input-example input");return{base:{color:d.css("color"),lineHeight:d.css("line-height"),fontWeight:d.css("font-weight"),fontFamily:d.css("font-family"),fontSize:d.css("font-size"),letterSpacing:d.css("letter-spacing")}}};var e=c;const t={locale:"en",apiVersion:"2020-08-27"};l.stripe.clientId&&(t.stripeAccount=l.stripe.clientId),p=p||Stripe(l.stripe.publicKey,t);const n=c(),o=p.elements({fonts:Common.getAllGoogleFonts().map(d=>({cssSrc:d}))}),a=o.create("cardNumber",{style:n});a.mount("#stripe-card-number"),o.create("cardExpiry",{style:n}).mount("#stripe-card-date"),o.create("cardCvc",{style:n}).mount("#stripe-card-cvc"),$("#btn-pay-stripe").click(d=>{d.preventDefault(),m.empty();const y=[v.valid(),j(),q()];z(),!y.some(f=>!f)&&(Common.showLoader(),p.createPaymentMethod({type:"card",card:a}).then(f=>{if(f.error){const u=f.error.message.indexOf("The provided key")===-1?"Your card was declined":"Something was wrong";m.append($("<li/>",{text:u})),Common.hideLoader()}else $.ajax({url:l.urls.stripeIntent,type:"post",data:{paymentId:f.paymentMethod.id},dataType:"json",success:u=>{g(null,{"paymentInfo.stripeIntent":u.intent},u.clientSecret)},error:function(u){const Ue=V(u);m.append($("<li/>",{text:Ue})),Common.hideLoader()}})},()=>{Common.hideLoader()}))})}}function Ie(){if(typeof Stripe!="undefined"){const e={locale:"en",apiVersion:"2020-08-27"};l.stripe.clientId&&(e.stripeAccount=l.stripe.clientId),p=p||Stripe(l.stripe.publicKey,e);const t=T.find(".form-row").filter(":has(.method-applepay)"),n=t.next().filter("hr"),o=$("#btn-pay-applepay");if(o.addClass("hide"),typeof window.ApplePaySession!="undefined"){w=p.paymentRequest({country:"US",currency:I.currency.toLowerCase(),total:{label:"Order #"+I.id,amount:parseInt(I.grandTotal*100)}});const r=p.elements().create("paymentRequestButton",{paymentRequest:w});r.on("click",function(i){m.empty();const s=[v.valid(),j(),q()];if(z(),s.some(c=>!c)){i.preventDefault();return}Common.showLoader()}),w.on("cancel",function(){Common.hideLoader()}),w.canMakePayment().then(function(i){i?(r.mount("#btn-pay-applepay"),w.on("paymentmethod",function(s){p.confirmCardPayment(Q,{payment_method:s.paymentMethod.id},{handleActions:!1}).then(function(c){c.error?(s.complete("fail"),m.append($("<li/>",{text:c.error}))):(s.complete("success"),g(null,{"paymentInfo.stripeIntent":c.paymentIntent.id}))})})):(t.remove(),n.remove(),o.remove())})}}}function Je(){}let x=!1;function Pe(){x||(Common.showLoader(),x=!0,$.ajax({url:l.urls.stripeIntent,type:"post",dataType:"json",success:function(e){Q=e.clientSecret,X=e.intent,Common.hideLoader()},error:function(e){try{const t=e.responseJSON;t.message&&m.append($("<li/>",{text:t.message}))}catch(t){m.append($("<li/>",{text:"Something was wrong"}))}Common.hideLoader(),x=!1}}))}function xe(){window.addEventListener?window.addEventListener("message",e,!1):window.attachEvent&&window.attachEvent("onmessage",e);function e(t){try{JSON.parse(t.data).result==="error"&&(Common.hideLoader(),P=!1)}catch(n){}}}function Ee(){$(".btn-pay").addClass("hide");const e=T.find("input:radio:checked"),t=e.attr("id"),n=parseInt(e.val());$(".btn-"+t).removeClass("hide"),n===O.applePay&&Pe()}function Se(e){e.preventDefault(),m.empty();const t=[j(),q()];return z(),t.some(n=>!n)||Fe(),!1}function j(){if(l.useDisclaimer&&D.length){if(!D.prop("checked"))return W.show(),!1;W.hide()}return!0}function q(){if(L.length){let e=!0;if(L.each((t,n)=>{const o=$(n);ee(o)||(e=!1)}),!e)return!1}return!0}function ee(e){const t=$(`[data-valmsg-for='${e.prop("name")}']`);return e.prop("checked")?(t.hide(),!0):(t.show(),!1)}function z(){Z!==!0&&(l.useDisclaimer&&D&&D.on("change",j),L.length&&L.on("change",e=>{const t=$(e.currentTarget);ee(t)}),Z=!0)}function Te(e){if(e.keyCode===13)return e.preventDefault(),!1}async function be(e){var t;if(e.preventDefault(),(t=S.val())!=null&&t.trim()&&!C){C=!0;const n=Common.serializeFormToObject(E);Common.showLoader();const o=await Common.validateCaptcha();o&&(n["g-recaptcha-response"]=o),$.ajax({dataType:"json",type:"post",url:l.urls.setPromo,data:n}).done(a=>{const r=a.message,i=a.promoTotalAmount,s=a.tax,c=a.shippingAmount,d=a.grandTotal,y=a.grandTotalAmount,f=a.code;te(r,i,s,c,d,y).then(()=>{Le(f)})}).fail(a=>{var s;const r=V(a),i=(s=a.responseJSON)==null?void 0:s.redirectUrl;if(i){location.href=i;return}ne(r)}).always(()=>{x||Common.hideLoader(),C=!1,S.val(null),S.change(),b()})}}async function ke(e){if(e.preventDefault(),!C){const t=$(e.currentTarget),n=oe(t),o=Common.serializeFormToObject(E);o.Code=n,C=!0,Common.showLoader();const a=await Common.validateCaptcha();a&&(o["g-recaptcha-response"]=a),$.ajax({dataType:"json",type:"delete",url:l.urls.removePromo,data:o}).done(r=>{const i=r.message,s=r.promoTotalAmount,c=r.tax,d=r.shippingAmount,y=r.grandTotal,f=r.grandTotalAmount;te(i,s,c,d,y,f).then(()=>{Ne(n)})}).fail(r=>{var c;const i=V(r),s=(c=r.responseJSON)==null?void 0:c.redirectUrl;if(s){location.href=s;return}ne(i)}).always(()=>{x||Common.hideLoader(),C=!1,S.val(null),S.change(),b()})}}function te(e,t,n,o,a,r){return new Promise((i,s)=>
468{le.text(t),de.text(n),me.text(o),ce.text(a),I.grandTotal=r,De(e),$(window).trigger("products:changePrice",[r]),T.find("input:radio:checked").change(),x?(w.update({total:{amount:parseInt(r*100),label:"Order #"+I.id}}),$.ajax({url:l.urls.stripeIntentUpdate,dataType:"json",type:"post",data:{intent:X}}).done(()=>{i()}).fail(()=>{s()}).always(()=>{Common.hideLoader()})):i()})}function De(e){K.hide(),J.text(e).show()}function ne(e){J.hide(),K.text(e).show()}function b(){return k.find(_).length===0?(R.hide(),Y.hide(),!1):(R.show(),Y.show(),!0)}function Le(e){const t=Common.stringFormat(se,e,e);k.append(t),b()}function Ne(e){k.find(_).filter((n,o)=>oe($(o))===e).remove(),b()}function oe(e){return e.attr("data-promo-code")}function Fe(e,t){t=t||{};const n=$("[name='PaymentInfo.PaymentType']:checked").val()-0;if(v.valid()&&!P){if(P=!0,Common.showLoader(),n===O.afterPay){g(function(o){AfterPay.initialize({countryCode:"US"}),AfterPay.redirect({token:o})});return}else if(n===O.klarna){window.klarnaLoaded&&Klarna.Payments.authorize(null,null,function(o){o.approved?(t=t||{},t["PaymentInfo.KlarnaAuthorizationToken"]=o.authorization_token,g(e,t)):o.error?m.append($("<li/>",{text:"Something was wrong"})):Common.hideLoader()});return}else if(n===O.card){if(typeof Accept=="undefined"){m.append($("<li/>",{text:"Something was wrong"})),P=!1,Common.hideLoader();return}Ae(function(o){t["PaymentInfo.CardInfo.OpaqueDataDescriptor"]=o.dataDescriptor,t["PaymentInfo.CardInfo.OpaqueDataValue"]=o.dataValue,g(e,t)});return}g(e,t)}}function Ae(e){const t=l.authNet||{},n={cardNumber:(ye.val()||"").replace(/\s/g,""),month:("0"+ge.val()).slice(-2),year:$e.val(),cardCode:ve.val()},o=Ce.val();o&&(n.fullName=o),Accept.dispatchData({authData:{apiLoginID:t.apiLoginId,clientKey:t.clientKey},cardData:n},function(a){a.messages.resultCode==="Error"?($.each(a.messages.message,function(r,i){i.text&&m.append($("<li/>",{text:i.text}))}),P=!1,Common.hideLoader()):e(a.opaqueData)})}function g(e,t,n){Common.validateCaptcha().then(o=>{Me(e,t,o,n)})}function Me(e,t,n,o){const a=Common.serializeFormToObject(v);if(delete a["PaymentInfo.CardInfo.CardNumber"],delete a["PaymentInfo.CardInfo.Month"],delete a["PaymentInfo.CardInfo.Year"],delete a["PaymentInfo.CardInfo.SecurityCode"],delete a["PaymentInfo.CardInfo.CardHolder"],delete a.EventDateValidationProxy,n&&(a["g-recaptcha-response"]=n),a.ClientOrderTotalPrice=I.grandTotal,typeof t=="object")for(let r in t)t.hasOwnProperty(r)&&(a[r]=t[r]);$.ajax({dataType:"json",type:"post",url:l.urls.billing,data:a,success:function(r){if(Be(),typeof e!="function"){const i=r.redirectUrl||r.specialRedirectUrl;i&&(location.href=i)}else e(r.additionalData)},error:function(r){try{const i=r.responseJSON;if(i.details&&i.details.find(s=>s==="requires_action")){p.handleCardAction(o).then(s=>{s.error?Common.hideLoader():g(null,{"paymentInfo.stripeIntent":t["paymentInfo.stripeIntent"]})});return}if(i.redirectUrl){location.href=i.redirectUrl;return}if(i.details)$.each(i.details,function(s,c){c&&m.append($("<li/>",{text:c}))});else{const s=V(r);m.append($("<li/>",{text:s}))}}catch(i){m.append($("<li/>",{text:"Something was wrong"}))}P=!1,Common.hideLoader()}})}function Oe(){h.change(H),N.change(H),F.change(H);const e=$(h).add(N).add(F);e.each((a,r)=>{const i=$(r),s=t(i),c=n(i);ae(s,c)}),e.on("change",a=>{const r=$(a.currentTarget),i=t(r),s=n(r);ae(i,s),i.valid(),e.each((c,d)=>{try{$(d).valid()}catch(y){console.error(y)}})});function t(a){return o(a).find("[data-input=eventdate]")}function n(a){const i=o(a).find(e),s={};i.each((f,u)=>{s[$(u).attr("data-property")]=parseInt($(u).val())});const c=s.eventmonth,d=s.eventday;return{year:s.eventyear,month:c,day:d}}function o(a){return a.parents("[data-parent=eventdate]")}}function ae(e,t){if(!t||isNaN(t.month)||isNaN(t.day)||isNaN(t.year)){e.val("");return}const n=o=>String(o).padStart(2,"0");e.val(`${t.year}-${n(t.month)}-${n(t.day)}`)}function je(){const e=new Date($.cookie("eventDate"));isNaN(e.getTime())||(e<=new Date?$.removeCookie("eventDate"):(N.val(e.getMonth()+1),h.val(e.getDate()),F.val(e.getFullYear())))}
468function re(){!(A!=null&&A.length)||A.indexOf(parseInt(G.val()))!==-1?B.show():B.hide()}function H(){const e=parseInt(h.val()),t=parseInt(N.val()),n=parseInt(F.val()),o=He(t,isNaN(n)?new Date().getFullYear():n);!isNaN(e)&&o<e&&h.val(null);const a=h.find("option").not(":disabled").length;if(a>o)for(var r=o+1;;r++){const i=h.find("option[value='"+r+"']");if(i.length===0)break;i.remove()}else if(a<o)for(r=a+1;r<=o;r++)h.append("<option value='"+r+"'>"+r+"</option>")}function He(e,t){return new Date(t,e,0).getDate()}function Ve(){M.filter("textarea, input").blur(e),M.filter("select").change(e);function e(){const t=$(this),n=t.attr("name");$.cookie(U+n,t.val(),{expires:7,path:"/"})}}function _e(){$.each(M,function(e,t){const n=$(t),o=n.attr("name"),a=$.cookie(U+o);a&&(n.val(a),n.change())})}function Be(){try{$.each(M,function(e,t){const o=$(t).attr("name");$.removeCookie(U+o,{path:"/"})}),$.removeCookie("_opck")}catch(e){}}function V(e){var t,n;return e.status===403&&((t=e.responseJSON)==null?void 0:t.message)==="Forbidden"?"We couldn't submit your form because this connection was flagged as unsafe. Please switch to a secure network and try again":((n=e.responseJSON)==null?void 0:n.message)||"Something was wrong"}}})(); 469 470(()=>{const k=window.Syvo.Checkout_Country_States=new SyvoModule("Checkout_Country_States",y);function y(l){const h=["CA","UK"],f=l.stateTypes||{},v=l.zipTypes||{},s=$("[data-property-change='country']"),t=$("[data-property-change='state']"),d=$("[data-property-block='state']"),g=$("[data-property-block='county']"),n=$("[data-property-change='zipcode']"),r=$("[data-property='eventmonth']"),z=$("[data-state='hidden']");let p=$();s.change(function(){const e=$(this),o=e.val(),a=e.find("option[value="+o+"]").attr("data-statefieldtype"),c=e.find("option[value="+o+"]").attr("data-zipcodefieldtype"),C=t.val();p.length===0&&(p=t.find("option")),t.empty();const i=p.filter("[value=''], [data-countryid="+o+"]");t.append(i),t.val(i.filter("[value="+C+"]").attr("value")),i.not("[value='']").length===0?d.hide():d.show(),g[a==3?"show":"hide"](),t.attr("placeholder",f[a]),t.refreshfv2(),t.change();var T=s.find("option:selected").attr("data-country-code");h.indexOf(T)>=0?n.on("change keyup",u):n.off("change keyup",u),n.change(),n.attr("placeholder",v[c]),n.refreshfv2(),r.length&&r.val()&&r.change()}),s.change();function u(e){const o=e.currentTarget.selectionStart,a=e.currentTarget.selectionEnd,c=$(e.currentTarget);c.val(c.val().toUpperCase()),e.currentTarget.setSelectionRange(o,a)}}})(); 471 472(function(){const u=window.Syvo.Checkout_PayPalExpress=new SyvoModule("Checkout_PayPalExpress",l);function l(r){const t=window.paypal;if(!t){console.error("Paypal not loaded");return}t.Buttons({style:{layout:"horizontal",color:"gold",shape:"rect",label:"paypal",tagline:!1},createOrder:function(o,n){return a({method:"get",url:r.url.createOrder}).then(function(e){return e.orderId})},onApprove:function(o,n){return a({method:"post",url:r.url.express,data:o}).then(function(e){Common.showLoader(),e.redirectUrl&&(location.href=e.redirectUrl)},function(e){})}}).render("#paypal-express-button");function a(o){return new Promise(function(n,e){$.ajax(o).done(n).fail(e)})}}})(); 473 474(function(){const w=window.Syvo.Checkout_Shipping=new SyvoModule("Checkout_Shipping",m);function m(u){HistoryHelper.removeParamFromUrlAndHistory("an");const l=$("[data-property='shipping-form']"),n=$("ul.list-error");let r=!1;l.submit(f),$(window).trigger("products:changePrice",[$("[data-price][data-property=grandtotal-price]").attr("data-price")]);function f(o){o.preventDefault(),n.empty(),Common.validateCaptcha().then(t=>{g(o,t)})}function g(o,t){const i=$(o.currentTarget);if(r=r||!1,i.valid()&&!r){r=!0,Common.showLoader();const a=Common.serializeFormToObject(i);t&&(a["g-recaptcha-response"]=t),$.ajax({dataType:"json",type:"post",url:u.urls.shipping,data:a,success:function(e){if(e.redirectUrl){location.href=e.redirectUrl;return}Common.hideLoader(),r=!1},error:function(e){var c,p,d;const h=e.status===403&&((c=e.responseJSON)==null?void 0:c.message)==="Forbidden"?"We couldn\u2019t submit your form because this connection was flagged as unsafe. Please switch to a secure network and try again":((p=e.responseJSON)==null?void 0:p.message)||"Something was wrong",s=(d=e.responseJSON)==null?void 0:d.redirectUrl;if(s){location.href=s;return}n.append($("<li/>",{text:h})),Common.hideLoader(),r=!1}})}}}})(); 475 476(()=>{const E=window.Syvo.Checkout_ShippingMethod=new SyvoModule("Checkout_ShippingMethod",u);function u(s){HistoryHelper.removeParamFromUrlAndHistory("an");const g=s.shippingMethods||[],f=$("[data-property='subtotal']"),y=$("[data-property='tax']"),M=$("[data-property='promo']"),S=$("[data-property='shipping-price']"),T=$("[data-property='grandtotal-price']"),i=$("[data-property='shippingmethod']"),w=$("[data-property='shippingmethodform']"),d=$("ul.list-error");let n=!1;i.change(p),w.submit(x),p();function x(r){r.preventDefault(),d.empty(),Common.validateCaptcha().then(t=>{b(r,t)})}function b(r,t){const e=$(r.currentTarget);if(n=n||!1,e.valid()&&!n){n=!0,Common.showLoader();const a=Common.serializeFormToObject(e);t&&(a["g-recaptcha-response"]=t),$.ajax({dataType:"json",type:"post",url:s.urls.shippingMethod,data:a,success:o=>{if(o.redirectUrl){location.href=o.redirectUrl;return}Common.hideLoader(),n=!1},error:o=>{var c,l,m;const C=o.status===403&&((c=o.responseJSON)==null?void 0:c.message)==="Forbidden"?"We couldn\u2019t submit your form because this connection was flagged as unsafe. Please switch to a secure network and try again":((l=o.responseJSON)==null?void 0:l.message)||"Something was wrong",h=(m=o.responseJSON)==null?void 0:m.redirectUrl;if(h){location.href=h;return}d.append($("<li/>",{text:C})),Common.hideLoader(),n=!1}})}}function p(){let r="",t=i.filter(":checked");t.length===0&&(t=i.filter(":eq(0)"),t.prop("checked",!0)),r=t.val();const e=g.find(o=>o.name===r),a=$("[data-price][data-property=grandtotal-price]");e&&(f.text(e.orderInfoWithTheMethod.subTotal),S.text(e.price),y.text(e.orderInfoWithTheMethod.tax),M.text(e.orderInfoWithTheMethod.promo),T.text(e.orderInfoWithTheMethod.total),a.attr("data-price",e.orderInfoWithTheMethod.totalAmount)),$(window).trigger("products:changePrice",[e.orderInfoWithTheMethod.totalAmount])}}})(); 477 478(()=>{const r=window.Syvo.Cart_Popup=new SyvoModule("Cart_Popup",F);r.eventNames.reloadPopup=r.getModuleEventName("reloadPopup");function F(N){const O={parent:{selector:"[data-parent=common-cart-popup]"}
478,control:{selector:"[data-control=common-cart-popup]",showAttr:"data-show-action",hideAttr:"data-hide-action",debounce:0},target:{selector:"[data-property=common-cart-popup]",showClass:"show",hideClass:"hide",previews:{selector:"[data-property=common-cart-popup-previews] > .list",slider:{slidesToShow:3,slidesToScroll:1,arrows:!1,dots:!1,focusOnSelect:!0,infinite:!0,prevArrow:"<div class='slick-arrow slick-prev products-arrow'><span class='arrow'></span></div>",nextArrow:"<div class='slick-arrow slick-next products-arrow'><span class='arrow'></span></div>",autoplay:!0,autoplaySpeed:1e3}}},actions:{getCartPopup:""}},s=$(window),n={};let u=!1;r.init=a,r.destroy=p,r.reload=I,a();function a(t){if(n.settings=$.extend(!0,{},O,t||N),!n.settings.parent||!n.settings.control||!n.settings.target)return;e(),o(),d();function e(){n.controlShowEventHandler=M,n.controlHideEventHandler=R,typeof $.fn.dropdown=="function"&&(n.controlShowEventHandler=c,n.controlHideEventHandler=V),n.$controls=$(n.settings.control.selector),n.$parents=$(n.settings.parent.selector),f()}function o(){w(),s.on(r.eventNames.reloadPopup,C),s.on(window.Syvo.TryOn_Widget.eventNames.onAfterTryOnKitRemovedFromCart,S)}function d(){g()}}function p(){o(),t(),e();function t(){h(),s.off(r.eventNames.reloadPopup,C),s.off(window.Syvo.TryOn_Widget.eventNames.onAfterTryOnKitRemovedFromCart,S)}function e(){v(),n.$controls=$(),n.$parents=$(),n.controlShowEventHandler=k,n.controlHideEventHandler=k}function o(){m()}}function I(){p(),a()}function f(){n.cartPopups=[],$.each(n.$controls,(t,e)=>{const o=$(e);n.cartPopups.push({showEvent:o.attr(n.settings.control.showAttr),hideEvent:o.attr(n.settings.control.hideAttr),$control:o,$parent:T(o),$target:K(o)})})}function w(){!n.cartPopups||n.cartPopups.length===0||n.cartPopups.forEach(t=>{!t.showEvent&&!t.hideEvent||(t.showEvent&&(t.$parent.on(t.showEvent,n.controlShowEventHandler),n.controlShowEventHandler===c&&t.$parent.on("show.bs.dropdown",E)),t.hideEvent&&t.$parent.on(t.hideEvent,n.controlHideEventHandler))})}function g(){n.settings.target.previews&&n.$parents.find(n.settings.target.previews.selector).slick(n.settings.target.previews.slider)}function v(){n.cartPopups=null}function h(){!n.cartPopups||n.cartPopups.length===0||n.cartPopups.forEach(t=>{!t.showEvent&&!t.hideEvent||(t.showEvent&&(t.$parent.off(t.showEvent,n.controlShowEventHandler),n.controlShowEventHandler===c&&t.$parent.off("show.bs.dropdown",E)),t.hideEvent&&t.$parent.off(t.hideEvent,n.controlHideEventHandler))})}function m(){n.settings.target.previews&&n.$parents.find(n.settings.target.previews.selector).slick("unslick")}function L(){f(),w(),g()}function x(){h(),m(),v()}function c(t){t.preventDefault();const e=$(t.currentTarget);$.getCurrentViewport().width<992&&t.type==="mouseenter"&&d(),i(G,e);function d(){document.addEventListener("click",P,{capture:!0,once:!0}),setTimeout(()=>document.removeEventListener("click",P,!0),1e3);function P(A){A.preventDefault(),A.stopPropagation()}}}function E(t){const e=$(t.currentTarget);H(e)}function V(t){return t.preventDefault(),i(W,$(t.currentTarget)),!1}function M(t){return t.preventDefault(),i(j,$(t.currentTarget)),!1}function R(t){t.preventDefault(),i(z,$(t.currentTarget))}function C(){y()}function S(){y()}function y(){u||(D(!0),$.ajax({type:"GET",url:n.settings.actions.getCartPopup}).done(t=>{t.content&&_(t.content)}).always(()=>{D(!1)}))}function _(t){x(),n.$parents.find(n.settings.target.selector).remove(),n.$parents.append($(t)),L()}function H(t){if(!n.settings.target.previews)return;const e=t.find(n.settings.target.previews.selector);e.hasClass("slick-initialized")&&e.slick("slickSetOption","","",!0)}function T(t){return t.closest(n.settings.parent.selector)}function K(t){return l(T(t))}function l(t){return t.find(n.settings.target.selector)}function b(t){return t.find(n.settings.control.selector)}function i(t,e){if(typeof t=="function"){if(!n.settings.control.debounce){t(e);return}clearTimeout(n.debounceTimeout),n.debounceTimeout=setTimeout(()=>{t(e)},n.settings.control.debounce)}}function G(t){const e=b(t);e.length!==0&&(t.hasClass("open")||e.dropdown("toggle"))}function W(t){const e=b(t);e.length!==0&&t.hasClass("open")&&e.dropdown("toggle").blur()}function j(t){const e=l(t);e.length!==0&&(e.removeClass(n.settings.target.hideClass).addClass(n.settings.target.showClass),H(t))}function z(t){const e=l(t);e.length!==0&&e.removeClass(n.settings.target.showClass).addClass(n.settings.target.hideClass)}function D(t){t?Common.showLoader():Common.hideLoader(),u=t}function k(){}}})(); 479 480(function(){var O=window.Syvo.Choose_Location=new SyvoModule("Choose_Location",f);function f(d){var v={controls:{selector:"[data-property=location]",dataValueProperty:"data-value",activeClass:"active",action:function(e,n,o){return $.modal.close(),!1}},target:{selector:"#chooseLocation",destroyEvent:"modal:close",callback:function(e,n,o){},showOnce:!0,runOnce:function(e,n,o){o.modal({escapeClose:!1,clickClose:!1,showClose:!1})},cookieKey:"storeLocation"}},t=$(this);t.settings=$.extend(!0,{},v,d),t.currentControl=$();var s=!1;if(!t.settings.controls||!t.settings.target)return;var c=$(t.settings.target.selector),a=$(t.settings.controls.selector);
480t.currentLocation=u(),C(),$.each(a,function(){var e=$(this),n=e.hasClass(t.settings.controls.activeClass);n||k(e)}),a.click(function(e){t.currentControl=$(this);var n=t.currentControl.attr(t.settings.controls.dataValueProperty),o=t.currentControl.hasClass(t.settings.controls.activeClass);o&&!h()&&(e.preventDefault(),l(n))}),c.on(t.settings.target.destroyEvent,function(){l(),y()});function h(){t.settings.controls.action&&typeof t.settings.controls.action=="function"&&t.settings.controls.action(t.currentControl,a,c)}function y(){t.settings.target.callback&&typeof t.settings.target.callback=="function"&&t.settings.target.callback(t.currentControl,a,c)}function C(){t.settings.target.showOnce&&s||p()||(t.settings.target.runOnce&&typeof t.settings.target.runOnce=="function"&&t.settings.target.runOnce(t.currentControl,a,c),s=!0)}function p(){var e=Common.getWindowLocationParameter(t.settings.target.cookieKey,!0);if(e)w();else if(e=m(),!e)return!1;return t.currentLocation===e&&g(e),t.currentLocation===e}function k(e){e.attr("href",K(e.attr("href"),t.settings.target.cookieKey,e.attr(t.settings.controls.dataValueProperty)))}function l(e){e||(e=u()),g(e)}function u(){return a.filter("."+t.settings.controls.activeClass).attr(t.settings.controls.dataValueProperty)}function g(e){t.settings.target.cookieKey&&$.cookie(t.settings.target.cookieKey,e,{expires:30,path:"/"})}function m(){return t.settings.target.cookieKey?$.cookie(t.settings.target.cookieKey):!1}function w(){var e=L(t.settings.target.cookieKey);window.history.replaceState({},document.title,window.location.pathname+e)}function L(e){for(var n=decodeURIComponent(window.location.search.substring(1).trim("?")),o=n.split("&"),r=0;r<o.length;r++){var i=o[r].split("=");if(i[0]===e){n=n.replace("&"+o[r],""),n=n.replace(o[r],"");break}}return n.length>0?"?"+n:""}function K(e,n,o){var r={};r[n]=o;var i=e.indexOf("?")>0?"&":"?";return e+i+$.param(r)}}})(); 481 482(function(){var v=window.Syvo.Color_Circle=new SyvoModule("Color_Circle",L);v.Shapes={CIRCLE:0,RECTANGLE:1};function L(l){var R=l.letter?l.letter:"M",b=l.letterColor?l.letterColor:"#fff",y=l.letterContainer?l.letterContainer:"div",k=l.letterClass?l.letterClass:"color-letter",C=l.shape?l.shape:v.Shapes.CIRCLE,g=l.initialArray;g&&g.length>0&&$(g).each(function(a,i){var s=$(i.selector);s.each(function(r,n){I($(n),i.size)})});function I(a,i){var s=i||null;if(a.data("image")){a.css("background-image","url("+a.data("image")+")"),s&&a.css({width:s+"px",height:s+"px","background-size":s+"px"});return}var r=a.attr("data-color"),n=[];typeof r=="string"&&(r=r.split(";").join(""),r=r.split(","),r.forEach(function(c){n.push({hexFormat:c})})),N(a[0],n,s)}function N(a,i,r){var r=r||22,n=r/2,c=r/2,u=r/2,p=!1;if($.each(i,function(t,e){e.hexFormat==="multi"&&(p=!0)}),p&&(a.appendChild(E()),i=$.grep(i,function(t){return t.hexFormat!=="multi"}),!i||i.length===0)){var A=x();a.appendChild(A),A.appendChild(C===v.Shapes.CIRCLE?S(b):M(b))}if(!i||!a||i.length===0)return;var z=i.length,h=360/i.length,o=0,Y=0,_=0,m=1,w=x();a.appendChild(w),w.appendChild(C===v.Shapes.CIRCLE?S():M()),F();function x(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("viewbox","0 0 "+r+" "+r),t.setAttribute("width",r),t.setAttribute("height",r),t.setAttribute("class","color-circle"),t}function E(){var t=document.createElement(y);return $(t).css("width",r).css("height",r).css("font-size",r*.6).css("top",r*.22),$(t).addClass(k).html(R),t}function d(t){return t*Math.PI/180}function S(t){var e=document.createElementNS("http://www.w3.org/2000/svg","circle");return e.setAttribute("cx",n),e.setAttribute("cy",c),e.setAttribute("r",u),e.setAttribute("stroke","#ccc"),e.setAttribute("stroke-width",1),t?e.setAttribute("fill",t):e.setAttribute("fill",i[0].hexFormat),e}function M(t){var e=document.createElementNS("http://www.w3.org/2000/svg","rect");return e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("width",r),e.setAttribute("height",r),e.setAttribute("stroke","#ccc"),e.setAttribute("stroke-width",1),t?e.setAttribute("fill",t):e.setAttribute("fill",i[0].hexFormat),e}function F(){if(!(o>=z))if(o>0&&i[o].hexFormat==="multi")a.appendChild(E());else{var t=document.createElementNS("http://www.w3.org/2000/svg","g");w.appendChild(t);var e=document.createElementNS("http://www.w3.org/2000/svg","path");t.appendChild(e);
482var f=C===v.Shapes.CIRCLE?j():P();e.setAttribute("d",f),e.setAttribute("fill",i[o].hexFormat),t.setAttribute("transform","rotate("+(h*o+90)+", "+n+","+c+")"),o++,F()}}function P(){var t=u*1.5,e=n+t*Math.cos(d(h)),f=c+t*Math.sin(d(h)),X=["M",n+t," ",c,"A",t,",",t," ",0," ",Math.abs(h)<180?0:1," ",m," ",e,",",f,"L",n,",",c,"z"].join("");return X}function j(){var t=n+u*Math.cos(d(h)),e=c+u*Math.sin(d(h)),f=["M",n+u," ",c,"A",u,",",u," ",0," ",Math.abs(h)<180?0:1," ",m," ",t,",",e,"L",n,",",c,"z"].join("");return f}}}})(); 483 484(function(){var g=window.Syvo.Color_Filter=new SyvoModule("Color_Filter",o);function o(c){var u={filter:{selector:"[data-color]",dataAttribute:"color"},target:{selector:"[data-img-color]",dataAttribute:"img-color",defaultChoice:"[data-img='default']",get:function(l,e,a){if(!l||l.length===0)return null;var n=l.closest(e);if(!n||n.lengh===0)return null;var r=$(n).find(a);return!r||r.lengh===0?null:$(r)}},parent:{selector:"[data-list=images]"}},t=$.extend(!0,{},u,c);if(!(!t.filter||!t.target||!t.parent||!t.target.get||typeof t.target.get!="function")){var f=$(t.filter.selector);f.click(function(){var l=$(this).data(t.filter.dataAttribute);if(!l)return!1;var e=t.target.get($(this),t.parent.selector,t.target.selector);if(!e||e.lengh==0||!e.slick||typeof e.slick!="function")return!1;e.slick("slickFilter",function(n,r){var i=$(r).find(t.target.selector);if(!i||i.length===0)return!1;var s=$(i).data(e.dataAttribute);return s==l});var a=e.slick("getSlick").slideCount;return a===0&&(e.slick("slickUnfilter"),e.slick("slickFilter",function(n,r){var i=$(r).find(t.target.defaultChoice);return i&&i.length!==0})),!1})}}})(); 485 486(()=>{const r=window.Syvo.Color_List=new SyvoModule("Color_List",U);r.eventNames.onSliderSetPosition=r.getModuleEventName("onSliderSetPosition"),r.eventNames.onSliderInit=r.getModuleEventName("onSliderInit"),r.eventNames.onSliderBeforeChange=r.getModuleEventName("onSliderBeforeChange"),r.eventNames.onSliderAfterChange=r.getModuleEventName("onSliderAfterChange"),r.eventNames.onSliderBreakpoint=r.getModuleEventName("onSliderBreakpoint");function U(E){if(typeof $.fn.slick!="function")return;const l=$(window),g=[],O={selector:"[data-list=colors]",colorSelector:"[data-property=product-color]",colorNumber:6,callbacks:{onLazyLoaded:c,onInit:c,onBeforeChange:c,onAfterChange:c,onBreakPoint:c,onSetPosition:c},plugin:{prevArrow:"<div class='list-item slick-arrow slick-prev'><div class='color'><i data-layout-font class='square arrow icon-syvo icon-chevron-left' aria-hidden='true'></i></div></div>",nextArrow:"<div class='list-item slick-arrow slick-next'><div class='color'><i data-layout-font class='square arrow icon-syvo icon-chevron-right' aria-hidden='true'></i></div></div>",infinite:!1,arrows:!0,focusOnSelect:!0},imageColors:{activeClass:"chosen",selector:"[data-trigger=product-image]",mainImageSrcAttr:"product-image",videoSrcAttr:"product-video",slugAttr:"color-slug"}},n={},e=$.extend(!0,{},O,E);if(!e.selector||!e.plugin)return;e.plugin.slidesToShow=e.colorNumber,r.init=u,r.destroy=S,r.reload=M,u();function u(){o(),t(),i();function o(){n.$list=$(e.selector),n.$slider=V(n.$list),n.$parentSlider=n.$slider.parent().closest("[data-list]")}function t(){n.$slider.on("init reInit",h),n.$slider.on("setPosition",w),n.$slider.on("beforeChange",k),n.$slider.on("afterChange",y),n.$slider.on("breakpoint",p),e.imageColors&&(n.$list.on("click",e.imageColors.selector,P),n.$list.on("mouseenter touchstart",e.imageColors.selector,A),l.on(window.Syvo.Product.eventNames.onAfterCatwalkPlayed,I))}function i(){n.$slider.each((s,d)=>{$(d).slick(e.plugin)}),x()}}function S(){t(),o(),i();function o(){n.$slider.each((s,d)=>{const a=$(d).slick("getSlick");a&&a.destroy()}),L()}function t(){n.$slider.off("init reInit",h),n.$slider.off("setPosition",w),n.$slider.off("beforeChange",k),n.$slider.off("afterChange",y),n.$slider.off("breakpoint",p),e.imageColors&&(n.$list.off("click",e.imageColors.selector,P),n.$list.off("mouseenter touchstart",e.imageColors.selector,A),l.off(window.Syvo.Product.eventNames.onAfterCatwalkPlayed,I))}function i(){n.$slider=$(),g.length=0}}function M(){S(),u()}function V(o){return o.filter(function(t,i){return $(i).children().length>e.colorNumber})}function f(o){return $(o.target).is(n.$slider)}function w(o,t){f(o)&&(e.callbacks&&typeof e.callbacks.onSetPosition=="function"&&e.callbacks.onSetPosition(),l.trigger(r.eventNames.onSliderSetPosition,[t]))}function h(o,t){f(o)&&(_(t),e.callbacks&&typeof e.callbacks.onInit=="function"&&e.callbacks.onInit(t),l.trigger(r.eventNames.onSliderInit,[t]))}function k(o,t,i,s){f(o)&&(e.callbacks&&typeof e.callbacks.onBeforeChange=="function"&&e.callbacks.onBeforeChange(t,i,s),l.trigger(r.eventNames.onSliderBeforeChange,[t,i,s]))}function y(o,t,i){f(o)&&(e.callbacks&&typeof e.callbacks.onAfterChange=="function"&&e.callbacks.onAfterChange(t,i),l.trigger(r.eventNames.onSliderAfterChange,[t,i]))}function p(o,t,i){f(o)&&(e.callbacks&&typeof e.callbacks.onBreakPoint=="function"&&e.callbacks.onBreakPoint(t,i),l.trigger(r.eventNames.onSliderBreakp
486oint,[t,i]))}function A(o){const i=$(o.currentTarget).attr(e.imageColors.mainImageSrcAttr);g.indexOf(i)===-1&&($(new Image).attr("src",i),g.push(i))}function P(o){const t=$(o.currentTarget);if(m(t)){const i=t.attr(e.imageColors.mainImageSrcAttr),s=t.attr(e.imageColors.videoSrcAttr),d=t.attr(e.imageColors.slugAttr);l.trigger(window.Syvo.Product.eventNames.setProductColor,{$_el:t,imgUrl:i,videoUrl:s,colorSlug:d})}}function I(o,t){if(!t.$parent)return;const i=t.$parent.is(e.selector)?t.$parent:t.$parent.find(e.selector);v(i),b(i)}function _(o){$(window).trigger("slick:ready")}function x(){if(!e.imageColors)return;window.Syvo.Product.isLoaded()?o():l.one(window.Syvo.Product.eventNames.onAfterLoad,()=>{o()});function o(){$.each(n.$list,(t,i)=>{b($(i))})}}function b(o){const t=window.Syvo.Product.getDefaultVideoUrl(o),i=window.Syvo.Product.getDefaultImageUrl(o),s=o.find(e.colorSelector);$.each(s,(d,C)=>{var N,B;const a=$(C);if(t){if(a.attr((N=e.imageColors)==null?void 0:N.videoSrcAttr)===t)return m(a),!1}else if(a.attr((B=e.imageColors)==null?void 0:B.mainImageSrcAttr)===i)return m(a),!1})}function m(o){var t,i;return o.hasClass((t=e.imageColors)==null?void 0:t.activeClass)?!1:(v(o.closest(e.selector)),o.addClass((i=e.imageColors)==null?void 0:i.activeClass),!0)}function L(){e.imageColors&&$.each(n.$list,(o,t)=>{T($(t))})}function T(o){v(o),l.trigger(window.Syvo.Product.eventNames.resetProductColor,{$_el:o})}function v(o){var i;o.find(e.colorSelector).removeClass((i=e.imageColors)==null?void 0:i.activeClass),l.trigger(window.Syvo.Product.eventNames.resetProductColor,{$_el:o})}function c(){}}})(); 487 488(()=>{const i=window.Syvo.Customer_Demand_Modal=new SyvoModule("Customer_Demand_Modal",d);function d(t){const f={},e={};i.init=u,i.destroy=l,i.reload=a,u();function u(o){e.settings=$.extend(!0,{},f,o||t),n(),m(),C();function n(){e.location={},e.formSubmissionAttemptsCount=0,e.$form=$(t.selectors.form),e.$phone=e.$form.find(t.selectors.phone),e.$phoneCode=e.$form.find(t.selectors.phoneCode),e.$email=e.$form.find(t.selectors.email),e.$zipCode=e.$form.find(t.selectors.zipCode),e.$itemDescription=e.$form.find(t.selectors.itemDescription),e.$submitButton=e.$form.find(t.selectors.submit),e.$submitButtonTitle=e.$form.find(t.selectors.submitButtonTitle),e.$loadingButtonTitle=e.$form.find(t.selectors.loadingButtonTitle),e.$successButtonTitle=e.$form.find(t.selectors.successButtonTitle),e.$successMessage=e.$form.find(t.selectors.successMessage)}function m(){e.$submitButton.on("click",r),e.$form.on("submit",c)}function C(){Common.CustomerDemand.initializePhoneAndZipCodeFromStorage(e),Common.CustomerDemand.initializePhoneCode(e.$phoneCode),Common.CustomerDemand.initializePhoneInputMask(e.$phone,t.phoneFormat),Common.CustomerDemand.initZipCodeAutocomplete(e.$zipCode,t.googleKey,e.area,s=>e.location=s!=null?s:e.location)}}function l(){m(),o(),n();function o(){e.$submitButton.off("click",r),e.$form.off("submit",c)}function n(){e.location=null,e.formSubmissionAttemptsCount=0,e.$form=null,e.$phone=null,e.$phoneCode=null,e.$email=null,e.$zipCode=null,e.$itemDescription=null,e.$submitButton=null,e.$submitButtonTitle=null,e.$loadingButtonTitle=null,e.$successButtonTitle=null,e.$successMessage=null}function m(){e.$phone.inputmask("remove"),e.$zipCode.autocomplete("destroy")}}function a(){l(),u()}function r(){Common.CustomerDemand.triggerEmptyPhoneEvent(e)}function c(o){o.preventDefault(),Common.validateCaptcha().then(n=>Common.CustomerDemand.submitForm(n,e,t.urls.post,t.storeLocatorUrl,t.callbacks))}}})(); 489 490(()=>{const o=window.Syvo.Customer_Demand=new SyvoModule("Customer_Demand",f);o.eventNames.reload=o.getModuleEventName("reload");function f(t){const l=$(document),C={},e={};o.init=i,o.destroy=c,o.reload=u,i();function i(n){e.settings=$.extend(!0,{},C,n||t),m(),s(),b();function m(){e.location={},e.formSubmissionAttemptsCount=0,e.$form=$(t.selectors.form),e.area=Number(e.$form.find(t.selectors.area).val()),e.$phone=e.$form.find(t.selectors.phone),e.$phoneCode=e.$form.find(t.selectors.phoneCode),e.$zipCode=e.$form.find(t.selectors.zipCode),e.$email=e.$form.find(t.selectors.email),e.$itemDescription=e.$form.find(t.selectors.itemDescription),e.$submitButton=e.$form.find(t.selectors.submit),e.$submitButtonTitle=e.$form.find(t.selectors.submitButtonTitle),e.$loadingButtonTitle=e.$form.find(t.selectors.loadingButtonTitle),e.$successButtonTitle=e.$form.find(t.selectors.successButtonTitle),e.$successMessage=e.$form.find(t.selectors.successMessage)}function s(){e.$submitButton.on("click",d),e.$form.on("submit",a),l.on(o.eventNames.reload,u)}function b(){let p={form:e.$form,useSelect2:!0};window.Syvo.Custom_Form.initFormFields(p),Common.CustomerDemand.initializePhoneAndZipCodeFromStorage(e),Common.CustomerDemand.initializePhoneCode(e.$phoneCode,t.phoneCode),Common.CustomerDemand.initializePhoneInputMask(e.$phone,t.phoneFormat),Common.CustomerDemand.initZipCodeAutocomplete(e.$zipCode,t.googleKey,e.area,r=>e.location=r!=null?r:e.location)}}function c(){s(),n(),m();function n(){e.$submitButton.off("click",d),e.$form.off("submit",a),l.off(o.eventNames.reload,u)}function m(){e.location=null,e.formSubmissionAttemptsCount=0,e.$form=null,e.area=null,e.$phone=null,e.$phoneCode=null,e.$email=null,e.$zipCode=null,e.$itemDescription=null,e.$submitButton=null,e.$submitButtonTitle=null,e.$loadingButtonTitle=null,e.$successButtonTitle=null,e.$successMessage=null}function s(){e.$phone.inputmask("remove"),e.$zipCode.autocomplete("destroy")}}function u(){c(),i()}function d(){Common.CustomerDemand.triggerEmptyPhoneEvent(e)}function a(n){n.preventDefault(),Common.validateCaptcha().then(m=>Common.CustomerDemand.submitForm(m,e,t.urls.post,t.storeLocatorUrl,t.callbacks))}}})(); 491 492(function(){const H=window.Syvo.Duty_Calculator=new SyvoModule("Duty_Calculator",m);function m(y){const C={modal:{selector:"[data-property=duty-calculator]",action:"modal:open",statesControl:{selector:"[data-property=state]"},currencyFormat:"[data-currency={0}]"},prices:{pdp:".product-detailed [data-property=price]",pure:"[data-property=pure-price]",exchange:"[data-property=exchange-price]",tax:"[data-property=tax-price]",duty:"[data-property=duty-price]",card:"[data-property=card-price]",total:"[data-property=total-price]"}},r=$.extend({},C,y);if(!r.taxes||r.taxes.length===0||!($.isNumeric(r.luxuryPrice)&&r.luxuryPrice>=0)||!($.isNumeric(r.exchangeRate)&&r.exchangeRate>0)||!($.isNumeric(r.duty)&&r.duty>=0)||!($.isNumeric(r.card)&&r.card>=0)||!r.modal||!r.modal.action||!r.modal.statesControl||!r.prices)return;const v=$(r.modal.selector),d=$(r.modal.statesControl.selector);let u=[],s;d.change(function(){const e=$(this).val();return d.val(e),d.trigger("refresh"),h()}),v.on(r.modal.action,function(){return h()});let i;function h(){const e=d.val();if(N(),!e||e.length===0||!u||u.length===0||!s)return!1;let t=!1;if($.each(u,function(a,c){const P=$.validator.format(r.modal.currencyFormat,a),n=$(P);if(!n||n.length===0){t=!0;return}const I=n.find(r.prices.pure);if(!o(I,c)){t=!0;return}if(a>0){p(c,null,r.exchangeRate),c.currency=s;const l=n.find(r.prices.exchange);if(!o(l,c)){t=!0;return}}i=c.price+" + ";const S=[{productId:y.productId,price:c.price}],x=Common.calculateTax(e,S,r.taxes,r.luxuryPrice,r.statesIdForSpecialLuxuryWay),V=n.find(r.prices.tax);if(!o(V,x,"+{0}")){t=!0;return}if(p(c,x),a>0){let l=0;r.duty&&(l=r.duty*c.price/100,i+=r.duty+"% + ");const D=n.find(r.prices.duty);if(!o(D,l,"+{0}")){t=!0;return}p(c,l);let f=0;r.card&&(f=r.card*c.price/100,i+=r.card+"% + ");const R=n.find(r.prices.card);if(!o(R,f,"+{0}")){t=!0;return}p(c,f)}const w=n.find(r.prices.total);if(!o(w,c)){t=!0;return}i+=" = "+c.price,console.log(i)}),t&&t===!0)return!1}function N(){const e=$(r.prices.pdp);if(!e||e.length===0)return!1;u=[],$.each(e,function(t,a){u.push(F($(a).html()))}),s=u[0].currency}function F(e){return{price:Number(e.replace(",","").replace(/[^\d.-]+/g,"")),currency:e.replace(",","").replace(/[\d.-]+/g,"{0}")}}function g(e){return $.isNumeric(e)?(e.toFixed(2)-0+"").replace(/(\d)(?=(\d\d\d)+(?!\d))/g,"$1,"):"0.00"}function o(e,t,a){if(!e||e.length===0||!($.isNumeric(t)||$.isNumeric(t.price)))return!1;let c;return t.currency?c=$.validator.format(t.currency,g(t.price)):c=$.validator.format(s,g(t)),a&&(c=$.validator.format(a,c)),e.html(c),!0}function p(e,t,a){!e||!e.price||(t&&(e.price+=t),a&&(e.price*=a))}}})(); 493 494(function(){var i=window.Syvo.Favorites=new SyvoModule("Favorites",r);function r(a){var e={parent:{selector:"[data-wishlist-id]",dataAttribute:"[wishlist-id]"},controls:{cart:"[data-trigger=cart-add]"}},t=$.extend(!0,{},e,a);if(!(!t.controls||!t.parent))var n=$(t.controls.cart)}})(); 495 496(function(){var s=window.Syvo.Forms_v2=new SyvoModule("Forms_v2",f);
496function f(d){var g={selector:"[data-property='v2-style']",effectClass:"v2-effect",controls:{class:"v2-control",templateHtml:'<div class="v2-control"><label><span>{0}</span></label></div>'},inputs:{toInclude:"input[type=text], input[type=email], input[type=phone], input[type=password], select, textarea",toExclude:"",labelAttr:"placeholder",hasFocus:"has-focus",lostFocus:"lost-focus",isDirty:"dirty",hasContent:"has-content",noContent:"no-content",collapsed:"collapsed",in:"in"},error:{selector:".field-validation-error"}};if(s.settings=$.extend(!0,{},g,d),!s.settings.selector||(s.root=$(s.settings.selector),s.root.length===0))return;p(),s.refresh=function(t){if(!t){y();return}o(t),c()},s.contentChanged=a,$.fn.extend({refreshfv2:function(){o($(this))}});function p(){c(),t(),v(),h(),C();function t(){s.root.addClass(s.settings.effectClass),s.inputs.addClass(s.settings.inputs.noContent),s.inputs.addClass(s.settings.inputs.lostFocus),s.selects.addClass(s.settings.inputs.collapsed),$.each(s.inputs,function(){var n=$(this);i(n)})}}function v(){$.each(s.inputs,function(){var t=$(this);l(t)})}function l(t){if(!(!t||t.length===0)){var n=t.nextAll("."+s.settings.controls.class);if(n.length>0){r(n);return}var e=m(t),A=Common.stringFormat(s.settings.controls.templateHtml,[e]);t.control=$(A);var u=t.next(s.settings.error.selector);if(u.length>0){u.after(t.control);return}t.after(t.control)}}function h(){s.controls=s.root.find("."+s.settings.controls.class),r(s.controls)}function C(){s.inputs.change(function(){var t=$(this);i(t)}),s.inputs.focus(function(){var t=$(this);t.removeClass(s.settings.inputs.lostFocus),t.addClass(s.settings.inputs.hasFocus)}),s.inputs.blur(function(){var t=$(this);t.removeClass(s.settings.inputs.hasFocus),t.addClass(s.settings.inputs.lostFocus)}),s.inputs.keyup(function(){var t=$(this);t.addClass(s.settings.inputs.isDirty)}),s.selects.on("change",function(){var t=$(this);i(t)}),s.selects.on("click",function(){var t=$(this);t.hasClass(s.settings.inputs.collapsed)?(t.removeClass(s.settings.inputs.collapsed),t.addClass(s.settings.inputs.in)):(t.addClass(s.settings.inputs.collapsed),t.removeClass(s.settings.inputs.in))}),s.selects.on("blur",function(){var t=$(this);t.addClass(s.settings.inputs.collapsed),t.removeClass(s.settings.inputs.in)})}function i(t){x(t);var n=t.val();t.addClass(s.settings.inputs.isDirty),a(t,n)}function a(t,n){t.is("select")&&typeof n!="undefined"&&n!==null||n&&n.length>0?(t.removeClass(s.settings.inputs.noContent),t.addClass(s.settings.inputs.hasContent)):(t.removeClass(s.settings.inputs.hasContent),t.addClass(s.settings.inputs.noContent))}function r(t){!t||t.length===0||t instanceof Array||t.addClass(s.settings.controls.class)}function m(t){if(!(!t||t.length===0||t instanceof Array)){var n=t.attr(s.settings.inputs.labelAttr);return n||(n=t.attr("data-label")),n}}function o(t){var n=s.inputs.filter(t);
496$.each(n,function(){var e=$(this);b(e),i(e),l(e)})}function y(){o(s.inputs)}function b(t){if(!(!t||t.length===0)){var n=t.nextAll("."+s.settings.controls.class);if(n.length>0){n.remove();return}}}function c(){s.inputs=s.root.find(s.settings.inputs.toInclude).not(s.settings.inputs.toExclude),s.selects=s.inputs.filter("select"),s.controls=s.root.find("."+s.settings.controls.class)}function x(t){F(t)}function F(t){t.css("background-color","transparent"),t.css("-webkit-transition","background-color 3600s ease-in-out 0s"),t.css("transition","background-color 3600s ease-in-out 0s")}}})(); 497 498(()=>{const r=window.Syvo.Layout_Control=new SyvoModule("Layout_Control",L);r.eventNames.onAfterReload=r.getModuleEventName("onAfterReload"),r.eventNames.reload=r.getModuleEventName("reload");function L(w){const B={controls:{selector:"[data-layout-col]",dataAttribute:"layout-col",activeClass:"active",storageName:"layout_breakpoints",callback(){}},items:{selector:"[data-layout-width]",attribute:"data-layout-width",refresh(t){if(!t||t.length===0)return;const e=t.find("[data-list]");!e||e.length===0||$.each(e,(s,o)=>{const i=$(o);!i||i.length===0||!i.hasClass("slick-initialized")||i.slick("slickSetOption","","",!0)})}},columns:4,responsive:[{breakpoint:991,columns:2}],layout:[{columns:4,applyClass:"col-4"},{columns:3,applyClass:"col-3"},{columns:2,applyClass:"col-2"},{columns:1,applyClass:"col-1"}]};let a=!1;const c=$(window),n={};r.init=f,r.reload=A,r.destroy=y,f({});function f(t,e=!1){if(a)return;const s=E(t);if(!x)return;o(),i(),X(),N();function o(){n.settings=s,n.$layoutControls=$(n.settings.controls.selector),n.$layoutItems=$(n.settings.items.selector),n.settings.responsive&&n.settings.responsive.length>0&&(n.oldBreakpoint=u(),n.resizeTimeout=null)}function i(){n.$layoutControls.on("click",m),n.settings.responsive&&n.settings.responsive.length>0&&c.on(`resize gestureend syvo:pinchend orientationchange ${r.eventNames.reload}`,h)}function X(){const p=k();!p||p.length===0||(g(p),n.settings.responsive&&n.settings.responsive.length>0&&v())}}function A(t){y(),f(t,!0)}function y(){if(!a)return;s(),e(),t(),a=!1;function t(){n.$layoutControls=$(),n.$layoutItems=$(),n.settings.responsive&&n.settings.responsive.length>0&&(n.oldBreakpoint=null,n.resizeTimeout=null),n.settings=null}function e(){n.$layoutControls.off("click",m),n.settings.responsive&&n.settings.responsive.length>0&&c.off(`resize gestureend syvo:pinchend orientationchange ${r.eventNames.reload}`,h)}function s(){T(),I()}}function E(t){return $.extend(!0,{},B,w||{},t||{})}function x(t){return!(!t.controls||!t.items||!t.layout||t.layout.length===0||!t.columns||!t.controls.dataAttribute||!t.items.attribute)}function m(t){t.preventDefault();const e=d($(t.currentTarget)),s=n.$layoutControls.filter((o,i)=>d($(i))===e);return n.settings.controls.storageName&&q(n.settings.controls.storageName,e),g(s),n.settings.controls.callback&&typeof n.settings.controls.callback=="function"&&n.settings.controls.callback(),!1}function h(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout(()=>{v()},500)}function v(){const t=k();if(!t||t.length===0)return!1;let e=u();(!e||!e.breakpoint)&&(e=n.oldBreakpoint),e.columns!==n.oldBreakpoint.columns&&(g(t),n.oldBreakpoint=e),n.$layoutItems.attr(n.settings.items.attribute,u(!1).columns),c.trigger(r.eventNames.onAfterReload)}function k(){const t=O();let e=C(t);return e&&e.length>0||(e=C(n.settings.columns),e&&e.length>0)?e:null}function N(){n.settings.callback&&typeof n.settings.callback=="function"&&n.settings.callback()}function z(){!n.$layoutControls||n.$layoutControls.length===0||n.$layoutControls.removeClass(n.settings.controls.activeClass)}function R(t){!t||t.length===0||t.addClass(n.settings.controls.activeClass)}function C(t){if(!t||!n.$layoutControls||n.$layoutControls.length===0)return;const e=n.$layoutControls.filter(":visible");if(e.length===0)return $(n.$layoutControls[0]);const s=e.filter((o,i)=>$(i).data(n.settings.controls.dataAttribute)===t);return!s||s.length===0?$(e[0]):s}function g(t){const e=d(t);return!e||e<=0?!1:(_(e),z(),R(t),!0)}function _(t){I();const e=J(t);if(e)return F(e),!1;V(W(t))}function d(t){return!t||t.length===0?null:t.data(n.settings.controls.dataAttribute)}function O(){if(!n.settings)return null;if(n.settings.responsive&&n.settings.responsive.length>0){const t=u();if(t&&t.columns)return t.columns}return!n.settings.columns||n.settings.columns<=0?null:n.settings.columns}function b(t){if(!t||t.length===0)return null;const e=localStorage.getItem(t);return e?JSON.parse(e):null}function q(t,e){if(!t||t.length===0||e<=0)return;const s=b(t)||[],o=u();o&&(o.columns=e),s.push(o),localStorage.setItem(t,JSON.stringify(l(s)))}function M(t,e){return!t||t.length===0?l(e):!e||e.length===0?l(t):l(l(t).concat(l(e)))}function l(t){const e=[];
498return!t||t.length===0?e:(t.reverse().forEach(s=>{e.filter(i=>s.breakpoint===i.breakpoint).length===0&&e.push(s)}),e.reverse())}function u(t=!0){if(!n.settings||!n.settings.responsive)return null;let e=n.settings.responsive;const s=$.getCurrentViewport().width;if(t&&n.settings.controls&&n.settings.controls.storageName){const o=b(n.settings.controls.storageName);o&&o.length>0&&(e=M(e,o))}return e=e.sort((o,i)=>o.breakpoint-i.breakpoint),e=e.filter((o,i)=>o.breakpoint>s),e.length===0&&e.push({breakpoint:8e3,columns:n.settings.columns}),e[0]}function T(){if(!n.settings||!n.settings.layout||!n.$layoutItems||n.$layoutItems.length===0)return;const t=n.settings.layout.map(s=>s.columns);n.$layoutControls.filter((s,o)=>t.indexOf(parseInt($(o).data(n.settings.controls.dataAttribute)))===-1).hide()}function I(){!n.settings||!n.settings.layout||!n.$layoutItems||n.$layoutItems.length===0||$.each(n.settings.layout,(t,e)=>{n.$layoutItems.removeClass(e.applyClass)})}function F(t){!t||!n.$layoutItems||n.$layoutItems.length===0||$.each(n.$layoutItems,(e,s)=>{const o=$(s);o.addClass(t),S(o)})}function V(t){!t||!n.$layoutItems||n.$layoutItems.length===0||$.each(n.$layoutItems,(e,s)=>{const o=$(s);o.width(t),S(o)})}function J(t){const e=U(t);return e?e.applyClass:null}function U(t){if(!n.settings||!n.settings.layout||!t||t<=0)return null;const e=n.settings.layout.filter((s,o)=>s.columns===t);return!e||e.length===0?null:e[0]}function W(t){return!t||t<=0?null:`${100/t}%`}function S(t){!t||t.length===0||!n.settings.items.refresh||typeof n.settings.items.refresh!="function"||n.settings.items.refresh(t)}}})(); 499 500var N=e=>{throw TypeError(e)};var F=(e,r,a)=>r.has(e)||N("Cannot "+a);var p=(e,r,a)=>(F(e,r,"read from private field"),a?a.call(e):r.get(e)),B=(e,r,a)=>r.has(e)?N("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,a),l=(e,r,a,d)=>(F(e,r,"write to private field"),d?d.call(e,a):r.set(e,a),a);(()=>{var u;const e=window.Syvo.Lazy_Load=new SyvoModule("Lazy_Load",d),r=Common.lazyLoading.constants.mode;e.eventNames.onBeforeLazyLoad=e.getModuleEventName("onBeforeLazyLoad"),e.eventNames.onAfterLazyLoad=e.getModuleEventName("onAfterLazyLoad"),e.eventNames.onLazyLoad=e.getModuleEventName("onLazyLoad"),e.eventNames.onFinishedAllLazyLoad=e.getModuleEventName("onFinishedAllLazyLoad"),e.Mode=r;class a{constructor(L,c){B(this,u,!1);l(this,u,!1),this.settings=L,this.breakpoint=c,this.init()}init(){p(this,u)||(this.plugin=Common.lazyLoading.load(this.settings.lazy),l(this,u,this.plugin.isInited()))}destroy(){!p(this,u)||!this.plugin||l(this,u,this.plugin.destroy())}reload(){l(this,u,this.plugin.reload())}get isInited(){return p(this,u)}}u=new WeakMap;function d(v){if(typeof $.fn.Lazy!="function")return;const L=8e3,c=$(window),M={lazy:{selector:"[data-lazy-load][data-src]",callbacks:{onBeforeLoad:H,onAfterLoad:P,onLoad:X,onFinishedAll:Z},plugin:{chainable:!1,autoDestroy:!1,bind:"event",attribute:"data-src",removeAttribute:!1}},dataAttrMode:"data-lazy-load",callbacks:{onBeforeLoad:f(),onAfterLoad:f(),onLoad:f(),onFinishedAll:f()},responsive:[{breakpoint:L,settings:{lazy:{selector:"[data-lazy-load][data-src-desktop]",plugin:{attribute:"data-src-desktop"}}}},{breakpoint:991,settings:{lazy:{selector:"[data-lazy-load][data-src-mobile]",plugin:{attribute:"data-src-mobile"}}}}]},n={};e.init=y,e.destroy=I,e.reload=C,e.pluginAfterLoaded=h,e.pluginSetAttr=E,e.pluginGetAttr=O,e.pluginUpdate=V,e.pluginGetItems=G,e.pluginAddItems=R,e.pluginForce=U,e.getSettings=b,e.getResponsiveSettings=A,e.getSource=D,y();function y(t){if(n.isInited)return;const i=k(t);if(!z(i))return;o(),s(),g(),n.isInited=n.plugin.isInited();function o(){n.settings=i}function s(){c.on("resize orientationChange",m)}function g(){n.plugin=Common.lazyLoading.load(n.settings.lazy),S()}}function I(){if(!n.isInited)return;o(),i(),t(),n.isInited=n.plugin.isInited();function t(){n.$targets=$()}function i(){c.off("resize orientationChange",m)}function o(){x(),q()}}function C(t){I(),y(t),n.isInited=n.plugin.isInited()}function m(t){S()}function E(t,i){typeof n.plugin.config=="function"&&n.plugin.setAttr(t,i)}function O(t){if(typeof n.plugin.config=="function")return n.plugin.getAttr(t)}function G(){if(typeof n.plugin.getItems=="function")return n.plugin.getItems()}function R(t){typeof n.plugin.addItems=="function"&&n.plugin.addItems(t)}function U(t){typeof n.plugin.force=="function"&&n.plugin.force(t)}function b(){if(!(!n||!n.isInited))return n.settings}function A(){if(!(!n.responsiveInstance||!n.responsiveInstance.isInited))return n.responsiveInstance.settings}function D(t){const i=A();if(i&&t.is(i.lazy.selector)){const s=t.attr(i.lazy.plugin.attribute);if(s)return s}const o=b();if(o&&t.is(o.lazy.selector)){const s=t.attr(o.lazy.plugin.attribute);if(s)return s}if(t.is("img"))return t.attr("src");if(t.is("video")){const s=t.find("source:first");
500if(s.length>0){const w=s.attr("data-src")||s.attr("src");if(w)return w}const g=t.attr("src");if(g)return g}return t.attr("data-src")}function V(){typeof n.plugin.update=="function"&&n.plugin.update()}function K(){typeof n.plugin.loadAll=="function"&&n.plugin.loadAll()}function x(){typeof n.plugin.destroy=="function"&&n.plugin.destroy()}function H(t,i){W(t,i),typeof n.settings.callbacks.onBeforeLoad=="function"&&n.settings.callbacks.onBeforeLoad(t,i),c.trigger(e.eventNames.onBeforeLazyLoad,{$_el:t,settings:i})}function W(t,i){const o=t.attr(i.plugin.attribute);if(!o)return;const s=CommonHelpers.webpImagesHelper.getS3SupportedUrl(o);s!==o&&t.attr(i.plugin.attribute,s)}function P(t,i){h(t,i),typeof n.settings.callbacks.onAfterLoad=="function"&&n.settings.callbacks.onAfterLoad(t,i),c.trigger(e.eventNames.onAfterLazyLoad,{$_el:t,settings:i}),t.trigger(e.eventNames.onAfterLazyLoad,{settings:i})}function X(t,i){typeof n.settings.callbacks.onLoad=="function"&&n.settings.callbacks.onLoad(t,i),c.trigger(e.eventNames.onLazyLoad,{$_el:t,settings:i})}function Z(t,i){typeof n.settings.callbacks.onFinishedAll=="function"&&n.settings.callbacks.onFinishedAll(t,i),c.trigger(e.eventNames.onFinishedAllLazyLoad,{$_el:t,settings:i})}function h(t,i){t.length===0||!i.plugin.attribute||r.BG===t.attr(n.settings.dataAttrMode)&&J(t,i.plugin.attribute)}function k(t){return $.extend(!0,{},M,v||{},t||{})}function z(t){return!!t.lazy&&!!t.callbacks&&!!t.dataAttrMode}function j(){if(!n.settings.responsive)return null;let t=n.settings.responsive.sort((o,s)=>o.breakpoint-s.breakpoint);const i=$.getCurrentViewport().width;return t=t.filter((o,s)=>o.breakpoint>i),t.length===0?null:t[0]}function q(){!n.responsiveInstance||!n.responsiveInstance.isInited||(n.responsiveInstance.destroy(),n.responsiveInstance=null)}function S(){const t=j();if(!t)return;if(n.responsiveInstance)if(n.responsiveInstance.breakpoint!==t.breakpoint)n.responsiveInstance.destroy(),n.responsiveInstance=null;else return;const i=k(t.settings);if(!z(i))return;const o=new a(i,t.breakpoint);o.isInited&&(n.responsiveInstance=o)}function J(t,i){!t||t.length===0||t.find("img").attr("src",t.attr(i))}function f(){return()=>{}}}})(); 501 502(function(){var g=window.Syvo.Live_Chats=new SyvoModule("Live_Chats",u);function u(f){var d={olark:{nameAddon:"Mr./Mrs",shower:"[data-trigger=olark-show]",expander:"[data-trigger=olark-expand]",forGuest:!0,hidden:!1}},e=$.extend(!0,{},d,f);e.olark&&c(),e.liveperson&&void 0;function c(){!e.olark.siteId||e.olark.siteId.length===0||(!e.olark.forGuest||e.olark.forGuest===!1)&&e.isGuest&&e.isGuest===!0||(p(),olark.identify(e.olark.siteId),v(),k(e.olark.shower),m(e.olark.expander))}function p(){(function(a,t,r,n,l,i){a.olark||(n="script",i=t.createElement(n),n=t.getElementsByTagName(n)[0],i.async=1,i.src="//"+r,n.parentNode.insertBefore(i,n),i=a.olark=function(){l.s.push(arguments),l.t.push(+new Date)},i.extend=function(o,s){i("extend",o,s)},i.identify=function(o){i("identify",l.i=o)},i.configure=function(o,s){i("configure",o,s),l.c[o]=s},l=i._={s:[],t:[+new Date],c:{},l:r})})(window,document,"static.olark.com/jsclient/loader.js")}function k(a){var t=$(a);t.click(function(r){return r.preventDefault(),olark("api.box.show"),!1})}function m(a){var t=$(a);t.click(function(r){return r.preventDefault(),olark("api.box.expand"),!1})}function v(){var a;e.lastName&&(e.firstName||olark("api.visitor.updateFullName",{fullName:e.nameAddon+" "+e.lastName}),olark("api.visitor.updateFullName",{fullName:e.firstName+" "+e.lastName})),e.email&&olark("api.visitor.updateEmailAddress",{emailAddress:e.email}),e.ip&&olark("api.visitor.updateCustomFields",{ip:e.ip}),e.olark.hidden&&e.olark.hidden===!0&&olark("api.box.hide")}function h(){}}})(); 503 504(()=>{const t=window.Syvo.Login_Attempt=new SyvoModule("Login_Attempt",v);function v(S){const a={controls:{selector:"[data-trigger=add-wishlist], [data-trigger=login-attempt]",listenEvents:"touchstart click",returnValue:!1},target:{selector:"#loginModal",action:(e,n,o)=>{o.modal({escapeClose:!1,clickClose:!1})},destroyEvent:"modal:close",callback:(e,n,o)=>{},showOnce:!0,runDependency:(e,n,o)=>{i("Wishlist_Heart");function i(c){const r=F();!r||!r.isLoaded()?O():L();function O(){window.Syvo[c].load()}function F(){if(window.Syvo.hasOwnProperty(c))return window.Syvo[c]}function L(){r&&typeof r.reload=="function"&&r.reload()}}},storageKey:"LoginPopupShown"}};if(t.settings=$.extend(!0,{},a,S),!t.settings.controls||!t.settings.target)return;t.init=s,t.reload=u,t.reinit=u,t.destroy=l,t.dependencyFired=!1,t.tryShowModal=g,s();function s(){D(),M(),k()}
504function l(){C(),t.dependencyFired=!1}function u(e){l(),e&&(t.settings=$.extend(!0,{},a,e)),s()}function D(){t.showed=h(),t.controls=$(t.settings.controls.selector),t.currentControl=$(),t.target=$(t.settings.target.selector)}function M(){t.controls.on(t.settings.controls.listenEvents,f),t.target.on(t.settings.target.destroyEvent,y)}function C(){t.controls.off(t.settings.controls.listenEvents,f),t.target.off(t.settings.target.destroyEvent,y)}function k(){t.settings.target.showOnce&&t.showed&&w()}function g(e,n){return t.currentControl=e,t.settings.target.showOnce?(t.showed=h(),t.showed?!0:(p(),w(),d(n),t.settings.controls.returnValue)):(p(),d(n),t.settings.controls.returnValue)}function f(e){g($(this),e)}function d(e){(e.type==="touchstart"||e.type==="click")&&(e.type==="touchstart"&&e.stopImmediatePropagation(),e.preventDefault())}function y(e){m(),e.stopImmediatePropagation()}function m(){t.settings.controls.returnValue&&K()}function p(){t.settings.target.action&&typeof t.settings.target.action=="function"&&(t.settings.target.action(t.currentControl,t.controls,t.target),t.showed=!0,E(t.showed))}function K(){t.settings.target.callback&&typeof t.settings.target.callback=="function"&&t.settings.target.callback(t.currentControl,t.controls,t.target)}function w(){t.dependencyFired||(t.settings.target.runDependency&&typeof t.settings.target.runDependency=="function"&&t.settings.target.runDependency(t.currentControl,t.controls,t.target),t.dependencyFired=!0)}function E(e){b(t.settings.target.storageKey,e)}function h(){return x(t.settings.target.storageKey)}function b(e,n){if(t.settings.target.storageKey){const o=new Date,i={value:n,expires:o.setMinutes(o.getMinutes()+60)};localStorage.setItem(e,JSON.stringify(i))}}function x(e){if(t.settings.target.storageKey){const n=JSON.parse(localStorage.getItem(e));if(n&&n.expires&&new Date(n.expires)>new Date)return n.value}return!1}}})(); 505 506(function(){var i=window.Syvo.Map=new SyvoModule("Map",d);function d(v){i.maps=[],i.markers=[];var m={lat:0,lng:0},l={maps:[],config:{selector:"#map",position:m,centerOffset:m,zoom:15,zoomControl:!0,scrollwheel:!1,mapTypeControl:!1,opacity:.75,styles:[]}};l.config.center=f(l.config);var t=$.extend(!0,{},l,v);if(!t.maps||t.maps.length===0){c(t.config);return}t.maps.forEach(function(e){c(e)});function c(e){if(e){var r=$.extend(!0,{},t.config,e);r.selector=g(e),r.center=f(e);var n=$(r.selector);!n||n.length===0||(r.map=new google.maps.Map(n[0],r),n.addListener("bounds_changed",()=>{Common.GoogleMapsApi.makeADACompliant(n[0])}),i.maps.push(r.map),h(r))}}function h(e){if(!(!e||!e.position))if(e.position instanceof Array)e.position.forEach(function(n){var s=$.extend(!0,{},e,{position:n}),u=new google.maps.Marker(s);i.markers.push(u)});else{var r=new google.maps.Marker(e);i.markers.push(r)}}function f(e){return e?e.center?e.center:e.position?e.centerOffset?{lat:e.position.lat+e.centerOffset.lat,lng:e.position.lng+e.centerOffset.lng}:t.config.centerOffset?{lat:e.position.lat+t.config.centerOffset.lat,lng:e.position.lng+t.config.centerOffset.lng}:e.position:e.centerOffset?{lat:t.config.position.lat+e.centerOffset.lat,lng:t.config.position.lng+e.centerOffset.lng}:t.config.centerOffset?{lat:t.config.position.lat+t.config.centerOffset.lat,lng:t.config.position.lng+t.config.centerOffset.lng}:t.config.position:f(t.config)}function g(e){return e?e.selector?e.selector:t.maps&&t.maps.length>0?t.config.selector+t.maps.indexOf(e):t.config.selector:g(t.config)}function w(e,r){if(!r||!r.breakpoints||r.breakpoints.length===0)return;r.zoomDivider=r.zoomDivider||120,r.defaultZoom=r.defaultZoom||10;var n=$.getCurrentViewport().width;s(n),$(window).resize(function(){var o=$.getCurrentViewport().width;s(o)});function s(o){var a=u(o);a!=e.zoom&&e.setZoom(a),r.mapCenter&&e.setCenter(r.mapCenter)}function u(o){var a=r.defaultZoom*r.zoomDivider,p=r.breakpoints.filter(function(O){return O<=o});return p&&p.length>0?a=Math.max.apply(Math,p):a=o,Math.round(a/r.zoomDivider)}}}})(); 507 508(()=>{const o=window.Syvo.Popup_Modal=new SyvoModule("Popup_Modal",M);
508function M(f){const g=$(window),h={urls:{post:"modals/send-data",get:"modals/get-modal"},modal:{id:0,name:"SyvoModal",selector:"[data-property=popup-modal]",containerSelector:"[data-property=popup-modal-container]",email:{selector:"[data-property=popup-modal-email]"},size:{selector:"[data-property=popup-modal-size]"},compact:{selector:"[data-property=mobile-overlay]",classModifier:"has-compact"},open:{selector:"[data-trigger=popup-modal-open]",value:null},close:{selector:"[data-trigger=popup-modal-close]",value:"shown"},show:{selector:"[data-trigger=popup-modal-show]",func:N},hide:{selector:"[data-trigger=popup-modal-hide]",func:U},success:{selector:"[data-property=popup-modal-success]"},expirationDate:p().toString(),showOnce:!0},promo:{selector:"[data-property=promo-code]"}},s=Common.getBaseHref();if(o.settings=$.extend(!0,{},h,f),!o.settings.modal||!o.settings.modal.compact||!o.settings.modal.success)return;o.init=d,o.destroy=w,o.reload=x,o.openModal=F,o.closeModal=O,d();function d(){e(),t(),l();function e(){o.$promo=o.settings.promo?$(o.settings.promo.selector):$(),o.$container=$(o.settings.modal.containerSelector),o.$modal=$(o.settings.modal.selector),o.$modalCompact=$(o.settings.modal.compact.selector),o.$modalSuccess=$(o.settings.modal.success.selector),o.$modalEmail=$(o.settings.modal.email.selector),o.$modalSize=$(o.settings.modal.size.selector),o.$modalShow=$(o.settings.modal.show.selector),o.$modalOpen=$(o.settings.modal.open.selector),o.$modalClose=$(o.settings.modal.close.selector),o.$modalHide=$(o.settings.modal.hide.selector),o.$modalForm=o.$modal.is("form")?o.$modal:o.$modal.find("form"),o.cookie={getName(){return o.settings.modal.name+o.settings.modal.id},getExpires(){const a=o.settings.modal.expirationDate?new Date(o.settings.modal.expirationDate):p();if(o.settings.modal.showOnce!==!0){const n=V();if(n<a)return n}return a},getValue(){return $.cookie(o.settings.modal.name+o.settings.modal.id)}}}function t(){o.$modalOpen.on("click",S),o.$modalClose.on("click",k),o.$modalShow.on("click",v),o.$modalHide.on("click",y),o.$modal.on("submit",z),g.on(window.Syvo.eventNames.onUrlChanged,D)}function l(){o.$container.show(),m()}}function w(){e(),l(),t();function e(){o.$modalOpen.off("click",S),o.$modalClose.off("click",k),o.$modalShow.off("click",v),o.$modalHide.off("click",y),g.off(window.Syvo.eventNames.onUrlChanged,D)}function t(){o.$promo=null,o.$modal=null,o.$modalCompact=null,o.$modalSuccess=null,o.$modalEmail=null,o.$modalSize=null,o.$modalShow=null,o.$modalOpen=null,o.$modalClose=null,o.$modalHide=null,o.$modalForm=null,o.$container=null,o.cookie=null}function l(){r()}}function x(e){w(),o.settings=$.extend(!0,{},h,e),d()}function F(){m()}function O(){c()}function S(e){return e.preventDefault(),m(),!1}function v(e){return e.preventDefault(),H(),!1}function k(e){return e.preventDefault(),c(),!1}function y(e){return e.preventDefault(),r(),!1}function z(e){if(e.preventDefault(),o.sending||(o.$modalForm.validate(),!o.$modalForm.valid()))return!1;const t=o.$modalForm.serialize(),l=o.$modalEmail.val(),a=o.$modalSize.val();return o.sending=!0,$.ajax({url:f.urls.post,dataType:"json",type:"post",data:t}).done(n=>{n.status?E(n.promoCode,l,a):C(n)}).fail(n=>{C(n)}).always(()=>{o.sending=!1}),!1}function E(e,t,l){c(),b(e);const a=p();$.cookie("email",t,{expires:a,path:s}),$.cookie("sizeId",l,{expires:a,path:s})}function C(e){r()}function r(){o.$modalCompact.hide(),i(o.$modal),i(o.$modalSuccess)}function c(){o.$modalCompact.hide(),i(o.$modal),i(o.$modalSuccess),$.cookie(o.cookie.getName(),o.settings.modal.close.value,{expires:o.cookie.getExpires(),path:s})}function H(){o.$modalCompact.hide(),o.$modal.removeClass(o.settings.modal.compact.classModifier),u(o.$modal)}function m(){o.cookie.getValue()!==o.settings.modal.close.value&&(u(o.$modal),o.settings.modal.open.value==null?$.removeCookie(o.cookie.getName(),{path:s}):$.cookie(o.cookie.getName(),o.settings.modal.open.value,{expires:o.cookie.getExpires(),path:s}))}function b(e){e?o.$promo.html(e):o.$promo.hide(),u(o.$modalSuccess)}function u(e){!e||e.length===0||typeof o.settings.modal.show.func=="function"&&o.settings.modal.show.func(e)}function i(e){!e||e.length===0||typeof o.settings.modal.hide.func=="function"&&o.settings.modal.hide.func(e)}function N(e){e.slideDown()}function U(e){e.slideUp()}function V(){const e=new Date;return e.setDate(e.getDate()+1),e}function p(){const e=new Date;return e.setFullYear(e.getFullYear()+1),e}function D(){$.ajax({type:"get",url:o.settings.urls.get,data:{referrerUrl:window.location.href}}).done(e=>{const t={modal:{}};e.model&&(t.modal={id:e.model.modal.id,expirationDate:e.model.modal.expirationDate,showOnce:e.model.modal.showOnce}),$(o.settings.modal.containerSelector).remove(),e.content&&$("body").append(e.content),o.reload(t)})}}})(); 509 510(()=>{const n=window.Syvo.Popups=new SyvoModule("Popups",p);n.eventNames.onAfterVisibilityChanged=n.getModuleEventName("onAfterVisibilityChanged");function p(d){const c={dataAttrs:{popup:"data-popup",close:"data-popup-close",expires:"data-popup-expires",dependencies:"data-popup-dependencies"}},i=$.extend(!0,{},c,d);if(!i.dataAttrs)return;const s=$(window);n.popups=$(`[${i.dataAttrs.popup}]`),n.timeNow=new Date,$.each(n.popups,(e,a)=>{const t=$(a),l=t.find(`[${i.dataAttrs.close}]`),o={expires:t.attr(i.dataAttrs.expires),dependencies:t.attr(i.dataAttrs.dependencies)?t.attr(i.dataAttrs.dependencies).split(","):[],id:t.attr(i.dataAttrs.popup)};l.click(()=>{t.fadeOut("fast"),f(o),s.trigger(n.eventNames.onAfterVisibilityChanged,{$popup:t})}),u(o)?t.fadeOut("fast"):t.fadeIn("fast"),s.trigger(n.eventNames.onAfterVisibilityChanged,{$popup:t})});
510function u(e){if(e.dependencies&&e.dependencies instanceof Array&&e.dependencies.length>0){let a=!0;if(e.dependencies.forEach(t=>{if(a=a&&r(JSON.parse(localStorage.getItem(t))),!a)return!1}),a)return!0}return r(JSON.parse(localStorage.getItem(e.id)))}function r(e){return e?e instanceof Object&&e.expireDate?new Date(e.expireDate).getTime()>n.timeNow.getTime():!0:!1}function f(e){const a=new Date,t=e.expires?parseInt(e.expires):0;a.setDate(a.getDate()+t),localStorage.setItem(e.id,JSON.stringify({expireDate:a.getTime()}))}}})(); 511 512(()=>{const A=window.Syvo.Product_Views=new SyvoModule("Product_Views",Z);A.eventNames.productImageUrlChanged=A.getModuleEventName("productImageUrlChanged"),$(window).on(window.Syvo.Product_Views.eventNames.onBeforeLoad,(b,m,y)=>{const p=$(".product-views");O(p)});function O(b){b.find("[data-lazy]").each((y,p)=>{m(p,"data-lazy")}),b.find(".MagicZoom, .overview-media[data-options], [data-property=modal-overview-zoom], [data-property=modal-preview-zoom]").each((y,p)=>{m(p,"href")});function m(y,p){const I=$(y),e=I.attr(p),z=CommonHelpers.webpImagesHelper.getS3SupportedUrl(e);z!==e&&I.attr(p,z)}}function Z(b){const m=$(document),y=$(window),p={previews:{selector:"[data-list='previews']",listItemSelector:".preview",infinite:!1,vertical:!0,verticalSwiping:!0,slidesToScroll:1,slidesToShow:4,focusOnSelect:!0,dots:!1,arrows:!0,prevArrow:"<div class='slick-arrow slick-prev vertical-arrow previews-arrow'><i class='arrow icon-syvo icon-chevron-up'></i></div>",nextArrow:"<div class='slick-arrow slick-next vertical-arrow previews-arrow'><i class='arrow icon-syvo icon-chevron-down'></i></div>",responsive:[{breakpoint:992,settings:"unslick"}]},overviews:{selector:"[data-list='overviews']",listItemSelector:".overview",callbacks:{onInit:_,onBreakpoint:_,onLazyLoaded:_,onBeforeChange:_,onAfterChange:_},infinite:!1,slidesToShow:1,slidesToScroll:1,focusOnSelect:!1,arrows:!1,dots:!1,fade:!0,rightClick:!0,responsive:[{breakpoint:992,settings:{infinite:!0,arrows:!0,prevArrow:"<div class='slick-arrow slick-prev overviews-arrow'><i class='arrow icon-syvo icon-chevron-left'></i></div>",nextArrow:"<div class='slick-arrow slick-next overviews-arrow'><i class='arrow icon-syvo icon-chevron-right'></i></div>"}}],lazyBackground:"[data-lazy-background]",magicZoom:{refreshOnSlideChange:!0,variableZoom:!0,zoomOn:"click",zoomPosition:"inner",lazyZoom:!0,onZoomReady(s){$(window).trigger("mz:ready",[s])}},video:{selector:"[data-video-type='video-js']",init:window.Syvo.Video.load,get(){return window.Syvo.Video}}},viewControls:{selector:"[data-property='view-control'], [data-property='color']",viewSelector:".slick-slide:not(.slick-cloned) .overview",dataAttr:"data-value-id",activeClass:"active-view",useScrollToColorImage:!0,chooseInitialViewControl:!1},callback(){}},I="view-control";p.previews.asNavFor=p.overviews.selector,p.overviews.asNavFor=p.previews.selector;const e=A;if(e.settings=$.extend(!0,{},p,b),!e.settings.previews||!e.settings.overviews)return;e.previews=$(e.settings.previews.selector),e.previewItems=e.previews.find(e.settings.previews.listItemSelector),e.overviews=$(e.settings.overviews.selector);const z=$("[data-property='fixed-header']");let P=0,V=$().add(e.overviews),T=$().add(e.previews);if(e.settings.previewVideos){e.previewVideos=$(e.settings.previewVideos.selector),T=T.add(e.previewVideos);const s=e.previews.children().length;s<e.settings.previews.slidesToShow&&(e.settings.previews.slidesToShow=s)}e.settings.overviewVideos&&(e.overviewVideos=$(e.settings.overviewVideos.selector),V=V.add(e.overviewVideos));const x=$().add(V).add(T);e.settings.overviews.magicZoom&&(window.mzOptions=$.extend(!0,{},window.mzOptions,e.settings.overviews.magicZoom)),e.settings.overviews.magicZoomMobile&&(window.mzMobileOptions=$.extend(!0,{},window.mzMobileOptions,e.settings.overviews.magicZoomMobile)),e.settings.overviews.video&&typeof e.settings.overviews.video.init=="function"&&e.settings.overviews.video.init(),$(document).ready(()=>{if(!$.fn.slick||typeof $.fn.slick!="function")return;V.on("init breakpoint",(t,{$dots:r,$nextArrow:a,$prevArrow:d})=>{if(r){let C=r;
512C.off("click",s),C.on("click",s)}if(a&&d){let C=$().add(a).add(d);C.off("click",v),C.on("click",v)}});function s(){m.trigger(window.Syvo.Google_Analytics_4.eventNames.onProductImageDotClicked),m.trigger(window.Syvo.Google_Tag_Manager.eventNames.onProductImageDotClicked)}function v(){m.trigger(window.Syvo.Google_Analytics_4.eventNames.onProductImageArrowClicked),m.trigger(window.Syvo.Google_Tag_Manager.eventNames.onProductImageArrowClicked)}x.on("init",(t,r)=>{y.trigger("slick:ready")});let c=null;y.on("gestureend syvo:pinchend orientationchange",()=>{clearTimeout(c),c=setTimeout(()=>{x.slick("slickSetOption","","",!0)},500)}),z.on("syvo_fixedHeader:onCalculate",B),e.previews=e.previews.filter((t,r)=>$(r).children().length>0),e.previews.slick(e.settings.previews),e.settings.previews.lazyBackground&&e.previews.on("lazyLoaded",(t,r,a,d)=>{N(a,d,e.settings.previews.lazyBackground)}),T.on("afterChange",(t,r,a,d)=>{H(r,a)}),e.overviews=e.overviews.filter((t,r)=>$(r).children().length>0),e.overviews.on("init reinit",(t,r)=>{e.settings.overviews.callbacks&&typeof e.settings.overviews.callbacks.onInit=="function"&&e.settings.overviews.callbacks.onInit(r)}),e.overviews.on("breakpoint",(t,r,a)=>{e.settings.overviews.callbacks&&typeof e.settings.overviews.callbacks.onBreakpoint=="function"&&e.settings.overviews.callbacks.onBreakpoint(r,a)}),e.overviews.on("lazyLoaded",(t,r,a,d)=>{e.settings.overviews.lazyBackground&&N(a,d,e.settings.overviews.lazyBackground),e.settings.overviews.callbacks&&typeof e.settings.overviews.callbacks.onLazyLoaded=="function"&&e.settings.overviews.callbacks.onLazyLoaded(r,a,d)}),e.overviews.on("beforeChange",(t,r,a,d)=>{e.settings.overviews.callbacks&&typeof e.settings.overviews.callbacks.onBeforeChange=="function"&&e.settings.overviews.callbacks.onBeforeChange(r,a,d)}),e.overviews.on("afterChange",(t,r,a)=>{var C;e.settings.overviews.callbacks&&typeof e.settings.overviews.callbacks.onAfterChange=="function"&&e.settings.overviews.callbacks.onAfterChange(r,a);const d=(C=r.$slides)==null?void 0:C.toArray();if(d&&d.length>a){const n=$(d[a]).find("img").attr("src");n&&m.trigger(A.eventNames.productImageUrlChanged,n)}}),e.overviews.slick(e.settings.overviews),V.on("swipe",()=>{$(document).trigger(window.Syvo.Google_Analytics_4.eventNames.onProductImageSwiped),$(document).trigger(window.Syvo.Google_Tag_Manager.eventNames.onProductImageSwiped)}),V.on("afterChange",(t,r,a,d)=>{L(r)}),e.settings.previewVideos&&e.settings.overviewVideos&&(e.previewVideos.on("click",()=>{e.previewVideos.addClass("is-shown"),e.overviewVideos.addClass("is-shown"),typeof $.fn.slick=="function"&&e.overviewVideos.slick("setPosition"),e.overviewVideos.trigger("Product_Views:overviewVideosShown")}),$().add(e.previews).add(e.overviews).on("beforeChange",()=>{e.previewVideos.removeClass("is-shown"),e.overviewVideos.removeClass("is-shown"),e.overviewVideos.trigger("Product_Views:overviewVideosHidden")}),e.previewItems.on("click",()=>{e.overviewVideos.removeClass("is-shown"),e.overviewVideos.trigger("Product_Views:overviewVideosHidden")}),e.settings.previewVideos.slidesToShow=e.previewVideos.children().length,e.previewVideos.slick(e.settings.previewVideos),e.overviewVideos.slick(e.settings.overviewVideos)),e.settings.viewControls&&(e.viewControls=new U),G(),e.settings.callback()});function B(s,v,c){P=c}function N(s,v,c){$(s.closest(c)).css("background-image",`url("${v}")`)}function H(s,v){if(!$.fn.slick||typeof $.fn.slick!="function"||!s||v<0)return;const c=s.$slider;if(!c||c.length===0)return;v>0?c.addClass("slick-started"):c.removeClass("slick-started");const t=s.$slides;!t||t.length===0||(v===t.length-1||$(t[t.length-1]).hasClass("slick-active")?c.addClass("slick-ended"):c.removeClass("slick-ended"))}function L(s){F(),M(s)}function F(){!MagicZoom||!e.settings.overviews.magicZoom||!e.settings.overviews.magicZoom.refreshOnSlideChange||MagicZoom.refresh()}function M(s){s&&typeof s.setPosition=="function"&&(clearTimeout(e.slickSetPositionTimeout),e.slickSetPositionTimeout=setTimeout(()=>{s.setPosition()},250))}function G(){const s=e.settings.overviews.video.get();if(!s)return;if(!s.isLoaded()){y.on(s.eventNames.onAfterLoad,()=>{v(e.settings.overviews.video.get())});return}v(s);function v(c){if(!c||!c.playerItems||c.playerItems.length===0)return;const t=k(c);for(let i=0,o=t.length;i<o;i++){const f=t[i];f.on("play",r),f.on("pause",a)}e.previews&&e.previews.length>0&&n(),e.overviewVideos&&(e.overviewVideos.on("Product_Views:overviewVideosShown",d),e.overviewVideos.on("Product_Views:overviewVideosHidden",C));function r(i){w(!0,this)}function a(){w(!1,this)}function d(i){const o=$(i.currentTarget).find(".slick-current").find("[data-vi
512deo-type='video-js'][autoplay]:not(video)");o.length>0&&l(o)}function C(){n()}function n(i){for(let o=0,f=t.length;o<f;o++){const u=t[o];if(i&&i.length>0&&$(u.el_).is(i)){u.pause();break}u.pause()}}function l(i){for(let o=0,f=t.length;o<f;o++){const u=t[o];if(i&&i.length>0&&$(u.el_).is(i)){u.play();break}}}function w(i,o){if(!o)return;const u=$(o.el_).closest("[data-parent='video-js']"),S=u.closest(".slick-slide");if(i)S.hasClass("slick-current")||u.addClass("is-playing");else if(u.removeClass("is-playing"),S.hasClass("slick-current")){const D=S.find("[data-parent='video-js']").not(u).find("[data-video-type='video-js']:not(video)");h(D)}}function h(i){const o=g(i);o&&(o.play(),o.trigger("play"))}function g(i){for(let o=0,f=t.length;o<f;o++)if($(t[o].el_).is(i))return t[o]}function k(i){const o=[];if(i&&i.playerItems&&$.isArray(i.playerItems))for(let f=0,u=i.playerItems.length;f<u;f++){const S=i.playerItems[f];$.checkContains(e.overviewVideos,$(S.el_))&&o.push(S)}return o}}}function U(){if(!e.settings.viewControls.useScrollToColorImage)return;const s={},v=$(e.settings.viewControls.selector);C(),s.viewControlChanged=t,s.viewChoosed=a,s.viewControls=v;const c=window.Syvo.Product_Details;v.on("click",n=>{const l=$(n.currentTarget);l.hasClass(e.settings.viewControls.activeClass)||t(l)});function t(n){const l=n.attr(e.settings.viewControls.dataAttr);n.trigger("syvo_viewControls:beforeChange",[l]),r(n);const w=a(l);n.trigger("syvo_viewControls:afterChange",[l,w])}function r(n,l){if(v.removeClass(e.settings.viewControls.activeClass),n&&!n.hasClass(I))return;const w=l||n.attr(e.settings.viewControls.dataAttr);v.filter(`[${e.settings.viewControls.dataAttr}='${w}']`).addClass(e.settings.viewControls.activeClass)}function a(n){let l=!1;if(!n)return d(0),l;n=n.split(",");const w=e.overviews.find(e.settings.viewControls.viewSelector);let h=0;const g=w.length;for(;h<g;h++){let i=$(w[h]).attr(e.settings.viewControls.dataAttr);if(i){i=i.split(",");for(let o=0,f=i.length;o<f;o++){const u=i[o];if($.inArray(u,n)>-1){l=!0;break}}if(l)break}}return l&&d(h),l}function d(n){s.currentSlide=n,e.overviews.slick("slickGoTo",n)}function C(){const n=e.overviews.find(e.settings.viewControls.viewSelector);if(n.length===0)return;const l=[];let w=null;if(e.settings.viewControls.chooseInitialViewControl&&typeof e.overviews.slick=="function"&&e.overviews.hasClass("slick-initialized")){const g=e.overviews.slick("slickCurrentSlide"),k=e.overviews.slick("getSlick");if(!isNaN(g)&&k&&k.$slides.length>g){const o=$(k.$slides[g]).find(e.settings.overviews.listItemSelector);o.is(e.settings.viewControls.viewSelector)&&(w=o.attr(e.settings.viewControls.dataAttr))}}$.each(n,(g,k)=>{const i=$(k).attr(e.settings.viewControls.dataAttr);typeof i!="undefined"&&(l.includes(i)||l.push(i))});let h=!1;$.each(v,(g,k)=>{const i=$(k),o=i.attr(e.settings.viewControls.dataAttr);typeof o!="undefined"&&l.includes(o)&&i.addClass(I),e.settings.viewControls.chooseInitialViewControl&&!h&&o===w&&(i.addClass(e.settings.viewControls.activeClass),h=!0)})}e.overviews.on("afterChange",(n,{$slides:l},w,h)=>{if(s.currentSlide===w)return;let g=$(l[w]).find(e.settings.overviews.listItemSelector).attr(e.settings.viewControls.dataAttr);!g||g.length===0||(g.length>0&&(g=g.split(",")[0]),c.colorFilter.colorFilterChoosed(c.colorFilter.allFilter),c.colorFilter.showFilteredColors(),r(null,g))}),v.on("syvo_viewControls:afterChange",(n,l,w)=>{const h=e.settings.overviews.keepViewsVisible;n.stopPropagation(),!(!(l&&l.length>0)||!w||h)&&$("html, body").animate({scrollTop:e.overviews.offset().top-P},"slow")})}function _(){}}})(); 513 514(()=>{const r=window.Syvo.Product=new SyvoModule("Product",I);r.eventNames.onAfterCatwalkLoaded=r.getModuleEventName("onAfterCatwalkLoaded"),r.eventNames.onAfterCatwalkPlayed=r.getModuleEventName("onAfterCatwalkPlayed"),r.eventNames.playCatwalk=r.getModuleEventName("playCatwalk"),r.eventNames.stopCatwalk=r.getModuleEventName("stopCatwalk"),r.eventNames.setProductColor=r.getModuleEventName("setProductColor"),r.eventNames.resetProductColor=r.getModuleEventName("resetProductColor");function I(N){const T={product:{selector:"[data-property=parent][data-product-id]",idAttr:"data-product-id",linkSelector:"[data-link=product-images],[data-link=product-overlay]",initialLinkAttr:"data-initial-link",initialImageAttr:"data-initial-img",initialVideoAttr:"data-initial-video"},slider:{selector:"[data-list=images]",infinite:!1,slidesToShow:1,slidesToScroll:1,focusOnSelect:!0,arrows:!0,dots:!1,prevArrow:"<div class='slick-arrow slick-prev'><span class='arrow arrow-product-image'></span></div>",nextArrow:"<div class='slick-arrow slick-next'><span class='arrow arrow-product-image'></span></div>"},default:{selector:"[data-img=default]",parent:"[data-list=product-images]"},backface:{selector:"[data-img=backface]",parent:"[data-list=product-images]",activeClass:"active",swipedClass:"swiped",timeout:250,swipe:{allowPageScroll:"vertical",threshold:0,swipe:J,excludedElements:".noSwipe"},onAfterSwipe(t,e,i,a,s,o){}},catwalk:{selector:"[data-property=product-catwalk-video]",loadedClass:"product-catwalk-video--loaded",parent:{selector:".product-catwalk",playingClass:"product-catwalk--playing",stoppedClass:"product-catwalk--stopped"}}},n={},c=$(window);r.init=u,r.destroy=p,r.reload=V,r.getDefaultImageUrl=E,r.getDefaultVideoUrl=U,u();function u(t){n.settings=$.extend(!0,{},T,t||N),e(),i();function e(){c.on(r.eventNames.setProductColor,w),c.on(r.eventNames.resetProductColor,k)}function i(){n.settings.slider&&H(),n.settings.backface&&j(),n.settings.catwalk&&et()}}function p(){e(),t();function t(){W(),q(),nt()}function e(){c.off(r.eventNames.setProductColor,w),c.off(r.eventNames.resetProductColor,k)}}function V(){p(),u()}function w(t,e){if(e&&e.$_el){const i=e.$_el.is(n.settings.product.selector)?e.$_el:e.$_el.closest(n.settings.product.selector);P(i),O(i,e.imgUrl),M(i,e.colorSlug)}}function k(t,e){if(e&&e.$_el){const i=e.$_el.is(n.settings.product.selector)?e.$_el:e.$_el.closest(n.settings.product.selector);x(i),F(i)}}function E(t){const e=t.is(n.settings.product.selector)?t:t.closest(n.settings.product.selector);if(e.length!==0)return z(e)}function U(t){const e=t.is(n.settings.product.selector)?t:t.closest(n.settings.product.selector);if(e.length!==0)return B(e)}function z(t){const e=t.find(n.settings.default.selector);return f(e)}function B(t){const e=t.find(n.settings.catwalk.selector);return D(e)}function O(t,e){const i=t.find(n.settings.default.selector);i.length!==0&&m(i,e)}function m(t,e){if(f(t),t.is("img")){t.attr("src",e);return}const i=t.find("img");if(i.length===0)return;i.attr("src",e),a(t,e);function a(s,o){s.addClass("product-image--changing"),setTimeout(()=>{s.addClass("product-image--animating"),s.css("background-image",`url('${o}')`)}),setTimeout(()=>{s.removeClass("product-image--animating").removeClass("product-image--changing")},1e3)}}function f(t){let e=t.attr(n.settings.product.initialImageAttr);return e||(e=i(),t.attr(n.settings.product.initialImageAttr,e)),e;function i(){const a=t.is("img")?t:t.find("img");
514return a.length===0?t.getCssBackgroundImageUrl():window.Syvo.Lazy_Load.isLoaded()?window.Syvo.Lazy_Load.getSource(a):a.attr("data-src")||a.attr("src")}}function D(t){let e=t.attr(n.settings.product.initialVideoAttr);return e||(e=i(),t.attr(n.settings.product.initialVideoAttr,e)),e;function i(){if(window.Syvo.Lazy_Load.isLoaded())return window.Syvo.Lazy_Load.getSource(t);{const a=t.attr("data-src");if(a)return a}if(t.is("video")){const a=t.find("source:first");if(a.length>0){const o=a.attr("data-src")||a.attr("src");if(o)return o}const s=t.attr("src");if(s)return s}return t.attr("data-src")}}function x(t){const e=t.find(n.settings.default.selector),i=f(e);m(e,i)}function M(t,e){const i=t.find(n.settings.product.linkSelector);i.length!==0&&$.each(i,(a,s)=>{R($(s),e)})}function F(t){const e=t.find(n.settings.product.linkSelector);e.length!==0&&$.each(e,(i,a)=>{G($(a))})}function R(t,e){let i=v(t);const a=new URI(i);a.segment().length>3||(a.segment(e),t.attr("href",a.toString()))}function G(t){let e=v(t);t.attr("href",e)}function v(t){let e=t.attr(n.settings.product.initialLinkAttr);return e||(e=t.attr("href"),t.attr(n.settings.product.initialLinkAttr,e)),e}function H(){if(typeof $.fn.slick!="function")return;t(),e();function t(){n.slider={$_el:$(n.settings.slider.selector).filter((a,s)=>$(s).children().length>1)}}function e(){!n.slider||!n.slider.$_el||n.slider.$_el.length===0||(n.slider.slick=n.slider.$_el.slick(n.settings.slider),n.slider.inited=!0)}function i(){}}function W(){if(!n.settings.slider||typeof $.fn.slick!="function")return;e(),i();function t(){}function e(){!n.slider||!n.slider.$_el||n.slider.$_el.length===0||!n.slider.slick||(n.slider.slick=n.slider.$_el.slick("unslick"))}function i(){n.slider&&(n.slider.inited=!1)}}function j(){if(!n.settings.backface||typeof $.fn.swipe!="function")return;t(),e(),i(),n.backface.inited=!0;function t(){n.backface={$_el:$(n.settings.backface.selector)},n.backface.$parent=n.backface.$_el.closest(n.settings.backface.parent)}function e(){y(),c.on("scroll",C)}function i(){a(),setTimeout(()=>{s(),Common.lazyLoading.load({selector:n.settings.backface.selector})});function a(){n.backface.$_el.each((o,l)=>{const d=$(l);d.attr("data-src-origin",d.attr("data-src")),d.attr("data-src","")})}function s(){n.backface.$_el.each((o,l)=>{const d=$(l);d.attr("data-src",d.attr("data-src-origin")),d.removeAttr("data-src-origin")})}}}function q(){if(!n.backface||!n.backface.inited)return;t(),e();function t(){S(n.backface.$parent),c.off("scroll",C)}function e(){n.backface={$_el:$(),$parent:$(),inited:!1}}}function J(t,e,i,a,s,o){if(e&&i>0){if(e===$.fn.swipe.directions.LEFT||e===$.fn.swipe.directions.RIGHT){const l=$(this);Z(l,!X(l))}K(t,e,i,a,s,o)}else if(common_settings.isMobile){let l=$.Event("click");$(t.currentTarget).trigger(l)}}function K(t,e,i,a,s,o){typeof n.settings.backface.swipe.onAfterSwipe=="function"&&n.settings.backface.swipe.onAfterSwipe(t,e,i,a,s,o)}function C(){Q()}function Q(){clearTimeout(n.backface.windowScrollTimeout),n.backface.windowScrollTimeout=setTimeout(()=>{y()},n.settings.backface.timeout)}function y(){n.backface.$visible=tt(n.backface.$parent),n.backface.$invisible=n.backface.$parent.not(n.backface.$visible),S(n.backface.$invisible),Y(n.backface.$visible,!1).swipe(n.settings.backface.swipe),b(n.backface.$visible,!0)}function b(t,e){if(e===!0){t.addClass(n.settings.backface.activeClass);return}t.removeClass(n.settings.backface.activeClass)}function X(t){return t.hasClass(n.settings.backface.swipedClass)}function Y(t,e){return t.filter(function(){const i=$(this).hasClass(n.settings.backface.activeClass);return e===!0&&i||!i})}function S(t){clearTimeout(n.backface.windowScrollTimeout),b(t,!1),t.swipe("destroy")}function Z(t,e){if(e===!0){t.addClass(n.settings.backface.swipedClass);return}t.removeClass(n.settings.backface.swipedClass)}function tt(t){return t.filter((e,i)=>{const a=$(i),s=a.offset().top,o=c.scrollTop();return s+a.height()>=o&&s<=o+$.getCurrentViewport().height})}function et(){t(),e();function t(){n.catwalk={$_el:$(n.settings.catwalk.selector)}}
514function e(){c.on(window.Syvo.Lazy_Load.eventNames.onAfterLazyLoad,L),c.on(r.eventNames.playCatwalk,h),c.on(r.eventNames.stopCatwalk,_)}}function nt(){t(),e();function t(){c.off(window.Syvo.Lazy_Load.eventNames.onAfterLazyLoad,L),c.off(r.eventNames.playCatwalk,h),c.off(r.eventNames.stopCatwalk,_)}function e(){n.video=null}}function L(t,e){i();function i(){if(!e||e.length===0)return;const a=e.$_el;!a||!A(a)||(a.addClass(n.settings.catwalk.loadedClass),a.each((s,o)=>{o.muted=!0,o.loop=!0,o.load()}),c.trigger(r.eventNames.onAfterCatwalkLoaded,{$el:a}))}}function h(t,e){e&&e.$_el&&st(e.$_el)}function _(t,e){e&&e.$_el&&P(e.$_el)}function it(t,e){t.data&&t.data.video&&g(t.data.video)}function at(t){const e=$(t.currentTarget);A(e)&&g(t.currentTarget)}function st(t){t.find(n.settings.catwalk.selector).each((i,a)=>{const s=$(a);s.hasClass(n.settings.catwalk.loadedClass)?g(a):s.one(window.Syvo.Lazy_Load.eventNames.onAfterLazyLoad,at)})}function P(t){t.find(n.settings.catwalk.selector).each((a,s)=>{const o=$(s);s.autoplay=!1,s.paused||s.pause(),i(o)});function i(a){if(!n.settings.catwalk.parent)return;const s=a.closest(n.settings.catwalk.parent.selector);s.removeClass(n.settings.catwalk.parent.playingClass),s.addClass(n.settings.catwalk.parent.stoppedClass)}}function g(t){const e=$(t);if(!t.paused){i();return}t.autoplay=!0;try{const a=t.play();typeof a!="undefined"?a.then(()=>{i()}):i()}catch(a){c.one("syvo:userInteracted",null,{video:t},it)}function i(){if(!n.settings.catwalk.parent)return;const a=e.closest(n.settings.catwalk.parent.selector);a.removeClass(n.settings.catwalk.parent.stoppedClass),a.addClass(n.settings.catwalk.parent.playingClass),c.trigger(r.eventNames.onAfterCatwalkPlayed,{$el:parent,$parent:a.closest(n.settings.product.selector)})}}function A(t){return t.is("video")}}})(); 515 516(function(){let e=window.Syvo.Search=new SyvoModule("Search",y);function y(M){e.autocompleteTriggered=!1,e.init=u,e.destroy=s,e.reload=w,u();function u(){S(),I(),k()}function s(){P(),x()}function w(){s(),u()}function S(){e.$searchInput=$("[data-property=search]"),e.$searchButton=$("[data-trigger=search]"),e.$searchPanel=$("[data-trigger=search-panel]"),e.$searchForm=e.$searchInput.closest("form")}function I(){e.$searchForm.on("submit",l),e.$searchInput.on("keyup",p),e.$searchButton.on("click",m),e.$searchPanel.on("click",h)}function P(){e.$searchForm.off("submit",l),e.$searchInput.off("keyup",p),e.$searchButton.off("click",m),e.$searchPanel.off("click",h)}function b(){e.$searchInput.each((t,a)=>{let i=$(a).val();return i&&e.$searchInput.val(i),!i})}function l(t){return!1}function p(t){e.$searchInput.val($(t.currentTarget).val()),t.keyCode===13&&d()}function m(t){return d(),!1}function h(t){e.$searchInput.focus()}function k(){b();let t={},a={classes:{"ui-autocomplete":"ui-autocomplete-search"},minLength:2,delay:500,source:(c,n)=>{let o=$.trim(c.term);if(o in t){n(g(t[o]));return}$.ajax({url:"products/suggest",data:{name:o},type:"get",success:r=>{t[o]=r,n(g(t[o]))}})},focus:()=>!1,select:(c,n)=>(e.autocompleteTriggered=!0,e.$searchInput.val(n.item.label),f(n.item.label),location.assign(n.item.value),!1),position:{my:"left top",at:"left bottom",collision:"none"}};e.$searchInput.each((c,n)=>{const o=$(n),r=o.closest(".primary-block, .plp-ajax-listing");r.length&&(a.appendTo=r[0]);let v=$.extend(!0,a,{position:{of:n}});o.autocomplete(v),i(o)}),$(window).on("syvo_fixedHeader:onAfterChange",_);function i(c){const n=c.data("ui-autocomplete"),o=n._resizeMenu;n._resizeMenu=r;function r(){o.apply(this,arguments),$(this.menu.element).css("max-width",this.element.outerWidth())}}function _(){e.$searchInput.each((c,n)=>{$(n).data("ui-autocomplete").menu.element.position({my:"left top",at:"left bottom",of:n,collision:"none"})})}function g(c){return c.map(n=>({value:n.url,label:n.title}))}}function x(){e.$searchInput.data("autocomplete")&&(e.$searchInput.autocomplete("destroy"),e.$searchInput.removeData("autocomplete"))}function d(){let t=$.trim(e.$searchInput.val());if(t!==""&&!e.autocompleteTriggered){let a=new URI(location.href);a.pathname(Common.getBaseHref()+"search").query(""),a.setQuery("searchterm",t),f(t),location.assign(a)}}function f(t){$(document).trigger(window.Syvo.Google_Analytics_4.eventNames.onProductSearch,t),$(document).trigger(window.Syvo.Google_Tag_Manager.eventNames.onProductSearch,t),$(document).trigger(window.Syvo.TikTok_Pixel.eventNames.onProductSearch,t),$(document).trigger(window.Syvo.Pinterest_Pixel.eventNames.onProductSearch,t),$(document).trigger(window.Syvo.Snapchat_Pixel.eventNames.onProductSearch,t),$(document).trigger(window.Syvo.OpenAi_Pixel.eventNames.onProductSearch,t)}}})(); 517 518(()=>{const p=window.Syvo.Social_Networks=new SyvoModule("Social_Networks",it);function it(x){const C={};x.single&&(C.selectors={facebookButtonSelector:"[data-property='facebook-share']",instagramButtonSelector:"[data-property='instagram-share']",linkedinButtonSelector:"[data-property='linkedin-share']",pinterestButtonSelector:"[data-property='pinterest-share']",twitterButtonSelector:"[data-property='x-share']",googleReviewsButtonSelector:"[data-property='googlereviews-share']",whatsAppButtonSelector:"[data-property='whatsapp-share']",youtubeButtonSelector:"[data-property='youtube-share']",emailButtonSelector:"[data-property='email-share']",sharingDialogButtonSelector:"[data-property='dialog-share']"}),x.multi&&(C.selectors={facebookButtonSelector:"[data-property='facebook-share-multi']",instagramButtonSelector:"[data-property='instagram-share-multi']",linkedinButtonSelector:"[data-property='linkedin-share-multi']",pinterestButtonSelector:"[data-property='pinterest-share-multi']",twitterButtonSelector:"[data-property='x-share-multi']",googleReviewsButtonSelector:"[data-property='googlereviews-share']",whatsAppButtonSelector:"[data-property='whatsapp-share-multi']",youtubeButtonSelector:"[data-property='youtube-share-multi']",emailButtonSelector:"[data-property='email-share-multi']",sharingDialogButtonSelector:"[data-property='dialog-share-multi']"});const t=$.extend(!0,{},C,x);p.reload=rt,p.destroy=F,p.init=T;const M=$(window),m=$(document);let f=!1;const nt=Common.getBaseHref().replace(/\/$/,"");function T(){U(),t.single?st():t.multi&<()}function F(){U(),t.single?at():t.multi&&ct(),f=!1}function rt(){F(),T()}p.init();function st(){var o,i,n,r,s,l,c,u,g,h,S,k,B,y,b,v,A,N,_,P,D;let e;t.single.fb&&((n=(i=(o=window.common_settings)==null?void 0:o.socialNetworks)==null?void 0:i.restrictedShareSocialNetworks)==null?void 0:n.fb)!==!0&&(a(t.selectors.facebookButtonSelector),W(t.single.fb.appId),$(t.selectors.facebookButtonSelector).on("click",j),e=f),t.single.tw&&((l=(s=(r=window.common_settings)==null?void 0:r.socialNetworks)==null?void 0:s.restrictedShareSocialNetworks)==null?void 0:l.tw)!==!0&&(a(t.selectors.twitterButtonSelector),$(t.selectors.twitterButtonSelector).on("click",L),e=!0),t.single.pinterest&&((g=(u=(c=window.common_settings)==null?void 0:c.socialNetworks)==null?void 0:u.restrictedShareSocialNetworks)==null?void 0:g.pinterest)!==!0&&(a(t.selectors.pinterestButtonSelector),ut(),e=!0),t.single.whatsApp&&((k=(S=(h=window.common_settings)==null?void 0:h.socialNetworks)==null?void 0:S.restrictedShareSocialNetworks)==null?void 0:k.whatsApp)!==!0&&(a(t.selectors.whatsAppButtonSelector),$(t.selectors.whatsAppButtonSelector).on("click",K),e=!0),t.single.email&&((b=(y=(B=window.common_settings)==null?void 0:B.socialNetworks)==null?void 0:y.restrictedShareSocialNetworks)==null?void 0:b.email)!==!0&&(a(t.selectors.emailButtonSelector),$(t.selectors.emailButtonSelector).on("click",X),e=!0),t.single.sharingDialog&&navigator.share&&((N=(A=(v=window.common_settings)==null?void 0:v.socialNetworks)==null?void 0:A.restrictedShareSocialNetworks)==null?void 0:N.sharingDialog)!==!0&&(a(t.selectors.sharingDialogButtonSelector),$(t.selectors.sharingDialogButtonSelector).on("click",V),e=!0),t.single.googleReviews&&((D=(P=(_=window.common_settings)==null?void 0:_.socialNetworks)==null?void 0:P.restrictedShareSocialNetworks)==null?void 0:D.googleReviews)!==!0&&(a(t.selectors.googleReviewsButtonSelector),e=!0),M.trigger("syvo:social_networks:single_inited",p),e&&a(".share-title"),m.on(window.Syvo.Product_Views.eventNames.productImageUrlChanged,Z)}
518function at(){$(t.selectors.facebookButtonSelector).off("click",j),$(t.selectors.twitterButtonSelector).off("click",L),pt(),$(t.selectors.whatsAppButtonSelector).off("click",K),$(t.selectors.emailButtonSelector).off("click",X),$(t.selectors.sharingDialogButtonSelector).off("click",V),m.off(window.Syvo.Product_Views.eventNames.productImageUrlChanged,Z)}function lt(){var o,i,n,r,s,l,c,u,g,h,S,k,B,y,b,v,A,N,_,P,D;let e;t.multi.fb&&((n=(i=(o=window.common_settings)==null?void 0:o.socialNetworks)==null?void 0:i.restrictedShareSocialNetworks)==null?void 0:n.fb)!==!0&&(a(t.selectors.facebookButtonSelector),W(t.multi.fb.appId),$(t.selectors.facebookButtonSelector).on("click",E),e=f),t.multi.tw&&((l=(s=(r=window.common_settings)==null?void 0:r.socialNetworks)==null?void 0:s.restrictedShareSocialNetworks)==null?void 0:l.tw)!==!0&&(a(t.selectors.twitterButtonSelector),$(t.selectors.twitterButtonSelector).on("click",z),e=!0),t.multi.pinterest&&((g=(u=(c=window.common_settings)==null?void 0:c.socialNetworks)==null?void 0:u.restrictedShareSocialNetworks)==null?void 0:g.pinterest)!==!0&&(a(t.selectors.pinterestButtonSelector),$(t.selectors.pinterestButtonSelector).on("click",G),e=!0),t.multi.whatsApp&&((k=(S=(h=window.common_settings)==null?void 0:h.socialNetworks)==null?void 0:S.restrictedShareSocialNetworks)==null?void 0:k.whatsApp)!==!0&&(a(t.selectors.whatsAppButtonSelector),$(t.selectors.whatsAppButtonSelector).on("click",Q),e=!0),t.multi.email&&((b=(y=(B=window.common_settings)==null?void 0:B.socialNetworks)==null?void 0:y.restrictedShareSocialNetworks)==null?void 0:b.email)!==!0&&(a(t.selectors.emailButtonSelector),$(t.selectors.emailButtonSelector).on("click",Y),e=!0),t.multi.sharingDialog&&navigator.share&&((N=(A=(v=window.common_settings)==null?void 0:v.socialNetworks)==null?void 0:A.restrictedShareSocialNetworks)==null?void 0:N.sharingDialog)!==!0&&(a(t.selectors.sharingDialogButtonSelector),$(t.selectors.sharingDialogButtonSelector).on("click",q),e=!0),t.multi.googleReviews&&((D=(P=(_=window.common_settings)==null?void 0:_.socialNetworks)==null?void 0:P.restrictedShareSocialNetworks)==null?void 0:D.googleReviews)!==!0&&(a(t.selectors.googleReviewsButtonSelector),e=!0),M.trigger("syvo:social_networks:multi_inited",p),e&&a(".share-title")}function ct(){$(t.selectors.facebookButtonSelector).off("click",E),$(t.selectors.twitterButtonSelector).off("click",z),$(t.selectors.pinterestButtonSelector).off("click",G),$(t.selectors.whatsAppButtonSelector).off("click",Q),$(t.selectors.emailButtonSelector).off("click",Y),$(t.selectors.sharingDialogButtonSelector).off("click",q)}function R(e){const o=$(e);o.closest(".social-networks").length>0?o.parent().hide():o.hide()}function a(e){const o=$(e);o.closest(".social-networks").length>0?o.parent().show():o.show()}function U(){R(".share-title"),$.each(t.selectors,(e,o)=>{R(o)})}function W(e){f||(e?(((o,i,n)=>{let r;const s=o.getElementsByTagName(i)[0];o.getElementById(n)||(r=o.createElement(i),r.id=n,r.src="//connect.facebook.net/en_US/sdk.js",s.parentNode.insertBefore(r,s))})(document,"script","facebook-jssdk"),window.fbAsyncInit=()=>{FB.init({appId:e,xfbml:!0,version:"v2.9"})},f=!0):$(t.selectors.facebookButtonSelector).parent().hide())}function E(){const e=$(this),o=e.attr("data-social-url"),i=e.attr("data-social-title"),n=e.attr("data-social-picture");let r=e.attr("data-social-description");r||(r=I(e));const s={u:o,title:i,picture:encodeURI(n),description:r};return O(s),!1}function j(e){const o=$('meta[property="og:url"]').attr("content"),i=$('meta[property="og:title"]').attr("content"),n=$('meta[property="og:image"]').attr("content"),r=$('meta[property="og:description"]').attr("content"),s=o||t.single.url,l=i||t.single.title,c=n||t.single.image,u=r||t.single.description,g={u:t.single.fb.url?t.single.fb.url:s,title:t.single.fb.title?t.single.fb.title:l,picture:encodeURI(t.single.fb.picture?t.single.fb.picture:c),description:t.single.fb.description?t.single.fb.description:u};return O(g),w(e.target.closest("a"),"Facebook"),!1}function O(e){FB.ui({method:"share_open_graph",action_type:"og.shares",action_properties:JSON.stringify({object:{"og:url":e.u,"og:title":e.title,"og:description":e.description,"og:image":e.picture}})},o=>{})}function z(){const e=$(this),o=e.attr("data-social-url"),i=e.attr("data-social-message-postfix")||"",n=e.attr("data-social-title")||"",r=t.multi.tw.messagePrefix||"",s={url:o,text:r+n+i},l=tt(s);return d("x",l),!1}function L(e){const o={url:t.single.tw.url?t.single.tw.url:t.single.url,text:t.single.tw.message?t.single.tw.message:t.single.title,via:t.single.tw.via?t.single.tw.via:null},i=tt(o);return d("x",i),w(e.target.closest("a"),"Twitter"),!1}function V(e){const o=$('meta[property="og:url"]').attr("content"),i=$('meta[property="og:title"]').attr("content"),n=$('meta[property="og:description"]').attr("content");return navigator.share&&navigator.share({title:i,text:n,url:o}).catch(r=>console.log("Web share API error: "+r.message)),!1}function q(e){const o=$(this);return navigator.share&&navigator.share({title:o.attr("data-social-title"),text:o.attr("data-social-description"),url:o.attr("data-social-url")}).catch(i=>console.log("Web share API error: "+i.message)),!1}function G(){const e=$(this),o=e.attr("data-social-url"),i=e.attr("data-social-picture");let n=e.attr("data-social-title");n=n||I(e);let r=e.attr("data-social-description");r=r||I(e);const s={url:o,media:i,description:n+". "+r},l=et(s);return d("pinterest",l),!1}function ut(){t.single.pinterest.pinAny&&t.single.pinterest.pinAny.images?(p.pinterestInited=!1,$("img").attr("data-pin-nopin",!0),$("body").append('<div class="pin-me-only" style="display:none"></div>'),$(t.selectors.pinterestButtonSelector).on("click",H)):$(t.selectors.pinterestButtonSelector).on("click",J)}function pt(){t.single.pinterest.pinAny&&t.single.pinterest.pinAny.images?(p.pinterestInited=!1,$(t.selectors.pinterestButtonSelector).off("
518click",H),$("body .pin-me-only").remove(),$("img").removeAttr("data-pin-nopin")):$(t.selectors.pinterestButtonSelector).off("click",J)}function H(e){if(e.preventDefault(),!window.PinUtils)return;const o="loading-pulsation",i=$(e.currentTarget);if(i.hasClass(o))return;const n=i.attr("title");let r=$(),s=0;if(t.single.pinterest.pinAny.images.forEach((c,u)=>{const g=$(`<img src="${c}" alt="Pinterest image #${u}" data-pin-media="${c}"/>`);r=r.add(g)}),p.pinterestInited)l();else{$(".pin-me-only").append(r);const u=$(".pin-me-only img");u.removeAttr("data-pin-nopin"),u.attr("data-pin-me-only",!0),u.attr("data-pin-description",t.single.pinterest.description),i.addClass(o),i.attr("title","Loading..."),r.on("load error",()=>{s++,r.length===s&&(i.attr("title",n),i.removeClass(o),l())}),p.pinterestInited=!0}function l(){window.PinUtils.pinAny(),w(e.target.closest("a"),"Pinterest")}}function J(e){let o=t.single.pinterest.image?t.single.pinterest.image:t.single.image;if(!o.startsWith("http")){const r=o.replace(/^\/+/,"");o=`${window.location.origin}${nt}/${r}`}const i={url:t.single.pinterest.url?t.single.pinterest.url:t.single.url,media:o,description:t.single.pinterest.description?t.single.pinterest.description:description},n=et(i);return w(e.target.closest("a"),"Pinterest"),d("pinterest",n),!1}function K(e){const o={url:t.single.whatsApp.url?t.single.whatsApp.url:t.single.url,text:t.single.whatsApp.message?t.single.whatsApp.message:t.single.title},i={text:o.text+" "+o.url},n=ot(i);return d("whatsApp",n),w(e.target.closest("a"),"WhatsApp"),!1}function Q(){const e=$(this),o=e.attr("data-social-url"),i=e.attr("data-social-message-postfix"),r={text:(t.multi.whatsApp.messagePrefix||""+i)+" "+o},s=ot(r);return d("whatsApp",s),!1}function X(e){const o=t.single.email.url+"?"+$.param(t.single.email.data,!0);return d("email",o),w(e.target.closest("a"),"Email"),!1}function Y(){const e=t.multi.email.url+"?"+$.param(t.multi.email.getData($(this)),!0);return d("email",e),!1}function Z(e,o){t.single.image=o}function tt(e){return"http://x.com/share?"+$.param(e,!0)}function gt(e){return"https://www.facebook.com/sharer/sharer.php?"+$.param(e,!0)}function et(e){return"https://www.pinterest.com/pin/create/button/?"+$.param(e,!0)}function ot(e){return"https://wa.me/?text="+e.text}function I(e){const o=e.closest(t.multi.parentSelector),i=t.multi.descriptionSelector?t.multi.descriptionSelector:"[data-property='description']",n=o.find(i).text();return n||""}function d(e,o){const i=$.getCurrentViewport();let n={width:i.width>767?767:i.width,height:(function(){return this.width*9/16})()};typeof t.customPopupWindowSize=="function"&&(n=t.customPopupWindowSize());const r=i.width/2-n.width/2,s=i.height/2-n.height/2,l=o,c="status=1,width="+n.width+",height="+n.height+",top="+s+",left="+r+",menubar=no,toolbar=no,resizable=yes,scrollbars=yes";return window.open(l,e,c)}function w(e,o){if(e){const i=$(e),n={socialNetwork:i.attr("title")||o,placement:i.data("placement")};m.trigger(window.Syvo.Google_Analytics_4.eventNames.onProductShared,n),m.trigger(window.Syvo.Google_Tag_Manager.eventNames.onProductShared,n),m.trigger(window.Syvo.Snapchat_Pixel.eventNames.onProductShared,n),m.trigger(window.Syvo.OpenAi_Pixel.eventNames.onProductShared,n)}}}})(); 519 520(function(){var e=window.Syvo.Text_Expander=new SyvoModule("Text_Expander",c);function c(g){var p={parent:{selector:"[data-property='parent']"},target:{selector:"[data-text-expanded]",attr:"data-text-expanded",childEl:"p"},action:{selector:"[data-text-expander]",attr:"data-text-expander",label:{compendious:"Learn More",expanded:"Hide"}},classes:{compendious:"compendious",expanded:"expanded"}},f=this;if(e.settings=$.extend(!0,{},p,g),!e.settings.parent||!e.settings.target||!e.settings.action||!e.settings.classes||(e.action=$(e.settings.action.selector),e.targetTexts=[],e.action.length===0))return;e.populateTarget=h,e.toggleState=m;for(var i=0,x=e.action.length;i<x;i++){var r=$(e.action[i]),d=r.closest(e.settings.parent.selector),u=d.find(e.settings.target.selector);e.populateTarget(d,r,u)}e.action.on("click",function(s){s.preventDefault();var a=$(this),t=a.closest(e.settings.parent.selector),n=t.find(e.settings.target.selector);e.toggleState(t,a,n)});function m(s,a,t){s.hasClass(e.settings.classes.compendious)?(s.removeClass(e.settings.classes.compendious),t.html(l(t,"expandedText")),a.html(e.settings.action.label.expanded),s.addClass(e.settings.classes.expanded)):s.hasClass(e.settings.classes.expanded)&&(s.removeClass(e.settings.classes.expanded),t.html(l(t,"compendiousText")),a.html(e.settings.action.label.compendious),s.addClass(e.settings.classes.compendious))}function h(s,a,t){var n=Common.decodeHtml(t.attr(e.settings.target.attr)),o=t.html();if(n.length<=o.length){a.hide();return}s.hasClass(e.settings.classes.compendious)?(a.html(e.settings.action.label.compendious),e.targetTexts.push({key:t,compendiousText:o,expandedText:n})):s.hasClass(e.settings.classes.expanded)&&(a.html(e.settings.action.label.expanded),e.targetTexts.push({key:t,compendiousText:n,expandedText:o}))}function l(s,a){if(s){for(var t=-1,n=0,o=e.targetTexts.length;n<o;n++){var T=e.targetTexts[n];if(T.key.is(s)){t=n;break}}if(!(t<0)&&e.targetTexts[t].hasOwnProperty(a))return e.targetTexts[t][a]}}}})(); 521 522(()=>{const r=window.Syvo.Video=new SyvoModule("Video",te);r.eventNames.fullScreenExited=r.getModuleEventName("fullScreenExited");class E{constructor(){const n=this;this.source={type:"",src:""},n.techOrder=["html5"],n.sources=[this.source],n.poster="",n.controls=!0,n.controlBar=!1,n.class="vjs-styles-defaults",n.setPoster=a=>{n.poster=a},n.setSrc=a=>{n.source.src=a},n.setMuted=a=>{n.muted=a},n.setAutoplay=a=>{n.autoplay=a},n.setControls=a=>{a&&(n.controls=a)},n.userActions={hotkeys:a=>{let C=a.key||a.which||a.keyCode||a.charCode;$(window).trigger(r.eventNames.fullScreenExited,[a.currentTarget.player,C])}}}}
522class N extends E{constructor(){super();const n=this;n.techOrder=["youtube"],n.source.type="video/youtube",n.muted=!1,n.fluid=!0,n.loop=!0,n.youtube={iv_load_policy:3},n.controls=!1,n.controlBar=!1,n.preload="auto",n.language="en",n.aspectRatio="16:9"}}class j extends E{constructor(){super();const n=this;n.techOrder=["vimeo"],n.source.type="video/vimeo",n.muted=!1,n.fluid=!0,n.loop=!0,n.controls=!1,n.controlBar=!1,n.preload="auto",n.language="en",n.aspectRatio="16:9"}}function te(S){const a=$(document),C={userInteractedClass:"syvo-video--user-interacted",muteOnAutoplay:!0,pauseOnAutoplay:!1,isMobile:common_settings.isMobile,responsive:[]},A=$(window),F=$("body");r.settings=$.extend(!0,{},C,S),r.playerItems=[],r.pauseAll=Q,r.playAll=he,r.initVideoJsSingleItem=z,r.bindVideoHandlers=X,r.handleCarouselVideos=Z,r.getPlayerOptions=ne;let m;const O=r.settings.responsive&&r.settings.responsive.length>0;if(O){let t=function(){F.addClass(r.settings.userInteractedClass),R(),r.playerItems&&r.playerItems.length>0&&(m=T($.getCurrentViewport().width))};var $e=t;let e=null;A.on("resize gestureend syvo:pinchend orientationchange",()=>{clearTimeout(e),e=setTimeout(()=>{t()},500)})}A.one("syvo:userInteracted",ie);function ie(e){se()}function se(){F.hasClass(r.settings.userInteractedClass)||(F.addClass(r.settings.userInteractedClass),m=null,R())}function R(){r.playerItems&&r.playerItems.length>0&&r.playerItems.forEach(e=>{V($(e.el_),e)})}oe();function oe(){const e=$("[data-video-type='video-js']");e.length!==0&&(e.each((t,i)=>{const s=z(i);s&&r.playerItems.push(s)}),m=T($.getCurrentViewport().width),X(),Z())}function z(e){const t=$(e),i=D(t);if(i&&i.length>0){const s=K(i),o=t.attr("data-video-poster"),u=t.attr("data-video-aspect-ratio"),l=Y(s);if(l.setPoster(o),l.setSrc(i),G(l,u,t),t.addClass("video-js is-initializing is-paused"),t.attr("webkit-playsinline",!0),t.attr("playsinline",!0),ge(t)){le(t,l);const d=videojs(e,l),g=$(d.el_);return de(d),V(g,d),g.removeClass("is-initializing"),d}else t.remove()}}function ne(e){const t=D(e),i=e.attr("data-video-poster"),s=e.attr("data-video-aspect-ratio"),o=K(t),u=Y(o);return u.setSrc(t),u.setPoster(i),G(u,s,e),u}function G(e,t,i){t&&(e instanceof N||e instanceof j?e.aspectRatio=t:i.css("aspect-ratio",t.replace(":","/")))}function D(e){return e.attr("data-video-url")||e.find("source").attr("src")||e.find("data-src").attr("src")}function x(e,t){const i=T(t)||{},s=re(e,t)||{};return{breakpoint:i.breakpoint||s.breakpoint,settings:$.extend(!0,{},r.settings,i.settings,s.settings)}}function T(e){return W(r.settings,e)}function re(e,t){return W(ue(e),t)}function ue(e){let t=e.attr("data-video-options");if(t)return JSON.parse(t)}function W(e,t){if(!e)return;if(!e.responsive||e.responsive.length===0)return{breakpoint:8e3,settings:e};let i=e.responsive.sort((s,o)=>s.breakpoint<o.breakpoint?-1:s.breakpoint>o.breakpoint?1:0);return i=i.filter((s,o)=>s.breakpoint>=t),i.length===0&&i.push({breakpoint:8e3,settings:e}),i[0]}function le(e,t){const i=$.getCurrentViewport().width,s=x(e,i);if(!O||!m||s.breakpoint!==m.breakpoint){const o=e.attr("autoplay");(s.settings.autoplay||o)&&(s.settings.muteOnAutoplay?t.setMuted(!0):t.setMuted(!1),s.settings.pauseOnAutoplay?t.setAutoplay(!1):t.setAutoplay(!0))}}function de(e){o(),e.on("play",t),e.on("pause",i),e.on("waiting",()=>{$(e.el_).addClass("videojs-video--loading")});function t(){const u=$(e.el_);_(u.attr("id"),!1),u.removeClass("videojs-video--loading"),s(e)}function i(){const u=$(e.el_),l=e.paused();_(u.attr("id"),!0),u.removeClass("videojs-video--loading")}function s(u){$(u.el_).attr("data-pause-others")==="true"&&r.playerItems.forEach(d=>{var f,c;if(d===u)return;const g=$(d.el_),M=((f=d.autoplay)==null?void 0:f.call(d))===!0||g.prop("autoplay"),B=((c=d.muted)==null?void 0:c.call(d))===!0;if(M){B||b(g,d);return}v(g,d,!0)})}function o(){if(typeof $.fn.slick!="function")return;e.on("play",u),e.on("pause",l),e.on("fullscreenchange",d);function u(){g(!0)}function l(){g(!1)}function d(){const f=$(e.el_);w(f,e)}function g(f){const c=$(e.el_);if(f){if(c.attr("data-property")==="product-video-description"&&(a.trigger(window.Syvo.Google_Analytics_4.eventNames.onProductDescriptionVideoPlayed),a.trigger(window.Syvo.Google_Tag_Manager.eventNames.onProductDescriptionVideoPlayed)),c.attr("data-property")==="product-video-overview"&&(a.trigger(window.Syvo.Google_Analytics_4.eventNames.onProductVideoPlayed),a.trigger(window.Syvo.Google_Tag_Manager.eventNames.onProductVideoPlayed)),L(c)){M(e),q(e,f);return}e.pause(),me(c)}else _(c.attr("id"),f)}function M(f){if(!f)return;const c=B(f);
522!c||c.length===0||c.forEach(p=>{p.pause()})}function B(f){if(!f)return;const c=$(f.el_);let p=c.closest(".item");if((!p||p.length===0)&&(p=c.closest(".slick-slide")),!p||p.length===0)return;const ke=p.find("[data-video-type='video-js']:not(video)").not(c),I=[];return r.playerItems.forEach(ee=>{$(ee.el_).is(ke)&&I.push(ee)}),I}}}function q(e,t){const i=$(e.el_),s=i.closest(".slick-slider.slick-initialized");if(s.length===0)return;const o=s.slick("getSlick");if(!o)return;if(t?(o.pause(),s.one("beforeChange",()=>{o.options.autoplay&&o.paused&&o.play()})):o.options.autoplay&&o.paused&&o.play(),!e.loop()){const l=e.tech();let d;l?d=$(l.el_):d=i.is("video")?i:i.find("video"),d.one("ended",()=>{o.options.autoplay&&o.paused&&o.play()})}}function V(e,t){P(e.find("[data-video-mute]"),e),J(e.find("[data-video-full-screen]"),e),fe(e.find("[data-video-button]"),e);const i=x(e,$.getCurrentViewport().width);if(!O||!m||i.breakpoint!==m.breakpoint){const u=e.attr("autoplay");i.settings.autoplay||u?(i.settings.muteOnAutoplay?b(e,t):H(e,t),i.settings.pauseOnAutoplay?v(e,t,!0):v(e,t,!1)):e.attr("muted")&&b(e,t),i.settings.playOnHover==!0?(e.on("mouseenter",s),e.on("mouseleave",o)):(e.off("mouseenter",s),e.off("mouseleave",o)),ve(e,t,r.settings.isMobile)}function s(u){v(e,t,!1)}function o(u){v(e,t,!0)}}function b(e,t){t&&t.muted(!0);const i=P(e.find("[data-video-mute]"),e);i.removeClass("is-hidden"),i.addClass("is-muted"),e.addClass("is-muted"),e.attr("data-video-muted",!0)}function H(e,t){t&&(t.muted(!1),t.volume(70));const i=P(e.find("[data-video-mute]"),e);i.removeClass("is-hidden"),i.removeClass("is-muted"),e.removeClass("is-muted"),e.attr("data-video-muted",!1)}function v(e,t,i){t&&(i&&i===!0?(t.pause(),e.addClass("is-paused")):L(e)?(t.play(),e.removeClass("is-paused")):v(e,t,!0),_(t.id_,i&&i===!0))}
522function ae(e,t){t&&(t.supportsFullScreen()?(t.requestFullscreen||t.webkitRequestFullScreen||t.mozRequestFullScreen||t.msRequestFullScreen||function(){}).call(t):(t.enterFullWindow(),w(e,t)))}function ce(e,t){t&&(t.supportsFullScreen()?(t.exitFullscreen||t.mozCancelFullScreen||t.webkitExitFullscreen||t.msExitFullscreen||function(){}).call(t):(t.exitFullWindow(),w(e,t)))}function _(e,t){$(`[data-video-button=#${e}]`).attr("data-video-paused",t)}function P(e,t){const i=U(t);return(!e||e.length===0)&&(e=$(`<div role="button" class="btn-video btn-mute" data-video-mute="#${t.attr("id")}" tabindex="-1" aria-label="Toggle on/off volume"> 523 <i class="fa fa-volume-up fa-o" aria-hidden="true"></i> 524 <i class="fa fa-volume-off" aria-hidden="true"></i> 525 </div>`),i.append(e)),e}function J(e,t){const i=U(t);return(!e||e.length===0)&&(e=$(`<div role="button" class="btn-video btn-full-screen" data-video-full-screen="#${t.attr("id")}" tabindex="-1" aria-label="Toggle Fullscreen"> 526 <i class="fa fa-expand" aria-hidden="true"></i> 527 <i class="fa fa-compress" aria-hidden="true"></i> 528 </div>`),i.append(e)),e}function fe(e,t){return(!e||e.length===0)&&(e=$(`<div role="button" class="btn-video-overlay" data-video-button="#${t.attr("id")}" tabindex="-1" aria-label="Play/Pause video" aria-hidden="true"> 529 </div>`),t.append(e)),e}function U(e){let t=e.find(".btn-video__panel");return t&&t.length===0&&(t=$('<div class="btn-video__panel" aria-hidden="true"></div>'),e.append(t)),t}function w(e,t){const i=J(e.find("[data-video-full-screen]"),e);setTimeout(()=>{t.isFullscreen()?(i.addClass("is-full-screen"),e.addClass("is-full-screen"),typeof r.settings.onFullSreenToggle=="function"&&r.settings.onFullSreenToggle(e)):(i.removeClass("is-full-screen"),e.removeClass("is-full-screen"),typeof r.settings.onWindowToggle=="function"&&r.settings.onWindowToggle(e))},100)}function ve(e,t,i){i?e.addClass("is-mobile"):e.removeClass("is-mobile")}function ge(e){return pe(e)}function pe(e){if(typeof $.fn.slick!="function")return!0;const t=e.closest(".slick-cloned");return t.length===0?!0:(e.remove(),t.find("[data-video-button]").removeAttr("data-video-button"),t.find("[data-video-mute]").removeAttr("data-video-mute"),!1)}function L(e){return e.closest(".common-videolist .carousel").length===0&&e.closest(".common-videolist [data-slick]").length===0||e.closest(".common-videolist .carousel .item.active").length>0||typeof $.fn.slick!="function"||e.closest(".slick-initialized").length===0?!0:e.closest(".slick-active").length>0}function me(e){let t=e.closest(".common-videolist .carousel");if(t.length>0){h(t,".item.active");return}if(typeof $.fn.slick!="function")return;const i=e.closest(".common-videolist [data-slick]");i.hasClass("slick-initialized")?(t=i.slick("getSlick"),h(t.$slider,".slick-active")):i.on("init",(s,o)=>{h(o.$slider,".slick-active")})}function X(){A.on(r.eventNames.fullScreenExited,(e,t,i)=>{if(t){const s=$(t.el_);w(s,t)}}),$("[data-video-button]").on("click mouseenter mouseleave",e=>{const t=$(e.currentTarget),i=t.attr("data-video-button");if(e.type==="click"){const s=t.attr("href");if(typeof s!="undefined"&&s!==i&&s.indexOf("javascript:void(0);")===-1)return}if(e.preventDefault(),i){const s=k($(i)),o=$(s.el_),u=$.getCurrentViewport().width,l=x(o,u);if(e.type==="click"||l.settings.playOnHover){const d=e.type==="click"&&s.paused()||e.type=="mouseenter";v(o,s,!d),t.attr("data-video-paused",!d),d?t.removeClass("is-paused"):t.addClass("is-paused"),o.addClass("is-dirty")}}return!1}),$("[data-video-mute]").on("click",e=>{e.preventDefault();const i=$(e.currentTarget).attr("data-video-mute");if(i){const s=k($(i)),o=$(s.el_);s.muted()?H(o,s):b(o,s),o.addClass("is-dirty")}return!1}),$("[data-video-full-screen]").on("click",e=>{e.preventDefault();const i=$(e.currentTarget).attr("data-video-full-screen");if(i){const s=k($(i)),o=$(s.el_);s.isFullscreen()?ce(o,s):ae(o,s),o.addClass("is-dirty")}return!1}),a.on("visibilitychange",()=>{document.visibilityState==="hidden"&&Q()})}function Z(){typeof $.fn.slick=="function"&&$(".common-videolist [data-slick]").each((e,t)=>{const i=$(t);if(i.hasClass("slick-initialized")){const o=i.slick("getSlick");s(o)}else i.on("init",(o,u)=>{setTimeout(()=>s(u),0)});function s(o){!o||!o.$slider||(y(o.$slider,".slick-slide:not(.slick-active)"),h(o.$slider,".slick-slide.slick-active"),o.$slider.on("afterChange",(u,l,d,g)=>{y(l.$slider,".slick-slide:not(.slick-active)"),h(l.$slider,".slick-slide.slick-active")}))}}),$(".common-videolist .carousel").each((e,t)=>{const i=$(t);y(i,".item:not(.active)"),h(i,".item.active"),i.on("slide.bs.carousel",s=>{y($(s.currentTarget),".item:not(.active)")}),i.on("slid.bs.carousel",s=>{h($(s.currentTarget),".item.active")})})}
529function y(e,t){e.find(t).find($("[data-video-type='video-js']:not(video)")).each((o,u)=>{const l=k($(u));l&&v($(l.el_),l,!0)})}function h(e,t){e.find(t).find($("[data-video-type='video-js'][autoplay]:not(video)")).each((o,u)=>{const l=k($(u));l&&(V($(l.el_),l,!0),q(l,!0))})}function k(e){return r.playerItems.find(t=>$(t.el_).is(e))}function K(e){return e.indexOf("youtube")>=0||e.indexOf("youtu.be")>=0?"youtube":e.indexOf("vimeo")>=0?"vimeo":null}function Y(e){return e==="youtube"?new N:e==="vimeo"?new j:new E}function Q(){r.playerItems.forEach(e=>{v($(e.el_),e,!0)})}function he(){r.playerItems.forEach(e=>{v($(e.el_),e,!1)})}}})(); 530 531(function(){const a=window.Syvo.Webchat_Client=new SyvoModule("Webchat_Client",y);a.eventNames.closeWidget=a.getModuleEventName("closeWidget");function y(g){const W={selector:"[data-property=webchat-client]",mobileClass:"aihq-webchat__client--mobile",mobileBreakpointWidth:992,mobileBreakpointHeight:585,openedByDefault:!1,widget:{parentSelector:"[data-parent=webchat-client-widget]",selector:"[data-property=webchat-client-widget]",htmlTemplate:'<iframe class="aihq-webchat__client__iframe--widget" data-property="webchat-client-widget"></iframe>'},btn:{selector:"[data-trigger=webchat-client-widget]",activatingClass:"activating",activedClass:"actived",closingClass:"closing",closedClass:"closed",animatingClass:"animating",animatingTimeout:200},urls:{widget:"widget",getToken:"getWebchatToken"},callbacks:{onOpenWebchatWidget:()=>{},onCloseWebchatWidget:()=>{}}},d=$(window),u=$("html, body");a.init=c,a.destroy=f,a.reload=k;const t={};c();function c(e){if(t.settings=$.extend(!0,{},W,g,e),!t.settings.selector||t.settings.selector.length===0||!t.settings.widget||!t.settings.btn||!t.settings.urls)return;i(),n(),t.settings.openedByDefault&&(C()||m($(t.settings.btn.selector),!0));function i(){t.$client=$(t.settings.selector),t.$widgetParent=t.$client.find(t.settings.widget.parentSelector)}function n(){t.$client.on("click",t.settings.btn.selector,b),d.on("message",w)}}function f(){i(),e(),n();function e(){t.$client=$(),t.$widgetParent=t.$client.find()}function i(){t.$client.off("click",t.settings.btn.selector,b),d.off("message",w)}function n(){h()}}function k(e){f(),c(e)}function b(e){T($(e.currentTarget))}function w(e){v(e.originalEvent)}function v(e){if(e.origin!==window.origin||Object.values(a.eventNames).every(s=>s!==e.data.type))return;let n;e.data.type===a.eventNames.closeWidget&&(n=h),n&&n().then(()=>{typeof e.data.onSuccess=="function"&&e.data.onSuccess()},()=>{typeof e.data.onError=="function"&&e.data.onError()}).finally(()=>{typeof e.data.onFinally=="function"&&e.data.onFinally()})}function h(){return new Promise((e,i)=>{const n=t.$client.find(t.settings.btn.selector);if(n.length===0){l(!1),e();return}r(n,!1).then(()=>{l(!1),e()})})}function T(e){e.hasClass(t.settings.btn.animatingClass)||e.hasClass(t.settings.btn.activatingClass)||e.hasClass(t.settings.btn.closingClass)||m(e,!e.hasClass(t.settings.btn.activedClass))}function m(e,i){i?B().then(n=>{r(e,i).then(()=>{l(i,n)})}):r(e,i).then(()=>{l(i)})}function C(){const e=$.getCurrentViewport();return e.width<t.settings.mobileBreakpointWidth||e.height<t.settings.mobileBreakpointHeight}function l(e=!0,i=null){const n=C();let s=S();if((!s||s.length===0)&&(s=P()),e!==!0||!i){s.attr("src",""),u.removeClass("overflow-hidden-mobile"),t.$widgetParent.hide(),t.settings.callbacks&&typeof t.settings.callbacks.onCloseWebchatWidget=="function"&&t.settings.callbacks.onCloseWebchatWidget();return}const o=new URI(window.location.href);o.pathname(t.settings.urls.widget).query(""),o.setQuery("token",i),o.setQuery("isMobileView",n),n?t.$client.addClass(t.settings.mobileClass):t.$client.removeClass(t.settings.mobileClass),s.attr("src",o.toString()),u.addClass("overflow-hidden-mobile"),t.$widgetParent.show(),t.settings.callbacks&&typeof t.settings.callbacks.onOpenWebchatWidget=="function"&&t.settings.callbacks.onOpenWebchatWidget()}function S(){return t.$client.find(t.settings.widget.selector)}function P(){return t.$widgetParent.html(t.settings.widget.htmlTemplate),t.$widgetParent.find(t.settings.widget.selector)}function B(){return new Promise((e,i)=>{$.ajax({url:g.urls.getToken,type:"GET"}).done(n=>{e(n.token)}).fail(n=>{i(n)})})}function r(e,i=!0){return i===!0?p(e,t.settings.btn.activedClass,t.settings.btn.activatingClass,t.settings.btn.closedClass,t.settings.btn.animatingClass,t.settings.btn.animatingTimeout):p(e,t.settings.btn.closedClass,t.settings.btn.closingClass,t.settings.btn.activedClass,t.settings.btn.animatingClass,t.settings.btn.animatingTimeout)}function p(e,i,n,s,o,M){return new Promise((V,N)=>{e.addClass(o).addClass(n),_(()=>{e.removeClass(s)},M).then(()=>{e.addClass(i),V()}).catch(()=>{N()}).finally(()=>{e.removeClass(o).removeClass(n)})})}function _(e,i){return new Promise((n,s)=>{(typeof e!="function"||isNaN(parseInt(i)))&&s(),e(),setTimeout(()=>{n()},i)})}}})(); 532 533(()=>{const t=window.Syvo.Wishlist_Heart=new SyvoModule("Wishlist_Heart",w);function w(y){const l={urls:{add:"wishlist/add",remove:"wishlist/remove-product"}
533,controls:{selector:"[data-trigger=add-wishlist]",activeClass:"active",hoverClass:"hover"},counter:{parentSelector:"[data-parent=wishlist-counter]",parentActiveClass:"active",selector:"[data-change=wishlist]",initialCount:0,maxCount:null,maxCountCallback(e){}},parent:{selector:"[data-property=parent]",dataAttribute:"data-product-id",collectionIdAttribute:"data-collection-id",activeControlClass:"product--wishlist-heart--active",hoverControlClass:"product--wishlist-heart--hover"},refreshOnModify:!1};if(t.settings=$.extend(!0,{},l,y),!t.settings.controls||!t.settings.parent)return;t.init=a,t.reload=d,t.reinit=d,t.destroy=u,a();function a(){A(),b(),x()}function u(){P()}function d(e){u(),e&&(t.settings=$.extend(!0,{},l,e)),a()}function A(){t.$controls=$(t.settings.controls.selector),t.$counter=$(t.settings.counter.selector),t.count=t.settings.counter.initialCount}function b(){t.$controls.on("touchstart click",f),t.$controls.on("mouseenter",g),t.$controls.on("mouseleave",v)}function x(){c(),$.each(t.$controls,(e,s)=>{const n=$(s),o=n.closest(t.settings.parent.selector);n.hasClass(t.settings.controls.activeClass)?o.addClass(t.settings.parent.activeControlClass):o.removeClass(t.settings.parent.activeControlClass)})}function P(){t.$controls.trigger("mouseleave"),t.$controls.off("touchstart click",f),t.$controls.off("mouseenter",g),t.$controls.off("mouseleave",v)}function f(e){return(e.type==="touchstart"||e.type==="click")&&(e.type==="touchstart"&&e.stopImmediatePropagation(),e.preventDefault()),S($(this)),!1}function g(e){const s=$(e.currentTarget);s.addClass(t.settings.controls.hoverClass),s.closest(t.settings.parent.selector).addClass(t.settings.parent.hoverControlClass)}function v(e){const s=$(e.currentTarget);s.removeClass(t.settings.controls.hoverClass),s.closest(t.settings.parent.selector).removeClass(t.settings.parent.hoverControlClass)}function S(e){const s=e.closest(t.settings.parent.selector);if(!s||s.length===0)return!1;let n=s.attr(t.settings.parent.dataAttribute);(!n||n<=0)&&(n=e.attr(t.settings.parent.dataAttribute));let o=s.attr(t.settings.parent.collectionIdAttribute);(!o||o<=0)&&(o=e.attr(t.settings.parent.collectionIdAttribute)),N(e)?T(n,e).then(()=>{t.settings.refreshOnModify&&window.location.reload(),c()}):k(n,e,o).then(i=>{if(i&&i.value){const r=JSON.parse(i.value);$(document).trigger(window.Syvo.Google_Analytics_4.eventNames.onProductAddedToWishlist,r.ga),$(document).trigger(window.Syvo.Facebook_Pixel.eventNames.onProductAddedToWishlist,r.facebook),$(document).trigger(window.Syvo.Google_Tag_Manager.eventNames.onProductAddedToWishlist,r.general),$(document).trigger(window.Syvo.Hubspot.eventNames.onProductAddedToWishlist,r.general),$(document).trigger(window.Syvo.TikTok_Pixel.eventNames.onProductAddedToWishlist,r.general),$(document).trigger(window.Syvo.Snapchat_Pixel.eventNames.onProductAddedToWishlist,r.general),$(document).trigger(window.Syvo.OpenAi_Pixel.eventNames.onProductAddedToWishlist,r.general)}t.settings.refreshOnModify&&window.location.reload(),c()})}function C(e){if(t.count=p()||t.count,!$.isNumeric(t.count)||t.count<0)return;e?t.count++:t.count>0&&t.count--,t.$counter.text(t.count);const s=t.$counter.closest(t.settings.counter.parentSelector);s.length!==0&&(t.count>0?s.addClass(t.settings.counter.parentActiveClass):s.removeClass(t.settings.counter.parentActiveClass))}function p(){const e=parseInt(t.$counter.text());if(!isNaN(e))return e}function c(){t.settings.counter.maxCount&&(t.count=p()||t.count,$.isNumeric(t.count)&&t.count>=t.settings.counter.maxCount&&typeof t.settings.counter.maxCountCallback=="function"&&t.settings.counter.maxCountCallback(t))}function k(e,s,n){return new Promise((o,i)=>{if(!e||e<=0){i();return}h(s),$.ajax({type:"POST",url:t.settings.urls.add,data:{productId:e,collectionId:n},success(r){o(r)},error(r){m(s),i(r)}})})}function T(e,s){return new Promise((n,o)=>{if(!e||e<=0){o();return}m(s),$.ajax({type:"POST",url:t.settings.urls.remove,data:{productId:e},success(i){n(i)},error(i){h(s),o(i)}})})}function h(e){if(!e||e.length===0)return;e.addClass(t.settings.controls.activeClass),e.removeClass(t.settings.controls.hoverClass),e.closest(t.settings.parent.selector).addClass(t.settings.parent.activeControlClass),C(!0)}function N(e){return!e||e.length===0?!1:e.hasClass(t.settings.controls.activeClass)}function m(e){if(!e||e.length===0)return;e.removeClass(t.settings.controls.activeClass),e.removeClass(t.settings.controls.hoverClass),e.closest(t.settings.parent.selector).removeClass(t.settings.parent.activeControlClass),C(!1),e.blur()}}})(); 534 535(()=>{const C=window.Syvo.Home_Page=new SyvoModule("Home_Page",S);function S(h){const m={featuredStores:null,featuredLookBooks:null,slick:{}},g=$(window),b=$(document),y=typeof $.fn.slick=="function",e=$.extend(!0,{},m,h),n={};if(e.featuredStores){let l=function(){d().then(r).catch(s=>{console.warn("Featured stores block was not rendered.",s)})},r=function(s){if(s)return new Promise((i,u)=>{const k=$(e.featuredStores.selector);if(e.featuredStores.url&&k.length>0){$.ajax({url:e.featuredStores.url,data:s,type:"GET"}).done(c=>{k.html(c.componentHtml),$(e.featuredStores.container).toggle(c.count>0),typeof e.featuredStores.successCallback=="function"&&e.featuredStores.successCallback(c.count),i()}).fail(()=>{u(new Error("Failed to load featured stores."))});return}u(new Error("Featured stores url or container is not defined."))})},d=function(){return new Promise(s=>{if(navigator.geolocation){navigator.geolocation.getCurrentPosition(i=>{const u={latitude:i.coords.latitude,longitude:i.coords.longitude};s(u)},()=>{s(null)});return}s(null)})};var V=l,A=r,_=d;l()}if(e.featuredLookBooks&&y){const l={autoplay:e.featuredLookBooks.autoplay?e.featuredLookBooks.autoplay:!1,slidesToShow:e.featuredLookBooks.slidesToShow?e.featuredLookBooks.slidesToShow:4,slidesToScroll:e.featuredLookBooks.slidesToScroll?e.featuredLookBooks.slidesToScroll:1,arrows:e.featuredLookBooks.arrows?e.featuredLookBooks.arrows:!0,nextArrow:'<div class="slick-next slick-arrow"><span></span></div>',prevArrow:'<div class="slick-prev slick-arrow"><span></span></div>',infinite:e.featuredLookBooks.infinite?e.featuredLookBooks.infinite:!0,responsive:e.featuredLookBooks.responsive?e.featuredLookBooks.responsive:[{breakpoint:1200,settings:{slidesToShow:3}},{breakpoint:993,settings:{centerMode:!1,slidesToShow:2,centerPadding:"0",autoplay:!1}}],beforeChange:e.featuredLookBooks.beforeChange||null,afterChange:e.featuredLookBooks.afterChange||null};$(".slider-featured-lookbooks").slick(l)}if(e.slick&&y){let d=function(s){n.slider.videos={};const i=P(s);b.on("visibilitychange",function(){document.visibilityState==="hidden"?(n.slider.videos.blockPlay=!0,s.pauseAll()):(n.slider.videos.blockPlay=!1,B())});for(let o=0,t=i.length;o<t;o++)i[o].on("play",u),i[o].on("pause",k);function u(){g.trigger(window.Syvo.Google_Analytics_4.eventNames.onHomePageVideoPlayed,this.id),g.trigger(window.Syvo.Google_Tag_Manager.eventNames.onHomePageVideoPlayed,this.id),c(!0,this)}function k(){c(!1,this)}function c(o,t){if(!t)return;const a=$(t.el_),f=a.closest("[data-parent='video-js']"),p=f.closest(".slick-slide"),v=p.find("[data-vi
535deo-button]");if(o)f.addClass("is-playing"),v.filter(`[data-video-button=#${a.attr("id")}]`).addClass("video-playing");else if(f.removeClass("is-playing"),v.filter(`[data-video-button=#${a.attr("id")}]`).removeClass("video-playing"),p.hasClass("slick-current")){const T=p.find("[data-parent='video-js']").not(f).find("[data-video-type='video-js']:not(video)");w(T)}}function w(o){const t=L(o);t&&!n.slider.videos.blockPlay&&t.play()}function L(o){for(let t=0,a=i.length;t<a;t++)if($(i[t].el_).is(o))return i[t]}function B(){const o=r.find(".slick-current [data-video-type='video-js'][autoplay='true']:not(video)");o.length>0&&w(o)}function P(o){const t=[];if(o&&o.playerItems&&$.isArray(o.playerItems))for(let a=0,f=o.playerItems.length;a<f;a++){const p=o.playerItems[a];r.has(p.el_)&&t.push(p)}return t}};var x=d;n.slider={};const l={selector:".main-carousel > .list",slidesToShow:1,slidesToScroll:1,arrows:!0,prevArrow:'<div class="left carousel-control" tabindex="-1" aria-hidden="true"><span class="carousel-arrow"></span></div>',nextArrow:'<div class="right carousel-control" tabindex="-1" aria-hidden="true"><span class="carousel-arrow"></span></div>',dots:!0,autoplay:!0,infinite:!0};n.slider.settings=$.extend({},l,e.slick);const r=$(n.slider.settings.selector);if(r.length>0){const s=r.attr("data-property-autoplaySpeed");s?n.slider.settings.autoplaySpeed=s:n.slider.settings.autoplay=!1,r.slick(n.slider.settings),r.find("a").on("click",i=>{$(i.currentTarget).attr("rel")!=="modal:open"&&i.stopPropagation()})}window.Syvo.Video.isLoaded()?d(window.Syvo.Video):g.one(window.Syvo.Video.eventNames.onAfterLoad,()=>{d(window.Syvo.Video)})}}})(); 536 537(function(){let S=window.Syvo.Subscribe=new SyvoModule("Subscribe",y);function y(p){let l=!1;x(),F(),w();function w(){$("[data-form='subscribe-custom']").map((d,t)=>{t=$(t);let e=t.find("[data-msg='subscribe']"),r={form:t,beforeShowDatepicker:i=>{$(i).parent().append($("#ui-datepicker-div"))}};e.hide(),window.Syvo.Custom_Form.initFormFields(r),t.validate({errorPlacement:(i,a)=>{const s=a.attr("name"),n=a.parents("form").find(`[data-error-container-for='${s}']`);n.length?i.appendTo(n):i.insertAfter(a)}}),t.submit(i=>{i.preventDefault(),t.valid()&&!l&&Common.validateCaptcha().then(a=>{let s={};a&&(s["g-recaptcha-response"]=a);const c=t.find("input:not([type='radio']):not([name='formId']):not([data-field-id]),select:not([data-field-id]),input[type=radio]:not([data-field-id]):checked,textarea:not([data-field-id])");let n=c.filter("[name='phoneNumber']"),o=c.filter("[data-input='subscribe-phone-number']");n.length&&o.length&&n.val(o.val()),c.each((u,f)=>{const g=$(f),m=g.attr("name");m!=null&&m.length&&(s[m]=g.val())}),s.additionalFormResult=window.Syvo.Custom_Form.collectFormData({form:t}),l=!0,$.ajax({url:p.url,type:"post",data:s}).done(u=>{b(t,e),v(t)}).fail(u=>{h(t)}).always(()=>{l=!1})})})})}function x(){$("[data-form='subscribe'][data-modal]").map((d,t)=>{t=$(t);let e=t.find("[data-input='subscribe']"),r=$("#"+t.attr("data-modal")),i=t.find("[data-msg='subscribe']"),a=r.find("form"),s=t.validate(),c={form:a,beforeShowDatepicker:n=>{$(n).parent().append($("#ui-datepicker-div"))}};i.hide(),window.Syvo.Custom_Form.initFormFields(c),(e.length||r.length)&&(e.focusin(()=>{r.modal("show")}),a.submit(n=>{if(n.preventDefault(),a.valid()&&!l){let o={};a.find("input:not([type='radio']):not([name='formId']):not([data-field-id]),select:not([data-field-id]),input[type=radio]:not([data-field-id]):checked,textarea:not([data-field-id])").map((u,f)=>{f=$(f),o[f.attr("name")]=f.val()}),o.additionalFormResult=window.Syvo.Custom_Form.collectFormData({form:a}),l=!0,$.ajax({url:p.url,type:"post",data:o}).done(u=>{b(t,i),v(a),$.modal.close()}).fail(u=>{h(t)}).always(()=>{l=!1})}}))})}function F(){let d=$("[data-form='subscribe']:not([data-modal])");d.submit(t=>{t.preventDefault();let e=$(t.target),r=e.validate(),i=e.find("[data-input='subscribe']"),a=i.filter("[name='phoneNumber']"),s=e.find("[data-input='subscribe-phone-number']");a.length&&s.length&&a.val(s.val());let c=[];i.each(function(o,u){c.push(u.value)});let n=e.find("[data-msg='subscribe']");return n.hide(),$(e).valid()&&!l&&c.some(o=>!!o)&&(l=!0,Common.validateCaptcha().then(o=>{const u=Common.serializeFormToObject(e);o&&(u["g-recaptcha-response"]=o),$.ajax({url:p.url,type:"post",data:u}).done(f=>{r.resetForm(),b(e,n),v(e)}
537).fail(f=>{h(e)}).always(()=>{l=!1})}).catch(()=>{l=!1})),!1}),d.on("click","[data-trigger=subscribe]:not([type=submit])",t=>{$(t.target).closest("form").submit()})}function b(d,t){localStorage.setItem("subscribe",JSON.stringify(!0)),t.show(),d.trigger("syvo_subscribe:success")}function h(d){d.trigger("syvo_subscribe:error")}function v(d){d.find("input:not([name='formId']),select,textarea").val(null),d.find(".jq-selectbox").map((t,e)=>{if(e=$(e),!e.find("option:first-child").val()){let r=e.find(".jq-selectbox__select-text");r.addClass("placeholder"),r.text(e.find("select").attr("placeholder"))}})}}})(); 538 539(()=>{const y=window.Syvo.AboutUs_Templates=new SyvoModule("AboutUs_Templates",b);function b(c){const u={carousel:{},grid:{selector:".gallerylooks-images > .grid",masonry:{},pagination:{},expander:{}},list:{selector:".common-slidesimplelist > .list",pagination:{}},articleList:{selector:".common-articlelist > .list",pagination:{}}},i={};let n={};y.init=a,y.destroy=g,y.reload=p,a();function a(e){const l=f(e);if(!t(l))return;d(),x();function d(){if(n=l,n.grid&&n.grid.pagination){if(n.grid.pagination.callbacks=n.grid.pagination.callbacks||{},typeof n.grid.pagination.callbacks.onBeforePageChanged=="function"){const r=n.grid.pagination.callbacks.onBeforePageChanged;n.grid.pagination.callbacks.onBeforePageChanged=()=>{o(arguments),r(arguments)}}else n.grid.pagination.callbacks.onBeforePageChanged=o;if(typeof n.grid.pagination.callbacks.onAfterPageChanged=="function"){const r=n.grid.pagination.callbacks.onAfterPageChanged;n.grid.pagination.callbacks.onAfterPageChanged=()=>{s(arguments),r(arguments)}}else n.grid.pagination.callbacks.onAfterPageChanged=s}if(n.list&&n.list.pagination){if(n.list.pagination.callbacks=n.list.pagination.callbacks||{},typeof n.list.pagination.callbacks.onBeforePageChanged=="function"){const r=n.list.pagination.callbacks.onBeforePageChanged;n.list.pagination.callbacks.onBeforePageChanged=()=>{r(arguments)}}if(typeof n.list.pagination.callbacks.onAfterPageChanged=="function"){const r=n.list.pagination.callbacks.onAfterPageChanged;n.list.pagination.callbacks.onAfterPageChanged=()=>{r(arguments)}}}if(n.articleList&&n.articleList.pagination){if(n.articleList.pagination.callbacks=n.articleList.pagination.callbacks||{},typeof n.articleList.pagination.callbacks.onBeforePageChanged=="function"){const r=n.articleList.pagination.callbacks.onBeforePageChanged;n.articleList.pagination.callbacks.onBeforePageChanged=()=>{r(arguments)}}if(typeof n.articleList.pagination.callbacks.onAfterPageChanged=="function"){const r=n.articleList.pagination.callbacks.onAfterPageChanged;n.articleList.pagination.callbacks.onAfterPageChanged=()=>{r(arguments)}}}}function P(){}function x(){i.carousel=k(n.carousel),n.grid&&(i.gridMasonry=Common.lazyMasonry.init(n.grid.masonry),i.gridExpander=m(n.grid.expander),i.gridPagination=Common.templatePagination.init(n.grid.pagination)),n.list&&(i.listPagination=Common.templatePagination.init(n.list.pagination)),n.articleList&&(i.articleListPagination=Common.templatePagination.init(n.articleList.pagination))}}function o(){i.gridMasonry&&typeof i.gridMasonry.destroy=="function"&&i.gridMasonry.destroy(),i.gridExpander&&typeof i.gridExpander.destroy=="function"&&i.gridExpander.destroy()}function s(){n.grid&&setTimeout(()=>{i.gridMasonry?typeof i.gridMasonry.init=="function"&&i.gridMasonry.init(n.grid.masonry):i.gridMasonry=Common.lazyMasonry.load(n.grid.masonry),i.gridExpander?typeof i.gridExpander.init=="function"&&i.gridExpander.init(n.grid.expander):i.gridExpander=m(n.grid.expander),window.Syvo.Social_Networks.isLoaded()&&window.Syvo.Social_Networks.reload()},100)}function g(){e(),d();function e(){i.carousel.destroy(),n.grid&&(i.gridMasonry=i.gridMasonry.destroy(),i.gridExpander=i.gridExpander.destroy(),i.gridPagination=i.gridPagination.destroy()),n.list&&(i.listPagination=i.listPagination.destroy()),n.articleList&&(i.articleListPagination=i.articleListPagination.destroy())}function l(){}function d(){n={}}}function p(e){g(),a(e)}function f(e){return $.extend(!0,{},u,c||{},e||{})}function t(e){return!!e.carousel||!!e.grid||!!e.list||!!e.articleList}}function k(c){const u={selector:".slidesimplelist .list",plugin:{slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:1e4,arrows:!0,focusOnSelect:!1,prevArrow:"<div role='button' class='templates-arrow
539slick-arrow slick-prev'><i class='arrow icon-syvo icon-chevron-left'></i></div>",nextArrow:"<div role='button' class='templates-arrow slick-arrow slick-next'><i class='arrow icon-syvo icon-chevron-right'></i></div>"}},i={};let n={},a=!1;return i.init=o,i.destroy=s,i.reload=g,o(c);function o(t){if(a)return i;const e=p(t);if(!f(e))return;return l(),d(),a=!0,i;function l(){n=e,i.$carousel=$(n.selector)}function d(){i.$carousel.slick(n.plugin)}}function s(){if(!a)return i;return e(),t(),a=!1,i;function t(){n={},i.$carousel=$()}function e(){i.$carousel.slick("unslick")}}function g(){return a&&(s(),o()),i}function p(t){return t?$.extend(!0,{},u,c||{},t||{}):{}}function f(t){return!!t.selector&&!!t.plugin}}function m(c){const u={mobileBreakPoint:992,plugin:{expandableBlock:{selector:".gallerylooks-images .grid-item-text-description > [data-property=description]",expandedClass:"expanded",lettersAllowed:250},expandToggle:{selector:".gallerylooks-images .grid-item-text-description > [data-toggle=gallery-look-description]",expandedClass:"expanded",collapseText:"Less",expandText:"More"}}},i={};let n={},a=!1;return i.init=o,i.destroy=s,i.reload=g,o();function o(t){if(a)return i;const e=p(t);if(!f(e))return;return l(),d(),a=!0,i;function l(){n=e}function d(){n.mobileBreakPoint?i.responsiveObserver=Common.checkBreakPoint(n.mobileBreakPoint,$.getCurrentViewport().width>=n.mobileBreakPoint?n.mobileBreakPoint-1:n.mobileBreakPoint+1,()=>{i.gridExpander&&typeof i.gridExpander.destroy=="function"&&i.gridExpander.destroy()},()=>{i.gridExpander&&typeof i.gridExpander.init=="function"?i.gridExpander.init():i.gridExpander=Common.createExpandableBlock(n.plugin)}):i.gridExpander=Common.createExpandableBlock(n.plugin)}}function s(){if(!a)return i;return e(),t(),a=!1,i;function t(){n={},i.responsiveObserver=null,i.gridExpander=null}function e(){i.responsiveObserver&&typeof i.responsiveObserver.destroy=="function"&&i.responsiveObserver.destroy(),i.gridExpander&&typeof i.gridExpander.destroy=="function"&&i.gridExpander.destroy()}}function g(){return a&&(s(),o()),i}function p(t){return $.extend(!0,{},u,c||{},t||{})}function f(t){return!!t.plugin}}})(); 540 541(()=>{window.Syvo.Appointment_Form=new SyvoModule("Appointment_Form",Oe);function Oe(n){const Ve=$("[data-property='fixed-header']");let ne=0,Fe=n.callback||(()=>{}),e={form:$("[data-property='form']"),primaryPhone:$("[data-property='primary-phone']"),overflow:$("[data-property='overflow']"),locations:$("[data-property='locations']"),activeClass:"is-enabled",resultSection:$("[data-property='appointment-result-section']"),result:$("[data-property='form-result']"),successResultCallback:()=>{},successSection:$("[data-property='appointment-success-section']"),errorSection:$("[data-property='appointment-error-section']"),successClass:"has-success hover-primary",errorClass:"has-error color-danger",numberAttribute:"data-number",destinationButtons:{buttons:$("[data-location]"),wrapper:$(".destinations"),activeClass:"active",receiverLocation:$("[data-property='receiver-location']")},prettyPhones:{selector:"[data-property='pretty-phone']",codesSelector:"select[data-property='pretty-phone']",additionalSelector:"[data-additional-property='pretty-phone-additional']",additionalTargetAttribute:"data-result-target"},instagramInput:{selector:"[data-property='instagram-input']"},validationGroups:[],datePicker:{startDate:$("[data-property='start-date']"),endDate:$("[data-property='end-date']"),dateFormat:"mm/dd/yy",startDateTrigger:$("[data-trigger='start-date']"),endDateTrigger:$("[data-trigger='end-date']"),months:[],changeYear:!1,maxDate:"+2y",beforeShowDay:null,minDate:0},disclaimers:{},multiSelect:{target:$("[data-property='interests'],[data-property='time-slot']")},singleSelect:{target:{}},interestsSelect:{target:$("[data-property='interests']"),onChange:()=>{},maximumSelectionLength:5},numberOfGuestsInput:{selector:$("[data-property='number-of-guests-input']")},timeSlotSelect:{items:[],targetSelector:"[data-property='time-slot']",containerSelector:"[data-property='time-slot-block']",holderSelector:"[data-property='time-slot-holder']",inputType:"select",noOptionsMessage:'<span class="error">There are no appointments available for this date.</span>',radioTemplate:' <label class="btn btn-default" for="{0}" data-property="time-slot"> <input id="{0}" type="radio" name="time-slot" value="{1}" data-rule-required="true" data-error-msg-container="[data-property=time-slot-block]" data-msg-required="Appointment Time is required">
541 <span>{2}</span> </label> '},moneyInput:{selector:"[data-property='money-input']"},desiredDayTime:{rowHolderSelector:"[data-property='row-holder']"},desiredAppointmentTime:{externalTrigger:"[data-trigger='appointment-time']",container:".time-picker-container",disableTimePicker:!1,picker:"[data-property='appointment-time']",pickerContainer:"[data-property='appointment-time-container']",pickerDropdown:"[data-property='appointment-time-dropdown']",pickerDropdownContainer:"[data-property='appointment-time-dropdown-container']",pickerButtons:"[data-property='appointment-time-buttons']",pickerButtonsContainer:"[data-property='appointment-time-buttons-container']",pickerButtonsInput:"[data-property='appointment-time-buttons-input']",pickerButtonsEmptyLabel:"[data-property='appointment-time-buttons-empty']",timeDisplayContainer:".appointment-display-time",datePickerTrigger:"[data-property='start-date']",duration:60,interval:60,intervalMatchesAppointmentDuration:!1,defaultSchedule:null,defaultScheduleSpecialDates:null,interestsScheduleMap:null,interestsScheduleSpecialDatesMap:null,showAppointmentDuration:!0,showDotBeforeAppointmentDuration:!0,customInterestsDuration:{},multipleTimesEnabled:!1,manualSchedule:null,useAppointmentTimeButtons:!1,onChangeCallback:()=>{}},retailerSelect:{target:$("[data-property='retailers']")},wordCounter:{max:400},whereDidYouHearAboutUs:{dropdownSelector:"[data-property='where-did-you-hear-about-us-dropdown']",additionalInfoSelector:"[data-property='where-did-you-hear-about-us-additional-info']",additionalInfoLabelSelector:"[data-property='where-did-you-hear-about-us-additional-info-label']",parent:"#additional-info",target:"[data-property='where-did-you-hear-about-us']",showAdditionalInfoIfDropDownValueIsOneOf:[]},payment:{form:$("[data-property='payment-form']"),url:"appointment-forms/send-appointment-payment",disabledClass:"payment-disabled",callback:()=>{},valueProperty:{key:"AppointmentId",value:null}},additionalInfo:{inputSelector:"[data-property='additionalInfoInput']",fieldsSelector:"[data-property='additionalInfoField']",titleAttribute:"data-additional-info-title"},bridalLiveIntegrationV2:{retailer:{inputSelector:"[data-property='retailer']"},types:{url:null,inputSelector:"[data-property='appointment-type']",descriptionSelector:"[data-appointmenttype-description]"},schedule:{url:null,inputSelector:"[data-property='requested-time']",setCurrentTimeSlot(t){$(this.inputSelector).data("time-slot",t)},getCurrentTimeSlot(){return $(this.inputSelector).data("time-slot")}},howHeard:{url:null,inputSelector:"[data-property='heard-from']"},location:{countryBlockSelector:"[data-property-block='country']",countryInputSelector:"[data-property='country']",stateBlockSelector:"[data-property-block='state']",stateInputSelector:"[data-property='state']",zipCodeInputSelector:"[data-property='zip-code']"}},pageId:$("[name=pageId]").val()};Ee();function Ee(){var a,o;let t=Ie();if(n.form&&(n.form.selector&&(e.form=$(n.form.selector)),n.form.primaryPhone&&(e.primaryPhone=$(n.form.primaryPhone)),n.form.overflow&&(e.overflow=$(n.form.overflow)),n.form.locations&&(e.locations=$(n.form.locations)),n.form.activeClass&&(e.activeClass=n.form.activeClass),n.form.result&&(n.form.result.selector&&(e.result=$(n.form.result.selector)),typeof n.form.result.successResultCallback=="function"&&(e.successResultCallback=n.form.result.successResultCallback),n.form.result.successClass&&(e.successClass=n.form.result.successClass),n.form.result.successText&&(e.successText=n.form.result.successText),n.form.result.errorClass&&(e.errorClass=n.form.result.errorClass),n.form.result.errorText&&(e.errorText=n.form.result.errorText)),e.overflow.click(()=>(O(e.form,!1,"Please select your desired location first"),!1))),n.isAppointmentFormCombined&&de(),n.modules){if(n.modules.prettyPhone){n.modules.prettyPhone.selector&&(e.prettyPhones.selector=n.modules.prettyPhone.selector),n.modules.prettyPhone.codesSelector&&(e.prettyPhones.codesSelector=n.modules.prettyPhone.codesSelector),e.validationGroups||(e.validationGroups=[]),e.validationGroups.push({phones:"phone1 phone2 phone3"});const i=!!e.validationErrorPlacement,l=i?e.validationErrorPlacement:t.errorPlacement;e.validationErrorPlacement=(r,d)=>{d.attr("name")==="phone1"||d.attr("name")==="phone2"||d.attr("name")==="phone3"?r.insertBefore("#phone1"):d.hasClass("select2-hidden-accessible")?r.insertAfter(d.next()):d.parent().hasClass("jq-selectbox")?r.insertAfter(d.parent()):d.attr("multiple")&&d.attr("type")!=="text"?r.insertAfter(d.next()):i||l(r,d),i&&l(r,d)},He(e.prettyPhones)}n.modules.interestsSelect&&(e.interestsSelect.target=$(n.modules.interestsSelect.selector),e.interestsSelect.maximumSelectionLength=n.modules.interestsSelect.maximumSelectionLength,typeof n.modules.interestsSelect.onChange=="function"&&e.interestsSelect.target.on("change",n.modules.interestsSelect.onChange),(a=n.modules.numberOfGuestsInput)!=null&&a.selector&&((o=n.modules.numberOfGuestsInput)!=null&&o.interestsMap)&&(e.numberOfGuestsInput.target=$(n.modules.numberOfGuestsInput.selector),e.numberOfGuestsInput.interestsMap=n.modules.numberOfGuestsInput.interestsMap,e.numberOfGuestsInput.defaultMaxCount=n.modules.numberOfGuestsInput.defaultMaxCount,e.numberOfGuestsInput.target.length&&e.numberOfGuestsInput.interestsMap&&Array.isArray(e.numberOfGuestsInput.interestsMap)&&e.numberOfGuestsInput.interestsMap.length&&e.interestsSelect.target.on("change",Ue))),n.modules.timeSlotSelect&&(e.timeSlotSelect=$.extend(!0,{},e.timeSlotSelect,n.modules.timeSlotSelect)),n.modules.desiredDayTime&&(n.modules.desiredDayTime.model?(e.desiredDayTime.model=n.modules.desiredDayTime.model,e.desiredDayTime.target=$(n.modules.desiredDayTime.selector),e.datePicker.desiredDayTimeCallback=Ze,Xe()):n.modules.desiredDayTime.timeSlotsUrl&&(e.datePicker.desiredDayTimeCallback=ve,Ye(e.interestsSelect),et())),n.modules.datePicker&&(n.modules.datePicker.startDate&&(e.datePicker.startDate=$(n.modules.datePicker.startDate)),n.modules.datePicker.endDate&&(e.datePicker.endDate=$(n.modules.datePicker.endDate)),n.modules.datePicker.dateFormat&&(e.datePicker.dateFormat=n.modules.datePicker.dateFormat),n.modules.datePicker.startDateTrigger&&(e.datePicker.startDateTrigger=$(n.modules.datePicker.startDateTrigger)),n.modules.datePicker.endDateTrigger&&(e.datePicker.endDateTrigger=$(n.modules.datePicker.endDateTrigger)),n.modules.datePicker.months&&(e.datePicker.months=n.modules.datePicker.months),n.modules.datePicker.changeYear&&(e.datePicker.changeYear=n.modules.datePicker.changeYear),n.modules.datePicker.maxDate&&(e.datePicker.maxDate=n.modules.datePicker.maxDate),n.modules.datePicker.startDateSelectedCallback&&(e.datePicker.startDateSelectedCallback=n.modules.datePicker.startDateSelectedCallback),n.modules.datePicker.beforeShowDay?e.datePicker.beforeShowDay=n.modules.datePicker.beforeShowDay:n.modules.disclaimers&&n.modules.disclaimers.isEnabled&&(e.datePicker.beforeShowDay=Qe),n.modules.datePicker.minDate&&(e.datePicker.minDate=n.modules.datePicker.minDate),_e(e.datePicker)),n.modules.desiredAppointmentTime&&(e.desiredAppointmentTime=$.extend(!0,{},e.desiredAppointmentTime,n.modules.desiredAppointmentTime),rt()),n.modules.whereDidYouHearAboutUs&&(e.whereDidYouHearAboutUs=$.extend(!0,{},e.whereDidYouHearAboutUs,n.modules.whereDidYouHearAboutUs),ot()),n.modules.additionalInfo&&(e.additionalInfo=$.extend(!0,{},e.additionalInfo,n.modules.additionalInfo)),n.modules.multiSelect&&(n.modules.multiSelect.selector&&(e.multiSelect.target=$(n.modules.multiSelect.selector)),ze(e.multiSelect)),n.modules.singleSelect&&(n.modules.singleSelect.selector&&(e.singleSelect.target=$(n.modules.singleSelect.selector)),je(e.singleSelect)),n.modules.destinationButtons&&(n.modules.destinationButtons.selector&&(e.destinationButtons.buttons=$(n.modules.destinationButtons.selector)),n.modules.destinationButtons.wrapper&&(e.destinationButtons.wrapper=$(n.modules.destinationButtons.wrapper)),n.modules.destinationButtons.receiverLocation&&(e.destinationButtons.receiverLocation=$(n.modules.destinationButtons.receiverLocation)),n.modules.destinationButtons.activeClass&&(e.destinationButtons.activeClass=n.modules.destinationButtons.activeClass),Re(e.destinationButtons)),n.modules.moneyInput&&(n.modules.moneyInput.selector&&(e.moneyInput.selector=n.modules.moneyInput.selector),n.modules.moneyInput.minBudgetInterestsMap&&(e.moneyInput.minBudgetInterestsMap=n.modules.moneyInput.minBudgetInterestsMap),n.modules.moneyInput.minBudgetInterestsMap&&(e.moneyInput.minBudgetMessagesInterestsMap=n.modules.moneyInput.minBudgetMessagesInterestsMap),n.modules.moneyInput.defaultMinBudget&&(e.moneyInput.defaultMinBudget=n.modules.moneyInput.defaultMinBudget),n.modules.moneyInput.defaultMinBudgetMessage&&(e.moneyInput.defaultMinBudgetMessage=n.modules.moneyInput.defaultMinBudgetMessage),Ne(e.moneyInput)),n.modules.instagramInput&&(e.instagramInput=n.modules.instagramInput,at(e.instagramInput.selector)),n.modules.wordCounter&&(e.wordCounter=n.modules.wordCounter,Ge(e.wordCounter)),n.modules.payment&&(n.modules.payment.selector&&(e.payment.form=$(n.modules.payment.selector)),n.modules.payment.url&&(e.payment.url=n.modules.payment.url),n.modules.payment.successText&&(e.payment.successText=n.modules.payment.successText),n.modules.payment.errorText&&(e.payment.errorText=n.modules.payment.errorText),n.modules.payment.disabledClass&&(e.payment.disabledClass=n.modules.payment.disabledClass),n.modules.payment.callback&&(e.payment.callback=n.modules.payment.callback||(()=>{})),n.modules.payment.valuePropertyKey&&(e.payment.valueProperty.key=n.modules.payment.valuePropertyKey),st()),n.modules.disclaimers&&
541(e.disclaimers=n.modules.disclaimers),n.modules.bridalLiveIntegrationV2&&(e.bridalLiveIntegrationV2=$.extend(!0,{},e.bridalLiveIntegrationV2,n.modules.bridalLiveIntegrationV2),lt())}n.appointmentTypesUrl&&be(),e.retailerSelect.target.on("change",be),e.disclaimers.isEnabled&&e.disclaimers.url&&it(),jQuery().styler&&e.form&&e.form.find("select").on("change",i=>{const l=$(i.currentTarget);setTimeout(()=>{l.trigger("refresh"),l.valid()},1)}),e.validationGroups&&(t.groups=e.validationGroups),e.validationErrorPlacement&&(t.errorPlacement=e.validationErrorPlacement),e.form.validate(t),ce(e.form),Ve.on("syvo_fixedHeader:onCalculate",(i,l,r)=>ne=r)}function de(){const t=e.interestsSelect.target.val(),a=Array.isArray(t)?t[0]:null;if(n.appointmentTypesUrl&&a){const o="hidden",i="[data-property='bridal-control']",l="[data-property='homecoming-control']",r="[data-property='prom-control']",d="[data-property='prom-colours']";$(i).add(l).add(r).addClass(o),$(d).removeClass(o),a.startsWith("Bridal")?$(i).removeClass(o):a.startsWith("Homecoming")||a.startsWith("Prom")?$(r).add(l).removeClass(o):($(r).removeClass(o),a.startsWith("Tuxedo")&&$(d).addClass(o))}}function Re(t){const a=t.buttons,o=t.receiverLocation,i=$("[data-hours]"),l=t.activeClass;a.click(r=>{r.preventDefault();const d=$(r.currentTarget);if(a.removeClass(l),d.addClass(l),e.form.addClass(e.activeClass),e.overflow.hide(),e.location=d.data("location"),o.val(e.location).change(),i&&i.length>0){i.hide();const s=$.grep(i,p=>$(p).data("hours").toLowerCase()===e.location.toLowerCase());s&&s.length>0&&$(s).fadeIn()}return O(e.form,!1," "),!1})}function Ge(t){if(t){let i=function(r,d){let s=r.split(" ");return s=s.filter(p=>p.length>0),s=s.filter((p,g)=>g<d),s.join(" ")},l=function(r){let d=r.split(" ");return d=d.filter(s=>s.length>0).length,d};var a=i,o=l;jQuery.validator&&typeof jQuery.validator=="function"&&(jQuery.validator.addMethod("wordMaxCount",(r,d,s)=>{const p=l(r);let g=s;return t.max&&(g=t.max),p<=g?!0:($(d).val(i(r,g+1)),!1)},jQuery.validator.format("Maximum {0} words allowed.")),jQuery.validator.addMethod("wordMinCount",(r,d,s)=>{const p=l(r);let g=s;return t.min&&(g=t.min),p>=g},jQuery.validator.format("Minimum {0} words allowed.")))}}function ce(t){t.find("input[type='checkbox']").on("change",a=>{const o=$(a.currentTarget);o.is(":checked")?o.attr("value","true"):o.attr("value","false")}),setTimeout(()=>t.find("input[type='checkbox']").trigger("change"),0)}function He(t){$(t.codesSelector).select2({dropdownAutoWidth:!0,minimumResultsForSearch:10,templateSelection:r=>`+${r.id}`});const a=$(t.selector);a.keyup(o);function o(r){const d=$(r.target),s=a.index(d);if(s<a.length-1){const p=d.val(),g=parseInt(d.attr("maxlength"));if(p.length===g){const w=a.filter(I=>I===s+1);if(w&&w.length!==0&&d.attr(e.prettyPhones.additionalTargetAttribute)===w.attr(e.prettyPhones.additionalTargetAttribute)){const I=w.val(),C=w.attr("maxlength");I.length===C?(w.focus(),w.focusEnd()):(w.focus(),w.focusStart())}}}i(r)}function i(r){r.which===8&&l($(r.target))}function l(r){const d=a.index(r);if(d>0){const s=r.val();if(!s||s.length===0){const p=a.filter(g=>g===d-1);if(p&&p.length!==0){const g=p.val();!g||g.length===0?l(p):(p.focusEnd(),p.val(g.substring(0,g.length-1)))}}}}}function _e(t){const a=t.startDate,o=t.endDate,i=t.desiredDayTimeCallback,l=t.startDateTrigger,r=t.endDateTrigger,d=a.datepicker({defaultDate:"+1w",changeMonth:!0,changeYear:t.changeYear,beforeShowDay:t.beforeShowDay,numberOfMonths:2,minDate:t.minDate,maxDate:t.maxDate,dateFormat:e.datePicker.dateFormat,onSelect:p}),s=o.datepicker({defaultDate:"+1w",changeMonth:!0,changeYear:t.changeYear,numberOfMonths:2,minDate:t.minDate,maxDate:t.maxDate,dateFormat:e.datePicker.dateFormat,onSelect:g});$(".ui-datepicker").addClass("notranslate"),e.datePicker.months&&e.datePicker.months.length>0&&(d.datepicker("option","monthNamesShort",e.datePicker.months),s.datepicker("option","monthNamesShort",e.datePicker.months)),l.click(I=>{const C=$(I.currentTarget).attr("data-trigger");$(`[data-property="${C}"]`).datepicker("show")}),r.click(()=>s.datepicker("show")),Common.checkBreakPoint(767,$.getCurrentViewport().width>=767?766:768,w,w);function p(I,C){const k=$(C.input).attr(e.numberAttribute),A=ae(I);let V=null;d.map((F,E)=>{let h=ae($(E).val());V=V<h?h:V}),s.datepicker("option","minDate",V),$(C.input).valid(),i&&A&&i(I,k),e.disclaimers.isEnabled&&Array.isArray(e.disclaimers.items)&&!k&&We(A),e.datePicker.startDateSelectedCallback&&e.datePicker.startDateSelectedCallback(A)}function g(I,C){d.datepicker("option","maxDate",ae(I)),$(C.input).valid()}function w(){$("#ui-datepicker-div").addClass("appointment-datepicker"),$.getCurrentViewport().width<=767?(a.datepicker("option",{numberOfMonths:1}),s.datepicker("option",{numberOfMonths:1}),$("[data-placeholder-mobile]").each((I,C)=>{let k=$(C),A=k.attr("data-placeholder-mobile");k.attr("placeholder",A),k.attr("data-placeholder",A)})):(a.datepicker("option",{numberOfMonths:2}),s.datepicker("option",{numberOfMonths:2}),$("[data-placeholder-mobile]").each((I,C)=>{let k=$(C),A=k.attr("data-placeholder-desktop");k.attr("placeholder",A),k.attr("data-placeholder",A)}))}}function ae(t){let a;try{a=$.datepicker.parseDate(e.datePicker.dateFormat,t)}catch(o){a=null}return a}function ze(t){const a=t.target;a.select2({maximumSelectionLength:5,minimumResultsForSearch:1/0}),(n.appointmentTypesUrl||e.interestsSelect.maximumSelectionLength)&&e.interestsSelect.target.select2({maximumSelectionLength:e.interestsSelect.maximumSelectionLength||1}),a.each((o,i)=>{var r;let l=((r=i.labels)==null?void 0:r.length)>0?i.labels[0].textContent:i.ariaLabel;$(i).next().find(".select2-search__field").attr("aria-label",l)})}function je(t){t.target.each((o,i)=>{var r;$(i).select2({minimumResultsForSearch:$(i).attr("data-search-disabled")!=null?1/0:10});let l=((r=i.labels)==null?void 0:r.length)>0?i.labels[0].textContent:i.ariaLabel;$(i).next().find(".select2-search__field").attr("aria-label",l)})}function Ye(t){const a=$(e.desiredDayTime.rowHolderSelector);a.hide();let o=null;t.target.on("change",()=>{de(),$e(),clearTimeout(o),interests&&interests.length>0?(o=setTimeout(()=>{const i=e.datePicker.startDate.val();i&&ve(i)},1500),a.show()):a.hide()})}function Ue(){const t=e.numberOfGuestsInput.target,a=t.val(),o=t.is("select");let i=e.interestsSelect.target.val(),l=e.numberOfGuestsInput.defaultMaxCount;if(i&&(i=Array.isArray(i)?i:[i],l=Math.max(...i.map(r=>{const d=e.numberOfGuestsInput.interestsMap.find(p=>p.name===r),s=parseInt(d==null?void 0:d.value);return isNaN(s)?e.numberOfGuestsInput.defaultMaxCount:s}))),o){t.find("option").remove();for(let r=0;r<=l;r++)t.append(`<option value="${r}">${r}</option>`);t.trigger("change")}else t.rules("remove","max"),l&&t.rules("add",{max:l});a>l?t.val(""):t.val(a),t.change()}function Ne(t){const a=$(t.selector);a&&t.minBudgetInterestsMap&&t.minBudgetInterestsMap.length>0&&e.interestsSelect.target.on("change",o);function o(){var s,p;let i=e.interestsSelect.target.val();i?i=Array.isArray(i)?i:[i]:i=[];const l=t.minBudgetInterestsMap.filter(g=>!isNaN(g.value)&&i.indexOf(g.name)!==-1).sort((g,w)=>Number(g.value)-Number(w.value)),r=l.length>0?l[0].value:t.defaultMinBudget,d=l.length>0?(p=(s=t.minBudgetMessagesInterestsMap)==null?void 0:s.find(g=>g.name===l[0].name))==null?void 0:p.value:t.defaultMinBudgetMessage;a.rules("remove","min"),a.rules("add",{min:isNaN(r)?0:Number(r),messages:{min:d}}),a.val()&&(Number(a.val())<Number(r)&&a.val(""),a.closest("form").validate().element
541(a))}a.keyup(i=>{const l=$(i.currentTarget);l.val()?l.parent().addClass("is-dirty"):l.parent().removeClass("is-dirty")})}function qe(t){t.target.val(null).trigger("change")}function ue(t=null){if(t!=null||(t=`${e.prettyPhones.selector}:not(${e.prettyPhones.additionalSelector})`),n.modules.prettyPhone){const a=$(t);let o="";return $.each(a,(i,l)=>o+=$(l).val()),o}else return e.primaryPhone.val()}function me(t){t.trigger("reset"),t.validate().resetForm(),n.modules.multiSelect&&qe(e.multiSelect),jQuery().styler&&$("select").trigger("refresh")}function We(t){const a=$(e.disclaimers.selector),i=e.disclaimers.items.filter(l=>!l.isDateRangeInactive).find(l=>pe(t,l));i&&i.description?(a.css("color",i.colorHex||""),a.text(i.description)):(a.css("color",""),a.text(""))}function Qe(t){return Array.isArray(e.disclaimers.items)?[!e.disclaimers.items.filter(i=>i.isDateRangeInactive).some(i=>pe(t,i))]:[!0]}function pe(t,a){return!(a.startDate>t||a.startDate<t)||!(a.endDate>t||a.endDate<t)||a.startDate<t&&a.endDate>t}function O(t,a,o){return fe(t,a,o,e.successText,e.errorText)}function X(t,a,o){return fe(t,a,o,e.payment.successText,e.payment.errorText)}function fe(t,a,o,i,l){let r=e.result.text()||e.result.html();e.result.hide(),e.result.removeClass(e.successClass),e.result.removeClass(e.errorClass),o&&(e.result.text(o),r=!0),a?(i&&(e.result.html(Common.decodeHtml(i)),r=!0),e.result.addClass(e.successClass),e.result.fadeIn(),e.successResultCallback()):(l?e.result.html(Common.decodeHtml(l)):o||e.result.html("Internal Error"),e.result.addClass(e.errorClass),e.result.fadeIn(),r=!0),r&&Ke(t,a)}function ge(t){let a=e.resultSection;return t?e.successSection.length>0&&(a=e.successSection):e.errorSection.length>0&&(a=e.errorSection),a.length===0&&(a=e.result),a}function Je(t,a){const o=ge(a),i=t.find(o);return i.length===0?o:i}function Ke(t,a){const o=Je(t,a);o.removeClass("section--appointment-result--hidden"),ie(o,-($.getCurrentViewport().height/2+ne))}function ie(t,a){if(a=a||0,t.length>0){const o=t.offset().top+a;$(window).scrollTop(o>0?o:0)}}function he(t,a,o){try{t(a,o)}catch(i){console.error(i.message+` 542`+i.stack)}}let B=!1,ee=null;n.form.stripeIntegration&&(ee=Common.Stripe.init(n.form.stripeIntegration.init)),e.form.submit(async t=>{if(t.preventDefault(),e.destinationButtons.buttons&&e.destinationButtons.buttons.length>0&&!e.location)return O(e.form,!1,"Please select your desired location first."),ie(e.destinationButtons.buttons,-100),!1;if(B)return!1;if(De(e.form.find(".StripeElement--empty"),!0),e.form.valid()&&e.form.find(".stripe-invalid").length==0){if(e.timeSlotSelect.holder&&e.timeSlotSelect.holder.is(":visible")&&e.timeSlotSelect.items.length===0)return e.timeSlotSelect.container.html(e.timeSlotSelect.noOptionsMessage),!1;B=!0,Common.showLoader();const a=ue();e.primaryPhone.val(a);let o=$(e.form).find(e.additionalInfo.inputSelector);o.length!==0&&o.val(Ce(e.form));let i=e.form.serializeArray(),l=i.filter(s=>s.name==="startTimeInterval").map(s=>s.value);if(l.length>1&&(i=i.filter(s=>s.name!=="startTimeInterval"),i.push({name:"startTimeInterval",value:l.join("; ")})),i=$.grep(i,(s,p)=>s.name!=="phone1"&&s.name!=="phone2"&&s.name!=="phone3"?s:!1),n.modules.moneyInput){const s=$(n.modules.moneyInput.selector);let p=null;s.prop("tagName")=="SELECT"&&(p=s.find("option:selected").attr("display-value")),p&&(i=i.filter(g=>g.name!=="displayMoneyAmount"),i.push({name:"displayMoneyAmount",value:p}))}let r=null;if(n.modules.timeSlotSelect){let s=nt();r=e.timeSlotSelect.items.find(p=>p.startDateTime===s)}n.modules.bridalLiveIntegrationV2&&(r=e.bridalLiveIntegrationV2.schedule.getCurrentTimeSlot()),r&&(i.push({name:"timeSlot.fittingRoomId",value:r.fittingRoomId}),i.push({name:"timeSlot.startDateTime",value:r.startDateTime}),i.push({name:"timeSlot.startDateTimeForView",value:r.startDateTimeForView}),i.push({name:"timeSlot.endDateTime",value:r.endDateTime})),n.bridalLiveIntegrationV2&&void 0,Se()&&e.payment.form.is(":visible")&&i.push({name:"isWithPayment",value:!0});let d;if((!n.form.paymentOnlyIfPaymentFormVisible||e.payment.form.is(":visible"))&&n.form.stripeIntegration&&ee)try{const s={};
542i.forEach(g=>{s[g.name]=g.value});const p=await ee.getIntent(s,n.form.stripeIntegration.intent);if(p.status===!0)p.intent&&i.push({name:"stripeIntent",value:p.intent}),p.paymentId&&i.push({name:"paymentId",value:p.paymentId}),d=p.clientSecret;else{B=!1,Common.hideLoader(),O(e.payment.form,!1,p.message);return}}catch(s){B=!1,Common.hideLoader(),O(e.payment.form,!1,s.message);return}try{i=await Common.AuthNet.tokenizeAndCleanseArray(i)}catch(s){B=!1,Common.hideLoader(),O(e.form,!1,typeof s=="string"?s:s.message);return}await ye(i,e,d,ee)}return!1});async function ye(t,a,o,i){const l=await Common.validateCaptcha();if(l){const d="g-recaptcha-response",s=t.find(p=>p.name===d);s?s.value=l:t.push({name:d,value:l})}t.find(d=>d.name==="trackingData")||t.push({name:"trackingData",value:JSON.stringify(Common.bridalLiveTracking.build())}),$.ajax({url:n.url,type:"post",dataType:"json",data:t}).done(d=>{var g,w;ke(a.form),me(a.form);const s=(g=t==null?void 0:t.find(I=>I.name==="email"))==null?void 0:g.value,p=(w=t==null?void 0:t.find(I=>I.name==="primaryPhone"))==null?void 0:w.value;$(document).trigger(window.Syvo.Google_Analytics_4.eventNames.onBookAppointmentSent,{seoIdentifier:n.seoIdentifier}),$(document).trigger(window.Syvo.Google_Ads.eventNames.onBookAppointmentSent,{seoIdentifier:n.seoIdentifier,email:s,phone:p}),$(document).trigger(window.Syvo.Facebook_Pixel.eventNames.onBookAppointmentSent,{seoIdentifier:n.seoIdentifier}),$(document).trigger(window.Syvo.Pinterest_Pixel.eventNames.onBookAppointmentSent,{seoIdentifier:n.seoIdentifier}),$(document).trigger(window.Syvo.Google_Tag_Manager.eventNames.onBookAppointmentSent,{seoIdentifier:n.seoIdentifier}),$(document).trigger(window.Syvo.TikTok_Pixel.eventNames.onBookAppointmentSent,{seoIdentifier:n.seoIdentifier}),$(document).trigger(window.Syvo.Snapchat_Pixel.eventNames.onBookAppointmentSent,{seoIdentifier:n.seoIdentifier}),$(document).trigger(window.Syvo.OpenAi_Pixel.eventNames.onBookAppointmentSent,{seoIdentifier:n.seoIdentifier}),Se()?(a.payment.form.fadeIn("fast"),a.locations.fadeIn("fast"),a.result.text(""),a.payment.valueProperty.value=d.value,setTimeout(function(){var C;const I=(C=$(a.payment.form).find("[data-property=form-stepper-row]").height())!=null?C:0;ie(a.payment.form,-ne+I)},500)):setTimeout(function(){O(a.form,!0,d.message)},500),he(Fe,d,$.serializeArrayToDictionary(t)),Common.hideLoader(),B=!1}).fail(d=>{const s=d.responseJSON;if(i&&(s==null?void 0:s.message)==="requires_action"&&o){i.requiresActionPopup(o,()=>{ye(t,a)},p=>{O(a.form,!1,p.error.message),Common.hideLoader(),B=!1});return}else{const p=Ae(d);O(a.form,!1,p)}Common.hideLoader(),B=!1})}function Se(){return e.payment&&e.payment.form.length>0&&!e.payment.form.hasClass(e.payment.disabledClass)}function Ze(t,a=null){const o=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"],i=$.datepicker.parseDate(e.datePicker.dateFormat,t).getDay(),l=e.desiredDayTime.model[o[i]],r=[];l&&(l.hasMorning&&r.push({id:"Morning",text:"Morning"}),l.hasAfternoon&&r.push({id:"Afternoon",text:"Afternoon"}),l.hasEvening&&r.push({id:"Evening",text:"Evening"})),v(e.desiredDayTime.target,a).select2("destroy").empty().select2({data:r})}function Xe(){e.desiredDayTime.target.select2({data:[]})}function et(){e.timeSlotSelect.target=$(e.timeSlotSelect.targetSelector),e.timeSlotSelect.holder=$(e.timeSlotSelect.holderSelector),e.timeSlotSelect.container=$(e.timeSlotSelect.containerSelector)}function tt(t){if(!Array.isArray(t))return;switch(e.timeSlotSelect.items=t,e.timeSlotSelect.inputType){case"select":a();break;case"radio":o();break}function a(){e.timeSlotSelect.target.empty(),t.map((i,l)=>e.timeSlotSelect.target.append($("<option />").val(i.startDateTime).text(i.startDateTimeForView)))}function o(){t.length===0?e.timeSlotSelect.container.html(e.timeSlotSelect.noOptionsMessage):e.timeSlotSelect.container.html(""),t.map((i,l)=>e.timeSlotSelect.container.append(Common.stringFormat(e.timeSlotSelect.radioTemplate,["time-slot-"+l,i.startDateTime,i.startDateTimeForView])))}}function nt(){switch(e.timeSlotSelect.inputType){case"select":return e.timeSlotSelect.target?parseInt(e.timeSlotSelect.target.val()):null;case"radio":return parseInt($("input[name='time-slot']:checked").val())}return null}function at(t){$(t).each((o,i)=>{const l=$(i);l.keyup(r=>{const d=l.val();d.length>0&&d[0]!=="@"&&l.val("@"+l.val()),d.length===1&&d[0]==="@"&&r.keyCode===8&&l.val("")}
542)})}function ve(t){const a=e.interestsSelect.target.val();if($e(),!Te())return;const o=e.retailerSelect.target.val(),i=new URI;i.setSearch({date:t,interests:a,retailer:o,useInStoreAppointmentTypesOnly:n.useInStoreAppointmentTypesOnly,useOnlineAppointmentTypesOnly:n.useOnlineAppointmentTypesOnly,pageId:e.pageId}),Common.showLoader(),$.get(n.modules.desiredDayTime.timeSlotsUrl+i.search()).done(l=>tt(l)).error(()=>O(e.form,!1,"Cannot get time slots!")).always(()=>Common.hideLoader())}function be(){const t=e.retailerSelect.target.val();e.interestsSelect.target.find("option").remove(),$.get(n.appointmentTypesUrl,{retailer:t,useInStoreAppointmentTypesOnly:n.useInStoreAppointmentTypesOnly,useOnlineAppointmentTypesOnly:n.useOnlineAppointmentTypesOnly,pageId:e.pageId}).done(a=>{for(let o=0;o<a.length;o++)e.interestsSelect.target.append($("<option />").val(a[o].name).text(a[o].name))})}function it(){$.get(e.disclaimers.url).done(t=>{Array.isArray(t)&&(t.forEach(a=>{const o=new Date(a.startDate),i=new Date(a.endDate),l=o.getTimezoneOffset()*6e4,r=i.getTimezoneOffset()*6e4;a.startDate=new Date(o.getTime()+l),a.endDate=new Date(i.getTime()+r)}),e.disclaimers.items=t)})}function rt(){var Me,Le;let t=$(e.desiredAppointmentTime.datePickerTrigger),a=$(e.desiredAppointmentTime.container),o=$(e.desiredAppointmentTime.picker),i=$(e.desiredAppointmentTime.pickerContainer),l=$(e.desiredAppointmentTime.pickerDropdown),r=$(e.desiredAppointmentTime.pickerDropdownContainer),d=$(e.desiredAppointmentTime.pickerButtons),s=$(e.desiredAppointmentTime.pickerButtonsContainer),p=$(e.desiredAppointmentTime.pickerButtonsInput),g=$(e.desiredAppointmentTime.pickerButtonsEmptyLabel),w=$(e.desiredAppointmentTime.timeDisplayContainer),I=$(e.desiredAppointmentTime.externalTrigger),C=e.desiredAppointmentTime.useAppointmentTimeButtons,k=null,A=null,V=null,F=null,E=null,h=null,y=null;const L={scrollbar:!0,dropdown:!0,className:"appointment-time-picker",step:e.desiredAppointmentTime.interval},R=t.datepicker("option","beforeShowDay"),M=t.datepicker("option","onSelect");j(),e.interestsSelect&&e.interestsSelect.target&&(((Me=e.desiredAppointmentTime.interestsScheduleMap)==null?void 0:Me.length)>0||((Le=e.desiredAppointmentTime.interestsScheduleSpecialDatesMap)==null?void 0:Le.length)>0||e.desiredAppointmentTime.customInterestsDuration&&Object.keys(e.desiredAppointmentTime.customInterestsDuration).length)&&e.interestsSelect.target.on("change",Y),a.hide(),t.datepicker("option","onSelect",te),t.on("change",K),t.datepicker("option","beforeShowDay",oe);let P=[];I.on("click",u=>{y=$(u.currentTarget).attr(e.numberAttribute);const c=v(l,y);c.length>0&&!c.attr("disabled")?c.select2("open"):(v(o,y).timepicker("show"),W(),J())}),t.on("desiredAppointmentTime:dateSelected",()=>P=[]),e.form.submit(()=>o.filter(`:not([${e.numberAttribute}])`).val(P.join("; "))),o.timepicker(L);function J(){$(".ui-timepicker-list > li").off("click"),$(".ui-timepicker-list > li").on("click",u=>{const m=$(u.currentTarget).text(),f=v(o,y).val();m===f&&(y||q(f),W(),H(y),e.desiredAppointmentTime.onChangeCallback())})}function q(u){u?P.indexOf(u)!==-1?P.splice(P.indexOf(u),1):e.desiredAppointmentTime.multipleTimesEnabled?P.push(u):P=[u]:P=[],o.filter(`:not([${e.numberAttribute}])`).val(P.join("; "))}function W(){$(".ui-timepicker-list > li").each((u,c)=>{const m=$(c);P.indexOf(m.text())!==-1?m.addClass("ui-timepicker-selected"):m.removeClass("ui-timepicker-selected")})}function re(){k=e.desiredAppointmentTime.defaultSchedule,A=e.desiredAppointmentTime.defaultScheduleSpecialDates,V=null,F=e.desiredAppointmentTime.duration,h=null,E=e.desiredAppointmentTime.manualSchedule}function j(){let u=t.filter(`:not(${e.numberAttribute})`).datepicker("getDate"),c=e.interestsSelect.target.val(),m=mt();if(re(),m){let f=pt(m);f&&(k=f);let S=ft(m);S&&(A=S)}if(u){let f=Be(u);f&&(V=f.schedule,h=Number(f.duration))}c&&e.desiredAppointmentTime.customInterestsDuration?(Array.isArray(c)||(c=[c]),F=0,c.map(f=>{F+=e.desiredAppointmentTime.customInterestsDuration[f]?e.desiredAppointmentTime.customInterestsDuration[f]:e.desiredAppointmentTime.duration}),F=F||e.desiredAppointmentTime.duration):F=e.desiredAppointmentTime.duration}function K(){const u=$(this).val(),c=$(this).attr(e.numberAttribute);c||j(),U(u,c),H(c),e.desiredAppointmentTime.onChangeCallback()}function Y(){t.val("").trigger("change")}function te(u,c){const m=$(c.input).attr(e.numberAttribute);if(m?U(u,m):(j(),U(u)),M)return M(u,c)}function oe(u,c){let m=[!0];if(!k&&!E&&!A)return m;R&&(m=R.call(this,u));const f=m&&m.length>1?m[1]:"";if(A){let S=Be(u);if(S)return[!S.schedule.current.disabled,f]}if(m==null||m.length===0||m[0]===!0){for(let S in window.days)if(window.days.hasOwnProperty(S)&&window.days[S]===u.getDay()){E?m=[E[S.toLowerCase()].some(T=>!T.disabled),f]:(day=k[S.toLowerCase()],m=[!day.disabled,f]);break}}return m}function H(u){const c=v(o,u),m=v(l,u);let S=(m.length>0&&!m.attr("disabled")?m:c).val(),b=h||F;if(b&&S){let T=`Selected time: ${S}`;e.desiredAppointmentTime.showAppointmentDuration&&(T+=`${e.desiredAppointmentTime.showDotBeforeAppointmentDuration?".":""}<span class='appointment-duration'> Appointment duration: ${b} minutes </span>`),v(w,u).html(T)}else v(w,u).html("Choose Time")}function U(u,c=null){if(a.hide(),!!u&&!e.desiredAppointmentTime.disableTimePicker&&(V||E||k)){if(V)C?se(Pe(V.current),c):xe(V.current,c);else if(E){const m=$.datepicker.parseDate(e.datePicker.dateFormat,u);for(let f in window.days)if(window.days.hasOwnProperty(f)&&window.days[f]===m.getDay()){let S=dt(E[f.toLowerCase()]);C?se(S,c):ut(S,c)}}else if(k){const m=$.datepicker.parseDate(e.datePicker.dateFormat,u);for(let f in window.days)window.days.hasOwnProperty(f)&&window.days[f]===m.getDay()&&(C?se(Pe(k[f.toLowerCase()]),c):xe(k[f.toLowerCase()],c))}}}function dt(u){return u?u.filter(c=>!c.disabled).map(c=>{const m=G(c.start),f=G(c.end),S=Math.floor(Math.abs(N(f)-N(m))/1e3/60);return{timeStart:m,duration:S}}):[]}function Pe(u){var _;const c=[];if(!u||u.disabled)return c;const m=G(u.start),f=G(u.end),S=h||F;let b=[];((_=u.disableTimeRanges)==null?void 0:_.length)>0&&(b=u.disableTimeRanges.map(D=>({startDate:N(G(D.start)),endDate:N(G(D.end))})));let T=N(m);const z=N(f);z.setMinutes(N(f).getMinutes()-S);e:for(;T<=z;){const D=new Date(T);D.setMinutes(T.getMinutes()+S);for(let x of b){if((T>=x.startDate||D>x.startDate)&&(T<x.endDate||D<x.endDate)){T=x.endDate;continue e}if(T>=x.startDate&&D<x.endDate){T=D;continue e}}c.push({timeStart:ct(T),duration:S}
542),T=D}return c}function ct(u){let c=u.getHours(0),m=u.getMinutes();const f=c>=12?"pm":"am";return c=c%12,c=c||12,m=m<10?"0"+m:m,c+":"+m+" "+f}function xe(u,c=null){var m,f;if(u){const S=G(u.start),b=G(u.end),T=v(o,c),z=v(r,c),_=v(i,c),D=v(l,c),x=v(s,c),Q=v(p,c);D.prop("disabled",!0),Q.prop("disabled",!0),T.prop("disabled",!1),T.timepicker("option","minTime",S),T.timepicker("option","maxTime",b);const le=(f=(m=u.disableTimeRanges)==null?void 0:m.map(Z=>[G(Z.start),G(Z.end)]))!=null?f:[];if(T.timepicker("option","disableTimeRanges",le),e.desiredAppointmentTime.intervalMatchesAppointmentDuration){let Z=h||F;T.timepicker("option","step",Z)}T.val(""),a.show(),z.hide(),x.hide(),_.show(),c||t.trigger("desiredAppointmentTime:dateSelected"),H(c)}}function G(u){return u.time+" "+(u.period>0?"pm":"am")}function ut(u,c=null){const m=v(o,c),f=v(r,c),S=v(i,c),b=v(l,c),T=v(s,c),z=v(p,c);m.prop("disabled",!0),z.prop("disabled",!0),b.prop("disabled",!1),e.desiredAppointmentTime.multipleTimesEnabled?b.attr("multiple",""):b.removeAttr("multiple");const _=u.map(D=>({id:D.timeStart,text:D.timeStart,duration:D.duration}));if(!b.hasClass("select2-hidden-accessible"))b.select2({minimumResultsForSearch:1/0,data:_,multiple:e.desiredAppointmentTime.multipleTimesEnabled}),(D=>{b.on("change",function(x){H(D)})})(c);else{b.empty();for(let D of _)b.append(new Option(D.text,D.id,!1,!1))}b.val(e.desiredAppointmentTime.multipleTimesEnabled?[]:null),H(c),a.show(),S.hide(),T.hide(),f.show()}function se(u,c=null){const m=v(o,c),f=v(s,c),S=v(d,c),b=v(p,c),T=v(l,c),z=v(r,c),_=v(i,c),D=v(g,c);m.prop("disabled",!0),T.prop("disabled",!0),b.prop("disabled",!1),e.desiredAppointmentTime.multipleTimesEnabled?b.attr("multiple",""):b.removeAttr("multiple"),S.empty(),b.empty();for(let x of u)S.append(`<button type="button" aria-label="Choose ${x.timeStart}" class="time-option-button" data-button-time-option="${x.timeStart}">${x.timeStart}</button>`),b.append(`<option value="${x.timeStart}">${x.timeStart}</option>`);b.val(e.desiredAppointmentTime.multipleTimesEnabled?[]:null),D.hide(),u.length===0&&D.show(),a.show(),f.show(),z.hide(),_.hide(),f.find("button[data-button-time-option]").on("click",x=>{x.preventDefault();const Q=$(x.currentTarget);e.desiredAppointmentTime.multipleTimesEnabled||Q.closest(e.desiredAppointmentTime.pickerButtons).find("button[data-button-time-option].active").removeClass("active"),Q.toggleClass("active");const le=e.desiredAppointmentTime.multipleTimesEnabled?Q.closest(e.desiredAppointmentTime.pickerButtons).find("button[data-button-time-option].active").map((Z,gt)=>$(gt).data("button-time-option")).toArray():Q.attr("data-button-time-option");b.val(le)})}function N(u){const c=new Date(0),m=u.match(/(\d+)(?::(\d\d))?\s*([pP]?)/),f=parseInt(m[1]);return c.setHours(f+(m[3]&&f!=12?12:0)),c.setMinutes(parseInt(m[2])||0),c}function mt(){let u=e.interestsSelect.target.val();return u&&Array.isArray(u)?u.join(", "):u}function pt(u){if(!e.desiredAppointmentTime.interestsScheduleMap)return null;let c=e.desiredAppointmentTime.interestsScheduleMap.find(m=>m.interest===u);return c?c.schedule:null}function ft(u){if(!e.desiredAppointmentTime.interestsScheduleSpecialDatesMap)return null;let c=e.desiredAppointmentTime.interestsScheduleSpecialDatesMap.find(m=>m.interest===u);return c?c.specialDates:null}function Be(u){return A?A.find(c=>new Date(new Date(c.date).getTime()+u.getTimezoneOffset()*6e4).setHours(0,0,0,0)===u.getTime()):null}}function ot(){const t=$(e.whereDidYouHearAboutUs.dropdownSelector),a=$(e.whereDidYouHearAboutUs.additionalInfoSelector),o=$(e.whereDidYouHearAboutUs.additionalInfoLabelSelector),i=$(e.whereDidYouHearAboutUs.target),l=$(e.whereDidYouHearAboutUs.parent);t.change(()=>{a.val("");const d=e.whereDidYouHearAboutUs.showAdditionalInfoIfDropDownValueIsOneOf.map(s=>s.value).indexOf(t.val());d!==-1?(o.text(e.whereDidYouHearAboutUs.showAdditionalInfoIfDropDownValueIsOneOf[d].label),l.fadeIn()):l.fadeOut(),r()}),a.change(()=>r());function r(){const d=t.val(),s=a.val();i.val(d+(s?":"+s:""))}}function Te(){return!n.useInStoreAppointmentTypesOnly}function $e(){Te()?e.timeSlotSelect.holder.show():(e.timeSlotSelect.holder.hide(),e.timeSlotSelect.target.empty())}function Ie(){return{errorElement:"span",onkeyup:t=>$(t).valid(),success:t=>
542t.addClass("valid"),errorPlacement:(t,a)=>{let o=a.attr("data-error-msg-container");if(o){let i=$(o);i&&i.append(t)}else t.insertAfter(a)}}}function ke(t){const a=ge(!0);t.find(a).length===0&&t.fadeOut("fast"),e.locations.filter((o,i)=>$(i).find(a).length===0).fadeOut("fast"),e.destinationButtons.wrapper&&e.destinationButtons.wrapper.hide()}function De(t,a){t.has(":visible").toggleClass("stripe-invalid",a)}function st(){var a,o;let t=null;n.modules.payment.stripeIntegration&&(t=Common.Stripe.init(n.modules.payment.stripeIntegration.init),typeof((a=n.modules.payment.stripeIntegration.afterInit)==null?void 0:a.callback)=="function"&&((o=n.modules.payment.stripeIntegration.afterInit)==null||o.callback())),e.payment.form.validate(Ie()),ce(e.payment.form),e.payment.form.submit(async i=>{if(i.preventDefault(),B)return!1;if(De(e.payment.form.find(".StripeElement--empty"),!0),e.payment.form.valid()&&e.payment.form.find(".stripe-invalid").length==0){B=!0;let l=$(e.payment.form).find(e.additionalInfo.inputSelector);l.length!==0&&l.val(Ce(e.payment.form));const r=e.payment.form.serializeObject();r.trackingData=JSON.stringify(Common.bridalLiveTracking.build());let d;if(e.payment.valueProperty.value!=null){if(Common.showLoader(),r[e.payment.valueProperty.key]=e.payment.valueProperty.value,n.modules.payment.stripeIntegration&&t)try{const s=await t.getIntent(r,n.modules.payment.stripeIntegration.intent);if(s.status===!0)r.stripeIntent=s.intent;else{B=!1,Common.hideLoader(),O(e.payment.form,!1,s.message);return}d=s.clientSecret}catch(s){B=!1,Common.hideLoader(),O(e.payment.form,!1,s.message);return}try{await Common.AuthNet.tokenizeAndCleanse(r)}catch(s){B=!1,Common.hideLoader(),X(e.payment.form,!1,typeof s=="string"?s:s.message);return}await we(r,e,d,t),B=!1}else X(e.payment.form,!1,"Send Appointment First")}return!1})}async function we(t,a,o,i){const l=await Common.validateCaptcha();l&&(t["g-recaptcha-response"]=l),$.ajax({url:a.payment.url,type:"POST",dataType:"json",data:t}).done(r=>{ke(a.payment.form),me(a.payment.form),$(document).trigger(window.Syvo.Google_Analytics_4.eventNames.onAppointmentPaid,n.seoIdentifier),$(document).trigger(window.Syvo.Google_Tag_Manager.eventNames.onAppointmentPaid,n.seoIdentifier),setTimeout(()=>{X(a.payment.form,!0,r.message)},500),he(a.payment.callback,r,$.serializeArrayToDictionary(t)),Common.hideLoader(),B=!1}).fail(r=>{const d=r.responseJSON;if(i&&(d==null?void 0:d.message)==="requires_action"&&o){i.requiresActionPopup(o,()=>{we(t,a)},s=>{O(a.form,!1,s.error.message),Common.hideLoader(),B=!1});return}else{const s=Ae(r);X(a.payment.form,!1,s)}Common.hideLoader(),B=!1})}function lt(){let t=!1;const a=$(e.bridalLiveIntegrationV2.retailer.inputSelector),o=$(e.bridalLiveIntegrationV2.types.inputSelector),i=$(e.bridalLiveIntegrationV2.types.descriptionSelector),l=$(e.datePicker.startDate),r=$(e.bridalLiveIntegrationV2.schedule.inputSelector),d=$(e.bridalLiveIntegrationV2.appointmentFee.selector),s=Common.getCheckoutCurrencyPrefix()||"",p=Common.getCheckoutCurrencyPostfix()||"";g(),w(),k(),A();function g(){o.change(()=>{I(),k(),A()});const h=l.datepicker("option","onSelect");l.datepicker("option","onSelect",(y,L)=>{if(I(),k(),h)return h(y,L)}),r.change(y=>{let R=$("option:selected",y.currentTarget).data("time-slot");e.bridalLiveIntegrationV2.schedule.setCurrentTimeSlot(R)})}function w(){const h=e.bridalLiveIntegrationV2.location.stateTypes||{},y=e.bridalLiveIntegrationV2.location.zipTypes||{},L=$(e.bridalLiveIntegrationV2.location.countryInputSelector),R=$(e.bridalLiveIntegrationV2.location.countryBlockSelector),M=$(e.bridalLiveIntegrationV2.location.stateInputSelector),P=$(e.bridalLiveIntegrationV2.location.stateBlockSelector),J=$(e.bridalLiveIntegrationV2.location.zipCodeInputSelector),q=$(e.bridalLiveIntegrationV2.location.zipCodeBlockSelector);let W=$();L.change(re=>{const j=$(re.currentTarget),K=j.val(),Y=j.find("option[value="+K+"]").attr("data-statefieldtype"),te=j.find("option[value="+K+"]").attr("data-zipcodefieldtype"),oe=M.val();W.length===0&&(W=M.find("option")),M.empty();const H=W.filter("[value=''], [data-countryid="+K+"]");M.append(H),M.val(H.filter("[value="+oe+"]").attr("value")),H.not("[value='']").length===0?(P.hide(),R.addClass("full-width")):(P.show(),R.removeClass("full-width")),M.attr("placeholder",h[Y]),M.attr("data-placeholder",h[Y]);let U=M.data("select2");U&&(U.selection.placeholder.text=h[Y],U.$container.find(".select2-selection__placeholder").text(h[Y])),P.find(">label").text(h[Y]),M.change(),J.attr("placeholder",y[te]),q.find(">label").text(y[te])}),L.change()}function I(){let h=o.val(),y=l.val();h&&y?F(E()).then(L=>{C(L[0])}):V()}function C(h){V();for(let y of h)r.append($("<option />").val(y.startDateTimeForView).text(y.startDateTimeForView).data({"time-slot":y}));r.trigger("change")}function k(){var h,y;if(d.length>0&&(d.text(s+e.bridalLiveIntegrationV2.appointmentFee.defaultAmount+p),e.bridalLiveIntegrationV2.appointmentFee.appointmentTypeAuthorizeAmountMap)){const L=o.val();if(L){const R=e.bridalLiveIntegrationV2.appointmentFee.appointmentTypeAuthorizeAmountMap.find(M=>M.name===L);if(R){const M=(h=l.datepicker("getDate"))==null?void 0:h.getDay(),P=(y=R.paymentOptions)==null?void 0:y.filter(J=>{var q;return!(((q=J.daysOfWeek)==null?void 0:q.length)>0)||M>=0&&daysOfWeek.indexOf(M)>-1});(P==null?void 0:P.length)>0&&d.text(s+P[0].cost+p)}}}}function A(){const h="is-hidden",y=o.val();i.addClass(h),y&&i.filter(`[data-appointmenttype-id="${y}"]`).removeClass(h)}function V(){r.empty(),r.removeClass("error").next("span.error").remove()}function F(...h){return t?Promise.resolve([]):(t=!0,Common.showLoader(),Promise.all(h).catch(y=>{O(e.form,!1,y)}).finally(()=>{Common.hideLoader(),t=!1}))}function E(){return new Promise((h,y)=>{$.ajax({url:`${e.bridalLiveIntegrationV2.schedule.url}?${$.param({retailer:a.val(),appointmentTypeId:o.val(),appointmentDate:l.val(),timesOption:e.bridalLiveIntegrationV2.schedule.timesOption},!0)}`,type:"GET",dataType:"json"}).done(L=>h(L)).fail(L=>y((L.responseJSON||{}).message||"Failed to load Appointment Schedule"))})}}function ht(t){}function Ce(t){let a=[],o=[];return t.find(e.prettyPhones.additionalSelector).map((i,l)=>{let r=$(l).attr(e.prettyPhones.additionalTargetAttribute);o.indexOf(r)===-1&&o.push(r)}),o.length>0&&o.forEach(i=>
542{$(i).val(ue($(`[${e.prettyPhones.additionalTargetAttribute}='${i}']`)))}),t.find(e.additionalInfo.fieldsSelector).map((i,l)=>{let r=$(l),d=r.attr(e.additionalInfo.titleAttribute);if(!a.some(s=>s.title===d)&&d){let s=null,p=r.attr("type");if(p)switch(p){case"radio":s=$("[name='"+r.attr("name")+"']:checked").val();break;case"checkbox":s=r.is(":checked")?"Yes":"No";break;default:s=r.val();break}else s=r.val();r.prop("tagName")==="SELECT"&&(s=$.map(r.find("option:selected"),g=>$(g).text())),Array.isArray(s)&&(s=s.join(", ")),a.push({name:r.attr("name"),title:d,value:s})}}),a.length>0?JSON.stringify(a):null}function v(t,a){return a?t.filter(`[${e.numberAttribute}="${a}"]`):t.filter(`:not([${e.numberAttribute}])`)}function Ae(t){let a=t.responseText;const o=t.responseJSON;return o!=null&&o.message&&(t.status===403&&o.message==="Forbidden"?a="We couldn\u2019t submit your form because this connection was flagged as unsafe. Please switch to a secure network and try again.":a=o.message),a}}})(); 543 544(function(){const z=window.Syvo.Appointment_Payment=new SyvoModule("Appointment_Payment",I);function I(t){const e={appointment:{form:$("[data-property='appointment-form']"),skipPayment:!1,info:"[data-property='info']",primaryPhone:$("[data-property='primary-phone']"),result:$("[data-property='form-result']"),successClass:"has-success hover-primary",errorClass:"has-error color-danger",redirectUrl:"https://services.bblsystems.com/ProspectPost.aspx",url:"appointment-forms/send-appointment-with-payment-external",callback:function(){},overflow:$("[data-property='overflow']"),activeClass:"is-enabled"},payment:{form:$("[data-property='payment-form']"),url:"appointment-forms/send-appointment-payment",callback:function(){}},result:{successClass:"has-success hover-primary",successText:"Appointment Request Successful",errorClass:"has-error color-danger",errorText:"",selector:"[data-property='form-result']"},prettyPhones:{selector:"[data-property='pretty-phone']"},validationGroups:[],datePicker:{startDate:$("[data-property='start-date']"),endDate:$("[data-property='end-date']"),dateFormat:"mm/dd/yy",startDateTrigger:$("[data-trigger='start-date']"),endDateTrigger:$("[data-trigger='end-date']"),startDateMinDate:2,startDateMaxDate:"+1y",endDateMinDate:0,endDateMaxDate:"+1y"},multiSelect:{target:$("[data-property='interests']")},destinationButtons:{buttons:$("[data-location]"),wrapper:$(".destinations"),activeClass:"active",receiverLocation:$("[data-property='receiver-location']")}};L();function L(){if(t.appointment&&(t.appointment.selector&&(e.appointment.form=$(t.appointment.selector)),t.appointment.info&&(e.appointment.info=$(t.appointment.info)),t.appointment.skipPayment&&(e.appointment.skipPayment=t.appointment.skipPayment),t.appointment.url&&(e.appointment.url=t.appointment.url),t.appointment.redirectUrl&&(e.appointment.redirectUrl=t.appointment.redirectUrl),t.appointment.overflow&&(e.appointment.overflow=$(t.appointment.overflow)),t.appointment.primaryPhone&&(e.appointment.primaryPhone=$(t.appointment.primaryPhone)),t.appointment.locations&&(e.appointment.locations=$(t.appointment.locations)),t.appointment.activeClass&&(e.appointment.activeClass=t.appointment.activeClass),t.appointment.callback&&(e.appointment.callback=t.appointment.callback||function(){}),t.appointment.spinnerClass&&(e.appointment.spinnerClass=t.appointment.spinnerClass)),t.payment&&(t.payment.selector&&(e.payment.form=$(t.payment.selector)),t.payment.url&&(e.payment.url=t.payment.url),t.payment.callback&&(e.payment.callback=t.payment.callback||function(){})),t.result&&(t.result.selector&&(e.result=$(t.result.selector)),t.result.successClass&&(e.successClass=t.result.successClass),t.result.successText&&t.result.successText.length>0&&(e.successText=t.result.successText),t.result.errorText&&t.result.errorText.length>0&&(e.errorText=t.result.errorText),t.result.errorClass&&(e.errorClass=t.result.errorClass)),t.modules){if(t.modules.prettyPhone){if(t.modules.prettyPhone.selector&&(e.prettyPhones.selector=t.modules.prettyPhone.selector),e.validationGroups||(e.validationGroups=[]),e.validationGroups.pop({phones:"phone1 phone2 phone3"}),!e.validationErrorPlacement)e.validationErrorPlacement=function(a,s){s.attr("name")=="phone1"||s.attr("name")=="phone2"||s.attr("name")=="phone3"?a.insertBefore("#phone1"):a.insertAfter(s)};else{const a=e.validationErrorPlacement;e.validationErrorPlacement=function(s,c){(c.attr("name")=="phone1"||c.attr("name")=="phone2"||c.attr("name")=="phone3")&&s.insertBefore("#phone1"),a(s,c)}}F(e.prettyPhones)}t.modules.datePicker&&(t.modules.datePicker.startDate&&(e.datePicker.startDate=$(t.modules.datePicker.startDate)),t.modules.datePicker.startDate&&(e.datePicker.endDate=$(t.modules.datePicker.endDate)),t.modules.datePicker.dateFormat&&(e.datePicker.dateFormat=t.modules.datePicker.dateFormat),t.modules.datePicker.startDateTrigger&&(e.datePicker.startDateTrigger=$(t.modules.datePicker.startDateTrigger)),t.modules.datePicker.endDateTrigger&&(e.datePicker.endDateTrigger=$(t.modules.datePicker.endDateTrigger)),t.modules.datePicker.excludeDays&&(e.datePicker.excludeDays=$(t.modules.datePicker.excludeDays)),t.modules.datePicker.excludeDates&&(e.datePicker.excludeDates=t.modules.datePicker.excludeDates),t.modules.datePicker.startDateMinDate&&(e.datePicker.startDateMinDate=t.modules.datePicker.startDateMinDate),t.modules.datePicker.startDateMaxDate&&(e.datePicker.startDateMaxDate=t.modules.datePicker.startDateMaxDate),t.modules.datePicker.endDateMinDate&&(e.datePicker.endDateMinDate=t.modules.datePicker.endDateMinDate),t.modules.datePicker.endDateMaxDate&&(e.datePicker.endDateMaxDate=t.modules.datePicker.endDateMaxDate),E(e.datePicker)),t.modules.multiSelect&&(t.modules.multiSelect.selector&&(e.multiSelect.target=$(t.modules.multiSelect.selector)),U(e.multiSelect)),t.modules.destinationButtons&&(t.modules.destinationButtons.selector&&(e.destinationButtons.buttons=$(t.modules.destinationButtons.selector)),t.modules.destinationButtons.wrapper&&(e.destinationButtons.wrapper=$(t.modules.destinationButtons.wrapper)),t.modules.destinationButtons.receiverLocation&&(e.destinationButtons.receiverLocation=$(t.modules.destinationButtons.receiverLocation)),t.modules.destinationButtons.activeClass&&(e.destinationButtons.activeClass=t.modules.destinationButtons.activeClass),A(e.destinationButtons))}jQuery().styler&&$("select").on("change",function(){const a=$(this);setTimeout(function(){a.trigger("refresh"),a.valid()},1)});const n={errorElement:"span",onkeyup:function(a){$(a).valid()}
544,success:function(a){a.addClass("valid")}};e.payment.form.validate(n),e.validationGroups&&(n.groups=e.validationGroups),e.validationErrorPlacement&&(n.errorPlacement=e.validationErrorPlacement),e.appointment.form.validate(n),$(this).trigger("appointment-payment:validationInit")}function F(n){const a=$(n.selector);a.keyup(s),a.keydown(c);function s(r){const o=$(r.target),m=a.index(o);if(m<a.length-1){const d=o.val(),p=o.attr("maxlength");if(d.length==p){const D=a.filter(function(P){return P===m+1});if(D&&D.length!==0){const P=D.val(),k=D.attr("maxlength");P.length==k?(D.focus(),D.focusEnd()):(D.focus(),D.focusStart())}}}}function c(r){if(r.which===8){const o=$(r.target);u(o)}}function u(r){const o=a.index(r);if(o>0){const m=r.val();if(!m||m.length===0){const d=a.filter(function(p){return p===o-1});if(d&&d.length!==0){const p=d.val();!p||p.length===0?u(d):d.focusEnd()}}}}}function A(n){const a=n.buttons,s=n.receiverLocation,c=$("[data-hours]"),u=n.activeClass;a.click(function(r){r.preventDefault();const o=$(r.currentTarget);if(a.removeClass(u),o.addClass(u),e.appointment.form.addClass(e.appointment.activeClass),e.appointment.overflow.hide(),e.location=o.data("location"),s.val(e.location),c&&c.length>0){c.hide();const m=$.grep(c,function(d){return $(d).data("hours").toLowerCase()===e.location.toLowerCase()});m&&m.length>0&&$(m).fadeIn()}return g(!1),!1})}function E(n){const a=n.startDate,s=n.endDate,c=n.dateFormat,u=n.excludeDays,r=n.excludeDates,o=C(n.startDateMinDate,c);let m=C(n.startDateMaxDate,c),d=C(n.endDateMinDate,c);const p=C(n.endDateMaxDate,c),D=n.startDateTrigger,P=n.endDateTrigger,k=function(i,l){$("#ui-datepicker-div").addClass("appointment-datepicker"),$(window).width()<=993&&(l.settings.numberOfMonths=1)},R=function(i){let l=[!0];if(u&&u.length>0){const f=i.getDay();l=[$.inArray(f,u)==-1]}if(r&&r.length>0)for(let f in r){const h=r[f],M=new Date(h.value).toDateWithoutOffset();M.getDate()==i.getDate()&&M.getMonth()==i.getMonth()&&M.getFullYear()==i.getFullYear()&&(l=[!1,"",h.name])}return l},y=a.datepicker({beforeShow:k,beforeShowDay:R,defaultDate:"+1w",changeMonth:!0,numberOfMonths:2,minDate:o,maxDate:m}),v=s.datepicker({beforeShow:k,defaultDate:"+1w",changeMonth:!0,numberOfMonths:2,minDate:d,maxDate:p});$(this).on("appointment-payment:validationInit",function(){x(a,o,m),x(s,d,p)}),y.on("change",function(){y.valid()&&(d=y.datepicker("getDate"),v.datepicker("option","minDate",d),x(v,d,p))}),v.on("change",function(){v.valid()&&(m=v.datepicker("getDate"),y.datepicker("option","maxDate",m),x(y,o,m))}),D.click(function(){y.datepicker("show")}),P.click(function(){v.datepicker("show")});function x(i,l,f){const h=f.getYear()-l.getYear()>0;i.rules("add",{minDate:l,messages:{minDate:"Provide date in range of "+w(l,h)+" to "+w(f,h)}}),i.rules("add",{maxDate:f,messages:{maxDate:"Provide date in range of "+w(l,h)+" to "+w(f,h)}})}function N(i){let l;try{l=$.datepicker.parseDate(c,i.value)}catch(f){l=null}return l}function C(i,l){return i instanceof Date?i:(i instanceof String||typeof i=="string")&&isNaN(new Date(i).getTime())||i instanceof Number||typeof i=="number"?$.datepicker._determineDate("",i):$.datepicker.parseDate(l,i)}function w(i,l){const f={month:"short",day:"numeric"};return l&&(f.year="2-digit"),new Date(i).toLocaleDateString("en-US",f)}}function U(n){n.target.select2({maximumSelectionLength:5,minimumResultsForSearch:1/0})}function j(n){n.target.val(null).trigger("change")}function G(){const n=$(e.prettyPhones.selector);let a="";return $.each(n,function(s,c){a+=$(c).val()}),a}function b(n){n.trigger("reset"),n.validate().resetForm(),t.modules.multiSelect&&j(e.multiSelect),jQuery().styler&&$("select").trigger("refresh")}function g(n,a){e.result.hide(),e.result.removeClass(e.successClass),e.result.removeClass(e.errorClass),a&&(e.result.text(a),n?(e.appointment.form.fadeOut("fast"),e.successText&&e.result.text(e.successText),e.result.addClass(e.successClass),e.result.fadeIn(),T(e.result,-1e3)):(e.errorText&&e.result.text(e.errorText),e.result.addClass(e.errorClass),e.result.fadeIn(),T(e.result,-350)))}function T(n,a){a=a||0,$(window).scrollTop(n.offset().top+a)}function S(n){n==!0?Common.showLoader():Common.hideLoader()}function B(n){try{n()}catch(a){console.error(a.message+` 545`+a.stack)}}e.appointment.form.submit(function(n){if(n.preventDefault(),e.appointment.form.valid()){const a=G();e.appointment.primaryPhone.val(a);const s=e.appointment.redirectUrl,c=e.appointment.url;let u=e.appointment.form.serializeArray();u=$.grep(u,function(r){return r.name!=="phone1"&&r.name!=="phone2"&&r.name!=="phone3"}),$.each(u,function(r,o){o.name!=="shopid"&&o.name!=="storenumber"&&o.name!=="confirmpage"&&o.name!=="confirm"&&(o.value=o.value.toString().toUpperCase())}),u=$.serializeArrayToDictionary(u),S(!0),$.ajax({url:c,type:"POST",dataType:"json",data:{url:s,data:u}}).done(function(r){b(e.appointment.form),e.appointment.form.fadeOut("fast"),B(e.appointment.callback),e.appointment.skipPayment?(e.appointment.info.hide(),g(!0,r.message)):(e.appointment.i
545d=r.value,e.payment.form.fadeIn(),T(e.payment.form))}).fail(()=>{const r=data.message?data.message:"Something goes wrong";g(!1,r)}).always(function(r){S(!1)})}return!1}),e.payment.form.submit(async function(n){if(n.preventDefault(),e.payment.form.valid()){const a=e.payment.form.serializeObject();if(e.appointment.id){a.AppointmentId=e.appointment.id;try{await Common.AuthNet.tokenizeAndCleanse(a)}catch(s){return g(!1,typeof s=="string"?s:s.message),!1}$.ajax({url:e.payment.url,type:"POST",dataType:"json",data:a}).done(function(s){b(e.payment.form),e.payment.form.fadeOut(),e.appointment.info.hide(),B(e.payment.callback),g(!0,s.message)}).fail(()=>{g(!1,a.message)}).always(function(s){})}else g(!1,"Send Appointment First")}return!1})}})(); 546 547(()=>{const e=window.Syvo.BridalLive_IFrame=new SyvoModule("BridalLive_IFrame",u);e.eventNames.iFrameReload=e.getModuleEventName("iFrameReload"),e.eventNames.iFrameCreated=e.getModuleEventName("iFrameCreated");function u(l){const d={urlParameters:[],iFrameSelector:null,defaultAppointmentFormLabel:null},t=$.extend(!0,{},d,l);t.parameters=Array.isArray(l.urlParameters)?l.urlParameters:d;const a={};s(),a.$iFrame.length===1&&F(a.$iFrame.attr("data-src")||a.$iFrame.prop("src"),t.defaultAppointmentFormLabel),$(document).on(e.eventNames.iFrameReload,c),$(document).on(e.eventNames.iFrameCreated,v);function c(n,m,o){F(m,o)}function v(){s()}function s(){a.$iFrame=$(t.iFrameSelector)}function F(n,m){if(n&&n.indexOf("bridallive.com")>-1){for(var o=new URI(n),i=Object.keys(sessionStorage),r=0;r<i.length;r++)t.parameters.includes(i[r])&&o.setQuery(i[r],sessionStorage.getItem(i[r]));a.$iFrame.prop("src",o.toString()),m&&a.$iFrame.attr("appointment-label",m)}}}})(); 548 549(()=>{"use strict";const m=window.Syvo.Builder_Page=new SyvoModule("Builder_Page",f);function f(y){const x={mediaCarousel:{selector:".common-media-carousel",dataIdAttr:"data-media-carousel-id",dataOptionsAttr:"data-media-carousel-options",options:{listSelector:".list",slick:{prevArrow:"<div role='button' class='templates-arrow slick-arrow slick-prev'><i class='arrow icon-syvo icon-chevron-left' aria-hidden='true'></i></div>",nextArrow:"<div role='button' class='templates-arrow slick-arrow slick-next'><i class='arrow icon-syvo icon-chevron-right' aria-hidden='true'></i></div>"}}},imageGrid:{selector:".common-image-grid",dataIdAttr:"data-image-grid-id",dataOptionsAttr:"data-image-grid-options",options:{listSelector:".grid-list",itemSelector:".grid-list-item",masonry:{itemSelector:`.${Common.templatePagination.constants.settings.ITEM_CLASS}`,percentPosition:!0}}},featuredProducts:{selector:".featured-products > .list"},recentProducts:{selector:".recent-products > .list"},featuredTestimonials:{selector:".common-featured-testimonials > .list"},instagramFeed:{selector:".instagram-feed > .list"}},t={};g(),m.reload=S;function g(i){const e=n(i);if(!l(e))return;o(),r(),a();function o(){t.settings=e,t.$window=$(window),t.$body=$("body"),t.mediaCarousels=[],t.$mediaCarousels=$(t.settings.mediaCarousel.selector),t.imageGrids=[],t.$imageGrids=$(t.settings.imageGrid.selector),t.$featuredProducts=$(t.settings.featuredProducts.selector),t.$recentProducts=$(t.settings.recentProducts.selector),t.$featuredTestimonials=$(t.settings.featuredTestimonials.selector),t.$instagramFeed=$(t.settings.instagramFeed.selector)}function r(){t.$window.on(window.Syvo.Lazy_Load.eventNames.onAfterLazyLoad,h)}function a(){$.each(t.$mediaCarousels,(s,d)=>{const c=v(d);t.mediaCarousels.push(c)}),$.each(t.$imageGrids,(s,d)=>{const c=w(d);t.imageGrids.push(c)}),t.$featuredTestimonials.slick({slidesToShow:1,slidesToScroll:1,dots:!1,arrows:!0,prevArrow:"<div role='button' class='slick-arrow slick-prev'><i class='arrow icon-syvo icon-chevron-left' aria-hidden='true'></i></div>",nextArrow:"<div role='button' class='slick-arrow slick-next'><i class='arrow icon-syvo icon-chevron-right' aria-hidden='true'></i></div>"})}function n(s){return $.extend(!0,{},x,y||{},s||{})}function l(s){return!0}}function p(){t.$body=$(),t.$window=$(),t.settings={},t.$featuredTestimonials.slick("unslick")}function S(i){p(),g(i)}function h(i){const e=$(i.currentTarget).closest(`${t.settings.featuredProducts.selector}, ${t.settings.recentProducts.selector}, ${t.settings.instagramFeed.selector}, ${t.settings.featuredTestimonials.selector}`);k(e)}function k(i){i.length>0&&$.each(i,(e,o)=>{const r=$(o);if(r.hasClass("slick-initialized"))try{r.slick("slickSetOption","","",null)}catch(n){}})}function u(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,i=>{let e=Math.random()*16|0;return(i==="x"?e:e&3|8).toString(16)})}function v(i){const e={};return o(),{destroy:r,reload:a};function o(){e.$el=$(i),e.id=u(),e.$el.attr(t.settings.mediaCarousel.dataIdAttr,e.id);const l=e.$el.attr(t.settings.mediaCarousel.dataOptionsAttr),s=l?JSON.parse(l):{};e.settings=$.extend(!0,{},t.settings.mediaCarousel.options,s!=null?s:{}),e.selector=`${t.settings.mediaCarousel.selector}[${t.settings.mediaCarousel.dataIdAttr}=${e.id}]`,e.lazyLoadingSelector=`${e.selector} ${Common.lazyLoading.constants.SELECTOR}`,e.lazyLoading=Common.lazyLoading.load({selector:e.lazyLoadingSelector,callbacks:{onAfterLoad:n}}),e.$slick=e.$el.find(e.settings.listSelector),e.$slick.slick(e.settings.slick)}function r(){e.lazyLoading.destroy(),e.lazyLoadingSelector=null,e.$slick.slick("unslick"),e.$slick=$(),e.$el.removeAttr(t.settings.mediaCarousel.dataIdAttr),e.id=null,e.$el=$(),e.settings=null}function a(){r(),o()}function n(){e.$slick.slick("slickSetOption","","",!0)}}function w(i){const e={};return o(),{destroy:r,reload:a};function o(){var s,d;e.$el=$(i),e.id=u(),e.$el.attr(t.settings.imageGrid.dataIdAttr,e.id);const n=e.$el.attr(t.settings.imageGrid.dataOptionsAttr),l=n?(s=JSON.parse(n))!=null?s:{}:{};if(e.settings=$.extend(!0,{},(d=t.settings.imageGrid.options)!=null?d:{},l),e.selector=`${t.settings.imageGrid.selector}[${t.settings.imageGrid.dataIdAttr}=${e.id}]`,e.masonrySelector=`${e.selector} ${e.settings.listSelector}`,e.masonry=Common.lazyMasonry.init({selector:e.masonrySelector,plugin:e.settings.masonry}),e.settings.usePagination&&e.settings.itemsPerPage>0){const c=e.masonry.$grid.find(e.settings.itemSelector);e.pagination=Common.templatePagination.init({selector:e.selector,mode:Common.templatePagination.constants.modes.SHOW_HIDE,items:c.toArray(),itemSelector:e.settings.itemSelector,itemsPerPage:e.settings.itemsPerPage,callbacks:{onBeforePageChanged:()=>{e.masonry.destroy()},onAfterPageChanged:()=>{e.masonry.init()}}})}e.settings.hideShareTitle&&e.$el.find(".social-share .share-title").parent("li").addClass("sr-only")}function r(){e.masonry.destroy(),e.$el.removeAttr(t.settings.imageGrid.dataIdAttr),e.id=null,e.selector=null,e.$el=$(),e.masonrySelector=null,e.settings.usePagination&&e.settings.itemsPerPage>0&&e.pagination.destroy(),e.settings.hideShareTitle&&e.$el.find(".social-share .share-title").parent("li").show(),e.settings=null}function a(){r(),o()}}}})(); 550 551(()=>{"use strict";const c=Object.freeze({HIGHLIGHT:"highlight",UN_HIGHLIGHT:"unHighlight"}),o=Object.freeze({HIGHLIGHTED:"highlighted",UN_HIGHLIGHTED:"unHighlighted",NOT_FOUNDED:"notFounded"}),a=window.Syvo.Builder_Preview=new SyvoModule("Builder_Preview",r);a.eventNames.highlightSection=a.getModuleEventName(c.HIGHLIGHT),a.eventNames.unHighlightSection=a.getModuleEventName(c.UN_HIGHLIGHT);function r(h){const H={sections:[],highlight:{activeClass:"highlighted"}},e={};return g(),{init:g,reload:u,destroy:l};function g(t){const i=S(t);if(!G(i))return;n(),p();function n(){e.settings=i,e.$window=$(window),e.$pageSections=$(".builder-cmp").children(),e.$fixedHeader=$("[data-property=fixed-header]"),e.pageSections=e.settings.sections.map((s,N)=>{const d=e.$pageSections.filter(`[data-section-id=${s.sectionId}]`);return{sectionId:s.sectionId,index:d.length===1?N:null,$section:d.length===1?d:null}})}function p(){window.addEventListener("message",f),e.$fixedHeader.on("syvo_fixedHeader:onCalculate",I)}function m(){}function S(s){return $.extend(!0,{},H,h||{},s||{})}function G(s){return!!s.sections&&!!s.highlight}}function l(){e.$body=$(),e.$window=$(),e.settings={}}function u(t){l(),g(t)}function f(t){var n;if(!((n=t.data)!=null&&n.length))return;const i=JSON.parse(t.data);if(i.event)switch(i.event){case c.HIGHLIGHT:v(i.id);break;case c.UN_HIGHLIGHT:w(i.id);break;default:break}}function I(t,i,n){e.fixedHeaderHeight=n}function v(t){e.$pageSections.removeClass(e.settings.highlight.activeClass);let i=e.pageSections.find(n=>n.sectionId===t);if(i.$section){let n=i.$section.offset().top-(e.fixedHeaderHeight||0);top<0&&(n=0),i.$section.addClass(e.settings.highlight.activeClass),$("html, body").animate({scrollTop:n},1e3,null,()=>{window.postMessage(JSON.stringify({event:o.HIGHLIGHTED,id:t}),"*")})}else window.postMessage(JSON.stringify({event:o.UN_HIGHLIGHTED,id:t}),"*"),window.postMessage(JSON.stringify({event:o.NOT_FOUNDED,id:t}),"*")}function w(t){let i=e.pageSections.find(n=>n.sectionId===t);i.$section?i.$section.removeClass(e.settings.highlight.activeClass):e.$pageSections.removeClass(e.settings.highlight.activeClass),window.postMessage(JSON.stringify({event:o.UN_HIGHLIGHTED,id:t}),"*"),i.section||window.postMessage(JSON.stringify({event:o.NOT_FOUNDED,id:t}),"*")}}})(); 552 553 554(()=>{const e=window.Syvo.Contact_Form=new SyvoModule("Contact_Form",S);function S(w){let p=!1;const b={prettyPhones:{selector:"[data-property='pretty-phone']",outputSelector:"[data-property='phone']"},prettyNames:{selector:"[data-property='pretty-name']",outputSelector:"[data-property='name']"},plugins:{datepicker:{minDate:0}},callback:()=>{},failCallback:()=>{}};e.settings=$.extend(!0,{}
554,b,w),e.$form=$("[data-trigger=send-contact-form]"),e.$eventDate=$("[name=eventDate]"),e.$eventDate.datepicker(e.settings.plugins.datepicker),e.settings.prettyNames.enable=$(e.settings.prettyNames.selector).length>0,e.settings.prettyPhones.enable=$(e.settings.prettyPhones.selector).length>0;const d=e.$form.find("[data-block=contact-success]"),a=e.$form.find("[data-block=contact-unsuccess]"),h=a.html();if(e.settings.prettyPhones.enable){const o={errorElement:"span",onkeyup:t=>$(t).valid(),success:t=>t.addClass("valid"),errorPlacement:(t,n)=>{t.insertAfter(n)},groups:[]};o.groups.pop({phones:"phone1 phone2 phone3"}),o.errorPlacement=(t,n)=>{n.attr("name")==="phone1"||n.attr("name")==="phone2"||n.attr("name")==="phone3"?t.insertBefore("#phone1"):t.insertAfter(n)},e.$form.validate(o),k(e.settings.prettyPhones)}const y=$("<input />",{type:"hidden",name:"productStyle",value:Common.localStorageManager.getProductStyleFromLocalStorage()});e.$form.append(y),e.$form.validate(),e.$form.submit(x);function x(o){o.preventDefault(),Common.validateCaptcha().then(t=>{C(t)})}function C(o){if(p)return!1;if(d.hide(),a.hide(),e.$form.valid()){if(p=!0,a.hide(),d.hide(),e.settings.prettyPhones.enable){let n="";$.each($(e.settings.prettyPhones.selector),(u,r)=>n+=$(r).val()),$(e.settings.prettyPhones.outputSelector).val(n)}if(e.settings.prettyNames.enable){let n="";$.each($(e.settings.prettyNames.selector),(u,r)=>{var s;return n+=((s=$(r).val())==null?void 0:s.trim())+" "}),$(e.settings.prettyNames.outputSelector).val(n)}const t=Common.serializeFormToObject(e.$form);o&&(t["g-recaptcha-response"]=o),Common.showLoader(),$.ajax({url:e.settings.url,type:"post",data:t}).done(n=>{localStorage.removeItem("productStyle"),y.remove(),e.$form[0].reset(),e.$form.find("select").trigger("refresh"),d.show(),$(document).trigger(window.Syvo.Google_Ads.eventNames.onContactUsSent),$(document).trigger(window.Syvo.Google_Analytics_4.eventNames.onContactUsSent),$(document).trigger(window.Syvo.Facebook_Pixel.eventNames.onContactUsSent,n),$(document).trigger(window.Syvo.Google_Tag_Manager.eventNames.onContactUsSent),$(document).trigger(window.Syvo.TikTok_Pixel.eventNames.onContactUsSent),$(document).trigger(window.Syvo.Snapchat_Pixel.eventNames.onContactUsSent),$(document).trigger(window.Syvo.OpenAi_Pixel.eventNames.onContactUsSent),v(e.settings.callback)}).fail(n=>{var u,r;n.status===403&&((u=n.responseJSON)==null?void 0:u.message)==="Forbidden"?a.html("We couldn't submit your form because this connection was flagged as unsafe. Please switch to a secure network and try again"):(r=n.responseJSON)!=null&&r.message?a.html(n.responseJSON.message):a.html(h),a.show(),v(e.settings.failCallback)}).always(()=>{p=!1,Common.hideLoader()})}else a.html(h),a.show();return!1}function v(o){try{o()}catch(t){console.error(t.message+` 555`+t.stack)}}function k(o){const t=$(o.selector);t.keyup(n);function n(s){const m=$(s.target),g=t.index(m);if(g<t.length-1){const c=m.val(),i=m.attr("maxlength");if(c.length===i){const l=t.filter(f=>f===g+1);if(l&&l.length!==0){const f=l.val(),P=l.attr("maxlength");f.length===P?(l.focus(),l.focusEnd()):(l.focus(),l.focusStart())}}}u(s)}function u(s){s.which===8&&r($(s.target))}function r(s){const m=t.index(s);if(m>0){const g=s.val();if(!g||g.length===0){const c=t.filter(i=>i===m-1);if(c&&c.length!==0){const i=c.val();!i||i.length===0?r(c):(c.focusEnd(),c.val(i.substring(0,i.length-1)))}}}}}}})(); 556 557(()=>{const F=window.Syvo.Custom_Form=new SyvoModule("Custom_Form",A),P=$(document);F.initFormFields=s=>{s=s||{},s.beforeShowDatepicker=s.beforeShowDatepicker?s.beforeShowDatepicker:()=>{};const p=s.form||$("[data-custom-form]"),m="[data-property='file-upload-wrapper']",y="[data-property='file-list']",h="[data-property='file-label']",k="[data-property='file-upload-btn']";S(),w(),C(),b(),S();function w(){p.find("input[data-field-id]").each((a,e)=>{e=$(e),e.attr("data-rule-date")&&v(e),e.attr("data-card-expiration-mask")!==void 0&&Common.initExpirationDateInput(e),e.attr("data-input-mask-regex")&&_(e),e.attr("data-phone-mask")&&I(e),e.attr("data-phone-international")!==void 0&&O(e),e.is("[type='file']")&&M(e),e.is("[type='radio']")&&e.trigger("change"),e.attr("data-rule-time-12-h")&&E(e),e.is("input[type=checkbox]")&&e.change(()=>{e.val(e.prop("checked")?"Yes":"No")})})}function b(){p.find("select[data-product-select]").each((a,e)=>{e=$(e),e.attr("data-product-select")&&N(e)})}function C(){if(s.useSelect2){const t=p.find("select[no-styler][data-field-id]:not([multiple]):not([data-product-select])"),a=p.find("select[no-styler][data-field-id][multiple]:not([data-product-select])");a.length&&(a.select2({templateResult:e=>e.id?$(`<span><input ${e.selected?'checked=""':""} type="checkbox"/> ${e.text}</span>`):e.text}).addClass("custom-form-select2"),x(a),a.trigger("change")),t.select2({minimumResultsForSearch:-1}).addClass("custom-form-select2"),x(t),t.trigger("change")}else p.find("select[no-styler][data-field-id]").each((a,e)=>{const o=$(e),n=o.find("option").filter(c=>!$(c).text());if(n.length>0){const c=$(n[0]);c.text(o.attr("placeholder")),c.attr("disabled",!0),c.attr("selected",!0)}})}function x(t){t.length&&t.each((a,e)=>{const o=$(e),n=o.attr("aria-label");n&&o.next().find(".select2-search__field").attr("aria-label",`${n} : Search Field`)})}function S(){const t=$("[data-depend-from-title][data-depend-from-value]"),a=$("[data-title-holder]"),e=[];$.each(t,(n,c)=>{const i=$(c);e.push({title:i.attr("data-depend-from-title"),values:i.attr("data-depend-from-value").split(";"),element:i}),i.closest("[data-input-holder]").hide()}),e.forEach((n,c)=>{let i;$.each(a,(d,u)=>{const g=$(u);if(g.text()===n.title)return i=g.closest("[data-input-holder]").find("input, select"),!1}),!(!i||i.length===0)&&(i.on("change",d=>{o(d.currentTarget,n)}),i.is("[type=radio]")?o(i.filter(":checked")[0],n):o(i[0],n))});function o(n,c){const i=n.value;c.values.some(d=>i===d)?c.element.closest("[data-input-holder]").show():c.element.closest("[data-input-holder]").hide()}}function M(t){const a=t.closest(m),e=a.find(y),o=a.find(h),n=a.find(k),c=t.prop("multiple"),i=[];n.on("click",()=>t.trigger("click"));function d(){let l="";i.length>0?c&&(l=`${i.length} file${i.length>
5571?"s":""} selected`):l="No file chosen",o.text(l)}function u(l){const r=new DataTransfer;i.forEach(f=>r.items.add(f)),l.prop("files",r.files)}function g(){e.empty(),i.forEach((l,r)=>{const f=$('<div class="custom-form-file-item"></div>');f.append('<span class="custom-form-file-name">'+$("<span>").text(l.name).html()+"</span>");const D=$('<button type="button" class="custom-form-file-remove">×</button>');D.on("click",()=>{i.splice(r,1),g(),t.valid()}),f.append(D),e.append(f)}),u(t),d()}t.on("change",()=>{const l=t.prop("files");c||(i.length=0);for(let r=0;r<l.length;r++){const f=l[r];i.some(L=>L.name===f.name&&L.size===f.size&&L.lastModified===f.lastModified)||i.push(f)}t.val(""),g(),t.valid()}),t.attr("data-rule-required")==="true"&&t.rules("add",{required:()=>i.length===0})}function v(t){const a=t.attr("data-msg-date"),e=t.attr("data-input-min-date"),o=t.attr("data-input-max-date"),n=t.attr("data-input-default-date"),c=t.attr("data-input-range-date"),i=t.attr("data-input-date-format"),d=t.attr("data-input-days-of-week"),u=d==null?void 0:d.split(",").filter(r=>!isNaN(r)).map(r=>Number(r)),g={beforeShow:(r,f)=>{T(r,f),s.beforeShowDatepicker(r)},defaultDate:n||"+1w",changeMonth:!0,changeYear:!!c,numberOfMonths:2,minDate:e||0,maxDate:o||"+1y",yearRange:c||"",infinite:!0};if(u&&u.length>0&&(g.beforeShowDay=r=>[u.indexOf(r.getDay())!==-1]),t.datepicker(g),i){let r=function(f,D){try{return this.optional(D)||$.datepicker.parseDate(i,f)!==null}catch(L){return!1}};var l=r;t.datepicker("option","dateFormat",i),$.validator.addMethod("validateDateWithFormat",r,$.validator.messages.date),t.rules("add",{date:!1,validateDateWithFormat:!0})}e&&t.rules("add",{minDate:t.datepicker("option","minDate"),messages:{minDate:a}}),o&&t.rules("add",{maxDate:t.datepicker("option","maxDate"),messages:{maxDate:a}})}function _(t){if(!t)return;const a=t.attr("data-input-mask-regex");a&&(t.inputmask("remove"),t.inputmask({regex:a,autoUnmask:!0}))}function I(t){if(!t)return;const a=t.attr("data-phone-mask")||"+1-999-999-9999";t.inputmask("remove"),t.val(""),t.inputmask({mask:a,autoUnmask:!0})}function O(t){if(!t)return;const a=t.closest("[data-property='phone-international-input-parent']").find("select[data-phone-code]");a.length>0&&s.useSelect2&&(a.select2({dropdownAutoWidth:!0,minimumResultsForSearch:10,templateSelection:e}).addClass("custom-form-select2"),a.trigger("change"));function e(o){return o.id?`+${o.id}`:o.text}}function E(t){let a=Number(t.attr("data-input-time-interval"));a=a>0?a:60;const e=t.attr("data-input-min-time"),o=t.attr("data-input-max-time"),n=t.attr("data-input-time-show-duration")==="true",c=t.closest("[data-trigger='timepicker-show']"),i=c.find("[data-property='time-picker-display']");let d=t.attr("placeholder");d=d||"Choose Time";const u={scrollbar:!0,dropdown:!0,step:a,minTime:e,maxTime:o};i.html(d),t.timepicker(u),c.click(()=>{t.timepicker("show"),t.on("change",()=>{g()})});function g(){let l=d;const r=t.val();r&&(l=`<span>Selected time: ${r}${n?".":""}</span>`,n&&(l+=`<span> Duration: ${a} minutes </span>`)),i.html(l)}}function N(t){if(!t)return;t.select2({ajax:{url:"check-in-and-custom-forms/product-options",dataType:"json",delay:500,data:e=>({productName:e.term}),processResults:e=>({results:e.productOptions.map(o=>({id:o,text:o}))}),cache:!0},minimumInputLength:1});const a=Common.localStorageManager.getProductStyleFromLocalStorage();if(a){const e=new Option(a,a,!0,!0);t.append(e).trigger("change")}}function T(t,a){$("#ui-datepicker-div").addClass("appointment-datepicker"),$(window).width()<=993&&(a.settings.numberOfMonths=1)}},F.collectFormData=s=>{s=s||{};let p=s.form||$("[data-custom-form]");s.form=p;let m={formId:p.find("[name='formId']").val(),fields:[],files:[]};return m.formId?(p.find("input[data-field-id]:not([type='radio']):not([name='formId']):not([data-property='payment-field']):not([name='__RequestVerificationToken']),select[data-field-id],input[type=radio][data-field-id]:checked,textarea[data-field-id]:not(#g-recaptcha-response)").each(function(){const y=$(this);let h=y.val();if(y.is("input[type='file']")){const k=y.prop("files");if(k.length>0){h=[];for(let w=0;w<k.length;w++){const b=k[w];h.push(b.name),m.files.push(b)}h=h.join(";
557"),m.fields.push({fieldId:$(this).attr("data-field-id"),value:h})}}else h&&(y.is("select[multiple]")&&(h=h.join(" | ")),y.attr("data-phone-international")!==void 0&&(h=`+${y.closest("[data-property='phone-international-input-parent']").find("select[data-phone-code]").val()}${h}`),m.fields.push({fieldId:$(this).attr("data-field-id"),value:h}))}),m):null};function A(s){s=s||{};const p=s.maxAllowedContentLength||52428800;let m=s.form||$("[data-custom-form]");m.find("select").each(function(){$(this).styler("destroy")}),m.find("input").datepicker("destroy"),m.find("[data-custom-submit-messages]").hide();const y={errorElement:"span",onkeyup:a=>{$(a).valid()},success:a=>{a.addClass("valid")},unhighlight:(a,e,o)=>{const n=$(a);n.addClass(o).removeClass(e),n.closest("[data-property=custom-control-body]").addClass(o).removeClass(e)},highlight:(a,e,o)=>{const n=$(a);n.addClass(e).removeClass(o),n.closest("[data-property=custom-control-body]").addClass(e).removeClass(o)}};m.validate(y);let h="[data-custom-submit-success]",k="Success! Form has been sent! Thanks!",w="[data-custom-submit-always]",b="",C="[data-custom-submit-error]",x="Error! Something was wrong! Try again later!";O(),F.initFormFields(s),m.submit(a=>{a.preventDefault(),_(a)});let S=null;s.stripeIntegration&&(S=Common.Stripe.init(s.stripeIntegration.init));function M(a,e){a.toggleClass("stripe-invalid",e)}let v=!1;async function _(a,e){var o;if(M(m.find(".StripeElement--empty"),!0),!v&&m.valid()){v=!0,Common.showLoader(),m.find("button").prop("disabled",!0);const n={__requestVerificationToken:m.find("[name='__RequestVerificationToken']").val(),templateId:s.templateId||null,fields:[]};let c=F.collectFormData(s);n.formId=c.formId,n.fields=c.fields;const i=Common.convertJsonToFormData(n);let d=0;if(c.files.forEach((l,r)=>{i.append("file"+r,l),d+=l.size}),d>p){const l=parseInt(p/1024/1024);t("Size of files exceeds "+l+" MB"),m.find("button").prop("disabled",!1),Common.hideLoader();return}const u={};$("[data-property='payment-field']").map((l,r)=>{let f=$(r);u[f.attr("name")]=f.val()});try{await Common.AuthNet.tokenizeAndCleanse(u)}catch(l){Common.hideLoader(),m.find("button").prop("disabled",!1),t(typeof l=="string"?l:l.message);return}Object.keys(u).forEach(l=>{i.append(l,u[l])});let g;if(s.stripeIntegration&&S){const l={formId:n.formId};try{const r=await S.getIntent(l,s.stripeIntegration.intent);if(r.status===!0){if(r.intent&&i.append("stripeIntent",r.intent),r.paymentId&&i.append("paymentId",r.paymentId),g=r.clientSecret,((o=s.stripeIntegration)==null?void 0:o.isCardLast4SaveEnabled)===!0&&r.cardLast4!=null){const f=$("#stripe-card-number").attr("data-field-id");i.append(`fields[${n.fields.length}].fieldId`,f),i.append(`fields[${n.fields.length}].value`,r.cardLast4)}}else{Common.hideLoader(),t(r.message);return}}catch(r){Common.hideLoader(),t(r.message);return}}await I(i,n,g,S)}}async function I(a,e,o,n){const c=await Common.validateCaptcha();c&&a.set("g-recaptcha-response",c),$.ajax({url:s.url||"check-in-and-custom-forms/send-custom-form",type:"post",data:a,contentType:!1,processData:!1}).done(i=>{if(s.seoTitle){const d={title:s.seoTitle};P.trigger(window.Syvo.Google_Analytics_4.eventNames.onCustomFormSubmitted,d),P.trigger(window.Syvo.Google_Tag_Manager.eventNames.onCustomFormSubmitted,d)}N(),localStorage.removeItem("productStyle"),s.success&&s.success.callback&&s.success.callback(i,e),s.formContainer&&s.formContainer.selector&&$(s.formContainer.selector).fadeOut("fast"),Common.hideLoader(),v=!1}).fail(i=>{const d=i.responseJSON;if(n&&(d==null?void 0:d.message)==="requires_action"&&o){n.requiresActionPopup(o,()=>{I(a,e)},u=>{t(u.error.message),Common.hideLoader(),v=!1});return}else if(s.error&&s.error.callback)s.error.callback(i,e);else if(i.status===413){const u=parseInt(p/1024/1024);t("Size of files exceeds "+u+" MB")}else i.status===403&&(d||{}).message==="Forbidden"?t("We couldn't submit your form because this connection was flagged as unsafe. Please switch to a secure network and try again"):t(i&&i.status!==500?(d||{}).message||i.statusText:null);Common.hideLoader(),v=!1}).always(i=>{m.find("button").prop("disabled",!1),s.always&&s.always.callback?s.always.callback(i.responseJSON||i,e):($(w).html(Common.decodeHtml(b)),$(w).show())})}s.customHandlers&&E(s.customHandlers);function O(){s.success&&(s.success.selector&&(h=s.success.selector),s.success.message&&(k=s.success.message)),s.always&&(s.always.selector&&(w=s.always.selector),s.always.message&&(b=s.always.message)),s.error&&(s.error.selector&&(C=s.error.selector),s.error.message&&(x=s.error.message))}
557function E(a){a.forEach(e=>{m.find(e.selector).each(function(){e.init($(this))})})}function N(){var e;const a=$(h);a.html(Common.decodeHtml(k)),a.show(),$(C).hide(),(e=s.success)!=null&&e.scrollTo&&T(a)}function T(a){if(!a)return;const e=$.getCurrentViewport().height;$("html, body").animate({scrollTop:a.offset().top-e/4},"slow")}function t(a){const e=$(C);e.html(Common.decodeHtml(a||x)),e.show(),$(h).hide(),T(e)}}})(); 558 559(()=>{const f=window.Syvo.Dictionary_Form=new SyvoModule("Dictionary_Form",u);function u(d){const e=f,m={form:{selector:"[data-property='dictionary-form']",callback:()=>{}},summary:{success:"[data-property='form-success']",error:"[data-property='form-error']",info:"[data-property='form-info']"}};if(e.settings=$.extend(!0,{},m,d),e.callback=()=>{typeof e.settings.form.callback=="function"&&e.settings.form.callback()},e.formRefresh=s=>{o.hide(),p.hide(),i.hide(),c.hide(),s?i.show():c.show(),$(window).scrollTop(0),setTimeout(()=>{location.reload()},8e3)},!e.settings.form||!e.settings.summary)return;const o=$(e.settings.form.selector),i=$(e.settings.summary.success),c=$(e.settings.summary.error),p=$(e.settings.summary.info);o.submit(async s=>{if(s.preventDefault(),o.valid()){Common.showLoader(),e.controls=h(o);const n=o.find('input[name="__RequestVerificationToken"]').val();n&&(e.controls=e.controls.filter(t=>t.Key!=="__RequestVerificationToken"));const r=await Common.validateCaptcha();$.ajax({type:"POST",url:o.attr("action"),data:{__RequestVerificationToken:n,url:e.settings.url?e.settings.url:"externalrequest/sendform",data:e.controls,"g-recaptcha-response":r}}).done(t=>{e.callback(),e.formRefresh(!0)}).fail(t=>{e.formRefresh(!1)}).always(t=>{Common.hideLoader()})}});function h(){const s=[];return o.find("input, textarea, select").each(function(n,r){const t={};if(t.Key=r.name,t.Value=r.value,r.tagName==="SELECT")t.TextValue=$(this).find("option:selected").text();else if(r.type==="radio")t.Value=o.find(`:radio[name=${t.Key}]:checked`).val();else if(r.type==="checkbox"){const a=o.find(`:checkbox[name=${t.Key}]:checked`),l=[];a.each((g,y)=>{l.push($(y).val())}),t.Value=l.join(",")}s.filter(a=>a.Key===t.Key).length===0&&s.push(t)}),s}}})(); 560 561(()=>{const e=window.Syvo.Gown_Locator=new SyvoModule("Gown_Locator",V),i=$(document),u=Object.freeze({TEXT:0,CALL:1,EMAIL:2,ANY:3});function V(j){const q={modal:{selector:"[data-property=gown-locator-modal]",triggerSelector:"[data-trigger=gown-locator-modal]",storeIdAttr:"data-store-id"},step1:{form:{selector:"[data-property=gown-locator-step1-form]"},textbox:{selector:"[data-property=search-location-input]"},callback:S},step2:{submit:{selector:"[data-trigger=gown-locator-step2-submit]"},checkbox:{selector:"[data-property=store-checkbox]"},callback:S},step3:{form:{selector:"[data-property=gown-locator-step3-form]"},submit:{selector:"[data-trigger=gown-locator-step3-submit]",text:"Send message"},errorLabel:{selector:"[data-property=gown-locator-step3-form-submission-error]"},preview:{selector:"[data-property=gown-locator-step3-preview-text]",customerName:{shortCode:void 0,selector:"[data-property=gown-locator-customer-name-short-code]",dataAttr:"gown-locator-customer-name-short-code"},phone:{shortCode:void 0,selector:"[data-property=gown-locator-phone-short-code]",dataAttr:"gown-locator-phone-short-code"}},contact:{dataAttr:"data-gown-locator-contact-type",selector:"[data-gown-locator-contact-type]",defaultContactType:u.TEXT,customerNameInput:"[data-property=gown-locator-customer-name]",phoneCode:"[data-property=gown-locator-phone-code]",phoneInput:"[data-property=gown-locator-phone]",phoneMask:"(999)999-9999",emailInput:"[data-property=gown-locator-email]",emailWrapper:"[data-property=gown-locator-contact-email-dropdown]",emailTrigger:"[data-trigger=gown-locator-contact-email]"},urls:{post:void 0},datePicker:{startDate:{selector:"[gown-locator-start-date]",trigger:"[data-trigger='start-date']"},endDate:{selector:"[gown-locator-end-date]",trigger:"[data-trigger='end-date']"},dateFormat:"mm/dd/yy"},callback:S}};if(e.settings=$.extend(!0,{},q,j),!e.settings.modal||!e.settings.step1||!e.settings.step1.form||!e.settings.step2||!e.settings.step2.submit||!e.settings.step2.checkbox||!e.settings.step3||!e.settings.step3.form||!e.settings.step3.submit||!e.settings.step3.contact||!e.settings.step3.urls||!e.settings.step3.urls.post)return;e.init=g,e.destroy=k,e.reload=f,g();function g(){t(),o(),r(),a();function t(){var s;e.stepper=Common.initStepper(),e.$modal=$(e.settings.modal.selector),e.$modalTrigger=$(e.settings.modal.triggerSelector),e.storeId=null,e.$step1Form=$(e.settings.step1.form.selector),e.$step2Submit=$(e.settings.step2.submit.selector),e.$getStep2CheckboxFunc=()=>$(e.settings.step2.checkbox.selector),e.$step3Form=$(e.settings.step3.form.selector),e.$step3Submit=$(e.settings.step3.submit.selector),e.$step3Contact=$(e.settings.step3.contact.selector),e.$step3DefaultContactOption=(s=e.settings.step3.contact.defaultContactType)!=null?s:u.TEXT,e.$step3CustomerName=$(e.settings.step3.contact.customerNameInput),e.$step3PhoneCode=$(e.settings.step3.contact.phoneCode),e.$step3Phone=$(e.settings.step3.contact.phoneInput),e.$step3Email=$(e.settings.step3.contact.emailInput),e.$step3EmailWrapper=$(e.settings.step3.contact.emailWrapper),e.$step3PreviewText=$(e.settings.step3.preview.selector),e.$step3DatePickerFormat=e.settings.step3.datePicker.dateFormat,e.$step3StartDatePicker=$(e.settings.step3.datePicker.startDate.selector),e.$step3StartDatePickerTrigger=$(e.settings.step3.datePicker.startDate.trigger),e.$step3EndDatePicker=$(e.settings.step3.datePicker.endDate.selector),e.$step3EndDatePickerTrigger=$(e.settings.step3.datePicker.endDate.trigger)}function o(){e.$modal.on($.modal.BEFORE_OPEN,b),e.$modal.on($.modal.AFTER_CLOSE,y),e.$modalTrigger.on("click",T),e.$step2Submit.on("click",D),e.$step3Form.on("submit",F),e.$step3Contact.on("change",O),e.$step3CustomerName.on("change",N),e.$step3Phone.on("change",_),i.on(window.Syvo.Gown_Locator_Search_v2.eventNames.onStoresFound,A),i.on(window.Syvo.Store_Locator_v2.eventNames.onStoresFound,x)}function n(){e.$step3StartDatePicker.datepicker({defaultDate:"+1w",changeMonth:!0,numberOfMonths:2,dateFormat:e.$step3DatePickerFormat,onSelect:s}),e.$step3EndDatePicker.datepicker({defaultDate:"+1w",changeMonth:!0,numberOfMonths:2,dateFormat:e.$step3DatePickerFormat,onSelect:d}),e.$step3StartDatePickerTrigger.on("click",v),e.$step3EndDatePickerTrigger.on("click",P),$(".ui-datepicker").addClass("notranslate"),Common.checkBreakPoint(767,$.getCurrentViewport().width>=767?766:768,p,p);function s(c){const l=B(c);e.$step3EndDatePicker.datepicker("option","minDate",l),e.$step3StartDatePicker.valid()}function d(c){e.$step3StartDatePicker.datepicker("option","maxDate",B(c)),e.$step3EndDatePicker.valid()}function p(){$("#ui-datepicker-div").addClass("appointment-datepicker popup-datepicker theme-typo"),$.getCurrentViewport().width<=767?(e.$step3StartDatePicker.datepicker("option",{numberOfMonths:1}),e.$step3EndDatePicker.datepicker("option",{numberOfMonths:1})):(e.$step3StartDatePicker.datepicker("option",{numberOfMonths:2}),e.$step3EndDatePicker.datepicker("option",{numberOfMonths:2}))}}
561function r(){C().forEach(s=>{const d=new RegExp(s.shortCode.replace("[","\\[").replace("]","\\]"),"g"),p=`<span data-property="${s.dataAttr}"></span>`;$.each(e.$step3PreviewText,(c,l)=>{const m=$(l),W=m.html().replace(d,p);m.html(W)})})}function a(){K(e.$step3DefaultContactOption),Common.CustomerDemand.initializePhoneCode(e.$step3PhoneCode),Common.CustomerDemand.initializePhoneInputMask(e.$step3Phone,e.settings.phoneFormat),n()}}function k(){d(),n(),r(),s(),o(),t();function t(){e.stepper=e.stepper.destroy(),e.$modal=$(),e.$modalTrigger=$(),e.storeId=null,e.$step1Form=$(),e.$step2Submit=$(),e.$getStep2CheckboxFunc=$(),e.$step3Form=$(),e.$step3Submit=$(),e.$step3CustomerName=$(),e.$step3PhoneCode=$(),e.$step3Phone=$(),e.$step3Email=$(),e.$step3Contact=$(),e.$step3DefaultContactOption=null,e.$step3EmailWrapper=$(),e.$step3PreviewText=$(),e.$step3DatePickerFormat=null,e.$step3StartDatePicker=$(),e.$step3StartDatePickerTrigger=$(),e.$step3EndDatePicker=$(),e.$step3EndDatePickerTrigger=$()}function o(){e.$step3CustomerName.val(""),e.$step3Phone.val(""),e.$step3Email.val(""),e.$step3Submit.prop("disabled",!1).text(e.settings.step3.submit.text),$(e.settings.step1.textbox.selector).val(""),$(e.settings.step3.errorLabel.selector).hide()}function n(){e.$modal.off($.modal.BEFORE_OPEN,b),e.$modal.off($.modal.AFTER_CLOSE,y),e.$modalTrigger.off("click",T),e.$step2Submit.off("click",D),e.$step3Form.off("submit",F),e.$step3Contact.off("change",O),e.$step3CustomerName.off("change",N),e.$step3Phone.off("change",_),i.off(window.Syvo.Gown_Locator_Search_v2.eventNames.onStoresFound,A),i.off(window.Syvo.Store_Locator_v2.eventNames.onStoresFound,x)}function r(){e.$getStep2CheckboxFunc().off("change",E)}function a(){e.$step3StartDatePickerTrigger.off("click",v),e.$step3EndDatePickerTrigger.off("click",P),e.$step3StartDatePicker.datepicker("destroy"),e.$step3EndDatePicker.datepicker("destroy")}function s(){C().forEach(p=>{$.each(e.$step3PreviewText,(c,l)=>{$(l).find(p.selector).replaceWith(p.shortCode)})})}function d(){a(),e.$step3Phone.inputmask("remove")}}function f(){k(),g()}function C(){return[e.settings.step3.preview.customerName,e.settings.step3.preview.phone].filter(t=>t.shortCode)}function v(){e.$step3StartDatePicker.datepicker("show")}function P(){e.$step3EndDatePicker.datepicker("show")}function z(){e.$getStep2CheckboxFunc().on("change",E)}function b(t,o){n();function n(){e.$step1Form.trigger("reset"),e.$step3Form.trigger("reset"),o.$blocker.addClass("common-gownlocator-modal-blocker"),e.stepper.switchToStep(1)}}function y(t){f()}function T(t){t.preventDefault(),o();function o(){e.$modal.modal({closeExisting:!0,showClose:!1,blockerClass:"common-gownlocator-modal-blocker"})}oe(),e.storeId=$(t.currentTarget).attr(e.settings.modal.storeIdAttr),e.storeId&&e.stepper.switchToStep(3),e.stepper.toggleCounter(!e.storeId),e.stepper.toggleButtons(!e.storeId)}function E(){const t=e.$getStep2CheckboxFunc().filter(":checked").length>0;M(t)}function D(t){o();function o(){te(),e.stepper.switchToStep(3),typeof e.settings.step2.callback=="function"&&e.settings.step2.callback()}}function F(t){t.preventDefault(),X()}function X(){I(),!(!e.$step3Form.valid()||e.$step3Phone.val().length>0&&!R())&&(e.$step3Submit.prop("disabled",!0).text("Sending"),Common.validateCaptcha().then(t=>{Q(t).then(o=>{e.stepper.switchToStep(4),typeof e.settings.step3.callback=="function"&&e.settings.step3.callback()}).catch(o=>{$(e.settings.step3.errorLabel.selector).show().text(o),e.$step3Submit.prop("disabled",!1).text(e.settings.step3.submit.text)})}))}function O(t){o($(t.currentTarget));function o(n){if(n.prop("checked")){const a=parseInt(n.attr(e.settings.step3.contact.dataAttr));G(a),ne(a)}}}function N(t){o($(t.currentTarget));function o(n){e.$step3PreviewText.find(e.settings.step3.preview.customerName.selector).text(n.val())}}function _(t){o($(t.currentTarget));function o(n){const r=R()?n.val().replace(/^\+\d/,""):n.val();let a=[];for(let s=0;s<r.length;s++)a.push(r[s]),(s===2||s===5)&&a.push("-");e.$step3PreviewText.find(e.settings.step3.preview.phone.selector).text(a.join(""))}}function A(t,o){M(o>0),z(),e.stepper.getCurrentStep()===1&&e.stepper.switchToStep(2)}function x(t){f()}function M(t){e.$step2Submit.prop("disabled",!t)}function I(t=!1){e.$step3Form.validate({errorElement:"span",errorClass:"error",validClass:"valid",focusCleanup:t,focusInvalid:!1,errorPlacement:(o,n)=>{const r=n.attr("id"),a=$(`[data-validation-error-of=#${r}]`);o.addClass("common-gownlocator-contact-form-error"),a.length===0?o.insertAfter(n):a.prepend(o)},highlight:(o,n,r)=>{$(o).addClass(n).removeClass(r),$(o.form).find("span[for="+o.id+"]").addClass(n)},unhighlight:(o,n,r)=>{$(o).removeClass(n).addClass(r),$(o.form).find("span[for="+o.id+"]").removeClass(n)}})}function h(t,o){I(!0),e.$step3Email.rules("remove","required"),e.$step3Phone.rules("remove","required"),e.$step3Email.rules("add",{required:o}),e.$step3Phone.rules("add",{required:t})}function G(t){if(isNaN(t)){L();return}switch(t){case u.EMAIL:Y();break;case u.ANY:J();break;default:L()}e.$step3PreviewText.hide().filter(`[data-contact-value=${t}]`).show()}function H(t){for(let o in u)if(u[o]==t)return o}function Y(){w(!0),h(!1,!0)}function L(){w(!1),h(!0,!1)}function J(){w(!1),h(!0,!0)}function w(t){typeof t=="undefined"||t===!0?e.$step3EmailWrapper.show():e.$step3EmailWrapper.hide()}function K(t){e.$step3Contact.each((o,n)=>{const r=$(n),a=parseInt(r.attr(e.settings.step3.contact.dataAttr));r.prop("checked",!isNaN(a)&&a===t)}),G(t)}function R(){return e.$step3Phone.inputmask("isComplete")}function Q(t){var d,p;const n=(e.storeId?[e.storeId]:e.$getStep2CheckboxFunc().filter(":checked").map((c,l)=>l.value).toArray()).map(c=>parseInt(c)).filter(c=>
561!isNaN(c)),r=Common.serializeFormToObject(e.$step3Form);r.storeIds=[...new Set(Array.from(n))],e.$step3Contact.length==0&&(r.contactOption=e.$step3DefaultContactOption),t&&(r["g-recaptcha-response"]=t);let a=e.$step3Phone.inputmask("unmaskedvalue"),s="";return e.$step3PhoneCode.length>0?s=e.$step3PhoneCode.val():s=(p=(d=e.settings.phoneFormat)==null?void 0:d.phoneCode)!=null?p:"",e.$step3Phone.length>0&&(r.phone=`${Common.CustomerDemand.constants.phonePrefix}${s}${a}`),new Promise((c,l)=>{$.ajax({url:e.settings.step3.urls.post,type:"POST",data:r}).done(m=>{r.phone&&ee(),r.email&&Z(),U(),c()}).error((m,W,re)=>{l(re)})})}function U(){i.trigger(window.Syvo.Google_Analytics_4.eventNames.onGownLocatorMessageSent,e.settings.productTitle),i.trigger(window.Syvo.Google_Tag_Manager.eventNames.onGownLocatorMessageSent,e.settings.productTitle)}function Z(){const t={productName:e.settings.productTitle};i.trigger(window.Syvo.Google_Analytics_4.eventNames.onGownLocatorEmailEntered,t),i.trigger(window.Syvo.Google_Tag_Manager.eventNames.onGownLocatorEmailEntered,t)}function ee(){const t={productName:e.settings.productTitle};i.trigger(window.Syvo.Google_Analytics_4.eventNames.onGownLocatorPhoneNumberEntered,t),i.trigger(window.Syvo.Google_Tag_Manager.eventNames.onGownLocatorPhoneNumberEntered,t)}function te(){i.trigger(window.Syvo.Google_Analytics_4.eventNames.onGownLocatorRetailersSubmit,e.settings.productTitle),i.trigger(window.Syvo.Google_Tag_Manager.eventNames.onGownLocatorRetailersSubmit,e.settings.productTitle)}function oe(){i.trigger(window.Syvo.Google_Analytics_4.eventNames.onGownLocatorOpen,e.settings.productTitle),i.trigger(window.Syvo.Google_Tag_Manager.eventNames.onGownLocatorOpen,e.settings.productTitle)}function ne(t){const o=H(t),n={productName:e.settings.productTitle,contactMethod:o};i.trigger(window.Syvo.Google_Analytics_4.eventNames.onGownLocatorContactMethodChosen,n),i.trigger(window.Syvo.Google_Tag_Manager.eventNames.onGownLocatorContactMethodChosen,n)}function B(t){let o;try{o=$.datepicker.parseDate(e.$step3DatePickerFormat,t)}catch(n){o=null}return o}function S(){}}})(); 562 563(()=>{const t=window.Syvo.Product_Details_TryOn=new SyvoModule("Product_Details_TryOn",c);function c(l){const w={label:{selector:"[data-property=tryon-details-label]"},widget:{isAdded:()=>window.Syvo.TryOn_Widget.isLoaded()&&window.Syvo.TryOn_Widget.getAddedState(),IsMaxReached:()=>window.Syvo.TryOn_Widget.isLoaded()&&window.Syvo.TryOn_Widget.getMaxReachedState()}},o=$(window);t.init=i,t.destroy=s,t.reload=y;const e={};i();function i(n){if(e.settings=$.extend(!0,{},w,n||l),!e.settings.label||!e.settings.widget)return;d(),g(),O();function d(){e.$label=$(e.settings.label.selector)}function g(){o.on(`${window.Syvo.TryOn_Widget.eventNames.onAfterTryOnListUpdated} ${window.Syvo.TryOn_Widget.eventNames.onAfterLoad}`,r)}function O(){a()}}function s(){n(),d();function n(){o.off(`${window.Syvo.TryOn_Widget.eventNames.onAfterTryOnListUpdated} ${window.Syvo.TryOn_Widget.eventNames.onAfterLoad}`,r)}function d(){e.$label=$()}}function y(n){s(),i(n)}function r(){a()}function a(){u()||f()?e.$label.hide():e.$label.show()}function u(){return e.settings.widget.IsMaxReached()}function f(){return e.settings.widget.isAdded()}}})(); 564 565(()=>{const Ot=window.Syvo.Product_Details=new SyvoModule("Product_Details",Lt);function Lt(zt){const _=$(document),Dt={urls:{wishlist:"wishlist"},purchasable:!0,updateColorTextEnabled:!1,chooseFirstActiveColor:!0,chooseFirstActiveSize:!1,chooseIfNotPurchasableProduct:!1,chooseFirstAvailableInStockStore:!1,chooseFirstAvailableInWarehouse:!1,chooseFirstIfNoOneIsAvailable:!1,showMinPriceForIncompleteStock:!1,priceRangeEnabled:!1,magicZoom:{},cartTooltip:{availabilityHeaderText:"Ship date:",hideAvailabilityTooltip:!1,chooseHeaderText:"Please select your",componentsHeaderText:"Please select colors of "},quantityTooltip:{availableItemsCountHeaderText:" item(s) available"},availabilities:{available:"Available",notAvailable:"Not Available",inStore:"in store",online:"online",separator:" and ",onlineOnly:"online only",fullOnline:"",date:"Available date: {0}",showDateTooltip:!0},localizedMessages:{separator:" and ",color:"color",size:"size",more:"More",less:"Less"},label:{containerSelector:".overviews-controls"},more:{hideFullDescSpeed:100,tabProcessor:()=>{}},availabilityMode:void 0,loginAttemptWhenClickAddToWishlistButton:!1,addToWishlistActiveClass:"active"},ke="eventDate",g={CLICKABLE:0,SELECT:1},x={AVAILABILITY:1,CHOOSE:2,COMPONENTS:3,SERVER_ERROR:4},a=$.extend(!0,{},Dt,zt),m=Ot;
565m.firstActiveStock=null,m.updateColorTextOnClick=ne;const G=window.Syvo.Forms_v2,Ft=window.Syvo.Product_Views,Pe=a.ecommerceEnable,w=a.activeControlClass,ko=a.disableColorClass,J=a.unavailableColorClass,Po=a.disableSizeClass,O=a.unavailableSizeClass,E=a.disableCartClass,Ke=a.addToWishlistActiveClass,le=a.magicZoom,h=a.productStockModel,Ao=a.productId,Ze=a.collectionId,je=a.purchasable,Bt=a.updateColorTextEnabled,_t=a.updateSizeTextEnabled,se=a.updateAvailabilityEnabled,v=a.availabilities,M=a.localizedMessages,Et=a.quantityTooltip.availableItemsCountHeaderText,Mt=a.cartTooltip.availabilityHeaderText,Wt=a.cartTooltip.chooseHeaderText,Nt=a.cartTooltip.componentsHeaderText,Ye=a.more,qt=a.price,Tt=a.prices,Ae=a.style;let W,K,F;const re="[data-property=product-details]",ce="[data-property=price]",d=$(re),N=d.find("[data-trigger='color-filter']"),Z=d.find("[data-property='color']"),Q=d.find("[data-trigger='color-select']"),q=Q.find("option:not(:empty)"),S=$().add(Z).add(q),T=d.find("[data-property='size']"),X=d.find("[data-trigger='size-select']"),R=X.find("option:not(:empty)"),D=$().add(T).add(R),de=d.find(ce),Ie=d.find("[data-property='availability']"),P=d.find("[data-property='add']"),xe=d.find("[data-property='cart-call']"),$e=d.find("[data-property='cart-sms']"),Ue=d.find("[data-property='email-store']"),Rt=d.find("[data-property='call-to-action-link']"),ue=d.find("[data-property='quantity-wrapper'], [data-property='quantity']"),ee=d.find("[data-property='quantity']"),Ht=d.find("[data-property=component]"),L=d.find("[data-property='add-wishlist']"),Vt=d.find("[data-property='find-in-store']"),Gt=["multi","floral","print"],Kt=d.find("[data-property='selected-color']"),te=d.find("[data-property='selected-color-icon']"),Oe=d.find("[data-property='selected-color-placeholder']"),Le=d.find("[data-property='selected-color-hex']"),ze=d.find("[data-property='selected-size-placeholder']"),De=d.find("[data-property='selected-size']"),C=d.find("[data-property='cart-tooltip']"),oe=d.find("[data-change='cart-tooltip-header']"),ie=d.find("[data-change='cart-tooltip-text']"),Zt=d.find("[data-trigger='cart-tooltip-close']"),Fe=d.find("[data-property='quantity-tooltip']"),Je=d.find("[data-change='quantity-tooltip-header']"),jt=d.find("[data-trigger='quantity-tooltip-close']"),Be=d.find("[data-property='price-old']"),Yt=$("[data-block='pdp-event-text']"),Qe=$("[data-action='pdp-event-get-delivery-date'] "),Xe=$("[data-block='pdp-event-datepicker']"),fe=$("[data-property='pdp-event-date']"),Ut=$("[data-block='pdp-event-date-text']"),_e=$(a.label.containerSelector),Ee=$("[data-block='pdp-event-message-great']"),et=$("[data-block='pdp-event-message-not-great']"),Me=$("[data-block='pdp-event-message-not-great-expedited']"),Jt=d.find("[data-property='description']"),Qt=d.find("[data-property='details']"),Xt="[data-property='more']",eo=a.more?a.more.lettersAllowed?a.more.lettersAllowed:200:"",to=a.more&&a.more.overlayColor?a.more.overlayColor:"transparent",oo=pt(Be.eq(0).text()),We=[];io();function io(e){no(),ao(),lo(),j(!0),so(),So()}function no(){typeof $.prototype.swipe=="function"&&$("#promoCarousel").swipe({swipe:function(e,t,o,i,n,s){t==="left"&&$(this).carousel("next"),t==="right"&&$(this).carousel("prev")},allowPageScroll:"vertical"}),ue.removeClass("is-hidden")}function ao(){e(Jt),e(Qt),t(),L.on("click",i=>{var r;const n=$(i.currentTarget);let s;if((h==null?void 0:h.length)>0&&ge()&&(s=B(),!s)){b(!1),C.addClass("from-wishlist"),C.width(n.width());const l=n.offset().left-P.offset().left;return l>0&&C.css("left",l+"px"),b(!0,x.CHOOSE),!1}if(We.indexOf((r=s==null?void 0:s.id)!=null?r:null)!==-1){window.location.href=a.urls.wishlist;return}if(!(a.loginAttemptWhenClickAddToWishlistButton&&window.Syvo.Login_Attempt.isLoaded()&&!window.Syvo.Login_Attempt.tryShowModal($(this),i)))return uo(ut(),s).then(function(l){var c;if(l&&l.value){let u=JSON.parse(l.value);o(null,u,window.Syvo.Google_Analytics_4.eventNames.onProductAddedToWishlist,window.Syvo.Google_Tag_Manager.eventNames.onProductAddedToWishlist,window.Syvo.Facebook_Pixel.eventNames.onProductAddedToWishlist,window.Syvo.Hubspot.eventNames.onProductAddedToWishlist,window.Syvo.TikTok_Pixel.eventNames.onProductAddedToWishlist,window.Syvo.Snapchat_Pixel.eventNames.onProductAddedToWishlist,window.Syvo.OpenAi_Pixel.eventNames.onProductAddedToWishlist,()=>{L.removeClass(E)}),We.push((c=s==null?void 0:s.id)!=null?c:null),pe()}},function(l){var c,u,p;if((u=(c=l==null?void 0:l.responseJSON)==null?void 0:c.message)!=null&&u.length){L.removeClass(E),pe(),b(!1),C.addClass("from-wishlist"),C.width(n.width());const f=n.offset().left-((p=P==null?void 0:P.offset())==null?void 0:p.left);f>0&&C.css("left",f+"px"),b(!0,x.SERVER_ERROR,l.responseJSON.message)}}),!1}),xe.click(i=>{o(i,null,window.Syvo.Google_Analytics_4.eventNames.onProductDetailsCallButtonClicked,window.Syvo.Google_Tag_Manager.eventNames.onProductDetailsCallButtonClicked,window.Syvo.Facebook_Pixel.eventNames.onProductDetailsCallButtonClicked)}),$e.click(i=>{o(i,null,window.Syvo.Google_Analytics_4.eventNames.onProductDetailsSmsButtonClicked,window.Syvo.Google_Tag_Manager.eventNames.onProductDetailsSmsButtonClicked,window.Syvo.Facebook_Pixel.eventNames.onProductDetailsSmsButtonClicked)}),Rt.click(i=>{const n=$(i.currentTarget),s=n.text(),r=n.attr("data-cta-code")||`${s} PDP`,l=$.convertToBool(n.attr("data-cta-attach-style")),c={$target:n,trackingCode:r};l&&Common.localStorageManager.setProductStyleToLocalStorage(Ae),o(i,c,window.Syvo.Google_Analytics_4.eventNames.onProductDetailsLinkButtonClicked,window.Syvo.Google_Tag_Manager.eventNames.onProductDetailsLinkButtonClicked,window.Syvo.Facebook_Pixel.eventNames.onProductDetailsLinkButtonClicked)}),Zt.on("click",()=>(b(!1),!1)),jt.on("click",()=>(H(!1),!1)),Vt.on("click",i=>{Common.localStorageManager.setProductStyleToLocalStorage(Ae),o(i,Ae,window.Syvo.Google_Analytics_4.eventNames.onFindInStoreClicked,window.Syvo.Google_Tag_Manager.eventNames.onFindInStoreClicked)});function e(i){let n=Common.createExpandableBlock({expandableBlock:{selector:i,expandedClass:"full-description",lettersAllowed:eo},expandToggle:{selector:i.parent().find(Xt),expandedClass:"expanded",collapseText:M.less,expandText:M.more,collapseSpeed:Ye.hideFullDescSpeed,expandSpeed:250},overlay:{class:"expandable-block-overlay",color:to}});if(!n)return;$("[data-toggle=collapse]").each((r,l)=>{s($(l),"shown.bs.collapse hide.bs.collapse")}),$("[data-toggle=tab]").each((r,l)=>{s($(l),"shown.bs.tab hide.bs.tab"),Ye.tabProcessor($(l))});function s(r,l){const c=r.attr("data-target")||r.attr("href");!c||$(c).find(n.$expandableBlock).length===0||r.on(l,()=>{n.update()})}}function t(){Qe.click(i=>{i.preventDefault(),Yt.hide(),Xe.removeClass("hide"),fe.datepicker({beforeShow:(n,s)=>{$("#ui-datepicker-div").addClass("appointment-datepicker"),$(window).width()<=993&&(s.settings.numberOfMonths=1)},defaultDate:"+1w",changeMonth:!0,numberOfMonths:1,minDate:1,maxDate:"+1y",onSelect:n=>{$.cookie(ke,n,{expires:7,path:"/"}),it(n),dt()}})}),Xe.find("i").click(i=>{i.preventDefault(),fe.datepicker("show")})}function o(i,n,s,r,l,c,u,p,f,k){const z=$(i==null?void 0:i.currentTarget),I=z.attr("href"),ae=z.attr("target");ae!=="_blank"&&(i==null||i.preventDefault());const St=!!s&&window.Syvo.Google_Analytics_4.isLoaded(),bt=!!r&&window.Syvo.Google_Tag_Manager.isLoaded(),kt=!!l&&window.Syvo.Facebook_Pixel.isLoaded(),Pt=!!c&&window.Syvo.Hubspot.isLoaded(),At=!!u&&window.Syvo.TikTok_Pixel.isLoaded(),It=!!p&&window.Syvo.Snapchat_Pixel.isLoaded(),xt=!!f&&window.Syvo.OpenAi_Pixel.isLoaded();if(St||bt||kt||Pt||At||It||xt){if(St){const y=n!=null&&n.hasOwnProperty("ga")?n.ga:n;_.trigger(s,y)}if(bt){const y=n!=null&&n.hasOwnProperty("general")?n.general:n;_.trigger(r,y)}if(kt){const y=n!=null&&n.hasOwnProperty("facebook")?n.facebook:n;_.trigger(l,y)}if(Pt){const y=n!=null&&n.hasOwnProperty("general")?n.general:n;_.trigger(c,y)}if(At){const y=n!=null&&n.hasOwnProperty("general")?n.general:n;_.trigger(u,y)}if(It){const y=n!=null&&n.hasOwnProperty("snapchat")?n.snapchat.parameters:n;_.trigger(p,y)}if(xt){const y=n!=null&&n.hasOwnProperty("general")?n.general:n;_.trigger(f,y)}setTimeout(()=>{$t(I,ae)},1e3)}else $t(I,ae);typeof k=="function"&&k();function $t(y,bo){y&&bo!=="_blank"&&location.assign(y)}}}function lo(){$(window).trigger("products:changePrice",[null,`${re} ${ce}`]);const e=h.sort((t,o)=>t.id>o.id&&t.colorId!==o.colorId?1:t.id<o.id&&t.colorId!==o.colorId?-1:t.sizePriorityIndex>o.sizePriorityIndex?1:t.sizePriorityIndex<o.sizePriorityIndex?-1:0);if(!a.priceRangeEnabled)for(let t=0;t<e.length;t++){const o=e[t];if(o.unitsAvailableInStore!==0||o.unitsAvailableInWarehouse!==0){m.firstActiveStock=o;break}}m.items=e}function tt(){const e=h.filter(o=>o.unitsAvailableInStore!==0||o.unitsAvailableInWarehouse!==0);let t=null;if(e.length===1)t=e[0];else if(e.length){const o=e.filter(i=>i.unitsAvailableInStore!==0);if(a.chooseFirstAvailableInStockStore&&(t=o[0]),t==null&&a.chooseFirstAvailableInWarehouse){const i=e.filter(n=>n.unitsAvailableInWarehouse!==0);i.length>0&&(t=i[0])}}else a.chooseFirstIfNoOneIsAvailable&&(h!=null&&h.length)&&(t=h[0]);
565if(t!=null){let o=$(`[data-property='size'][data-value-id=${t.sizeId}]`),i=$(`[data-property='color'][data-value-id=${t.colorId}]`);return o.length!==0&&U(o,g.CLICKABLE),i.length!==0&&V(i,g.CLICKABLE),!0}return!1}function so(){ft()||(D.not(be(null)).addClass(O),R.not(be(null)).attr("disabled","")),!ht()&&!a.enableAllColors&&(S.not(Se(null)).addClass(J),q.not(Se(null)).attr("disabled",""))}const ro=a.availabilityMode&&(a.availabilityMode.textStatus||a.availabilityMode.swatchesStatus)||(a.priceRangeEnabled||m.firstActiveStock!==null)&&Pe&&je,ot=h.some(e=>(e.unitsAvailableInStore!==0||e.unitsAvailableInWarehouse!==0)&&e.prices.find(t=>t.price>0));ot?(xe.hide(),$e.hide(),Ue.hide()):(xe.removeClass("hide"),$e.removeClass("hide"),Ue.removeClass("hide")),ro?(a.availabilityMode&&(a.availabilityMode.textStatus||a.availabilityMode.swatchesStatus)&&!(Pe&&je)||!ot?(P.hide(),ue.hide()):(ue.removeClass("hide"),P.removeClass("hide"),P.on("click",e=>{const t=$(e.currentTarget);if(h&&h.length>0){H(!1);const o=B();if(o){if(!wt(o))return!1}else return b(!1),C.addClass("from-cart"),C.width(t.width()),b(!0,x.CHOOSE),!1;co(ge())}return!1})),m.items&&m.items.length>0&&L.removeClass("hide"),Z.on("click",e=>{V($(e.currentTarget),g.CLICKABLE)}),T.on("click",e=>U($(e.currentTarget),g.CLICKABLE)),Q.on("change",e=>{const o=$(e.currentTarget).val(),i=q.filter("[data-value-id='"+o+"']");V(i,g.SELECT)}),X.on("change",e=>{const o=$(e.currentTarget).val(),i=R.filter("[data-value='"+o+"']");U(i,g.SELECT)}),ee.on("keyup",()=>{const e=B();wt(e)&&H(!1)}),Ht.on("change",()=>{b(!1)}),tt()||(a.chooseFirstActiveSize?yt():a.chooseFirstActiveColor&>())):(me(),Ce(),ye(),we(),Pe&&(D.addClass(O),R.attr("disabled",""),!a.hideSizesIfUnavailable&&!a.enableAllColors&&(S.addClass(J),q.attr("disabled",""))),T.off("click"),Bt&&go(),_t&&mo(),P.hide(),ue.hide(),a.chooseIfNotPurchasableProduct&&(tt()||
565(a.chooseFirstActiveSize?yt():a.chooseFirstActiveColor&>()))),a.generalProductAvailabilityText&&!m.firstActiveStock&&A(a.generalProductAvailabilityText),m.colorFilter=new wo;function co(e){if(!e)return;const t=st(),o=B();if(o!=null){b(!1);const i={stockId:o.id,quantity:t,collectionId:Ze};Common.createAndSubmitForm(a.urls.addProductStockToCart,i)}}const he=$.cookie(ke);he&&(new Date(he)>new Date?(Qe.click(),fe.datepicker("setDate",he),it(he)):$.removeCookie(ke));function it(e){Ut.text(e)}function uo(e,t){if(!e)return;L.addClass(E);let o=$("[data-property='quantity']:eq(0)").val(),i;return t==null?(o=null,i=null):(o=o&&o>0?o:1,i=t.id),new Promise(function(n,s){$.ajax({type:"POST",url:a.urls.addToWishList,data:{productId:a.productId,stockId:i,quantity:o,collectionId:Ze},success:function(r){n(r)},error:function(r){s(r)}})})}function pe(){var e;if(L.length>0){let t=null;(h==null?void 0:h.length)>0&&ge()&&(t=B()),We.indexOf((e=t==null?void 0:t.id)!=null?e:null)!==-1?L.addClass(Ke):L.removeClass(Ke)}}function nt(e){let t;if(e){const o=e.showOnline,i=Ne(e);Te(i),W=e.unitsAvailableInStore,K=e.unitsAvailableInWarehouse,F=e.availableDate,Ie.empty();const n=[];if(a.customAvailabilityMessagesEnabled&&e.availabilityMessage)A(e.availabilityMessage,e.availabilityColour);else{if(W===0&&K===0){A(v.notAvailable),(ge()||ut())&&j(!1);return}else{const s=e.showAvailableOnlineOnlyText;W>0&&!s&&n.push(v.inStore),(K>0||W>0&&s)&&(s?n.push(v.onlineOnly):n.push(v.online)),W===0&&K>0&&F?(v.showDateTooltip&&b(!0,x.AVAILABILITY),t=v.dateFormat?new Date(F).toLocaleDateString(v.dateFormat.locales,v.dateFormat.options):new Date(F).toLocaleDateString(),A($.validator.format(v.date,t))):A(v.available+" "+n.join(M.separator))}o&&v.fullOnline?A(v.fullOnline):W>0&&K==0&&a.multiStoring&&!a.customAvailabilityMessagesEnabled&&e.availabilityMessage?A(e.availabilityMessage,e.availabilityColour):W===0&&K>0&&F?(v.showDateTooltip&&b(!0,x.AVAILABILITY),t=v.dateFormat?new Date(F).toLocaleDateString(v.dateFormat.locales,v.dateFormat.options):new Date(F).toLocaleDateString(),A($.validator.format(v.date,t))):A(v.available+" "+n.join(M.separator)),j(!0)}}else{const o=fo();a.priceRangeEnabled?vo(o):Te(o.minPrice),A(null),j(!1)}a.availabilityMode&&!a.availabilityMode.textStatus&&A(null),dt()}function fo(){const e=Tt||qt;if(!a.showMinPriceForIncompleteStock&&!a.priceRangeEnabled||!h||h.length===0)return e;let t=o();if(t||(t=i()),!t)return e;return t;function o(){const s=Ge(He());if(!s)return;const r=l();return n(r);function l(){const c=[];let u=0;const p=h.length;for(;u<p;u++){const f=h[u];at(f)==s&&c.push(f)}return c}}function i(){const s=Ve(Re());if(!s)return;const r=l();return n(r);function l(){const c=[];let u=0;const p=h.length;for(;u<p;u++){const f=h[u];lt(f)==s&&c.push(f)}return c}}function n(s){let r=s.filter(f=>f.prices.length>0);if(r.length===0)return null;let l=Ne(r[0]),c=l,u=ve(l),p=u;for(let f=0;f<r.length;f++){const k=r[f],z=Ne(k),I=ve(z);I!==0&&I<u&&(u=I,l=z),I!==0&&I>p&&(p=I,c=z)}return{maxPrice:c,minPrice:l,boundariesEqual:c[0].price===l[0].price}}}function at(e){return e.sizeName}function lt(e){return e.colorId}function Ne(e){const t=[];return e.prices.forEach(o=>{t.push(o)}),t}function ve(e){if(Array.isArray(e)){if(e.length>0){let t=0;const o=e.length;for(;t<o;t++)if(t===window.common_settings.checkoutCurrencyIndex)return e[t].minPrice||e[t].price}return 0}return e}function st(){const e=ee.eq(0).val();return(isNaN(e)||e<=0)&&ee.eq(0).val(1),e&&e>0?e:1}function ho(e){const t=[];let o=0;const i=e.length;for(;o<i;o++){const n=e[o],s=ct(n),r=qe(n,s);t.push(r)}return t}function rt(e){let t=0;const o=e.length;for(;t<o;t++)de.filter(":eq("+t+")").text(e[t])}function qe(e,t){const o=e.minPrice||e.price;return Common.formatPriceByCurrency(o,t)}function ct(e){for(let t=0,o=window.common_settings.currencies.length;t<o;t++){const i=window.common_settings.currencies[t];if(e.currency===i.currency)return i}}function po(e){if(Array.isArray(e)&&e.length>0){const t=ho(e);rt(t)}else de.text(e)}function Te(e){let t=e;Be.show(),$.isArray(e)&&e.length>0&&(t=pt(e[0].minPrice||e[0].price)),po(e),$(window).trigger("products:changePrice",[ve(e),`${re} ${ce}`]),t-oo>=0?(Be.hide(),de.css("color","inherit")):de.css("color","")}function vo(e){var t,o,i;if(e){if(e.boundariesEqual)Te(e.minPrice);else if(((t=e.minPrice)==null?void 0:t.length)>0&&((o=e.minPrice)==null?void 0:o.length)===((i=e.maxPrice)==null?void 0:i.length)){const n=e.minPrice.length;let s=[];for(let r=0;r<n;r++){const l=e.minPrice[r],c=ct(l),u=qe(e.minPrice[r],c),p=qe(e.maxPrice[r],c),f=`${u} - ${p}`;s.push(f)}rt(s),$(window).trigger("products:changePrice",[ve(e.minPrice),`${re} ${ce}`])}}}function dt(){Ee.add(et).add(Me).addClass("hide");const i=B();if(i){const n=i.availableDate,s=fe.datepicker("getDate");if(s instanceof Date){const r=s.getTime(),l=new Date(n).getTime();let c=0;isNaN(l)||(c=Math.round((r-l)/864e5)),n?c>14?Ee.removeClass("hide"):c>0?Me.removeClass("hide"):et.removeClass("hide"):(r-new Date().getTime())/864e5<14?Me.removeClass("hide"):Ee.removeClass("hide")}}}function b(e,t,o=null){if(oe.empty(),ie.empty(),e===!0)if(t=t||x.AVAILABILITY,t===x.AVAILABILITY){if(!a.hideAvailabilityTooltip){oe.text(Mt);const i=F.replace("Z","");ie.text(new Date(i).toLocaleDateString("en-US",{day:"numeric",month:"long",year:"numeric"})),C.show("fast")}}else if(t===x.CHOOSE){oe.text(Wt);let i="",n=0;Z.hasClass(w)||(n++,i+=M.color),T.hasClass(w)||(n>0&&(i+=M.separator),i+=M.size),i+=".",ie.text(i),C.show("fast")}else if(t===x.COMPONENTS){oe.text(Nt);const n=getComponents().filter(s=>!s.colorId).map(s=>s.type).join(", ")+".";ie.text(n),C.show("fast")}else t===x.SERVER_ERROR&&o.length&&(oe.text(""),ie.text(o),C.show("fast"));else C.hide("fast"),C.removeClass("from-cart"),C.removeClass("from-wishlist"),C.css("left",""),C.css("bottom","")}function H(e,t){e===!0?(Je.text(t+Et),Fe.width(ee.width()),Fe.show("fast")):(Je.empty(),Fe.hide("fast"))}function j(e){e===!0&&(P.removeClass(E),L.removeClass(E))}function ge(){return P.length>0&&P.css("display")!=="none"&&!P.hasClass(E)}function ut(){return!L.hasClass(E)}function A(e,t){e==null?Ie.empty().removeClass("available").css("color",null):Ie.html(e).addClass("available").css("color",t||"")}function ft(){return S.length>0}function ht(){return D.length>0}function me(){S.removeClass(O),q.removeAttr("disabled")}function Ce(){S.removeClass(w),ne("")}function ye(){D.removeClass(O),R.removeAttr("disabled")}function we(){D.removeClass(w),De.empty(),ze.show()}function Re(){return S.filter("."+w)}function He(){return D.filter("."+w)}function Se(e){let t=$();return $.each(h,(o,i)=>{i.sizeName==e&&(i.unitsAvailableInStore>0||i.unitsAvailableInWarehouse>0)&&S.filter("[data-value-id='"+i.colorId+"']").each((n,s)=>{t=t.add(s)})}),t}function be(e){let t=$();return $.each(h,(o,i)=>{i.colorId&&i.colorId==e&&(i.unitsAvailableInStore>0||i.unitsAvailableInWarehouse>0)&&D.filter("[data-value='"+i.sizeName+"']").each((n,s)=>{t=t.add(s)})}),t}function B(e=null,t=null){const o=e||Ve(Re()),i=t||Ge(He());for(let n=0,s=h.length;n<s;n++){const r=h[n];if(lt(r)==o&&at(r)==i)return r}}function pt(e){if(e&&isNaN(e)){const t=new RegExp(/(\d+(?:\.\d+)*)/);e=e.replace(",","");const o=e.match(t);if(o)return parseFloat(o[1])}return e}const Y=$("[data-property='carousel']");Y&&Y[0]&&(Y.on("slid.bs.carousel",()=>{MagicZoom&&MagicZoom.refresh()}),Y.on("slide.bs.carousel",()=>{$.each($(".product-video-big iframe"),(e,t)=>{t.contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*")})}),window.mzOptions||(window.mzOptions={onZoomReady:()=>{$(window).trigger("mz:ready")},zoomOn:le.zoomOn||"click",zoomPosition:le.zoomPosition||"inner",lazyZoom:le.zoomPosition||!0,variableZoom:le.variableZoom||!0,onZoomIn:()=>{Y.carousel("pause")},onZoomOut:()=>{Y.carousel("cycle")}})),window.mzOptions&&_e.length>0&&(window.mzOptions.onZoomIn=()=>{_e.hide()},window.mzOptions.onZoomOut=()=>{_e.show()});function go(){Z.on("click",e=>{const t=$(e.currentTarget);if(se)V(t,g.CLICKABLE);else{t.addClass("dirty");const o=t.attr("data-value"),i=t.attr("data-title"),n=t.attr("data-hex"),s=t.find(".color");ne(i||o,s,n)}}),Q.on("change",e=>{const t=$(e.currentTarget);if(se){const o=t.val(),i=q.filter("[data-value-id='"+o+"']");V(i,g.SELECT)}else{t.addClass("dirty");const o=t.val(),i=t.attr("data-hex"),n=t.find(".color");ne(o,n,i)}})}function mo(){T.on("click",e=>{const t=$(e.currentTarget);if(se)U(t,g.CLICKABLE);else{t.addClass("dirty");const o=t.attr("data-value");mt(o)}}),X.on("change",e=>{const t=$(e.currentTarget);if(se){const o=t.val(),i=R.filter("[data-value='"+o+"']");U(i,g.SELECT)}else{t.addClass("dirty");const o=t.val();mt(o)}})}function V(e,t){if(e.hasClass(w)||e.hasClass(J)&&!ht())return!1;j(!1),b(!1),H(!1),Ce(),e.hasClass(J)&&(me(),ye(),we());const o=e.attr("data-value"),i=e.attr("data-title"),n=e.attr("data-hex"),s=e.find(".color"),r=Ve(e);S.filter("[data-value='"+o+"']").addClass(w),t===g.CLICKABLE&&vt(r),t===g.SELECT&&Co(o),ne(i||o,s,n);const l=He();ye(),D.not(be(r)).addClass(O),R.not(be(r)).attr("disabled",""),Ct(l.attr("data-value")),l.hasClass(O)&&we(),nt(B()),pe()}function ne(e,t,o=null){if(Oe.hide(),te.removeClass("has-icon"),te.html(""),Le.css("background-image",""),Kt.text(e),t&&t.length>0){if(te.length>0&&(te.addClass("has-icon"),te.html(t.clone())),Le.length>0&&o&&o.length>0){const i=o.split("/").filter(r=>Gt.indexOf(r)===-1);i.length===0&&i.push("#000000");const s=`linear-gradient(90deg, ${i.map((r,l)=>`${r} ${l/i.length*100}%, ${r} ${(l+1)/i.length*100}%`).join(", ")})`;Le.css("background-image",s)}}else e||Oe.show()}function Ve(e){return e.attr("data-value-id")||null}function Co(e){const t=Z.filter("[data-value='"+e+"']");t.addClass(w),t.find("input").click()}function vt(e){Q.val(e),G&&typeof G.contentChanged=="function"&&G.contentChanged(Q,e)}function gt(){if(m.firstActiveStock&&m.firstActiveStock.colorName!=null){const e=Z.filter("[data-value-id='"+m.firstActiveStock.colorId+"']");V(e,g.CLICKABLE)}}function U(e,t){if(e.hasClass(w)||e.hasClass(O)&&!ft())return!1;
565j(!1),b(!1),H(!1),we(),e.hasClass(O)&&(me(),Ce(),ye());const o=Ge(e);D.filter("[data-value='"+o+"']").addClass(w),t===g.CLICKABLE&&Ct(o),t===g.SELECT&&yo(o),De.text(o),ze.hide();const i=Re();me(),S.not(Se(o)).addClass(O),q.not(Se(o)).attr("disabled",""),vt(i.attr("data-value-id")),i.length>0&&i.hasClass(O)&&Ce(),nt(B()),pe()}function mt(e){Oe.hide(),De.text(e),e||ze.show()}function yo(e){const t=T.filter("[data-value='"+e+"']");t.addClass(w),t.find("input").click()}function Ge(e){return e.attr("data-value")||null}function Ct(e){X.val(e),G&&typeof G.contentChanged=="function"&&G.contentChanged(X,e)}function yt(){m.firstActiveStock&&m.firstActiveStock.sizeName!=null&&U(T.filter("[data-value='"+m.firstActiveStock.sizeName+"']"),g.CLICKABLE)}function wo(){const e=this;e.colorFilterChanged=t,e.colorFilterChoosed=o,e.showFilteredColors=i,e.colorsOrder=n(),e.allFilter=$(N[0]),N.click(function(l){const c=$(this);t(c)});function t(l){const c=l.attr("data-value-id");N.trigger("syvo_PDPcolorFilter:onBeforeChange",[c]),o(l),i(c),N.trigger("syvo_PDPcolorFilter:onAfterChange",[c])}function o(l){N.removeClass(w),l.addClass(w),s(S)}function i(l){if(!l){r(S);return}l=l.split(",").sort((f,k)=>$.inArray(f,e.colorsOrder)>$.inArray(k,e.colorsOrder)?-1:$.inArray(f,e.colorsOrder)<$.inArray(k,e.colorsOrder)?1:0);let c=0,u=0;const p=S.length;for(;u<p;u++){const f=$(S[u]);let k=f.attr("data-value-id");k||s(f),k=k.split(",");let z=0;const I=k.length;for(;z<I;z++){const ae=k[z];$.inArray(ae,l)>-1&&(r(f),c===0&&(N.trigger("syvo_PDPcolorFilter:onBeforeColorChoosed",[l]),f.hasClass(J)||V(f,g.CLICKABLE),Ft.viewControls.viewControlChanged(f),N.trigger("syvo_PDPcolorFilter:onAfterColorChoosed",[l])),c++)}}}function n(){const l=[],c=m.items.length;for(let u=0;u<c;u++){const p=m.items[u];$.inArray(p.colorId,l)===-1&&l.push(p.colorId)}return l}function s(l){l.addClass("hidden-important")}function r(l){l.removeClass("hidden-important")}}function So(){const e=$(".video-description-list [data-slick]");e.length>0&&(e.slick({prevArrow:"<div class='slick-arrow slick-prev products-arrow'><span class='arrow'></span></div>",nextArrow:"<div class='slick-arrow slick-next products-arrow'><span class='arrow'></span></div>",responsive:[{breakpoint:768,settings:{arrows:!1}
565}]}),e.on("setPosition",t));function t(o,i){Common.setRelatedArrowsPosition(i,".video-js")}}function wt(e){if(e){const t=st(),o=e.unitsAvailableInWarehouse+e.unitsAvailableInStore;return t>o?(ee.val(o),H(!0,o),!1):(H(!1),!0)}return!1}$("[data-trigger=open-sizechart]").on("click",()=>{$("[data-property=sizechart-modal]").modal()}),$("[data-property=sizechart-modal]").hide(),$("[data-trigger=open-product-availability-modal]").on("click",e=>$("[data-property=product-availability-modal]").modal()),$("[data-property=product-availability-modal]").hide()}})(); 566 567(function(){const k=window.Syvo.Product_List_Ajax=new SyvoModule("Product_List_Ajax",lt);k.eventNames.loadProducts=k.getModuleEventName("loadProducts"),k.eventNames.onBeforeProductsListLoaded=k.getModuleEventName("onBeforeProductsListLoaded"),k.eventNames.onAfterProductsListLoaded=k.getModuleEventName("onAfterProductsListLoaded");const B=$(document);function lt(st){const ct={},K=$.extend(!0,{},ct,st),dt=Common.getBaseHref().replace(/\/$/,""),w=$(window),ft=$("html, body"),ut=$("[data-property='fixed-header']"),N=$(".plp-ajax-listing:not(.plp-ajax-listing--before)"),b=$(".plp-ajax-filters, .plp-ajax-dropdowns"),M=$("[data-trigger='filter-reset']"),Rt=$(".filter-sortby-list"),T=$("[data-pagination-list]"),S=$("[data-pagination-action='prev']"),E=$("[data-pagination-action='next']"),f=$("[data-property='filter-price-from']"),p=$("[data-property='filter-price-to']"),Q=$("[data-plp-filter='price']"),G=$("[data-plp-filter='sortby']"),pt=$("[plp-filter-hidden]"),Ot=$(".filter-breadcrumbs .list"),h=$("[data-block='filter-breadcrumbs']"),V=h.find("[data-property='filter-breadcrumb-clear']"),H=$("input[data-plp-filter][type=checkbox]"),mt=$("input[data-filter-hidden]"),F=$("[data-plp-filter-toggle]"),P=F.filter("[name='instore']"),W=P.closest(".list-item"),j=H.filter("[data-plp-filter='stores']");let U=!1,L=null,J=null;const R="price",g="is-hidden",O="[data-trigger='filter-breadcrumb-item']",X=Common.getCheckoutCurrencyPrefix()||"",Y=Common.getCheckoutCurrencyPostfix()||"";let Z=0;const A="attrs";ot(K.initialAvailableInStoreCount),w.on(k.eventNames.loadProducts,gt),M.click(ht),H.change(vt),f.change(q),p.change(q),F.change(yt),G.change($t),h.on("click","[data-trigger='filter-breadcrumb-item']",kt),V.click(at),T.on("click","a[data-pagination-page]",wt),ut.on("syvo_fixedHeader:onCalculate",Ct),w.trigger(k.eventNames.onAfterProductsListLoaded),bt();function gt(){x()}function ht(){const t=$(this),e=t.attr("data-property");t.addClass(g),I(e)}function yt(){P.is($(this))&&P.is(":not(:checked)")&&j.filter(":checked").length>0?(j.prop("checked",!1),M.filter("[data-property='stores']").click()):x()}function $t(){x()}function vt(){const t=$(this),e=t.prop("checked"),n=t.attr("data-plp-filter"),a=t.val(),i=t.attr("aria-label");tt(n,e),j.is(t)&&e&&!P.is(":checked")&&P.prop("checked",!0),e?z(i,n,a):I(n,a)}function q(t){const e=parseFloat(f.val()),n=parseFloat(f.attr("data-min")),a=parseFloat(p.val()),i=parseFloat(p.attr("data-max")),o=Q.attr("data-signular-title"),r=M.filter("[data-property=price]");e&&e>n||a&&a<i?(r.removeClass(g),z(o+": "+X+e.formatMoney("",".",",").replace(".00","")+Y+"-"+X+a.formatMoney("",".",",").replace(".00","")+Y,R,R,t,!0)):(r.addClass(g),I(R,null,t))}function tt(t,e){const n=M.filter("[data-property="+t+"]");e?n.removeClass(g):$("[data-plp-filter='"+t+"']:checked").length>0||n.addClass(g)}function y(t){let e=n();!e||!e.isLoaded()?w.on(t+":onAfterLoad",function(){e=n(),a()}):a();function n(){if(window.Syvo.hasOwnProperty(t))return window.Syvo[t]}function a(){e&&typeof e.reload=="function"&&e.reload()}}function kt(){const t=$(this),e=t.attr("data-property"),n=t.attr("data-value");I(e,n,!0)}function z(t,e,n,a,i){i=i||!1,a=typeof a!="undefined"?a:!0;const o=h.find(O).filter("[data-property='"+e+"']"),r=$("<div/>",{class:"list-item","data-trigger":"filter-breadcrumb-item","data-property":e,"data-value":n,role:"listitem"}).append($(`<label class='filter-breadcrumb' role='button' tabindex='0' aria-label='Remove filter by ${t}'/>`).append($("<span></span>",{text:t})).append($("<i class='icon-syvo icon-close-x' aria-hidden='true'></i>")));if(a&&x(),i)o.remove();else if(o.length>0){o.filter(":last").after(r);return}V.before(r),h.removeClass("hide")}function I(t,e,n){n=typeof n!="undefined"?n:!0;let a=h.find(O).filter("[data-property='"+t+"']"),i=b.find("input[data-plp-filter='"+t+"']:checked");if(typeof e!="undefined"&&e!=null&&(a=a.filter("[data-value='"+e+"']"),i=i.filter("[value='"+e+"']")),t!==R){if(i.is("input")&&i.length>0)if(i.prop("checked"))i.prop("checked",!1);else return}else{const o=f.attr("data-min"),r=p.attr("data-max");if(f.val()!==o||p.val()!==r)f.val(f.attr("data-min")),p.val(p.attr("data-max")),et();else return}a.remove(),tt(t,!1),h.find(O).length===0?h.addClass("hide"):h.removeClass("hide"),n&&x()}function et(){const t=Q.data("ionRangeSlider");t&&t.updateRange()}function at(t){t=typeof t!="undefined"?t:!0;const e=h.find(O).map(function(n,a){return $(a).attr("data-property")}).toArray().filter(function(n,a,i){return i.indexOf(n)===a});$.each(e,function(n,a){I(a,null,!1)}),t&&x()}function x(t,e){let n;const a=e||{};let i={};if(e){b.find("input[data-plp-filter]").prop("checked",!1),b.find("[data-trigger='filter-reset']").addClass(g),F.prop("checked",!1),at(!1);for(let s in a)if(a.hasOwnProperty(s)){const d=Array.isArray(a[s])?a[s]:[a[s]];for(let m in d)if(d.hasOwnProperty(m)){const l=d[m],u=b.find("input[data-plp-filter"+(s===A?"^":"")+"='"+s+"'][value='"+l+"']");if(u.length!==0){u.prop("checked",!0);const v=u.attr("aria-label");z(v,s,l,!1),b.find("[data-trigger='filter-reset'][data-property='"+s+"']").removeClass(g)}else{const v=F.filter("[name='"+s+"']");v.length!==0&&v.prop("checked",!0)}}}const o=b.find("[data-trigger='filter-reset'][data-property='price']"),r="minprice";typeof a[r]!="undefined"&&parseFloat(f.val())!==parseFloat(a[r])?(f.val(a[r]),o.removeClass(g)):f.val(f.attr("data-min"));const c="maxprice";typeof a[c]!="undefined"&&parseFloat(p.val())!==parseFloat(a[c])?(p.val(a[c]),o.removeClass(g)):p.val(f.attr("data-max")),o.hasClass(g)||q(!e),et(),i=nt(a)}else{if(t&&!isNaN(t)&&t>0&&(a.page=t),St(a),Ft(a),b.length===0){const c=new URL(window.location.href);
567Array.from(c.searchParams).forEach(([d,m])=>{d!=="page"&&m&&m.split(",").forEach(u=>{D(a,d,u)})})}else It(a),_t(a),Bt(a),Nt(a);i=nt(a);const o=new URI(location.pathname);for(let c in i)i.hasOwnProperty(c)&&o.addQuery(c,i[c]);t||Pt(a,o.query());const r=decodeURI(location.pathname.toLowerCase().replace(new RegExp("^"+dt,"i"),"")).trim();a.requestpath=i.requestpath=r,n=o.toString().replace(/%2C/g,",")}history.pushState?(e||(history.pushState(a,document.title,n),w.trigger("history:pushstate"),w.trigger(window.Syvo.eventNames.onUrlChanged)),U?L=i:it(i)):(location.href=n,w.trigger(window.Syvo.eventNames.onUrlChanged))}function bt(){window.onpopstate=function(t){t.state?x(null,t.state):(location.href=document.location,w.trigger(window.Syvo.eventNames.onUrlChanged))}}function xt(t,e,n){const a="invisible",i="data-pagination-page",o=Math.ceil(n/e),r=4;S.addClass(a),E.addClass(a),t>1&&(S.removeClass(a),S.attr(i,t-1),S.attr("href",C(t-1))),t<o&&(E.removeClass(a),E.attr(i,t+1),S.attr("href",C(t+1)));let c=1,s=o;if(o>r){const l=Math.ceil(r/2)-1;let u=t-l,v=t+l;u<2?(v=r,u=1):v>o-2&&(v=o,u=o-r+1),c=u,s=v}const d=[],m="...";c>1&&(d.push(_(1,"1",C(1))),c>2&&d.push(_(c-1,m,C(c-1))));for(let l=c;l<=s;l++)if(l!==t)d.push(_(l,l,C(l)));else{const u=$("<li/>").append($("<span/>",{class:"h6 pagination-link pagination-link-current","data-pagination-page":l,"aria-label":"Current page"}).append($("<span/>",{text:l})));d.push(u)}s<o&&(s<o-1&&d.push(_(s+1,m,C(s+1))),d.push(_(o,o,C(o)))),T.find("li").filter(function(l,u){return $(u).find(".pagination-arrow").length===0}).remove(),T.find("li:eq(0)").after(d)}function _(t,e,n){return $("<li/>").append($("<a/>",{"data-pagination-page":t,class:"h6 pagination-link pagination-action",href:n}).append($("<span/>",{text:e})))}function C(t){const e=new URI(location.href);return e.removeQuery("page"),t!==1&&e.addQuery("page",t),e.toString().replace(/%2C/g,",")}function wt(t){t.preventDefault();const n=$(this).attr("data-pagination-page");x(n)}function Ct(t,e,n){Z=n}function Pt(t,e){clearTimeout(J),J=setTimeout(()=>{const n=Lt(t,e);B.trigger(window.Syvo.Google_Analytics_4.eventNames.onProductsFilterClicked,[n]),B.trigger(window.Syvo.Google_Tag_Manager.eventNames.onProductsFilterClicked,[n])},800)}function Lt(t,e){const n=[A,"brands"],a={filter_query:e};$.each(t,(o,r)=>{n.indexOf(o)>=0||(a["filter_"+o]=$.isArray(r)?r.join(", "):r===null?"true":r)});const i=H.filter(":checked");return $.each(i,(o,r)=>{const c=$(r),s=c.attr("data-plp-filter"),d=s.indexOf(A)===0,m=c.attr("data-analytics-value");if(!d&&s!=="brands"||!m)return;let l;if(d){const u=c.attr("data-signular-title")||A;l="filter_"+At(u)+"_attribute"}else l="filter_"+s;a[l]=a[l]?a[l]+", "+m:m}),a}function At(t){return t.trim().toLowerCase().replace(/[^a-z0-9]+/g,"_")}function D(t,e,n){$.isArray(t[e])?t[e].push(n):t[e]=[n]}function Tt(t){$.each(pt,function(e,n){const a=$(n),i=a.attr("name"),o=a.val();D(t,i,o)})}function St(t){$.each(mt,function(e,n){const a=$(n),i=a.attr("name");t[i]=a.val()})}function Ft(t){const e="searchterm",n=Common.getWindowLocationParameter(e);n!==void 0&&(t[e]=n)}function It(t){const e=b.find("input[data-plp-filter]:checked");$.each(e,function(n,a){const i=$(a);let o=i.attr("data-plp-filter");const r=i.val();o.indexOf(A)===0&&(o=A),D(t,o,r)})}function _t(t){f.val()&&parseFloat(f.val())!==parseFloat(f.attr("data-min"))&&(t.minprice=f.val()),p.val()&&parseFloat(p.val())!==parseFloat(p.attr("data-max"))&&(t.maxprice=p.val())}function Bt(t){$.each(F.filter(":checked"),function(e,n){const a=$(n).attr("name");a&&(t[a]=null)})}function Nt(t){const e=G.filter(":checked").val();e&&e.toLowerCase()!=="bestmatch"&&(t.sortby=e)}function nt(t){const e={};for(let n in t)t.hasOwnProperty(n)&&(e[n]=$.isArray(t[n])?t[n].join(","):t[n]);return e}function it(t){rt(!0),$.ajax({type:"get",url:K.urls.products,data:t}).done(function(e){B.trigger(window.Syvo.Product_List_Ajax.eventNames.onBeforeProductsListLoaded),Mt(t,e).then(function(){y("Product_List_Catwalk"),y("Product"),y("Color_List"),y("Lazy_Load"),window.productsRelatedImages&&window.productsRelatedImages.reload(),common_settings&&common_settings.isAuthenticated?y("Wishlist_Heart"):y("Login_Attempt"),y("Layout_Control"),y("Search"),B.trigger(window.Syvo.Product_List_Ajax.eventNames.onAfterProductsListLo
567aded)}),xt(e.page,e.pageSize,e.total),ot(e.availableInStoreCount),L&&L!==t?it(L):(L=null,rt(!1),y("Social_Networks"))}).fail(function(){L=null,U=!1})}function Mt(t,e){return new Promise(function(n,a){try{t.hasOwnProperty("page")&&ft.animate({scrollTop:N.offset().top-Z},"fast"),N.html(e.content),n()}catch(i){a()}})}function ot(t){!t&&!P.is(":checked")?W.hide():W.show()}function rt(t){U=t,t?N.LoadingOverlay("show",{image:"",fontawesome:"fa fa-circle-o-notch fa-spin fa-3x fa-fw",zIndex:90,maxSize:30}):N.LoadingOverlay("hide",!0)}}})(); 568 569(()=>{const i=window.Syvo.Product_List_Catwalk=new SyvoModule("Product_List_Catwalk",S);i.eventNames.onAfterProductListChanged=i.getModuleEventName("onAfterProductListChanged"),i.constants={modes:Object.freeze({DEFAULT:0,SINGLE_ROW:1})};class y{constructor(g,r){this.$productsToPlay=g,this.$productsToStop=r}}function S(v){const g={mode:i.constants.modes.DEFAULT,list:{selector:"[data-list=products]"},product:{selector:"[data-product-id].product"}},r=$(window);i.init=h,i.destroy=m,i.reload=T;const e={};h();function h(t){if(e.settings=$.extend(!0,{},g,t||v),!e.settings.list||!e.settings.product)return;o(),n(),d();function o(){e.$list=$(e.settings.list.selector),e.fixedHeight=0}function n(){r.on(`scroll resize gestureend syvo:pinchend orientationchange ${window.Syvo.Layout_Control.eventNames.onAfterReload}`,C),r.on("syvo_fixedHeader:onCalculate syvo_fixedHeader:onAfterDestroy",_)}function d(){P()}}function m(){t(),o();function t(){r.off(`scroll resize gestureend syvo:pinchend orientationchange ${window.Syvo.Layout_Control.eventNames.onAfterReload}`,C),r.off("syvo_fixedHeader:onCalculate syvo_fixedHeader:onAfterDestroy",_)}function o(){e.$list=$(),e.fixedHeight=0}}function T(t){m(),h(t)}function C(){P()}function _(t,o,n){e.fixedHeight=n}function P(){const t=e.$list.find(e.settings.product.selector),o=r.scrollTop()+e.fixedHeight,n=$.getCurrentViewport().height+o;let d;switch(e.settings.mode){case i.constants.modes.SINGLE_ROW:d=N(t,o,n);break;case i.constants.modes.DEFAULT:default:d=A(t,o,n);break}d&&d.then(u=>{x(u.$productsToPlay),H(u.$productsToStop),r.trigger(i.eventNames.onAfterProductListChanged,[u.$productsToPlay,u.$productsToStop])})}function x(t){r.trigger(window.Syvo.Product.eventNames.playCatwalk,{$_el:t})}function H(t){r.trigger(window.Syvo.Product.eventNames.stopCatwalk,{$_el:t})}function A(t,o,n){return new Promise((d,u)=>{const p=t.filter((w,l)=>{const c=$(l),a=c.height(),s=c.offset().top,f=s+a;return f<=n&&f>=o||s<=n&&s>=o});d(new y(p,t.not(p)))})}function N(t,o,n){return new Promise((d,u)=>{const p=t.filter((a,s)=>{const f=$(s),L=f.offset().top,E=L+f.height();return L>=o&&E<=n}),w=[];if(p.each((a,s)=>{const f=$(s);w.push({offset:f.offset().top,$el:f})}),w.length===0){u();return}const l=w.reduce((a,s)=>(a[s.offset]=(a[s.offset]||$()).add(s.$el),a),{});let c;for(const a in l)(typeof c=="undefined"||parseFloat(c)>a)&&(c=a);if(!c||!l.hasOwnProperty(c)){u();return}d(new y(l[c],t.not(l[c])))})}}})(); 570 571(function(){const c=window.Syvo.Product_List_TryOn=new SyvoModule("Product_List_TryOn",k);function k(A){const x={productList:{selector:".plp-ajax-listing",product:{selector:"[data-product-id]",attr:"data-product-id",tryOnLabelContainerSelector:"[data-property=tryon-label-container]",tryOnLabelSelector:"[data-content=tryon-label]",tryOnLabelTemplate:` 572 <div class="product-controls-label"> 573 <div class="product-label product-label-selected btn btn-success"> 574 <div class="product-label--title"> 575 <span >{0}</span> 576 </div> 577 </div> 578 </div>`,tryOnLabelTextFormat:"Selected for Try-On"},modal:{linkSelector:"[data-link=product-images]",btnSelector:"[data-trigger=tryon-product-modal]",btnPopoverText:"Try-On kit is complete. Please proceed to checkout or remove some products and try again."}},modal:{productId:null},sidebar:{selector:".try-on-plp-sidebar-wrapper",parent:{selector:".try-on-plp-sidebar"},product:{selector:"[data-product-id]",attr:"data-product-id"},isAdded:()=>window.Syvo.TryOn_Widget.isLoaded()&&window.Syvo.TryOn_Widget.getAddedState(),IsMaxReached:()=>window.Syvo.TryOn_Widget.isLoaded()&&window.Syvo.TryOn_Widget.getMaxReachedState()}},n=$(window);let p=0;const t={};c.init=a,c.destroy=g,c.reload=M,a();function a(e){if(t.settings=$.extend(!0,{},x,e||A),!t.settings.productList||!t.settings.productList.product||!t.settings.modal||!t.settings.sidebar||!t.settings.sidebar.product)return;o(),r(),d();function o(){t.$productListParent=$(t.settings.productList.selector),t.$sidebarParent=$(t.settings.sidebar.parent.selector)}function r(){t.$productListParent.on("click",`${t.settings.productList.modal.linkSelector}, ${t.settings.productList.modal.btnSelector}`,v),n.on(`${window.Syvo.TryOn_Widget.eventNames.onAfterTryOnListUpdated} ${window.Syvo.TryOn_Widget.eventNames.onAfterLoad} ${window.Syvo.Product_List_Ajax.eventNames.onAfterProductsListLo
578aded} ${window.Syvo.Product_List_Ajax.eventNames.onAfterLoad}`,m),n.on("syvo_fixedHeader:onCalculate",S),t.$sidebarParent.on("syvo_sticky_submit:inited syvo_sticky_submit:screenTopTouchedTop",_),t.$sidebarParent.on("syvo_sticky_submit:destroyed syvo_sticky_submit:screenTopUnTouchedTop",T)}function d(){y(t.settings.modal.productId),w(),b()}}function g(){e(),o(),r();function e(){n.off(window.Syvo.Product_TryOn_Modal.onAfterLoad,f),t.$productListParent.off("click",`${t.settings.productList.modal.linkSelector}, ${t.settings.productList.modal.btnSelector}`,v),n.off(`${window.Syvo.TryOn_Widget.eventNames.onAfterTryOnListUpdated} ${window.Syvo.TryOn_Widget.eventNames.onAfterLoad} ${window.Syvo.Product_List_Ajax.eventNames.onAfterProductsListLoaded} ${window.Syvo.Product_List_Ajax.eventNames.onAfterLoad}`,m),n.off("syvo_fixedHeader:onCalculate",S),t.$sidebarParent.off("syvo_sticky_submit:inited syvo_sticky_submit:screenTopTouchedTop",_),t.$sidebarParent.off("syvo_sticky_submit:destroyed syvo_sticky_submit:screenTopUnTouchedTop",T)}function o(){N()}function r(){t.$productListParent=$(),t.$sidebarParent=$()}}function M(e){g(),a(e)}function y(e){window.Syvo.Product_TryOn_Modal.isLoaded()?L(e):n.on(window.Syvo.Product_TryOn_Modal.onAfterLoad,null,{productId:e},f)}function N(){n.trigger(window.Syvo.Product_TryOn_Modal.eventNames.modalClose)}function f(e,o){L(o.productId)}function L(e){!l()&&e>0&&n.trigger(window.Syvo.Product_TryOn_Modal.eventNames.modalOpen,{productId:e})}function v(e){const o=$(e.currentTarget),r=l(),d=P(),i=o.is(t.settings.productList.modal.linkSelector);i&&!(r||d)&&e.preventDefault(),s();function s(){if(d||r){if(i)return;C(o,!0);return}const u=o.closest(t.settings.productList.product.selector).attr(t.settings.productList.product.attr);y(u)}}function m(){w(),b()}function b(){const e=l(),o=P();e||o?(n.trigger(window.Syvo.Google_Analytics_4.eventNames.allowRedirect,[t.$productListParent.find(t.settings.productList.modal.linkSelector)]),n.trigger(window.Syvo.Google_Tag_Manager.eventNames.allowRedirect,[t.$productListParent.find(t.settings.productList.modal.linkSelector)])):(n.trigger(window.Syvo.Google_Analytics_4.eventNames.blockRedirect,[t.$productListParent.find(t.settings.productList.modal.linkSelector)]),n.trigger(window.Syvo.Google_Tag_Manager.eventNames.blockRedirect,[t.$productListParent.find(t.settings.productList.modal.linkSelector)])),e?t.$productListParent.find(t.settings.productList.modal.btnSelector).hide():t.$productListParent.find(t.settings.productList.modal.btnSelector).show()}function w(){const e=t.$productListParent.find(t.settings.productList.product.tryOnLabelContainerSelector);e.html("");const o=t.$sidebarParent.find(t.settings.sidebar.product.selector);o.length!==0&&o.each((r,d)=>{const i=$(d).attr(t.settings.sidebar.product.attr);if(!i)return;const s=e.closest(t.settings.productList.product.selector).filter((R,I)=>i===$(I).attr(t.settings.productList.product.attr)).find(t.settings.productList.product.tryOnLabelContainerSelector);if(s.length===0)return;const u=Common.stringFormat(t.settings.productList.product.tryOnLabelTextFormat,r+1),h=$(t.settings.productList.product.tryOnLabelTemplate);h.find(t.settings.productList.product.tryOnLabelSelector).html(u),s.append(h)})}function _(e){O($(e.currentTarget)).css("top",p)}function T(e){O($(e.currentTarget)).css("top","")}function S(e,o,r){p=r}function O(e){return e.find(t.settings.sidebar.selector)}function P(){return t.settings.sidebar.IsMaxReached()}function l(){return t.settings.sidebar.isAdded()}function C(e,o=!0){if(o){e.data("bs.popover")||e.popover({title:"",placement:"top",html:!0,content:`<h6>${t.settings.productList.modal.btnPopoverText}</h6>`,trigger:"click"}),e.popover("show");return}e.popover("hide")}}})(); 579 580(()=>{const G=window.Syvo.Product_List=new SyvoModule("Product_List",P);function P(x){const R={},f=$.extend(!0,{},R,x);let o,g=$();const y="[data-property='inStore']:not([data-trigger='filter-breadcrumb-item'])",z="[data-property='stores']";if(f.nonStaticRangePrice){f.nonStaticRange={selector:"[data-property=prices][data-controller='slider']",slider:"ionRangeSlider"};const t={min:0,max:0,type:"double",prefix:Common.getCheckoutCurrencyPrefix(),postfix:Common.getCheckoutCurrencyPostfix(),grid:!1,prettify_separator:".",input_values_separator:"-",max_postfix:"",change_triggered:!1};o=$.extend(!0,{},t,f.nonStaticRangePrice),o.from=o.from?o.from:o.min,o.to=o.to?o.to:o.max,g=$(f.nonStaticRange.selector)}let c=new URI(location.href);O(),Common.initTogglePopupSidebar();const S=A();N(S),B();function Q(t){const a=A();for(let r=0,e=t.length;r<e;r++)a.hasOwnProperty(t[r])&&(a[t[r]]=[]);return a}function B(){const t=$(D()),a=t.filter(z);$("[data-sort-item]").on("click",r=>{$("[data-property=sortBy]").attr("data-value",$(r.currentTarget).attr("data-sort-item"))}),$("[data-trigger=filters-apply]").on("click",r=>{$(r.currentTarget).is("[data-filter-done='sizes']")&&I(),!$(y).is("[data-selected=true]")&&a.filter("[data-selected=true]").length>0&&a.attr("data-selected",!1);const e=L();return $(document).trigger(window.Syvo.Google_Analytics_4.eventNames.onProductsFilterClicked,[e]),$(document).trigger(window.Syvo.Google_Tag_Manager.eventNames.onProductsFilterClicked,[e]),_(),!1}),a.change(()=>{const r=a.filter("[data-selected=true]").length>0,e=$(y),n=e.is("[data-selected=true]");r&&!n&&e.attr("data-selected",!0).prop("checked",!0).attr("data-value",!0)}),t.on("click",r=>{const e=$(r.currentTarget),n=e.attr("data-selected")==="true";e.attr("data-selected",!n)}),$("[data-trigger=filters-reset]").on("click",r=>{const e=$(r.currentTarget).attr("data-property"),n=e.split(",");
580return n.constructor===Array&&n.length===1&&$(`[data-property=${e}]`).attr("data-selected",!1),k(n),_(Q(n)),!1}),$("[data-trigger='filter-breadcrumb-item'], [data-trigger='filter-reset']").on("click",r=>{r.preventDefault();const e=$(r.currentTarget);let n=e.attr("data-property"),i=e.attr("data-value");if(!n||!i||(n=n.split(","),i=i.split(","),n.length!==i.length))return;k(n);const s=c.search(!0);for(let d=0;d<n.length;d++){const l=n[d],V=i[d];if(s.hasOwnProperty(l)){const h=s[l];c.removeQuery(l);let p;h.constructor===Array?p=h.filter(j=>j!==V):p=h.replace(h,""),!p||p.length===0?c.removeQuery(l):c.setQuery(l,p)}}n.includes("inStore")&&c.removeQuery("stores"),m(c)}),o!=null&&E(),$("[data-trigger='inStore']").on("click",()=>(c.addQuery("sortBy","BestMatch"),c.addQuery("inStore","true"),m(c),!1))}function E(){g.on("change",()=>{o.change_triggered=!0})}function L(){const t=C(),a=["attrs","brands"],r={filter_query:w(t).query()};$.each(t,(i,s)=>{a.includes(i)||(Array.isArray(s)?s.length===0:!s)||(r[`filter_${v(i)}`]=Array.isArray(s)?s.join(", "):String(s))});const e=Common.getWindowLocationParameter("searchterm");e!==void 0&&(r.filter_searchterm=e);const n=Common.getBaseHref().replace(/\/$/,"");return r.filter_requestpath=decodeURI(location.pathname.toLowerCase().replace(new RegExp("^"+n,"i"),"")).trim(),b(r,$("[data-property='brands'][data-selected=true]"),()=>"brands"),b(r,$("[data-property='attrs'][data-selected=true]"),i=>i.attr("data-analytics-group")||"attrs","_attribute"),r}function b(t,a,r,e=""){$.each(a,(n,i)=>{const s=$(i),d=s.attr("data-analytics-value");if(!d)return;const l=`filter_${v(r(s))}${e}`;t[l]=t[l]?`${t[l]}, ${d}`:d})}function v(t){return t.trim().toLowerCase().replace(/[^a-z0-9]+/g,"_")}function _(t=C(),a=[]){$.each(S,(r,e)=>{if(t.hasOwnProperty(r)){for(let n=0,i=e.length;n<i;n++)if(Array.isArray(t[r])&&!t[r].includes(e[n])||!Array.isArray(t[r])&&t[r]!==e[n]){a.push(r);break}}}),c=w(t,a),m(c)}function k(t){if(t.includes("inStore")&&$("[data-property=inStore]").attr("data-selected",!1),t.includes("prices")&&o!=null){const a=g.data(f.nonStaticRange.slider);o.to=o.max,o.change_triggered=!1,a.update(o)}}function T(){let t=$("[data-property=prices]").val();return o.change_triggered?(o!=null&&o.overLimit&&(t=`${t}plus`),[t]):[]}function u(t){const a=$(`[data-property=${t}][data-selected=true]`);return $.map(a,r=>$(r).attr("data-value"))}function U(t){const a=$(`[data-property=${t}]`);return $.map(a,r=>$(r).attr("data-value"))}function w(t,a){const r=c.clone();if(t)for(const e in t)t.hasOwnProperty(e)&&((a&&a.includes(e)||!t[e]||Array.isArray(t[e])&&t[e].length===0)&&r.removeQuery(e),t[e]&&(typeof t[e]=="object"&&t[e].length>0||typeof t[e]=="string"||t[e]===!0)&&r.addQuery(e,t[e]));return r}function I(){const t=$("[data-property=sizes][data-selected=true]:eq(0)").attr("data-size-id");t&&$.cookie("sizeId",t,{path:"/"})}function O(){const t=$(y);t.attr("data-selected",t.attr("data-value")),o!=null&&g.ionRangeSlider(o)}function A(){const t=new F,a=c.search(!0);return $.each(a,(r,e)=>{t.hasOwnProperty(r)&&($.isArray(e)?$.merge(t[r],e):t[r].push(e))}),t}function C(){return new F({sortBy:U("sortBy"),sizes:u("sizes"),colors:u("colors"),prices:o!=null?T():u("prices"),inStore:$(y).is("[data-selected=true]"),attrs:u("attrs"),stores:u("stores"),brands:u("brands")})}function D(){let t="[data-property=sizes], [data-property=colors], [data-property=inStore], [data-property='attrs'], [data-property='stores'], [data-property='brands']";return o||(t+=",[data-property=prices]"),t}function N(t){if(!t)return;const a=$("[data-filter-block], [plp-filter]");$.each(t,(r,e)=>{if(!(!e||e.length===0))for(let n=0,i=e.length;n<i;n++){const s=a.find(`[data-value="${e[n]}"][data-property="${r}"]`);s.is("input")?s.prop("checked",!0).attr("data-selected","true").closest("label").addClass("active"):s.attr("data-selected","true").addClass("active")}}),o!=null&&t.prices&&(o.min!==o.from||o.max!==o.to)&&(o.change_triggered=!0)}function m(t){const a=t||c;a.removeQuery("page"),location.assign(a)}function F(t){const a=this,r=["sizes","colors","prices","attrs","stores","brands","sortBy","inStore","page"];for(let e=0,n=r.length;e<n;
580e++)a[r[e]]=[];t&&typeof t=="object"&&$.each(t,(e,n)=>{a.hasOwnProperty(e)&&(a[e]=n)})}}})(); 581 582(()=>{const u=window.Syvo.Product_Details_Preview=new SyvoModule("Product_Details_Preview",d);function d(n){const r={isPreviewMode:!0},p=$.extend(!0,{},r,n),t=$(`[data-product-id=${p.productId}], .dress-preview`),e=t.find("[data-property='add']"),i=t.find("[data-property='add-wishlist']");c();function c(){s(),a()}function a(){$("body").prepend(` 583 <div class='modal page-modal popup theme-typo product-preview-action-warning' id='product-preview-action-warning' data-property='product-preview-action-warning' style='display: none;'> 584 <div class='popup-body'> 585 <p>It's preview page. This action is disabled.</p> 586 </div> 587 <div class='popup-footer'> 588 <a href='.popup' rel='modal:close' class='btn btn-success-invert text-uppercase'>Close</a> 589 </div> 590 </div> 591 <div class='product-preview-alert alert-warning'>It's product preview page!<br />This product is hidden.</div> 592 `)}function s(){e.off("click"),i.off("click");const o=()=>{$("[data-property='product-preview-action-warning']").modal()};e.on("click",o),i.on("click",o)}}})(); 593 594(()=>{const a=window.Syvo.Product_TryOn_Modal=new SyvoModule("Product_TryOn_Modal",dt);a.eventNames.modalOpen=a.getModuleEventName("modalOpen"),a.eventNames.modalClose=a.getModuleEventName("modalClose"),a.eventNames.onBeforeModalOpen=a.getModuleEventName("onBeforeModalOpen"),a.eventNames.onAfterModalClose=a.getModuleEventName("onAfterModalClose");function dt(ut){const pt={selector:"[data-property=tryon-product-modal]",contentSelector:"[data-content=tryon-product-modal]",closeSelector:"[data-trigger=close-tryon-product-modal]",actions:{getProduct:"products/tryonmodaldetails"},callbacks:{openModal:()=>{$("[data-property=tryon-product-modal]").modal({closeClass:"tryon-modal-close"})},closeModal:()=>{$.modal.close()}},events:{onBeforeModalOpen:$.modal.BEFORE_OPEN,onAfterModalClose:$.modal.AFTER_CLOSE},overviews:{selector:"[data-list=overviews]",overviewSelector:".overview-media",slider:{infinite:!1,slidesToShow:1,slidesToScroll:1,focusOnSelect:!1,dots:!1,arrows:!0,prevArrow:"<div class='slick-arrow slick-prev overviews-arrow'><i class='arrow icon-syvo icon-chevron-left'></i></div>",nextArrow:"<div class='slick-arrow slick-next overviews-arrow'><i class='arrow icon-syvo icon-chevron-right'></i></div>",fade:!0,rightClick:!0},magicZoom:{refreshOnSlideChange:!1,variableZoom:!0,zoomOn:"click",zoomPosition:"inner",lazyZoom:!0,onZoomReady(i){$(window).trigger("mz:ready",[i])}},lazyLoading:{lazyBackground:"[data-lazy-background]"}},product:{id:null,stocks:[],selector:"[data-product-id]",attr:"data-product-id",controls:{activeClass:"active",disableClass:"hidden",unavailableClass:"disabled",unavailableAttr:"disabled",valueAttr:"data-value",valueIdAttr:"data-value-id",titleAttr:"title"},colors:{selector:"[data-property=color]",display:"[data-property=selected-color]",placeholder:"[data-property='selected-color-placeholder']",icon:"[data-property='selected-color-icon']",iconSelector:".color",chooseFirstActive:!0},sizes:{selector:"[data-property=size]",display:"[data-property=selected-size]",placeholder:"[data-property='selected-size-placeholder']",activeClass:"active",disableClass:"hidden",unavailableClass:"disabled",unavailableAttr:"disabled",chooseFirstActive:!1},price:{display:"[data-property=price]",oldDisplay:"[data-property=price-old]"},availability:{selector:"[data-property=availability]"},description:{selector:"[data-property=description]",moreButton:"[data-property='more']",lettersAllowed:200,overlayColor:"#fff"},addButton:{selector:"[data-property=add-tryon]",disabledClass:"disable",onBeforeAction:()=>{},onCompleteAction:()=>{},action:""},sizeChart:{btnSelector:"[data-trigger=open-sizechart]",modalSelector:"[data-property=sizechart-modal]",contentSelector:"[data-content=sizechart-content]"},localizedMessages:{header:"Please, select your ",separator:" and ",color:"color",size:"size",more:"more",less:"less"}}},m=$(window);let _=!1;const e={};a.init=V,a.destroy=Q,a.reload=ft,V();function V(i){if(e.settings=$.extend(!0,{},pt,i||ut),!e.settings.product||!e.settings.overviews)return;n(),g(),t();function n(){e.$modal=$(e.settings.selector),e.$modalContent=e.$modal.find(e.settings.contentSelector),e.$modalClose=e.$modal.find(e.settings.closeSelector),e.productSlider=vt(),e.productDetails=Ct(e.settings.product.model)}function t(){et(e.settings.product.id)}function g(){m.on(a.eventNames.modalOpen,X),m.on(a.eventNames.modalClose,Y),e.$modal.on(e.settings.events.onBeforeModalOpen,q),e.$modal.on(e.settings.events.onAfterModalClose,tt)}}function Q(){t(),n(),i();function i(){e.productSlider=e.productSlider.destroy(),e.productDetails=e.productDetails.destroy(),e.$modalClose=$(),e.$modalContent=$(),e.$modal=$()}function n(){U()}function t(){m.off(a.eventNames.modalOpen,X),m.off(a.eventNames.modalClose,Y),e.$modal.off(e.settings.events.onBeforeModalOpen,q),e.$modal.off(e.settings.events.onAfterModalClose,tt)}}function ft(i){Q(),V(i)}function X(i,n){et(n.productId)}function Y(){U()}function q(i){m.trigger(a.eventNames.onBeforeModalOpen)}function tt(i){m.trigger(a.eventNames.onAfterModalClose)}function $t(i){return new Promise((n,t)=>{if(!i||!i.productId||_){t();return}ot(!0),$.ajax({type:"get",url:`${e.settings.actions.getProduct}?id=${i.productId}`}).done(g=>{gt(g.content),n({productId:i.productId,collectionId:g.product.collectionId,sizeChart:g.product.brandSizeChartContent,stocks:g.productStockList,prices:g.product.prices})}).fail(()=>{t()}).always(()=>{ot(!1)})})}function gt(i){e.$modalContent.html(i)}function et(i){i<=0||typeof e.settings.callbacks.openModal=="function"&&$t({productId:i}).then(n=>
594{n&&(e.productDetails.reload(n),e.productSlider.reload(),e.settings.callbacks.openModal(),e.productSlider.update())})}function U(){typeof e.settings.callbacks.closeModal=="function"&&(e.settings.callbacks.closeModal(),e.productSlider.destroy(),e.productDetails.destroy())}function ot(i){_=i,i?Common.showLoader():Common.hideLoader()}function vt(){let i=!1;const n={init:t,destroy:g,reload:N,update:O};return t();function t(){if(!MagicZoom||!e.settings.overviews.slider||!e.settings.overviews.magicZoom||!e.settings.overviews.lazyLoading)return n;return d(),u(),C(),i=!0,n;function d(){n.$overviewList=e.$modal.find(e.settings.overviews.selector),n.$overviews=n.$overviewList.find(e.settings.overviews.overviewSelector),window.mzOptions=$.extend(!0,{},window.mzOptions,e.settings.overviews.magicZoom)}function u(){m.on("gestureend syvo:pinchend orientationchange resize",B),n.$overviewList.on("lazyLoaded",b),n.$overviewList.on("afterChange",I)}function C(){n.$overviewList.slick(e.settings.overviews.slider),$.each(n.$overviews,(h,k)=>{W(k)})}}function g(){return C(),u(),d(),i=!1,n;function d(){n.$overviewList=$(),n.$overviews=$(),n.$magicZoom=$()}function u(){n.$overviewList.slick("unslick"),$.each(n.$overviews,(h,k)=>{E(k)})}function C(){m.off("gestureend syvo:pinchend orientationchange resize",B),n.$overviewList.off("lazyLoaded",b),n.$overviewList.off("afterChange",I)}}function N(){return g(),t()}function W(d){if(d==null)return;const u=$(d);u.hasClass("zoom-initialized")||(setTimeout(()=>{MagicZoom.start(d)}),u.addClass("zoom-initialized"))}function E(d){if(d==null)return;const u=$(d);if(u.hasClass("zoom-initialized"))MagicZoom.stop(d),u.removeClass("zoom-initialized");else return}function B(){clearTimeout(n.resizeTimeout),n.resizeTimeout=setTimeout(()=>{O()},500)}function b(d,u,C,h){e.settings.overviews.lazyLoading.lazyBackground&&D(C,h)}function I(){j()}function D(d,u){$(d.closest(e.settings.overviews.lazyLoading.lazyBackground)).css("background-image",`url('${u}')`)}function O(){i&&(MagicZoom.refresh(),n.$overviewList.slick("slickSetOption","","",!0))}function j(){e.settings.overviews.magicZoom.refreshOnSlideChange&&MagicZoom.refresh()}}function Ct(i){const n={id:null,collectionId:null,stocks:[]},t={init:g,destroy:N,reload:W};return g();function g(o){if(!e.settings.product||!e.settings.product.controls||!e.settings.product.colors||!e.settings.product.sizes||!e.settings.product.price||!e.settings.product.description||!e.settings.product.addButton||!e.settings.product.sizeChart||!e.settings.product.localizedMessages)return;return t.settings=$.extend(!0,{},n,o||i),r(),s(),f(),t;function r(){var v;t.$productRoot=e.$modal.find(e.settings.product.selector),t.$colorControls=t.$productRoot.find(e.settings.product.colors.selector),t.$colorDisplay=t.$productRoot.find(e.settings.product.colors.display),t.$colorIcon=t.$productRoot.find(e.settings.product.colors.icon),t.$colorPlaceholder=t.$productRoot.find(e.settings.product.colors.placeholder),t.$sizeControls=t.$productRoot.find(e.settings.product.sizes.selector),t.$sizeDisplay=t.$productRoot.find(e.settings.product.sizes.display),t.$sizePlaceholder=t.$productRoot.find(e.settings.product.sizes.placeholder),t.$priceDisplay=t.$productRoot.find(e.settings.product.price.display),t.$oldPriceDisplay=t.$productRoot.find(e.settings.product.price.oldDisplay),t.$addButton=t.$productRoot.find(e.settings.product.addButton.selector),t.$sizeChartButton=t.$productRoot.find(e.settings.product.sizeChart.btnSelector),t.$sizeChartModal=$(e.settings.product.sizeChart.modalSelector),t.stocks=t.settings.stocks.sort((c,l)=>c.colorId>l.colorId?1:c.colorId<l.colorId?-1:c.sizeId>l.sizeId?1:c.sizeId<l.sizeId?-1:0),t.firstActiveStock=(v=t.stocks.find(c=>c.unitsAvailableInStore>0))!=null?v:t.stocks[0],t.expandableDescriptionModel=Common.createExpandableBlock({expandableBlock:{selector:e.settings.product.description.selector,expandedClass:"full-description",lettersAllowed:e.settings.product.description.lettersAllowed},expandToggle:{selector:e.settings.product.description.moreButton,expandedClass:"expanded",collapseText:e.settings.product.localizedMessages.less,expandText:e.settings.product.localizedMessages.more,collapseSpeed:100,expandSpeed:1e3},overlay:{class:"expandable-block-overlay",color:e.settings.product.description.overlayColor}})}function s(){t.$colorControls.on("click",E),t.$sizeControls.on("click",B),t.$addButton.on("click",b),t.$sizeChartButton.on("click",I),t.$sizeChartModal.on($.modal.BEFORE_OPEN,D),t.$sizeChartModal.on($.modal.AFTER_CLOSE,O)}function f(){P(!1),d()||(e.settings.product.sizes.chooseFirstActive&&t.firstActiveStock?C(t.$sizeControls.filter((v,c)=>$(c).attr(e.settings.product.controls.valueAttr)===t.firstActiveStock.sizeName)):e.settings.product.colors.chooseFirstActive&&t.firstActiveStock&&u(t.$colorControls.filter((v,c)=>$(c).attr(e.settings.product.controls.valueIdAttr)===t.firstActiveStock.colorId.toString())))}}function N(){return s(),r(),o(),t;function o(){t.$productRoot=$(),t.$colorControls=$(),t.$colorDisplay=$(),t.$colorIcon=$(
594),t.$colorPlaceholder=$(),t.$sizeControls=$(),t.$sizeDisplay=$(),t.$sizePlaceholder=$(),t.$priceDisplay=$(),t.$oldPriceDisplay=$(),t.$addButton=$(),t.$sizeChartButton=$(),t.$sizeChartModal=$(),t.stocks=[],t.firstActiveStock=null,t.expandableDescriptionModel&&t.expandableDescriptionModel.destroy()}function r(){P(!1)}function s(){t.$colorControls.off("click",E),t.$sizeControls.off("click",B),t.$addButton.off("click",b),t.$sizeChartButton.off("click",I),t.$sizeChartModal.off($.modal.BEFORE_OPEN,D),t.$sizeChartModal.off($.modal.AFTER_CLOSE,O)}}function W(o){return N(),g(o)}function E(o){u($(o.currentTarget))}function B(o){C($(o.currentTarget))}function b(o){j()}function I(o){o.preventDefault(),t.$sizeChartModal.modal({closeExisting:!1})}function D(o){lt(t.settings.sizeChart)}function O(o){lt("")}function j(){if(_)return;const o=L();if(!wt()||!o){G();return}m.trigger(window.Syvo.TryOn_Widget.eventNames.tryOnItemAddButtonClicked,{stockId:o.id,collectionsId:t.settings.collectionId}),U()}function d(){let o=t.stocks.filter(r=>r.unitsAvailableInStore!==0);if(o.length===1){let r=$(`[data-property='size'][data-value-id=${o[0].sizeId}]`),s=$(`[data-property='color'][data-value-id=${o[0].colorId}]`);return r.length!==0&&C(r),s.length!==0&&u(s),!0}return!1}function u(o){if(T(o)||!w(o)&&!kt())return;P(!1),G(!1),M(t.$colorControls,t.$colorDisplay,t.$colorPlaceholder),w(o)||(A(t.$colorControls),A(t.$sizeControls),M(t.$sizeControls,t.$sizeDisplay,t.$sizePlaceholder));const r=Z(o),s=H(o);h(o),st(t.$colorControls,r,t.$colorDisplay,t.$colorPlaceholder);const f=K();nt(t.$sizeControls),A(At(s)),w(f)||M(t.$sizeControls,t.$sizeDisplay,t.$sizePlaceholder),k(L())}function C(o){if(T(o)||!w(o)&&!St())return;P(!1),G(!1),M(t.$sizeControls,t.$sizeDisplay,t.$sizePlaceholder),w(o)||(A(t.$sizeControls),A(t.$colorControls),h(),M(t.$colorControls,t.$colorDisplay,t.$colorPlaceholder));const r=Z(o);st(t.$sizeControls,r,t.$sizeDisplay,t.$sizePlaceholder);const s=J();nt(t.$colorControls),A(Mt(r)),w(s)||(h(),M(t.$colorControls,t.$colorDisplay,t.$colorPlaceholder)),k(L())}function h(o){if(t.$colorIcon.removeClass("has-icon"),t.$colorIcon.html(""),!o||!o.length)return;const r=o.find(e.settings.product.colors.iconSelector);o.length!==0&&(t.$colorIcon.addClass("has-icon"),t.$colorIcon.html(r.clone()))}function k(o){zt(o),yt(o)&&P()}function L(){const o=H(J()),r=Z(K());return t.stocks.find(s=>x(s)===r&&F(s)===o)}function x(o){if(o.sizeName)return o.sizeName}function F(o){if(o.colorId)return o.colorId.toString()}function R(o){return!o.prices||!$.isArray(o.prices)||o.prices.length===0?o.prices:o.prices[0]}function mt(){if(t.settings.prices&&$.isArray(t.settings.prices)&&!e.settings.product.showMinPriceForIncompleteStock)return t.settings.prices[0];const o=H(J()),r=Z(K());if(o&&r)return R(L());if(o){const l=s();return v(l)}if(r){const l=f();return v(l)}function s(){const l=[];let p=0;const z=stock.length;for(;p<z;p++){const y=stock[p];F(y)===o&&l.push(y)}return l}function f(){const l=[];let p=0;const z=stock.length;for(;p<z;p++){const y=stock[p];x(y)===r&&l.push(y)}return l}function v(l){let p=R(l[0]),z=c(p),y=0;const Bt=l.length;for(;y<Bt;y++){const bt=l[y],ct=R(bt),at=c(ct);at<z&&(z=at,p=ct)}return p}function c(l){if(Array.isArray(l)&&l.length>0){let p=0;const z=l.length;for(;p<z;p++)if(p===window.common_settings.checkoutCurrencyIndex)return l[p].price}return l}}function yt(o){return!!o&&o.unitsAvailableInStore>0}function zt(o){S(t.$priceDisplay),S(t.$oldPriceDisplay);const r=o?R(o):mt();if(!r)return;const s=it(r.minPrice),f=it(r.price);if(isNaN(s)&&isNaN(f))return;let v,c;const l=ht(r);if($.isNumeric(s)&&(v=rt(s,l)),$.isNumeric(f)&&(c=rt(f,l)),$.isNumeric(s)&&$.isNumeric(s)&&s<f){S(t.$priceDisplay,v),S(t.$oldPriceDisplay,c);return}S(t.$priceDisplay,v||c)}function ht(o){return window.common_settings.currencies.find(r=>r.currency===o.currency)}function rt(o,r){return $.isNumeric(o)?Common.formatPriceByCurrency(o,r):o}function St(){return t.$colorControls.length>0}function kt(){return t.$sizeControls.length>0}function wt(){return!t.$addButton.hasClass(e.settings.product.addButton.disabledClass)}function P(o=!0){o?t.$addButton.removeClass(e.settings.product.addButton.disabledClass):t.$addButton.addClass(e.settings.product.addButton.disabledClass)}function G(o=!0){t.$addButton.popover("destroy"),o&&(t.$addButton.popover({title:"",placement:"top",content:r(),trigger:"focus"}),t.$addButton.popover("show"));function r(){let s="",f=0;const v=!T(t.$colorControls),c=!T(t.$sizeControls);return(v||c)&&(s+=e.settings.product.localizedMessages.header,v&&(f++,s+=e.settings.product.localizedMessages.color),c&&(f>0&&(s+=e.settings.product.localizedMessages.separator),s+=e.settings.product.localizedMessages.size)),`${s}.`}}function T(o){return o.hasClass(e.settings.product.controls.activeClass)}function w(o){return!o.hasClass(e.settings.product.controls.unavailableClass)}function Z(o){return o.attr(e.settings.product.controls.valueAttr)}function H(o){return o.attr(e.settings.product.controls.valueIdAttr)}function st(o,r,s,f){o.filter(`[${e.settings.product.controls.valueAttr}='${r}']`).addClass(e.settings.product.controls.activeClass),S(s,r,f)}function M(o,r,s){o.removeClass(e.settings.product.controls.activeClass),S(r,"",s)}function nt(o){o.addClass(e.settings.product.controls.unavailableClass)}function A(o){o.removeClass(e.settings.product.controls.unavailableClass)}function S(o,r="",s){o.text(r),s&&(r!=null&&r.length?s.hide():s.show())}function J(){return t.$colorControls.filter(`.${e.settings.product.controls.activeClass}`)}
594function K(){return t.$sizeControls.filter(`.${e.settings.product.controls.activeClass}`)}function Mt(o){let r=$();return t.stocks.filter(s=>x(s)===o&&s.unitsAvailableInStore>0).forEach(s=>{r=r.add(t.$colorControls.filter(`[${e.settings.product.controls.valueIdAttr}='${F(s)}']`))}),r}function At(o){let r=$();return t.stocks.filter(s=>F(s)===o&&s.unitsAvailableInStore>0).forEach(s=>{r=r.add(t.$sizeControls.filter(`[${e.settings.product.controls.valueAttr}='${x(s)}']`))}),r}function it(o){if(o&&!$.isNumeric(o)&&!isNaN(o)){o=o.replace(",","");const r=o.match(new RegExp(/(\d+(?:\.\d+)*)/));if(r)return parseFloat(r[1])}return parseFloat(o)}function lt(o){t.$sizeChartModal.find(e.settings.product.sizeChart.contentSelector).html(o)}}}})(); 595 596(function(){var e=window.Syvo.Recommended_Products=new SyvoModule("Recommended_Products",N);e.eventNames.onSliderInit=e.getModuleEventName("onSliderInit"),e.eventNames.onSliderBeforeChange=e.getModuleEventName("onSliderBeforeChange"),e.eventNames.onSliderAfterChange=e.getModuleEventName("onSliderAfterChange"),e.eventNames.onSliderBreakPoint=e.getModuleEventName("onSliderBreakPoint"),e.eventNames.onSliderSetPosition=e.getModuleEventName("onSliderSetPosition");function N(y){if(typeof $.fn.slick!="function")return;var s=$(window),B={selector:"[data-list='products']",callbacks:{onSliderInit:d,onSliderBeforeChange:d,onSliderAfterChange:d,onSliderBreakPoint:d,onSliderSetPosition:d},slider:{infinite:!1,slidesToShow:5,slidesToScroll:1,focusOnSelect:!1,arrows:!0,dots:!1,prevArrow:"<div class='slick-arrow slick-prev products-arrow'><span class='arrow'></span></div>",nextArrow:"<div class='slick-arrow slick-next products-arrow'><span class='arrow'></span></div>",responsive:[{breakpoint:992,settings:{slidesToShow:2,autoplay:!0}}]}};if(e.settings=$.extend(!0,{},B,y),!e.settings.selector||!e.settings.slider)return;e.init=c,e.destroy=u,e.reload=I,c();function c(){i(),t(),o();function n(g){return g.filter(function(k,f){return $(f).children().length>1})}function i(){e.$list=$(e.settings.selector),e.$slider=n(e.$list)}function t(){e.$slider.on("init reInit",h),e.$slider.on("setPosition",S),e.$slider.on("beforeChange",v),e.$slider.on("afterChange",m),e.$slider.on("breakpoint",C)}function o(){e.slickSlider=e.$slider.slick(e.settings.slider)}}function u(){n(),i(),t();function n(){e.slickSlider=e.$slider.slick("unslick")}function i(){e.$slider.off("init reInit",h),e.$slider.off("setPosition",S),e.$slider.off("beforeChange",v),e.$slider.off("afterChange",m),e.$slider.off("breakpoint",C)}function t(){e.$slider=$()}}function I(){u(),c()}function l(n){return $(n.target).is(e.$slider)}function S(n,i){l(n)&&(A(i),e.settings.callbacks&&typeof e.settings.callbacks.onSliderSetPosition=="function"&&e.settings.callbacks.onSliderSetPosition(i),s.trigger(e.eventNames.onSliderSetPosition,[i]))}function h(n,i){l(n)&&(E(i),e.settings.callbacks&&typeof e.settings.callbacks.onSliderInit=="function"&&e.settings.callbacks.onSliderInit(i),s.trigger(e.eventNames.onSliderInit,[i]))}function v(n,i,t,o){l(n)&&(O(i,t,o),e.settings.callbacks&&typeof e.settings.callbacks.onSliderBeforeChange=="function"&&e.settings.callbacks.onSliderBeforeChange(i,t,o),s.trigger(e.eventNames.onSliderBeforeChange,[i,t,o]))}function m(n,i,t){l(n)&&(e.settings.callbacks&&typeof e.settings.callbacks.onSliderAfterChange=="function"&&e.settings.callbacks.onSliderAfterChange(i,t),s.trigger(e.eventNames.onSliderAfterChange,[i,t]))}function C(n,i,t){l(n)&&(e.settings.callbacks&&typeof e.settings.callbacks.onSliderBreakPoint=="function"&&e.settings.callbacks.onSliderBreakPoint(i,t),s.trigger(e.eventNames.onSliderBreakPoint,[i,t]))}function A(n){Common.setRelatedArrowsPosition(n,".product-image"),Common.setSlidesEqualHeight(n,".product")}function E(n){s.trigger("slick:ready",[e])}function O(n,i,t){n.options.infinite&&o();function o(){var g=n.$slideTrack.children(".slick-cloned");$.each(g,function(){k($(this))});function k(f){var M=$(x(f)),p=w(f),b=w(M);if(p.length!==b.length)return;$.each(p,function(a,r){var P=$(this),T=$(b[a]);P.parent().append(T.clone(!0)),P.remove()});function x(a){var r=parseInt(a.attr("data-slick-index"));if(!isNaN(r)){if(r>=n.$slides.length)for(;r>=n.$slides.length;)r-=n.$slides.length;else for(;r<0;)r+=n.$slides.length;return n.$slides[r]}}function w(a){return a.find(".slick-initialized")}}}}function R(n,i){}function d(){}}})(); 597 598(()=>{const o=window.Syvo.TryOn_Widget=new SyvoModule("TryOn_Widget",F);o.eventNames.onTryOnKitCompleted=o.getModuleEventName("onTryOnKitCompleted"),o.eventNames.onTryOnKitInCompleted=o.getModuleEventName("onTryOnKitInCompleted"),o.eventNames.onAfterTryOnListUpdated=o.getModuleEventName("onAfterTryOnListUpdated"),o.eventNames.onAfterTryOnItemRemoved=o.getModuleEventName("onAfterTryOnItemRemoved"),o.eventNames.onBeforeTryOn
598ItemAdded=o.getModuleEventName("onBeforeTryOnItemAdded"),o.eventNames.onAfterTryOnItemAdded=o.getModuleEventName("onAfterTryOnItemAdded"),o.eventNames.onBeforeTryOnKitAdded=o.getModuleEventName("onBeforeTryOnKitAdded"),o.eventNames.onAfterTryOnKitAdded=o.getModuleEventName("onAfterTryOnKitAdded"),o.eventNames.onAfterTryOnKitRemovedFromCart=o.getModuleEventName("onAfterTryOnKitRemovedFromCart"),o.eventNames.tryOnItemAddButtonClicked=o.getModuleEventName("tryOnItemAddButtonClicked");function F(R){const m="tryOnWidgetShown",x={authorized:!1,selector:"[data-property=tryon-widget]",minAttr:"data-tryon-kit-min",maxAttr:"data-tryon-kit-max",addedAttr:"data-tryon-kit-added",showOnLoad:!0,parentSidebarSelector:"[data-sidebar=tryon-sidebar]",popup:{selector:"[data-property=tryon-popup]",triggerSelector:"[data-trigger=tryon-popup]",callbacks:{onBeforeShow(){const e=$("body");e.hasClass("allow-body-overflow")||e.addClass("overflow-hidden-desktop")},onBeforeHide(){$("body").removeClass("overflow-hidden-desktop")}}},content:{selector:"[data-content='tryon-widget']"},addButton:{action:"",selector:"[data-trigger=add-tryon]",attr:"data-tryon-id"},removeButton:{action:"",selector:"[data-trigger=remove-tryon]",attr:"data-tryon-id"},removeFromCartAndEditKitButton:{action:"",selector:"[data-trigger=edit-cart-kit-tryon]",confirmationModalSelector:"#confirm-edit-tryon-kit"},clearCartKitButton:{action:"",selector:"[data-trigger=clear-cart-kit-tryon]",confirmationModalSelector:"#confirm-clear-tryon-kit"},form:{selector:"[data-form=tryon-widget]",control:{errorElementClass:"border-danger",errorLabelClass:"color-danger"},emailField:{selector:"[data-property=email]"},costOptions:{selector:"[data-property=tryon-cost]"}},cartButton:{action:"",selector:"[data-trigger=add-tryon-kit]",redirect:""},cookie:{periodInMinutes:null}},s=$(window),W=Common.getBaseHref();let a=!1;const t={};o.init=f,o.destroy=p,o.reload=L,o.getAddedState=M,o.getMinReachedState=I,o.getMaxReachedState=q,f();function f(e){if(t.settings=$.extend(!0,{},x,e||R),!t.settings.content||!t.settings.popup)return;n(),r(),i();function n(){t.$widget=y(),t.$content=$(t.settings.content.selector)}function r(){s.on(o.eventNames.tryOnItemAddButtonClicked,T),v()}function i(){t.settings.showOnLoad&&E(!0)}}function p(){e(),n();function e(){t.$widget=$(),t.$content=$()}function n(){s.off(o.eventNames.tryOnItemAddButtonClicked,T),w()}function r(){}}function L(e){p(),f(e)}function g(e){w(),t.$content.html(e),v(),t.$widget.closest(t.settings.parentSidebarSelector).length===0&&_(),s.trigger(o.eventNames.onAfterTryOnListUpdated)}function y(){return $(t.settings.selector)}function P(){return t.$widget.find(t.settings.form.selector)}function H(){return $(t.settings.popup.triggerSelector)}function j(){return $(t.settings.popup.selector)}function v(){t.$widget=y(),t.$form=P(),t.$popupTrigger=H(),t.$popup=j(),t.$widget.on("click",t.settings.removeButton.selector,{},k),t.$widget.on("click",t.settings.removeFromCartAndEditKitButton.selector,{},A),t.$widget.on("click",t.settings.clearCartKitButton.selector,{},S),t.$widget.on("click",t.settings.cartButton.selector,h),t.$widget.on("submit",t.settings.form.selector,K),t.$popupTrigger.on("click",O),t.$popup.on("show.bs.dropdown",C),t.$popup.on("hide.bs.dropdown",c),$(t.settings.removeFromCartAndEditKitButton.confirmationModalSelector+" form").on("submit",B),$(t.settings.clearCartKitButton.confirmationModalSelector+" form").on("submit",b)}function w(){t.$widget.off("click",t.settings.removeButton.selector,k),t.$widget.off("click",t.settings.removeFromCartAndEditKitButton.selector,A),t.$widget.off("click",t.settings.clearCartKitButton.selector,S),t.$widget.off("click",t.settings.cartButton.selector,h),t.$widget.off("submit",t.settings.form.selector,K),t.$popupTrigger.off("click",O),t.$popup.off("show.bs.dropdown",C),t.$popup.off("hide.bs.dropdown",c),t.$popup=$(),t.$popupTrigger=$(),t.$form=$(),t.$widget=$(),$(t.settings.removeFromCartAndEditKitButton.confirmationModalSelector+" form").off("submit",B),$(t.settings.clearCartKitButton.confirmationModalSelector+" form").off("submit",b)}function O(e){e.preventDefault()}function C(){t.settings.popup.callbacks&&typeof t.settings.popup.callbacks.onBeforeShow=="function"&&t.settings.popup.callbacks.onBeforeShow()}function c(){t.settings.popup.callbacks&&typeof t.settings.popup.callbacks.onBeforeHide=="function"&&t.settings.popup.callbacks.onBeforeHide()}function T(e,n){D(n.stockId,n.collectionId)}function k(e){n();function n(){if(a)return;d(!0);const r={tryOnKitItemId:$(e.currentTarget).attr(t.settings.removeButton.attr)};$.ajax({type:"POST",url:t.settings.removeButton.action,data:r}).done(function(i){i.content&&g(i.content),s.trigger(o.eventNames.onAfterTryOnKitRemovedFromCart,[r.tryOnKitItemId,i.status])}).always(function(){d(!1),c()})}}function A(e){a||$(t.settings.removeFromCartAndEditKitButton.confirmationModalSelector).modal()}function B(e){e.preventDefault(),d(!0),$.ajax({type:"POST",url:t.settings.removeFromCartAndEditKitButton.action}).done(n=>{n.content&&g(n.content),s.trigger(o.eventNames.onAfterTryOnKitRemovedFromCart)}).always(()=>{$.modal.close(),d(!1),c()})}function S(e){a||$(t.settings.clearCartKitButton.confirmationModalSelector).modal()}function b(e){e.preventDefault(),d(!0),$.ajax({type:"POST",url:t.settings.clearCartKitButton.action}).done(n=>{n.content&&g(n.content),s.trigger(o.eventNames.onAfterTryOnKitRemovedFromCart)}).always(()=>{$.modal.close(),d(!1),c()})}function h(e){N()}function K(e){return e.preventDefault(),N(),!1}function N(){if(a||!t.settings.form.control||!t.settings.form.emailField||!t.settings.form.costOptions)return;const e=t.$form.validate({errorElement:"span",errorClass:"error",success:function(r){r.remove()},highlight:function(r,i,l){const u=$(r);u.addClass(`${i} ${t.settings.form.control.errorElementClass}`).removeClass(l),setTimeout(()=>{u.next("span[for]").addClass(`${i} ${t.settings.form.control.errorLabelClass}`).removeClass(l)},100)},unhighlight:function(r,i,l){const u=$(r);u.removeClass(`${i} ${t.settings.form.control.errorElementClass}`).addClass(l),setTimeout(()=>{u.next("span[for]").removeClass(`${i} ${t.settings.form.control.errorLabelClass}`).addClass(l)},100)}});if(!t.$form.valid())return;const n={email:t.$form.find(t.settings.form.emailField.selector).val(),costOptionId:t.$form.find(t.settings.form.costOptions.selector).filter(":checked").val()};d(!0),s.trigger(o.eventNames.onBeforeTryOnKitAdded,[n.email,n.costOptionId]),$.ajax({type:"POST",url:t.settings.cartButton.action,data:n}).done(r=>{s.trigger(o.eventNames.onAfterTryOnKitAdded,[r.status]),e.resetForm(),setTimeout(()=>{location.assign(t.settings.cartButton.redirect)},1)}).fail(()=>{d(!1)})}function D(e,n){if(a||!e)return;d(!0);const r={stockId:e,collectionId:n};
598s.trigger(o.eventNames.onBeforeTryOnItemAdded,[r.stockId,r.collectionId]),$.ajax({type:"POST",url:t.settings.addButton.action,data:r}).done(i=>{i.content&&g(i.content),s.trigger(o.eventNames.onAfterTryOnItemAdded,[i.status])}).always(()=>{d(!1)})}function q(){const e=t.$widget.attr(t.settings.maxAttr);return $.convertToBool(e)}function I(){const e=t.$widget.attr(t.settings.minAttr);return $.convertToBool(e)}function M(){const e=t.$widget.attr(t.settings.addedAttr);return $.convertToBool(e)}function U(){return!t.settings.cookie||!$.isNumeric(t.settings.cookie.periodInMinutes)?!0:$.convertToBool($.cookie(m))}function V(e){if(!t.settings.cookie||!$.isNumeric(t.settings.cookie.periodInMinutes))return;$.cookie(m,e,{expires:n(),path:W});function n(){const r=new Date;return r.setMinutes(r.getMinutes()+t.settings.cookie.periodInMinutes),r}}function _(){!I()&&!M()||E(!1)}function E(e){e&&U()||(t.$popupTrigger.dropdown("toggle"),V(!0))}function d(e){e?Common.showLoader():Common.hideLoader(),a=e}}})(); 599 600(function(){const s=window.Syvo.Feedback=new SyvoModule("Feedback",i);function i(m){const u={feedbackSectionSelector:"[data-role=feedback-section]",statusElementSelector:"[data-role=status-element]",errorElementSelector:"[data-role=error-element]",progressElementSelector:"[data-role=progress-element]",messageSelector:"[data-role=feedback-section] [name=message]",emailSelector:"[data-role=feedback-section] [name=email]",phoneNumberSelector:"[data-role=feedback-section] [name=phoneNumber]",locationSelector:"[data-role=feedback-section] [name=location]",submitSelector:"[data-role=submit]",formSelector:"form[name=feedback-form]"},e={};s.init=r,s.destroy=l,s.reload=f,r();function r(o){if(e.settings=$.extend(!0,{},u,o||m),!e.settings.url)return;t(),n(),a();function t(){e.$emailInput=$(e.settings.emailSelector),e.$messageInput=$(e.settings.messageSelector),e.$locationsSelect=$(e.settings.locationSelector),e.$phoneNumberInput=$(e.settings.phoneNumberSelector),e.$errorElement=$(e.settings.errorElementSelector),e.$statusElement=$(e.settings.statusElementSelector),e.$progressElement=$(e.settings.progressElementSelector),e.$submitButton=$(e.settings.submitSelector),e.$form=$(e.settings.formSelector)}function n(){e.$form.on("submit",c)}function a(){e.$locationsSelect.length>0&&(e.$locationsSelect.select2({minimumResultsForSearch:-1}),e.$locationsSelect.trigger("change"))}}function l(){n(),o(),t();function o(){e.$form.off("submit",c)}function t(){e.$emailInput=$(),e.$messageInput=$(),e.$locationsSelect=$(),e.$phoneNumberInput=$(),e.$errorElement=$(),e.$statusElement=$(),e.$progressElement=$(),e.$submitButton=$(),e.$form=$()}function n(){e.$locationsSelect.length>0&&e.$locationsSelect.select2("destroy")}}function f(){l(),r()}function c(o){o.preventDefault();const t=$(this),n=t.find("[name='g-recaptcha-response']"),a=n.val();if(t.valid()&&(n.length===0||a)){e.$submitButton.prop("disabled",!0);const d=t.serializeArray();$.ajax({url:e.settings.url,type:"post",data:d,beforeSend:function(){e.$progressElement.fadeIn("slow")}}).done(function(){e.$emailInput.val(""),e.$messageInput.val(""),e.$locationsSelect.val(""),e.$locationsSelect.trigger("change"),e.$phoneNumberInput.val(""),e.$errorElement.fadeOut("slow"),e.$statusElement.fadeIn("slow"),setTimeout(function(){location.assign(e.settings.rootUrl)},3e3)}).fail(function(g){e.$errorElement.fadeIn("slow").text((g.responseJSON||{}).message)}).always(function(){e.$progressElement.fadeOut("fast"),e.$submitButton.prop("disabled",!1),!grecaptcha||grecaptcha.reset()})}}}})(); 601 602(function(){const o=window.Syvo.Testimonial=new SyvoModule("Testimonial",r);function r(e){$.validator.setDefaults({ignore:null});const t=$(e.formSelector),a=$(e.submitSelector).text();$(e.ratingRadioSelector).on("click",function(){$(e.ratingSelector).val($(this).val())}),t.submit(function(n){if(n.preventDefault(),t.valid()){$(e.submitSelector).prop("disabled",!0).text("Sending");const c=t.serializeArray();$(e.errorElementSelector).hide().text(""),$.ajax({url:e.url,type:"post",data:c}).done(function(l){$(e.nameSelector).val(""),$(e.emailSelector).val(""),$(e.phoneSelector).val(""),$(e.contentSelector).val(""),$(e.errorElementSelector).fadeOut("slow"),$(e.statusElementSelector).fadeIn("slow"),setTimeout(function(){location.assign(e.rootUrl)},3e3)}).fail(function(l){$(e.errorElementSelector).fadeIn("slow").text((l.responseJSON||{}).message)}).always(function(){$(e.submitSelector).prop("disabled",!1).text(a)})}})}})(); 603 604(function(){const m=window.Syvo.Save_Result_Form=new SyvoModule("Save_Result_Form",f);function f(a){const o=$("[data-form=save-result-form]");if(o){let l=function(t){const s=[];return t.find("input, textarea, select").each(function(u,n){const e={};e.Name=n.name,e.Value=n.value,e.LabelText=t.find("[data-label="+e.Name+"]").text(),n.tagName==="SELECT"?e.TextValue=$(this).find("option:selected").text():n.type==="radio"?(e.TextValue=t.find(":radio[name="+e.Name+"]:checked").val(),e.Value=e.TextValue):e.TextValue=n.value,s.push(e)}),s};var T=l;const i=$(a.formSuccessSelector),r=$(a.formErrorSelector),d=$(a.formInfoSelector),c=function(t){o.hide(),d.hide(),t?(i.show(),$(window).scrollTop(i.position().top),setTimeout(function(){i.hide()},5e3)):(r.show(),$(window).scrollTop(r.position().top),setTimeout(function(){r.hide()},5e3)),setTimeout(function(){location.reload()},8e3)};o.validate({errorElement:"span"}),o.submit(function(t){if(t.preventDefault(),o.valid()){const s=o.attr("action"),u=o.serialize(),n=l(o
604);$.ajax({type:"POST",url:"/externalrequest/sendform",data:{url:s,data:u,controls:n},success:function(e){c(!0)},error:function(e){c(!1)}})}})}}})(); 605 606(()=>{window.Syvo.Store_Locator_v1=new SyvoModule("Store_Locator_v1",L);function L(U){const R={ddlCountriesSelector:"[data-property=country]",tbLocationKeywordSelector:"[data-property=locationKeyword]",popupHandlerSelector:"[data-property=store-modal]",resultsSelector:"[data-role=results]",noResultsSelector:"[data-role=no-results]",mapSelector:"[data-property=map]",searchNearUserInputSelector:"[data-property='search-near-user-input']",searchNearUserRadiusInputSelector:"[data-property='search-near-user-radius-input']",searchNearUserErrorBlockSelector:"[data-property='search-near-user-error-block']",storeLocatorResultsRenameCasualWear:!1},n=$.extend(!0,R,U),c=$(n.ddlCountriesSelector),g=$(n.tbLocationKeywordSelector),v=$(n.mapSelector)[0],u=$(n.searchNearUserInputSelector),y=$(n.searchNearUserRadiusInputSelector),b=$(n.searchNearUserErrorBlockSelector);let a=null,h=null;const N=Object.freeze({CASUAL_WEAR:32});k(),I(),T(),_(!1);function k(){$.getScript(`//maps.googleapis.com/maps/api/js?libraries=places&language=en&key=${n.googleKey}`).done((o,e)=>{google.maps.event.addDomListener(window,"load",C),P(),u.length>0&&u.change(t=>{$(t.target).is(":checked")?A().then(()=>f()):(w(),f())}),n.enableUserGeolocationServicesByDefault&&u.trigger("change")})}function _(o){const e=$(n.resultsSelector),t=$(n.noResultsSelector);n.stores&&n.stores.length>0?($.each(n.stores,(r,s)=>{s.dresses=new Array(s.rate);const l=s.collectionTypes.map(i=>n.storeLocatorResultsRenameCasualWear&&i.id===N.CASUAL_WEAR?"Social Occasion":i.name);s.retailerTypeNamesString=s.collectionTypes.length>1?l.splice(0,l.length-1)+" and "+l.splice(l.length-1):l.length===1?l[0]:"",s.retailerTypeNamesString&&(s.retailerTypeNamesString=`*${s.retailerTypeNamesString} Retailer`),s.location=`${s.latitude},${s.longitude}`}),o&&e.loadTemplate($("#item-template"),n.stores),E(e),e.show(),t.hide()):(e.hide(),t.show())}function A(){return new Promise((e,t)=>{navigator.geolocation?navigator.geolocation.getCurrentPosition(r=>{r.coords.latitude&&r.coords.longitude&&(h={latitude:r.coords.latitude,longitude:r.coords.longitude},c.val(""),c.trigger("refresh")),b.html(""),a=null,g.val(""),e()},()=>{o("Please provide access to geolocation"),e()}):(o("The browser does not support geolocation"),e())});function o(e){u.length>0&&(u.prop("checked",!1),u.prop("disabled",!0)),b.length>0&&b.html(e)}}function w(){u.prop("checked",!1),c.val()||(c.val(c.find("option[data-iso2-code]").val()),c.trigger("refresh")),h=null}function T(){$.addTemplateFormatter({telephone:o=>o?`tel:${o}`:""})}function I(){c.on("change",()=>{a=null,g.val(""),u.length>0&&w(),f()}),g.keyup(o=>{$.trim(g.val())===""&&a&&(a=null,f())}),y.length>0&&y.on("change",()=>{f()})}function E(o){const e=$(n.popupHandlerSelector);o.find("[data-property=info-popup-trigger]").on("click",()=>{const t=$(this).data("id"),r=n.stores.find(s=>s.id==t);r.direction=`http://maps.google.com/maps?daddr=${encodeURIComponent(r.address)}`,e.loadTemplate($("#popup-template"),r,{bindingOptions:{ignoreUndefined:!0,ignoreNull:!0,ignoreEmptyString:!0}}),e.modal()})}function f(){return new Promise((o,e)=>{const t={brandId:n.brandId,countryId:c.val()};a&&(t["location.latitude"]=a.latitude,t["location.longitude"]=a.longitude,t["location.region"]=a.region,t["location.city"]=a.city,t["location.postCode"]=a.postCode),y&&(t.searchRadiusInMeters=y.val()),h&&(t["userCoordinates.latitude"]=h.latitude,t["userCoordinates.longitude"]=h.longitude),$.get(n.searchUrl,t,r=>{n.stores=r,_(!0),C(),o(n.stores)}).fail(function(){e()})})}function C(){const o=new google.maps.LatLngBounds,e=new google.maps.InfoWindow,t={},r=new google.maps.Map(v,t);r.addListener("bounds_changed",()=>{Common.GoogleMapsApi.makeADACompliant(v)}),n.stores.forEach((s,l)=>{const i=new google.maps.Marker({position:new google.maps.LatLng(s.latitude,s.longitude),map:r,optimized:!1});o.extend(i.position),google.maps.event.addListener(i,"mousedown",((S,p)=>()=>{const d=n.stores[p];let m=`<b>${d.name}</b><br>${d.address}`;d.url&&(m+=`<br /><a target="_blank" href=${d.url}>${d.url}</a>`),d.phone&&(m+=`<br />${d.phone}`),e.setContent(m),e.open(r,S)})(i,l))}),r.fitBounds(o),google.maps.event.addListenerOnce(r,"bounds_changed",function(){n.stores.length>0&&r.getZoom()>14?r.setZoom(14):n.stores.length==0&&r.setZoom(1)})}function P(){const o={},e=new google.maps.places.AutocompleteService,t=new google.maps.places.PlacesService(v);g.autocomplete({minLength:2,delay:500,source:(l,i)=>{var d,m;const p=`${(d=c.find("option:selected"))==null?void 0:d.data("iso2-code")}_____${$.trim(l.term)}`;
606return p in o?(i(r(o[p])),!1):(e.getPlacePredictions({input:$.trim(g.val()),types:["geocode"],componentRestrictions:{country:(m=c.find("option:selected"))==null?void 0:m.data("iso2-code")}},B=>{o[p]=B,i(r(o[p]))}),!1)},focus:()=>!1,select:(l,i)=>(g.val(i.item.label),s(i.item.value).then(()=>{a?c.val(c.find(`option[data-iso2-code=${a.country}]`).val()):c.val(""),c.trigger("refresh")}),u.length>0&&w(),!1)});function r(l){return l&&l.length>0?$.map(l,i=>({value:i.place_id,label:i.description})):[]}function s(l){return new Promise((i,S)=>{t.getDetails({placeId:l},p=>{p?(M(p),f().then(()=>{i()})):S()})})}}function M(o){if(o&&o.address_components){a={latitude:o.geometry.location.lat(),longitude:o.geometry.location.lng(),region:null,city:null,postCode:null,country:null};for(const e of o.address_components)for(const t of e.types)t==="postal_code"?a.postCode=e.short_name:t==="administrative_area_level_1"?a.region=e.long_name:t==="locality"||t==="postal_town"?a.city=e.long_name:t==="country"&&(a.country=e.short_name)}}}})(); 607 608(()=>{const C=window.Syvo.Store_Locator_Index_v2=new SyvoModule("Store_Locator_Index_v2",ye);C.eventNames.onStoresFound=C.getModuleEventName("onStoresFound"),C.eventNames.onMarkerClick=C.getModuleEventName("onMarkerClick");function ye(X){const Y=$(window),x=$(document),e={};let E=!1;const P="user_geolocation",j="search_on_map_change",u=Object.freeze({DEFAULT:0,LOCATION:1,BOUNDS:2,USER_GEOLOCATION:3,AUTOCOMPLETE:4}),J={storesData:[],lazyContent:null,filterData:null,mapParams:{},baseLocatorUrl:"/store-locator",searchByDefaultUrl:"/store-locator/search",searchByLocationUrl:"/store-locator/search/country",searchByUserGeolocationUrl:"/store-locator/search/user-geolocation",searchByBoundsUrl:"/store-locator/search/bounds",searchByAutocompleteUrl:"/store-locator/search/autocomplete",useMarkerClusters:!1,googleMapsKey:null,defaultSearchRadiusInMeters:null,enableUserGeolocationServicesByDefault:!1,messages:{notFound:"",error:"",nearByUser:"",nearByLocation:"",pleaseSelectLocationFromTheList:"",miles:""},scrollToStore:!0,breakpoint:992,map:{selector:"[data-property=map]",styles:[{featureType:"administrative",elementType:"all",stylers:[{visibility:"on"},{lightness:33}]},{featureType:"administrative",elementType:"labels",stylers:[{saturation:"-100"}]},{featureType:"administrative",elementType:"labels.text",stylers:[{gamma:"0.75"}]},{featureType:"administrative.neighborhood",elementType:"labels.text.fill",stylers:[{lightness:"-37"}]},{featureType:"landscape",elementType:"geometry",stylers:[{color:"#f9f9f9"}]},{featureType:"landscape.man_made",elementType:"geometry",stylers:[{saturation:"-100"},{lightness:"40"},{visibility:"off"}]},{featureType:"landscape.natural",elementType:"labels.text.fill",stylers:[{saturation:"-100"},{lightness:"-37"}]},{featureType:"landscape.natural",elementType:"labels.text.stroke",stylers:[{saturation:"-100"},{lightness:"100"},{weight:"2"}]},{featureType:"landscape.natural",elementType:"labels.icon",stylers:[{saturation:"-100"}]},{featureType:"poi",elementType:"geometry",stylers:[{saturation:"-100"},{lightness:"80"}]},{featureType:"poi",elementType:"labels",stylers:[{saturation:"-100"},{lightness:"0"}]},{featureType:"poi.attraction",elementType:"geometry",stylers:[{lightness:"-4"},{saturation:"-100"}]},{featureType:"poi.park",elementType:"geometry",stylers:[{color:"#c5dac6"},{visibility:"on"},{saturation:"-95"},{lightness:"62"}]},{featureType:"poi.park",elementType:"labels",stylers:[{visibility:"on"},{lightness:20}]},{featureType:"road",elementType:"all",stylers:[{lightness:20}]},{featureType:"road",elementType:"labels",stylers:[{saturation:"-100"},{gamma:"1.00"}]},{featureType:"road",elementType:"labels.text",stylers:[{gamma:"0.50"}]},{featureType:"road",elementType:"labels.icon",stylers:[{saturation:"-100"},{gamma:"0.50"}]},{featureType:"road.highway",elementType:"geometry",stylers:[{color:"#c5c6c6"},{saturation:"-100"}]},{featureType:"road.highway",elementType:"geometry.stroke",stylers:[{lightness:"-13"}]},{featureType:"road.highway",elementType:"labels.icon",stylers:[{lightness:"0"},{gamma:"1.09"}]},{featureType:"road.arterial",elementType:"geometry",stylers:[{color:"#e4d7c6"},{saturation:"-100"},{lightness:"47"}]},{featureType:"road.arterial",elementType:"geometry.stroke",stylers:[{lightness:"-12"}]},{featureType:"road.arterial",elementType:"labels.icon",stylers:[{saturation:"-100"}]},{featureType:"road.local",elementType:"geometry",stylers:[{color:"#fbfaf7"},{lightness:"77"}]},{featureType:"road.local",elementType:"geometry.fill",stylers:[{lightness:"-5"},{saturation:"-100"}]},{featureType:"road.local",elementType:"geometry.stroke",stylers:[{saturation:"-100"},{lightness:"-15"}]},{featureType:"transit.station.airport",elementType:"geometry",stylers:[{lightness:"47"},{saturation:"-100"}]},{featureType:"water",elementType:"all",stylers:[{visibility:"on"},{color:"#acbcc9"}]},{featureType:"water",elementType:"geometry",stylers:[{saturation:"53"}]},{featureType:"water",elementType:"labels.text.fill",stylers:[{lightness:"-42"},{saturation:"17"}]},{featureType:"water",elementType:"labels.text.stroke",stylers:[{lightness:"61"}]}],searchOnMapChangeInputSelector:"[data-property=store-locator-search-on-map-change]",searchInMapAreaBtnSelector:"[data-trigger=store-locator-search-in-map-area]"},filter:{formSelector:"[data-property=store-locator-v2-filter-form]",submitButtonSelector:"button[type=submit]",searchR
608adiusInMetersInputSelector:"[name=searchRadiusInMeters]",brandIdsInputSelector:"[name='brandIds[]']",collectionTypeIdsInputSelector:"[name='collectionTypeIds[]']",upcomingTrunkShowsFirstInputSelector:"[name=upcomingTrunkShowsFirst]",userGeolocationInputSelector:"[data-property=store-locator-use-user-geolocation]",countryInputSelector:"[data-property=store-locator-country-code]",regionCodeInputSelector:"[data-property=store-locator-region-code]",userGeolocationInputErrorSelector:"[data-property=store-locator-use-user-geolocation-error-block]",autocompleteInputSelector:"[data-property=store-locator-search-term]",countryIdDataAttr:"data-country-id",countryNameDataAttr:"data-country-name",countryCodeDataAttr:"data-country-code",regionCountryIdDataAttr:"data-country-id",regionIdDataAttr:"data-region-id",regionCodeDataAttr:"data-region-code",regionNameDataAttr:"data-region-name",searchTermFormInputAutocompleteClass:""},stores:{content:"[data-content=store-finder-content]",results:"[data-property=store-finder-results]",storeList:"[data-content=store-finder-list]",selector:"[data-store-info]",storeSelectedClass:"selected-store",storeIdDataAttr:"data-store-info-id",storeLatitudeDataAttr:"data-store-info-latitude",storeLongitudeDataAttr:"data-store-info-longitude",storeNameDataAttr:"data-store-info-name",storeAddressDataAttr:"data-store-info-address",storePhoneDataAttr:"data-store-info-phone",storeGooglePlaceIdDataAttr:"data-store-info-google-place-id",storeUrlDataAttr:"data-store-info-url",storeUserFriendlyUrlDataAttr:"data-store-info-user-friendly-url",storeBusinessUrlDataAttr:"data-store-info-business-url",storeBrandIdsDataAttr:"data-store-info-brands",storeCollectionTypeIdsDataAttr:"data-store-info-collection-types",maxInitialCount:50,showAllBtnSelector:"[data-trigger=store-locator-show-all-stores]",hideAllBtnSelector:"[data-trigger=store-locator-hide-all-stores]"},useSecondSearchIfEmptyResult:!1,callbacks:{onSuccessSearch(){}}};let n={...J};C.init=z,C.destroy=ee,C.reload=ge,z(X);function z(t){if(E)return;const r=c(t);if(!p(r))return;n=r;const o=[],s=Common.GoogleMapsApi.getLoader();if(o.push(s({key:n.googleMapsKey})),n.useMarkerClusters){const d=Common.GoogleMapsApi.getMarkerClustererLoader();o.push(d())}Promise.all(o).then(()=>{a(),i(),l(),E=!0}).catch(d=>{console.error(d)});function a(){var M,_,G,U,D,S,y,me,fe;e.isAutocompleteInputValid=!0,qe(),He(),e.$content=$(n.stores.content),e.$filterForm=$(n.filter.formSelector),e.$submitButton=e.$filterForm.find(n.filter.submitButtonSelector),e.$countryInput=e.$filterForm.find(n.filter.countryInputSelector),e.$regi
608onCodeInput=e.$filterForm.find(n.filter.regionCodeInputSelector),e.$searchRadiusInMetersInput=e.$filterForm.find(n.filter.searchRadiusInMetersInputSelector),e.$brandIdsInput=e.$filterForm.find(n.filter.brandIdsInputSelector),e.$collectionTypeIdsInput=e.$filterForm.find(n.filter.collectionTypeIdsInputSelector),e.$upcomingTrunkShowsFirstInput=e.$filterForm.find(n.filter.upcomingTrunkShowsFirstInputSelector),e.$userGeolocationInput=e.$filterForm.find(n.filter.userGeolocationInputSelector),e.$userGeolocationError=e.$filterForm.find(n.filter.userGeolocationInputErrorSelector),e.$autocompleteInput=e.$filterForm.find(n.filter.autocompleteInputSelector),e.$showAllStoresButton=$(n.stores.showAllBtnSelector),e.$hideAllStoresButton=$(n.stores.hideAllBtnSelector),e.$searchOnMapChangeInput=$((M=n.map)==null?void 0:M.searchOnMapChangeInputSelector),e.$searchInMapAreaBtn=$((_=n.map)==null?void 0:_.searchInMapAreaBtnSelector),e.autocompleteService=new google.maps.places.AutocompleteService,e.placeService=new google.maps.places.PlacesService(document.createElement("div")),e.infoWindow=new google.maps.InfoWindow({map:e.mapService}),e.lazyContent=n.lazyContent?n.lazyContent:null,w(n.storesData,!0);const d=new URI(window.location.pathname.replace(n.baseLocatorUrl,"")),m=d.segment().filter(et=>!!et),I=d.query(!0);e.searchType=u.DEFAULT,m.length>0?m.length===3?(e.autocomplete={text:(U=(G=n.filterData)==null?void 0:G.filterParams)==null?void 0:U.searchTerm,countryCode:decodeURIComponent(m[0]),regionCode:decodeURIComponent(m[1]),postCodeOrCity:decodeURIComponent(m[2]),location:(D=n.mapParams)!=null&&D.location?{lat:(S=n.mapParams)==null?void 0:S.location.lat,lng:(y=n.mapParams)==null?void 0:y.location.lng}:null},e.location={countryCode:decodeURIComponent(m[0]),regionCode:decodeURIComponent(m[1]),postCodeOrCity:decodeURIComponent(m[2])},e.searchType=I.searchRadiusInMeters||n.defaultSearchRadiusInMeters?u.AUTOCOMPLETE:u.LOCATION):(e.searchType=u.LOCATION,e.location={countryCode:decodeURIComponent(m[0])},m.length===2&&(e.location.regionCode=decodeURIComponent(m[1]))):I.useUserGeolocation==="true"||(fe=(me=n.filterData)==null?void 0:me.filterParams)!=null&&fe.userGeolocationUsed?e.searchType=u.USER_GEOLOCATION:I.hasOwnProperty("mapBounds")?(e.searchType=u.BOUNDS,e.initBoundsOnMapReady=!0):e.searchType=u.DEFAULT}function i(){e.mapService&&(e.mapService.addListener("bounds_changed",Se),e.mapService.addListener("idle",$e),e.infoWindow.addListener("closeclick",Ie),e.$searchOnMapChangeInput.on("change",he),e.$searchInMapAreaBtn.on("click",Ce),Y.on("resize gestureend syvo:pinchend orientationchange",be)),e.$filterForm.on("submit",ve),e.$submitButton.on("click",ke),e.$countryInput.on("change",Ue),e.$regionCodeInput.on("change",De),e.$searchRadiusInMetersInput.on("change",Ee),e.$brandIdsInput.on("change",Le),e.$collectionTypeIdsInput.on("change",Me),e.$upcomingTrunkShowsFirstInput.on("change",Be),e.$userGeolocationInput.on("change",Pe),e.$autocompleteInput.on("keyup cut",Fe),e.$autocompleteInput.on("blur",Re),e.$autocompleteInput.on("focus",Ne),e.$autocompleteInput.on("change blur",_e),e.$showAllStoresButton.on("click",we),e.$hideAllStoresButton.on("click",Oe)}function l(){jQuery.validator&&typeof jQuery.validator=="function"&&jQuery.validator.addMethod("sllocationselected",(d,m,I)=>e.isAutocompleteInputValid,n.messages.pleaseSelectLocationFromTheList),e.validator=e.$filterForm.validate({errorElement:"label",errorClass:"error",validClass:"valid"}),je(),b(!0),We(),f(),ze(!0).then(d=>{if(e.searchType===u.USER_GEOLOCATION){e.userGeolocation=d;return}n.enableUserGeolocationServicesByDefault&&d&&e.searchType===u.DEFAULT&&(e.userGeolocation=d,e.$countryInput.val(""),e.$regionCodeInput.val(""),e.$userGeolocationInput.prop("checked",!0),g(),A(),T(),f(),Q(!0))})}function c(d){return $.extend(!0,{},J,X,d)}function p(d){return!!d&&!!d.map&&!!d.filter}}function ee(){if(!E)return;t(),E=!1;function t(){n={}}function r(){}function o(){}}function ge(t){ee(),z(t)}function he(t){const r=$(t.currentTarget);e.searchOnMapBoundsChange=r.prop("checked"),e.searchOnMapBoundsChange?(e.$searchInMapAreaBtn.hide(),$.cookie(j,!0,{expires:1,path:Common.getBaseHref()})):$.removeCookie(j)}function Ce(t){e.searchType=u.BOUNDS,e.bounds=e.mapService.getBounds(),T(),g(),h(),f(),H()}function Se(t){if(Common.GoogleMapsApi.makeADACompliant(e.mapEl),e.bounds=e.mapService.getBounds(),!e.isBounds
608FilterReady||e.isUpdatingMap){e.$searchInMapAreaBtn.hide();return}e.$searchOnMapChangeInput.length>0?e.searchOnMapBoundsChange?(e.isUpdatingCluster=!1,g(),h(),T(),f(),V()):e.selectedStoreId||e.$searchInMapAreaBtn.show():e.$searchInMapAreaBtn.length>0?e.selectedStoreId||e.$searchInMapAreaBtn.show():(g(),h(),T(),f(),V())}function $e(t){Common.GoogleMapsApi.makeADACompliant(e.mapEl),e.initBoundsOnMapReady&&(e.bounds=e.mapService.getBounds(),e.initBoundsOnMapReady=!1),setTimeout(()=>{e.isBoundsFilterReady=!0,e.isUpdatingCluster=!1},500)}function Ie(){Z(null,!1)}function Te(t){const r=t.get("store-id"),o=e.stores.find(a=>a.id.toString()===r.toString());if(!o)return;let s=`<span><b>${o.name}</b><br/>${o.address}</span>`;o.url&&(s+=`<br/><a target="_blank" href="${o.url}">${o.userFriendlyUrl}</a>`),o.phone&&(s+=`<br/><span>${o.phone}</span>`),o.businessUrl&&(s+=`<br/><a target="_blank" href="${o.businessUrl}"> Get Directions </a>`),e.infoWindow.setContent(s),e.infoWindow.open(e.mapService,t),!o.isHidden||e.showAllStores?(pe(o),Z(o)):N(!0).then(()=>{pe(o),Z(o)}),Y.trigger(C.eventNames.onMarkerClick,{store:o})}function Ae(t,r,o){e.isUpdatingCluster=!0,markerClusterer.defaultOnClusterClickHandler(t,r,o),console.log(r)}function be(t){b(),N(e.showAllStores)}function we(t){N(!0)}function Oe(t){N(!1)}function ve(t){t.preventDefault(),re()}function ke(t){t.preventDefault(),re()}function Be(t){v()}function Le(t){v()}function Me(t){v()}function Ue(t){var a,i;const o=$(t.currentTarget).find(":selected"),s=o.attr(n.filter.countryCodeDataAttr);if(o.length===0||!s){if(!e.location)return;e.$regionCodeInput.prop("disabled",!0),e.$regionCodeInput.val(""),h(),g(),e.location=null,f(),k()}else{if(s.toLowerCase()===((i=(a=e.location)==null?void 0:a.countryCode)==null?void 0:i.toLowerCase()))return;const l=o.attr(n.filter.countryIdDataAttr),c=o.attr(n.filter.countryNameDataAttr);h(),g(),A(),ce(l),e.location={countryId:l,countryCode:s,countryName:c},f(),B()}}function De(t){var a,i,l;const o=$(t.currentTarget).find(":selected"),s=o.attr(n.filter.regionCodeDataAttr);if(o.length===0||!s){if(!((a=e.location)!=null&&a.regionCode))return;te(),f(),B()}else{if(s.toLowerCase()===((l=(i=e.location)==null?void 0:i.regionCode)==null?void 0:l.toLowerCase()))return;const c=o.attr(n.filter.regionIdDataAttr),p=o.attr(n.filter.regionNameDataAttr);h(),g(),A(),f(),e.location.regionCode=s,e.location.regionId=c,e.location.regionName=p,B()}}function Ee(t){v()}function Pe(t){const r=$(t.currentTarget),o=r.prop("checked");$.removeCookie(P),o===!0?(e.searchType=u.USER_GEOLOCATION,q().then(s=>{e.userGeolocation=s,e.$countryInput.val(""),e.$regionCodeInput.val(""),g(),A(),T(),f(),le()},()=>{r.prop("checked",!1),h(),f(),e.searchType=u.DEFAULT})):(h(),f(),e.searchType=u.DEFAULT,k())}function Fe(t){$(t.currentTarget).val()||(g(),R()||te(),F()?(f(),e.searchType=u.LOCATION,B()):(T(),f(),e.searchType=u.DEFAULT,k()))}function Re(t){var s;const o=$(t.currentTarget).val();(!o||o!==((s=e.autocomplete)==null?void 0:s.text))&&e.searchType===u.AUTOCOMPLETE&&(e.autocomplete=null,e.searchType=e.location?u.LOCATION:u.DEFAULT)}function Ne(t){const r=$(t.currentTarget),o=r.val();o?r.data("uiAutocomplete").search(o):(e.autocomplete=null,e.searchType===u.AUTOCOMPLETE&&(e.searchType=e.location?u.LOCATION:u.DEFAULT))}function _e(t){var s,a;const o=$(t.currentTarget).val();e.isAutocompleteInputValid=!o&&!((s=e.autocomplete)!=null&&s.text)||o===((a=e.autocomplete)==null?void 0:a.text)}function Ge(t,r){h(),A(),xe(r).then(()=>{se()})}function g(){e.$autocompleteInput.val(""),e.autocomplete=null,e.isAutocompleteInputValid=!0}function xe(t){return new Promise((s,a)=>{let i=setTimeout(()=>{a()},1e4);e.autocomplete={text:t.item.label},e.$autocompleteInput.val(t.item.label),r(t.item.value).then(l=>{l&&(o(l),$.each(e.$autocompleteInput,(c,p)=>{e.validator.element(p)}),clearTimeout(i),s())},()=>{clearTimeout(i),a()})});function r(s){return new Promise((a,i)=>{e.placeService.getDetails({placeId:s,fields:["address_component","formatted_address","geometry","place_id"],sessionToken:e.sessionToken},l=>{e.sessionToken=null,a(l)})})}function o(s){if(s!=null&&s.address_components){e.autocomplete=e.autocomplete||{};const a={place:s,countryCode:null,regionCode:null,postCodeOrCity:null,postCode:null,formattedAddress:s.formatted_address,location:{lat:s.geometry.location.lat(),lng:s.geometry.location.lng()}};$.extend(!0,e.autocomplete,a);let i=!1;for(let l=0;l<s.address_components.length;l++){const c=s.address_components[l];for(let p=0;p<c.types.length;p++){const d=c.types[p];d==="administrative_area_level_1"?e.autocomplete.regionCode=c.short_name:d==="country"&&(e.autocomplete.countryCode=c.short_name),e.autocomplete.postCodeOrCity||(d==="postal_code"||d==="postal_town"||d==="locality")&&(e.autocomplete.postCodeOrCity=c.short_name),e.autocomplete.postCode||d==="postal_code"&&(e.autocomplete.postCode=c.short_name),i=i||["neighborhood","route","street_number","street_address"].indexOf(d)!==-1}}i&&(e.autocomplete.postCode=null),e.autocomplete.postCodeOrCity||(e.autocomplete.boun
608ds=s.geometry.viewport),e.isAutocompleteInputValid=!0}if(e.location={countryCode:e.autocomplete.countryCode,regionCode:e.autocomplete.regionCode,postCodeOrCity:e.autocomplete.postCodeOrCity},e.$countryInput.length>0)if(e.autocomplete.countryCode){const a=e.$countryInput.find("option").filter((i,l)=>{const p=$(l).attr(n.filter.countryCodeDataAttr);if(p)return p.toLowerCase()===e.autocomplete.countryCode.toLowerCase()});if(a.length>0){a.prop("selected",!0);const i=a.attr(n.filter.countryIdDataAttr);if(e.$regionCodeInput.length>0){if(!ce(i)){e.$regionCodeInput.prop("disabled",!0),e.$regionCodeInput.val(""),f();return}if(e.autocomplete.regionCode){const c=e.$regionCodeInput.find("option").filter((p,d)=>{var m;return((m=$(d).attr(n.filter.regionCodeDataAttr))==null?void 0:m.toLowerCase())===e.autocomplete.regionCode.toLowerCase()});c.length>0?c.prop("selected",!0):e.$regionCodeInput.val("")}else e.$regionCodeInput.val("");e.$regionCodeInput.prop("disabled",!1)}}else e.$countryInput.val(""),e.$regionCodeInput.prop("disabled",!0),e.$regionCodeInput.val("")}else e.$countryInput.val(""),e.$regionCodeInput.val(""),e.$regionCodeInput.prop("disabled",!0);f()}}function je(){const t={};e.$autocompleteInput.autocomplete({minLength:2,delay:500,classes:{"ui-autocomplete":n.filter.searchTermFormInputAutocompleteClass},source:(a,i)=>{var U,D;const l=a.term.trim();if(l in t){i(t[l]);return}const c=(U=F())==null?void 0:U.countryCode,p=(D=R())==null?void 0:D.regionCode,d=e.$autocompleteInput.val().trim(),m=o().trim(),I=s().trim(),M=l.replaceAll(" ","").toLowerCase(),_=m.replaceAll(" ","").toLowerCase(),G=I.replaceAll(" ","").toLowerCase();if(e.sessionToken=e.sessionToken||new google.maps.places.AutocompleteSessionToken,M===_||M===G){const S={input:I,types:p?["(regions)"]:["geocode"],sessionToken:e.sessionToken};c&&(S.componentRestrictions={country:c}),e.autocompleteService.getPlacePredictions(S,y=>{t[l]=y,y&&(t[l]=r(y),i(t[l]))})}else{const S={input:d,types:["geocode"],sessionToken:e.sessionToken};c&&(S.componentRestrictions={country:c}),e.autocompleteService.getPlacePredictions(S,y=>{t[l]=y,y&&(t[l]=r(y),i(t[l]))})}return!1},focus:()=>()=>!1,select:(a,i)=>(Ge(a,i),!1)});function r(a){return a&&a.length>0?$.map(a,i=>({value:i.place_id,label:i.description})):[]}function o(){var i,l;const a=[];return a.push((i=F())==null?void 0:i.countryCode),a.push((l=R())==null?void 0:l.regionCode),a.filter(c=>!!c).join(", ")}function s(){var i,l;const a=[];return a.push((i=F())==null?void 0:i.countryName),a.push((l=R())==null?void 0:l.regionName),a.filter(c=>!!c).join(", ")}}function ze(t){return new Promise((r,o)=>{var a,i;if(!((i=(a=n.filterData)==null?void 0:a.filterParams)!=null&&i.userGeolocationUsed)&&!(t&&n.enableUserGeolocationServicesByDefault)){r();return}const s=$.cookie(P);if(s){const l=JSON.parse(s);if(l!=null&&l.latitude&&l.longitude){r(l);return}}q(t).then(l=>{r(l)},()=>{r(null)})})}function q(t){return new Promise((r,o)=>{navigator.geolocation&&(t&&n.enableUserGeolocationServicesByDefault||e.$userGeolocationInput.length>0)?navigator.geolocation.getCurrentPosition(a=>{var l,c;let i={latitude:(l=a==null?void 0:a.coords)==null?void 0:l.latitude,longitude:(c=a==null?void 0:a.coords)==null?void 0:c.longitude};if(i.latitude&&i.longitude){const p=JSON.stringify(i);$.cookie(P,p,{expires:1,path:Common.getBaseHref()}),s(!0),r(i);return}s(!1,"Your geolocation is unavailable"),o()},a=>{switch(a.code){case a.PERMISSION_DENIED:$.cookie(P,null),s(!1,"Please provide access to geolocation"),o();break;case a.POSITION_UNAVAILABLE:s(!1,"Your location is unavailable"),o();break;case a.TIMEOUT:console.log("The request took too long. Please try again."),o();break;default:s(!1,""),console.log("An unknown error occurred.");break}}):o();function s(a,i=""){e.$userGeolocationError.html(i),e.hasGeolocationError=a}})}function h(){e.$userGeolocationInput.prop("checked",!1),e.userGeolocation=null}function f(){var t;!((t=e.autocomplete)!=null&&t.postCodeOrCity)&&!e.userGeolocation?(e.$searchRadiusInMetersInput.prop("disabled",!0),e.$searchRadiusInMetersInput.val("")):(e.$searchR
608adiusInMetersInput.prop("disabled",!1),n.defaultSearchRadiusInMeters||e.$searchRadiusInMetersInput.find("option:visible:not([disabled])").filter(r=>!!$(r).val()).filter(":first").prop("selected",!0))}function T(){e.$regionCodeInput.val(""),e.$countryInput.val(""),e.location=null}function te(){e.$regionCodeInput.val(""),e.location&&(e.location.regionId=null,e.location.regionCode=null,e.location.regionName=null)}function qe(){if(!n.map)return;const t=$(n.map.selector);if(t.length===0)return;e.mapEl=t[0];const r={mapTypeControl:!1,minZoom:1,maxZoom:14};n.map.styles&&(r.styles=n.map.styles),e.mapService=new google.maps.Map(e.mapEl,r)}function Ve(){e.mapService&&(A(),e.mapService.setZoom(14))}function A(){e.bounds=null}function He(){n.useMarkerClusters&&(Qe(),e.markerClusterer=new markerClusterer.MarkerClusterer({map:e.mapService,markers:e.markers,renderer:e.syvoDefaultMarkerClusterRenderer,onClusterClick:Ae}))}function Qe(){if(n.useMarkerClusters&&!e.syvoDefaultMarkerClusterRenderer){class t extends markerClusterer.DefaultRenderer{render({count:o,position:s}){return new google.maps.Marker({label:{text:o.toString(),color:"#fff",fontSize:"10px"},position:s,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+o})}}e.syvoDefaultMarkerClusterRenderer=new t}}function Ze(){e.mapService&&(e.markers&&(n.useMarkerClusters&&e.markerClusterer.clearMarkers(),e.markers.forEach(t=>{google.maps.event.clearListeners(t,"mousedown"),t.setMap(null)})),e.markers=null)}function oe(){if(Ze(),e.stores.length>0){const t=Number(google.maps.Marker.MAX_ZINDEX);e.markers=[];for(let r=0;r<e.stores.length;r++){const o=e.stores[r],s={position:new google.maps.LatLng(o.location.coordinates.latitude,o.location.coordinates.longitude),optimized:!1,map:e.mapService};if(n.customPins&&(n.customPins.defaultPinPath&&(s.icon=n.customPins.defaultPinPath),n.customPins.conditionalPins))for(let i of n.customPins.conditionalPins)i.conditionExpression&&i.conditionExpression(o)&&(s.icon=i.path,s.zIndex=t+(e.stores.length-r));const a=new google.maps.Marker(s);a.set("store-id",o.id),e.markers.push(a),google.maps.event.addListener(a,"mousedown",()=>Te(a))}n.useMarkerClusters&&e.markerClusterer.addMarkers(e.markers)}}function b(t=!1,r=!0){var o,s,a,i;if(e.mapService){if(e.isUpdatingMap=!0,e.isBoundsFilterReady=!1,Ve(),oe(),r){const l=new google.maps.LatLngBounds;if(e.stores.length>0)e.markers.forEach(c=>{l.extend(c.position)}),e.mapService.fitBounds(l);else if(t)if((o=n.mapParams)!=null&&o.location){const c=new google.maps.LatLng(n.mapParams.location.lat,n.mapParams.location.lng);e.mapService.setCenter(c),e.mapService.setZoom((s=e.autocomplete)!=null&&s.postCodeOrCity?14:7)}else{const c=new google.maps.LatLng(0,0);e.mapService.setCenter(c),e.mapService.setZoom(1)}else if((a=e.autocomplete)!=null&&a.location){const c=new google.maps.LatLng(e.autocomplete.location.lat,e.autocomplete.location.lng);e.mapService.setCenter(c),e.autocomplete.bounds?e.mapService.fitBounds(e.autocomplete.bounds):e.mapService.setZoom((i=e.autocomplete)!=null&&i.postCodeOrCity?14:7)}else{const c=new google.maps.LatLng(0,0);e.mapService.setCenter(c),e.mapService.setZoom(1)}}setTimeout(()=>{e.isUpdatingMap=!1},500)}}function We(){$.cookie(j)&&(e.$searchOnMapChangeInput.prop("checked",!0),e.$searchInMapAreaBtn.hide(),e.searchOnMapBoundsChange=!0)}function O(){var t,r;if(typeof((t=n.callbacks)==null?void 0:t.onSuccessSearch)=="function"&&n.callbacks.onSuccessSearch(e),e.stores&&e.stores.length>=0){if(e.searchType===u.LOCATION||e.searchType===u.AUTOCOMPLETE){let o=(r=e.autocomplete)==null?void 0:r.formattedAddress;!o&&e.location&&(e.location.regionCode?o=`${e.location.regionCode}, ${e.location.countryCode}`:o=e.location.countryCode);const s={location:o,count:e.stores.length};x.trigger(window.Syvo.Google_Analytics_4.eventNames.onSearchStoresByLocation,s),x.trigger(window.Syvo.Google_Tag_Manager.eventNames.onSearchStoresByLocation,s)}}else x.trigger(window.Syvo.Customer_Demand.eventNames.reload)}function v(){switch(e.searchType){case u.LOCATION:B();break;case u.USER_GEOLOCATION:le();break;case u.BOUNDS:V();break;case u.AUTOCOMPLETE:se();break;case u.DEFAULT:default:k();break}}
608function re(){switch(e.searchType){case u.LOCATION:ae();break;case u.USER_GEOLOCATION:Q();break;case u.BOUNDS:H();break;case u.AUTOCOMPLETE:ie();break;case u.DEFAULT:default:ne();break}}function k(){e.searchType=u.DEFAULT,e.$submitButton.length===0&&ne()}function ne(){if(!e.$filterForm.valid()||e.isSending)return;const t=Common.serializeFormToObject(e.$filterForm,!1,!0),r=Common.toQueryParams(t);e.isSending=!0,e.$submitButton.prop("disabled",!0),Common.showLoader(),$.ajax({url:n.searchByDefaultUrl,type:"GET",data:r}).done(o=>{if(w(o.stores),b(),L(o.viewContent).finally(()=>{setTimeout(()=>{e.isSending=!1},500)}),window.history.pushState){let s=n.baseLocatorUrl;if(Object.keys(t).length>0){const a=Common.toQueryParams(t);s+=`?${a}`}window.history.pushState({path:s},"",s)}O()}).error((o,s,a)=>{o.status==404,e.isSending=!1}).always(()=>{e.$submitButton.prop("disabled",!1),Common.hideLoader()})}function B(){e.searchType=u.LOCATION,e.$submitButton.length===0&&ae()}function ae(){if(e.isSending||!e.location||!e.$filterForm.valid())return;const t=Common.serializeFormToObject(e.$filterForm,!1,!0),r={...t};r.countryCode=e.location.countryCode,e.location.regionCode&&(r.regionCode=e.location.regionCode);const o=Common.toQueryParams(r);e.isSending=!0,e.$submitButton.prop("disabled",!0),Common.showLoader(),$.ajax({url:n.searchByLocationUrl,type:"GET",data:o}).done(s=>{if(w(s.stores),b(),L(s.viewContent).finally(()=>{setTimeout(()=>{e.isSending=!1},500)}),window.history.pushState){const a=[n.baseLocatorUrl];e.location.countryCode&&(a.push(encodeURIComponent(e.location.countryCode)),e.location.regionCode&&a.push(encodeURIComponent(e.location.regionCode)));let i=a.join("/");if(Object.keys(t).length>0){const l=Common.toQueryParams(t);i+=`?${l}`}window.history.pushState({path:i},"",i)}O()}).error((s,a,i)=>{s.status==404,e.isSending=!1}).always(()=>{e.$submitButton.prop("disabled",!1),Common.hideLoader()})}function V(){if(!e.mapService){e.searchType=u.DEFAULT,k();return}e.searchType=u.BOUNDS,H()}function H(){if(e.isSending||!e.mapService||!e.bounds||!e.$filterForm.valid())return;const t=Ke();e.isSending=!0,e.$submitButton.prop("disabled",!1),Common.showLoader(),$.ajax({url:n.searchByBoundsUrl,type:"GET",data:t}).done(r=>{w(r.stores),oe(),L(r.viewContent).finally(()=>{setTimeout(()=>{e.isSending=!1,e.$searchInMapAreaBtn.hide()},500)}),Xe(t),O()}).error((r,o,s)=>{r.status==404,e.isSending=!1}).always(()=>{Common.hideLoader(),e.$submitButton.prop("disabled",!1)})}
608function Ke(){const t=e.bounds.getSouthWest(),r=e.bounds.getNorthEast(),o=Common.serializeFormToObject(e.$filterForm,!1,!0);return o.mapBounds={sw:{lat:t.lat(),lng:t.lng()},ne:{lat:r.lat(),lng:r.lng()}},Common.toQueryParams(o)}function Xe(t){if(window.history.pushState){let r=`${n.baseLocatorUrl}?${t}`;window.history.pushState({path:r},"",r)}}function se(){var t;(t=e.autocomplete)!=null&&t.postCodeOrCity?(e.searchType=u.AUTOCOMPLETE,e.$submitButton.length===0&&ie()):(e.searchType=e.location?u.LOCATION:u.DEFAULT,v())}function ie(){if(e.isSending||!e.autocomplete||!e.$filterForm.valid())return;const t={location:e.autocomplete.location,searchTerm:e.autocomplete.text,postCodeOrCity:e.autocomplete.postCode},r=Common.serializeFormToObject(e.$filterForm,!1,!0),o=$.extend(!0,{},r,t),s=Common.toQueryParams(o);e.isSending=!0,e.$submitButton.prop("disabled",!1),Common.showLoader(),$.ajax({url:n.searchByAutocompleteUrl,type:"GET",data:s}).done(a=>{w(a.stores),b(),L(a.viewContent).finally(()=>{setTimeout(()=>{e.isSending=!1},500)});let i=e.autocomplete.countryCode,l=e.autocomplete.regionCode,c=e.autocomplete.postCodeOrCity;if(window.history.pushState){const p=[n.baseLocatorUrl];i&&(p.push(encodeURIComponent(i)),l&&(p.push(encodeURIComponent(l)),c&&p.push(encodeURIComponent(c))));let d=p.join("/");Object.keys(r).length>0&&(d+=`?${Common.toQueryParams(r)}`),window.history.pushState({path:d},"",d)}O()}).error((a,i,l)=>{a.status==404,e.isSending=!1}).always(()=>{Common.hideLoader(),e.$submitButton.prop("disabled",!1)})}function le(){e.searchType=u.USER_GEOLOCATION,e.$submitButton.length===0&&Q()}function Q(t){if(e.isSending||!e.$filterForm.valid()||e.$userGeolocationInput.length===0&&!(t&&n.enableUserGeolocationServicesByDefault))return;t&&n.enableUserGeolocationServicesByDefault?r():q().then(()=>{r()});function r(){const o=Common.serializeFormToObject(e.$filterForm,!1,!0),s=Common.toQueryParams(o);e.isSending=!0,e.$submitButton.prop("disabled",!0),Common.showLoader(),$.ajax({url:n.searchByUserGeolocationUrl,type:"GET",data:s}).done(a=>{if(w(a.stores),b(),L(a.viewContent).finally(()=>{setTimeout(()=>{e.isSending=!1},500)}),e.$userGeolocationInput.length&&(o.useUserGeolocation=!0),window.history.pushState){let i=Object.keys(o).length?`${n.baseLocatorUrl}?${Common.toQueryParams(o)}`:n.baseLocatorUrl;window.history.pushState({path:i},"",i)}O()}).error((a,i,l)=>{a.status==404,e.isSending=!1}).always(()=>{e.$submitButton.prop("disabled",!1),Common.hideLoader()})}}function w(t,r=!1){if(r&&t.length>n.stores.maxInitialCount){for(let o=n.stores.maxInitialCount;o<t.length;o++)t[o].isHidden=!0;e.showAllStores=!1,e.$hideAllStoresButton.hide(),e.$showAllStoresButton.show()}else e.showAllStores=!0,e.$hideAllStoresButton.hide(),e.$showAllStoresButton.hide();e.stores=t,e.$initialStoreListItems=K()}function L(t){return new Promise((r,o)=>{ue(),setTimeout(()=>{const s=$(t);e.$content.html("").append(s),e.$showAllStoresButton.hide(),e.$hideAllStoresButton.hide(),de(),r()},500)})}function ce(t){const r=e.$regionCodeInput.find("option");let o=!1;return $.each(r,(s,a)=>{const i=$(a),l=i.attr(n.filter.regionCountryIdDataAttr);l&&(l===t?(i.show(),o=!0):i.hide())}),o?e.$regionCodeInput.prop("disabled",!1):(e.$regionCodeInput.prop("disabled",!0),e.$regionCodeInput.val("")),o}function F(){if(e.$countryInput.length!==0){const t=e.$countryInput.find(":selected");if(t.length!==0){const r=t.attr(n.filter.countryCodeDataAttr),o=t.attr(n.filter.countryNameDataAttr);return{countryId:t.attr(n.filter.countryIdDataAttr),countryCode:r,countryName:o}}}return null}function R(){if(e.$regionCodeInput.length!==0){const t=e.$regionCodeInput.find(":selected");if(t.length!==0){const r=t.attr(n.filter.regionCodeDataAttr),o=t.attr(n.filter.regionIdDataAttr),s=t.attr(n.filter.regionNameDataAttr),a=t.attr(n.filter.regionCountryIdDataAttr);return{regionId:o,regionCode:r,regionName:s,countryId:a}}}return null}function N(t){return new Promise((r,o)=>{if(e.showAllStores===t){r();return}ue(),Je().then(()=>{Ye(t),r()}).finally(()=>{de()})})}function Ye(t){if(e.showAllStores!==t){if(t)K().show(),e.stores.forEac
608h(o=>{o.isHidden=!1}),e.$showAllStoresButton.hide(),e.$hideAllStoresButton.show();else{if(e.stores.length<n.stores.maxInitialCount)return;K().hide(),e.$initialStoreListItems.show();const o=e.$initialStoreListItems.find(`[${n.stores.storeIdDataAttr}]`),s=[];$.each(o,(a,i)=>{s.push($(i).attr(n.stores.storeIdDataAttr))}),e.stores.forEach(a=>{a.isHidden=s.indexOf(a.id)===-1}),e.$hideAllStoresButton.hide(),e.$showAllStoresButton.show()}e.showAllStores=t}}function Je(){return new Promise((t,r)=>{setTimeout(()=>{e.lazyContent||t();const o=Common.decodeHtml(e.lazyContent);e.$content.find(n.stores.storeList).append(o),e.lazyContent=null,t()},500)})}function ue(){Common.showLoader({$el:e.$content})}function de(){Common.hideLoader({$el:e.$content})}function pe(t){if(!n.scrollToStore||!t)return;const r=W(t.id),o=e.$content.find(n.stores.results);o.animate({scrollTop:r.offset().top-o.offset().top+o.scrollTop()},"slow")}function Z(t,r=!0){if(e.selectedStoreId&&(W(e.selectedStoreId).parent().removeClass(n.stores.storeSelectedClass),e.selectedStoreId=null),!t)return;const s=W(t.id).parent();s.length!==0&&(s.toggleClass(n.stores.storeSelectedClass,r),e.selectedStoreId=r?t.id:null,r&&e.$searchInMapAreaBtn.hide())}function W(t){return e.$content.find(`[${n.stores.storeIdDataAttr}=${t}]`)}function K(){return e.$content.find(`[${n.stores.storeIdDataAttr}]`).parent()}}})(); 609 610(()=>{const B=window.Syvo.Store_Locator_v2=new SyvoModule("Store_Locator_v2",z);B.eventNames.onStoresFound=B.getModuleEventName("onStoresFound");function z(k){var le,ce;const b=$(document),G={contentId:"[data-role='results']",enableUserGeolocationServicesByDefault:!1,breakpoint:992,distance:{selector:"[data-property='distance']",decimalPlaces:0,beforeHtml:"",afterHtml:""},formSelector:"#store-locator-form",showAllStoresButtonSelector:"#store-locator-show-all-stores-btn",hideAllStoresButtonSelector:"#store-locator-hide-all-stores-btn",searchTermFormInputSelector:"#store-locator-search-term",searchCountryFormInputSelector:"[data-property='search-location-country-input']",searchRegionFormInputSelector:"[data-property='search-location-region-input']",searchButtonSelector:"[data-property='search-button']",searchNearUserInputSelector:"[data-property='search-near-user-input']",searchNearUserRadiusInputSelector:"[data-property='search-near-user-radius-input']",searchNearUserErrorBlockSelector:"[data-property='search-near-user-error-block']",searchOnChangeSelector:"input[type='checkbox']:not([data-property='search-near-user-input']), [data-trigger='store-locator-search']",brandIdsFieldSelector:"#store-locator-form input[type=checkbox][name=brandids]",selectAllBrandsIfNoOneSelectedOnInit:!1,useSecondSearchIfEmptyResult:!1},e=$.extend(!0,{},G,k),U=$(e.formSelector),S=$(e.showAllStoresButtonSelector),v=$(e.hideAllStoresButtonSelector),_=e.breakpoint,C=$(e.searchTermFormInputSelector),d=$(e.searchCountryFormInputSelector),m=$(e.searchRegionFormInputSelector),A=$(e.searchButtonSelector),a=$(e.searchNearUserInputSelector),O=$(e.searchNearUserRadiusInputSelector),D=$(e.searchNearUserErrorBlockSelector),Q=(le=e.autocomplete)==null?void 0:le.uiAutocompleteCss,u={onBeforeSetResult:e.callbacks?e.callbacks.onBeforeSetResult:()=>{},onAfterSetResult:e.callbacks?e.callbacks.onAfterSetResult:()=>{},onSuccessSearch:e.callbacks?e.callbacks.onSuccessSearch:()=>{}};let p,y;const f=$("[data-property=map]")[0];let g=null,P=[];const t={defaultLocation:e.defaultLocation,location:null,userGeolocation:null,stores:[],locationSelected:!0,showAllStores:!1,sessionToken:null};e.location&&(t.location={formattedAddress:(ce=e.location.geolocation)==null?void 0:ce.formatted_address,countryCode:e.location.countryCode,regionCode:e.location.regionCode,postCodeOrCity:e.location.postCodeOrCity,coordinates:e.location.coordinates});let V=!1;X();function X(){oe(),ne(),se(),Common.GoogleMapsApi.getLoader()({key:e.googleKey}).then(()=>{ee(),J(),i(),Y(),e.enableUserGeolocationServicesByDefault&&!t.location?q().then(()=>{Common.StoreLocator.updateDistanceToStore(t,e),R()}):Common.StoreLocator.updateDistanceToStore(t,e)})}function ee(){p=new google.maps.places.AutocompleteService,y=new google.maps.places.PlacesService(document.createElement("div"))}function oe(){var r;
610if(e.selectAllBrandsIfNoOneSelectedOnInit&&e.brandIdsFieldSelector){const n=$(e.brandIdsFieldSelector);n.filter(":checked").length===0&&n.prop("checked","true")}U.submit(function(n){return n.preventDefault(),$(this).valid()&&R(),!1}),d!=null&&d.length&&((r=t.location)!=null&&r.countryCode&&(d.val(t.location.countryCode.toLowerCase()),d.change()),d.change(n=>{(m==null?void 0:m.length)>0&&e.getAvailableStatesByCountryUrl?(m.find("option[value]").remove(),$.ajax({url:e.getAvailableStatesByCountryUrl+"?iso2CountryCode="+d.val(),type:"GET"}).done(s=>{(s==null?void 0:s.length)>0&&m.append(s.map(T=>`<option value="${T.value}">${T.name}</option>`)),o()})):o()}),(m==null?void 0:m.length)>0&&m.change(n=>{V=!0,o()}));function o(){C.val(""),C.autocomplete("search",Z())}C.keyup(n=>{if((n.keyCode?n.keyCode:n.which)=="13")return n.preventDefault(),!1;l(n)}),C.focus(n=>{if(n.isTrigger)return!1;$(n.currentTarget).val("").trigger("change"),l(n)}),t.location&&t.location.formattedAddress&&t.location.formattedAddress!==c()&&(C.val(t.location.formattedAddress),C.change()),e.initialSearchRadiusInMeters&&O.length&&O.val(e.initialSearchRadiusInMeters),e.searchOnChangeSelector&&U.find(e.searchOnChangeSelector).change(R),a!=null&&a.length&&a.change(n=>{$(n.target).is(":checked")?q().then(R):(K(),R())});function l(n){t.locationSelected=!1,$.trim($(n.currentTarget).val())===""&&(t.locationSelected=!0,t.location&&(t.location=null)),$(n.currentTarget).valid()}jQuery.validator&&typeof jQuery.validator=="function"&&jQuery.validator.addMethod("sllocationselected",(n,s,T)=>t.locationSelected,e.messages.pleaseSelectLocationFromTheList)}function Z(){const o=[];return(d==null?void 0:d.length)>0&&o.push(d.val()),(m==null?void 0:m.length)>0&&o.push(m.val()),o.join(", ")}function te(){const o=[];if((d==null?void 0:d.length)>0){let l=d!=null&&d.length?d.val():null;o.push(l?$(d.find(`option[value='${l}']`)[0]).html():null)}if((m==null?void 0:m.length)>0){let l=m!=null&&m.length?m.val():null;o.push(l?$(m.find(`option[value='${l}']`)[0]).html():null)}return o.join(", ")}function Y(){const o={};C.autocomplete({minLength:2,delay:500,classes:{"ui-autocomplete":Q},source:(n,s)=>{const T=d!=null&&d.length?d.val():null,F=Z(),M=$.trim(n.term);if(F&&F===M)p.getPlacePredictions({input:$.trim(te()),types:V?["(regions)"]:["geocode"],componentRestrictions:{country:T},sessionToken:t.sessionToken},E=>{if(o[M]=E,!o[M])return;let x=null;if(V){const N=o[M].filter(H=>H.types.some(ye=>ye==="administrative_area_level_1"));N.length>0&&(x=N[0]),V=!1}x=x!=null?x:o[M][0],ie(x.place_id).then(N=>{N&&(ae(N),A.length===0&&R())}),t.locationSelected=!0,C.valid()});else{if(M in o)return s(r(o[M])),!1;t.sessionToken==null&&(t.sessionToken=new google.maps.places.AutocompleteSessionToken),p.getPlacePredictions({input:$.trim(C.val()),types:["geocode"],componentRestrictions:T?{country:T}:e.autocompleteLimitingCountryCode?{country:e.autocompleteLimitingCountryCode}:null,sessionToken:t.sessionToken},E=>{o[M]=E,o[M]&&s(r(o[M]))})}return!1},focus:()=>!1,select:(n,s)=>(C.val(s.item.label).trigger("change"),ie(s.item.value).then(T=>{T&&(ae(T),l(),A.length===0&&R())}),t.locationSelected=!0,C.valid(),!1)}).focus(function(){$(this).data("uiAutocomplete").search($(this).val())});function l(){(m==null?void 0:m.length)>0&&m.val("")}function r(n){return n&&n.length>0?$.map(n,s=>({value:s.place_id,label:s.description})):[]}}function J(){const o={mapTypeControl:!1};
610e.mapStyles&&(o.styles=e.mapStyles),f&&(g=new google.maps.Map(f,o),g.addListener("bounds_changed",()=>{Common.GoogleMapsApi.makeADACompliant(f)}),j())}function q(){return new Promise((l,r)=>{navigator.geolocation?(a.prop("checked",!0),navigator.geolocation.getCurrentPosition(n=>{n.coords.latitude&&n.coords.longitude&&(t.userGeolocation={latitude:n.coords.latitude,longitude:n.coords.longitude}),D.html(""),t.location=null,C.val(""),l()},()=>{o("Please provide access to geolocation"),l()})):(o("The browser does not support geolocation"),l())});function o(l){a!=null&&a.length&&(a.prop("checked",!1),a.prop("disabled",!0)),D!=null&&D.length&&D.html(l)}}function K(){a.prop("checked",!1),t.userGeolocation=void 0}function i(){$(window).resize(()=>{W(t.showAllStores,$(window).width()<_)}),W(!1,$(window).width()<_),S.click(()=>{W(!0,$(window).width()<_)}),v.click(()=>{W(!1,$(window).width()<_)})}function w(){return t.location==null?t.userGeolocation==null?(K(),[h]):[I,h]:(K(),[L])}function c(){let o=d!=null&&d.length?d.val():null;return o?$(d.find(`option[value='${o}']`)[0]).html():null}function h(){return new Promise((o,l)=>{if(t.location){o({status:Common.StoreLocator.constants.Status.ERROR,searchType:Common.StoreLocator.constants.SearchType.DEFAULT_LOCATION,location:t.location});return}de().then(()=>{const r=Common.StoreLocator.serializeFormAndModelToQueryString(t,U,!1,!0,O);$.ajax({url:e.searchByLocationUrl+r,type:"GET"}).done(n=>{o({status:Common.StoreLocator.constants.Status.OK,content:n,searchType:Common.StoreLocator.constants.SearchType.DEFAULT_LOCATION,location:t.location})}).error((n,s,T)=>{if(n.status==404){o({status:Common.StoreLocator.constants.Status.NOT_FOUND,searchType:Common.StoreLocator.constants.SearchType.DEFAULT_LOCATION,location:t.location});return}o({status:Common.StoreLocator.constants.Status.ERROR,searchType:Common.StoreLocator.constants.SearchType.DEFAULT_LOCATION,location:t.location})})},()=>{o({status:Common.StoreLocator.constants.Status.ERROR,searchType:Common.StoreLocator.constants.SearchType.DEFAULT_LOCATION,location:t.location})})})}function L(){if(t.location==null){console.error("Couldn't search by location: location has not been provided");return}return new Promise((o,l)=>{const r=Common.StoreLocator.serializeFormAndModelToQueryString(t,U,!1,!0,O);$.ajax({url:e.searchByLocationUrl+r,type:"GET"}).done(n=>{o({status:Common.StoreLocator.constants.Status.OK,content:n,searchType:Common.StoreLocator.constants.SearchType.LOCATION,location:t.location})}).error((n,s,T)=>{if(n.status==404){o({status:Common.StoreLocator.constants.Status.NOT_FOUND,searchType:Common.StoreLocator.constants.SearchType.LOCATION,location:t.location});return}o({status:Common.StoreLocator.constants.Status.ERROR,searchType:Common.StoreLocator.constants.SearchType.LOCATION,location:t.location})})})}function I(){return new Promise((o,l)=>{const r=Common.StoreLocator.serializeFormAndModelToQueryString(t,U,!0,!1,O);$.ajax({url:e.searchByUserCoordinatesUrl+r,type:"GET"}).done(n=>{o({searchType:Common.StoreLocator.constants.SearchType.BY_USER_COORDINATES,status:Common.StoreLocator.constants.Status.OK,content:n,location:t.location})}).error((n,s,T)=>{if(n.status==404){o({searchType:Common.StoreLocator.constants.SearchType.BY_USER_COORDINATES,status:Common.StoreLocator.constants.Status.NOT_FOUND,location:t.location});return}o({searchType:Common.StoreLocator.constants.SearchType.BY_USER_COORDINATES,status:Common.StoreLocator.constants.Status.ERROR,location:t.location})})})}function R(){C.blur();const o=w(),l=o[0],r=o[1];Common.showLoader(),l().then(n=>{if(he(Se()),(n.status!=Common.StoreLocator.constants.Status.OK||e.useSecondSearchIfEmptyResult&&n.content.indexOf("data-store-info")==-1)&&r!=null){r().then(s=>{re(s),Common.hideLoader()});return}re(n),Common.hideLoader()})}function j(){if(!f)return;const o=new google.maps.LatLngBounds,l=new google.maps.InfoWindow;P.forEach(s=>{s.setMap(null)}),P=[];const r=$(f).height(),n=t.stores.filter(s=>s.isVisible);for(let s=0;s<n.length;s++){const T=t.stores[s];let F={position:new google.maps.LatLng(T.coordinates.latitude,T.coordinates.longitude),map:g,optimized:!1};if(e.customPins&&(e.customPins.defaultPinPath&&(F.icon=e.customPins.defaultPinPath),e.customPins.conditionalPins))for(let E of e.customPins.conditionalPins)E.conditionExpression&&E.conditionExpression(T)&&(F.icon=E.path,F.zIndex=r+s);const M=new google.maps.Marker(F);P.push(M),o.extend(M.position),google.maps.event.addListener(M,"mousedown",((E,x)=>()=>{const N=t.stores[x];
610let H="<span><b>"+N.name+"</b><br>"+N.address+"</span>";N.url&&(H+='<br /><a target="_blank" href='+N.url+">"+N.userFriendlyUrl+"</a>"),N.phone&&(H+="<br /><span>"+N.phone+"</span>"),N.businessUrl&&(H+='<br /><a target="_blank" href='+N.businessUrl+"> Get Directions </a>"),l.setContent(H),l.open(g,E),b.trigger("store-locator-v2:store-selected",N)})(M,s))}g.fitBounds(o),t.stores.length>0&&g.getZoom()>14?g.setZoom(14):t.stores.length==0&&g.setZoom(1)}function ne(){t.stores=[],$(e.contentId).find("[data-store-info]").each((o,l)=>{const r=$(l),n=r.attr("data-store-info-collection-types").split(",").map(T=>parseInt(T)).filter(T=>!isNaN(T)),s={id:$(l).attr("data-store-info-id"),coordinates:{latitude:parseFloat(r.attr("data-store-info-latitude")),longitude:parseFloat(r.attr("data-store-info-longitude"))},isPremierRetailer:r.attr("data-store-info-is-premier-retailer")==="true",name:r.attr("data-store-info-name"),address:r.attr("data-store-info-address"),phone:r.attr("data-store-info-phone"),url:r.attr("data-store-info-url"),userFriendlyUrl:r.attr("data-store-info-user-friendly-url"),googlePlaceId:r.attr("data-store-info-google-place-id"),businessUrl:r.attr("data-store-info-business-url"),collectionTypes:n};s.target=$(l),s.isVisible=!0,s.target.show(),t.stores.push(s)})}function W(o,l){if(t.showAllStores=o,l&&t.stores.length>49){if(t.stores.forEach((r,n)=>{r.isVisible=!0,r.target.parent().show();const s=r.target.parent().prev();s.hasClass("item-message")&&s.show(),!t.showAllStores&&n>49&&(r.isVisible=!1,r.target.parent().hide(),s.hasClass("item-message")&&s.hide())}),j(),t.showAllStores){v.show(),S.hide();return}v.hide(),S.show()}else t.stores.forEach((r,n)=>{r.isVisible=!0,r.target.parent().show()}),j(),v.hide(),S.hide()}function de(){return new Promise((o,l)=>{if(t.defaultLocation==null){l();return}t.location=Object.assign({},t.defaultLocation),C.val()||C.val(t.location.formattedAddress).trigger("change"),o()})}function ae(o){if(o&&o.address_components){t.location={countryCode:null,regionCode:null,postCodeOrCity:null,geolocation:o},t.location.coordinates={latitude:o.geometry.location.lat(),longitude:o.geometry.location.lng()},t.location.formattedAddress=o.formatted_address,!C.val()&&t.location.formattedAddress!==c()&&C.val(t.location.formattedAddress).trigger("change");for(let l=0;l<o.address_components.length;l++){const r=o.address_components[l];for(let n=0;n<r.types.length;n++){const s=r.types[n];s==="administrative_area_level_1"?t.location.regionCode=r.short_name:s==="country"&&(t.location.countryCode=r.short_name),t.location.postCodeOrCity||(s==="postal_code"||s==="postal_town"||s==="locality")&&(t.location.postCodeOrCity=r.short_name)}}}}function re(o){fe(),me(),t.searchResult=o,o.status==Common.StoreLocator.constants.Status.OK?(o.content!=null&&(ue(o.content),se()),ne(),W(!1),Common.StoreLocator.updateDistanceToStore(t,e),j(),ge(o)):o.status==Common.StoreLocator.constants.Status.NOT_FOUND&&(t.stores=[],j()),pe()}function ue(o){const l=$("<output>").append($.parseHTML(o));$(e.contentId).replaceWith($(l).find(e.contentId))}function me(){$(e.contentId).hide()}function fe(){typeof u.onBeforeSetResult=="function"&&u.onBeforeSetResult()}function pe(){typeof u.onAfterSetResult=="function"&&u.onAfterSetResult()}function ge(o){var l,r,n;if(typeof u.onSuccessSearch=="function"&&u.onSuccessSearch(o),t.stores&&t.stores.length>=0&&((l=t.location)!=null&&l.formattedAddress)){const s={location:t.location.formattedAddress,count:t.stores.length};b.trigger(window.Syvo.Google_Analytics_4.eventNames.onSearchStoresByLocation,s),b.trigger(window.Syvo.Google_Tag_Manager.eventNames.onSearchStoresByLocation,s)}b.trigger(window.Syvo.Store_Locator_v2.eventNames.onStoresFound,(r=t.stores)==null?void 0:r.length),((n=t.stores)==null?void 0:n.length)===0&&b.trigger(window.Syvo.Customer_Demand.eventNames.reload)}function se(){o("[data-property=store-phone]",window.Syvo.Google_Analytics_4.eventNames.onStorePhoneClicked),o("[data-property=store-phone]",window.Syvo.Google_Tag_Manager.eventNames.onStorePhoneClicked),o("[data-property=store-directions]",window.Syvo.Google_Analytics_4.eventNames.onStoreDirectionsClicked),o("[data-property=store-directions]",window.Syvo.Google_Tag_Manager.eventNames.onStoreDirectionsClicked),o("[data-property=store-site]",window.Syvo.Google_Analytics_4.eventNames.onStoreSiteClicked),o("[data-property=store-site]",window.Syvo.Google_Tag_Manager.eventNames.onStoreSiteClicked),o("[data-property=store-slug]",window.Syvo.Google_Analytics_4.eventNames.onStoreDetailsClicked),o("[data-property=store-slug]",window.Syvo.Google_Tag_Manager.eventNames.onStoreDetailsClicked);function o(l,r){$(l).on("click",function(){const n=$(this).closest("[data-store-info]").data("store-info-name");b.trigger(r,n)})}}function ie(o){return new Promise((l,r)=>{y.getDetails({placeId:o,fields:["address_component","formatted_address","geometry","place_id"],sessionToken:t.sessionToken},n=>{t.sessionToken=null,l(n)})})}function he(o){if(history.pushState){const l=window.location.protocol+"//"+window.location.host+e.baseLocatorUrl+o;window.history.pushState({path:l},"",l)}}function Se(){let o=U.serializeArray();o=o.filter(n=>!["searchTerms","country","regionCode"].includes(n.name));let l="";if(t.location){const n=[];n.push({name:"location.countryCode",value:t.location.countryCode}),n.push({name:"location.regionCode",value:t.location.regionCode}),n.push({name:"location.postCodeOrCity",value:t.location.postCodeOrCity}),$.each(n,(s,T)=>{if($.trim(T.value)){const F=Common.StoreLocator.formatStringForUrl(T.value);l+="/"+F}})}let r="";return $.each(o,(n,s)=>{$.trim(s.value)&&(r+=r==""?"?"+s.name+"="+s.value:"&"+s.name+"="+s.value)}),l+r}}})(),(()=>
610{const B=window.Syvo.Store_Locator_Search_Input_v2=new SyvoModule("Store_Locator_Search_Input_v2",z);function z(k){const b=$(document),G=k.formSelector?$(k.formSelector):$("#store-locator-form"),e=k.searchTermFormInputSelector?$(k.searchTermFormInputSelector):$("#store-locator-search-term"),U=k.sendFormOnSelect!==!1;let S,v,_=null,C=!0,d=null;Common.GoogleMapsApi.getLoader()({key:k.googleKey}).then(()=>{S=new google.maps.places.AutocompleteService,v=new google.maps.places.PlacesService(document.createElement("div")),a(),A()});function A(){G.submit(function(p){if(p.preventDefault(),$(this).valid()){let y=e.val();b.trigger(window.Syvo.Google_Analytics_4.eventNames.onStoreSearch,y),b.trigger(window.Syvo.Google_Tag_Manager.eventNames.onStoreSearch,y),window.location.href=window.location.origin+k.storeLocatorUrl+Q()}return!1}),e.keyup(p=>{if((p.keyCode?p.keyCode:p.which)=="13")return p.preventDefault(),!1;u()});function u(){C=!1,$.trim(e.val())===""&&(C=!0,_&&(_=null))}jQuery.validator&&typeof jQuery.validator=="function"&&jQuery.validator.addMethod("sllocationselected",(p,y,f)=>C,k.messages.pleaseSelectLocationFromTheList)}function a(){const u={};e.autocomplete({minLength:2,delay:500,classes:{"ui-autocomplete":"ui-store-finder"},source:(y,f)=>{const g=$.trim(y.term);return g in u?(f(p(u[g])),!1):(d==null&&(d=new google.maps.places.AutocompleteSessionToken),S.getPlacePredictions({input:$.trim(e.val()),types:["geocode"],sessionToken:d},P=>{u[g]=P,f(p(u[g]))}),!1)},focus:()=>!1,select:(y,f)=>(e.val(f.item.label).trigger("change"),O(f.item.value).then(g=>{g&&(D(g),U&&G.submit())}),C=!0,e.valid(),!1)}).focus(function(){$(this).data("uiAutocomplete").search($(this).val())});function p(y){return y&&y.length>0?$.map(y,f=>({value:f.place_id,label:f.description})):[]}}function O(u){return new Promise((p,y)=>{v.getDetails({placeId:u,fields:["address_component","formatted_address","geometry","place_id"],language:"en",sessionToken:d},f=>{d=null,p(f)})})}function D(u){if(u&&u.address_components){_={countryCode:null,regionCode:null,postCodeOrCity:null};for(let p=0;p<u.address_components.length;p++){const y=u.address_components[p];for(let f=0;f<y.types.length;f++){const g=y.types[f];g==="administrative_area_level_1"?_.regionCode=y.short_name:g==="country"&&(_.countryCode=y.short_name),_.postCodeOrCity||(g==="postal_code"||g==="postal_town"||g==="locality")&&(_.postCodeOrCity=y.short_name)}}}}function Q(){let u=G.serializeArray();u=u.filter(f=>!["searchTerms"].includes(f.name));let p="";if(_){const f=[];f.push({name:"location.countryCode",value:_.countryCode!=null?Common.StoreLocator.formatStringForUrl(_.countryCode):null}),f.push({name:"location.regionCode",value:_.regionCode!=null?Common.StoreLocator.formatStringForUrl(_.regionCode):null}),f.push({name:"location.postCodeOrCity",value:_.postCodeOrCity!=null?Common.StoreLocator.formatStringForUrl(_.postCodeOrCity):null}),$.each(f,(g,P)=>{$.trim(P.value)&&(p+="/"+P.value)})}let y="";return $.each(u,(f,g)=>{$.trim(g.value)&&(y+=y==""?"?"+g.name+"="+g.value:"&"+g.name+"="+g.value)}),p+y}}})(),(()=>{const B=window.Syvo.Store_Locator_Landing_v2=new SyvoModule("Store_Locator_Landing_v2",z);function z(k){const b=$(document),G=$("[data-property=map]")[0];let e=null,U=[],S=[];C(),Common.GoogleMapsApi.getLoader()({key:k.googleKey}).then(()=>{const d={mapTypeControl:!1};k.mapStyles&&(d.styles=k.mapStyles),e=new google.maps.Map(G,d),e.addListener("bounds_changed",()=>{Common.GoogleMapsApi.makeADACompliant(G)}),_()});function _(){const d=new google.maps.LatLngBounds,m=new google.maps.InfoWindow;U.forEach(A=>{A.setMap(null)}),U=[];for(let A=0;A<S.length;A++){const a=S[A];let O=new google.maps.Marker({position:new google.maps.LatLng(a.coordinates.latitude,a.coordinates.longitude),map:e,optimized:!1,type:""});U.push(O),d.extend(O.position),google.maps.event.addListener(O,"mousedown",((D,Q)=>()=>{const u=S[Q];let p="<span><b>"+u.name+"</b><br>"+u.address+"</span>";u.url&&(p+='<br /><a target="_blank" href='+u.url+">"+u.userFriendlyUrl+"</a>"),u.phone&&(p+="<br /><span>"+u.phone+"</span>"),u.businessUrl&&(p+='<br /><a target="_blank" href='+u.businessUrl+"> Get Directions </a>"),m.setContent(p),m.open(e,D),b.trigger("store-locator-v2:store-selected",u)})(O,A))}e.fitBounds(d),S.length>0&&e.getZoom()>14?e.setZoom(14):S.length==0&&e.setZoom(1)}function C(d){S=[],$(k.contentId).find("[data-store-info]").each((m,A)=>{const a=$(A),O={id:$(A).attr("data-store-info-id"),coordinates:{latitude:parseFloat(a.attr("data-store-info-latitude")),longitude:parseFloat(a.attr("data-store-info-longitude"))},name:a.attr("data-store-info-name"),address:a.attr("data-store-info-address"),phone:a.attr("data-store-info-phone"),url:a.attr("data-store-info-url"),userFriendlyUrl:a.attr("data-store-info-user-fr
610iendly-url"),googlePlaceId:a.attr("data-store-info-google-place-id"),businessUrl:a.attr("data-store-info-business-url")};O.target=$(A),S.push(O)})}}})(),(()=>{const B=window.Syvo.Gown_Locator_Search_v2=new SyvoModule("Gown_Locator_Search_v2",z);B.eventNames.onStoresFound=B.getModuleEventName("onStoresFound");function z(k){var q,K;const b=$(document),G={contentId:"[data-role='gown-locator-results']",enableUserGeolocationServicesByDefault:!1,breakpoint:992,distance:{selector:"[data-property='distance']",decimalPlaces:0,beforeHtml:"",afterHtml:""},formSelector:"#gown-locator-step1-form",searchTermFormInputSelector:"#store-locator-search-term-modal",searchCountryFormInputSelector:"[data-property='search-location-country-input']",searchNearUserInputSelector:"[data-property='search-near-user-input']",searchNearUserRadiusInputSelector:"[data-property='search-near-user-radius-input']",searchNearUserErrorBlockSelector:"[data-property='search-near-user-error-block']",searchOnChangeSelector:"input[type='checkbox'], [data-trigger='store-locator-search']"},e=$.extend(!0,G,k),U=$(e.formSelector),S=$(e.searchTermFormInputSelector),v=$(e.searchCountryFormInputSelector),_=$(e.searchNearUserRadiusInputSelector),C=(q=e.autocomplete)==null?void 0:q.uiAutocompleteCss,d={onBeforeSetResult:e.callbacks?e.callbacks.onBeforeSetResult:()=>{},onAfterSetResult:e.callbacks?e.callbacks.onAfterSetResult:()=>{},onSuccessSearch:e.callbacks?e.callbacks.onSuccessSearch:()=>{}};let m,A;const a={defaultLocation:e.defaultLocation,location:null,userGeolocation:null,stores:[],locationSelected:!0,sessionToken:null};e.location&&(a.location={formattedAddress:(K=e.location.geolocation)==null?void 0:K.formatted_address,countryCode:e.location.countryCode,regionCode:e.location.regionCode,postCodeOrCity:e.location.postCodeOrCity,coordinates:e.location.coordinates}),O();function O(){Q(),g(),Y(),Common.GoogleMapsApi.getLoader()({key:e.googleKey}).then(()=>{D(),u()})}function D(){m=new google.maps.places.AutocompleteService,A=new google.maps.places.PlacesService(document.createElement("div"))}function Q(){var w;v!=null&&v.length&&((w=a.location)!=null&&w.countryCode&&(v.val(a.location.countryCode.toLowerCase()),v.change()),v.change(c=>{S.val(""),S.autocomplete("search",v.val())})),S.keyup(c=>{if((c.keyCode?c.keyCode:c.which)=="13")return c.preventDefault(),!1;i(c)}),S.focus(c=>{if(c.isTrigger)return!1;$(c.currentTarget).val("").trigger("change"),i(c)}),a.location&&a.location.formattedAddress&&a.location.formattedAddress!==p()&&(S.val(a.location.formattedAddress),S.change()),e.searchOnChangeSelector&&U.find(e.searchOnChangeSelector).change(f);function i(c){a.locationSelected=!1,$.trim($(c.currentTarget).val())===""&&(a.locationSelected=!0,a.location&&(a.location=null)),$(c.currentTarget).valid()}}function u(){const i={};S.autocomplete({minLength:2,delay:500,classes:{"ui-autocomplete":C},source:(c,h)=>{const L=v!=null&&v.length?v.val():null,I=$.trim(c.term);if(L&&L===I)m.getPlacePredictions({input:$.trim(p()),types:["geocode"],componentRestrictions:{country:L},sessionToken:a.sessionToken},R=>{i[I]=R,J(i[I][0].place_id).then(j=>{j&&(P(j),f())}),a.locationSelected=!0,S.valid()});else{if(I in i)return h(w(i[I])),!1;a.sessionToken==null&&(a.sessionToken=new google.maps.places.AutocompleteSessionToken),m.getPlacePredictions({input:$.trim(S.val()),types:["geocode"],componentRestrictions:L?{country:L}:e.autocompleteLimitingCountryCode?{country:e.autocompleteLimitingCountryCode}:null,sessionToken:a.sessionToken},R=>{i[I]=R,h(w(i[I]))})}return!1},focus:()=>!1,select:(c,h)=>(S.val(h.item.label).trigger("change"),J(h.item.value).then(L=>{L&&(P(L),f())}),a.locationSelected=!0,S.valid(),!1)}).focus(function(){$(this).data("uiAutocomplete").search($(this).val())});function w(c){return c&&c.length>0?$.map(c,h=>({value:h.place_id,label:h.description})):[]}}function p(){let i=v!=null&&v.length?v.val():null;return i?$(v.find(`option[value='${i}']`)[0]).html():null}function y(){return new Promise((i,w)=>{if(a.location===null){i({status:Common.StoreLocator.constants.Status.NOT_FOUND,searchType:Common.StoreLocator.constants.SearchType.IN_AREA,location:a.location});return}const c=Common.StoreLocator.serializeFormAndModelToQueryString(a,U,!1,!0,_);$.ajax({url:e.searchInAreaUrl+c,type:"GET"}).done(h=>{i({status:Common.StoreLocator.constants.Status.OK,content:h,searchType:Common.StoreLocator.constants.SearchType.IN_AREA,location:a.location})}).error((h,L,I)=>
610{if(h.status==404){i({status:Common.StoreLocator.constants.Status.NOT_FOUND,searchType:Common.StoreLocator.constants.SearchType.IN_AREA,location:a.location});return}i({status:Common.StoreLocator.constants.Status.ERROR,searchType:Common.StoreLocator.constants.SearchType.IN_AREA,location:a.location})})})}function f(){S.blur(),Common.showLoader(),y().then(i=>{t(i),Common.hideLoader()})}function g(){a.stores=[],$(e.contentId).find("[data-store-info]").each((i,w)=>{const c=$(w),h={id:$(w).attr("data-store-info-id"),coordinates:{latitude:parseFloat(c.attr("data-store-info-latitude")),longitude:parseFloat(c.attr("data-store-info-longitude"))},isPremierRetailer:c.attr("data-store-info-is-premier-retailer")==="true",name:c.attr("data-store-info-name"),address:c.attr("data-store-info-address"),phone:c.attr("data-store-info-phone"),url:c.attr("data-store-info-url"),userFriendlyUrl:c.attr("data-store-info-user-friendly-url"),googlePlaceId:c.attr("data-store-info-google-place-id"),businessUrl:c.attr("data-store-info-business-url")};h.target=$(w),h.isVisible=!0,h.target.show(),a.stores.push(h)})}function P(i){if(i&&i.address_components){a.location={countryCode:null,regionCode:null,postCodeOrCity:null,geolocation:i},a.location.coordinates={latitude:i.geometry.location.lat(),longitude:i.geometry.location.lng()},a.location.formattedAddress=i.formatted_address,!S.val()&&a.location.formattedAddress!==p()&&S.val(a.location.formattedAddress).trigger("change");for(let w=0;w<i.address_components.length;w++){const c=i.address_components[w];for(let h=0;h<c.types.length;h++){const L=c.types[h];L==="administrative_area_level_1"?a.location.regionCode=c.short_name:L==="country"&&(a.location.countryCode=c.short_name),a.location.postCodeOrCity||(L==="postal_code"||L==="postal_town"||L==="locality")&&(a.location.postCodeOrCity=c.short_name)}}}}function t(i){oe(),X(),a.searchResult=i,i.status==Common.StoreLocator.constants.Status.OK?(i.content!=null&&(V(i.content),ee(),Y()),g(),Common.StoreLocator.updateDistanceToStore(a,e),te(i)):i.status==Common.StoreLocator.constants.Status.NOT_FOUND&&(a.stores=[]),Z()}function V(i){const w=$("<output>").append($.parseHTML(i));$(e.contentId).html($(w).find('[data-role="results"]').html())}function X(){$(e.contentId).hide()}function ee(){$(e.contentId).show()}function oe(){typeof d.onBeforeSetResult=="function"&&d.onBeforeSetResult()}function Z(){typeof d.onAfterSetResult=="function"&&d.onAfterSetResult()}function te(i){var w,c,h;if(typeof d.onSuccessSearch=="function"&&d.onSuccessSearch(i),a.stores&&a.stores.length>=0&&((w=a.location)!=null&&w.formattedAddress)){const L={location:a.location.formattedAddress,count:a.stores.length};b.trigger(window.Syvo.Google_Analytics_4.eventNames.onSearchStoresByLocation,L),b.trigger(window.Syvo.Google_Tag_Manager.eventNames.onSearchStoresByLocation,L)}i.searchType===Common.StoreLocator.constants.SearchType.IN_AREA&&b.trigger(B.eventNames.onStoresFound,(c=a.stores)==null?void 0:c.length),((h=a.stores)==null?void 0:h.length)===0&&b.trigger(window.Syvo.Customer_Demand.eventNames.reload)}function Y(){i("[data-property=store-phone]",window.Syvo.Google_Analytics_4.eventNames.onStorePhoneClicked),i("[data-property=store-phone]",window.Syvo.Google_Tag_Manager.eventNames.onStorePhoneClicked),i("[data-property=store-directions]",window.Syvo.Google_Analytics_4.eventNames.onStoreDirectionsClicked),i("[data-property=store-directions]",window.Syvo.Google_Tag_Manager.eventNames.onStoreDirectionsClicked),i("[data-property=store-site]",window.Syvo.Google_Analytics_4.eventNames.onStoreSiteClicked),i("[data-property=store-site]",window.Syvo.Google_Tag_Manager.eventNames.onStoreSiteClicked),i("[data-property=store-slug]",window.Syvo.Google_Analytics_4.eventNames.onStoreDetailsClicked),i("[data-property=store-slug]",window.Syvo.Google_Tag_Manager.eventNames.onStoreDetailsClicked);function i(w,c){$(w).on("click",function(){const h=$(this).closest("[data-store-info]").data("store-info-name");b.trigger(c,h)})}}function J(i){return new Promise((w,c)=>{A.getDetails({placeId:i,fields:["address_component","formatted_address","geometry","place_id"],sessionToken:a.sessionToken},h=>{a.sessionToken=null,w(h)})})}}})(); 611 612(function(){const l=window.Syvo.TrunkShowVisitorForm_Modal=new SyvoModule("TrunkShowVisitorForm_Modal",w);function w(g){const S={selector:"[data-property='trunk-show-visitor-modal']",form:{selector:"[data-property='trunk-show-visitor-form']",action:"trunkshow/sendform",successSelector:"[data-custom-submit-success]",successMessage:"Success! Form has been sent! Thanks!",alwaysSelector:"[data-custom-submit-always]",alwaysMessage:"",errorSelector:"[data-custom-submit-error]",errorMessage:"Error! Something was wrong! Try again later!"}},t={};let u=!1;l.init=d,l.destroy=f,l.reload=p,d(g);function d(o){if(t.settings=$.extend(!0,{},S,o),!t.settings.contentUrl||!t.settings.form.selector||!t.settings.selector||!t.settings.trunkShowId)return;e(),a();function e(){t.contentUrl=t.settings.contentUrl,t.submitUrl=t.settings.form.submitUrl,t.trunkShowId=t.settings.trunkShowId}function i(){}function a(){$.get(t.contentUrl,{trunkShowId:t.trunkShowId},c=>{$("body").append(c.content);const n=$(t.settings.form.selector);$("[name='eventDate']").datepicker(),s(),n.validate({errorElement:"span"}),window.Syvo.Custom_Form.initFormFields({form:n}),n.on("submit",h),$(t.settings.selector).modal().on($.modal.AFTER_CLOSE,r=>{n.off("submit",h),$(r.currentTarget).remove()})})}function s(){Common.initTelephoneMask($("[name='phoneNumber']"))}}function f(){o();function o(){t.contentUrl=null,t.submitUrl=null,t.trunkShowId=null}function e(){}function i(){}}function p(o){f(),d(o)}
612function h(o){if(o.preventDefault(),u)return;const e=$(this);if(!e.valid())return!1;u=!0,Common.validateCaptcha().then(i=>{y(o,i,e)})}function y(o,e,i){const a=$(t.settings.form.selector),s=Common.serializeFormToObject(a);e&&(s["g-recaptcha-response"]=e),s.additionalFormResult=window.Syvo.Custom_Form.collectFormData({form:a}),s.trunkShowId=t.trunkShowId;const c=$(t.settings.selector),n=c.find(t.settings.form.successSelector),m=c.find(t.settings.form.errorSelector);$.ajax({type:"POST",url:t.submitUrl||i.attr("action"),data:s}).done(function(r){n.html(Common.decodeHtml(t.settings.form.successMessage)),n.show(),m.hide(),a.hide()}).fail(function(r){m.html(Common.decodeHtml(t.settings.form.errorMessage)),m.show(),n.hide()}).always(function(){const r=$(t.settings.form.alwaysSelector);r.html(Common.decodeHtml(t.settings.form.alwaysMessage)),r.show(),u=!1})}}})(); 613 614(()=>{const z=window.Syvo.Trunk_Shows=new SyvoModule("Trunk_Shows",O);function O(_){const S=$(document),k={brandIdsFieldSelector:"#trunk-shows-form input[name=brandids]",collectionTypeIdsFieldSelector:"#trunk-shows-form input[name=collectionTypeIds]",filterSubmitButtonSelector:"[data-property='trunkshows-filter-submit']",selectAllBrandsIfNoOneSelectedOnInit:!1},r=$.extend(!0,{},k,_),h=r.formSelector?$(r.formSelector):$("#trunk-shows-form"),u=r.searchTermFormInputSelector?$(r.searchTermFormInputSelector):$("#trunk-shows-search-term"),C={onSuccessSearch:r.callbacks?r.callbacks.onSuccessSearch:()=>{}};let p,y;const s={OK:200,NOT_FOUND:404,ERROR:500},d={LOCATION:1,NEAR_BY_LOCATION:2,NEAR_BY_USER:3,DEFAULT:4},t={location:null,userGeolocation:null,locationSelected:!0};r.location&&(t.location={formattedAddress:r.location.formattedAddress,countryCode:r.location.countryCode,regionCode:r.location.regionCode,postCodeOrCity:r.location.postCodeOrCity,coordinates:null}),A();function A(){if(r.selectAllBrandsIfNoOneSelectedOnInit&&r.brandIdsFieldSelector){const e=$(r.brandIdsFieldSelector).filter("[type='checkbox']");e.filter(":checked").length===0&&e.prop("checked","true")}r.filterSubmitButtonSelector&&$(r.filterSubmitButtonSelector).length===0&&$(r.brandIdsFieldSelector+","+r.collectionTypeIdsFieldSelector).change(()=>{m()}
614),T(),b(),I().then(()=>{F(),D();const e=[E()];r.userGeolocationServicesByDefaultEnabled&&e.push(L()),Promise.all(e).then(()=>{t.location==null&&m()})})}function T(){r.visitorFormModal&&$(r.visitorFormModal.trigger).on("click",e=>{e.preventDefault();const i=$(e.currentTarget).attr(r.visitorFormModal.trunkShowIdAttr);i&&window.Syvo.TrunkShowVisitorForm_Modal.init({trunkShowId:i,contentUrl:r.visitorFormModal.contentUrl,selector:r.visitorFormModal.selector,form:r.visitorFormModal.form})})}function I(){return new Promise((e,i)=>{$.getScript("//maps.googleapis.com/maps/api/js?libraries=places,geometry&language=en&key="+r.googleKey).done((o,n)=>{e()})})}function F(){p=new google.maps.places.AutocompleteService,y=new google.maps.places.PlacesService(document.createElement("div"))}function b(){const e="mm/dd/yy",i=$("#date-range-start").datepicker({defaultDate:"+1w",changeMonth:!0,changeYear:!0,numberOfMonths:1}),o=$("#date-range-end").datepicker({defaultDate:"+1w",changeMonth:!0,changeYear:!0,numberOfMonths:1}),n=$("[data-trigger=#date-range-start]"),a=$("[data-trigger=#date-range-end]");i.on("change",function(){const l=c(this);o.datepicker("option","minDate",l),i.valid(),o.valid()}),n.on("click",()=>{i.focus()}),a.on("click",()=>{o.focus()}),o.on("change",function(){const l=c(this);i.datepicker("option","maxDate",l),o.valid(),i.valid()}),h.submit(function(l){return l.preventDefault(),$(this).valid()&&m(),!1}),u.keyup(l=>{(l.keyCode?l.keyCode:l.which)!="13"&&(t.locationSelected=!1,$.trim(u.val())===""&&(t.locationSelected=!0,t.location&&(t.location=null)))}),jQuery.validator&&typeof jQuery.validator=="function"&&jQuery.validator.addMethod("tslocationselected",(l,f,q)=>t.locationSelected,r.messages.pleaseSelectLocationFromTheList);function c(l){let f=$(l).val();try{f=$.datepicker.parseDate(e,f)}catch(q){f=null}return f}}function D(){const e={};u.autocomplete({minLength:2,delay:500,source:(o,n)=>{const a=$.trim(o.term);return a in e?(n(i(e[a])),!1):(p.getPlacePredictions({input:$.trim(u.val()),types:["geocode"]},c=>{e[a]=c,n(i(e[a]))}),!1)},focus:()=>!1,select:(o,n)=>(u.val(n.item.label),G(n.item.value).then(a=>{a&&(v(a),m())}),t.locationSelected=!0,u.valid(),!1)}).focus(function(){$(this).data("uiAutocomplete").search($(this).val())});function i(o){return o&&o.length>0?$.map(o,n=>({value:n.place_id,label:n.description})):[]}}function E(){return new Promise((e,i)=>{if(t.location==null||t.location.formattedAddress==null){e();return}const o={input:t.location.formattedAddress};t.location.countryCode&&(o.componentRestrictions={country:t.location.countryCode}),p.getPlacePredictions(o,n=>{if(!n||!n[0]){i();return}y.getDetails({placeId:n[0].place_id},a=>{a?(v(a),e()):i()})})})}function L(){return new Promise((e,i)=>{if(navigator.geolocation){navigator.geolocation.getCurrentPosition(o=>{t.userGeolocation={latitude:o.coords.latitude,longitude:o.coords.longitude},e()},()=>{e()});return}e()})}function N(){return t.location==null?t.userGeolocation==null?[R]:[M]:[U]}function R(){return new Promise((e,i)=>{const o=g();$.ajax({url:r.searchByDefaultUrl+o,type:"GET"}).done(n=>{e({status:s.OK,content:n,searchType:d.DEFAULT,location:t.location})}).error((n,a,c)=>{if(n.status==404){e({status:s.NOT_FOUND,searchType:d.DEFAULT,location:t.location});return}e({status:s.ERROR,searchType:d.DEFAULT,location:t.location})})})}function U(){if(t.location==null){console.error("Couldn't search by location: location has not been provided");return}return new Promise((e,i)=>{const o=g(t.location.coordinates,!0);$.ajax({url:r.searchByLocationUrl+o,type:"GET"}).done(n=>{e({status:s.OK,content:n,searchType:d.LOCATION,location:t.location})}).error((n,a,c)=>{if(n.status==404){e({status:s.NOT_FOUND,searchType:d.LOCATION,location:t.location});return}e({status:s.ERROR,searchType:d.LOCATION,location:t.location})})})}function M(){return new Promise((e,i)=>{const o=g(t.userGeolocation);$.ajax({url:r.nearbySearchUrl+o,type:"GET"}).done(n=>{e({searchType:d.NEAR_BY_USER,status:s.OK,content:n,location:t.location})}).error((n,a,c)=>{if(n.status==404){e({searchType:d.NEAR_BY_USER,status:s.NOT_FOUND,location:t.location});return}e({searchType:d.NEAR_BY_USER,status:s.ERROR,location:t.location})})})}function m(){u.blur();const e=N(),i=e[0],o=e[1];Common.showLoader(),i().then(n=>{if(x(Y()),n.status!=s.OK&&o!=null){o().then(a=>{w(a),Common.hideLoader()});return}w(n),T(),Common.nativeLoadingLazy.load(),Common.hideLoader()})}function v(e){if(e&&e.address_components){t.location={countryCode:null,regionCode:null,postCodeOrCity:null},t.location.coordinates={latitude:e.geometry.location.lat(),longitude:e.geometry.location.lng()},t.location.formattedAddress=e.formatted_address,u.val()||(u.val(t.location.formattedAddress),u.trigger("change"));for(let i=0;i<e.address_components.length;i++){const o=e.address_components[i];for(let n=0;n<o.types.length;n++){const a=o.types[n];a==="postal_code"?t.location.postCodeOrCity=o.short_name:a==="administrative_area_level_1"?t.location.regionCode=o.short_name:a==="locality"||a==="postal_town"?t.location.postCodeOrCity=o.short_name:a==="country"&&(t.location.countryCode=o.short_name)}}}}function w(e){P(),t.searchResult=e,e.status==s.OK&&(e.content!=null&&B(e.content),j())}function B(e){const i=$("<output>").append($.parseHTML(e));$(r.contentId).replaceWith($(i).find(r.contentId)),r.trunkShowSearchItemButton&&$(r.contentId).find(r.trunkShowSearchItemButton).click(o=>{let n={link:$(o.target).attr("href")};S.trigger(window.Syvo.Google_Analytics_4.eventNames.onTrunkShowSearchItemCTAClicked,n),S.trigger(window.Syvo.Google_Tag_Manager.eventNames.onTrunkShowSearchItemCTAClicked,n)})}function P(){$(r.contentId).hide()}function Q(){$(r.contentId).show()}function j(){typeof C.onSuccessSearch=="function"&&C.onSuccessSearch()}function G(e){return new Promise((i,o)=>{y.getDetails({placeId:e},n=>{i(n)})})}function x(e){if(history.pushState){const i=window.location.protocol+"//"+window.location.host+r.baseUrl+e;window.history.pushState({path:i},"",i)}}function H(){if(!t.location)return;const e=[];return t.location.postCodeOrCity&&e.push(t.location.postCodeOrCity),t.location.regionCode&&e.push(t.location.regionCode),t.location.countryCode&&e.push(t.location.countryCode),e.join(", ")}function Y(){let e=h.serializeArray();e=e.filter(n=>!["searchTerms","country"].includes(n.name));let i="";if(t.location){const n=[];n.push({name:"location.countryCode",value:t.location.countryCode}),n.push({name:"location.regionCode",value:t.location.regionCode}),n.push({name:"location.postCodeOrCity",value:t.location.postCodeOrCity}),$.each(n,(a,c)=>{if($.trim(c.value)){const l=K(c.value);i+="/"+l}})}let o="";return $.each(e,(n,a)=>{$.trim(a.value)&&(o+=o==""?"?"+a.name+"="+a.value:"&"+a.name+"="+a.value)}),i+o}function g(e,i){let o=h.serializeArray();o=o.filter(a=>!["searchTerms","country"].includes(a.name));let n="";return e!=null&&(o.push({name:"nearby.latitude",value:e.latitude}),o.push({name:"nearby.longitude",value:e.longitude})),i&&t.location!=null&&(o.push({name:"location.countryCode",value:t.location.countryCode}),o.push({name:"location.regionCode",value:t.location.regionCode}),o.push({name:"location.postCodeOrCity",value:t.location.postCodeOrCity})),$.each(o,(a,c)=>{$.trim(c.value)&&(n+=n==""?"?"+c.name+"="+c.value:"&"+c.name+"="+c.value)}),n}function K(e){return e.replace(/\-/g,"_").replace(/\s/g,"-").replace(/\_/g,"--")}}})(); 615 616(()=>{const f=window.Syvo.Value_Dependency=new SyvoModule("Value_Dependency",a);function a(c){const l={checkValueAfterInit:!1},h=$.extend(!0,{},l,c);o();function o(){const u=$("[data-depend-from-id]"),r=[];u.each(function(){r.push({id:$(this).attr("data-depend-from-id"),values:$(this).attr("data-depend-from-value").split(";"),element:$(this)}),$(this).hide()}),r.forEach((t,g)=>{$("#"+t.id).change(function(){let n=$(this).val();$(this).is("[type='checkbox']")&&(n=$(this).is(":checked").toString());const d=t.values.filter(e=>Array.isArray(n)?n.some(i=>i===e):e.length>1&&e[e.length-1]==="*"?n.indexOf(e.slice(0,e.length-1))===0:n==e);t.element.find("input, select").each((e,i)=>{const s=$(i);!s.is("[data-depend-rule-required-fixed]")&&s.attr("data-rule-required")&&(d.length===0&&s.val(""),s.attr("data-rule-required",d.length!==0))}),t.element.toggle(d.length!==0)}),h.checkValueAfterInit&&$("#"+t.id).change()})}}})(); 617 618/*! Stellar.js v0.6.2 | Copyright 2014, Mark Dalgleish | http://markdalgleish.com/projects/stellar.js | http://markdalgleish.mit-license.org */ 619!function(a,b,c,d){function e(b,c){this.element=b,this.options=a.extend({},g,c),this._defaults=g,this._name=f,this.init()}var f="stellar",g={scrollProperty:"scroll",positionProperty:"position",horizontalScrolling:!0,verticalScrolling:!0,horizontalOffset:0,verticalOffset:0,responsive:!1,parallaxBackgroun
619ds:!0,parallaxElements:!0,hideDistantElements:!0,hideElement:function(a){a.hide()},showElement:function(a){a.show()}},h={scroll:{getLeft:function(a){return a.scrollLeft()},setLeft:function(a,b){a.scrollLeft(b)},getTop:function(a){return a.scrollTop()},setTop:function(a,b){a.scrollTop(b)}},position:{getLeft:function(a){return-1*parseInt(a.css("left"),10)},getTop:function(a){return-1*parseInt(a.css("top"),10)}},margin:{getLeft:function(a){return-1*parseInt(a.css("margin-left"),10)},getTop:function(a){return-1*parseInt(a.css("margin-top"),10)}},transform:{getLeft:function(a){var b=getComputedStyle(a[0])[k];return"none"!==b?-1*parseInt(b.match(/(-?[0-9]+)/g)[4],10):0},getTop:function(a){var b=getComputedStyle(a[0])[k];return"none"!==b?-1*parseInt(b.match(/(-?[0-9]+)/g)[5],10):0}}},i={position:{setLeft:function(a,b){a.css("left",b)},setTop:function(a,b){a.css("top",b)}},transform:{setPosition:function(a,b,c,d,e){a[0].style[k]="translate3d("+(b-c)+"px, "+(d-e)+"px, 0)"}}},j=function(){var b,c=/^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/,d=a("script")[0].style,e="";for(b in d)if(c.test(b)){e=b.match(c)[0];break}return"WebkitOpacity"in d&&(e="Webkit"),"KhtmlOpacity"in d&&(e="Khtml"),function(a){return e+(e.length>0?a.charAt(0).toUpperCase()+a.slice(1):a)}}(),k=j("transform"),l=a("<div />",{style:"background:#fff"}).css("background-position-x")!==d,m=l?function(a,b,c){a.css({"background-position-x":b,"background-position-y":c})}:function(a,b,c){a.css("background-position",b+" "+c)},n=l?function(a){return[a.css("background-position-x"),a.css("background-position-y")]}:function(a){return a.css("background-position").split(" ")},o=b.requestAnimationFrame||b.webkitRequestAnimationFrame||b.mozRequestAnimationFrame||b.oRequestAnimationFrame||b.msRequestAnimationFrame||function(a){setTimeout(a,1e3/60)};e.prototype={init:function(){this.options.name=f+"_"+Math.floor(1e9*Math.random()),this._defineElements(),this._defineGetters(),this._defineSetters(),this._handleWindowLoadAndResize(),this._detectViewport(),this.refresh({firstLoad:!0}),"scroll"===this.options.scrollProperty?this._handleScrollEvent():this._startAnimationLoop()},_defineElements:function(){this.element===c.body&&(this.element=b),this.$scrollElement=a(this.element),this.$element=this.element===b?a("body"):this.$scrollElement,this.$viewportElement=this.options.viewportElement!==d?a(this.options.viewportElement):this.$scrollElement[0]===b||"scroll"===this.options.scrollProperty?this.$scrollElement:this.$scrollElement.parent()},_defineGetters:function(){var a=this,b=h[a.options.scrollProperty];this._getScrollLeft=function(){return b.getLeft(a.$scrollElement)},this._getScrollTop=function(){return b.getTop(a.$scrollElement)}},_defineSetters:function(){var b=this,c=h[b.options.scrollProperty],d=i[b.options.positionProperty],e=c.setLeft,f=c.setTop;this._setScrollLeft="function"==typeof e?function(a){e(b.$scrollElement,a)}:a.noop,this._setScrollTop="function"==typeof f?function(a){f(b.$scrollElement,a)}:a.noop,this._setPosition=d.setPosition||function(a,c,e,f,g){b.options.horizontalScrolling&&d.setLeft(a,c,e),b.options.verticalScrolling&&d.setTop(a,f,g)}},_handleWindowLoadAndResize:function(){var c=this,d=a(b);c.options.responsive&&d.bind("load."+this.name,function(){c.refresh()}),d.bind("resize."+this.name,function(){c._detectViewport(),c.options.responsive&&c.refresh()})},refresh:function(c){var d=this,e=d._getScrollLeft(),f=d._getScrollTop();c&&c.firstLoad||this._reset(),this._setScrollLeft(0),this._setScrollTop(0),this._setOffsets(),this._findParticles(),this._findBackgrounds(),c&&c.firstLoad&&/WebKit/.test(navigator.userAgent)&&a(b).load(function(){var a=d._getScrollLeft(),b=d._getScrollTop();d._setScrollLeft(a+1),d._setScrollTop(b+1),d._setScrollLeft(a),d._setScrollTop(b)}),this._setScrollLeft(e),this._setScrollTop(f)},_detectViewport:function(){var a=this.$viewportElement.offset(),b=null!==a&&a!==d;this.viewportWidth=this.$viewportElement.width(),this.viewportHeight=this.$viewportElement.height(),this.viewportOffsetTop=b?a.top:0,this.viewportOffsetLeft=b?a.left:0},_findParticles:function(){{var b=this;this._getScrollLeft(),this._getScrollTop()}if(this.particles!==d)for(var c=this.particles.length-1;c>=0;c--)this.particles[c].$element.data("stellar-elementIsActive",d);this.particles=[],this.options.parallaxElements&&this.$element.find("[data-stellar-ratio]").each(function(){var c,e,f,g,h,i,j,k,l,m=a(this),n=0,o=0,p=0,q=0;if(m.data("stellar-elementIsActive")){if(m.data("stellar-elementIsActive")!==this)return}else m.data("stellar-elementIsActive",this);b.options.showElement(m),m.data("stellar-startingLeft")?(m.css("left",m.data("stellar-startingLeft")),m.css("top",m.data("stellar-startingTop"))):(m.data("stellar-startingLeft",m.css("left")),m.data("stellar-startingTop",m.css("top"))),f=m.position().left,g=m.position().top,h="auto"===m.css("margin-left")?0:parseInt(m.css("margin-left"),10),i="auto"===m.css("margin-top")?0:parseInt(m.css("margin-top"),10),k=m.offset().left-h,l=m.offset().top-i,m.parents().each(function(){var b=a(this);return b.data("stellar-offset-parent")===!0?(n=p,o=q,j=b,!1):(p+=b.position().left,void(q+=b.position().top))}),c=m.data("stellar-horizontal-offset")!==d?m.data("stellar-horizontal-offset"):j!==d&&j.data("stellar-horizontal-offset")!==d?j.data("stellar-horizontal-offset"):b.horizontalOffset,e=m.data("stellar-vertical-offset")!==d?m.data("stellar-vertical-offset"):j!==d&&j.data("stellar-vertical-offset")!==d?j.data("stellar-vertical-offset"):b.verticalOffset,b.particles.push({$element:m,$offsetParent:j,isFixed:"fixed"===m.css("position"),horizontalOffset:c,verticalOffset:e,startingPositionLeft:f,startingPositionTop:g,
619startingOffsetLeft:k,startingOffsetTop:l,parentOffsetLeft:n,parentOffsetTop:o,stellarRatio:m.data("stellar-ratio")!==d?m.data("stellar-ratio"):1,width:m.outerWidth(!0),height:m.outerHeight(!0),isHidden:!1})})},_findBackgrounds:function(){var b,c=this,e=this._getScrollLeft(),f=this._getScrollTop();this.backgrounds=[],this.options.parallaxBackgrounds&&(b=this.$element.find("[data-stellar-background-ratio]"),this.$element.data("stellar-background-ratio")&&(b=b.add(this.$element)),b.each(function(){var b,g,h,i,j,k,l,o=a(this),p=n(o),q=0,r=0,s=0,t=0;if(o.data("stellar-backgroundIsActive")){if(o.data("stellar-backgroundIsActive")!==this)return}else o.data("stellar-backgroundIsActive",this);o.data("stellar-backgroundStartingLeft")?m(o,o.data("stellar-backgroundStartingLeft"),o.data("stellar-backgroundStartingTop")):(o.data("stellar-backgroundStartingLeft",p[0]),o.data("stellar-backgroundStartingTop",p[1])),h="auto"===o.css("margin-left")?0:parseInt(o.css("margin-left"),10),i="auto"===o.css("margin-top")?0:parseInt(o.css("margin-top"),10),j=o.offset().left-h-e,k=o.offset().top-i-f,o.parents().each(function(){var b=a(this);return b.data("stellar-offset-parent")===!0?(q=s,r=t,l=b,!1):(s+=b.position().left,void(t+=b.position().top))}),b=o.data("stellar-horizontal-offset")!==d?o.data("stellar-horizontal-offset"):l!==d&&l.data("stellar-horizontal-offset")!==d?l.data("stellar-horizontal-offset"):c.horizontalOffset,g=o.data("stellar-vertical-offset")!==d?o.data("stellar-vertical-offset"):l!==d&&l.data("stellar-vertical-offset")!==d?l.data("stellar-vertical-offset"):c.verticalOffset,c.backgrounds.push({$element:o,$offsetParent:l,isFixed:"fixed"===o.css("background-attachment"),horizontalOffset:b,verticalOffset:g,startingValueLeft:p[0],startingValueTop:p[1],startingBackgroun
619dPositionLeft:isNaN(parseInt(p[0],10))?0:parseInt(p[0],10),startingBackgroundPositionTop:isNaN(parseInt(p[1],10))?0:parseInt(p[1],10),startingPositionLeft:o.position().left,startingPositionTop:o.position().top,startingOffsetLeft:j,startingOffsetTop:k,parentOffsetLeft:q,parentOffsetTop:r,stellarRatio:o.data("stellar-background-ratio")===d?1:o.data("stellar-background-ratio")})}))},_reset:function(){var a,b,c,d,e;for(e=this.particles.length-1;e>=0;e--)a=this.particles[e],b=a.$element.data("stellar-startingLeft"),c=a.$element.data("stellar-startingTop"),this._setPosition(a.$element,b,b,c,c),this.options.showElement(a.$element),a.$element.data("stellar-startingLeft",null).data("stellar-elementIsActive",null).data("stellar-backgroundIsActive",null);for(e=this.backgrounds.length-1;e>=0;e--)d=this.backgrounds[e],d.$element.data("stellar-backgroundStartingLeft",null).data("stellar-backgroundStartingTop",null),m(d.$element,d.startingValueLeft,d.startingValueTop)},destroy:function(){this._reset(),this.$scrollElement.unbind("resize."+this.name).unbind("scroll."+this.name),this._animationLoop=a.noop,a(b).unbind("load."+this.name).unbind("resize."+this.name)},_setOffsets:function(){var c=this,d=a(b);d.unbind("resize.horizontal-"+this.name).unbind("resize.vertical-"+this.name),"function"==typeof this.options.horizontalOffset?(this.horizontalOffset=this.options.horizontalOffset(),d.bind("resize.horizontal-"+this.name,function(){c.horizontalOffset=c.options.horizontalOffset()})):this.horizontalOffset=this.options.horizontalOffset,"function"==typeof this.options.verticalOffset?(this.verticalOffset=this.options.verticalOffset(),d.bind("resize.vertical-"+this.name,function(){c.verticalOffset=c.options.verticalOffset()})):this.verticalOffset=this.options.verticalOffset},_repositionElements:function(){var a,b,c,d,e,f,g,h,i,j,k=this._getScrollLeft(),l=this._getScrollTop(),n=!0,o=!0;if(this.currentScrollLeft!==k||this.currentScrollTop!==l||this.currentWidth!==this.viewportWidth||this.currentHeight!==this.viewportHeight){for(this.currentScrollLeft=k,this.currentScrollTop=l,this.currentWidth=this.viewportWidth,this.currentHeight=this.viewportHeight,j=this.particles.length-1;j>=0;j--)a=this.particles[j],b=a.isFixed?1:0,this.options.horizontalScrolling?(f=(k+a.horizontalOffset+this.viewportOffsetLeft+a.startingPositionLeft-a.startingOffsetLeft+a.parentOffsetLeft)*-(a.stellarRatio+b-1)+a.startingPositionLeft,h=f-a.startingPositionLeft+a.startingOffsetLeft):(f=a.startingPositionLeft,h=a.startingOffsetLeft),this.options.verticalScrolling?(g=(l+a.verticalOffset+this.viewportOffsetTop+a.startingPositionTop-a.startingOffsetTop+a.parentOffsetTop)*-(a.stellarRatio+b-1)+a.startingPositionTop,i=g-a.startingPositionTop+a.startingOffsetTop):(g=a.startingPositionTop,i=a.startingOffsetTop),this.options.hideDistantElements&&(o=!this.options.horizontalScrolling||h+a.width>(a.isFixed?0:k)&&h<(a.isFixed?0:k)+this.viewportWidth+this.viewportOffsetLeft,n=!this.options.verticalScrolling||i+a.height>(a.isFixed?0:l)&&i<(a.isFixed?0:l)+this.viewportHeight+this.viewportOffsetTop),o&&n?(a.isHidden&&(this.options.showElement(a.$element),a.isHidden=!1),this._setPosition(a.$element,f,a.startingPositionLeft,g,a.startingPositionTop)):a.isHidden||(this.options.hideElement(a.$element),a.isHidden=!0);for(j=this.backgrounds.length-1;j>=0;j--)c=this.backgrounds[j],b=c.isFixed?0:1,d=this.options.horizontalScrolling?(k+c.horizontalOffset-this.viewportOffsetLeft-c.startingOffsetLeft+c.parentOffsetLeft-c.startingBackgroun
619dPositionLeft)*(b-c.stellarRatio)+"px":c.startingValueLeft,e=this.options.verticalScrolling?(l+c.verticalOffset-this.viewportOffsetTop-c.startingOffsetTop+c.parentOffsetTop-c.startingBackgroundPositionTop)*(b-c.stellarRatio)+"px":c.startingValueTop,m(c.$element,d,e)}},_handleScrollEvent:function(){var a=this,b=!1,c=function(){a._repositionElements(),b=!1},d=function(){b||(o(c),b=!0)};this.$scrollElement.bind("scroll."+this.name,d),d()},_startAnimationLoop:function(){var a=this;this._animationLoop=function(){o(a._animationLoop),a._repositionElements()},this._animationLoop()}},a.fn[f]=function(b){var c=arguments;return b===d||"object"==typeof b?this.each(function(){a.data(this,"plugin_"+f)||a.data(this,"plugin_"+f,new e(this,b))}):"string"==typeof b&&"_"!==b[0]&&"init"!==b?this.each(function(){var d=a.data(this,"plugin_"+f);d instanceof e&&"function"==typeof d[b]&&d[b].apply(d,Array.prototype.slice.call(c,1)),"destroy"===b&&a.data(this,"plugin_"+f,null)}):void 0},a[f]=function(){var c=a(b);return c.stellar.apply(c,Array.prototype.slice.call(arguments,0))},a[f].scrollProperty=h,a[f].positionProperty=i,b.Stellar=e}(jQuery,this,document); 620// Ion.RangeSlider | version 2.2.0 | https://github.com/IonDen/ion.rangeSlider 621;(function(f){"function"===typeof define&&define.amd?define(["jquery"],function(n){return f(n,document,window,navigator)}):"object"===typeof exports?f(require("jquery"),document,window,navigator):f(jQuery,document,window,navigator)})(function(f,n,k,r,p){var t=0,m=function(){var a=r.userAgent,b=/msie\s\d+/i;return 0<a.search(b)&&(a=b.exec(a).toString(),a=a.split(" ")[1],9>a)?(f("html").addClass("lt-ie9"),!0):!1}();Function.prototype.bind||(Function.prototype.bind=function(a){var b=this,d=[].slice;if("function"!= 622typeof b)throw new TypeError;var c=d.call(arguments,1),e=function(){if(this instanceof e){var g=function(){};g.prototype=b.prototype;var g=new g,l=b.apply(g,c.concat(d.call(arguments)));return Object(l)===l?l:g}return b.apply(a,c.concat(d.call(arguments)))};return e});Array.prototype.indexOf||(Array.prototype.indexOf=function(a,b){if(null==this)throw new TypeError('"this" is null or not defined');var d=Object(this),c=d.length>>>0;if(0===c)return-1;var e=+b||0;Infinity===Math.abs(e)&&(e=0);if(e>=c)return-1; 623for(e=Math.max(0<=e?e:c-Math.abs(e),0);e<c;){if(e in d&&d[e]===a)return e;e++}return-1});var q=function(a,b,d){this.VERSION="2.2.0";this.input=a;this.plugin_count=d;this.old_to=this.old_from=this.update_tm=this.calc_count=this.current_plugin=0;this.raf_id=this.old_min_interval=null;this.no_diapason=this.force_redraw=this.dragging=!1;this.has_tab_index=!0;this.is_update=this.is_key=!1;this.is_start=!0;this.is_click=this.is_resize=this.is_active=this.is_finish=!1;b=b||{};this.$cache={win:f(k),body:f(n.body), 624input:f(a),cont:null,rs:null,min:null,max:null,from:null,to:null,single:null,bar:null,line:null,s_single:null,s_from:null,s_to:null,shad_single:null,shad_from:null,shad_to:null,edge:null,grid:null,grid_labels:[]};this.coords={x_gap:0,x_pointer:0,w_rs:0,w_rs_old:0,w_handle:0,p_gap:0,p_gap_left:0,p_gap_right:0,p_step:0,p_pointer:0,p_handle:0,p_single_fake:0,p_single_real:0,p_from_fake:0,p_from_real:0,p_to_fake:0,p_to_real:0,p_bar_x:0,p_bar_w:0,grid_gap:0,big_num:0,big:[],big_w:[],big_p:[],big_x:[]}; 625this.labels={w_min:0,w_max:0,w_from:0,w_to:0,w_single:0,p_min:0,p_max:0,p_from_fake:0,p_from_left:0,p_to_fake:0,p_to_left:0,p_single_fake:0,p_single_left:0};var c=this.$cache.input;a=c.prop("value");var e;d={type:"single",min:10,max:100,from:null,to:null,step:1,min_interval:0,max_interval:0,drag_interval:!1,values:[],p_values:[],from_fixed:!1,from_min:null,from_max:null,from_shadow:!1,to_fixed:!1,to_min:null,to_max:null,to_shadow:!1,prettify_enabled:!0,prettify_separator:" ",prettify:null,force_edges:!1, 626keyboard:!0,grid:!1,grid_margin:!0,grid_num:4,grid_snap:!1,hide_min_max:!1,hide_from_to:!1,prefix:"",postfix:"",max_postfix:"",decorate_both:!0,values_separator:" \u2014 ",input_values_separator:";",disable:!1,block:!1,extra_classes:"",scope:null,onStart:null,onChange:null,onFinish:null,onUpdate:null};"INPUT"!==c[0].nodeName&&console&&console.warn&&console.warn("Base element should be <input>!",c[0]);c={type:c.data("type"),min:c.data("min"),max:c.data("max"),from:c.data("from"),to:c.data("to"),step:c.data("step"), 627min_interval:c.data("minInterval"),max_interval:c.data("maxInterval"),drag_interval:c.data("dragInterval"),values:c.data("values"),from_fixed:c.data("fromFixed"),from_min:c.data("fromMin"),from_max:c.data("fromMax"),from_shadow:c.data("fromShadow"),to_fixed:c.data("toFixed"),to_min:c.data("toMin"),to_max:c.data("toMax"),to_shadow:c.data("toShadow"),prettify_enabled:c.data("prettifyEnabled"),prettify_separator:c.data("prettifySeparator"),force_edges:c.data("forceEdges"),keyboard:c.data("keyboard"), 628grid:c.data("grid"),grid_margin:c.data("gridMargin"),grid_num:c.data("gridNum"),grid_snap:c.data("gridSnap"),hide_min_max:c.data("hideMinMax"),hide_from_to:c.data("hideFromTo"),prefix:c.data("prefix"),postfix:c.data("postfix"),max_postfix:c.data("maxPostfix"),decorate_both:c.data("decorateBoth"),values_separator:c.data("valuesSeparator"),input_values_separator:c.data("inputValuesSeparator"),disable:c.data("disable"),block:c.data("block"),extra_classes:c.data("extraClasse
628s")};c.values=c.values&&c.values.split(","); 629for(e in c)c.hasOwnProperty(e)&&(c[e]!==p&&""!==c[e]||delete c[e]);a!==p&&""!==a&&(a=a.split(c.input_values_separator||b.input_values_separator||";"),a[0]&&a[0]==+a[0]&&(a[0]=+a[0]),a[1]&&a[1]==+a[1]&&(a[1]=+a[1]),b&&b.values&&b.values.length?(d.from=a[0]&&b.values.indexOf(a[0]),d.to=a[1]&&b.values.indexOf(a[1])):(d.from=a[0]&&+a[0],d.to=a[1]&&+a[1]));f.extend(d,b);f.extend(d,c);this.options=d;this.update_check={};this.validate();this.result={input:this.$cache.input,slider:null,min:this.options.min, 630max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null};this.init()};q.prototype={init:function(a){this.no_diapason=!1;this.coords.p_step=this.convertToPercent(this.options.step,!0);this.target="base";this.toggleInput();this.append();this.setMinMax();a?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart());this.updateScene()},append:function(){this.$cache.input.before('<span class="irs js-irs-'+ 631this.plugin_count+" "+this.options.extra_classes+'"></span>');this.$cache.input.prop("readonly",!0);this.$cache.cont=this.$cache.input.prev();this.result.slider=this.$cache.cont;this.$cache.cont.html('<span class="irs"><span class="irs-line" tabindex="0"><span class="irs-line-left"></span><span class="irs-line-mid"></span><span class="irs-line-right"></span></span><span class="irs-min">0</span><span class="irs-max">1</span><span class="irs-from">0</span><span class="irs-to">0</span><span class="irs-single">0</span></span><span class="irs-grid"></span><span class="irs-bar"></span>');
632this.$cache.rs=this.$cache.cont.find(".irs");this.$cache.min=this.$cache.cont.find(".irs-min");this.$cache.max=this.$cache.cont.find(".irs-max");this.$cache.from=this.$cache.cont.find(".irs-from");this.$cache.to=this.$cache.cont.find(".irs-to");this.$cache.single=this.$cache.cont.find(".irs-single");this.$cache.bar=this.$cache.cont.find(".irs-bar");this.$cache.line=this.$cache.cont.find(".irs-line");this.$cache.grid=this.$cache.cont.find(".irs-grid");"single"===this.options.type?(this.$cache.cont.append('<span class="irs-bar-edge"></span><span class="irs-shadow shadow-single"></span><span class="irs-slider single"></span>'), 633this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append('<span class="irs-shadow shadow-from"></span><span class="irs-shadow shadow-to"></span><span class="irs-slider from"></span><span class="irs-slider to"></span>'),this.$cache.s_from=this.$cache.cont.find(".from"), 634this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler());this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none");this.appendGrid();this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.input[0].disabled=!1,this.removeDisableMask(),this.bindEvents()); 635this.options.disable||(this.options.block?this.appendDisableMask():this.removeDisableMask());this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var a=this.options.max,b=this.options.to;this.options.from>this.options.min&&b===a?this.$cache.s_from.addClass("type_last"):b<a&&this.$cache.s_to.addClass("type_last")},changeLevel:function(a){switch(a){case "single":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_single_fake);this.$cache.s_single.addClass("state_hover"); 636break;case "from":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_from_fake);this.$cache.s_from.addClass("state_hover");this.$cache.s_from.addClass("type_last");this.$cache.s_to.removeClass("type_last");break;case "to":this.coords.p_gap=this.toFixed(this.coords.p_pointer-this.coords.p_to_fake);this.$cache.s_to.addClass("state_hover");this.$cache.s_to.addClass("type_last");this.$cache.s_from.removeClass("type_last");break;case "both":this.coords.p_gap_left=this.toFixed(this.coords.p_pointer- 637this.coords.p_from_fake),this.coords.p_gap_right=this.toFixed(this.coords.p_to_fake-this.coords.p_pointer),this.$cache.s_to.removeClass("type_last"),this.$cache.s_from.removeClass("type_last")}},appendDisableMask:function(){this.$cache.cont.append('<span class="irs-disable-mask"></span>');this.$cache.cont.addClass("irs-disabled")},removeDisableMask:function(){this.$cache.cont.remove(".irs-disable-mask");this.$cache.cont.removeClass("irs-disabled")},remove:function(){this.$cache.cont.remove();this.$cache.cont= 638null;this.$cache.line.off("keydown.irs_"+this.plugin_count);this.$cache.body.off("touchmove.irs_"+this.plugin_count);this.$cache.body.off("mousemove.irs_"+this.plugin_count);this.$cache.win.off("touchend.irs_"+this.plugin_count);this.$cache.win.off("mouseup.irs_"+this.plugin_count);m&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count));this.$cache.grid_labels=[];this.coords.big=[];this.coords.big_w=[];this.coords.big_p=[];this.coords.big_x= 639[];cancelAnimationFrame(this.raf_id)},bindEvents:function(){if(!this.no_diapason){this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this));this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this));this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this));this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this));this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")); 640this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"));this.$cache.line.on("focus.irs_"+this.plugin_count,this.pointerFocus.bind(this));this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")), 641this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")));"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this, 642"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+ 643this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this, 644"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+ 645this.plugin_count,this.pointerClick.bind(this,"click")));
645if(this.options.keyboard)this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard"));m&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this)))}},pointerFocus:function(a){if(!this.target){var b="single"===this.options.type?this.$cache.single:this.$cache.from;a=b.offset().left;a+=b.width()/2-1;this.pointerClick("single", 646{preventDefault:function(){},pageX:a})}},pointerMove:function(a){this.dragging&&(this.coords.x_pointer=(a.pageX||a.originalEvent.touches&&a.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(a){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,m&&f("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(f.contains(this.$cache.cont[0], 647a.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(a,b){b.preventDefault();var d=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&("both"===a&&this.setTempMinInterval(),a||(a=this.target||"from"),this.current_plugin=this.plugin_count,this.target=a,this.dragging=this.is_active=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=d-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(a),m&&f("*").prop("unselectable", 648!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(a,b){b.preventDefault();var d=b.pageX||b.originalEvent.touches&&b.originalEvent.touches[0].pageX;2!==b.button&&(this.current_plugin=this.plugin_count,this.target=a,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(d-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(a,b){if(!(this.current_plugin!==this.plugin_count||b.altKey|| 649b.ctrlKey||b.shiftKey||b.metaKey)){switch(b.which){case 83:case 65:case 40:case 37:b.preventDefault();this.moveByKey(!1);break;case 87:case 68:case 38:case 39:b.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(a){var b=this.coords.p_pointer,d=(this.options.max-this.options.min)/100,d=this.options.step/d;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*(a?b+d:b-d));this.is_key=!0;this.calc()},setMinMax:function(){if(this.options)if(this.options.hide_min_max)this.$cache.min[0].style.display= 650"none",this.$cache.max[0].style.display="none";else{if(this.options.values.length)this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]));else{var a=this._prettify(this.options.min),b=this._prettify(this.options.max);this.result.min_pretty=a;this.result.max_pretty=b;this.$cache.min.html(this.decorate(a,this.options.min));this.$cache.max.html(this.decorate(b,this.options.max))}this.labels.w_min=this.$cache.min.outerWidth(!1); 651this.labels.w_max=this.$cache.max.outerWidth(!1)}},setTempMinInterval:function(){var a=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval);this.options.min_interval=a},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(a){if(this.options){this.calc_count++;
651if(10===this.calc_count||a)this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1), 652this.calcHandlePercent();if(this.coords.w_rs){this.calcPointerPercent();a=this.getHandleX();"both"===this.target&&(this.coords.p_gap=0,a=this.getHandleX());"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,a=this.getHandleX(),this.target=this.options.drag_interval?"both_one":this.chooseHandle(a));switch(this.target){case "base":var b=(this.options.max-this.options.min)/100;a=(this.result.from-this.options.min)/b;b=(this.result.to-this.options.min)/b;this.coords.p_single_real=this.toFixed(a); 653this.coords.p_from_real=this.toFixed(a);this.coords.p_to_real=this.toFixed(b);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);this.coords.p_from_fake= 654this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);this.target=null;break;case "single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(a);this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real);this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max);this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real); 655break;case "from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(a);this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real);this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from_real= 656this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case "to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(a);this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real);this.coords.p_to_real<this.coords.p_from_real&&(this.coords.p_to_real=this.coords.p_from_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max); 657this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to_real=this.checkMaxInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case "both":if(this.options.from_fixed||this.options.to_fixed)break;a=this.toFixed(a+.001*this.coords.p_handle);this.coords.p_from_real=this.convertToRealPercent(a)-this.coords.p_gap_left;this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real); 658this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max);this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from");this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_real=this.convertToRealPercent(a)+this.coords.p_gap_right;this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min, 659this.options.to_max);this.coords.p_to_real=this.checkMinInterval(this.coords.p_to_real,this.coords.p_from_real,"to");this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real);break;case "both_one":if(!this.options.from_fixed&&!this.options.to_fixed){var d=this.convertToRealPercent(a);a=this.result.to_percent-this.result.from_percent;var c=a/2,b=d-c,d=d+c;0>b&&(b=0,d=b+a);100<d&&(d=100,b=d-a);this.coords.p_from_real=this.calcWithStep(b);this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real, 660this.options.from_min,this.options.from_max);this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);this.coords.p_to_real=this.calcWithStep(d);this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max);this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real)}}"single"===this.options.type?(this.coords.p_bar_x=this.coords.p_handle/2,this.coords.p_bar_w=this.coords.p_single_fake,this.result.from_percent=this.coords.p_single_real, 661this.result.from=this.convertToValue(this.coords.p_single_real),this.result.from_pretty=this._prettify(this.result.from),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from])):(this.coords.p_bar_x=this.toFixed(this.coords.p_from_fake+this.coords.p_handle/2),this.coords.p_bar_w=this.toFixed(this.coords.p_to_fake-this.coords.p_from_fake),this.result.from_percent=this.coords.p_from_real,this.result.from=this.convertToValue(this.coords.p_from_real),this.result.from_pretty= 662this._prettify(this.result.from),this.result.to_percent=this.coords.p_to_real,this.result.to=this.convertToValue(this.coords.p_to_real),this.result.to_pretty=this._prettify(this.result.to),this.options.values.length&&(this.result.from_value=this.options.values[this.result.from],this.result.to_value=this.options.values[this.result.to]));this.calcMinMax();this.calcLabels()}}},calcPointerPercent:function(){this.coords.w_rs?(0>this.coords.x_pointer||isNaN(this.coords.x_pointer)?this.coords.x_pointer= 6630:this.coords.x_pointer>this.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(a){return a/(100-this.coords.p_handle)*100},convertToFakePercent:function(a){return a/100*(100-this.coords.p_handle)}
663,getHandleX:function(){var a=100-this.coords.p_handle,b=this.toFixed(this.coords.p_pointer-this.coords.p_gap);0>b?b=0:b>a&&(b=a);return b},calcHandlePercent:function(){this.coords.w_handle= 664"single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1);this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100)},chooseHandle:function(a){return"single"===this.options.type?"single":a>=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max= 665this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left= 666this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left= 667this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&& 668(cancelAnimationFrame(this.raf_id),this.raf_id=null);clearTimeout(this.update_tm);this.update_tm=null;this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1);if(this.coords.w_rs){this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0);if(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)this.setMinMax(), 669this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow();if(this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)){if(this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key){this.drawLabels();this.$cache.bar[0].style.left=this.coords.p_bar_x+"%";this.$cache.bar[0].style.width=this.coords.p_bar_w+"%";if("single"===this.options.type)this.$cache.s_single[0].style.left= 670this.coords.p_single_fake+"%";else{this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%";this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%";if(this.old_from!==this.result.from||this.force_redraw)this.$cache.from[0].style.left=this.labels.p_from_left+"%";if(this.old_to!==this.result.to||this.force_redraw)this.$cache.to[0].style.left=this.labels.p_to_left+"%"}this.$cache.single[0].style.left=this.labels.p_single_left+"%";this.writeToInput();this.old_from===this.result.from&&this.old_to=== 671this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input"));this.old_from=this.result.from;this.old_to=this.result.to;this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange();if(this.is_key||this.is_click)this.is_click=this.is_key=!1,this.callOnFinish();this.is_finish=this.is_resize=this.is_update=!1}this.force_redraw=this.is_click=this.is_key=this.is_start=!1}}},drawLabels:function(){if(this.options){var a=this.options.values.length, 672b=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type){if(a)a=this.decorate(b[this.result.from]);else{var d=this._prettify(this.result.from);a=this.decorate(d,this.result.from)}this.$cache.single.html(a);this.calcLabels();this.$cache.min[0].style.visibility=this.labels.p_single_left<this.labels.p_min+1?"hidden":"visible";this.$cache.max[0].style.visibility=this.labels.p_single_left+this.labels.p_single_fake>100-this.labels.p_max-1?"hidden":"visible"}else{a?(this.options.decorate_both? 673(a=this.decorate(b[this.result.from]),a+=this.options.values_separator,a+=this.decorate(b[this.result.to])):a=this.decorate(b[this.result.from]+this.options.values_separator+b[this.result.to]),d=this.decorate(b[this.result.from]),b=this.decorate(b[this.result.to])):(d=this._prettify(this.result.from),b=this._prettify(this.result.to),this.options.decorate_both?(a=this.decorate(d,this.result.from),a+=this.options.values_separator,a+=this.decorate(b,this.result.to)):a=this.decorate(d+this.options.values_separator+ 674b,this.result.to),d=this.decorate(d,this.result.from),b=this.decorate(b,this.result.to));this.$cache.single.html(a);this.$cache.from.html(d);this.$cache.to.html(b);this.calcLabels();a=Math.min(this.labels.p_single_left,this.labels.p_from_left);d=this.labels.p_single_left+this.labels.p_single_fake;var b=this.labels.p_to_left+this.labels.p_to_fake,c=Math.max(d,b);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility= 675"hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",c=b):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",c=Math.max(d,b))):(this.$cache.from[0].style.visibility= 676"visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden");this.$cache.min[0].style.visibility=a<this.labels.p_min+1?"hidden":"visible";this.$cache.max[0].style.visibility=c>100-this.labels.p_max-1?"hidden":"visible"}}},drawShadow:function(){var a=this.options,b=this.$cache,d="number"===typeof a.from_min&&!isNaN(a.from_min),c="number"===typeof a.from_max&&!isNaN(a.from_max),e="number"===typeof a.to_min&&!isNaN(a.to_min),g="number"===typeof a.to_max&&!isNaN(a.to_max); 677"single"===a.type?a.from_shadow&&(d||c)?(d=this.convertToPercent(d?a.from_min:a.min),c=this.convertToPercent(c?a.from_max:a.max)-d,d=this.toFixed(d-this.coords.p_handle/100*d),c=this.toFixed(c-this.coords.p_handle/100*c),d+=this.coords.p_handle/2,b.shad_single[0].style.display="block",b.shad_single[0].style.left=d+"%",b.shad_single[0].style.width=c+"%"):b.shad_single[0].style.display="none":(a.from_shadow&&(d||c)?(d=this.convertToPercent(d?a.from_min:a.min),c=this.convertToPercent(c?a.from_max:a.max)- 678d,d=this.toFixed(d-this.coords.p_handle/100*d),c=this.toFixed(c-this.coords.p_handle/100*c),d+=this.coords.p_handle/2,b.shad_from[0].style.display="block",b.shad_from[0].style.left=d+"%",b.shad_from[0].style.width=c+"%"):b.shad_from[0].style.display="none",a.to_shadow&&(e||g)?(e=this.convertToPercent(e?a.to_min:a.min),a=this.convertToPercent(g?a.to_max:a.max)-e,e=this.toFixed(e-this.coords.p_handle/100*e),a=this.toFixed(a-this.coords.p_handle/100*a),e+=this.coords.p_handle/2,b.shad_to[0].style.display= 679"block",b.shad_to[0].style.left=e+"%",b.shad_to[0].style.width=a+"
679%"):b.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value", 680this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput();if(this.options.onStart&&"function"===typeof this.options.onStart)if(this.options.scope)this.options.onStart.call(this.options.scope,this.result);else this.options.onStart(this.result)},callOnChange:function(){this.writeToInput();if(this.options.onChange&&"function"===typeof this.options.onChange)if(this.options.scope)this.options.onChange.call(this.options.scope, 681this.result);else this.options.onChange(this.result)},callOnFinish:function(){this.writeToInput();if(this.options.onFinish&&"function"===typeof this.options.onFinish)if(this.options.scope)this.options.onFinish.call(this.options.scope,this.result);else this.options.onFinish(this.result)},callOnUpdate:function(){this.writeToInput();if(this.options.onUpdate&&"function"===typeof this.options.onUpdate)if(this.options.scope)this.options.onUpdate.call(this.options.scope,this.result);else this.options.onUpdate(this.result)}, 682toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input");this.has_tab_index?this.$cache.input.prop("tabindex",-1):this.$cache.input.removeProp("tabindex");this.has_tab_index=!this.has_tab_index},convertToPercent:function(a,b){var d=this.options.max-this.options.min;return d?this.toFixed((b?a:a-this.options.min)/(d/100)):(this.no_diapason=!0,0)},convertToValue:function(a){var b=this.options.min,d=this.options.max,c=b.toString().split(".")[1],e=d.toString().split(".")[1],g,l,f=0,h=0; 683if(0===a)return this.options.min;if(100===a)return this.options.max;c&&(f=g=c.length);e&&(f=l=e.length);g&&l&&(f=g>=l?g:l);0>b&&(h=Math.abs(b),b=+(b+h).toFixed(f),d=+(d+h).toFixed(f));a=(d-b)/100*a+b;(b=this.options.step.toString().split(".")[1])?a=+a.toFixed(b.length):(a/=this.options.step,a*=this.options.step,a=+a.toFixed(0));h&&(a-=h);h=b?+a.toFixed(b.length):this.toFixed(a);h<this.options.min?h=this.options.min:h>this.options.max&&(h=this.options.max);return h},calcWithStep:function(a){var b= 684Math.round(a/this.coords.p_step)*this.coords.p_step;100<b&&(b=100);100===a&&(b=100);return this.toFixed(b)},checkMinInterval:function(a,b,d){var c=this.options;if(!c.min_interval)return a;a=this.convertToValue(a);b=this.convertToValue(b);"from"===d?b-a<c.min_interval&&(a=b-c.min_interval):a-b<c.min_interval&&(a=b+c.min_interval);return this.convertToPercent(a)},checkMaxInterval:function(a,b,d){var c=this.options;if(!c.max_interval)return a;a=this.convertToValue(a);b=this.convertToValue(b);"from"=== 685d?b-a>c.max_interval&&(a=b-c.max_interval):a-b>c.max_interval&&(a=b+c.max_interval);return this.convertToPercent(a)},checkDiapason:function(a,b,d){a=this.convertToValue(a);var c=this.options;"number"!==typeof b&&(b=c.min);"number"!==typeof d&&(d=c.max);a<b&&(a=b);a>d&&(a=d);return this.convertToPercent(a)},toFixed:function(a){a=a.toFixed(20);return+a},_prettify:function(a){return this.options.prettify_enabled?this.options.prettify&&"function"===typeof this.options.prettify?this.options.prettify(a): 686this.prettify(a):a},prettify:function(a){return a.toString().replace(/(\d{1,3}(?=(?:\d\d\d)+(?!\d)))/g,"$1"+this.options.prettify_separator)},checkEdges:function(a,b){if(!this.options.force_edges)return this.toFixed(a);0>a?a=0:a>100-b&&(a=100-b);return this.toFixed(a)},validate:function(){var a=this.options,b=this.result,d=a.values,c=d.length,e;"string"===typeof a.min&&(a.min=+a.min);"string"===typeof a.max&&(a.max=+a.max);"string"===typeof a.from&&(a.from=+a.from);"string"===typeof a.to&&(a.to=+a.to); 687"string"===typeof a.step&&(a.step=+a.step);"string"===typeof a.from_min&&(a.from_min=+a.from_min);"string"===typeof a.from_max&&(a.from_max=+a.from_max);"string"===typeof a.to_min&&(a.to_min=+a.to_min);"string"===typeof a.to_max&&(a.to_max=+a.to_max);"string"===typeof a.grid_num&&(a.grid_num=+a.grid_num);a.max<a.min&&(a.max=a.min);if(c)for(a.p_values=[],a.min=0,a.max=c-1,a.step=1,a.grid_num=a.max,a.grid_snap=!0,e=0;e<c;e++){var g=+d[e];isNaN(g)?g=d[e]:(d[e]=g,g=this._prettify(g));a.p_values.push(g)}if("number"!== 688typeof a.from||isNaN(a.from))a.from=a.min;if("number"!==typeof a.to||isNaN(a.to))a.to=a.max;"single"===a.type?(a.from<a.min&&(a.from=a.min),a.from>a.max&&(a.from=a.max)):(a.from<a.min&&(a.from=a.min),a.from>a.max&&(a.from=a.max),a.to<a.min&&(a.to=a.min),a.to>a.max&&(a.to=a.max),this.update_check.from&&(this.update_check.from!==a.from&&a.from>a.to&&(a.from=a.to),this.update_check.to!==a.to&&a.to<a.from&&(a.to=a.from)),a.from>a.to&&(a.from=a.to),a.to<a.from&&(a.to=a.from));if("number"!==typeof a.step|| 689isNaN(a.step)||!a.step||0>a.step)a.step=1;"number"===typeof a.from_min&&a.from<a.from_min&&(a.from=a.from_min);"number"===typeof a.from_max&&a.from>a.from_max&&(a.from=a.from_max);"number"===typeof a.to_min&&a.to<a.to_min&&(a.to=a.to_min);"number"===typeof a.to_max&&a.from>a.to_max&&(a.to=a.to_max);if(b){b.min!==a.min&&(b.min=a.min);b.max!==a.max&&(b.max=a.max);if(b.from<b.min||b.from>b.max)b.from=a.from;if(b.to<b.min||b.to>b.max)b.to=a.to}if("number"!==typeof a.min_interval||isNaN(a.min_interval)||
690!a.min_interval||0>a.min_interval)a.min_interval=0;if("number"!==typeof a.max_interval||isNaN(a.max_interval)||!a.max_interval||0>a.max_interval)a.max_interval=0;a.min_interval&&a.min_interval>a.max-a.min&&(a.min_interval=a.max-a.min);a.max_interval&&a.max_interval>a.max-a.min&&(a.max_interval=a.max-a.min)},decorate:function(a,b){var d="",c=this.options;c.prefix&&(d+=c.prefix);d+=a;c.max_postfix&&(c.values.length&&a===c.p_values[c.max]?(d+=c.max_postfix,c.postfix&&(d+=" ")):b===c.max&&(d+=c.max_postfix, 691c.postfix&&(d+=" ")));c.postfix&&(d+=c.postfix);return d},updateFrom:function(){this.result.from=this.options.from;this.result.from_percent=this.convertToPercent(this.result.from);this.result.from_pretty=this._prettify(this.result.from);this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to;this.result.to_percent=this.convertToPercent(this.result.to);this.result.to_pretty=this._prettify(this.result.to);this.options.values&& 692(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min;this.result.max=this.options.max;this.updateFrom();this.updateTo()},appendGrid:function(){if(this.options.grid){var a=this.options,b;var d=a.max-a.min;var c=a.grid_num,e=4,g="";this.calcGridMargin();if(a.grid_snap)if(50<d){c=50/a.step;var f=this.toFixed(a.step/.5)}else c=d/a.step,f=this.toFixed(a.step/(d/100));else f=this.toFixed(100/c);4<c&&(e=3);7<c&&(e=2);14<c&&(e=1);28<c&&(e=0); 693for(d=0;d<c+1;d++){var k=e;var h=this.toFixed(f*d);100<h&&(h=100);this.coords.big[d]=h;var m=(h-f*(d-1))/(k+1);for(b=1;b<=k&&0!==h;b++){var n=this.toFixed(h-m*b);g+='<span class="irs-grid-pol small" style="left: '+n+'%"></span>'}
693g+='<span class="irs-grid-pol" style="left: '+h+'%"></span>';b=this.convertToValue(h);b=a.values.length?a.p_values[b]:this._prettify(b);g+='<span class="irs-grid-text js-grid-text-'+d+'" style="left: '+h+'%">'+b+"</span>"}this.coords.big_num=Math.ceil(c+1);this.$cache.cont.addClass("irs-with-grid"); 694this.$cache.grid.html(g);this.cacheGridLabels()}},cacheGridLabels:function(){var a,b=this.coords.big_num;for(a=0;a<b;a++){var d=this.$cache.grid.find(".js-grid-text-"+a);this.$cache.grid_labels.push(d)}this.calcGridLabels()},calcGridLabels:function(){var a;var b=[];var d=[],c=this.coords.big_num;for(a=0;a<c;a++)this.coords.big_w[a]=this.$cache.grid_labels[a].outerWidth(!1),this.coords.big_p[a]=this.toFixed(this.coords.big_w[a]/this.coords.w_rs*100),this.coords.big_x[a]=this.toFixed(this.coords.big_p[a]/ 6952),b[a]=this.toFixed(this.coords.big[a]-this.coords.big_x[a]),d[a]=this.toFixed(b[a]+this.coords.big_p[a]);this.options.force_edges&&(b[0]<-this.coords.grid_gap&&(b[0]=-this.coords.grid_gap,d[0]=this.toFixed(b[0]+this.coords.big_p[0]),this.coords.big_x[0]=this.coords.grid_gap),d[c-1]>100+this.coords.grid_gap&&(d[c-1]=100+this.coords.grid_gap,b[c-1]=this.toFixed(d[c-1]-this.coords.big_p[c-1]),this.coords.big_x[c-1]=this.toFixed(this.coords.big_p[c-1]-this.coords.grid_gap)));this.calcGridCollision(2, 696b,d);this.calcGridCollision(4,b,d);for(a=0;a<c;a++)b=this.$cache.grid_labels[a][0],this.coords.big_x[a]!==Number.POSITIVE_INFINITY&&(b.style.marginLeft=-this.coords.big_x[a]+"%")},calcGridCollision:function(a,b,d){var c,e=this.coords.big_num;for(c=0;c<e;c+=a){var g=c+a/2;if(g>=e)break;var f=this.$cache.grid_labels[g][0];f.style.visibility=d[c]<=b[g]?"visible":"hidden"}},calcGridMargin:function(){this.options.grid_margin&&(this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_handle= 697"single"===this.options.type?this.$cache.s_single.outerWidth(!1):this.$cache.s_from.outerWidth(!1),this.coords.p_handle=this.toFixed(this.coords.w_handle/this.coords.w_rs*100),this.coords.grid_gap=this.toFixed(this.coords.p_handle/2-.1),this.$cache.grid[
6970].style.width=this.toFixed(100-this.coords.p_handle)+"%",this.$cache.grid[0].style.left=this.coords.grid_gap+"%"))},update:function(a){this.input&&(this.is_update=!0,this.options.from=this.result.from,this.options.to=this.result.to,this.update_check.from= 698this.result.from,this.update_check.to=this.result.to,this.options=f.extend(this.options,a),this.validate(),this.updateResult(a),this.toggleInput(),this.remove(),this.init(!0))},reset:function(){this.input&&(this.updateResult(),this.update())},destroy:function(){this.input&&(this.toggleInput(),this.$cache.input.prop("readonly",!1),f.data(this.input,"ionRangeSlider",null),this.remove(),this.options=this.input=null)}};f.fn.ionRangeSlider=function(a){return this.each(function(){f.data(this,"ionRangeSlider")|| 699f.data(this,"ionRangeSlider",new q(this,a,t++))})};(function(){for(var a=0,b=["ms","moz","webkit","o"],d=0;d<b.length&&!k.requestAnimationFrame;++d)k.requestAnimationFrame=k[b[d]+"RequestAnimationFrame"],k.cancelAnimationFrame=k[b[d]+"CancelAnimationFrame"]||k[b[d]+"CancelRequestAnimationFrame"];k.requestAnimationFrame||(k.requestAnimationFrame=function(b,d){var c=(new Date).getTime(),e=Math.max(0,16-(c-a)),f=k.setTimeout(function(){b(c+e)},e);a=c+e;return f});k.cancelAnimationFrame||(k.cancelAnimationFrame= 700function(a){clearTimeout(a)})})()}); 701
vendor: 45,479 bytes, lines 702-706
702/* == jquery mousewheel plugin == Version: 3.1.13, License: MIT License (MIT) */ 703!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}); 704/* == malihu jquery custom scrollbar plugin == Version: 3.1.5, License: MIT License (MIT) */ 705!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={setTop:0,setLeft:0,axis:"y",scrollbarPosition:"inside",scrollInertia:950,autoDraggerLength:!0,alwaysShowScrollbar:0,snapOffset:0,mouseWheel:{enable:!0,scrollAmount:"auto",axis:"y",deltaFactor:"auto",disableOver:["select","option","keygen","datalist","textarea"]},scrollButtons:{scrollType:"stepless",scrollAmount:"auto"},keyboard:{enable:!0,scrollType:"stepless",scrollAmount:"auto"},contentTouchScroll:25,documentTouchScroll:!0,advanced:{autoScrollOnFocus:"input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable='true']",updateOnContentResize:!0,updateOnImageLoad:"auto",autoUpdateTimeout:60},theme:"light",callbacks:{onTotalScrollOffset:0,onTotalScrollBackOffset:0,alwaysTriggerOffsets:!0}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["mCSB_dragger_onDrag","mCSB_scrollTools_onDrag","mCS_img_loaded","mCS_disabled","mCS_destroyed","mCS_no_scrollbar","mCS-autoHide","mCS-dir-rtl","mCS_no_scrollbar_y","mCS_no_scrollbar_x","mCS_y_hidden","mCS_x_hidden","mCSB_draggerContainer","mCSB_buttonUp","mCSB_buttonDown","mCSB_buttonLeft","mCSB_buttonRight"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&Q(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(G(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&G(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),N.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=Y.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=X.call(this,c[0],"y"),c[1]=X.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=ne()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",G(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",G(n,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&Q(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){o.data(a);N.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3])}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),N.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),$(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["rounded-dots","rounded-dots-dark","3d","3d-dark","3d-thick","3d-thick-dark","inset","inset-dark","inset-2","inset-2-dark","inset-3","inset-3-dark"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),$(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir='"+n.langDir+"' /></div>");var m=e("#mCSB_"+n.idx),p=e("#mCSB_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mCSB_"+o.idx+"_scrollbar:first"),r=oe(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' "+r+" />","<a href='#' class='"+d[14]+"' "+r+" />","<a href='#' class='"+d[15]+"' "+r+" />","<a href='#' class='"+d[16]+"' "+r+" />"],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])},S=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10})},b=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},y=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,c=i[0].scrollWidth;return s>r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()]},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(Q(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),G(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),G(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),W.call(o[0])):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&D.call(this),E.call(this),i.mouseWheel.enable){var r;t()}P.call(this),U.call(this),i.advanced.autoScrollOnFocus&&H.call(this),i.scrollButtons.enable&&F.call(this),i.keyboard.enable&&q.call(this),n.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!A()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),$(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),$(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),$(s[0],"onCompleteTimeout"),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},O=function(t){var o=t.type,a=t.target.ownerDocument!==document&&null!==frameElement?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=A()&&t.target.ownerDocument!==top.document&&null!==frameElement?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){function t(e,t,a,n){if(h[0].idleTimer=d.scrollInertia<233?250:0,o.attr("id")===f[1])var i="x",s=(o[0].offsetLeft-t+n)*l.scrollRatio.x;else var i="y",s=(o[0].offsetTop-e+a)*l.scrollRatio.y;G(r,s.toString(),{dir:i,drag:!0})}var o,n,i,r=e(this),l=r.data(a),d=l.opt,u=a+"_"+l.idx,f=["mCSB_"+l.idx+"_dragger_vertical","mCSB_"+l.idx+"_dragger_horizontal"],h=e("#mCSB_"+l.idx+"_container"),m=e("#"+f[0]+",#"+f[1]),p=d.advanced.releaseDraggableSelectors?m.add(e(d.advanced.releaseDraggableSelectors)):m,g=d.advanced.extraDraggableSelectors?e(!A()||top.document).add(e(d.advanced.extraDraggableSelectors)):e(!A()||top.document);m.bind("contextmenu."+u,function(e){e.preventDefault()}).bind("mousedown."+u+" touchstart."+u+" pointerdown."+u+" MSPointerDown."+u,function(t){if(t.stopImmediatePropagation(),t.preventDefault(),ee(t)){c=!0,s&&(document.onselectstart=function(){return!1}),L.call(h,!1),Q(r),o=e(this);var a=o.offset(),l=O(t)[0]-a.top,u=O(t)[1]-a.left,f=o.height()+a.top,m=o.width()+a.left;f>l&&l>0&&m>u&&u>0&&(n=l,i=u),C(o,"active",d.autoExpandScrollbar)}}).bind("touchmove."+u,function(e){e.stopImmediatePropagation(),e.preventDefault();var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;t(n,i,r,l)}),e(document).add(g).bind("mousemove."+u+" pointermove."+u+" MSPointerMove."+u,function(e){if(o){var a=o.offset(),r=O(e)[0]-a.top,l=O(e)[1]-a.left;if(n===r&&i===l)return;t(n,i,r,l)}}).add(p).bind("mouseup."+u+" touchend."+u+" pointerup."+u+" MSPointerUp."+u,function(){o&&(C(o,"active",d.autoExpandScrollbar),o=null),c=!1,s&&(document.onselectstart=null),L.call(h,!0)})},D=function(){function o(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,b=0,C=0,d=1,y.removeClass("mCS_touch_action");var o=I.offset();u=O(e)[0]-o.top,f=O(e)[1]-o.left,z=[O(e)[0],O(e)[1]]}function n(e){if(te(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),W.push(a),z[2]=Math.abs(O(e)[0]-z[0]),z[3]=Math.abs(O(e)[1]-z[1]),B.overflowed[0])var i=D[0].parent().height()-D[0].height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*z[3]<z[2]||"yx"===T.axis);if(B.overflowed[1])var l=D[1].parent().width()-D[1].width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*z[2]<z[3]||"yx"===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass("mCS_touch_action")),U&&e.preventDefault(),w="yx"===T.axis?[u-o,f-a]:"x"===T.axis?[null,f-a]:[u-o,null],I[0].idleTimer=250,B.overflowed[0]&&s(w[0],R,n,"y","all",!0),B.overflowed[1]&&s(w[1],R,n,"x",L,!0)}}function i(e){if(!te(e)||c||O(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),Q(y),p=K();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],W=[]}function r(e){if(te(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=K();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left;if(!(v-g>30)){_=1e3/(v-p);var n="mcsEaseOut",i=2.5>_,r=i?[E[E.length-2],W[W.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[Math.abs(x[0]),Math.abs(x[1])];_=i?[Math.abs(x[0]/4),Math.abs(x[1]/4)]:[_,_];var f=[Math.abs(I[0].offsetTop)-x[0]*l(u[0]/_[0],_[0]),Math.abs(I[0].offsetLeft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===T.axis?[f[0],f[1]]:"x"===T.axis?[null,f[1]]:[f[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,B.overflowed[0]&&s(w[0],S[0],n,"y",L,!1),B.overflowed[1]&&s(w[1],S[1],n,"x",L,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&G(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+"_"+B.idx,M=e("#mCSB_"+B.idx),I=e("#mCSB_"+B.idx+"_container"),D=[e("#mCSB_"+B.idx+"_dragger_vertical"),e("#mCSB_"+B.idx+"_dragger_horizontal")],E=[],W=[],R=0,L="yx"===T.axis?"none":"all",z=[],P=I.find("iframe"),H=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k],U=void 0!==document.body.style.touchAction&&""!==document.body.style.touchAction;I.bind(H[0],function(e){o(e)}).bind(H[1],function(e){n(e)}),M.bind(H[0],function(e){i(e)}).bind(H[2],function(e){r(e)}),P.length&&P.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),i(e)}).bind(H[1],function(e){n(e)}).bind(H[2],function(e){r(e)})})})},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,j(r,e,t,"mcsLinearOut",o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mCSB_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)[0]-a.top+f[0].offsetTop,c=O(e)[1]-a.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&n("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(){t||(i&&(i=0,n("off",null)),c=!1)})},W=function(){function t(t,a){if(Q(o),!z(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100,d=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var u="x",f=[Math.round(r*n.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v="y"===i.mouseWheel.axis?t.deltaY||a:t.deltaX;else var u="y",f=[Math.round(r*n.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<5&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),G(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mCSB_"+n.idx),c=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],d=e("#mCSB_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},R=new Object,A=function(t){var o=!1,a=!1,n=null;if(void 0===t?a="#empty":void 0!==e(t).attr("id")&&(a=e(t).attr("id")),a!==!1&&void 0!==R[a])return R[a];if(t){try{var i=t.contentDocument||t.contentWindow.document;n=i.body.innerHTML}catch(r){}o=null!==n}else{try{var i=top.document;n=i.body.innerHTML}catch(r){}o=null!==n}return a!==!1&&(R[a]=o),o},L=function(e){var t=this.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}},z=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},P=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=e(".mCSB_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){c=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){Q(o);var i=e(this),s=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-u*(.9*l.width())}else{if(!n.overflowed[0])return;var c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-u*(.9*l.height())}G(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(){var o=e(document.activeElement),a=r.find(".mCustomScrollBox").length,i=0;o.is(n.advanced.autoScrollOnFocus)&&(Q(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=a?(i+17)*a:0,t[0]._focusTimeout=setTimeout(function(){var e=[ae(o)[0],ae(o)[1]],a=[r[0].offsetTop,r[0].offsetLeft],s=[a[0]+e[0]>=0&&a[0]+e[0]<l.height()-o.outerHeight(!1),a[1]+e[1]>=0&&a[0]+e[1]<l.width()-o.outerWidth(!1)],c="yx"!==n.axis||s[0]||s[1]?"all":"none";"x"===n.axis||s[0]||G(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i}),"y"===n.axis||s[1]||G(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:i})},t[0]._focusTimer))})},U=function(){var t=e(this),o=t.data(a),n=a+"_"+o.idx,i=e("#mCSB_"+o.idx+"_container").parent();i.bind("scroll."+n,function(){0===i.scrollTop()&&0===i.scrollLeft()||e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},F=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("contextmenu."+r,function(e){e.preventDefault()}).bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){function r(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,j(t,e,o)}if(a.preventDefault(),ee(a)){var l=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l)}}})},q=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||j(o,e,t)}switch(t.type){case"blur":n.tweenRunning&&r.dir&&a("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){Q(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-f*(.9*d.width());else var h="y",m=Math.abs(c[0].offsetTop)-f*(.9*d.height());G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;G(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mCSB_"+n.idx),c=e("#mCSB_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).bind("load",function(){A(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},j=function(t,o,n,i,r){function l(e){u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array?"x"===f.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*(d[1]*n):s[0]+f.dir[1]*(d[0]*n),v="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),x="auto"!==f.scrollAmount?v:m,_=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=!!e;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),G(t,x.toString(),{dir:f.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},a)))}function s(){clearTimeout(f.step),$(f,"step"),Q(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case"on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],Q(t),oe(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},Y=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},X=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1)-s.width():l.outerHeight(!1)-s.height(),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?ae(m)[1]:ae(m)[0];case"string":case"number":if(oe(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&oe(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?ae(m)[1]:ae(m)[0]}return e(t).length?"x"===o?ae(e(t))[1]:ae(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},N=function(t){function o(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void(l=null):void(f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight+l[0].scrollWidth+f[0].offsetHeight+l[0].offsetHeight+l[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this)}))},c.advanced.autoUpdateTimeout))}function n(t){function o(e,t){return function(){ 706return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addClass(d[2]),r(2)}if(e(t).hasClass(d[2]))return void r();var n=new Image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var e=0,t=f.find(c.advanced.updateOnSelectorChange);return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],e)}var l=e(this),s=l.data(a),c=s.opt,f=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(f[0].autoUpdate),void $(f[0],"autoUpdate")):void o()},V=function(e,t,o){return Math.round(e/t)*t-o},Q=function(t){var o=t.data(a),n=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");n.each(function(){Z.call(this)})},G=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||w>=S[0]+y,c.callbacks.alwaysTriggerOffsets||-B>=w]}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[x[0].offsetTop,x[0].offsetLeft],a=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mCSB_"+s.idx),h=e("#mCSB_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?Y.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?Y.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=n.trigger,0===m.scrollTop()&&0===m.scrollLeft()||(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;o=V(o,v,c.snapOffset)}switch(n.dir){case"x":var x=e("#mCSB_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetLeft,S=[f.width()-h.outerWidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollRatio.x],y=p[1],B=g[1],T=y>0?y/s.scrollRatio.x:0,k=B>0?B/s.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsetTop,S=[f.height()-h.outerHeight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollRatio.y],y=p[0],B=g[0],T=y>0?y/s.scrollRatio.y:0,k=B>0?B/s.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=S[1]?b=[S[0],S[1]]:b[0]=-b[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),J(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),!s.tweenRunning&&(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0])||J(h[0],_,Math.round(b[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,C(x),s.cbOffsets=r())},onUpdate:function(){n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&b[1]>=S[1]-T&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,C(x,"hide")},e)}}})}},J=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=K()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call())}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=K(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c()},K=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},Z=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},$=function(e,t){try{delete e[t]}catch(o){e[t]=null}},ee=function(e){return!(e.which&&1!==e.which)},te=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},ne=function(){function e(){var e=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var t=0;t<e.length;t++)if(e[t]+"Hidden"in document)return e[t]+"Hidden";return null}var t=e();return t?document[t]:!1};e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).bind("load",function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+ae(n)[0]>=0&&a[0]+ae(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+ae(n)[1]>=0&&a[1]+ae(n)[1]<o.width()-n.outerWidth(!1)},mcsInSight:e.expr[":"].mcsInSight||function(t,o,a){var n,i,r,l,s=e(t),c=s.parents(".mCSB_container"),d="exact"===a[3]?[[1,0],[1,0]]:[[.9,.1],[.6,.4]];if(c.length)return n=[s.outerHeight(!1),s.outerWidth(!1)],r=[c[0].offsetTop+ae(s)[0],c[0].offsetLeft+ae(s)[1]],i=[c.parent()[0].offsetHeight,c.parent()[0].offsetWidth],l=[n[0]<i[0]?d[0]:d[1],n[1]<i[1]?d[0]:d[1]],r[0]-i[0]*l[0][0]<0&&r[0]+n[0]-i[0]*l[0][1]>=0&&r[1]-i[1]*l[1][0]<0&&r[1]+n[1]-i[1]*l[1][1]>=0},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});
706 707eval((function(c,t,a,f,i,b){if(i=function(e){return(e<t?"":i(parseInt(e/t)))+((e=e%t)>35?String.fromCharCode(e+29):e.toString(36))},!"".replace(/^/,String)){for(;a--;)b[i(a)]=f[a]||i(a);f=[function(e){return b[e]}],i=function(){return"\\w+"},a=1}for(;a--;)f[a]&&(c=c.replace(new RegExp("\\b"+i(a)+"\\b","g"),f[a]));return c})(`1j.9L=(17(){1a y,z;y=z=(17(){1a V={4c:"fq.3.4",dF:0,8c:{},$9I:17(Z){1b(Z.$5C||(Z.$5C=++P.dF))},8T:17(Z){1b(P.8c[Z]||(P.8c[Z]={}))},$F:17(){},$1i:17(){1b 1i},$1u:17(){1b 1u},dv:"bO-"+1o.4T(1o.6v()*1y bj().dS()),3a:17(Z){1b(2w!=Z)},a0:17(aa,Z){1b(2w!=aa)?aa:Z},8i:17(Z){1b!!(Z)},1R:17(Z){if(!P.3a(Z)){1b 1i}if(Z.$4t){1b Z.$4t}if(!!Z.5D){if(1==Z.5D){1b"6f"}if(3==Z.5D){1b"d7"}}if(Z.1G&&Z.e5){1b"f9"}if(Z.1G&&Z.8S){1b"26"}if((Z 3v 1j.67||Z 3v 1j.9U)&&Z.4U===P.3x){1b"4r"}if(Z 3v 1j.4n){1b"3Q"}if(Z 3v 1j.9U){1b"17"}if(Z 3v 1j.9f){1b"1V"}if(P.1g.4C){if(P.3a(Z.cj)){1b"1r"}}1l{if(Z===1j.1r||Z.4U==1j.1t||Z.4U==1j.eX||Z.4U==1j.fa||Z.4U==1j.f7||Z.4U==1j.fm){1b"1r"}}if(Z 3v 1j.bj){1b"d0"}if(Z 3v 1j.dL){1b"fF"}if(Z===1j){1b"1j"}if(Z===1m){1b"1m"}1b 7l(Z)},1Z:17(ae,ad){if(!(ae 3v 1j.4n)){ae=[ae]}if(!ad){1b ae[0]}1O(1a ac=0,aa=ae.1G;ac<aa;ac++){if(!P.3a(ae)){7Y}1O(1a ab in ad){if(!67.2p.3K.27(ad,ab)){7Y}2X{ae[ac][ab]=ad[ab]}3f(Z){}}}1b ae[0]},8R:17(ad,ac){if(!(ad 3v 1j.4n)){ad=[ad]}1O(1a ab=0,Z=ad.1G;ab<Z;ab++){if(!P.3a(ad[ab])){7Y}if(!ad[ab].2p){7Y}1O(1a aa in(ac||{})){if(!ad[ab].2p[aa]){ad[ab].2p[aa]=ac[aa]}}}1b ad[0]},dw:17(ab,aa){if(!P.3a(ab)){1b ab}1O(1a Z in(aa||{})){if(!ab[Z]){ab[Z]=aa[Z]}}1b ab},$2X:17(){1O(1a aa=0,Z=26.1G;aa<Z;aa++){2X{1b 26[aa]()}3f(ab){}}1b 1h},$A:17(ab){if(!P.3a(ab)){1b P.$([])}if(ab.e0){1b P.$(ab.e0())}if(ab.e5){1a aa=ab.1G||0,Z=1y 4n(aa);5U(aa--){Z[aa]=ab[aa]}1b P.$(Z)}1b P.$(4n.2p.7b.27(ab))},5A:17(){1b 1y bj().dS()},3n:17(ad){1a ab;3Z(P.1R(ad)){1A"7O":ab={};1O(1a ac in ad){ab[ac]=P.3n(ad[ac])}1B;1A"3Q":ab=[];1O(1a aa=0,Z=ad.1G;aa<Z;aa++){ab[aa]=P.3n(ad[aa])}1B;1Y:1b ad}1b P.$(ab)},$:17(ab){1a Z=1u;if(!P.3a(ab)){1b 1h}if(ab.$9x){1b ab}3Z(P.1R(ab)){1A"3Q":ab=P.dw(ab,P.1Z(P.4n,{$9x:P.$F}));ab.3h=ab.8s;ab.3P=P.4n.3P;1b ab;1B;1A"1V":1a aa=1m.c3(ab);if(P.3a(aa)){1b P.$(aa)}1b 1h;1B;1A"1j":1A"1m":P.$9I(ab);ab=P.1Z(ab,P.3s);1B;1A"6f":P.$9I(ab);ab=P.1Z(ab,P.3E);1B;1A"1r":ab=P.1Z(ab,P.1t);1B;1A"d7":1A"17":1A"3Q":1A"d0":1Y:Z=1i;1B}if(Z){1b P.1Z(ab,{$9x:P.$F})}1l{1b ab}},$1y:17(Z,ab,aa){1b P.$(P.7g.8a(Z)).8F(ab||{}).1H(aa||{})},5o:17(ac,ad,aa){1a Z,af,ab,ah=[],ag=-1;aa||(aa=P.dv);Z=P.$(aa)||P.$1y("2g",{id:aa,1z:"9k/4s"}).2O((1m.fp||1m.3A),"1F");af=Z.eb||Z.en;if("1V"!=P.1R(ad)){1O(1a ab in ad){ah.2W(ab+":"+ad[ab])}ad=ah.6m(";")}if(af.eQ){ag=af.eQ(ac+" {"+ad+"}",af.fo.1G)}1l{2X{ag=af.fJ(ac,ad,af.fe.1G)}3f(ae){}}1b ag},fi:17(ac,Z){1a ab,aa;ab=P.$(ac);if("6f"!==P.1R(ab)){1b}aa=ab.eb||ab.en;if(aa.er){aa.er(Z)}1l{if(aa.cY){aa.cY(Z)}}},fh:17(){1b"fH-fg-fE-fB-fy".4d(/[fx]/g,17(ab){1a aa=1o.6v()*16|0,Z=ab=="x"?aa:(aa&3|8);1b Z.7s(16)}).6O()},62:(17(){1a Z;1b 17(aa){if(!Z){Z=1m.8a("a")}Z.4a("7x",aa);1b("!!"+Z.7x).4d("!!","")}})(),ft:17(ab){1a ac=0,Z=ab.1G;1O(1a aa=0;aa<Z;++aa){ac=31*ac+ab.ep(aa);ac%=f3}1b ac}};1a P=V;1a Q=V.$;if(!1j.bJ){1j.bJ=V;1j.$bO=V.$}P.4n={$4t:"3Q",3W:17(ac,ad){1a Z=13.1G;1O(1a aa=13.1G,ab=(ad<0)?1o.2e(0,aa+ad):ad||0;ab<aa;ab++){if(13[ab]===ac){1b ab}}1b-1},3P:17(Z,aa){1b 13.3W(Z,aa)!=-1},8s:17(Z,ac){1O(1a ab=0,aa=13.1G;ab<aa;ab++){if(ab in 13){Z.27(ac,13[ab],ab,13)}}},2Z:17(Z,ae){1a ad=[];1O(1a ac=0,aa=13.1G;ac<aa;ac++){if(ac in 13){1a ab=13[ac];if(Z.27(ae,13[ac],ac,13)){ad.2W(ab)}}}1b ad},f6:17(Z,ad){1a ac=[];1O(1a ab=0,aa=13.1G;ab<aa;ab++){if(ab in 13){ac[ab]=Z.27(ad,13[ab],ab,13)}}1b ac}};P.8R(9f,{$4t:"1V",4I:17(){1b 13.4d(/^\\s+|\\s+$/g,"")},eq:17(Z,aa){1b(aa||1i)?(13.7s()===Z.7s()):(13.4z().7s()===Z.4z().7s())},5f:17(){1b 13.4d(/-\\D/g,17(Z){1b Z.8Y(1).6O()})},8m:17(){1b 13.4d(/[A-Z]/g,17(Z){1b("-"+Z.8Y(0).4z())})},fI:17(Z){1b 6n(13,Z||10)},fD:17(){1b 2l(13)},bB:17(){1b!13.4d(/1u/i,"").4I()},3N:17(aa,Z){Z=Z||"";1b(Z+13+Z).3W(Z+aa+Z)>-1}});V.8R(9U,{$4t:"17",1I:17(){1a aa=P.$A(26),Z=13,ab=aa.65();1b 17(){1b Z.5Q(ab||1h,aa.5v(P.$A(26)))}},2M:17(){1a aa=P.$A(26),Z=13,ab=aa.65();1b 17(ac){1b Z.5Q(ab||1h,P.$([ac||(P.1g.2U?1j.1r:1h)]).5v(aa))}},2G:17(){1a aa=P.$A(26),Z=13,ab=aa.65();1b 1j.4N(17(){1b Z.5Q(Z,aa)},ab||0)},es:17(){1a aa=P.$A(26),Z=13;1b 17(){1b Z.2G.5Q(Z,aa)}},cy:17(){1a aa=P.$A(26),Z=13,ab=aa.65();1b 1j.eP(17(){1b Z.5Q(Z,aa)},ab||0)}});1a W={};1a O=3m.f2.4z();1a N=O.3p(/(3O|6M|4C|9R)\\/(\\d+\\.?\\d*)/i);1a S=O.3p(/(fv|9H)\\/(\\d+\\.?\\d*)/i)||O.3p(/(ee|6a|ef|dl|7i|9H)\\/(\\d+\\.?\\d*)/i);1a U=O.3p(/4c\\/(\\d+\\.?\\d*)/i);1a J=1m.4m.2g;17 K(aa){1a Z=aa.8Y(0).6O()+aa.7b(1);1b aa in J||("eF"+Z)in J||("eg"+Z)in J||("6U"+Z)in J||("O"+Z)in J}P.1g={2R:{fC:!!(1m.fj),f5:!!(1j.8g),dB:!!(1m.9K),6d:!!(1m.f8||1m.fb||1m.8p||1m.cZ||1m.fc||1m.hd||1m.hl||1m.hm||1m.h7),bS:!!(1j.h0)&&!!(1j.hK)&&(1j.8A&&"hN"in 1y 8A),2v:K("2v"),2L:K("2L"),8t:K("8t"),cJ:K("cJ"),4D:1i,eK:1i,92:1i,a5:1i,8V:(17(){1b 1m.hO.hP("hQ://hR.hL.hS/hU/hV/hW#hY","1.1")}())},8r:(17(){1b"hT"in 1j||(1j.bU&&1m 3v bU)||(3m.fL>0)||(3m.hJ>0)}()),2F:!!O.3p(/(7M|bb\\d+|hu).+|hH|hE\\/|hD|hC|hB|hA|hy|hx|fU|ip(e1|e2|ad)|fS|fP|g3 |gk|gG|gH|2F.+dl|gM|7i m(gN|in)i|gO( gP)?|bN|p(gL|gx)\\/|gw|gt|gs|gq(4|6)0|gp|go|gn\\.(1g|4w)|fR|hj|fd (ce|bN)|fK|gr/),56:(N&&N[1])?N[1].4z():(1j.7i)?"9R":!!(1j.gu)?"4C":(1m.gv!==2w||1j.gy!==1h)?"6M":(1j.gz!==1h||!3m.gA)?"3O":"gm",4c:(N&&N[2])?2l(N[2]):0,5s:(S&&S[1])?S[1].4z():"",7R:(S&&S[2])?2l(S[2]):0,ej:"",ay:"",4H:"",2U:0,51:O.3p(/ip(?:ad|e2|e1)/)?"9o":(O.3p(/(?:gB|7M)/)||3m.51.3p(/87|8l|gR/i)||["gQ"])[0].4z(),em:1m.8J&&1m.8J.4z()==="dc",e7:0,4u:17(){1b(1m.8J&&1m.8J.4z()==="dc")?1m.3A:1m.4m},4D:1j.4D||1j.gK||1j.gD||1j.gJ||1j.gI||2w,8H:1j.8H||1j.dj||1j.dj||1j.gF||1j.gE||1j.gC||2w,2u:1i,6T:17(){
707if(P.1g.2u){1b}1a ac;1a ab;P.1g.2u=1u;P.3A=P.$(1m.3A);P.8l=P.$(1j);2X{1a aa=P.$1y("3k").1H({1e:2z,1f:2z,6B:"9d",2h:"5w",1F:-gj}).2O(1m.3A);P.1g.e7=aa.cS-aa.cb;aa.38()}3f(Z){}2X{ac=P.$1y("3k");ab=ac.2g;ab.eU="eL:21(a4://),21(a4://),fO 21(a4://)";P.1g.2R.eK=(/(21\\s*\\(.*?){3}/).36(ab.eL);ab=1h;ac=1h}3f(Z){}if(!P.1g.eN){P.1g.eN=P.8k("2L").8m()}2X{ac=P.$1y("3k");ac.2g.eU=P.8k("2Z").8m()+":cm(fQ);";P.1g.2R.92=!!ac.2g.1G&&(!P.1g.2U||P.1g.2U>9);ac=1h}3f(Z){}if(!P.1g.2R.92){P.$(1m.4m).1M("6h-fT-2K")}2X{P.1g.2R.a5=(17(){1a ad=P.$1y("a5");1b!!(ad.f0&&ad.f0("2d"))}())}3f(Z){}if(1j.fV===2w&&1j.fW!==2w){W.3i="fX"}P.3s.2I.27(P.$(1m),"9n")}};(17(){1a aa=[],ad,ac,ae;17 Z(){1b!!(26.8S.a3)}3Z(P.1g.56){1A"4C":if(!P.1g.4c){P.1g.4c=!!(1j.8A)?3:2}1B;1A"6M":P.1g.4c=(S&&S[2])?2l(S[2]):0;1B}P.1g[P.1g.56]=1u;if(S&&S[1]==="ee"){P.1g.5s="6a"}if(!!1j.6a){P.1g.6a=1u}if(S&&S[1]==="9H"){P.1g.5s="7i";P.1g.7i=1u}if(P.1g.5s==="ef"&&(U&&U[1])){P.1g.7R=2l(U[1])}if(P.1g.51==="7M"&&P.1g.3O&&(U&&U[1])){P.1g.80=1u}ad=({6M:["-eh-","eg","eh"],3O:["-3O-","eF","3O"],4C:["-6U-","6U","6U"],9R:["-o-","O","o"]})[P.1g.56]||["","",""];P.1g.ej=ad[0];P.1g.ay=ad[1];P.1g.4H=ad[2];P.1g.2U=!P.1g.4C?2w:(1m.ek)?1m.ek:(17(){1a af=0;if(P.1g.em){1b 5}3Z(P.1g.4c){1A 2:af=6;1B;1A 3:af=7;1B}1b af}());if(!P.1g.2F&&P.1g.51==="87"&&P.1g.8r){P.1g.2F=1u;P.1g.51="9o"}aa.2W(P.1g.51+"-2K");if(P.1g.2F){aa.2W("2F-2K")}if(P.1g.80){aa.2W("7M-1g-2K")}if(P.1g.2U){P.1g.5s="ie";P.1g.7R=P.1g.2U;aa.2W("ie"+P.1g.2U+"-2K");1O(ac=11;ac>P.1g.2U;ac--){aa.2W("fY-ie"+ac+"-2K")}}if(P.1g.3O&&P.1g.4c<fZ){P.1g.2R.6d=1i}if(P.1g.4D){P.1g.4D.27(1j,17(){P.1g.2R.4D=1u})}if(P.1g.2R.8V){aa.2W("8V-2K")}1l{aa.2W("6h-8V-2K")}ae=(1m.4m.5G||"").3p(/\\S+/g)||[];1m.4m.5G=P.$(ae).5v(aa).6m(" ");2X{1m.4m.4a("3w-2K-ea",P.1g.5s);1m.4m.4a("3w-2K-ea-eo",P.1g.7R);1m.4m.4a("3w-2K-56",P.1g.56);1m.4m.4a("3w-2K-56-eo",P.1g.4c)}3f(ab){}if(P.1g.2U&&P.1g.2U<9){1m.8a("5t");1m.8a("g0")}if(!1j.3m.64){P.$(["g1","fN","g2","g4","g5"]).3h(17(af){W["g6"+af.4z()]=1j.3m.7U?"g7"+af:-1})}}());(17(){P.1g.6d={aV:P.1g.2R.6d,4V:17(){1b!!(1m.g8||1m[P.1g.4H+"g9"]||1m.6d||1m.gb||1m[P.1g.4H+"gc"])},ch:17(Z,aa){if(!aa){aa={}}if(13.aV){P.$(1m).1C(13.b3,13.eB=17(ab){if(13.4V()){if(aa.ez){aa.ez()}}1l{P.$(1m).1P(13.b3,13.eB);if(aa.eC){aa.eC()}}}.2M(13));P.$(1m).1C(13.aS,13.5M=17(ab){if(aa.8u){aa.8u()}P.$(1m).1P(13.aS,13.5M)}.2M(13));(Z.gd||Z[P.1g.4H+"ge"]||Z[P.1g.4H+"gf"]||17(){}).27(Z)}1l{if(aa.8u){aa.8u()}}},gg:(1m.8p||1m.cZ||1m[P.1g.4H+"gh"]||1m[P.1g.4H+"gi"]||17(){}).1I(1m),b3:1m.bM?"gS":(1m.8p?"":P.1g.4H)+"gl",aS:1m.bM?"gT":(1m.8p?"":P.1g.4H)+"ht",hv:P.1g.4H,hw:1h}}());1a Y=/\\S+/g,M=/^(3B(bu|bP|bA|bI)hz)|((6F|e3)(bu|bP|bA|bI))$/,R={"hF":("2w"===7l(J.bK))?"hG":"bK"},T={dZ:1u,e4:1u,2C:1u,e6:1u,1k:1u},L=(1j.bC)?17(ab,Z){1a aa=1j.bC(ab,1h);1b aa?aa.hI(Z)||aa[Z]:1h}:17(ac,aa){1a ab=ac.i0,Z=1h;Z=ab?ab[aa]:1h;if(1h==Z&&ac.2g&&ac.2g[aa]){Z=ac.2g[aa]}1b Z};17 X(ab){1a Z,aa;aa=(P.1g.3O&&"2Z"==ab)?1i:(ab in J);if(!aa){Z=P.1g.ay+ab.8Y(0).6O()+ab.7b(1);if(Z in J){1b Z}}1b ab}P.8k=X;P.3E={cw:17(Z){1b!(Z||"").3N(" ")&&(13.5G||"").3N(Z," ")},1M:17(ad){1a aa=(13.5G||"").3p(Y)||[],ac=(ad||"").3p(Y)||[],Z=ac.1G,ab=0;1O(;ab<Z;ab++){if(!P.$(aa).3P(ac[ab])){aa.2W(ac[ab])}}13.5G=aa.6m(" ");1b 13},29:17(ae){1a aa=(13.5G||"").3p(Y)||[],ad=(ae||"").3p(Y)||[],Z=ad.1G,ac=0,ab;1O(;ac<Z;ac++){if((ab=P.$(aa).3W(ad[ac]))>-1){aa.7J(ab,1)}}13.5G=ae?aa.6m(" "):"";1b 13},hZ:17(Z){1b 13.cw(Z)?13.29(Z):13.1M(Z)},3g:17(aa){1a ab=aa.5f(),Z=1h;aa=R[ab]||(R[ab]=X(ab));Z=L(13,aa);if("2r"===Z){Z=1h}if(1h!==Z){if("2C"==aa){1b P.3a(Z)?2l(Z):1}if(M.36(aa)){Z=6n(Z,10)?Z:"6W"}}1b Z},6y:17(aa,Z){1a ac=aa.5f();2X{if("2C"==aa){13.cz(Z);1b 13}aa=R[ac]||(R[ac]=X(ac));13.2g[aa]=Z+(("5I"==P.1R(Z)&&!T[ac])?"2Q":"")}3f(ab){}1b 13},1H:17(aa){1O(1a Z in aa){13.6y(Z,aa[Z])}1b 13},hX:17(){1a Z={};P.$A(26).3h(17(aa){Z[aa]=13.3g(aa)},13);1b Z},cz:17(ab,Z){1a aa;Z=Z||1i;13.2g.2C=ab;ab=6n(2l(ab)*2z);if(Z){if(0===ab){if("4e"!=13.2g.4K){13.2g.4K="4e"}}1l{if("7z"!=13.2g.4K){13.2g.4K="7z"}}}if(P.1g.2U&&P.1g.2U<9){if(!8B(ab)){if(!~13.2g.2Z.3W("9C")){13.2g.2Z+=" cE:cM.cN.9C(8G="+ab+")"}1l{13.2g.2Z=13.2g.2Z.4d(/8G=\\d*/i,"8G="+ab)}}1l{13.2g.2Z=13.2g.2Z.4d(/cE:cM.cN.9C\\(8G=\\d*\\)/i,"").4I();if(""===13.2g.2Z){13.2g.4P("2Z")}}}1b 13},8F:17(Z){1O(1a aa in Z){if("4r"===aa){13.1M(""+Z[aa])}1l{13.4a(aa,""+Z[aa])}}1b 13},hM:17(){1a aa=0,Z=0;aa=13.3g("2v-5p");Z=13.3g("2v-9J");aa=aa.3W("6U")>-1?2l(aa):aa.3W("s")>-1?2l(aa)*a7:0;Z=Z.3W("6U")>-1?2l(Z):Z.3W("s")>-1?2l(Z)*a7:0;1b aa+Z},3R:17(){1b 13.1H({5H:"2T",4K:"4e"})},63:17(){1b 13.1H({5H:"",4K:"7z"})},1Q:17(){1b{1e:13.cS,1f:13.hs}}
707,aA:17(aa){1a Z=13.1Q();Z.1e-=(2l(13.3g("3B-1N-1e")||0)+2l(13.3g("3B-2D-1e")||0));Z.1f-=(2l(13.3g("3B-1F-1e")||0)+2l(13.3g("3B-2N-1e")||0));if(!aa){Z.1e-=(2l(13.3g("6F-1N")||0)+2l(13.3g("6F-2D")||0));Z.1f-=(2l(13.3g("6F-1F")||0)+2l(13.3g("6F-2N")||0))}1b Z},6u:17(){1b{1F:13.7T,1N:13.89}},hb:17(){1a Z=13,aa={1F:0,1N:0};do{aa.1N+=Z.89||0;aa.1F+=Z.7T||0;Z=Z.4A}5U(Z);1b aa},c0:17(){1a ad=13,aa=0,ac=0;if(P.3a(1m.4m.6K)){1a Z=13.6K(),ab=P.$(1m).6u(),ae=P.1g.4u();1b{1F:Z.1F+ab.y-ae.hr,1N:Z.1N+ab.x-ae.gW}}do{aa+=ad.gX||0;ac+=ad.gY||0;ad=ad.gZ}5U(ad&&!(/^(?:3A|aK)$/i).36(ad.8D));1b{1F:ac,1N:aa}},81:17(){1a aa=13.c0();1a Z=13.1Q();1b{1F:aa.1F,2N:aa.1F+Z.1f,1N:aa.1N,2D:aa.1N+Z.1e}},6i:17(aa){2X{13.h1=aa}3f(Z){13.h2=aa}1b 13},38:17(){1b(13.4A)?13.4A.9N(13):13},5F:17(){P.$A(13.h3).3h(17(Z){if(3==Z.5D||8==Z.5D){1b}P.$(Z).5F()});13.38();13.bc();if(13.$5C){P.8c[13.$5C]=1h;4Q P.8c[13.$5C]}1b 1h},3l:17(ab,aa){aa=aa||"2N";1a Z=13.4p;("1F"==aa&&Z)?13.h4(ab,Z):13.c1(ab);1b 13},2O:17(ab,aa){1a Z=P.$(ab).3l(13,aa);1b 13},d2:17(Z){13.3l(Z.4A.d5(13,Z));1b 13},9Y:17(Z){if("6f"!==P.1R("1V"==P.1R(Z)?Z=1m.c3(Z):Z)){1b 1i}1b(13==Z)?1i:(13.3P&&!(P.1g.c9))?(13.3P(Z)):(13.c4)?!!(13.c4(Z)&16):P.$A(13.7t(Z.8D)).3P(Z)}};P.3E.h5=P.3E.3g;P.3E.h6=P.3E.1H;if(!1j.3E){1j.3E=P.$F;if(P.1g.56.3O){1j.1m.8a("h8")}1j.3E.2p=(P.1g.56.3O)?1j["[[h9.2p]]"]:{}}P.8R(1j.3E,{$4t:"6f"});P.3s={1Q:17(){if(P.1g.8r||P.1g.gV||P.1g.c9){1b{1e:1j.4W,1f:1j.4i}}1b{1e:P.1g.4u().cb,1f:P.1g.4u().ha}},6u:17(){1b{x:1j.hk||P.1g.4u().89,y:1j.hq||P.1g.4u().7T}},hp:17(){1a Z=13.1Q();1b{1e:1o.2e(P.1g.4u().ho,Z.1e),1f:1o.2e(P.1g.4u().hn,Z.1f)}}};P.1Z(1m,{$4t:"1m"});P.1Z(1j,{$4t:"1j"});P.1Z([P.3E,P.3s],{1L:17(ac,aa){1a Z=P.8T(13.$5C),ab=Z[ac];if(2w!==aa&&2w===ab){ab=Z[ac]=aa}1b(P.3a(ab)?ab:1h)},2y:17(ab,aa){1a Z=P.8T(13.$5C);Z[ab]=aa;1b 13},2m:17(aa){1a Z=P.8T(13.$5C);4Q Z[aa];1b 13}});if(!(1j.aT&&1j.aT.2p&&1j.aT.2p.aU)){P.1Z([P.3E,P.3s],{aU:17(Z){1b P.$A(13.9V("*")).2Z(17(ab){2X{1b(1==ab.5D&&ab.5G.3N(Z," "))}3f(aa){}})}})}P.1Z([P.3E,P.3s],{9P:17(){1b 13.aU(26[0])},7t:17(){1b 13.9V(26[0])}});if(P.1g.6d.aV&&!1m.cg){P.3E.cg=17(){P.1g.6d.ch(13)}}P.1t={$4t:"1r",5X:P.$1i,2t:17(){1b 13.5u().4l()},5u:17(){if(13.ci){13.ci()}1l{13.cj=1u}1b 13},4l:17(){if(13.ck){13.ck()}1l{13.hc=1i}1b 13},5c:17(){13.5X=P.$1u;1b 13},76:17(){1a Z=(/33/i).36(13.1z)?13.4j[0]:13;1b!P.3a(Z)?{x:0,y:0}:{x:Z.3d,y:Z.3c}},5P:17(){1a Z=(/33/i).36(13.1z)?13.4j[0]:13;1b!P.3a(Z)?{x:0,y:0}:{x:Z.3t||Z.3d+P.1g.4u().89,y:Z.3q||Z.3c+P.1g.4u().7T}},b2:17(){1a Z=13.3u||13.hi;5U(Z&&Z.5D===3){Z=Z.4A}1b Z},7S:17(){1a aa=1h;3Z(13.1z){1A"8w":1A"hh":1A"hg":aa=13.8N||13.hf;1B;1A"9a":1A"aX":1A"e9":aa=13.8N||13.he;1B;1Y:1b aa}2X{5U(aa&&aa.5D===3){aa=aa.4A}}3f(Z){aa=1h}1b aa},6g:17(){if(!13.cn&&13.3z!==2w){1b(13.3z&1?1:(13.3z&2?3:(13.3z&4?2:0)))}1b 13.cn},5N:17(){1b(13.2j&&(13.2j==="33"||13.2j===13.5K))||(/33/i).36(13.1z)},4x:17(){if(13.2j){1b(13.2j==="33"||13.5K===13.2j)&&13.71}1l{if(13 3v 1j.6R){1b 13.4j.1G===1&&(13.5Z.1G?13.5Z.1G===1&&13.5Z[0].5q===13.4j[0].5q:1u)}}1b 1i},5R:17(){if(13.2j){1b 13.71&&(13.2j==="33"||13.5K===13.2j)?13:1h}1l{if(13 3v 1j.6R){1b 13.4j[0]}}1b 1h},7k:17(){if(13.2j){1b 13.71&&(13.2j==="33"||13.5K===13.2j)?13.3I:1h}1l{if(13 3v 1j.6R){1b 13.4j[0].5q}}1b 1h}};P.aR="bT";P.ba="gU";P.8n="";if(!1m.bT){P.aR="fM";P.ba="f4";P.8n="7v"}P.1t.1v={1z:"",x:1h,y:1h,2A:1h,3z:1h,3u:1h,8N:1h,$4t:"1r.3X",5X:P.$1i,75:P.$([]),40:17(Z){1a aa=Z;13.75.2W(aa)},2t:17(){1b 13.5u().4l()},5u:17(){13.75.3h(17(aa){2X{aa.5u()}3f(Z){}});1b 13},4l:17(){13.75.3h(17(aa){2X{aa.4l()}3f(Z){}});1b 13},5c:17(){13.5X=P.$1u;1b 13},76:17(){1b{x:13.3d,y:13.3c}},5P:17(){1b{x:13.x,y:13.y}},b2:17(){1b 13.3u},7S:17(){1b 13.8N},6g:17(){1b 13.3z},ff:17(){1b 13.75.1G>0?13.75[0].b2():2w},5N:17(){1b(13.2j&&(13.2j==="33"||13.2j===13.5K))||(/33/i).36(13.1z)},4x:17(){if(13.2j){1b(13.2j==="33"||13.5K===13.2j)&&13.71}1l{if(13 3v 1j.6R){1b 13.4j.1G===1&&(13.5Z.1G?13.5Z[0].5q===13.4j[0].5q:1u)}}1b 1i},5R:17(){if(13.2j){1b 13.71&&(13.2j==="33"||13.5K===13.2j)?13:1h}1l{if(13 3v 1j.6R){1b 13.4j[0]}}1b 1h},7k:17(){if(13.2j){1b 13.71&&(13.2j==="33"||13.5K===13.2j)?13.3I:1h}1l{if(13 3v 1j.6R){1b 13.4j[0].5q}}1b 1h}};P.1Z([P.3E,P.3s],{1C:17(ab,ad,ae,ah){1a ag,Z,ac,af,aa;if(P.1R(ab)==="1V"){aa=ab.7Z(" ");if(aa.1G>
7071){ab=aa}}if(P.1R(ab)==="3Q"){P.$(ab).3h(13.1C.2M(13,ad,ae,ah));1b 13}ab=W[ab]||ab;if(!ab||!ad||P.1R(ab)!=="1V"||P.1R(ad)!=="17"){1b 13}if(ab==="9n"&&P.1g.2u){ad.27(13);1b 13}ae=6n(ae||50,10);if(!ad.$8f){ad.$8f=1o.4T(1o.6v()*P.5A())}ag=P.3s.1L.27(13,"7q",{});Z=ag[ab];if(!Z){ag[ab]=Z=P.$([]);ac=13;if(P.1t.1v[ab]){P.1t.1v[ab].1E.5k.27(13,ah)}1l{Z.34=17(ai){ai=P.1Z(ai||1j.e,{$4t:"1r"});P.3s.2I.27(ac,ab,P.$(ai))};13[P.aR](P.8n+ab,Z.34,1i)}}af={1z:ab,fn:ad,aO:ae,cc:ad.$8f};Z.2W(af);Z.fl(17(aj,ai){1b aj.aO-ai.aO});1b 13},1P:17(af){1a ad=P.3s.1L.27(13,"7q",{});1a ab;1a Z;1a aa;1a ag;1a ae;1a ac;ae=26.1G>1?26[1]:-2z;if(P.1R(af)==="1V"){ac=af.7Z(" ");if(ac.1G>1){af=ac}}if(P.1R(af)==="3Q"){P.$(af).3h(13.1P.2M(13,ae));1b 13}af=W[af]||af;if(!af||P.1R(af)!=="1V"||!ad||!ad[af]){1b 13}ab=ad[af]||[];1O(aa=0;aa<ab.1G;aa++){Z=ab[aa];if(ae===-2z||!!ae&&ae.$8f===Z.cc){ag=ab.7J(aa--,1)}}if(ab.1G===0){if(P.1t.1v[af]){P.1t.1v[af].1E.38.27(13)}1l{13[P.ba](P.8n+af,ab.34,1i)}4Q ad[af]}1b 13},2I:17(ac,ae){1a ab=P.3s.1L.27(13,"7q",{});1a aa;1a Z;ac=W[ac]||ac;if(!ac||P.1R(ac)!=="1V"||!ab||!ab[ac]){1b 13}2X{ae=P.1Z(ae||{},{1z:ac})}3f(ad){}if(ae.2A===2w){ae.2A=P.5A()}aa=ab[ac]||[];1O(Z=0;Z<aa.1G&&!(ae.5X&&ae.5X());Z++){aa[Z].fn.27(13,ae)}},eV:17(aa,Z){1a ad=(aa!=="9n");1a ac=13;1a ab;aa=W[aa]||aa;if(!ad){P.3s.2I.27(13,aa);1b 13}if(ac===1m&&1m.8j&&!ac.9X){ac=1m.4m}if(1m.8j){ab=1m.8j(aa);ab.5i(Z,1u,1u)}1l{ab=1m.fA();ab.8q=aa}if(1m.8j){ac.9X(ab)}1l{ac.fw("7v"+Z,ab)}1b ab},bc:17(){1a aa=P.3s.1L.27(13,"7q");if(!aa){1b 13}1O(1a Z in aa){P.3s.1P.27(13,Z)}P.3s.2m.27(13,"7q");1b 13}});(17(Z){if(1m.7F==="7E"){1b Z.1g.6T.2G(1)}if(Z.1g.3O&&Z.1g.4c<fu){(17(){if(Z.$(["2a","7E"]).3P(1m.7F)){Z.1g.6T()}1l{26.8S.2G(50)}}())}1l{if(Z.1g.4C&&Z.1g.2U<9&&1j===1F){(17(){if(Z.$2X(17(){Z.1g.4u().fr("1N");1b 1u})){Z.1g.6T()}1l{26.8S.2G(50)}}())}1l{Z.3s.1C.27(Z.$(1m),"fz",Z.1g.6T);Z.3s.1C.27(Z.$(1j),"5d",Z.1g.6T)}}}(V));P.3x=17(){1a ad=1h,aa=P.$A(26);if("4r"==P.1R(aa[0])){ad=aa.65()}1a Z=17(){1O(1a ag in 13){13[ag]=P.3n(13[ag])}if(13.4U.$4k){13.$4k={};1a ai=13.4U.$4k;1O(1a ah in ai){1a af=ai[ah];3Z(P.1R(af)){1A"17":13.$4k[ah]=P.3x.cu(13,af);1B;1A"7O":13.$4k[ah]=P.3n(af);1B;1A"3Q":13.$4k[ah]=P.3n(af);1B}}}1a ae=(13.3y)?13.3y.5Q(13,26):13;4Q 13.a3;1b ae};if(!Z.2p.3y){Z.2p.3y=P.$F}if(ad){1a ac=17(){};ac.2p=ad.2p;Z.2p=1y ac;Z.$4k={};1O(1a ab in ad.2p){Z.$4k[ab]=ad.2p[ab]}}1l{Z.$4k=1h}Z.4U=P.3x;Z.2p.4U=Z;P.1Z(Z.2p,aa[0]);P.1Z(Z,{$4t:"4r"});1b Z};V.3x.cu=17(Z,aa){1b 17(){1a ac=13.a3;1a ab=aa.5Q(Z,26);1b ab}};(17(ac){1a ab=ac.$;1a Z=5,aa=eu;ac.1t.1v.1X=1y ac.3x(ac.1Z(ac.1t.1v,{1z:"1X",3y:17(af,ae){1a ad=ae.5P();13.x=ad.x;13.y=ad.y;13.3d=ae.3d;13.3c=ae.3c;13.2A=ae.2A;13.3z=ae.6g();13.3u=af;13.40(ae)}}));ac.1t.1v.1X.1E={1w:{79:aa,3z:1},5k:17(ad){13.2y("1r:1X:1w",ac.1Z(ac.3n(ac.1t.1v.1X.1E.1w),ad||{}));13.1C("69",ac.1t.1v.1X.1E.34,1);13.1C("5O",ac.1t.1v.1X.1E.34,1);13.1C("2V",ac.1t.1v.1X.1E.aE,1);if(ac.1g.4C&&ac.1g.2U<9){13.1C("8I",ac.1t.1v.1X.1E.34,1)}},38:17(){13.1P("69",ac.1t.1v.1X.1E.34);13.1P("5O",ac.1t.1v.1X.1E.34);13.1P("2V",ac.1t.1v.1X.1E.aE);if(ac.1g.4C&&ac.1g.2U<9){13.1P("8I",ac.1t.1v.1X.1E.34)}},aE:17(ad){ad.4l()},34:17(ag){1a af,ad,ae;ad=13.1L("1r:1X:1w");if(ag.1z!="8I"&&ag.6g()!=ad.3z){1b}if(13.1L("1r:1X:b4")){13.2m("1r:1X:b4");1b}if("69"==ag.1z){af=1y ac.1t.1v.1X(13,ag);13.2y("1r:1X:8C",af)}1l{if("5O"==ag.1z){af=13.1L("1r:1X:8C");if(!af){1b}ae=ag.5P();13.2m("1r:1X:8C");af.40(ag);if(ag.2A-af.2A<=ad.79&&1o.91(1o.4R(ae.x-af.x,2)+1o.4R(ae.y-af.y,2))<=Z){13.2I("1X",af)}1m.2I("5O",ag)}1l{if(ag.1z=="8I"){af=1y ac.1t.1v.1X(13,ag);13.2I("1X",af)}}}}}})(V);(17(aa){1a Z=aa.$;aa.1t.1v.2E=1y aa.3x(aa.1Z(aa.1t.1v,{1z:"2E",2c:"3M",4S:1i,3y:17(ae,ad,ac){1a ab=ad.5P();13.x=ab.x;13.y=ab.y;13.3d=ad.3d;13.3c=ad.3c;13.2A=ad.2A;13.3z=ad.6g();13.3u=ae;13.40(ad);13.2c=ac}}));aa.1t.1v.2E.1E={5k:17(){1a ac=aa.1t.1v.2E.1E.cX.2M(13);1a ab=aa.1t.1v.2E.1E.8W.2M(13);13.1C("69",aa.1t.1v.2E.1E.b0,1);13.1C("5O",aa.1t.1v.2E.1E.8W,1);1m.1C("6s",ac,1);1m.1C("5O",ab,1);13.2y("1r:2E:2Y:1m:5j",ac);13.2y("1r:2E:2Y:1m:7j",ab)},38:17(){13.1P("69",aa.1t.1v.2E.1E.b0);13.1P("5O",aa.1t.1v.2E.1E.8W);Z(1m).1P("6s",13.1L("1r:2E:2Y:1m:5j")||aa.$F);Z(1m).1P("5O",13.1L("1r:2E:2Y:1m:7j")||aa.$F);13.2m("1r:2E:2Y:1m:5j");13.2m("1r:2E:2Y:1m:7j")},b0:17(ac){1a ab;if(ac.6g()!==1){1b}ab=1y aa.1t.1v.2E(13,ac,"3M");13.2y("1r:2E:3M",ab)},8W:17(ac){1a ab;ab=13.1L("1r:2E:3M");if(!ab){1b}if(ab.4S){ac.4l()}ab=1y aa.1t.1v.2E(13,ac,"a1");13.2m("1r:2E:3M");13.2I("2E",ab)},cX:17(ac){1a ab;ab=13.1L("1r:2E:3M");if(!ab){1b}ac.4l();if(!ab.4S){ab.4S=1u;13.2I("2E",ab)}ab=1y aa.1t.1v.2E(13,ac,"df");13.2I("2E",ab)}}})(V);(17(aa){1a Z=aa.$;aa.1t.1v.3V=1y aa.3x(aa.1Z(aa.1t.1v,{1z:"3V",7e:1i,7a:1h,3y:17(ad,ac){1a ab=ac.5P();13.x=ab.x;13.y=ab.y;13.3d=ac.3d;13.3c=ac.3c;13.2A=ac.2A;13.3z=ac.6g();13.3u=ad;13.40(ac)}}));aa.1t.1v.3V.1E={1w:{79:6S},5k:17(ab){13.2y("1r:3V:1w",aa.1Z(aa.3n(aa.1t.1v.3V.1E.1w),ab||{}));13.1C("1X",aa.1t.1v.3V.1E.34,1)},38:17(){13.1P("1X",aa.1t.1v.3V.1E.34)},34:17(ad){1a ac,ab;ac=13.1L("1r:3V:1r");ab=13.1L("1r:3V:1w");if(!ac){ac=1y aa.1t.1v.3V(13,ad);ac.7a=4N(17(){ac.7e=1u;ad.5X=aa.$1i;13.2I("1X",ad);13.2m("1r:3V:1r")}.1I(13),ab.79+10);13.2y("1r:3V:1r",ac);ad.5c()}1l{3e(ac.7a);13.2m("1r:3V:1r");if(!ac.7e){ac.40(ad);ad.5c().2t();13.2I("3V",ac)}1l{}}}}})(V);(17(ac){1a ab=ac.$;1a Z=10;1a aa=6S;ac.1t.1v.2f=1y ac.3x(ac.1Z(ac.1t.1v,{1z:"2f",id:1h,3y:17(ae,ad){1a af=ad.5R();13.id=af.3I||af.5q;
70713.x=af.3t;13.y=af.3q;13.3t=af.3t;13.3q=af.3q;13.3d=af.3d;13.3c=af.3c;13.2A=ad.2A;13.3z=0;13.3u=ae;13.40(ad)}}));ac.1t.1v.2f.1E={5k:17(ad){13.1C(["5h","5g"],ac.1t.1v.2f.1E.5n,1);13.1C(["3J","3F"],ac.1t.1v.2f.1E.4G,1);13.1C("2V",ac.1t.1v.2f.1E.7h,1)},38:17(){13.1P(["5h","5g"],ac.1t.1v.2f.1E.5n);13.1P(["3J","3F"],ac.1t.1v.2f.1E.4G);13.1P("2V",ac.1t.1v.2f.1E.7h)},7h:17(ad){ad.4l()},5n:17(ad){if(!ad.4x()){13.2m("1r:2f:1r");1b}13.2y("1r:2f:1r",1y ac.1t.1v.2f(13,ad));13.2y("1r:1X:b4",1u)},4G:17(ag){1a ae=ac.5A();1a af=13.1L("1r:2f:1r");1a ad=13.1L("1r:2f:1w");if(!af||!ag.4x()){1b}13.2m("1r:2f:1r");if(af.id===ag.7k()&&ag.2A-af.2A<=aa&&1o.91(1o.4R(ag.5R().3t-af.x,2)+1o.4R(ag.5R().3q-af.y,2))<=Z){13.2m("1r:1X:8C");ag.2t();af.40(ag);13.2I("2f",af)}}}}(V));P.1t.1v.3r=1y P.3x(P.1Z(P.1t.1v,{1z:"3r",7e:1i,7a:1h,3y:17(aa,Z){13.x=Z.x;13.y=Z.y;13.3d=Z.3d;13.3c=Z.3c;13.2A=Z.2A;13.3z=0;13.3u=aa;13.40(Z)}}));P.1t.1v.3r.1E={1w:{79:eu},5k:17(Z){13.2y("1r:3r:1w",P.1Z(P.3n(P.1t.1v.3r.1E.1w),Z||{}));13.1C("2f",P.1t.1v.3r.1E.34,1)},38:17(){13.1P("2f",P.1t.1v.3r.1E.34)},34:17(ab){1a aa,Z;aa=13.1L("1r:3r:1r");Z=13.1L("1r:3r:1w");if(!aa){aa=1y P.1t.1v.3r(13,ab);aa.7a=4N(17(){aa.7e=1u;ab.5X=P.$1i;13.2I("2f",ab)}.1I(13),Z.79+10);13.2y("1r:3r:1r",aa);ab.5c()}1l{3e(aa.7a);13.2m("1r:3r:1r");if(!aa.7e){aa.40(ab);ab.5c().2t();13.2I("3r",aa)}1l{}}}};(17(ab){1a aa=ab.$;1a Z=10;ab.1t.1v.2q=1y ab.3x(ab.1Z(ab.1t.1v,{1z:"2q",2c:"3M",id:1h,4S:1i,3y:17(ae,ad,ac){1a af=ad.5R();13.id=af.3I||af.5q;13.3d=af.3d;
70713.3c=af.3c;13.3t=af.3t;13.3q=af.3q;13.x=af.3t;13.y=af.3q;13.2A=ad.2A;13.3z=0;13.3u=ae;13.40(ad);13.2c=ac}}));ab.1t.1v.2q.1E={5k:17(){1a ad=ab.1t.1v.2q.1E.5S.1I(13);1a ac=ab.1t.1v.2q.1E.4G.1I(13);13.1C(["5h","5g"],ab.1t.1v.2q.1E.5n,1);13.1C(["3J","3F"],ab.1t.1v.2q.1E.4G,1);13.1C(["5V","4b"],ab.1t.1v.2q.1E.5S,1);13.2y("1r:2q:2Y:1m:5j",ad);13.2y("1r:2q:2Y:1m:7j",ac);aa(1m).1C("4b",ad,1);aa(1m).1C("3F",ac,1)},38:17(){13.1P(["5h","5g"],ab.1t.1v.2q.1E.5n);13.1P(["3J","3F"],ab.1t.1v.2q.1E.4G);13.1P(["5V","4b"],ab.1t.1v.2q.1E.5S);aa(1m).1P("4b",13.1L("1r:2q:2Y:1m:5j")||ab.$F,1);aa(1m).1P("3F",13.1L("1r:2q:2Y:1m:7j")||ab.$F,1);13.2m("1r:2q:2Y:1m:5j");13.2m("1r:2q:2Y:1m:7j")},5n:17(ad){1a ac;if(!ad.4x()){1b}ac=1y ab.1t.1v.2q(13,ad,"3M");13.2y("1r:2q:3M",ac)},4G:17(ad){1a ac;ac=13.1L("1r:2q:3M");if(!ac||!ac.4S||ac.id!==ad.7k()){1b}ac=1y ab.1t.1v.2q(13,ad,"a1");13.2m("1r:2q:3M");13.2I("2q",ac)},5S:17(ad){1a ac;ac=13.1L("1r:2q:3M");if(!ac||!ad.4x()){1b}if(ac.id!==ad.7k()){13.2m("1r:2q:3M");1b}if(!ac.4S&&1o.91(1o.4R(ad.5R().3t-ac.x,2)+1o.4R(ad.5R().3q-ac.y,2))>Z){ac.4S=1u;13.2I("2q",ac)}if(!ac.4S){1b}ac=1y ab.1t.1v.2q(13,ad,"df");13.2I("2q",ac)}}}(V));(17(ac){1a ag=ac.$;1a ad=1h;17 Z(ap,ao){1a an=ao.x-ap.x;1a aq=ao.y-ap.y;1b 1o.91(an*an+aq*aq)}17 ai(au,av){1a at=4n.2p.7b.27(au);1a ar=1o.3C(at[1].3t-at[0].3t);1a ap=1o.3C(at[1].3q-at[0].3q);1a aq=1o.2k(at[1].3t,at[0].3t)+ar/2;1a ao=1o.2k(at[1].3q,at[0].3q)+ap/2;1a an=0;av.5z=[at[0],at[1]];an=1o.4R(Z({x:at[0].3t,y:at[0].3q},{x:at[1].3t,y:at[1].3q}),2);av.5L={x:aq,y:ao};av.x=av.5L.x;av.y=av.5L.y;1b an}17 al(an){1b an/ad}17 aa(ap,ao){1a an;if(ap.5Z&&ap.4j){if(ap.5Z){an=ap.5Z}1l{an=ap.4j}an=4n.2p.7b.27(an)}1l{an=[];if(ao){ao.8s(17(aq){an.2W(aq)})}}1b an}17 ab(aq,ap,ao){1a an=1i;if(aq.3I&&aq.2j==="33"&&(!ao||ap.3N(aq.3I))){ap.6o(aq.3I,aq);an=1u}1b an}17 ah(ao,an){if(ao.3I&&ao.2j==="33"&&an&&an.3N(ao.3I)){an["4Q"](ao.3I)}}17 ak(ao){1a an;if(ao.3I&&ao.2j==="33"){an=ao.3I}1l{an=ao.5q}1b an}17 af(aq,ao){1a ap;1a ar;1a an=1i;1O(ap=0;ap<aq.1G;ap++){if(ao.1G===2){1B}1l{ar=ak(aq[ap]);if(!ao.3P(ar)){ao.2W(ar);an=1u}}}1b an}17 aj(ao){1a an=ag([]);ao.8s(17(ap){an.2W(ak(ap))});1b an}17 am(ar,ao){1a ap;1a aq;1a an=1i;if(ao){aq=aj(ar);1O(ap=0;ap<ao.1G;ap++){if(!aq.3P(ao[ap])){ao.7J(ap,1);an=1u;1B}}}1b an}17 ae(aq,ao){1a ap;1a an=ag([]);1O(ap=0;ap<aq.1G;ap++){if(ao.3P(ak(aq[ap]))){an.2W(aq[ap]);if(an.1G===2){1B}}}1b an}ac.1t.1v.1J=1y ac.3x(ac.1Z(ac.1t.1v,{1z:"1J",2c:"57",3y:17(ap,ao,an,aq){13.3u=ap;13.2c=an;13.x=aq.x;13.y=aq.y;13.2A=ao.2A;13.3T=aq.3T;13.4J=aq.4J;13.1k=aq.1k;13.2c=an;13.5L=aq.5L;13.5z=aq.5z;13.40(ao)}}));ac.1t.1v.1J.1E={5b:{x:0,y:0,4J:0,3T:1,1k:0,bm:0,fs:1,9q:1i,4S:1i,5z:[],5L:{x:0,y:0}},5k:17(ap){if(!ad){ad=(17(){1a aq=ag(1j).1Q();aq.1e=1o.2k(aq.1e,aq.1f);aq.1f=aq.1e;1b 1o.4R(Z({x:0,y:0},{x:aq.1e,y:aq.1f}),2)})()}1a ao=ac.1t.1v.1J.1E.5S.1I(13);1a an=ac.1t.1v.1J.1E.4G.1I(13);13.1C(["2V","2f"],ac.1t.1v.1J.1E.7h,1);13.1C(["5h","5g"],ac.1t.1v.1J.1E.5n,1);13.1C(["3J","3F"],ac.1t.1v.1J.1E.4G,1);13.1C(["5V","4b"],ac.1t.1v.1J.1E.5S,1);13.2y("1r:1J:2Y:5V",ao);13.2y("1r:1J:2Y:3J",an);ac.7g.1C("4b",ao,1);ac.7g.1C("3F",an,1)},38:17(){13.1P(["2V","2f"],ac.1t.1v.1J.1E.7h);13.1P(["5h","5g"],ac.1t.1v.1J.1E.5n);13.1P(["3J","3F"],ac.1t.1v.1J.1E.4G);13.1P(["5V","4b"],ac.1t.1v.1J.1E.5S);ac.7g.1P("4b",13.1L("1r:1J:2Y:5V"));ac.7g.1P("3F",13.1L("1r:1J:2Y:3J"));13.2m("1r:1J:2Y:5V");13.2m("1r:1J:2Y:3J");13.2m("1r:1J:57");13.2m("1r:1J:5b");13.2m("1r:1J:78");1a an=13.1L("1r:1J:6e");if(an){an.dG()}13.2m("1r:1J:6e")},7h:17(an){an.2t()},8v:17(ao,ap){1a an=ap.4J;if(ao.1G>1){ap.4J=ai(ao,ap);if(!ap.bm){ap.bm=ap.4J}if(an>ap.4J){ap.1k=-1}1l{if(an<ap.4J){ap.1k=1}1l{ap.1k=0}}ap.3T=al(ap.4J)}1l{ap.5z=4n.2p.7b.27(ao,0,2)}},5S:17(ap){1a ao;1a an=13.1L("1r:1J:6e");1a ar=13.1L("1r:1J:5b")||ac.1Z({},ac.1t.1v.1J.1E.5b);1a aq=13.1L("1r:1J:78");if(ar.9q){if(ap.3I&&!ab(ap,an,1u)){1b}ap.2t();ac.1t.1v.1J.1E.8v(ae(aa(ap,an),aq),ar);ao=1y ac.1t.1v.1J(13,ap,"cf",ar);13.2I("1J",ao)}},5n:17(aq){1a ao;1a at;1a ap;1a an=13.1L("1r:1J:6e");1a ar=13.1L("1r:1J:78");if(aq.2j==="dD"){1b}if(!ar){ar=ag([]);13.2y("1r:1J:78",ar)}if(!ar.1G){ag(aq.3u).1C(["3J","3F"],13.1L("1r:1J:2Y:3J"),1)}if(!an){an=1y fG();13.2y("1r:1J:6e",an)}ab(aq,an);ap=aa(aq,an);af(ap,ar);if(ap.1G===2){ao=13.1L("1r:1J:57");at=13.1L("1r:1J:5b")||ac.1Z({},ac.1t.1v.1J.1E.5b);ac.1t.1v.1J.1E.8v(ae(ap,ar),at);
707if(!ao){ao=1y ac.1t.1v.1J(13,aq,"57",at);13.2y("1r:1J:57",ao);13.2y("1r:1J:5b",at);ad=at.4J;13.2I("1J",ao);at.9q=1u}}},4G:17(at){1a ar;1a aq;1a av;1a ao;1a ap=13.1L("1r:1J:6e");1a au;1a an;if(at.2j==="dD"||at.3I&&(!ap||!ap.3N(at.3I))){1b}aq=13.1L("1r:1J:57");av=13.1L("1r:1J:5b");au=13.1L("1r:1J:78");ar=aa(at,ap);ah(at,ap);an=am(ar,au);if(!aq||!av||!av.9q||!an||!au){1b}if(an){af(ar,au)}ao="c7";if(ar.1G>1){ao="c8"}1l{at.3u.1P(["3J","3F"],13.1L("1r:1J:2Y:3J"));if(ap){ap.dG()}13.2m("1r:1J:57");13.2m("1r:1J:5b");13.2m("1r:1J:6e");13.2m("1r:1J:78")}ac.1t.1v.1J.1E.8v(ae(ar,au),av);aq=1y ac.1t.1v.1J(13,at,ao,av);13.2I("1J",aq)}}}(V));(17(ae){1a ac=ae.$;ae.1t.1v.4F=1y ae.3x(ae.1Z(ae.1t.1v,{1z:"4F",3y:17(ak,aj,am,ag,af,al,ah){1a ai=aj.5P();13.x=ai.x;13.y=ai.y;13.2A=aj.2A;13.3u=ak;13.kr=am||0;13.az=ag||0;13.88=af||0;13.ks=al||0;13.kt=ah||0;13.bd=aj.bd||0;13.9G=1i;13.40(aj)}}));1a ad,aa;17 Z(){ad=1h}17 ab(af,ag){1b(af>50)||(1===ag&&!("8l"==ae.1g.51&&af<1))||(0===af%12)||(0==af%4.ku)}ae.1t.1v.4F.1E={8q:"kv"in 1m||ae.1g.2U>8?"kw":"kx",5k:17(){13.1C(ae.1t.1v.4F.1E.8q,ae.1t.1v.4F.1E.34,1)},38:17(){13.1P(ae.1t.1v.4F.1E.8q,ae.1t.1v.4F.1E.34,1)},34:17(ak){1a al=0,ai=0,ag=0,af=0,aj,ah;if(ak.dp){ag=ak.dp*-1}if(ak.dr!==2w){ag=ak.dr}if(ak.ds!==2w){ag=ak.ds}if(ak.dt!==2w){ai=ak.dt*-1}if(ak.88){ag=-1*ak.88}if(ak.az){ai=ak.az}if(0===ag&&0===ai){1b}al=0===ag?ai:ag;af=1o.2e(1o.3C(ag),1o.3C(ai));if(!ad||af<ad){ad=af}aj=al>0?"4T":"3H";al=1o[aj](al/ad);ai=1o[aj](ai/ad);ag=1o[aj](ag/ad);if(aa){3e(aa)}aa=4N(Z,6S);ah=1y ae.1t.1v.4F(13,ak,al,ai,ag,0,ad);ah.9G=ab(ad,ak.bd||0);13.2I("4F",ah)}}})(V);P.8l=P.$(1j);P.7g=P.$(1m);1b V})();(17(L){if(!L){5E"74 5J 6P"}1a K=L.$;1a J=1j.kq||1j.kA||1h;y.dq=1y L.3x({1W:1h,2u:1i,1w:{8h:L.$F,5B:L.$F,bn:L.$F,5M:L.$F,7N:L.$F,ew:L.$F,8U:1i,ed:1u},1x:1h,7A:1h,be:0,73:{8h:17(M){if(M.3u&&(6S===M.3u.8X||ex===M.3u.8X)&&M.kC){13.1w.8h.1I(1h,(M.2a-(13.1w.ed?13.be:0))/M.kD).2G(1);13.be=M.2a}},5B:17(M){if(M){K(M).2t()}13.7u();if(13.2u){1b}13.2u=1u;13.7D();!13.1w.8U&&13.1w.8h.1I(1h,1).2G(1);13.1w.5B.1I(1h,13).2G(1);13.1w.7N.1I(1h,13).2G(1)},bn:17(M){if(M){K(M).2t()}13.7u();13.2u=1i;13.7D();13.1w.bn.1I(1h,13).2G(1);13.1w.7N.1I(1h,13).2G(1)},5M:17(M){if(M){K(M).2t()}13.7u();13.2u=1i;13.7D();13.1w.5M.1I(1h,13).2G(1);13.1w.7N.1I(1h,13).2G(1)}},8P:17(){K(["5d","bp","et"]).3h(17(M){13.1W.1C(M,13.73["7v"+M].2M(13).es(1))},13)},7u:17(){if(13.7A){2X{3e(13.7A)}3f(M){}13.7A=1h}K(["5d","bp","et"]).3h(17(N){13.1W.1P(N)},13)},7D:17(){13.1Q();if(13.1W.1L("1y")){1a M=13.1W.4A;13.1W.38().2m("1y").1H({2h:"kE",1F:"2r"});M.5F()}},bF:17(N){1a O=1y 8A(),M;K(["bp","kF"]).3h(17(P){O["7v"+P]=K(17(Q){13.73["7v"+P].27(13,Q)}).1I(13)},13);O.5M=K(17(){13.1w.ew.1I(1h,13).2G(1);13.1w.8U=1i;13.8P();13.1W.24=N}).1I(13);O.5B=K(17(){if(6S!==O.8X&&ex!==O.8X){13.73.5M.27(13);1b}M=O.kG;13.8P();if(J&&!L.1g.4C&&!("9o"===L.1g.51&&L.1g.4c<kH)){13.1W.4a("24",J.kI(M))}1l{13.1W.24=N}}).1I(13);O.9D("kJ",N);O.kK="kL";O.kB()},3y:17(N,M){13.1w=L.1Z(13.1w,M);13.1W=K(N)||L.$1y("1W",{},{"2e-1e":"2T","2e-1f":"2T"}).2O(L.$1y("3k").1M("2K-6k-1W").1H({2h:"5w",1F:-dg,1e:10,1f:10,6B:"4e"}).2O(1m.3A)).2y("1y",1u);if(L.1g.2R.bS&&13.1w.8U&&"1V"==L.1R(N)){13.bF(N);1b}1a O=17(){if(13.bz()){13.73.5B.27(13)}1l{13.73.5M.27(13)}O=1h}.1I(13);13.8P();if("1V"==L.1R(N)){13.1W.24=N}1l{if(L.1g.4C&&5==L.1g.4c&&L.1g.2U<9){13.1W.bs=17(){if(/2a|7E/.36(13.1W.7F)){13.1W.bs=1h;O&&O()}}.1I(13)}13.1W.24=N.2n("24")}13.1W&&13.1W.7E&&O&&(13.7A=O.2G(2z))},ko:17(){13.7u();13.7D();13.2u=1i;1b 13},bz:17(){1a M=13.1W;1b(M.9v)?(M.9v>0):(M.7F)?("7E"==M.7F):M.1e>0},1Q:17(){1b 13.1x||(13.1x={1e:13.1W.9v||13.1W.1e,1f:13.1W.kc||13.1W.1f})}})})(y);(17(K){if(!K){5E"74 5J 6P"}if(K.59){1b}1a J=K.$;K.59=1y K.3x({3y:17(M,L){1a N;13.el=K.$(M);13.1w=K.1Z(13.1w,L);13.5x=1i;
70713.6V=13.bi;N=K.59.7V[13.1w.2v]||13.1w.2v;if("17"===K.1R(N)){13.6V=N}1l{13.5e=13.7n(N)||13.7n("6j")}if("1V"==K.1R(13.1w.6X)){13.1w.6X="kn"===13.1w.6X?6D:6n(13.1w.6X)||1}},1w:{cB:60,5p:by,2v:"6j",6X:1,4y:"ei",cv:K.$F,6C:K.$F,aP:K.$F,cq:K.$F,8o:1i,k1:1i},48:1h,5e:1h,6V:1h,k2:17(L){13.1w.2v=L;L=K.59.7V[13.1w.2v]||13.1w.2v;if("17"===K.1R(L)){13.6V=L}1l{13.6V=13.bi;13.5e=13.7n(L)||13.7n("6j")}},4g:17(N){1a L=/\\%$/,M;13.48=N||{};13.9y=0;13.2c=0;13.k3=0;13.8K={};13.6Y="6Y"===13.1w.4y||"6Y-4h"===13.1w.4y;13.6Z="6Z"===13.1w.4y||"6Z-4h"===13.1w.4y;1O(M in 13.48){L.36(13.48[M][0])&&(13.8K[M]=1u);if("4h"===13.1w.4y||"6Y-4h"===13.1w.4y||"6Z-4h"===13.1w.4y){13.48[M].4h()}}13.9T=K.5A();13.ct=13.9T+13.1w.5p;13.1w.cv.27();if(0===13.1w.5p){13.6r(1);13.1w.6C.27()}1l{13.8O=13.cF.1I(13);if(!13.1w.8o&&K.1g.2R.4D){13.5x=K.1g.4D.27(1j,13.8O)}1l{13.5x=13.8O.cy(1o.6x(a7/13.1w.cB))}}1b 13},9u:17(){if(13.5x){if(!13.1w.8o&&K.1g.2R.4D&&K.1g.8H){K.1g.8H.27(1j,13.5x)}1l{k4(13.5x)}13.5x=1i}},2t:17(L){L=K.3a(L)?L:1i;13.9u();if(L){13.6r(1);13.1w.6C.2G(10)}1b 13},aH:17(N,M,L){N=2l(N);M=2l(M);1b(M-N)*L+N},cF:17(){1a M=K.5A(),L=(M-13.9T)/13.1w.5p,N=1o.4T(L);if(M>=13.ct&&N>=13.1w.6X){13.9u();13.6r(1);13.1w.6C.2G(10);1b 13}if(13.6Y&&13.9y<N){1O(1a O in 13.48){13.48[O].4h()}}13.9y=N;if(!13.1w.8o&&K.1g.2R.4D){13.5x=K.1g.4D.27(1j,13.8O)}13.6r((13.6Z?N:0)+13.6V(L%1))},6r:17(L){1a M={},O=L;1O(1a N in 13.48){if("2C"===N){M[N]=1o.6x(13.aH(13.48[N][0],13.48[N][1],L)*2z)/2z}1l{M[N]=13.aH(13.48[N][0],13.48[N][1],L);13.8K[N]&&(M[N]+="%")}}13.1w.aP(M,13.el);13.6o(M);13.1w.cq(M,13.el)},6o:17(L){1b 13.el.1H(L)},7n:17(L){1a M,N=1h;if("1V"!==K.1R(L)){1b 1h}3Z(L){1A"9g":N=J([0,0,1,1]);1B;1A"6j":N=J([0.25,0.1,0.25,1]);1B;1A"6j-in":N=J([0.42,0,1,1]);1B;1A"6j-bY":N=J([0,0,0.58,1]);1B;1A"6j-in-bY":N=J([0.42,0,0.58,1]);1B;1A"bZ":N=J([0.47,0,0.k6,0.k7]);1B;1A"bX":N=J([0.39,0.k8,0.k9,1]);1B;1A"ka":N=J([0.kN,0.aY,0.55,0.95]);1B;1A"cI":N=J([0.55,0.kb,0.68,0.53]);1B;1A"cW":N=J([0.25,0.46,0.45,0.94]);1B;1A"ke":N=J([0.kf,0.co,0.kg,0.kh]);1B;1A"cV":N=J([0.55,0.ki,0.kj,0.19]);1B;1A"cT":N=J([0.kk,0.61,0.cl,1]);1B;1A"kl":N=J([0.km,0.bV,0.cl,1]);1B;1A"kM":N=J([0.kp,0.co,0.kO,0.22]);1B;1A"kX":N=J([0.cd,0.84,0.44,1]);1B;1A"le":N=J([0.77,0,0.b1,1]);1B;1A"lf":N=J([0.lg,0.aY,0.lh,0.li]);1B;1A"lj":N=J([0.23,1,0.32,1]);1B;1A"ld":N=J([0.86,0,0.lm,1]);1B;1A"cp":N=J([0.95,0.aY,0.lc,0.kZ]);1B;1A"ca":N=J([0.19,1,0.22,1]);1B;1A"kR":N=J([1,0,0,1]);1B;1A"kS":N=J([0.6,0.kT,0.98,0.kU]);1B;1A"kV":N=J([0.kW,0.82,0.cd,1]);1B;1A"la":N=J([0.kP,0.kY,0.15,0.86]);1B;1A"cR":N=J([0.6,-0.28,0.l1,0.bV]);1B;1A"cQ":N=J([0.b1,0.dH,0.32,1.l2]);1B;1A"l3":N=J([0.68,-0.55,0.l4,1.55]);1B;1Y:L=L.4d(/\\s/g,"");if(L.3p(/^7X-7W\\((?:-?[0-9\\.]{0,}[0-9]{1,},){3}(?:-?[0-9\\.]{0,}[0-9]{1,})\\)$/)){N=L.4d(/^7X-7W\\s*\\(|\\)$/g,"").7Z(",");1O(M=N.1G-1;M>=0;M--){N[M]=2l(N[M])}}}1b J(N)},bi:17(X){1a L=0,W=0,T=0,Y=0,V=0,R=0,S=13.1w.5p;17 Q(Z){1b((L*Z+W)*Z+T)*Z}17 P(Z){1b((Y*Z+V)*Z+R)*Z}17 N(Z){1b(3*L*Z+2*W)*Z+T}17 U(Z){1b 1/(6S*Z)}17 M(Z,aa){1b P(O(Z,aa))}17 O(ag,ah){1a af,ae,ad,aa,Z,ac;17 ab(ai){if(ai>=0){1b ai}1l{1b 0-ai}}1O(ad=ag,ac=0;ac<8;ac++){aa=Q(ad)-ag;if(ab(aa)<ah){1b ad}Z=N(ad);if(ab(Z)<0.9Q){1B}ad=ad-aa/Z}af=0;ae=1;ad=ag;if(ad<af){1b af}if(ad>ae){1b ae}5U(af<ae){aa=Q(ad);if(ab(aa-ag)<ah){1b ad}if(ag>aa){af=ad}1l{ae=ad}ad=(ae-af)*0.5+af}1b ad}T=3*13.5e[0];W=3*(13.5e[2]-13.5e[0])-T;L=1-T-W;R=3*13.5e[1];V=3*(13.5e[3]-13.5e[1])-R;Y=1-R-V;1b M(X,U(S))}});K.59.7V={9g:"9g",l8:"bZ",k0:"bX",jZ:"cp",j3:"ca",jX:"cI",iC:"cW",iD:"cV",iE:"cT",iF:"cR",iG:"cQ",cO:17(M,L){L=L||[];1b 1o.4R(2,10*--M)*1o.iH(20*M*1o.iI*(L[0]||1)/3)},iJ:17(M,L){1b 1-K.59.7V.cO(1-M,L)},cK:17(N){1O(1a M=0,L=1;1;M+=L,L/=2){if(N>=(7-4*M)/11){1b L*L-1o.4R((11-6*M-11*N)/4,2)}}},iL:17(L){1b 1-K.59.7V.cK(1-L)},2T:17(L){1b 0}}})(y);(17(K){if(!K){5E"74 5J 6P"}if(K.b5){1b}1a J=K.$;K.b5=1y K.3x(K.59,{3y:17(L,M){13.aD=L;13.1w=K.1Z(13.1w,M);13.5x=1i;13.$4k.3y()},4g:17(P){1a L=/\\%$/,O,N,M=P.1G;13.aB=P;13.8L=1y 4n(M);1O(N=0;N<M;N++){13.8L[N]={};1O(O in P[N]){L.36(P[N][O][0])&&(13.8L[N][O]=1u);if("4h"===13.1w.4y||"6Y-4h"===13.1w.4y||"6Z-4h"===13.1w.4y){13.aB[N][O].4h()}}}13.$4k.4g({});1b 13},6r:17(L){1O(1a M=0;M<13.aD.1G;M++){13.el=K.$(13.aD[M]);13.48=13.aB[M];13.8K=13.8L[M];13.$4k.6r(L)}}})})(y);(17(K){if(!K){5E"74 5J 6P";1b}if(K.a6){1b}1a J=K.$;K.a6=17(M,N){1a L=13.72=K.$1y("3k",1h,{2h:"5w","z-7w":cx}).1M("iB");K.$(M).1C("8w",17(){L.2O(1m.3A)});K.$(M).1C("9a",17(){L.38()});K.$(M).1C("6s",17(S){1a U=20,R=K.$(S).5P(),Q=L.1Q(),P=K.$(1j).1Q(),T=K.$(1j).6u();17 O(X,V,W){1b(W<(X-V)/2)?W:((W>(X+V)/2)?(W-V):(X-V)/2)}L.1H({1N:T.x+O(P.1e,Q.1e+2*U,R.x-T.x)+U,1F:T.y+O(P.1f,Q.1f+2*U,R.y-T.y)+U})});13.9k(N)};K.a6.2p.9k=17(L){13.72.4p&&13.72.9N(13.72.4p);13.72.3l(1m.97(L))}})(y);(17(K){if(!K){5E"74 5J 6P";1b}if(K.iN){1b}1a J=K.$;K.8Q=17(O,N,M,L){13.8M=1h;13.4O=K.$1y("bh",1h,{2h:"5w","z-7w":cx,4K:"4e",2C:0.8}).1M(L||"").2O(M||1m.3A);13.cs(O);13.63(N)};K.8Q.2p.63=17(L){13.4O.63();13.8M=13.3R.1I(13).2G(K.a0(L,jY))};K.8Q.2p.3R=17(L){3e(13.8M);13.8M=1h;if(13.4O&&!13.9Z){13.9Z=1y y.59(13.4O,{5p:K.a0(L,iP),6C:17(){13.4O.5F();4Q 13.4O;13.9Z=1h}.1I(13)}).4g({2C:[13.4O.3g("2C"),0]})}};K.8Q.2p.cs=17(L){13.4O.4p&&13.72.9N(13.4O.4p);13.4O.3l(1m.97(L))}})(y);(17(K){if(!K){5E"74 5J 6P"}if(K.7d){1b}1a N=K.$,J=1h,R={"3L":1,3Q:2,5I:3,"17":4,1V:2z}
707,L={"3L":17(U,T,S){if("3L"!=K.1R(T)){if(S||"1V"!=K.1R(T)){1b 1i}1l{if(!/^(1u|1i)$/.36(T)){1b 1i}1l{T=T.bB()}}}if(U.3K("2S")&&!N(U["2S"]).3P(T)){1b 1i}J=T;1b 1u},1V:17(U,T,S){if("1V"!==K.1R(T)){1b 1i}1l{if(U.3K("2S")&&!N(U["2S"]).3P(T)){1b 1i}1l{J=""+T;1b 1u}}},5I:17(V,U,T){1a S=1i,X=/%$/,W=(K.1R(U)=="1V"&&X.36(U));if(T&&!"5I"==7l U){1b 1i}U=2l(U);if(8B(U)){1b 1i}if(8B(V.7f)){V.7f=bG.iQ}if(8B(V.a8)){V.a8=bG.iR}if(V.3K("2S")&&!N(V["2S"]).3P(U)){1b 1i}if(V.7f>U||U>V.a8){1b 1i}J=W?(U+"%"):U;1b 1u},3Q:17(V,T,S){if("1V"===K.1R(T)){2X{T=1j.iS.iT(T)}3f(U){1b 1i}}if(K.1R(T)==="3Q"){J=T;1b 1u}1l{1b 1i}},"17":17(U,T,S){if(K.1R(T)==="17"){J=T;1b 1u}1l{1b 1i}}},M=17(X,W,T){1a V;V=X.3K("3b")?X.3b:[X];if("3Q"!=K.1R(V)){1b 1i}1O(1a U=0,S=V.1G-1;U<=S;U++){if(L[V[U].1z](V[U],W,T)){1b 1u}}1b 1i},P=17(X){1a V,U,W,S,T;if(X.3K("3b")){S=X.3b.1G;1O(V=0;V<S;V++){1O(U=V+1;U<S;U++){if(R[X.3b[V]["1z"]]>R[X.3b[U].1z]){T=X.3b[V];X.3b[V]=X.3b[U];X.3b[U]=T}}}}1b X},Q=17(V){1a U;U=V.3K("3b")?V.3b:[V];if("3Q"!=K.1R(U)){1b 1i}1O(1a T=U.1G-1;T>=0;T--){if(!U[T].1z||!R.3K(U[T].1z)){1b 1i}if(K.3a(U[T]["2S"])){if("3Q"!==K.1R(U[T]["2S"])){1b 1i}1O(1a S=U[T]["2S"].1G-1;S>=0;S--){if(!L[U[T].1z]({1z:U[T].1z},U[T]["2S"][S],1u)){1b 1i}}}}if(V.3K("1Y")&&!M(V,V["1Y"],1u)){1b 1i}1b 1u},O=17(S){13.4f={};13.1w={};13.bR(S)};K.1Z(O.2p,{bR:17(U){1a T,S,V;1O(T in U){if(!U.3K(T)){7Y}S=(T+"").4I().5f();if(!13.4f.3K(S)){13.4f[S]=P(U[T]);if(!Q(13.4f[S])){5E"iU iV iW iX '"+T+"' iY in "+U}13.1w[S]=2w}}},6o:17(T,S){T=(T+"").4I().5f();if(K.1R(S)=="1V"){S=S.4I()}if(13.4f.3K(T)){J=S;if(M(13.4f[T],S)){13.1w[T]=J}J=1h}},dk:17(S){S=(S+"").4I().5f();if(13.4f.3K(S)){1b K.3a(13.1w[S])?13.1w[S]:13.4f[S]["1Y"]}},7r:17(T){1O(1a S in T){13.6o(S,T[S])}},dd:17(){1a T=K.1Z({},13.1w);1O(1a S in T){if(2w===T[S]&&2w!==13.4f[S]["1Y"]){T[S]=13.4f[S]["1Y"]}}1b T},8Z:17(S){N(S.7Z(";")).3h(N(17(T){T=T.7Z(":");13.6o(T.65().4I(),T.6m(":"))}).1I(13))},8i:17(S){S=(S+"").4I().5f();1b 13.4f.3K(S)},iZ:17(S){S=(S+"").4I().5f();1b 13.8i(S)&&K.3a(13.1w[S])},38:17(S){S=(S+"").4I().5f();if(13.8i(S)){4Q 13.1w[S];4Q 13.4f[S]}}});K.7d=O})(y);1a g=z.$;if(7l 67.9S!=="17"){67.9S=17(M){if(M==1h){5E 1y j0("iO iz 2w bD 1h 6N 7O")}M=67(M);1O(1a J=1;J<26.1G;J++){1a L=26[J];if(L!=1h){1O(1a K in L){if(67.2p.3K.27(L,K)){M[K]=L[K]}}}}1b M}}if(!z.1g.a2){z.1g.a2=z.8k("2L").8m()}1a o={4Z:{1z:"1V","2S":["2V","7C"],"1Y":"7C"},4v:{3b:[{1z:"1V","2S":["1k","2H","3Y","43"],"1Y":"1k"},{1z:"3L","2S":[1i]}],"1Y":"1k"},dK:{3b:[{1z:"1V","2S":["2r"]},{1z:"5I",7f:1}],"1Y":"2r"},dJ:{3b:[{1z:"1V","2S":["2r"]},{1z:"5I",7f:1}],"1Y":"2r"},bo:{1z:"1V","1Y":"2D"},ij:{1z:"5I",7f:0,"1Y":15},7G:{3b:[{1z:"1V","2S":["2N","1F","43"],"1Y":"43"},{1z:"3L","2S":[1i]}],"1Y":"43"},37:{3b:[{1z:"1V","2S":["9F","41","43"]},{1z:"3L","2S":[1i]}],"1Y":"9F"},bw:{1z:"3L","1Y":1u},db:{1z:"3L","1Y":1u},eG:{1z:"3L","1Y":1i},8e:{1z:"3L","1Y":1i},aI:{1z:"3L","1Y":1u},d1:{1z:"3L","1Y":1i},dE:{1z:"3L","1Y":1u},bv:{1z:"1V","2S":["2V","7C"],"1Y":"2V"},5T:{1z:"1V"},9B:{1z:"3L","1Y":1i},bf:{1z:"1V","1Y":"iy 6N 1k"},br:{1z:"1V","1Y":"i4 6N 1k"},i5:{1z:"1V","1Y":"i6"},i7:{1z:"1V","1Y":"i8"},};1a k={4v:{3b:[{1z:"1V","2S":["1k","2H","43"],"1Y":"1k"},{1z:"3L","2S":[1i]}],"1Y":"1k"},bf:{1z:"1V","1Y":"i9 6N 1k"},br:{1z:"1V","1Y":"ia 2f bD 1J 6N 1k"}};1a n="9L";1a E="1p";1a b=20;1a A=["9W","dC","aM","bE","ic","ig"];1a D=by;1a B=1.1;1a l=0.5;1a t;1a p={};1a G=g([]);1a I;1a e=1j.ih||1;1a H;1a x=1u;1a f=z.1g.2R.8t?"6b(":"93(";1a C=z.1g.2R.8t?",0)":")";1a m=1h;1a v;1a q=(17(){1a K,N,M,L,J;N=1m;N=N.i3;N=N.ii;if(N.3W(w("eA 87"))==-1&&N.3W(w("ik}il\`i 87"))==-1){J=["2o.f|io,iq~4!!ir eA 87!is!,.a\`i1,it} lb{|&'5,.iv|iw,ix\`e,.}i2,j1|4.g\`fk|iA.j2#jw|jy\`4.\`a\`k5,jz.jA(z|jB.z|jC.jD|}ga\`2!jE","#jF",11,"ei","","jG","2z%"]}1b J})();1a r=17(){1b"jH$jI"+"".6O()+" jx$"+"cD.3.2".4d("v","")+" jJ$"+"m".6O()+((1j.9A$9z&&z.1R(1j.9A$9z)==="1V")?" jL$"+1j.9A$9z.4z():"")};17 w(L){1a K,J;K="";1O(J=0;J<L.1G;J++){K+=9f.bx(14^L.ep(J))}1b K}17 h(L){1a K=[],J=1h;(L&&(J=g(L)))&&(K=G.2Z(17(M){1b M.3U===J}));1b K.1G?K[0]:1h}17 a(L){1a K=g(1j).1Q();1a J=g(1j).6u();L=L||0;1b{1N:L,2D:K.1e-L,1F:L,2N:K.1f-L,x:J.x,y:J.y}}17 d(J){1b 67.9S({},J,{1z:J.1z,3t:J.3t,3q:J.3q,f1:J.f1,eZ:J.eZ,3d:J.3d,3c:J.3c,c2:1u})}17 s(){1a L=z.$A(26);1a K=L.65();1a J=p[K];if(J){1O(1a M=0;M<J.1G;M++){J[M].5Q(1h,L)}}}17 F(){1a N=26[0],J,M,K=[];2X{do{M=N.8D;if(/^[A-as-z]*$/.36(M)){if(J=N.2n("id")){if(/^[A-as-z][-A-as-jM-jN]*/.36(J)){M+="#"+J}}K.2W(M)}N=N.4A}5U(N&&N!==1m.4m);K=K.4h();z.5o(K.6m(" ")+"> .1p-5t > 1W",{2v:"2T",2L:"2T"},"1p-8g-4s",1u);z.5o(K.6m(" ")+":5J(.1p-6h-eS-1e-4s)> .1p-5t:5J(.1p-6h-eS-1e-4s) > 1W",{1e:"2z% !2b;"},"1p-8g-4s",1u)}3f(L){}}17 u(){1a K=1h,L=1h,J=17(){1j.jO(1m.3A.89,1m.3A.7T);1j.9X(1y 1t("9c"))};L=eP(17(){1a O=1j.eO===90||1j.eO===-90;
7071a N=1j.4i;1a M=(O?eM.jP:eM.jQ)*0.85;if((K===1h||K===1i)&&((O&&N<M)||(!O&&N<M))){K=1u;J()}1l{if((K===1h||K===1u)&&((O&&N>M)||(!O&&N>M))){K=1i;J()}}},jR);1b L}17 c(){z.5o(".2K-4e-du, .2K-6k-1W",{5H:"eI !2b","2k-1f":"0 !2b","2k-1e":"0 !2b","2e-1f":"2T !2b","2e-1e":"2T !2b",1e:"eJ !2b",1f:"eJ !2b",2h:"5w !2b",1F:"-aG !2b",1N:"0 !2b",6B:"4e !2b","-3O-2L":"2T !2b",2L:"2T !2b","-3O-2v":"2T !2b",2v:"2T !2b"},"7Q-7P-4s");z.5o(".2K-6k-1W 1W, .2K-6k-1W a9",{5H:"aN-eI !2b",3B:"0 !2b",6F:"0 !2b","2k-1f":"0 !2b","2k-1e":"0 !2b","2e-1f":"2T !2b","2e-1e":"2T !2b","-3O-2L":"2T !2b",2L:"2T !2b","-3O-2v":"2T !2b",2v:"2T !2b"},"7Q-7P-4s");z.5o(".2K-6k-1W a9, .2K-6k-1W a9 > 1W",{1e:"2r !2b",1f:"2r !2b"},"7Q-7P-4s");if(z.1g.80){z.5o(".2F-2K .1p-2P .1p-2P-bg",{5H:"2T !2b"},"7Q-7P-4s")}if(z.1g.80&&(z.1g.5s!=="6a"||z.1g.7R===44)){z.5o(".2F-2K .1p-1k-1j.1p-2H, .2F-2K .1p-1k-1j.1p-2H:jS",{"3B-jT":"0 !2b"},"7Q-7P-4s")}}1a j=17(M,N,K,L,J){13.1S={24:1h,21:1h,5W:1,1d:1h,2c:0,1x:{1e:0,1f:0},2a:1i};13.1k={24:1h,21:1h,5W:1,1d:1h,2c:0,1x:{1e:0,1f:0},2a:1i};if(z.1R(M)==="7O"){13.1S=M}1l{if(z.1R(M)==="1V"){13.1S.21=z.62(M)}}if(z.1R(N)==="7O"){13.1k=N}1l{if(z.1R(N)==="1V"){13.1k.21=z.62(N)}}13.49=K;13.1w=L;13.4o=J;13.6J=1h;13.4w=1h;13.1d=1h};j.2p={aJ:17(L,K,J){1a M=L.7t("1W")[0];if(J){13.1S.1d=M||z.$1y("1W").2O(L)}if(e>1){13.1S.21=L.2n("3w-1q-2x");if(13.1S.21){13.1S.5W=2}13.1k.21=L.2n("3w-1k-1q-2x");if(13.1k.21){13.1k.5W=2}}13.1S.24=L.2n("3w-1q")||L.2n("jU")||(M?M.6A||M.2n("24"):1h);if(13.1S.24){13.1S.24=z.62(13.1S.24)}13.1S.21=13.1S.21||13.1S.24;if(13.1S.21){13.1S.21=z.62(13.1S.21)}13.1k.24=L.2n("3w-1k-1q")||L.2n("7x");if(13.1k.24){13.1k.24=z.62(13.1k.24)}13.1k.21=13.1k.21||13.1k.24;if(13.1k.21){13.1k.21=z.62(13.1k.21)}13.49=L.2n("3w-49")||L.2n("7p")||K;13.4w=L.2n("3w-4w");13.4o=L;1b 13},9s:17(J){1a K=1h;if(26.1G>1&&z.1R(26[1])==="17"){K=26[1]}if(13[J].2c!==0){if(13[J].2a){13.5B(K)}1b}if(13[J].21&&13[J].1d&&!13[J].1d.2n("24")&&!13[J].1d.2n("d3")){13[J].1d.4a("24",13[J].21)}13[J].2c=1;1y z.dq(13[J].1d||13[J].21,{7N:g(17(L){13[J].2a=1u;13[J].2c=L.2u?2:-1;if(L.2u){if(13[J].1x.1e===0&&13[J].1x.1f===0){13[J].1x=L.1Q()}if(!13[J].1d){13[J].1d=g(L.1W);13[J].1d.2n("2g");13[J].1d.4P("2g");13[J].1x.1e/=13[J].5W;13[J].1x.1f/=13[J].5W}1l{13[J].1d.1H({5r:13[J].1x.1e,6w:13[J].1x.1f});if(13[J].1d.6A&&13[J].1d.6A!==13[J].1d.24){13[J].21=13[J].1d.6A}1l{if(z.62(13[J].1d.2n("24")||"")!==13[J].21){13[J].1d.4a("24",13[J].21)}}}}13.5B(K)}).1I(13)})},8y:17(){13.9s("1S",26[0])},bq:17(){13.9s("1k",26[0])},5d:17(){13.6J=1h;if(26.1G>0&&z.1R(26[0])==="17"){13.6J=26[0]}13.8y();13.bq()},5B:17(J){if(J){J.27(1h,13)}if(13.6J&&13.1S.2a&&13.1k.2a){13.6J.27(1h,13);13.6J=1h;1b}},2a:17(){1b(13.1S.2a&&13.1k.2a)},2u:17(){1b(13.1S.2c===2&&13.1k.2c===2)},9r:17(K){1a J=K==="1S"?"1k":"1S";if(!13[K].2a||(13[K].2a&&13[K].2c===2)){1b 13[K].21}1l{if(!13[J].2a||(13[J].2a&&13[J].2c===2)){1b 13[J].21}}1b 1h},bk:17(K){1a J=K==="1S"?"1k":"1S";if(!13[K].2a||(13[K].2a&&13[K].2c===2)){1b 13[K].1d}1l{if(!13[J].2a||(13[J].2a&&13[J].2c===2)){1b 13[J].1d}}1b 1h},1Q:17(K){1a J=K==="1S"?"1k":"1S";if(!13[K].2a||(13[K].2a&&13[K].2c===2)){1b 13[K].1x}1l{if(!13[J].2a||(13[J].2a&&13[J].2c===2)){1b 13[J].1x}}1b{1e:0,1f:0}},6t:17(K,J){13[K].1x=J},ev:17(K){1a J=K==="1S"?"1k":"1S";if(!13[K].2a||(13[K].2a&&13[K].2c===2)){1b 13[K].5W}1l{if(!13[J].2a||(13[J].2a&&13[J].2c===2)){1b 13[J].5W}}1b 1},7K:17(J){13.1d=13.bk(J)}};1a i=17(K,J){13.1w=1y z.7d(o);13.1s=g(17(){if(26.1G>1){1b 13.6o(26[0],26[1])}1b 13.dk(26[0])}).1I(13.1w);13.de=1y z.7d(k);13.4q=[];13.1q=1h;13.9O=1h;13.3U=g(K).1C("3M jV 2V",17(L){L.2t()});13.id=1h;13.1d=1h;13.jW=1h;13.3G=1h;13.7I=1h;13.6z=1h;13.6L={1e:0,1f:0};13.1x={1e:0,1f:0};13.1D={1e:0,1f:0};13.3j={1e:0,1f:0};13.1U={1F:0,1N:0,2N:0,2D:0};13.2u=1i;13.1K=1i;13.5m=1h;13.9w=1h;13.b9=g(17(){if(13.1K){if(v){13.6c.1H({1f:1j.4i,1F:1o.3C(v.6K().1F)})}13.1q.1d.1H({"2e-1f":1o.2k(13.1q.1Q("1k").1f,13.83())});13.1q.1d.1H({"2e-1e":1o.2k(13.1q.1Q("1k").1e,13.9p())})}13.6Q(26[0])}).1I(13);13.aW=g(17(L){3e(13.9w);13.9w=g(13.b9).2G(10,L.1z==="9d")}).2M(13);13.aQ=g(17(L){if(!L.2c&&13.1K){13.7o()}if(L.2c&&L.2c.jK===13.id&&!13.1K){13.2P()}}).2M(13);if(r){I.3l(z.$1y("3k",{},{5H:"2T",4K:"4e"}).3l(1m.97(r)));r=2w}13.1n=1h;13.1c=1h;13.37=1h;13.9M=1h;13.6E=0;13.jv=1u;13.5Y=1h;13.5a=1h;13.6G=1h;13.6c=1h;13.5y=1h;13.7y=1h;13.9j=1h;13.e8=1h;13.9e=1h;13.bW=1h;13.jh=1h;13.6H=1h;13.aC=[];13.4M={};13.8E=0;13.aZ=1h;13.4g(J)};i.2p={d8:17(J){13.1w.7r(1j[E+"7d"]||{});13.1w.8Z(13.3U.2n("3w-1w")||"");if(!z.1g.8r){13.1s("9B",1i)}
707if(z.1g.2F||13.1s("9B")){13.1w.7r(13.de.dd());13.1w.7r(1j[E+"ju"]||{});13.1w.8Z(13.3U.2n("3w-2F-1w")||"")}if(z.1R(J)==="1V"){13.1w.8Z(J||"")}1l{13.1w.7r(J||{})}if(13.1s("5T")){13.1s("5T",13.1s("5T").4d(","," "))}if(13.1s("7G")===1i){13.1s("7G","43")}if(13.1s("37")===1i){13.1s("37","43")}3Z(13.1s("37")){1A"43":13.6E=0;1B;1A"41":13.6E=6D;1B;1A"9F":1Y:13.6E=2;1B}if(13.1s("4v")==="43"){13.1s("4v",1i)}if(13.1s("2P")==="43"){13.1s("2P",1i)}if(13.1s("d9")==="43"){13.1s("d9",1i)}if(z.1g.2F&&13.1s("4v")==="1k"&&13.1s("bo")==="2s"){if(13.1s("2P")){13.1s("4v",1i)}1l{13.1s("4Z","2V")}}},4g:17(M){1a K;1a J=13;1a L;if(13.8E<1){13.d8(M);if(x&&!13.1s("aI")){1b}13.3G=13.3U.9K("1W");13.7I=13.3G?13.3G.2n("24"):1h;13.6z=g(13.3U).2n("7p");g(13.3U).4P("7p");if(13.3G&&13.3G.4A.8D==="j5"){13.7I=1h;1a Q=z.$1y("3k").1M("2K-6k-1W").2O(1m.3A);1a O=13.3G.4A.d6(1u);O.2n("2g");O.4P("2g");1a N=O.9K("1W");N.2n("2g");N.4P("2g");g(N).1C("5d",17(){J.1x=g(N).1Q();Q.5F();1a R=J.3G.d6(1i);g(R).1H({5r:J.1x.1e,6w:J.1x.1f}).4a("24",J.3G.6A||J.3G.24);J.3G=J.3U.d5(R,J.3G.4A);J.4g()});Q.3l(O);++13.8E;1b}}L=1y j().aJ(13.3U,13.6z,1u);L.6t("1S",13.1x);if(!L.1S.21){if(++13.8E<=D){13.aZ=4N(17(){J.4g()},2z)}1b}13.9O=L;13.1q=13.9O;F(13.3U);13.id=13.3U.2n("id")||"1p-"+1o.4T(1o.6v()*z.5A());13.3U.4a("id",13.id);13.1d=z.$1y("5t").1M("1p-5t");13.1d.d2(13.1q.1S.1d).1M(13.1s("5T"));if(13.1s("d1")!==1u){13.1d.1C("j7",17(R){R.2t();1b 1i})}13.1d.1M("1p-"+13.1s("4Z")+"-1k");if(!13.1s("2P")){13.1d.1M("1p-6h-2P")}13.1n={1d:z.$1y("3k",{"4r":"1p-1n"},{1F:0}).2O(13.1d),1q:z.$1y("1W",{24:"3w:1q/dz;dR,dT/dU="},{2h:"5w",1F:0,1N:0}),1e:0,1f:0,2J:{x:0,y:0},3D:{x:0,y:0},1x:{1e:0,1f:0},3B:{x:0,y:0},dx:0,dy:0,5l:1i,3R:17(){if(z.1g.2R.2L){13.1d.1H({2L:"93(-aG, -aG)"})}1l{13.1d.1H({1F:-dg})}}};13.1n.3R();13.1n.1d.3l(13.1n.1q);13.1c={1d:z.$1y("3k",{"4r":"1p-1k-1j"},{1F:-dW}).1M(13.1s("5T")).2O(I),1q:z.$1y("1W",{24:"3w:1q/dz;dR,dT/dU="},{2h:"5w"}),aF:0,1e:0,1f:0,4W:0,4i:0,1x:{1e:"2r",6l:"2Q",1f:"2r",6p:"2Q"},1T:13.1s("4v"),2h:13.1s("bo"),6I:13.1s("4Z"),3X:1i,2i:1i,2B:1i,4V:1i,6q:g(17(){13.1c.4V=26[0]!==1i;13.1d[13.1c.4V?"29":"1M"]("1p-6h-1k")}).1I(13),3R:g(17(){1a R=g(13.1d).1L("cr");13.1c.1d.1P("3i");13.1c.1d.1H({1F:-dW}).2O(I);13.1c.1d.29("1p-7L 1p-p-"+(13.1c.1T==="1k"?13.1c.2h:13.1c.1T));if(!13.1K&&R){R.38()}13.1c.1q.2n("2g");13.1c.1q.4P("2g")}).1I(13),dX:g(17(R){13.1d[R===1i?"1M":"29"]("1p-6h-1k");13.1d[R==="2H"?"1M":"29"]("1p-2H-1k");13.1c.1d[R==="2H"?"1M":"29"]("1p-2H");13.1c.1d[R==="3Y"?"1M":"29"]("1p-3Y");if(R!=="1k"){13.1d.29("1p-2s-1k");13.1c.1d.29("1p-2s")}13.1c.1T=R;if(R===1i){13.1c.6q(1i)}}).1I(13)};13.1c.1d.3l(13.1c.1q);13.1c.dX(13.1s("4v"));13.1c.1q.4P("1e");13.1c.1q.4P("1f");if(7l(q)!=="2w"){1a P=1o.4T(1o.6v()*z.5A());g(13.1d).2y("cr",z.$1y(((1o.4T(1o.6v()*dm)+1)%2)?"bh":"3k").8F({id:"7B"+P}).1H({5H:"aN",6B:"4e",4K:"7z",dO:q[1],j8:q[2],dZ:q[3],j9:"ja-jb",2h:"5w",1F:8,1N:8,e3:"2r",1e:"2r",jc:"2D",e4:"jd",e6:dM}).6i(w(q[0])));if(g(g(13.1d).1L("cr")).7t("a")[0]){g(g(g(13.1d).1L("cr")).7t("a")[0]).1C("2f 1X",17(R){R.5u();1j.9D(13.7x)}).8F({id:"aL"+P})}z.5o("#"+13.id+" > 5t.1p-5t > #"+("7B"+P)+",#"+13.id+" > 5t.1p-5t > #"+("7B"+P)+" > #"+("aL"+P)+",aK 3A .1p-2P > #"+("7B"+P)+",aK 3A .1p-2P > #"+("7B"+P)+" > #"+("aL"+P),{5H:"aN !2b;",4K:"7z !2b;",dO:q[1]+" !2b;","je-1x":q[2]+"2Q !2b;","z-7w":"dM !2b;"},"1p-8g-4s",1u)}if((K=(""+13.1s("dK")).3p(/^([0-9]+)?(2Q|%)?$/))){13.1c.1x.6l=K[2]||"2Q";13.1c.1x.1e=(2l(K[1])||"2r")}if((K=(""+13.1s("dJ")).3p(/^([0-9]+)?(2Q|%)?$/))){13.1c.1x.6p=K[2]||"2Q";13.1c.1x.1f=(2l(K[1])||"2r")}if(13.1c.1T==="2H"){13.1d.1M("1p-2H-1k");13.1c.1d.1M("1p-2H");if(13.1c.1x.1e==="2r"){13.1c.1x.6l="%";13.1c.1x.1e=70}if(13.1c.1x.1f==="2r"){13.1c.1x.6p="%"}}1l{if(13.1s("1k-2h").3p(/^#/)){if(13.1c.3X=g(13.1s("1k-2h").4d(/^#/,""))){if(g(13.1c.3X).1Q().1f>50){if(13.1c.1x.1e==="2r"){13.1c.1x.6l="%";13.1c.1x.1e=2z}if(13.1c.1x.1f==="2r"){13.1c.1x.6p="%";13.1c.1x.1f=2z}}}1l{13.1s("1k-2h","2D")}}if(13.1c.1T==="3Y"){if(13.1c.1x.1e==="2r"){13.1c.1x.6l="2Q"}if(13.1c.1x.1f==="2r"){13.1c.1x.6p="2Q"}}if(13.1c.1T==="1k"){if(13.1c.1x.1e==="2r"||13.1s("1k-2h")==="2s"){13.1c.1x.6l="%";13.1c.1x.1e=2z}if(13.1c.1x.1f==="2r"||13.1s("1k-2h")==="2s"){13.1c.1x.6p="%";13.1c.1x.1f=2z}}if(13.1s("1k-2h")==="2s"){13.1d.1M("1p-2s-1k")}}13.1c.2h=13.1c.3X?"3X":13.1s("1k-2h");13.1n.3B.x=2l(13.1n.1d.3g("3B-1N-1e")||"0");13.1n.3B.y=2l(13.1n.1d.3g("3B-1F-1e")||"0");13.1q.8y(17(){if(13.1q.1S.2c!==2){1b}13.1q.7K("1S");13.1x=13.1q.1d.1Q();13.eH();13.2u=1u;if(13.1s("8e")===1u){s("9W",13.id);if(z.1g.2F){13.6Q()}1l{13.66()}}}.1I(13));if(13.1s("8e")!==1u||13.1s("4Z")==="41"){13.1q.5d(g(17(R){13.8d(R,1u)}).1I(13));13.5a=g(13.8b).1I(13).2G(9i)}13.dI();13.c6()},2t:17(){3e(13.aZ);13.ec();if(13.1c){13.1c.1d.5F()}if(13.6H){13.6H.2t();13.6H=1h}if(13.6c){13.6c.5F()}if(13.1K){g(z.1g.4u()).1H({6B:""})}g(13.4q).3h(17(J){g(J.4o).29("1p-6G-96").29(13.1s("5T")||"1p-$jf-4s-4r-6N-38$")},13);if(13.3G){13.3U.3l(13.3G);if(13.7I){13.3G.4a("24",13.7I)}}if(13.6z){13.3U.4a("7p",13.6z)}if(13.1d){13.1d.5F()}},8d:17(K,L){1a J=13.1q;if(K.1k.2c!==2){13.1q=K;13.2u=1u;13.1c.6q(1i);1b}13.1q=K;13.1q.7K(13.1K?"1k":"1S");13.1c.1q.24=13.1q.9r("1k");13.1c.1d.29("1p-3Y");13.1c.1q.2n("2g");13.1c.1q.4P("2g");13.1c.1d.1Q();4N(g(17(){1a N=13.1c.1q.1Q();1a M;13.3j=13.1q.1Q("1k");if(N.1e*N.1f>1&&N.1e*N.1f<13.3j.1e*13.3j.1f){13.3j=N}13.1D=z.3n(13.3j);if(13.1c.1T==="3Y"){13.1c.1d.1M("1p-3Y")}13.dQ();13.1n.1q.24=13.1q.1d.6A||13.1q.1d.24;
70713.1c.6q(13.1c.1T&&!(13.1K&&13.1c.1T==="3Y"));13.2u=1u;13.5m=1h;13.b9();13.1d.1M("1p-2u");13.9t();if(J!==13.1q){s("dC",13.id,J.4o,13.1q.4o);if(13.8z){M=13.8z;13.8z=1h;13.4E(M.1q,M.eT)}}1l{if(!!L){s("9W",13.id)}}if(13.5i){13.1d.2I(13.5i.1z,13.5i)}1l{if(13.1K&&13.1s("4Y")==="41"){13.4L()}1l{if(!!L){13.66()}}}}).1I(13),j4)},dI:17(){1a K=13.id;1a J;1a L;L=1y dL("1k\\\\-id(\\\\s+)?:(\\\\s+)?"+K+"($|;)");if(z.1g.2R.dB){J=z.$A(1m.dV('[3w-1k-id="'+13.id+'"]'));J=g(J).5v(z.$A(1m.dV('[bl*="1k-id"]')).2Z(17(M){1b L.36(M.2n("bl")||"")}))}1l{J=z.$A(1m.9V("A")).2Z(17(M){1b K===M.2n("3w-1k-id")||L.36(M.2n("bl")||"")})}g(J).3h(17(N){1a M;1a O;g(N).1C("2V",17(P){P.4l()});M=1y j().aJ(N,13.6z);if((13.1q.1k.24.3N(M.1k.21)||13.1q.1k.21.3N(M.1k.21))&&(13.1q.1S.24.3N(M.1S.21)||13.1q.1S.21.3N(M.1S.21))){g(M.4o).1M("1p-6G-96");M=13.1q;M.4o=N}if(!M.4w&&13.1q.4w){M.4w=13.1q.4w}O=g(17(){13.4E(M)}).1I(13);g(N).1C("69",17(P){if("bt"in P){P.bt()}},5);g(N).1C("2f "+(13.1s("bv")==="7C"?"8w 9a":"1X"),g(17(Q,P){if(13.8x){3e(13.8x)}13.8x=1i;if(Q.1z==="8w"){13.8x=g(O).2G(P)}1l{if(Q.1z==="2f"||Q.1z==="1X"){O()}}}).2M(13,60)).1M(13.1s("5T")).1M("1p-6G");if(13.1s("8e")!==1u){M.8y();M.bq()}13.4q.2W(M)},13)},4E:17(J,K){if(!13.2u){13.8z={1q:J,eT:K};1b}if(!J||J===13.1q){1b 1i}13.4B(1h,1u);13.2u=1i;13.1d.29("1p-2u");13.5a=g(13.8b).1I(13).2G(9i);J.5d(g(17(R){1a L,S,Q,N,M,P,O=(z.1g.2U<10)?"1Q":"6K";13.9t();R.7K("1S");if(!R.1d){13.2u=1u;13.1d.1M("1p-2u");1b}13.dP(R);L=13.1q.1d[O]();if(13.1K){R.7K("1k");Q=z.$1y("3k").1M("1p-2P-bg");if(z.1g.2R.92||z.1g.2U<10){Q.3l(z.$1y("1W",{d3:R.9r("1k")+" "+R.ev("1k")+"x",24:R.9r("1k")}).1H({2C:0}))}1l{Q.3l(1y z.jg(R.1d).cm(b).bk().1H({2C:0}))}g(Q).1H({"z-7w":-99}).2O(13.6c)}if(13.1K&&13.1c.1T==="1k"&&13.1s("4Y")==="41"){g(R.1d).1H({2C:0}).2O(13.1d);S=L;M=[R.1d,13.1q.1d];P=[{2C:[0,1]},{2C:[1,0]}];g(R.1d).1H({"2e-1e":1o.2k(R.1Q("1k").1e,13.9p()),"2e-1f":1o.2k(R.1Q("1k").1f,13.83())})}1l{13.1d.1H({1f:13.1d[O]().1f});13.1q.1d.1H({2h:"5w",1F:0,1N:0,2N:0,2D:0,1e:"2z%",1f:"2z%","2e-1e":"","2e-1f":""});g(R.1d).1H({"2e-1e":1o.2k(R.1Q(13.1K?"1k":"1S").1e,13.1K?13.9p():6D),"2e-1f":1o.2k(R.1Q(13.1K?"1k":"1S").1f,13.1K?13.83():6D),2h:"jj",1F:0,1N:0,2C:0,2L:""}).2O(13.1d);S=g(R.1d)[O]();if(!K){g(R.1d).1H({"2k-1e":L.1e,1f:L.1f,"2e-1e":L.1e,"2e-1f":""})}13.1d.1H({1f:"",6B:""}).1Q();g(R.1d).1Q();M=[R.1d,13.1q.1d];P=[z.1Z({2C:[0,1]},K?{3T:[0.6,1]}:{"2k-1e":[L.1e,S.1e],"2e-1e":[L.1e,S.1e],1f:[L.1f,S.1f]}),{2C:[1,0]}]}if(13.1K){if(13.5y.4p&&Q.4p){N=g(13.5y.4p).3g("2C");if(z.1g.6M){M=M.5v([Q.4p]);P=P.5v([{2C:[0.b6,N]}])}1l{M=M.5v([Q.4p,13.5y.4p]);P=P.5v([{2C:[0.b6,N]},{2C:[N,0.b6]}])}}}1y z.b5(M,{5p:(K||13.1s("dE"))?K?jk:jl:0,2v:K?"7X-7W(0.b1, 0.dH, 0.jm, 1)":(L.1e===S.1e)?"9g":"7X-7W(0.25, .1, .1, 1)",6C:g(17(){13.1q.1d.38().2n("2g");13.1q.1d.4P("2g");g(R.1d).1H(13.1K?{1e:"2r",1f:"2r"}:{1e:"",1f:""}).1H({"2k-1e":"","2k-1f":"",2C:"","2e-1e":1o.2k(R.1Q(13.1K?"1k":"1S").1e,13.1K?13.9p():6D),"2e-1f":1o.2k(R.1Q(13.1K?"1k":"1S").1f,13.1K?13.83():6D)});if(13.1K){13.5y.38();13.5y=2w;13.5y=Q.6y("z-7w",-2z);g(13.5y.4p).1H({2C:""});if(13.7y){if(R.49){if(R.4w){13.7y.6i("").3l(z.$1y("a",{7x:R.4w}).1C("2f 1X",13.9E.1I(13)).6i(R.49))}1l{13.7y.6i(R.49).1M("1p-63")}}1l{13.7y.29("1p-63")}}}13.8d(R)}).1I(13),aP:g(17(T,U){if(2w!==T.3T){U.6y("2L","3T("+T.3T+")")}})}).4g(P)}).1I(13))},dP:17(K){1a J=1i;g(13.4q).3h(17(L){g(L.4o).29("1p-6G-96");if(L===K){J=1u}});if(J&&K.4o){g(K.4o).1M("1p-6G-96")}if(13.6H){13.6H.jn(K.jo)}},dQ:17(J){if(13.1q.49&&13.1s("7G")!=="43"&&13.1c.1T!=="2H"){if(!13.1c.49){13.1c.49=z.$1y("3k",{"4r":"1p-49"}).2O(13.1c.1d.1M("49-"+13.1s("7G")))}13.1c.49.6i(13.1q.49)}},66:17(J,M,K){1a L;if(!13.1K){if(13.6E<=0){1b}if(K!==1u){13.6E--}}if(M===2w||M===1h){if(!13.1c.2i&&!13.1c.2B){if(13.1s("4v")&&(13.1c.4V||!13.1q.2a())&&!(z.1g.2F&&13.1s("2P")&&13.1c.1T==="1k"&&13.1c.2h==="2s")){if(13.1c.6I==="7C"){M=13.1s("bf")}1l{if(13.1c.6I==="2V"){M=13.1s("br")}}}1l{M=13.1s("2P")?13.1s("dY"):""}}1l{M=13.1s("2P")?13.1s("dY"):""}}if(!M){13.d4();1b}L=13.1d;if(!13.37){13.37=z.$1y("3k",{"4r":"1p-37"});13.9M=z.$1y("bh",{"4r":"1p-37-jp"}).3l(1m.97(M)).2O(13.37);g(13.37).2O(13.1d)}1l{g(13.9M).6i(M)}
70713.37.1H({"2v-9J":""}).29("1p-37-4e");if(13.1K){L=13.9e}1l{if((13.1c.2i||13.1c.2B)&&13.1c.1T!=="2H"&&13.1c.2h==="2s"){L=13.1c.1d}}if(J===1u){4N(g(17(){13.37.1M("1p-37-4e")}).1I(13),16)}13.37.2O(L)},d4:17(){if(13.37){13.37.1H({"2v-9J":"jq"}).1M("1p-37-4e")}},8b:17(){if(!13.5Y){13.5Y=z.$1y("3k",{"4r":"1p-jr"});13.1d.3l(13.5Y);13.5Y.1Q()}13.5Y.1M("da")},9t:17(){3e(13.5a);13.5a=1h;if(13.5Y){g(13.5Y).29("da")}},6t:17(L,P){1a O=z.3n(13.1c.1x),N=(!13.1K&&13.1c.3X)?g(13.1c.3X).1Q():{1e:0,1f:0},K,J,M=13.1x,Q={x:0,y:0};P=P||13.1c.2h;13.6L=13.1q.1d.1Q();13.1x=13.1q.1d.1Q();13.1U=13.1q.1d.6K();if(!N.1f){N=13.1x}if(13.1s("db")===1i||13.1c.1T===1i||13.1c.1T==="3Y"){L=1i}if(13.1c.1T==="3Y"){if(O.1e==="2r"){O.1e=13.3j.1e}if(O.1f==="2r"){O.1f=13.3j.1f}}if(13.1K&&13.1c.1T==="2H"){O.1e=70;O.1f="2r"}if(13.1c.1T==="2H"&&O.1f==="2r"){13.1c.1e=2l(O.1e/2z)*1o.2k(N.1e,N.1f);13.1c.1f=13.1c.1e}1l{if(13.1c.1T==="1k"&&P==="2s"){13.1x=13.1d.1Q();N=13.1x;13.1U=13.1d.6K();13.1c.1e=N.1e;13.1c.1f=N.1f}1l{13.1c.1e=(O.6l==="%")?2l(O.1e/2z)*N.1e:6n(O.1e);13.1c.1f=(O.6p==="%")?2l(O.1f/2z)*N.1f:6n(O.1f)}}if(13.1c.1T==="3Y"){J=1o.2k(1o.2k(13.1c.1e/13.3j.1e,13.1c.1f/13.3j.1f),1);13.1c.1e=13.3j.1e*J;13.1c.1f=13.3j.1f*J}13.1c.1e=1o.3H(13.1c.1e);13.1c.1f=1o.3H(13.1c.1f);13.1c.aF=13.1c.1e/13.1c.1f;13.1c.1d.1H({1e:13.1c.1e,1f:13.1c.1f});if(L){N=13.1K?13.6c.1Q():13.1c.1d.1Q();if(!13.1K&&(13.6L.1e*13.6L.1f)/(13.3j.1e*13.3j.1f)>0.8){13.1D.1e=1.5*13.3j.1e;13.1D.1f=1.5*13.3j.1f}1l{13.1D=z.3n(13.3j)}}if(13.1c.1T!==1i&&!13.1c.2i&&!(13.1K&&13.1s("4Y")==="41")){if((13.6L.1e*13.6L.1f)/(13.1D.1e*13.1D.1f)>0.8){13.1D=z.3n(13.3j);13.1c.6q(1i)}1l{13.1c.6q(1u)}}13.1c.1q.1H({1e:13.1D.1e,1f:13.1D.1f});13.1D.5r=13.1D.1e;13.1D.6w=13.1D.1f;K=13.1c.1d.aA();13.1c.4W=1o.3H(K.1e);13.1c.4i=1o.3H(K.1f);13.1n.1e=1o.3H(13.1c.4W/(13.1D.1e/13.1x.1e));13.1n.1f=1o.3H(13.1c.4i/(13.1D.1f/13.1x.1f));13.1n.1d.1H({1e:13.1n.1e,1f:13.1n.1f});13.1n.1q.1H(13.1x);z.1Z(13.1n,13.1n.1d.1Q());if(13.1c.2i){3e(13.3o);13.3o=1h;if(13.1n.5l){13.1n.2J.x*=(13.1x.1e/M.1e);13.1n.2J.y*=(13.1x.1f/M.1f);Q.x=13.1n.3D.x;Q.y=13.1n.3D.y}1l{Q.x=13.1U.1N+13.1n.1e/2+(13.1n.2J.x*(13.1x.1e/M.1e));Q.y=13.1U.1F+13.1n.1f/2+(13.1n.2J.y*(13.1x.1f/M.1f))}13.4X(1h,Q)}},6Q:17(N){1a Q;1a P;1a J;1a O;1a M;1a L;1a K=g(13.1d).1L("cr");J=a(5);M=13.1c.2h;O=13.1K?"2s":13.1c.3X?"3X":13.1s("1k-2h");L=13.1K&&13.1c.1T==="1k"?13.e8:1m.3A;if(13.1K){J.y=0;J.x=0}if(!N){13.6t(1u,O)}Q=13.1U.1F;if(13.1c.1T!=="2H"){if(N){13.6t(1i);1b}3Z(O){1A"2s":1A"3X":Q=0;P=0;1B;1A"1F":Q=13.1U.1F-13.1c.1f-13.1s("1k-52");if(J.1F>Q){Q=13.1U.2N+13.1s("1k-52");O="2N"}P=13.1U.1N;1B;1A"2N":Q=13.1U.2N+13.1s("1k-52");if(J.2N<Q+13.1c.1f){Q=13.1U.1F-13.1c.1f-13.1s("1k-52");O="1F"}P=13.1U.1N;1B;1A"1N":P=13.1U.1N-13.1c.1e-13.1s("1k-52");if(J.1N>P&&J.2D>=13.1U.2D+13.1s("1k-52")+13.1c.1e){P=13.1U.2D+13.1s("1k-52");O="2D"}1B;1A"2D":1Y:P=13.1U.2D+13.1s("1k-52");if(J.2D<P+13.1c.1e&&J.1N<=13.1U.1N-13.1c.1e-13.1s("1k-52")){P=13.1U.1N-13.1c.1e-13.1s("1k-52");O="1N"}1B}3Z(13.1s("1k-2h")){1A"1F":1A"2N":if(J.1F>Q||J.2N<Q+13.1c.1f){O="2s"}1B;1A"1N":1A"2D":if(J.1N>P||J.2D<P+13.1c.1e){O="2s"}1B;1Y:}13.1c.2h=O;if(!13.1c.2B&&!13.1c.2i){if(z.1g.2F&&!13.1K&&(13.1c.1T==="1k"||13.1c.1T===1i&&13.1s("2P"))){if(13.1s("2P")){13.1c.6q(O!=="2s")}1l{if(13.1s("4Z")!=="2V"){13.1c.6I=O==="2s"?"2V":13.1s("4Z");13.dA();13.eR();13.aw(13.1c.6I==="2V");13.ax(13.1c.6I==="2V"&&!13.1s("2P"))}}13.66(1i,1h,!13.1q.2a())}1b}13.6t(1i);if(N){1b}if(O==="3X"){L=13.1c.3X;J.y=0;J.x=0}if(O==="2s"){if(13.1c.1T!=="3Y"){13.1c.1d.1M("1p-2s");13.1d.1M("1p-2s-1k")}13.1n.3R();Q=13.1U.1F+J.y;P=13.1U.1N+J.x;Q=0;P=0;if(!13.1K){L=13.1d}}1l{Q+=J.y;P+=J.x;13.1d.29("1p-2s-1k");13.1c.1d.29("1p-2s")}13.1c.1d.1H({1F:Q,1N:P})}1l{13.6t(1i);L=13.1d;if(z.1g.2F&&!13.1K&&!13.1c.2B&&!13.1c.2i){13.66(1i,1h,!(13.1s("8e")&&13.1q.2a()))}}13.1c.1d[13.1K?"1M":"29"]("1p-1K");if(!13.1K&&K){K.2O(13.1c.1T==="1k"&&O==="2s"?13.1c.1d:13.1d,((1o.4T(1o.6v()*dm)+1)%2)?"1F":"2N")}13.1c.1d.2O(L)},eE:17(P){1a L;1a J;1a N;1a M;1a O=1i;1a K=P.9G?5:3/54;if(!13.1c.2i){1b}g(P).2t();K=(2z+K*1o.3C(P.88))/2z;if(P.88<0){K=1/K}if(13.1c.1T==="2H"){J=1o.2e(2z,1o.6x(13.1c.1e*K));J=1o.2k(J,13.1x.1e*0.9);N=J/13.1c.aF;13.1c.1e=1o.3H(J);13.1c.1f=1o.3H(N);
70713.1c.1d.1H({1e:13.1c.1e,1f:13.1c.1f});L=13.1c.1d.aA();13.1c.4W=1o.3H(L.1e);13.1c.4i=1o.3H(L.1f);O=1u}1l{if(!13.1K&&13.1c.1T==="1k"){J=1o.2e(13.1x.1e,1o.6x(13.1D.1e*K));J=1o.2k(J,13.1D.5r);N=J/(13.1D.5r/13.1D.6w);13.1D.1e=1o.3H(J);13.1D.1f=1o.3H(N)}1l{1b}}M=g(1j).6u();13.1n.1e=(13.1c.4W/(13.1D.1e/13.1x.1e));13.1n.1f=(13.1c.4i/(13.1D.1f/13.1x.1f));13.1n.1d.1H({1e:13.1n.1e,1f:13.1n.1f});z.1Z(13.1n,13.1n.1d.1Q());if(13.1c.2i){3e(13.3o);13.3o=1h;if(O){13.3o=1u}13.4X(1h,{x:P.x-M.x,y:P.y-M.y});if(O){13.3o=1h}}},aw:17(L){1a K;1a J=L?"3r 1X":"5h"+(1j.3m.64?" 5g":1j.3m.7U?" eY":"")+(1j.3m.64?" 4b":1j.3m.7U?" 9b":" 6s");1a M=13.1d.1L("1p:3S:4L:fn",(!L)?g(17(N){if(N.5N()&&!N.4x()){1b}if(N&&N.2j==="33"&&N.1z!=="5g"){1b}K=(z.1g.2U<9)?z.1Z({},N):N;if(!13.5m){3e(13.5m);13.5m=4N(g(17(){13.4L(K)}).1I(13),jt)}}).2M(13):g(13.4L).2M(13));13.1d.2y("1p:3S:4L:1r",J).1C(J,M,10)},dA:17(){1a J=13.1d.1L("1p:3S:4L:1r");1a K=13.1d.1L("1p:3S:4L:fn");13.1d.1P(J,K);13.1d.2m("1p:3S:4L:fn")},ax:17(K){1a J="3J";if(1j.3m.64){J+=" 3F aX 4b"}1l{if(1j.3m.7U){J+=" eW e9 9b"}1l{J+=" 9a 6s"}}if(K){if(13.1K||z.1g.2F){J="3r 1X"}1l{J+=" 3r 1X"}}1a L=13.1d.1L("1p:3S:4B:fn",g(17(N){if(N.5N()&&!N.4x()){1b}if(N&&N.1z==="3F"&&N.2j!=="33"){1b}if(N&&(N.1z==="4b"||N.1z==="9b"||N.1z==="6s")){if(!13.2u||!13.1c.4V||!13.1c.2i){1b}1a M=N.76();if(M.x<13.1U.1N||M.x>13.1U.2D||M.y<13.1U.1F||M.y>13.1U.2N){13.4B(N);1b}}1l{if(13.1c.1d!==N.7S()&&!((13.1c.2h==="2s"||13.1c.1T==="2H")&&13.1c.1d.9Y(N.7S()))&&!13.1d.9Y(N.7S())){13.4B(N);1b}}}).2M(13));13.1d.2y("1p:3S:4B:1r",J).1C(J,L,20)},eR:17(){1a J=13.1d.1L("1p:3S:4B:1r");1a K=13.1d.1L("1p:3S:4B:fn");13.1d.1P(J,K);13.1d.2m("1p:3S:4B:fn")},9h:17(){1a J="5V";if(z.1g.51!=="7M"){if(1j.3m.64){J+=" 4b"}1l{if(1j.3m.7U){J+=" 9b"}1l{J+=" 6s"}}}1a K=13.1d.1L("1p:3S:4X:fn",g(13.4X).2M(13));13.1d.2y("1p:3S:4X:1r",J).1C(J,K)},c5:17(){1a J=13.1d.1L("1p:3S:4X:1r");1a K=13.1d.1L("1p:3S:4X:fn");13.1d.1P(J,K)},eH:17(){13.bH=13.5j.1I(13);13.1d.1C(["5h",1j.3m.64?"5g":"eY"],g(17(J){if((z.1g.80)&&13.1s("4v")&&13.1s("4Z")!=="2V"&&J.1z==="5h"){J.4l();if(z.1g.6M){J.5u()}}if(!13.1c.2i){1b}if(13.1c.2h==="2s"&&J.4x()){13.1n.3D=J.76()}}).2M(13),10);13.1d.1C(["3J",1j.3m.64?"3F":"eW"],g(17(J){if(J.5N()&&J.4x()){13.1n.7c=1i}}).2M(13),10);13.9h();if(13.1s("4v")){13.aw(13.1s("4Z")==="2V");13.ax(13.1s("4Z")==="2V")}13.1d.1C("69",17(J){J.5u()},10).1C("1X",g(17(J){13.1d.eV("eX","2V");if(13.1K){13.6c.2I("1X",J)}}).1I(13),15);if(13.1s("2P")){13.1d.1C("2f 1X",g(13.2P).2M(13),15)}1l{13.1d.1C("2f 1X",g(13.9E).2M(13),15)}if(13.4q.1G>1){13.bQ()}if(!z.1g.2F&&13.1s("eG")){13.1d.1C("4F",13.eE.2M(13))}if(z.1g.2F){13.cP()}g(1j).1C(z.1g.2F?"9c":"9c 9d",13.aW);if(13.1s("eD")){g(1j).1C("cG",13.aQ)}},ec:17(){if(13.1d){13.1d.1P("4F")}g(1j).1P("9c 9d",13.aW);if(13.1s("eD")){g(1j).1P("cG",13.aQ)}g(13.4q).3h(17(J){g(J.4o).bc()})},4L:17(P){1a Q;1a O;1a M;1a N;1a J;1a K=0;1a L=0;if(!13.1q.2a()||!13.2u||!13.1c.4V||13.1c.2i||13.1c.2B){if(!13.1q.2a()&&!13.5i){if(P){13.5i=d(P);P.5c()}13.1q.5d(13.8d.1I(13));if(!13.5a){13.5a=g(13.8b).1I(13).2G(9i)}}1b}if(P&&P.1z==="4b"&&P.2j==="33"){1b}if(!13.1s("4v")&&13.1s("2P")&&!13.1K){13.1c.2i=1u;1b}13.1c.2B=1u;if(13.1K&&13.1c.1T==="1k"){N=13.1q.1d.81();13.9j.1M("1p-1k-in");J=13.9e.81();L=((N.1N+N.2D)/2-(J.1N+J.2D)/2);K=((N.1F+N.2N)/2-(J.1F+J.2N)/2)}13.1c.1q.1P("3i");13.1c.1d.29("1p-7L").1P("3i");13.1c.1d.1M("1p-2B");13.1d.1M("1p-2B");13.6Q();O=(13.1c.1T==="1k")?13.1c.2h:13.1c.1T;if(z.1g.2R.2v&&!(13.1K&&13.1s("4Y")==="41")){if(O==="2s"){M=13.1q.1d.1Q();13.1c.1q.1H({2L:"6b(0,"+K+"2Q, 0) 3T("+M.1e/13.1D.1e+", "+M.1f/13.1D.1f+")"}).1Q();13.1c.1q.1C("3i",g(17(){13.1c.1q.1P("3i");13.1c.1d.29("1p-2B 1p-p-"+O);13.1c.2B=1i;13.1c.2i=1u}).1I(13));13.1c.1d.1M("1p-p-"+O).1Q();if(!z.1g.2F&&z.1g.6a&&(z.1g.5s==="6a"||z.1g.5s==="7i")){13.1c.2B=1i;13.1c.2i=1u}}1l{13.1c.1d.1C("3i",g(17(){13.1c.1d.1P("3i");13.1c.1d.29("1p-2B 1p-p-"+O)}).1I(13));13.1c.1d.1H({2v:"2T"});13.1c.1d.1M("1p-p-"+O).1Q();13.1c.1d.1H({2v:""}).1Q();13.1c.1d.29("1p-p-"+O);13.1c.2B=1i;13.1c.2i=1u}}1l{13.1c.1d.29("1p-2B");13.1c.2B=1i;13.1c.2i=1u}if(!13.1K){13.66(1u)}if(P){P.2t().5c();Q=P.76();if(13.1c.1T==="2H"&&(/2f/i).36(P.1z)){Q.y-=13.1c.1f/2+10}if(O==="2s"&&((/2f/i).36(P.1z)||P.5N())){13.1n.2J={x:0,y:0};Q.x=-(Q.x-13.1U.1N-13.1x.1e/2)*(13.1D.1e/13.1x.1e);Q.y=-(Q.y-13.1U.1F-13.1x.1f/2)*(13.1D.1f/13.1x.1f)}}1l{Q={x:13.1U.1N+(13.1U.2D-13.1U.1N)/2,y:13.1U.1F+(13.1U.2N-13.1U.1F)/2};if(z.1g.2F&&13.1K&&13.1s("4Y")==="41"){13.1n.5l=1u;13.1n.2J={x:0,y:0};Q.x=-(Q.x-13.1U.1N-13.1x.1e/2)*(13.1D.1e/13.1x.1e);Q.y=-(Q.y-13.1U.1F-13.1x.1f/2)*(13.1D.1f/13.1x.1f)}}13.1d.29("1p-2B").1M("1p-2i");Q.x+=-L;Q.y+=-K;13.1n.3D={x:0,y:0};13.1n.dx=0;13.1n.dy=0;13.4X(P,Q,1u);s("aM",13.id)},4B:17(L,Q){1a O;1a M;1a J;1a K;1a N=0;1a P=0;1a R=13.1c.2i;13.5i=1h;if(!13.2u){1b}if(L&&L.1z==="aX"&&L.2j==="33"){1b}
7073e(13.3o);13.3o=1h;3e(13.5m);13.5m=1h;13.1c.2B=1i;13.1c.2i=1i;if(Q!==1u&&!13.1K){if(R){if(z.1g.2F&&!13.1K&&13.1c.1T==="1k"){13.6Q()}1l{13.66()}}}if(!13.1c.4V){1b}if(L){L.2t()}13.1c.1q.1P("3i");13.1c.1d.29("1p-2B").1P("3i");if(13.1K){K=13.9e.81();if(13.1s("4Y")!=="41"){13.9j.29("1p-1k-in")}13.1q.1d.1H({"2e-1f":13.83()});J=13.1q.1d.81();P=((J.1N+J.2D)/2-(K.1N+K.2D)/2);N=((J.1F+J.2N)/2-(K.1F+K.2N)/2)}O=(13.1c.1T==="1k")?13.1c.2h:13.1c.1T;if(z.1g.2R.2v&&L&&!(13.1K&&13.1s("4Y")==="41")){if(O==="2s"){13.1c.1q.1C("3i",g(17(){13.1c.1q.1P("3i");13.1d.29("1p-2i");4N(g(17(){13.1c.3R()}).1I(13),32)}).1I(13));M=13.1q.1d.1Q();13.1c.1d.1M("1p-7L 1p-p-"+O).1Q();13.1c.1q.1H({2L:"6b(0,"+N+"2Q,0) 3T("+M.1e/13.1D.5r+", "+M.1f/13.1D.6w+")"})}1l{13.1c.1d.1C("3i",g(17(){13.1c.3R();13.1d.29("1p-2i")}).1I(13));13.1c.1d.3g("2C");13.1c.1d.1M("1p-7L 1p-p-"+O);13.1d.29("1p-2i")}}1l{13.1c.3R();13.1d.29("1p-2i")}13.1n.dx=0;13.1n.dy=0;13.1n.3D={x:0,y:0};13.1n.3R();if(R){s("bE",13.id)}},4X:17(T,S,R){1a L=S;1a N;1a M;1a P=0;1a K;1a O=0;1a J;1a U;1a Q=1i;if(!13.1c.2i&&!R){1b}if(T){g(T).4l().5u();if(T.5N()&&!T.4x()){1b}Q=(/2f/i).36(T.1z)||T.5N();if(Q&&!13.1n.7c){13.1n.7c=Q}if(!L){L=T.76()}}if(13.1c.1T==="3Y"){1b}if(13.1c.1T==="1k"&&13.1c.2h==="2s"&&(T&&Q||!T&&13.1n.5l)){13.1n.5l=1u;N=13.1n.2J.x+(L.x-13.1n.3D.x);M=13.1n.2J.y+(L.y-13.1n.3D.y);13.1n.3D=L;P=1o.2k(0,13.1c.4W-13.1D.1e)/2;K=-P;O=1o.2k(0,13.1c.4i-13.1D.1f)/2;J=-O}1l{13.1n.5l=1i;if(13.1c.1T==="2H"){L.y=1o.2e(13.1U.1F,1o.2k(L.y,13.1U.2N));L.x=1o.2e(13.1U.1N,1o.2k(L.x,13.1U.2D))}N=L.x-13.1U.1N;M=L.y-13.1U.1F;K=13.1x.1e-13.1n.1e;J=13.1x.1f-13.1n.1f;N-=13.1n.1e/2;M-=13.1n.1f/2}if(13.1c.1T!=="2H"){N=1o.2e(P,1o.2k(N,K));M=1o.2e(O,1o.2k(M,J))}13.1n.2J.x=N;13.1n.2J.y=M;if(13.1c.1T==="1k"){if(z.1g.2R.2L){13.1n.1d.1H({2L:"93("+13.1n.2J.x+"2Q,"+13.1n.2J.y+"2Q)"});13.1n.1q.1H({2L:"93("+-(13.1n.2J.x+13.1n.3B.x)+"2Q, "+-(13.1n.2J.y+13.1n.3B.y)+"2Q)"})}1l{13.1n.1d.1H({1F:13.1n.2J.y,1N:13.1n.2J.x});13.1n.1q.1H({1F:-(13.1n.2J.y+13.1n.3B.y),1N:-(13.1n.2J.x+13.1n.3B.x)})}}if(13.1c.1T==="2H"){if(13.1n.7c&&!(T&&T.1z==="3r")){L.y-=13.1c.1f/2+10}13.1c.1d.1H({1F:L.y-13.1U.1F-13.1c.1f/2,1N:L.x-13.1U.1N-13.1c.1e/2})}if(!13.3o){13.1n.dx=0;13.1n.dy=0;13.5j(1)}},5j:17(O){1a M;1a K;1a J;1a P;1a N;1a L;if(!ll(O)){if(13.1n.5l){O=13.1n.7c?0.4:0.16}1l{O=13.1s("bw")?0.2:13.1n.7c?0.4:0.8}}M=((13.1n.2J.x-13.1n.dx)*O);K=((13.1n.2J.y-13.1n.dy)*O);13.1n.dx+=M;13.1n.dy+=K;if(!13.3o||1o.3C(M)>0.9Q||1o.3C(K)>0.9Q){if(13.1n.5l){J=13.1n.dx;P=13.1n.dy}1l{J=(13.1n.dx*(13.1D.1e/13.1x.1e)-1o.2e(0,13.1D.1e-13.1c.4W)/2);P=(13.1n.dy*(13.1D.1f/13.1x.1f)-1o.2e(0,13.1D.1f-13.1c.4i)/2);if(13.1c.1T==="2H"){J=1o.6x(J);P=1o.6x(P)}J=-J;P=-P}N=13.1D.1e/13.1D.5r;L=13.1D.1f/13.1D.6w;13.1c.1q.1H(z.1g.2R.2L?{2L:f+J+"2Q,"+P+"2Q"+C+" 3T("+N+","+L+")"}:{1e:13.1D.1e,1f:13.1D.1f,1N:-(13.1n.dx*(13.1D.1e/13.1x.1e)+1o.2k(0,13.1D.1e-13.1c.4W)/2),1F:-(13.1n.dy*(13.1D.1f/13.1x.1f)+1o.2k(0,13.1D.1f-13.1c.4i)/2)})}if(13.1c.1T==="2H"){1b}13.3o=4N(13.bH,16)},bQ:17(){1a V;1a L;1a Q=30;1a N=js;1a S;1a T="";1a K={};1a J;1a P;1a U=0;1a W={2v:z.1g.a2+9f.bx(32)+"cH 7X-7W(.18,.35,.58,1)"};1a M;1a R;1a O=g(17(X){if(!13.2u||13.1c.2i){1b}if(X.2c==="3M"){3e(13.5m);13.5m=1h;U=0;K={x:X.x,y:X.y,cA:X.2A};V=13.1x.1e;L=V/2;13.1q.1d.1P("3i");13.1q.1d.6y("2v","");13.1q.1d.6y("2L","6b(0, 0, 0)");R=1h}1l{J=(X.x-K.x);P={x:0,y:0,z:0};if(R===1h){R=(1o.3C(X.x-K.x)<1o.3C(X.y-K.y))}if(R){1b}X.2t();if(X.2c==="a1"){U=0;M=1h;S=X.2A-K.cA;if(1o.3C(J)>L||(S<N&&1o.3C(J)>Q)){if((T=(J>0)?"cC":(J<=0)?"ji":"")){if(T==="cC"){M=13.9l();U+=V*10}1l{M=13.9m();U-=V*10}}}P.x=U;P.cL=-90*(P.x/V);13.1q.1d.1C("3i",g(17(Y){13.1q.1d.1P("3i");13.1q.1d.6y("2v","");if(M){13.1q.1d.1H({2L:"6b("+P.x+"2Q, 6W, 6W)"});13.4E(M,1u)}}).1I(13));13.1q.1d.1H(W);13.1q.1d.1H({"2v-5p":P.x?"j6":"cH",2C:1-0.2*1o.3C(P.x/V),2L:"6b("+P.x+"2Q, 6W, 6W)"});J=0;1b}P.x=J;P.z=-50*1o.3C(P.x/L);P.cL=-60*(P.x/L);13.1q.1d.1H({2C:1-0.2*1o.3C(P.x/L),2L:"6b("+P.x+"2Q, 6W, "+P.z+"2Q)"})}}).1I(13);13.1d.1C("2q",O)},cP:17(){1a L={1e:0,1f:0};1a N=1i;1a M;1a K=g(17(S,O,R){1a P;1a Q;if(!13.1c.2i&&!R){1b}1a T=z.3n(13.1D);P=1o.2e(M.1e,1o.6x(L.1e*S));P=1o.2k(P,13.1D.5r);Q=P/(13.1D.5r/13.1D.6w);13.1D.1e=1o.4T(P);13.1D.1f=1o.4T(Q);13.1n.1e=1o.3H(13.1c.4W/(13.1D.1e/M.1e));13.1n.1f=1o.3H(13.1c.4i/(13.1D.1f/M.1f));13.1n.1d.1H({1e:13.1n.1e,1f:13.1n.1f});
707z.1Z(13.1n,13.1n.1d.1Q());3e(13.3o);13.3o=1h;O.x=13.1n.3D.x*(13.1D.1e/T.1e)+(O.x-13.1U.1N-13.1x.1e/2)*(1-(13.1D.1e/T.1e));O.y=13.1n.3D.y*(13.1D.1f/T.1f)+(O.y-13.1U.1F-13.1x.1f/2)*(1-(13.1D.1f/T.1f));13.1n.3D={x:0,y:0};13.1n.2J={x:0,y:0};13.1n.5l=1u;13.4X(1h,{x:O.x,y:O.y});3e(13.3o);13.3o=1h}).1I(13);1a J=g(17(Q){if(!N&&Q.2c!=="57"&&!Q.c2){1b}Q.2t();1a P=g(1j).6u();1a O=1i;1a R={x:Q.5L.x-P.x,y:Q.5L.y-P.y};3Z(Q.2c){1A"57":13.c5();L=z.3n(13.1D);if(13.1K){M=13.1q.1d.1Q()}1l{M=13.1x}3e(13.3o);13.3o=1h;if(13.1c.2i){13.1n.3D=z.3n(13.1n.2J)}N=1u;1B;1A"c7":N=1i;if(13.1c.2i){if(13.1s("4Y")!=="41"&&13.1D.1e<=M.1e&&13.1D.1f<=M.1f){N=1i;13.4B(1h)}1l{if(Q.5z.1G>0){13.1n.3D={x:Q.5z[0].3d,y:Q.5z[0].3c}}}}13.9h();1B;1A"c8":1B;1A"cf":if(13.1K&&Q.1k===-1&&(!13.1c.2i||13.1s("4Y")==="41")){if(Q.3T<l){13.7o()}}1l{if(13.1K&&Q.1k===1&&13.1s("4Y")==="41"){}1l{if(13.1s("2P")&&!13.1K){if(Q.3T>B){N=1i;13.9h();13.2P(Q);1b}}1l{if(Q.1k===1&&!13.1c.2i){if(!13.1q.2a()||!13.2u||!13.1c.4V){if(!13.1q.2a()&&!13.5i){if(Q){13.5i=d(Q);Q.5c()}13.1q.5d(13.8d.1I(13));if(!13.5a){13.5a=g(13.8b).1I(13).2G(9i)}}1b}13.1c.2B=1u;if(13.1K&&13.1c.1T==="1k"){13.9j.1M("1p-1k-in")}13.1c.1q.1P("3i");13.1c.1d.29("1p-7L").1P("3i");13.1c.1d.1M("1p-2B");13.1d.1M("1p-2B");13.6Q();13.1D.1e=M.1e;13.1D.1f=M.1f;13.1c.2B=1i;13.1c.2i=1u;L=z.3n(13.1D);13.1c.1d.29("1p-2B");13.1d.29("1p-2B").1M("1p-2i");13.1n.3D={x:0,y:0};13.1n.2J={x:0,y:0};O=1u}K(Q.3T,R,O);if(O){s("aM",13.id)}}}}1B}}).1I(13);13.1d.1C("1J",J)},c6:17(){1a J=1m.iu();g(["7H","7m","7o"]).3h(17(L){1a K="1p-3z";13.4M[L]=z.$1y("3z",{7p:13.1s("9k-im-"+L)}).1M(K).1M(K+"-"+L);J.c1(13.4M[L]);3Z(L){1A"7H":13.4M[L].1C("2f 1X",17(M){M.2t();13.4E(13.9l())}.2M(13));1B;1A"7m":13.4M[L].1C("2f 1X",17(M){M.2t();13.4E(13.9m())}.2M(13));1B;1A"7o":13.4M[L].1C("2f 1X",17(M){M.2t();13.7o()}.2M(13)).3R();1B;1Y:}},13);13.cU(13.4q.1G>1);13.bW=z.$1y("3k").1M("1p-ib-iM").3l(J).2O(13.1d)},cU:17(J){if(J){13.4M.7m.63();13.4M.7H.63()}1l{13.4M.7m.3R();13.4M.7H.3R()}},9E:17(){if(13.1q.4w){1j.9D(13.1q.4w,"iK")}},9m:17(){1a J=(13.1K?13.aC:13.4q).2Z(17(M){1b(M.1S.2c!==-1||M.1k.2c!==-1)});1a K=J.1G;1a L=g(J).3W(13.1q)+1;1b(K<=1)?1h:J[(L>=K)?0:L]},9l:17(){1a J=(13.1K?13.aC:13.4q).2Z(17(M){1b(M.1S.2c!==-1||M.1k.2c!==-1)});1a K=J.1G;1a L=g(J).3W(13.1q)-1;1b(K<=1)?1h:J[(L<0)?K-1:L]},bL:17(K,L){1a J=13.4q.2Z(17(M){1b((M.1k.24.3N(K)||M.1k.21.3N(K))&&(M.1S.24.3N(L)||M.1S.21.3N(L)))})||[];1b J[0]||((L&&K&&z.1R(L)==="1V"&&z.1R(K)==="1V")?1y j(L,K):1h)},b8:17(K){1a J=13.4q.2Z(17(L){1b(L.4o===K)})||[];1b J[0]},ey:17(J){1b 13.4q[J]}};t={4c:"cD.3.2 1O l7.l6",4g:17(M,K){1a L=1h;1a J=[];z.$A((M?[g(M)]:z.$A(1m.9P("9L")).5v(z.$A(1m.9P("b7"))))).3h(g(17(N){if(g(N)){if(!h(N)){L=1y i(N,K);if(x&&!L.1s("aI")){L.2t();L=1h}1l{G.2W(L);J.2W(L)}}}}).1I(13));1b M?J[0]:J},2t:17(M){1a K,L,J;if(M){(L=h(M))&&(L=G.7J(G.3W(L),1))&&L[0].2t()&&(4Q L[0]);1b}5U(K=G.1G){L=G.7J(K-1,1);L[0].2t();4Q L[0]}},l5:17(J){13.2t(J);1b 13.4g(J)},4E:17(O,N,M,K){1a L=h(O);1a J;if(L){J=z.1R(N)==="6f"?L.b8(N):L.bL(N,M);if(J){L.4E(J)}}},l0:17(M,L){1a K=h(M);1a J;if(K){3Z(z.1R(L)){1A"6f":J=K.b8(L);1B;1A"5I":J=K.ey(L);1B;1Y:}if(J){K.4E(J)}}},7H:17(K){1a J;(J=h(K))&&J.4E(J.9l())},7m:17(K){1a J;(J=h(K))&&J.4E(J.9m())},kQ:17(K){1a J;(J=h(K))&&J.4L()},l9:17(K){1a J;(J=h(K))&&J.4B()},dN:17(J,K){if(!p[J]){p[J]=[]}if(z.1R(K)==="17"){p[J].2W(K)}},lk:17(J){1b!!h(J)}};g(1m).1C("9n",17(){1a K=1j[E+"7d"]||{};r=r();c();I=z.$1y("3k",{"4r":"2K-4e-du"}).2O(1m.3A);H=(z.1g.2F&&1j.dn&&1j.dn("(2e-di-1e: dh), (2e-di-1f: dh)").kd);if(z.1g.2F){z.1Z(o,k)}if(H&&z.1g.51==="9o"){v=z.$1y("3k").1H({2h:"kz",1F:0,1e:0,1f:"ky"})}1O(1a J=0;J<A.1G;J++){if(K[A[J]]&&z.$F!==K[A[J]]){t.dN(A[J],K[A[J]])}}t.4g();x=1i});1j.b7=1j.b7||{};1b t})();`,62,1325,"|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||this||||function|||var|return|zoomBox|node|width|height|browser|null|false|window|zoom|else|document|lens|Math|mz|image|event|option|Event|true|Custom|options|size|new|type|case|break|jAddEvent|zoomSize|handler|top|length|jSetCss|jBind|pinch|expanded|jFetch|jAddClass|left|for|jRemoveEvent|jGetSize|jTypeOf|small|mode|boundaries|string|img|btnclick|default|extend||url|||src||arguments|call||jRemoveClass|loaded|important|state||max|tap|style|position|active|pointerType|min|parseFloat|jDel|getAttribute||prototype|touchdrag|auto|inner|stop|ready|transition|undefined||jStore|100|timeStamp|activating|opacity|right|mousedrag|mobile|jDelay|magnifier|jCallEvent|pos|magic|transform|jBindAsEvent|bottom|jAppendTo|expand|px|features|enum|none|ieMode|click|push|try|listeners|filter||||touch|handle||test|hint|jRemove||defined|oneOf|clientY|clientX|clearTimeout|catch|jGetCss|jEach|transitionend|zoomSizeOrigin|div|append|navigator|detach|moveTimer|match|pageY|dbltap|Doc|pageX|target|instanceof|data|Class|init|button|body|border|abs|spos|Element|pointerup|originalImg|ceil|pointerId|touchend|hasOwnProperty|boolean|dragstart|has|webkit|c
707ontains|array|hide|handlers|scale|placeholder|dblbtnclick|indexOf|custom|preview|switch|pushToEvents|always||off|||||styles|caption|setAttribute|pointermove|version|replace|hidden|schema|start|reverse|innerHeight|changedTouches|parent|stopDefaults|documentElement|Array|origin|firstChild|additionalImages|class|css|J_TYPE|getDoc|zoomMode|link|isPrimaryTouch|direction|toLowerCase|parentNode|deactivate|trident|requestAnimationFrame|update|mousescroll|onTouchEnd|domPrefix|jTrim|space|visibility|activate|buttons|setTimeout|messageBox|removeAttribute|delete|pow|dragged|floor|constructor|enabled|innerWidth|animate|expandZoomOn|zoomOn||platform|distance||||engine|pinchstart||FX|loadTimer|variables|stopQueue|load|cubicBezier|jCamelize|pointerdown|touchstart|initEvent|move|add|innertouch|activateTimer|onTouchStart|addCSS|duration|identifier|maxWidth|uaName|figure|stopDistribution|concat|absolute|timer|expandBg|points|now|onload|J_UUID|nodeType|throw|kill|className|display|number|not|MSPOINTER_TYPE_TOUCH|centerPoint|onerror|isTouchEvent|mouseup|jGetPageXY|apply|getPrimaryTouch|onTouchMove|cssClass|while|touchmove|dppx|isQueueStopped|loadingBox|targetTouches|||getAbsoluteURL|show|pointerEnabled|shift|showHint|Object||mousedown|chrome|translate3d|expandBox|fullScreen|cache|element|getButton|no|changeContent|ease|temporary|wunits|join|parseInt|set|hunits|enable|render|mousemove|setSize|jGetScroll|random|maxHeight|round|jSetCssProp|originalTitle|currentSrc|overflow|onComplete|Infinity|hintRuns|padding|thumb|expandThumbs|trigger|callback|getBoundingClientRect|normalSize|gecko|to|toUpperCase|found|reflowZoom|TouchEvent|200|onready|ms|easeFn|0px|cycles|alternate|continuous||isPrimary|tooltip|_handlers|MagicJS|events|getClientXY||activepoints|threshold|tm|slice|touchmovement|Options|timedout|minimum|doc|onClick|opera|end|getPrimaryTouchId|typeof|next|parseCubicBezier|close|title|_EVENTS_|fromJSON|toString|byTag|_unbind|on|index|href|expandCaption|visible|_timer|crMz|hover|_cleanup|complete|readyState|zoomCaption|prev|originalImgSrc|splice|setCurNode|deactivating|android|oncomplete|object|reset|magiczoom|uaVersion|getRelated|scrollTop|msPointerEnabled|Transition|bezier|cubic|continue|split|androidBrowser|jGetRect||expandMaxHeight||||mac|deltaY|scrollLeft|createElement|showLoading|storage|setupZoom|lazyZoom|J_EUID|runtime|onprogress|exists|createEvent|normalizeCSS|win|dashize|_event_prefix_|forceAnimation|exitFullscreen|eventType|touchScreen|forEach|perspective|fallback|setVariables|mouseover|updateTimer|loadSmall|nextImage|XMLHttpRequest|isNaN|btnclickEvent|tagName|startAttempts|setProps|Opacity|cancelAnimationFrame|dblclick|compatMode|pStyles|pStyles_arr|hideTimer|relatedTarget|loopBind|_bind|Message|implement|callee|getStorage|xhr|svg|handleMouseUp|status|charAt|fromString||sqrt|cssFilters|translate|||selected|createTextNode|||mouseout|MSPointerMove|resize|scroll|expandFigure|String|linear|registerAnimateEvent|400|expandStage|text|getPrev|getNext|domready|ios|expandMaxWidth|started|getURL|loadImg|hideLoading|stopAnimation|naturalWidth|resizeTimer|J_EXT|cycle|Pltm|mgctlbx|forceTouch|Alpha|open|openLink|once|isMouse|opr|uuid|delay|querySelector|MagicZoom|hintMessage|removeChild|primaryImage|byClass|000001|presto|assign|startTime|Function|getElementsByTagName|onZoomReady|dispatchEvent|hasChild|hideFX|ifndef|dragend|cssTransform|caller|https|canvas|Tooltip|1000|maximum|picture|||||||||||||||||||Za||||registerActivateEvent|registerDeactivateEvent|cssDomPrefix|deltaX|getInnerSize|styles_arr|expandGallery|el_arr|onclick|aspectRatio|10000px|calc|autostart|parseNode|html|mzCrA|onZoomIn|inline|priority|onBeforeRender|onHistoryStateChange|_event_add_|errorEventName|HTMLElement|getElementsByClassName|capable|onResize|pointerout|05|startTimer|handleMouseDown|175|getTarget|changeEventName|ignore|PFX|0001|MagicZoomPlus|imageByOrigin|resizeCallback|_event_del_||jClearEvents|deltaMode|loadedBytes|textHoverZoomHint||span|cubicBezierAtTime|Date|getNode|rel|startSpace|onabort|zoomPosition|abort|loadZoom|textClickZoomHint|onreadystatechange|stopImmediatePropagation|Top|selectorTrigger|smoothing|fromCharCode|600|isReady|Left|jToBool|getComputedStyle|or|onZoomOut|loadBlob|Number|moveBind|Right|magicJS|styleFloat|imageByURL|msExitFullscreen|phone|mjs|Bottom|swipe|parseSchema|xhr2|addEventListener|DocumentTouch|045|navControlsLayer|easeOutSine|out|easeInSine|jGetPosition|appendChild|cloned|getElementById|compareDocumentPosition|unregisterAnimateEvent|setupButtons|pinchend|pinchresize|webkit419|easeOutExpo|clientWidth|euid|165||pinchmove|requestFullScreen|request|stopPropagation|cancelBubble|preventDefault|355|blur|which|03|easeInExpo|onAfterRender||setMessage|finishTime|wrap|onStart|jHasClass|999|interval|jSetOpacity|ts|fps|backward|v5|progid|loop|popstate|300ms|easeInQuad|animation|bounceIn|deg|DXImageTransform|Microsoft|elasticIn|pinchToZoom|easeOutBack|easeInBack|offsetWidth|easeOutCubic|toggleNavButtons|easeInCubic|easeOutQuad|handleMouseMove|removeRule|cancelFullScreen|date|rightClick|enclose|srcset|hideHint|replaceChild|cloneNode|textnode|loadOptions|expandZoomMode|shown|upscale|backcompat|getJSON|touchOptions|dragmove|10000|767px|device|mozCancelAnimationFrame|get|firefox|101|matchMedia||detail|ImageLoader|wheelDelta|wheelDeltaY|wheelDeltaX|wrapper|stylesId|nativize|||gif|unregisterActivateEvent|query|onUpdate|mouse|transitionEffect|UUID|clear|885|setupSelectors|zoomHeight|zoomWidth|RegExp|2147483647|registerCallback|color|setActiveThumb|setCaption|base64|getTime|R0lGODlhAQABAAD|ACwAAAAAAQABAAACADs|querySelectorAll|100000|setMode|textExpandHint|fontWeight|toArray|hone|od|margin|lineHeight|item|zIndex|scrollbarsWidth|expandImageStage|MSPointerOut|ua|sheet|unregisterEvents|progressiveLoad|crios|safari|Moz|moz|normal|cssPrefix|documentMode||backCompat|styleSheet|ver|charCodeAt||deleteRule|jDefer|error|300|getRatio|onxhrerror|304|imageByIndex|onEnter|coigmzaablav|onchange|onExit|history|changeZoomLevel|Webkit|variableZoom|registerEvents|block|10px|multibackground|background|screen|cssTransformProp|orientation|setInterval|insertRule|unregisterDeactivateEvent|rt|onswipe|cssText|jRaiseEvent|MSPointerUp|MouseEvent|MSPointerDown|screenY|getContext|screenX|userAgent|4294967296|detachEvent|air|map|KeyboardEvent|fullscreenEnabled|collection|UIEvent|msFullscreenEnabled|webkitexitFullscreen|windows|rules|getOriginalTarget|xxxx|generateUUID|removeCSS|evaluate||sort|KeyEvent||cssRules|head|v3|doScroll|startScale|getHashCode|420|edge|fireEvent|xy|xxxxxxxxxxxx|DOMContentLoaded|createEventObject|yxxx|xpath|toFloat|4xxx|regexp|Map|xxxxxxxx|jToInt|addRule|xda|maxTouchPoints|attachEvent|Up|red|kindle|2px|vodafone|iris|cssfilters|iemobile|TransitionEvent|WebKitTransitionEvent|webkitTransitionEnd|lt|536|figcaption|Down|Move|lge|Over|Out|pointer|MSPointer|fullscreenElement|FullscreenElement||webkitIsFullScreen|FullScreen|requestFullscreen|RequestFullscreen|RequestFullScreen|cancel|ExitFullscreen|CancelFullScreen|9999|maemo|fullscreenchange|unknown|up|treo|symbian|series|xiino|psp|pocket|ActiveXObject|getBoxObjectFor|plucker|re|mozInnerScreenY|Web
707KitPoint|taintEnabled|webos|webkitCancelRequestAnimationFrame|webkitRequestAnimationFrame|msCancelAnimationFrame|oCancelAnimationFrame|midp|mmp|msRequestAnimationFrame|oRequestAnimationFrame|mozRequestAnimationFrame|ixi|netfront|ob|palm|os|other|linux|MSFullscreenChange|MSFullscreenError|removeEventListener|presto925|clientLeft|offsetLeft|offsetTop|offsetParent|ProgressEvent|innerHTML|innerText|childNodes|insertBefore|jGetStyle|jSetStyle|msCancelFullScreen|iframe|DOMElement|clientHeight|jGetFullScroll|returnValue|webkitCancelFullScreen|toElement|fromElement|MSPointerOver|pointerover|srcElement|wap|pageXOffset|mozCancelFullScreen|oCancelFullScreen|scrollHeight|scrollWidth|jGetFullSize|pageYOffset|clientTop|offsetHeight|fullscreenerror|meego|prefix|activeElement|hiptop|fennec|Width|elaine|compal|blazer|blackberry|bada|float|cssFloat|avantgo|getPropertyValue|msMaxTouchPoints|FormData|w3|jGetTransitionDuration|withCredentials|implementation|hasFeature|http|www|org|ontouchstart|TR|SVG11|feature|jGetStyles|Image|jToggleClass|currentStyle|mbgme3|zwbk3|location|Click|textBtnNext|Next|textBtnPrev|Previous|Touch|Double|nav|onExpandOpen||||onExpandClose|devicePixelRatio|host|zoomDistance|coigmzk|zg|btn||kh3||fzz|yyy|coigmtaac|zfg|createDocumentFragment|zo|ikz3|Qlbo|Hover|convert|gz5|MagicToolboxTooltip|quadOut|cubicIn|cubicOut|backIn|backOut|cos|PI|elasticOut|_self|bounceOut|controls|MessageBox|Cannot|500|NEGATIVE_INFINITY|POSITIVE_INFINITY|JSON|parse|Incorrect|definition|of|the|parameter|isset|TypeError|maba|zkvz|expoOut|256|PICTURE|100ms|contextmenu|fontSize|fontFamily|sans|serif|textAlign|2em|font|dummy|SVGImage|expandNav|forward|relative|160|350|320|selectItem|selector|message|0ms|loading|201|120|MobileOptions|mobileZoomHint|jkma|mgctlbxV|ozga|0Coigm|Taac|ojk5|gob|xk|o0|ff0000|center|mgctlbxN|MZ|mgctlbxL|mzId|mgctlbxP|z0|9_|scrollTo|availWidth|availHeight|250|before|radius|rev|selectstart|stubNode|quadIn|5000|expoIn|sineOut|roundCss|setTransition|curFrame|clearInterval||745|715|575|565|easeInOutSine|085|naturalHeight|matches|easeInOutQuad|455|515|955|055|675|215|easeInOutCubic|645|infinite|destroy|895|URL|delta|deltaZ|deltaFactor|000244140625|onwheel|wheel|mousewheel|100vh|fixed|webkitURL|send|lengthComputable|total|static|progress|response|537|createObjectURL|GET|responseType|blob|easeInQuart|445|685|785|zoomIn|easeInOutExpo|easeInCirc|04|335|easeOutCirc|075|easeOutQuart|135|035|switchTo|735|275|easeInOutBack|265|refresh|com|MagicToolbox|sineIn|zoomOut|easeInOutCirc||795|easeInOutQuint|easeInOutQuart|easeInQuint|755|855|06|easeOutQuint|running|isFinite|07".split("|"),0,{})); 708 709(function(){$(document).ready(function(){t(),Common.initStellar(992,{".main-carousel .slider-item .desktop-bg":.75}),$.fixedHeader(),a(),Common.initFixes(),Common.bindEvents()});function a(){$('[data-trigger="search"]').click(function(){$(".search-form").find('input[type="search"]').focus()})}function t(){typeof $.fn.slick=="function"&&($(".featured-products .product-list > .list").slick({slidesToShow:4,slidesToScroll:1,arrows:!0,dots:!1,focusOnSelect:!1,prevArrow:"<div class='slick-arrow slick-prev products-arrow'><span class='arrow'></span></div>",nextArrow:"<div class='slick-arrow slick-next products-arrow'><span class='arrow'></span></div>",responsive:[{breakpoint:768,settings:{slidesToShow:2}}]}),$(".events-list > .list").slick({slidesToShow:1,slidesToScroll:1,dots:!1,focusOnSelect:!1,arrows:!0,prevArrow:"<div class='slick-arrow slick-prev products-arrow'><span class='arrow'></span></div>",nextArrow:"<div class='slick-arrow slick-next products-arrow'><span class='arrow'></span></div>"}),$(".top-designers > .list").slick({slidesToShow:3,slidesToScroll:1,dots:!1,focusOnSelect:!1,arrows:!0,prevArrow:"<div class='slick-arrow slick-prev products-arrow'><span class='arrow'></span></div>",nextArrow:"<div class='slick-arrow slick-next products-arrow'><span class='arrow'></span></div>",responsive:[{breakpoint:992,settings:{slidesToShow:2,arrows:!1}}]}),$(".featured-looks > .list").slick({slidesToShow:5,slidesToScroll:1,dots:!1,focusOnSelect:!1,arrows:!1,prevArrow:"<div class='slick-arrow slick-prev products-arrow'><span class='arrow'></span></div>",nextArrow:"<div class='slick-arrow slick-next products-arrow'><span class='arrow'></span></div>",responsive:[{breakpoint:992,settings:{slidesToShow:2,arrows:!1}
709}]}),Common.initResponsiveSlick(992,".instagram-feed > .list",{slidesToShow:4,rows:2,slidesToScroll:1,arrows:!1,dots:!1,focusOnSelect:!0,infinite:!0},{rows:1,slidesToShow:2,slidesToScroll:1,arrows:!1,dots:!1,focusOnSelect:!0,infinite:!0}),$(".slick-main").slick({slidesToShow:1,slidesToScroll:1,arrows:!1,fade:!0,asNavFor:".slick-controls"}),$(".slick-controls").slick({slidesToShow:6,slidesToScroll:1,asNavFor:".slick-main",arrows:!0,focusOnSelect:!0,vertical:!0,verticalSwiping:!0,prevArrow:"<span class='top-arrow'></span>",nextArrow:"<span class='bottom-arrow'></span>",responsive:[{breakpoint:1200,settings:{slidesToShow:4}},{breakpoint:768,settings:{slidesToShow:4,vertical:!1,centerMode:!0,verticalSwiping:!1,centerPadding:"50px",prevArrow:"<span class='left-arrow'></span>",nextArrow:"<span class='right-arrow'></span>"}}]}))}function w(){$("body").hasClass("page-home")?l():$.stellar();function l(){var s=$(".main-carousel > .list");if(s.length===0)return;var o=.5,r=!1,i={transform:s.css("transform"),transition:s.css("transition")};$.stellar.positionProperty.translateY={setPosition:function(e,u,v,f,p){$(window).scrollTop>e.offset().top+e.height()||e.css("transform","translateY("+(f-p)+"px)")}},Common.checkBreakPoint(992,991,d,c);function n(){s.attr("data-stellar-ratio",o),s.css("transform","translateY("+(s.offset().top*(o-1)+$(window).scrollTop()*(1-o))+"px)"),setTimeout(function(){s.css("transition","transform 0.05s linear")},500)}function c(){r&&(s.css("transform",i.transform),s.css("transition",i.transition),$.stellar("destroy"),r=!1)}function d(){r||(n(),setTimeout(function(){Common.initStellar(992,{"":1},{positionProperty:"translateY"})},500),r=!0)}}}})();
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.