vendor: 5,147 bytes, lines 1-23
1/* 2 jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license ************************************************ 3 jquery.cookies.2.2.0.min.js Cookie Util 4************************************************ ************************************************ 5 E-Store Interface ê´ë ¨ ê³µíµ Util 6 ì¸í°íì´ì¤ëª ì¸ì(NG_to_Store)_20140226-v.3.0 ì ì© 7************************************************ samsung.com GEO Cannibalization 8 src : /samsungp5/components/common/cm-g-gnb-201807/clientlibs/devjs/main1.gnb1.smg.global.cookieGeo.js 9 10 @version 1.0.0 11 @since 2018.06.26 12*/ 13var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(a){var n=0;return function(){return n<a.length?{done:!1,value:a[n++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1; 14$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,n,h){if(a==Array.prototype||a==Object.prototype)return a;a[n]=h.value;return a};$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var n=0;n<a.length;++n){var h=a[n];if(h&&h.Math==Math)return h}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this); 15$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,n){var h=$jscomp.propertyToPolyfillSymbol[n];if(null==h)return a[n];h=a[h];return void 0!==h?h:a[n]}; 16$jscomp.polyfill=function(a,n,h,e){n&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,n,h,e):$jscomp.polyfillUnisolated(a,n,h,e))};$jscomp.polyfillUnisolated=function(a,n,h,e){h=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var c=a[e];if(!(c in h))return;h=h[c]}a=a[a.length-1];e=h[a];n=n(e);n!=e&&null!=n&&$jscomp.defineProperty(h,a,{configurable:!0,writable:!0,value:n})}; 17$jscomp.polyfillIsolated=function(a,n,h,e){var c=a.split(".");a=1===c.length;e=c[0];e=!a&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var k=0;k<c.length-1;k++){var l=c[k];if(!(l in e))return;e=e[l]}c=c[c.length-1];h=$jscomp.IS_SYMBOL_NATIVE&&"es6"===h?e[c]:null;n=n(h);null!=n&&(a?$jscomp.defineProperty($jscomp.polyfills,c,{configurable:!0,writable:!0,value:n}):n!==h&&(void 0===$jscomp.propertyToPolyfillSymbol[c]&&($jscomp.propertyToPolyfillSymbol[c]=$jscomp.IS_SYMBOL_NATIVE?$jscomp.global.Symbol(c): 18$jscomp.POLYFILL_PREFIX+c),c=$jscomp.propertyToPolyfillSymbol[c],$jscomp.defineProperty(e,c,{configurable:!0,writable:!0,value:n})))};$jscomp.initSymbol=function(){}; 19$jscomp.polyfill("Symbol",function(a){if(a)return a;var n=function(c,k){this.$jscomp$symbol$id_=c;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:k})};n.prototype.toString=function(){return this.$jscomp$symbol$id_};var h=0,e=function(c){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new n("jscomp_symbol_"+(c||"")+"_"+h++,c)};return e},"es6","es3"); 20$jscomp.polyfill("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),h=0;h<n.length;h++){var e=$jscomp.global[n[h]];"function"===typeof e&&"function"!=typeof e.prototype[a]&&$jscomp.defineProperty(e.prototype,a,{configurable:!0,writable:!0,value:function(){return $jscomp.iteratorPrototype($jscomp.arrayIteratorImpl(this))}})}return a},"es6", 21"es3");$jscomp.iteratorPrototype=function(a){a={next:a};a[Symbol.iterator]=function(){return this};return a};$jscomp.createTemplateTagFirstArg=function(a){return a.raw=a};$jscomp.createTemplateTagFirstArgWithRaw=function(a,n){a.raw=n;return a};$jscomp.makeIterator=function(a){var n="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return n?n.call(a):$jscomp.arrayIterator(a)};$jscomp.arrayFromIterator=function(a){for(var n,h=[];!(n=a.next()).done;)h.push(n.value);return h}; 22$jscomp.arrayFromIterable=function(a){return a instanceof Array?a:$jscomp.arrayFromIterator($jscomp.makeIterator(a))};$jscomp.objectCreate=$jscomp.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(a){var n=function(){};n.prototype=a;return new n}; 23$jscomp.getConstructImplementation=function(){function a(){function h(){}new h;Reflect.construct(h,[],function(){});return new h instanceof h}if($jscomp.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct){if(a())return Reflect.construct;var n=Reflect.construct;return function(h,e,c){h=n(h,e);c&&Reflect.setPrototypeOf(h,c.prototype);return h}}return function(h,e,c){void 0===c&&(c=h);
vendor: 7,205 bytes, lines 23-41
23c=$jscomp.objectCreate(c.prototype||Object.prototype);return Function.prototype.apply.call(h,c,e)|| 24c}};$jscomp.construct={valueOf:$jscomp.getConstructImplementation}.valueOf();$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},n={};try{return n.__proto__=a,n.a}catch(h){}return!1};$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,n){a.__proto__=n;if(a.__proto__!==n)throw new TypeError(a+" is not extensible");return a}:null; 25$jscomp.inherits=function(a,n){a.prototype=$jscomp.objectCreate(n.prototype);a.prototype.constructor=a;if($jscomp.setPrototypeOf){var h=$jscomp.setPrototypeOf;h(a,n)}else for(h in n)if("prototype"!=h)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(n,h);e&&Object.defineProperty(a,h,e)}else a[h]=n[h];a.superClass_=n.prototype};$jscomp.generator={}; 26$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null}; 27$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a}; 28$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,n){this.nextAddress=n;return{value:a}}; 29$jscomp.generator.Context.prototype.yieldAll=function(a,n){a=$jscomp.makeIterator(a);var h=a.next();$jscomp.generator.ensureIteratorResultIsObject_(h);if(h.done)this.yieldResult=h.value,this.nextAddress=n;else return this.yieldAllIterator_=a,this.yield(h.value,n)};$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0}; 30$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,n){this.catchAddress_=a;void 0!=n&&(this.finallyAddress_=n)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,n){this.nextAddress=a;this.catchAddress_=n||0}; 31$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,n,h){h?this.finallyContexts_[h]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=n||0}; 32$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,n){n=this.finallyContexts_.splice(n||0)[0];if(n=this.abruptCompletion_=this.abruptCompletion_||n){if(n.isException)return this.jumpToErrorHandler_();void 0!=n.jumpTo&&this.finallyAddress_<n.jumpTo?(this.nextAddress=n.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)}; 33$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var n in a)this.properties_.push(n);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a}; 34$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()}; 35$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var n=this.context_.yieldAllIterator_;if(n)return this.yieldAllStep_("return"in n?n["return"]:function(h){return{value:h,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()}; 36$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()}; 37$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,n,h){try{var e=a.call(this.context_.yieldAllIterator_,n);$jscomp.generator.ensureIteratorResultIsObject_(e);if(!e.done)return this.context_.stop_(),e;var c=e.value}catch(k){return this.context_.yieldAllIterator_=null,this.context_.throw_(k),this.nextStep_()}this.context_.yieldAllIterator_=null;h.call(this.context_,c);return this.nextStep_()}; 38$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(n){this.context_.yieldResult=void 0,this.context_.throw_(n)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}}; 39$jscomp.generator.Generator_=function(a){this.next=function(n){return a.next_(n)};this.throw=function(n){return a.throw_(n)};this.return=function(n){return a.return_(n)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,n){n=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(n));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(n,a.prototype);return n}; 40$jscomp.asyncExecutePromiseGenerator=function(a){function n(e){return a.next(e)}function h(e){return a.throw(e)}return new Promise(function(e,c){function k(l){l.done?e(l.value):Promise.resolve(l.value).then(n,h).then(k,c)}k(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))}; 41!function(a,n){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?n(a,!0):function(h){if(!h.document)throw Error("jQuery requires a window with a document");return n(h)}:n(a)}("undefined"!=typeof window?window:this,function(a,n){function h(d,m,q){var v,x,A=(q=q||Oa).createElement("script");
vendor: 14,043 bytes, lines 41-69
41if(A.text=d,m)for(v in gb)(x=m[v]||m.getAttribute&&m.getAttribute(v))&&A.setAttribute(v,x);q.head.appendChild(A).parentNode.removeChild(A)}function e(d){return null==d?d+"":"object"== 42typeof d||"function"==typeof d?Dc[lb.call(d)]||"object":typeof d}function c(d){var m=!!d&&"length"in d&&d.length,q=e(d);return!Ia(d)&&!gc(d)&&("array"===q||0===m||"number"==typeof m&&0<m&&m-1 in d)}function k(d,m){return d.nodeName&&d.nodeName.toLowerCase()===m.toLowerCase()}function l(d,m,q){return Ia(m)?u.grep(d,function(v,x){return!!m.call(v,x,v)!==q}):m.nodeType?u.grep(d,function(v){return v===m!==q}):"string"!=typeof m?u.grep(d,function(v){return-1<tc.call(m,v)!==q}):u.filter(m,d,q)}function f(d, 43m){for(;(d=d[m])&&1!==d.nodeType;);return d}function b(d){return d}function g(d){throw d;}function p(d,m,q,v){var x;try{d&&Ia(x=d.promise)?x.call(d).done(m).fail(q):d&&Ia(x=d.then)?x.call(d,m,q):m.apply(void 0,[d].slice(v))}catch(A){q.apply(void 0,[A])}}function r(){Oa.removeEventListener("DOMContentLoaded",r);a.removeEventListener("load",r);u.ready()}function t(d,m){return m.toUpperCase()}function w(d){return d.replace(ma,"ms-").replace(sa,t)}function y(){this.expando=u.expando+y.uid++}function C(d, 44m,q){var v,x;if(void 0===q&&1===d.nodeType)if(v="data-"+m.replace(Nb,"-$\x26").toLowerCase(),"string"==typeof(q=d.getAttribute(v))){try{q="true"===(x=q)||"false"!==x&&("null"===x?null:x===+x+""?+x:Zb.test(x)?JSON.parse(x):x)}catch(A){}Pa.set(d,m,q)}else q=void 0;return q}function E(d,m,q,v){var x,A,D=20,F=v?function(){return v.cur()}:function(){return u.css(d,m,"")},K=F(),S=q&&q[3]||(u.cssNumber[m]?"":"px"),Y=d.nodeType&&(u.cssNumber[m]||"px"!==S&&+K)&&kc.exec(u.css(d,m));if(Y&&Y[3]!==S){K/=2;S=S|| 45Y[3];for(Y=+K||1;D--;)u.style(d,m,Y+S),0>=(1-A)*(1-(A=F()/K||.5))&&(D=0),Y/=A;Y*=2;u.style(d,m,Y+S);q=q||[]}return q&&(Y=+Y||+K||0,x=q[1]?Y+(q[1]+1)*q[2]:+q[2],v&&(v.unit=S,v.start=Y,v.end=x)),x}function z(d,m){for(var q,v,x,A,D,F,K,S=[],Y=0,R=d.length;Y<R;Y++)(v=d[Y]).style&&(q=v.style.display,m?("none"===q&&(S[Y]=da.get(v,"display")||null,S[Y]||(v.style.display="")),""===v.style.display&&lc(v)&&(S[Y]=(K=D=A=void 0,D=(x=v).ownerDocument,F=x.nodeName,(K=Qb[F])||(A=D.body.appendChild(D.createElement(F)), 46K=u.css(A,"display"),A.parentNode.removeChild(A),"none"===K&&(K="block"),Qb[F]=K)))):"none"!==q&&(S[Y]="none",da.set(v,"display",q)));for(Y=0;Y<R;Y++)null!=S[Y]&&(d[Y].style.display=S[Y]);return d}function V(d,m){var q;return q="undefined"!=typeof d.getElementsByTagName?d.getElementsByTagName(m||"*"):"undefined"!=typeof d.querySelectorAll?d.querySelectorAll(m||"*"):[],void 0===m||m&&k(d,m)?u.merge([d],q):q}function ca(d,m){for(var q=0,v=d.length;q<v;q++)da.set(d[q],"globalEval",!m||da.get(m[q],"globalEval"))} 47function xa(d,m,q,v,x){for(var A,D,F,K,S=m.createDocumentFragment(),Y=[],R=0,pa=d.length;R<pa;R++)if((A=d[R])||0===A)if("object"===e(A))u.merge(Y,A.nodeType?[A]:A);else if(id.test(A)){D=D||S.appendChild(m.createElement("div"));F=(Cb.exec(A)||["",""])[1].toLowerCase();F=Rb[F]||Rb._default;D.innerHTML=F[1]+u.htmlPrefilter(A)+F[2];for(F=F[0];F--;)D=D.lastChild;u.merge(Y,D.childNodes);(D=S.firstChild).textContent=""}else Y.push(m.createTextNode(A));S.textContent="";for(R=0;A=Y[R++];)if(v&&-1<u.inArray(A, 48v))x&&x.push(A);else if(K=Ob(A),D=V(S.appendChild(A),"script"),K&&ca(D),q)for(F=0;A=D[F++];)Xc.test(A.type||"")&&q.push(A);return S}function ea(){return!0}function va(){return!1}function na(d,m){a:{try{var q=Oa.activeElement;break a}catch(v){}q=void 0}return d===q==("focus"===m)}function bb(d,m,q,v,x,A){var D,F;if("object"==typeof m){for(F in"string"!=typeof q&&(v=v||q,q=void 0),m)bb(d,F,q,v,m[F],A);return d}if(null==v&&null==x?(x=q,v=q=void 0):null==x&&("string"==typeof q?(x=v,v=void 0):(x=v,v=q, 49q=void 0)),!1===x)x=va;else if(!x)return d;return 1===A&&(D=x,(x=function(K){return u().off(K),D.apply(this,arguments)}).guid=D.guid||(D.guid=u.guid++)),d.each(function(){u.event.add(this,m,x,v,q)})}function cb(d,m,q){q?(da.set(d,m,!1),u.event.add(d,m,{namespace:!1,handler:function(v){var x,A,D=da.get(this,m);if(1&v.isTrigger&&this[m])if(D.length)(u.event.special[m]||{}).delegateType&&v.stopPropagation();else{if(D=Fb.call(arguments),da.set(this,m,D),x=q(this,m),this[m](),D!==(A=da.get(this,m))||x? 50da.set(this,m,!1):A={},D!==A)return v.stopImmediatePropagation(),v.preventDefault(),A.value}else D.length&&(da.set(this,m,{value:u.event.trigger(u.extend(D[0],u.Event.prototype),D.slice(1),this)}),v.stopImmediatePropagation())}})):void 0===da.get(d,m)&&u.event.add(d,m,ea)}function wa(d,m){return k(d,"table")&&k(11!==m.nodeType?m:m.firstChild,"tr")&&u(d).children("tbody")[0]||d}function Sa(d){return d.type=(null!==d.getAttribute("type"))+"/"+d.type,d}function Ja(d){return"true/"===(d.type||"").slice(0, 515)?d.type=d.type.slice(5):d.removeAttribute("type"),d}function M(d,m){var q,v,x,A,D,F;if(1===m.nodeType){if(da.hasData(d)&&(q=da.access(d),v=da.set(m,q),F=q.events))for(x in delete v.handle,v.events={},F)for(q=0,v=F[x].length;q<v;q++)u.event.add(m,x,F[x][q]);Pa.hasData(d)&&(A=Pa.access(d),D=u.extend({},A),Pa.set(m,D))}}function I(d,m,q,v){m=Tc.apply([],m);var x,A,D,F=0,K=d.length,S=K-1,Y=m[0],R=Ia(Y);if(R||1<K&&"string"==typeof Y&&!ab.checkClone&&xc.test(Y))return d.each(function(Ba){var za=d.eq(Ba); 52R&&(m[0]=Y.call(this,Ba,za.html()));I(za,m,q,v)});if(K&&(A=(x=xa(m,d[0].ownerDocument,!1,d,v)).firstChild,1===x.childNodes.length&&(x=A),A||v)){for(D=(A=u.map(V(x,"script"),Sa)).length;F<K;F++){var pa=x;F!==S&&(pa=u.clone(pa,!0,!0),D&&u.merge(A,V(pa,"script")));q.call(d[F],pa,F)}if(D)for(x=A[A.length-1].ownerDocument,u.map(A,Ja),F=0;F<D;F++)pa=A[F],Xc.test(pa.type||"")&&!da.access(pa,"globalEval")&&u.contains(x,pa)&&(pa.src&&"module"!==(pa.type||"").toLowerCase()?u._evalUrl&&!pa.noModule&&u._evalUrl(pa.src, 53{nonce:pa.nonce||pa.getAttribute("nonce")}):h(pa.textContent.replace(Yc,""),pa,x))}return d}function N(d,m,q){for(var v=m?u.filter(m,d):d,x=0;null!=(m=v[x]);x++)q||1!==m.nodeType||u.cleanData(V(m)),m.parentNode&&(q&&Ob(m)&&ca(V(m,"script")),m.parentNode.removeChild(m));return d}function T(d,m,q){var v,x,A,D,F=d.style;return(q=q||Ec(d))&&(""!==(D=q.getPropertyValue(m)||q[m])||Ob(d)||(D=u.style(d,m)),!ab.pixelBoxStyles()&&$b.test(D)&&jd.test(m)&&(v=F.width,x=F.minWidth,A=F.maxWidth,F.minWidth=F.maxWidth= 54F.width=D,D=q.width,F.width=v,F.minWidth=x,F.maxWidth=A)),void 0!==D?D+"":D}function Z(d,m){return{get:function(){if(!d())return(this.get=m).apply(this,arguments);delete this.get}}}function fa(d){var m;if(!(m=u.cssProps[d]||Sb[d])){if(!(d in Zc)){a:{m=d;for(var q=m[0].toUpperCase()+m.slice(1),v=$c.length;v--;)if((m=$c[v]+q)in Zc)break a;m=void 0}d=Sb[d]=m||d}m=d}return m}function qa(d,m,q){return(d=kc.exec(m))?Math.max(0,d[2]-(q||0))+(d[3]||"px"):m}function ua(d,m,q,v,x,A){var D="width"===m?1:0,F= 550,K=0;if(q===(v?"border":"content"))return 0;for(;4>D;D+=2)"margin"===q&&(K+=u.css(d,q+sb[D],!0,x)),v?("content"===q&&(K-=u.css(d,"padding"+sb[D],!0,x)),"margin"!==q&&(K-=u.css(d,"border"+sb[D]+"Width",!0,x))):(K+=u.css(d,"padding"+sb[D],!0,x),"padding"!==q?K+=u.css(d,"border"+sb[D]+"Width",!0,x):F+=u.css(d,"border"+sb[D]+"Width",!0,x));return!v&&0<=A&&(K+=Math.max(0,Math.ceil(d["offset"+m[0].toUpperCase()+m.slice(1)]-A-K-F-.5))||0),K}function ob(d,m,q){var v=Ec(d),x=(!ab.boxSizingReliable()||q)&& 56"border-box"===u.css(d,"boxSizing",!1,v),A=x,D=T(d,m,v),F="offset"+m[0].toUpperCase()+m.slice(1);if($b.test(D)){if(!q)return D;D="auto"}return(!ab.boxSizingReliable()&&x||"auto"===D||!parseFloat(D)&&"inline"===u.css(d,"display",!1,v))&&d.getClientRects().length&&(x="border-box"===u.css(d,"boxSizing",!1,v),(A=F in d)&&(D=d[F])),(D=parseFloat(D)||0)+ua(d,m,q||(x?"border":"content"),A,v,D)+"px"}function Ha(d,m,q,v,x){return new Ha.prototype.init(d,m,q,v,x)}function Ya(){mc&&(!1===Oa.hidden&&a.requestAnimationFrame? 57a.requestAnimationFrame(Ya):a.setTimeout(Ya,u.fx.interval),u.fx.tick())}function oa(){return a.setTimeout(function(){yc=void 0}),yc=Date.now()}function ib(d,m){var q,v=0,x={height:d};for(m=m?1:0;4>v;v+=2-m)x["margin"+(q=sb[v])]=x["padding"+q]=d;return m&&(x.opacity=x.width=d),x}function nc(d,m,q){for(var v,x=(Tb.tweeners[m]||[]).concat(Tb.tweeners["*"]),A=0,D=x.length;A<D;A++)if(v=x[A].call(q,m,d))return v}function Tb(d,m,q){var v,x=0,A=Tb.prefilters.length,D=u.Deferred().always(function(){delete F.elem}), 58F=function(){if(v)return!1;var S=yc||oa();S=Math.max(0,K.startTime+K.duration-S);for(var Y=1-(S/K.duration||0),R=0,pa=K.tweens.length;R<pa;R++)K.tweens[R].run(Y);return D.notifyWith(d,[K,Y,S]),1>Y&&pa?S:(pa||D.notifyWith(d,[K,1,0]),D.resolveWith(d,[K]),!1)},K=D.promise({elem:d,props:u.extend({},m),opts:u.extend(!0,{specialEasing:{},easing:u.easing._default},q),originalProperties:m,originalOptions:q,startTime:yc||oa(),duration:q.duration,tweens:[],createTween:function(S,Y){S=u.Tween(d,K.opts,S,Y,K.opts.specialEasing[S]|| 59K.opts.easing);return K.tweens.push(S),S},stop:function(S){var Y=0,R=S?K.tweens.length:0;if(v)return this;for(v=!0;Y<R;Y++)K.tweens[Y].run(1);return S?(D.notifyWith(d,[K,1,0]),D.resolveWith(d,[K,S])):D.rejectWith(d,[K,S]),this}});q=K.props;!function(S,Y){var R,pa,Ba,za,Va;for(R in S)if(Ba=Y[pa=w(R)],za=S[R],Array.isArray(za)&&(Ba=za[1],za=S[R]=za[0]),R!==pa&&(S[pa]=za,delete S[R]),(Va=u.cssHooks[pa])&&"expand"in Va)for(R in za=Va.expand(za),delete S[pa],za)R in S||(S[R]=za[R],Y[R]=Ba);else Y[pa]= 60Ba}(q,K.opts.specialEasing);for(;x<A;x++)if(m=Tb.prefilters[x].call(K,d,q,K.opts))return Ia(m.stop)&&(u._queueHooks(K.elem,K.opts.queue).stop=m.stop.bind(m)),m;return u.map(q,nc,K),Ia(K.opts.start)&&K.opts.start.call(d,K),K.progress(K.opts.progress).done(K.opts.done,K.opts.complete).fail(K.opts.fail).always(K.opts.always),u.fx.timer(u.extend(F,{elem:d,anim:K,queue:K.opts.queue})),K}function pb(d){return(d.match(L)||[]).join(" ")}function Za(d){return d.getAttribute&&d.getAttribute("class")||""}function Aa(d){return Array.isArray(d)? 61d:"string"==typeof d&&d.match(L)||[]}function Q(d,m,q,v){var x;if(Array.isArray(m))u.each(m,function(A,D){q||Db.test(d)?v(d,D):Q(d+"["+("object"==typeof D&&null!=D?A:"")+"]",D,q,v)});else if(q||"object"!==e(m))v(d,m);else for(x in m)Q(d+"["+x+"]",m[x],q,v)}function zc(d){return function(m,q){"string"!=typeof m&&(q=m,m="*");var v=0,x=m.toLowerCase().match(L)||[];if(Ia(q))for(;m=x[v++];)"+"===m[0]?(m=m.slice(1)||"*",(d[m]=d[m]||[]).unshift(q)):(d[m]=d[m]||[]).push(q)}}function Uc(d,m,q,v){function x(F){var K; 62return A[F]=!0,u.each(d[F]||[],function(S,Y){S=Y(m,q,v);return"string"!=typeof S||D||A[S]?D?!(K=S):void 0:(m.dataTypes.unshift(S),x(S),!1)}),K}var A={},D=d===qd;return x(m.dataTypes[0])||!A["*"]&&x("*")}function rb(d,m){var q,v,x=u.ajaxSettings.flatOptions||{};for(q in m)void 0!==m[q]&&((x[q]?d:v||(v={}))[q]=m[q]);return v&&u.extend(!0,d,v),d}var eb=[],Oa=a.document,oc=Object.getPrototypeOf,Fb=eb.slice,Tc=eb.concat,hc=eb.push,tc=eb.indexOf,Dc={},lb=Dc.toString,Xb=Dc.hasOwnProperty,pc=Xb.toString, 63Fc=pc.call(Object),ab={},Ia=function(d){return"function"==typeof d&&"number"!=typeof d.nodeType},gc=function(d){return null!=d&&d===d.window},gb={type:!0,src:!0,nonce:!0,noModule:!0},u=function(d,m){return new u.fn.init(d,m)},Ab=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;u.fn=u.prototype={jquery:"3.4.1",constructor:u,length:0,toArray:function(){return Fb.call(this)},get:function(d){return null==d?Fb.call(this):0>d?this[d+this.length]:this[d]},pushStack:function(d){d=u.merge(this.constructor(),d);return d.prevObject= 64this,d},each:function(d){return u.each(this,d)},map:function(d){return this.pushStack(u.map(this,function(m,q){return d.call(m,q,m)}))},slice:function(){return this.pushStack(Fb.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(d){var m=this.length;d=+d+(0>d?m:0);return this.pushStack(0<=d&&d<m?[this[d]]:[])},end:function(){return this.prevObject||this.constructor()},push:hc,sort:eb.sort,splice:eb.splice};u.extend=u.fn.extend=function(){var d, 65m,q,v,x,A=arguments[0]||{},D=1,F=arguments.length,K=!1;"boolean"==typeof A&&(K=A,A=arguments[D]||{},D++);"object"==typeof A||Ia(A)||(A={});for(D===F&&(A=this,D--);D<F;D++)if(null!=(d=arguments[D]))for(m in d){var S=d[m];"__proto__"!==m&&A!==S&&(K&&S&&(u.isPlainObject(S)||(v=Array.isArray(S)))?(q=A[m],x=v&&!Array.isArray(q)?[]:v||u.isPlainObject(q)?q:{},v=!1,A[m]=u.extend(K,x,S)):void 0!==S&&(A[m]=S))}return A};u.extend({expando:"jQuery"+("3.4.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(d){throw Error(d); 66},noop:function(){},isPlainObject:function(d){var m,q;return!(!d||"[object Object]"!==lb.call(d))&&(!(m=oc(d))||"function"==typeof(q=Xb.call(m,"constructor")&&m.constructor)&&pc.call(q)===Fc)},isEmptyObject:function(d){for(var m in d)return!1;return!0},globalEval:function(d,m){h(d,{nonce:m&&m.nonce})},each:function(d,m){var q,v=0;if(c(d))for(q=d.length;v<q&&!1!==m.call(d[v],v,d[v]);v++);else for(v in d)if(!1===m.call(d[v],v,d[v]))break;return d},trim:function(d){return null==d?"":(d+"").replace(Ab, 67"")},makeArray:function(d,m){m=m||[];return null!=d&&(c(Object(d))?u.merge(m,"string"==typeof d?[d]:d):hc.call(m,d)),m},inArray:function(d,m,q){return null==m?-1:tc.call(m,d,q)},merge:function(d,m){for(var q=+m.length,v=0,x=d.length;v<q;v++)d[x++]=m[v];return d.length=x,d},grep:function(d,m,q){var v=[],x=0,A=d.length;for(q=!q;x<A;x++)!m(d[x],x)!==q&&v.push(d[x]);return v},map:function(d,m,q){var v,x,A=0,D=[];if(c(d))for(v=d.length;A<v;A++)null!=(x=m(d[A],A,q))&&D.push(x);else for(A in d)null!=(x= 68m(d[A],A,q))&&D.push(x);return Tc.apply([],D)},guid:1,support:ab});"function"==typeof Symbol&&(u.fn[Symbol.iterator]=eb[Symbol.iterator]);u.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(d,m){Dc["[object "+m+"]"]=m.toLowerCase()});var ec=function(d){function m(B,G,O,P){var W,ja,ha,Da;var ia=G&&G.ownerDocument;var Ga=G?G.nodeType:9;if(O=O||[],"string"!=typeof B||!B||1!==Ga&&9!==Ga&&11!==Ga)return O;if(!P&&((G?G.ownerDocument||G:xb)!==Ta&&ac(G),G=G|| 69Ta,tb)){if(11!==Ga&&(Da=Id.exec(B)))if(W=Da[1])if(9===Ga){if(!(ja=G.getElementById(W)))return O;
69if(ja.id===W)return O.push(ja),O}else{if(ia&&(ja=ia.getElementById(W))&&hb(G,ja)&&ja.id===W)return O.push(ja),O}else{if(Da[2])return Gc.apply(O,G.getElementsByTagName(B)),O;if((W=Da[3])&&Ca.getElementsByClassName&&G.getElementsByClassName)return Gc.apply(O,G.getElementsByClassName(W)),O}if(!(!Ca.qsa||kd[B+" "]||ub&&ub.test(B)||1===Ga&&"object"===G.nodeName.toLowerCase())){if(W=B,ia=G,1===Ga&&Jd.test(B)){(ha= 70G.getAttribute("id"))?ha=ha.replace(xd,yd):G.setAttribute("id",ha=Qa);for(ia=(Ga=Hc(B)).length;ia--;)Ga[ia]="#"+ha+" "+Ba(Ga[ia]);W=Ga.join(",");ia=rd.test(B)&&R(G.parentNode)||G}try{return Gc.apply(O,ia.querySelectorAll(W)),O}catch(Wa){kd(B,!0)}finally{ha===Qa&&G.removeAttribute("id")}}}return uc(B.replace(ld,"$1"),G,O,P)}function q(){var B=[];return function W(O,P){return B.push(O+" ")>Ma.cacheLength&&delete W[B.shift()],W[O+" "]=P}}function v(B){return B[Qa]=!0,B}function x(B){var G=Ta.createElement("fieldset"); 71try{return!!B(G)}catch(O){return!1}finally{G.parentNode&&G.parentNode.removeChild(G)}}function A(B,G){B=B.split("|");for(var O=B.length;O--;)Ma.attrHandle[B[O]]=G}function D(B,G){var O=G&&B,P=O&&1===B.nodeType&&1===G.nodeType&&B.sourceIndex-G.sourceIndex;if(P)return P;if(O)for(;O=O.nextSibling;)if(O===G)return-1;return B?1:-1}function F(B){return function(G){return"input"===G.nodeName.toLowerCase()&&G.type===B}}function K(B){return function(G){var O=G.nodeName.toLowerCase();return("input"===O||"button"=== 72O)&&G.type===B}}function S(B){return function(G){return"form"in G?G.parentNode&&!1===G.disabled?"label"in G?"label"in G.parentNode?G.parentNode.disabled===B:G.disabled===B:G.isDisabled===B||G.isDisabled!==!B&&Kd(G)===B:G.disabled===B:"label"in G&&G.disabled===B}}function Y(B){return v(function(G){return G=+G,v(function(O,P){for(var W,ja=B([],O.length,G),ha=ja.length;ha--;)O[W=ja[ha]]&&(O[W]=!(P[W]=O[W]))})})}function R(B){return B&&"undefined"!=typeof B.getElementsByTagName&&B}function pa(){}function Ba(B){for(var G= 730,O=B.length,P="";G<O;G++)P+=B[G].value;return P}function za(B,G,O){var P=G.dir,W=G.next,ja=W||P,ha=O&&"parentNode"===ja,Da=vc++;return G.first?function(ia,Ga,Wa){for(;ia=ia[P];)if(1===ia.nodeType||ha)return B(ia,Ga,Wa);return!1}:function(ia,Ga,Wa){var yb,vb,Ra,$a=[jb,Da];if(Wa)for(;ia=ia[P];){if((1===ia.nodeType||ha)&&B(ia,Ga,Wa))return!0}else for(;ia=ia[P];)if(1===ia.nodeType||ha)if(vb=(Ra=ia[Qa]||(ia[Qa]={}))[ia.uniqueID]||(Ra[ia.uniqueID]={}),W&&W===ia.nodeName.toLowerCase())ia=ia[P]||ia;else{if((yb= 74vb[ja])&&yb[0]===jb&&yb[1]===Da)return $a[2]=yb[2];if((vb[ja]=$a)[2]=B(ia,Ga,Wa))return!0}return!1}}function Va(B){return 1<B.length?function(G,O,P){for(var W=B.length;W--;)if(!B[W](G,O,P))return!1;return!0}:B[0]}function kb(B,G,O,P,W){for(var ja,ha=[],Da=0,ia=B.length,Ga=null!=G;Da<ia;Da++)(ja=B[Da])&&(O&&!O(ja,P,W)||(ha.push(ja),Ga&&G.push(Da)));return ha}function qc(B,G,O,P,W,ja){return P&&!P[Qa]&&(P=qc(P)),W&&!W[Qa]&&(W=qc(W,ja)),v(function(ha,Da,ia,Ga){var Wa,yb=[],vb=[],Ra=Da.length,$a;if(!($a= 75ha)){$a=G||"*";for(var fb=ia.nodeType?[ia]:ia,rc=[],Mb=0,Gb=fb.length;Mb<Gb;Mb++)m($a,fb[Mb],rc);$a=rc}$a=!B||!ha&&G?$a:kb($a,yb,B,ia,Ga);fb=O?W||(ha?B:Ra||P)?[]:Da:$a;if(O&&O($a,fb,ia,Ga),P){var zb=kb(fb,vb);P(zb,[],ia,Ga);for(ia=zb.length;ia--;)(Wa=zb[ia])&&(fb[vb[ia]]=!($a[vb[ia]]=Wa))}if(ha){if(W||B){if(W){zb=[];for(ia=fb.length;ia--;)(Wa=fb[ia])&&zb.push($a[ia]=Wa);W(null,fb=[],zb,Ga)}for(ia=fb.length;ia--;)(Wa=fb[ia])&&-1<(zb=W?Lc(ha,Wa):yb[ia])&&(ha[zb]=!(Da[zb]=Wa))}}else fb=kb(fb===Da?fb.splice(Ra, 76fb.length):fb),W?W(null,Da,fb,Ga):Gc.apply(Da,fb)})}function Hb(B){var G,O,P=B.length,W=Ma.relative[B[0].type];var ja=W||Ma.relative[" "];for(var ha=W?1:0,Da=za(function(Wa){return Wa===G},ja,!0),ia=za(function(Wa){return-1<Lc(G,Wa)},ja,!0),Ga=[function(Wa,yb,vb){Wa=!W&&(vb||yb!==Ic)||((G=yb).nodeType?Da(Wa,yb,vb):ia(Wa,yb,vb));return G=null,Wa}];ha<P;ha++)if(ja=Ma.relative[B[ha].type])Ga=[za(Va(Ga),ja)];else{if((ja=Ma.filter[B[ha].type].apply(null,B[ha].matches))[Qa]){for(O=++ha;O<P&&!Ma.relative[B[O].type];O++); 77return qc(1<ha&&Va(Ga),1<ha&&Ba(B.slice(0,ha-1).concat({value:" "===B[ha-2].type?"*":""})).replace(ld,"$1"),ja,ha<O&&Hb(B.slice(ha,O)),O<P&&Hb(B=B.slice(O)),O<P&&Ba(B))}Ga.push(ja)}return Va(Ga)}var bc,Ca,Ma,Xa,Eb,Hc,ad,uc,Ic,cc,dc,ac,Ta,mb,tb,ub,Yb,Ib,hb,Qa="sizzle"+1*ne
77w Date,xb=d.document,jb=0,vc=0,Mc=q(),md=q(),zd=q(),kd=q(),sd=function(B,G){return B===G&&(dc=!0),0},Ld={}.hasOwnProperty,Nc=[],Md=Nc.pop,Nd=Nc.push,Gc=Nc.push,Ad=Nc.slice,Lc=function(B,G){for(var O=0,P=B.length;O<P;O++)if(B[O]=== 78G)return O;return-1},Od=/[\x20\t\r\n\f]+/g,ld=/^[\x20\t\r\n\f]+|((?:^|[^\\])(?:\\.)*)[\x20\t\r\n\f]+$/g,Pd=/^[\x20\t\r\n\f]*,[\x20\t\r\n\f]*/,Qd=/^[\x20\t\r\n\f]*([>+~]|[\x20\t\r\n\f])[\x20\t\r\n\f]*/,Jd=/[\x20\t\r\n\f]|>/,Rd=/:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/, 79Sd=/^(?:\\.|[\w-]|[^\x00-\xa0])+$/,nd={ID:/^#((?:\\.|[\w-]|[^\x00-\xa0])+)/,CLASS:/^\.((?:\\.|[\w-]|[^\x00-\xa0])+)/,TAG:/^((?:\\.|[\w-]|[^\x00-\xa0])+|[*])/,ATTR:/^\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\]/,PSEUDO:/^:((?:\\.|[\w-]|[^\x00-\xa0])+)(?:\((('((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|\[[\x20\t\r\n\f]*((?:\\.|[\w-]|[^\x00-\xa0])+)(?:[\x20\t\r\n\f]*([*^$|!~]?=)[\x20\t\r\n\f]*(?:'((?:\\.|[^\\'])*)'|"((?:\\.|[^\\"])*)"|((?:\\.|[\w-]|[^\x00-\xa0])+))|)[\x20\t\r\n\f]*\])*)|.*)\)|)/, 80CHILD:/^:(only|first|last|nth|nth-last)-(child|of-type)(?:\([\x20\t\r\n\f]*(even|odd|(([+-]|)(\d*)n|)[\x20\t\r\n\f]*(?:([+-]|)[\x20\t\r\n\f]*(\d+)|))[\x20\t\r\n\f]*\)|)/i,bool:/^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i,needsContext:/^[\x20\t\r\n\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\([\x20\t\r\n\f]*((?:-\d)?\d*)[\x20\t\r\n\f]*\)|)(?=[^-]|$)/i},Td=/HTML$/i,Ud=/^(?:input|select|textarea|button)$/i,Vd= 81/^h\d$/i,bd=/^[^{]+\{\s*\[native \w/,Id=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rd=/[+~]/,Ac=/\\([\da-f]{1,6}[\x20\t\r\n\f]?|([\x20\t\r\n\f])|.)/ig,Bc=function(B,G,O){B="0x"+G-65536;return B!=B||O?G:0>B?String.fromCharCode(B+65536):String.fromCharCode(B>>10|55296,1023&B|56320)},xd=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,yd=function(B,G){return G?"\x00"===B?"\ufffd":B.slice(0,-1)+"\\"+B.charCo
81deAt(B.length-1).toString(16)+" ":"\\"+B},Bd=function(){ac()},Kd=za(function(B){return!0===B.disabled&& 82"fieldset"===B.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{Gc.apply(Nc=Ad.call(xb.childNodes),xb.childNodes),Nc[xb.childNodes.length].nodeType}catch(B){Gc={apply:Nc.length?function(G,O){Nd.apply(G,Ad.call(O))}:function(G,O){for(var P=G.length,W=0;G[P++]=O[W++];);G.length=P-1}}}for(bc in Ca=m.support={},Eb=m.isXML=function(B){var G=(B.ownerDocument||B).documentElement;return!Td.test(B.namespaceURI||G&&G.nodeName||"HTML")},ac=m.setDocument=function(B){var G,O;B=B?B.ownerDocument|| 83B:xb;return B!==Ta&&9===B.nodeType&&B.documentElement&&(mb=(Ta=B).documentElement,tb=!Eb(Ta),xb!==Ta&&(O=Ta.defaultView)&&O.top!==O&&(O.addEventListener?O.addEventListener("unload",Bd,!1):O.attachEvent&&O.attachEvent("onunload",Bd)),Ca.attributes=x(function(P){return P.className="i",!P.getAttribute("className")}),Ca.getElementsByTagName=x(function(P){return P.appendChild(Ta.createComment("")),!P.getElementsByTagName("*").length}),Ca.getElementsByClassName=bd.test(Ta.getElementsByClassName),Ca.getById= 84x(function(P){return mb.appendChild(P).id=Qa,!Ta.getElementsByName||!Ta.getElementsByName(Qa).length}),Ca.getById?(Ma.filter.ID=function(P){var W=P.replace(Ac,Bc);return function(ja){return ja.getAttribute("id")===W}},Ma.find.ID=function(P,W){if("undefined"!=typeof W.getElementById&&tb)return(P=W.getElementById(P))?[P]:[]}):(Ma.filter.ID=function(P){var W=P.replace(Ac,Bc);return function(ja){return(ja="undefined"!=typeof ja.getAttributeNode&&ja.getAttributeNode("id"))&&ja.value===W}},Ma.find.ID=function(P, 85W){if("undefined"!=typeof W.getElementById&&tb){var ja,ha=W.getElementById(P);if(ha){if((ja=ha.getAttributeNode("id"))&&ja.value===P)return[ha];var Da=W.getElementsByName(P);for(W=0;ha=Da[W++];)if((ja=ha.getAttributeNode("id"))&&ja.value===P)return[ha]}return[]}}),Ma.find.TAG=Ca.getElementsByTagName?function(P,W){return"undefined"!=typeof W.getElementsByTagName?W.getElementsByTagName(P):Ca.qsa?W.querySelectorAll(P):void 0}:function(P,W){var ja=[],ha=0;W=W.getElementsByTagName(P);if("*"===P){for(;P= 86W[ha++];)1===P.nodeType&&ja.push(P);return ja}return W},Ma.find.CLASS=Ca.getElementsByClassName&&function(P,W){if("undefined"!=typeof W.getElementsByClassName&&tb)return W.getElementsByClassName(P)},Yb=[],ub=[],(Ca.qsa=bd.test(Ta.querySelectorAll))&&(x(function(P){mb.appendChild(P).innerHTML="\x3ca id\x3d'"+Qa+"'\x3e\x3c/a\x3e\x3cselect id\x3d'"+Qa+"-\r\\' msallowcapture\x3d''\x3e\x3coption selected\x3d''\x3e\x3c/option\x3e\x3c/select\x3e";P.querySelectorAll("[msallowcapture^\x3d'']").length&&ub.push("[*^$]\x3d[\\x20\\t\\r\\n\\f]*(?:''|\"\")"); 87P.querySelectorAll("[selected]").length||ub.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)");P.querySelectorAll("[id~\x3d"+Qa+"-]").length||ub.push("~\x3d");P.querySelectorAll(":checked").length||ub.push(":checked");P.querySelectorAll("a#"+Qa+"+*").length||ub.push(".#.+[+~]")}),x(function(P){P.innerHTML="\x3ca href\x3d'' disabled\x3d'disabled'\x3e\x3c/a\x3e\x3cselect disabled\x3d'disabled'\x3e\x3coption/\x3e\x3c/select\x3e"; 88var W=Ta.createElement("input");W.setAttribute("type","hidden");P.appendChild(W).setAttribute("name","D");P.querySelectorAll("[name\x3dd]").length&&ub.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?\x3d");2!==P.querySelectorAll(":enabled").length&&ub.push(":enabled",":disabled");mb.appendChild(P).disabled=!0;2!==P.querySelectorAll(":disabled").length&&ub.push(":enabled",":disabled");P.querySelectorAll("*,:x");ub.push(",.*:")})),(Ca.matchesSelector=bd.test(Ib=mb.matches||mb.webkitMatchesSelector||mb.mozMatchesSelector|| 89mb.oMatchesSelector||mb.msMatchesSelector))&&x(function(P){Ca.disconnectedMatch=Ib.call(P,"*");Ib.call(P,"[s!\x3d'']:x");Yb.push("!\x3d",":((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|\\[[\\x20\\t\\r\\n\\f]*((?:\\\\.|[\\w-]|[^\x00-\\xa0])+)(?:[\\x20\\t\\r\\n\\f]*([*^$|!~]?\x3d)[\\x20\\t\\r\\n\\f]*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|((?
vendor: 9,668 bytes, lines 89-108
89:\\\\.|[\\w-]|[^\x00-\\xa0])+))|)[\\x20\\t\\r\\n\\f]*\\])*)|.*)\\)|)")}),ub= 90ub.length&&new RegExp(ub.join("|")),Yb=Yb.length&&new RegExp(Yb.join("|")),G=bd.test(mb.compareDocumentPosition),hb=G||bd.test(mb.contains)?function(P,W){var ja=9===P.nodeType?P.documentElement:P;W=W&&W.parentNode;return P===W||!(!W||1!==W.nodeType||!(ja.contains?ja.contains(W):P.compareDocumentPosition&&16&P.compareDocumentPosition(W)))}:function(P,W){if(W)for(;W=W.parentNode;)if(W===P)return!0;return!1},sd=G?function(P,W){if(P===W)return dc=!0,0;var ja=!P.compareDocumentPosition-!W.compareDocumentPosition; 91return ja||(1&(ja=(P.ownerDocument||P)===(W.ownerDocument||W)?P.compareDocumentPosition(W):1)||!Ca.sortDetached&&W.compareDocumentPosition(P)===ja?P===Ta||P.ownerDocument===xb&&hb(xb,P)?-1:W===Ta||W.ownerDocument===xb&&hb(xb,W)?1:cc?Lc(cc,P)-Lc(cc,W):0:4&ja?-1:1)}:function(P,W){if(P===W)return dc=!0,0;var ja=0,ha=P.parentNode,Da=W.parentNode,ia=[P],Ga=[W];if(!ha||!Da)return P===Ta?-1:W===Ta?1:ha?-1:Da?1:cc?Lc(cc,P)-Lc(cc,W):0;if(ha===Da)return D(P,W);for(;P=P.parentNode;)ia.unshift(P);for(P=W;P=P.parentNode;)Ga.unshift(P); 92for(;ia[ja]===Ga[ja];)ja++;return ja?D(ia[ja],Ga[ja]):ia[ja]===xb?-1:Ga[ja]===xb?1:0}),Ta},m.matches=function(B,G){return m(B,null,null,G)},m.matchesSelector=function(B,G){if((B.ownerDocument||B)!==Ta&&ac(B),!(!Ca.matchesSelector||!tb||kd[G+" "]||Yb&&Yb.test(G)||ub&&ub.test(G)))try{var O=Ib.call(B,G);if(O||Ca.disconnectedMatch||B.document&&11!==B.document.nodeType)return O}catch(P){kd(G,!0)}return 0<m(G,Ta,null,[B]).length},m.contains=function(B,G){return(B.ownerDocument||B)!==Ta&&ac(B),hb(B,G)}, 93m.attr=function(B,G){(B.ownerDocument||B)!==Ta&&ac(B);var O=Ma.attrHandle[G.toLowerCase()];O=O&&Ld.call(Ma.attrHandle,G.toLowerCase())?O(B,G,!tb):void 0;return void 0!==O?O:Ca.attributes||!tb?B.getAttribute(G):(O=B.getAttributeNode(G))&&O.specified?O.value:null},m.escape=function(B){return(B+"").replace(xd,yd)},m.error=function(B){throw Error("Syntax error, unrecognized expression: "+B);},m.uniqueSort=function(B){var G,O=[],P=0,W=0;if(dc=!Ca.detectDuplicates,cc=!Ca.sortStable&&B.slice(0),B.sort(sd), 94dc){for(;G=B[W++];)G===B[W]&&(P=O.push(W));for(;P--;)B.splice(O[P],1)}return cc=null,B},Xa=m.getText=function(B){var G,O="",P=0;if(G=B.nodeType)if(1===G||9===G||11===G){if("string"==typeof B.textContent)return B.textContent;for(B=B.firstChild;B;B=B.nextSibling)O+=Xa(B)}else{if(3===G||4===G)return B.nodeValue}else for(;G=B[P++];)O+=Xa(G);return O},(Ma=m.selectors={cacheLength:50,createPseudo:v,match:nd,attrHandle:{},find:{},relative:{"\x3e":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling", 95first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(B){return B[1]=B[1].replace(Ac,Bc),B[3]=(B[3]||B[4]||B[5]||"").replace(Ac,Bc),"~\x3d"===B[2]&&(B[3]=" "+B[3]+" "),B.slice(0,4)},CHILD:function(B){return B[1]=B[1].toLowerCase(),"nth"===B[1].slice(0,3)?(B[3]||m.error(B[0]),B[4]=+(B[4]?B[5]+(B[6]||1):2*("even"===B[3]||"odd"===B[3])),B[5]=+(B[7]+B[8]||"odd"===B[3])):B[3]&&m.error(B[0]),B},PSEUDO:function(B){var G,O=!B[6]&&B[2];return nd.CHILD.test(B[0])?null:(B[3]?B[2]=B[4]||B[5]||"":O&& 96Rd.test(O)&&(G=Hc(O,!0))&&(G=O.indexOf(")",O.length-G)-O.length)&&(B[0]=B[0].slice(0,G),B[2]=O.slice(0,G)),B.slice(0,3))}},filter:{TAG:function(B){var G=B.replace(Ac,Bc).toLowerCase();return"*"===B?function(){return!0}:function(O){return O.nodeName&&O.nodeName.toLowerCase()===G}},CLASS:function(B){var G=Mc[B+" "];return G||(G=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+B+"([\\x20\\t\\r\\n\\f]|$)"),Mc(B,function(O){return G.test("string"==typeof O.className&&O.className||"undefined"!=typeof O.getAttribute&& 97O.getAttribute("class")||"")}))},ATTR:function(B,G,O){return function(P){P=m.attr(P,B);return null==P?"!\x3d"===G:!G||(P+="","\x3d"===G?P===O:"!\x3d"===G?P!==O:"^\x3d"===G?O&&0===P.indexOf(O):"*\x3d"===G?O&&-1<P.indexOf(O):"$\x3d"===G?O&&P.slice(-O.length)===O:"~\x3d"===G?-1<(" "+P.replace(Od," ")+" ").indexOf(O):"|\x3d"===G&&(P===O||P.slice(0,O.length+1)===O+"-"))}},CHILD:function(B,G,O,P,W){var ja="nth"!==B.slice(0,3),ha="last"!==B.slice(-4),Da="of-type"===G;return 1===P&&0===W?function(ia){return!!ia.parentNode}: 98function(ia,Ga,Wa){var yb,vb,Ra,$a;Ga=ja!==ha?"nextSibling":"previousSibling";var fb=ia.parentNode,rc=Da&&ia.nodeName.toLowerCase(),Mb=!Wa&&!Da,Gb=!1;if(fb){if(ja){for(;Ga;){for(Ra=ia;Ra=Ra[Ga];)if(Da?Ra.nodeName.toLowerCase()===rc:1===Ra.nodeType)return!1;var zb=Ga="only"===B&&!zb&&"nextSibling"}return!0}if(zb=[ha?fb.firstChild:fb.lastChild],ha&&Mb)for(Gb=($a=(yb=(Wa=(vb=(Ra=fb)[Qa]||(Ra[Qa]={}))[Ra.uniqueID]||(vb[Ra.uniqueID]={}))[B]||[])[0]===jb&&yb[1])&&yb[2],Ra=$a&&fb.childNodes[$a];Ra=++$a&& 99Ra&&Ra[Ga]||(Gb=$a=0)||zb.pop();){if(1===Ra.nodeType&&++Gb&&Ra===ia){Wa[B]=[jb,$a,Gb];break}}else if(Mb&&(Gb=$a=(yb=((vb=(Ra=ia)[Qa]||(Ra[Qa]={}))[Ra.uniqueID]||(vb[Ra.uniqueID]={}))[B]||[])[0]===jb&&yb[1]),!1===Gb)for(;(Ra=++$a&&Ra&&Ra[Ga]||(Gb=$a=0)||zb.pop())&&((Da?Ra.nodeName.toLowerCase()!==rc:1!==Ra.nodeType)||!++Gb||(Mb&&((Wa=(vb=Ra[Qa]||(Ra[Qa]={}))[Ra.uniqueID]||(vb[Ra.uniqueID]={}))[B]=[jb,Gb]),Ra!==ia)););return(Gb-=W)===P||0==Gb%P&&0<=Gb/P}}},PSEUDO:function(B,G){var O,P=Ma.pseudos[B]|| 100Ma.setFilters[B.toLowerCase()]||m.error("unsupported pseudo: "+B);return P[Qa]?P(G):1<P.length?(O=[B,B,"",G],Ma.setFilters.hasOwnProperty(B.toLowerCase())?v(function(W,ja){for(var ha,Da=P(W,G),ia=Da.length;ia--;)W[ha=Lc(W,Da[ia])]=!(ja[ha]=Da[ia])}):function(W){return P(W,0,O)}):P}},pseudos:{not:v(function(B){var G=[],O=[],P=ad(B.replace(ld,"$1"));return P[Qa]?v(function(W,ja,ha,Da){var ia;ha=P(W,null,Da,[]);for(Da=W.length;Da--;)(ia=ha[Da])&&(W[Da]=!(ja[Da]=ia))}):function(W,ja,ha){return G[0]=W, 101P(G,null,ha,O),G[0]=null,!O.pop()}}),has:v(function(B){return function(G){return 0<m(B,G).length}}),contains:v(function(B){return B=B.replace(Ac,Bc),function(G){return-1<(G.textContent||Xa(G)).indexOf(B)}}),lang:v(function(B){return Sd.test(B||"")||m.error("unsupported lang: "+B),B=B.replace(Ac,Bc).toLowerCase(),function(G){var O;do if(O=tb?G.lang:G.getAttribute("xml:lang")||G.getAttribute("lang"))return(O=O.toLowerCase())===B||0===O.indexOf(B+"-");while((G=G.parentNode)&&1===G.nodeType);return!1}}), 102target:function(B){var G=d.location&&d.location.hash;return G&&G.slice(1)===B.id},root:function(B){return B===mb},focus:function(B){return B===Ta.activeElement&&(!Ta.hasFocus||Ta.hasFocus())&&!!(B.type||B.href||~B.tabIndex)},enabled:S(!1),disabled:S(!0),checked:function(B){var G=B.nodeName.toLowerCase();return"input"===G&&!!B.checked||"option"===G&&!!B.selected},selected:function(B){return B.parentNode&&B.parentNode.selectedIndex,!0===B.selected},empty:function(B){for(B=B.firstChild;B;B=B.nextSibling)if(6> 103B.nodeType)return!1;return!0},parent:function(B){return!Ma.pseudos.empty(B)},header:function(B){return Vd.test(B.nodeName)},input:function(B){return Ud.test(B.nodeName)},button:function(B){var G=B.nodeName.toLowerCase();return"input"===G&&"button"===B.type||"button"===G},text:function(B){var G;return"input"===B.nodeName.toLowerCase()&&"text"===B.type&&(null==(G=B.getAttribute("type"))||"text"===G.toLowerCase())},first:Y(function(){return[0]}),last:Y(function(B,G){return[G-1]}),eq:Y(function(B,G,O){return[0> 104O?O+G:O]}),even:Y(function(B,G){for(var O=0;O<G;O+=2)B.push(O);return B}),odd:Y(function(B,G){for(var O=1;O<G;O+=2)B.push(O);return B}),lt:Y(function(B,G,O){for(G=0>O?O+G:G<O?G:O;0<=--G;)B.push(G);return B}),gt:Y(function(B,G,O){for(O=0>O?O+G:O;++O<G;)B.push(O);return B})}}).pseudos.nth=Ma.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})Ma.pseudos[bc]=F(bc);for(bc in{submit:!0,reset:!0})Ma.pseudos[bc]=K(bc);return pa.prototype=Ma.filters=Ma.pseudos,Ma.setFilters=new pa,Hc=m.tokenize= 105function(B,G){var O,P,W,ja,ha,Da;if(ha=md[B+" "])return G?0:ha.slice(0);ha=B;var ia=[];for(Da=Ma.preFilter;ha;){for(ja in O&&!(P=Pd.exec(ha))||(P&&(ha=ha.slice(P[0].length)||ha),ia.push(W=[])),O=!1,(P=Qd.exec(ha))&&(O=P.shift(),W.push({value:O,type:P[0].replace(ld," ")}),ha=ha.slice(O.length)),Ma.filter)!(P=nd[ja].exec(ha))||Da[ja]&&!(P=Da[ja](P))||(O=P.shift(),W.push({value:O,type:ja,matches:P}),ha=ha.slice(O.length));if(!O)break}return G?ha.length:ha?m.error(B):md(B,ia).slice(0)},ad=m.compile=function(B, 106G){var O,P,W,ja,ha=[],Da=[],ia=zd[B+" "];if(!ia){G||(G=Hc(B));for(O=G.length;O--;)(ia=Hb(G[O]))[Qa]?ha.push(ia):Da.push(ia);(ia=zd(B,(P=0<ha.length,W=0<Da.length,ja=function(Ga,Wa,yb,vb,Ra){var $a,fb,rc=0,Mb="0",Gb=Ga&&[],zb=[],Cd=Ic,Dd=Ga||W&&Ma.find.TAG("*",Ra),Ed=jb+=null==Cd?1:Math.random()||.1,Wd=Dd.length;for(Ra&&(Ic=Wa===Ta||Wa||Ra);Mb!==Wd&&null!=($a=Dd[Mb]);Mb++){if(W&&$a){var td=0;for(Wa||$a.ownerDocument===Ta||(ac($a),yb=!tb);fb=Da[td++];)if(fb($a,Wa||Ta,yb)){vb.push($a);break}Ra&&(jb= 107Ed)}P&&(($a=!fb&&$a)&&rc--,Ga&&Gb.push($a))}if(rc+=Mb,P&&Mb!==rc){for(td=0;fb=ha[td++];)fb(Gb,zb,Wa,yb);if(Ga){if(0<rc)for(;Mb--;)Gb[Mb]||zb[Mb]||(zb[Mb]=Md.call(vb));zb=kb(zb)}Gc.apply(vb,zb);Ra&&!Ga&&0<zb.length&&1<rc+ha.length&&m.uniqueSort(vb)}return Ra&&(jb=Ed,Ic=Cd),Gb},P?v(ja):ja))).selector=B}return ia},uc=m.select=function(B,G,O,P){var W,ja,ha,Da,ia,Ga="function"==typeof B&&B,Wa=!P&&Hc(B=Ga.selector||B);if(O=O||[],1===Wa.length){if(2<(ja=Wa[0]=Wa[0].slice(0)).length&&"ID"===(ha=ja[0]).type&& 1089===G.nodeType&&tb&&Ma.relative[ja[1].type]){if(!(G=(Ma.find.ID(ha.matches[0].replace(Ac,Bc),G)||[])[0]))return O;Ga&&(G=G.parentNode);B=B.slice(ja.shift().value.length)}for(W=nd.needsContext.test(B)?0:ja.length;W--&&(ha=ja[W],!Ma.relative[Da=ha.type]);)if((ia=Ma.find[Da])&&(P=ia(ha.matches[0].replace(Ac,Bc),rd.test(ja[0].type)&&R(G.parentNode)||G))){if(ja.splice(W,1),!(B=P.length&&Ba(ja)))return Gc.apply(O,P),O;break}}
vendor: 6,696 bytes, lines 108-121
108return(Ga||ad(B,Wa))(P,G,!tb,O,!G||rd.test(B)&&R(G.parentNode)||G),O},Ca.sortStable= 109Qa.split("").sort(sd).join("")===Qa,Ca.detectDuplicates=!!dc,ac(),Ca.sortDetached=x(function(B){return 1&B.compareDocumentPosition(Ta.createElement("fieldset"))}),x(function(B){return B.innerHTML="\x3ca href\x3d'#'\x3e\x3c/a\x3e","#"===B.firstChild.getAttribute("href")})||A("type|href|height|width",function(B,G,O){if(!O)return B.getAttribute(G,"type"===G.toLowerCase()?1:2)}),Ca.attributes&&x(function(B){return B.innerHTML="\x3cinput/\x3e",B.firstChild.setAttribute("value",""),""===B.firstChild.getAttribute("value")})|| 110A("value",function(B,G,O){if(!O&&"input"===B.nodeName.toLowerCase())return B.defaultValue}),x(function(B){return null==B.getAttribute("disabled")})||A("checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",function(B,G,O){var P;if(!O)return!0===B[G]?G.toLowerCase():(P=B.getAttributeNode(G))&&P.specified?P.value:null}),m}(a);u.find=ec;u.expr=ec.selectors;u.expr[":"]=u.expr.pseudos;u.uniqueSort=u.unique=ec.uniqueSort;u.text=ec.getText; 111u.isXMLDoc=ec.isXML;u.contains=ec.contains;u.escapeSelector=ec.escape;var ic=function(d,m,q){for(var v=[],x=void 0!==q;(d=d[m])&&9!==d.nodeType;)if(1===d.nodeType){if(x&&u(d).is(q))break;v.push(d)}return v},Oc=function(d,m){for(var q=[];d;d=d.nextSibling)1===d.nodeType&&d!==m&&q.push(d);return q},Pc=u.expr.match.needsContext,Pb=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;u.filter=function(d,m,q){var v=m[0];return q&&(d=":not("+d+")"),1===m.length&&1===v.nodeType?u.find.matchesSelector(v, 112d)?[v]:[]:u.find.matches(d,u.grep(m,function(x){return 1===x.nodeType}))};u.fn.extend({find:function(d){var m,q=this.length,v=this;if("string"!=typeof d)return this.pushStack(u(d).filter(function(){for(m=0;m<q;m++)if(u.contains(v[m],this))return!0}));var x=this.pushStack([]);for(m=0;m<q;m++)u.find(d,v[m],x);return 1<q?u.uniqueSort(x):x},filter:function(d){return this.pushStack(l(this,d||[],!1))},not:function(d){return this.pushStack(l(this,d||[],!0))},is:function(d){return!!l(this,"string"==typeof d&& 113Pc.test(d)?u(d):d||[],!1).length}});var db=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(u.fn.init=function(d,m,q){var v,x;if(!d)return this;if(q=q||Ub,"string"==typeof d){if(!(v="\x3c"===d[0]&&"\x3e"===d[d.length-1]&&3<=d.length?[null,d,null]:db.exec(d))||!v[1]&&m)return!m||m.jquery?(m||q).find(d):this.constructor(m).find(d);if(v[1]){if(m=m instanceof u?m[0]:m,u.merge(this,u.parseHTML(v[1],m&&m.nodeType?m.ownerDocument||m:Oa,!0)),Pb.test(v[1])&&u.isPlainObject(m))for(v in m)Ia(this[v])?this[v](m[v]):this.attr(v, 114m[v]);return this}return(x=Oa.getElementById(v[2]))&&(this[0]=x,this.length=1),this}return d.nodeType?(this[0]=d,this.length=1,this):Ia(d)?void 0!==q.ready?q.ready(d):d(u):u.makeArray(d,this)}).prototype=u.fn;var Ub=u(Oa);var Fa=/^(?:parents|prev(?:Until|All))/,Jb={children:!0,contents:!0,next:!0,prev:!0};u.fn.extend({has:function(d){var m=u(d,this),q=m.length;return this.filter(function(){for(var v=0;v<q;v++)if(u.contains(this,m[v]))return!0})},closest:function(d,m){var q,v=0,x=this.length,A=[], 115D="string"!=typeof d&&u(d);if(!Pc.test(d))for(;v<x;v++)for(q=this[v];q&&q!==m;q=q.parentNode)if(11>q.nodeType&&(D?-1<D.index(q):1===q.nodeType&&u.find.matchesSelector(q,d))){A.push(q);break}return this.pushStack(1<A.length?u.uniqueSort(A):A)},index:function(d){return d?"string"==typeof d?tc.call(u(d),this[0]):tc.call(this,d.jquery?d[0]:d):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(d,m){return this.pushStack(u.uniqueSort(u.merge(this.get(),u(d,m))))},addBack:function(d){return this.add(null== 116d?this.prevObject:this.prevObject.filter(d))}});u.each({parent:function(d){return(d=d.parentNode)&&11!==d.nodeType?d:null},parents:function(d){return ic(d,"parentNode")},parentsUntil:function(d,m,q){return ic(d,"parentNode",q)},next:function(d){return f(d,"nextSibling")},prev:function(d){return f(d,"previousSibling")},nextAll:function(d){return ic(d,"nextSibling")},prevAll:function(d){return ic(d,"previousSibling")},nextUntil:function(d,m,q){return ic(d,"nextSibling",q)},prevUntil:function(d,m,q){return ic(d, 117"previousSibling",q)},siblings:function(d){return Oc((d.parentNode||{}).firstChild,d)},children:function(d){return Oc(d.firstChild)},contents:function(d){return"undefined"!=typeof d.contentDocument?d.contentDocument:(k(d,"template")&&(d=d.content||d),u.merge([],d.childNodes))}},function(d,m){u.fn[d]=function(q,v){var x=u.map(this,m,q);return"Until"!==d.slice(-5)&&(v=q),v&&"string"==typeof v&&(x=u.filter(v,x)),1<this.length&&(Jb[d]||u.uniqueSort(x),Fa.test(d)&&x.reverse()),this.pushStack(x)}});var L= 118/[^\x20\t\r\n\f]+/g;u.Callbacks=function(d){var m,q;d="string"==typeof d?(m=d,q={},u.each(m.match(L)||[],function(pa,Ba){q[Ba]=!0}),q):u.extend({},d);var v,x,A,D,F=[],K=[],S=-1,Y=function(){D=D||d.once;for(A=v=!0;K.length;S=-1)for(x=K.shift();++S<F.length;)!1===F[S].apply(x[0],x[1])&&d.stopOnFalse&&(S=F.length,x=!1);d.memory||(x=!1);v=!1;D&&(F=x?[]:"")},R={add:function(){return F&&(x&&!v&&(S=F.length-1,K.push(x)),function za(Ba){u.each(Ba,function(Va,kb){Ia(kb)?d.unique&&R.has(kb)||F.push(kb):kb&& 119kb.length&&"string"!==e(kb)&&za(kb)})}(arguments),x&&!v&&Y()),this},remove:function(){return u.each(arguments,function(pa,Ba){for(var za;-1<(za=u.inArray(Ba,F,za));)F.splice(za,1),za<=S&&S--}),this},has:function(pa){return pa?-1<u.inArray(pa,F):0<F.length},empty:function(){return F&&(F=[]),this},disable:function(){return D=K=[],F=x="",this},disabled:function(){return!F},lock:function(){return D=K=[],x||v||(F=x=""),this},locked:function(){return!!D},fireWith:function(pa,Ba){return D||(Ba=[pa,(Ba=Ba|| 120[]).slice?Ba.slice():Ba],K.push(Ba),v||Y()),this},fire:function(){return R.fireWith(this,arguments),this},fired:function(){return!!A}};return R};u.extend({Deferred:function(d){var m=[["notify","progress",u.Callbacks("memory"),u.Callbacks("memory"),2],["resolve","done",u.Callbacks("once memory"),u.Callbacks("once memory"),0,"resolved"],["reject","fail",u.Callbacks("once memory"),u.Callbacks("once memory"),1,"rejected"]],q="pending",v={state:function(){return q},always:function(){return x.done(arguments).fail(arguments), 121this},"catch":function(A){return v.then(null,A)},pipe:function(){var A=arguments;return u.Deferred(function(D){u.each(m,function(F,K){var S=Ia(A[K[4]])&&A[K[4]];x[K[1]](function(){var Y=S&&S.apply(this,arguments);Y&&Ia(Y.promise)?Y.promise().progress(D.notify).done(D.resolve).fail(D.reject):D[K[0]+"With"](this,S?[Y]:arguments)})});A=null}).promise()},then:function(A,D,F){function K(Y,R,pa,Ba){return function(){var za=this,Va=arguments,kb=function(){var Hb;
121if(!(Y<S)){if((Hb=pa.apply(za,Va))===R.promise())throw new TypeError("Thenable self-resolution"); 122var bc=Hb&&("object"==typeof Hb||"function"==typeof Hb)&&Hb.then;Ia(bc)?Ba?bc.call(Hb,K(S,R,b,Ba),K(S,R,g,Ba)):(S++,bc.call(Hb,K(S,R,b,Ba),K(S,R,g,Ba),K(S,R,b,R.notifyWith))):(pa!==b&&(za=void 0,Va=[Hb]),(Ba||R.resolveWith)(za,Va))}},qc=Ba?kb:function(){try{kb()}catch(Hb){u.Deferred.exceptionHook&&u.Deferred.exceptionHook(Hb,qc.stackTrace),S<=Y+1&&(pa!==g&&(za=void 0,Va=[Hb]),R.rejectWith(za,Va))}};Y?qc():(u.Deferred.getStackHook&&(qc.stackTrace=u.Deferred.getStackHook()),a.setTimeout(qc))}}var S= 1230;return u.Deferred(function(Y){m[0][3].add(K(0,Y,Ia(F)?F:b,Y.notifyWith));m[1][3].add(K(0,Y,Ia(A)?A:b));m[2][3].add(K(0,Y,Ia(D)?D:g))}).promise()},promise:function(A){return null!=A?u.extend(A,v):v}},x={};return u.each(m,function(A,D){var F=D[2],K=D[5];v[D[1]]=F.add;K&&F.add(function(){q=K},m[3-A][2].disable,m[3-A][3].disable,m[0][2].lock,m[0][3].lock);F.add(D[3].fire);x[D[0]]=function(){return x[D[0]+"With"](this===x?void 0:this,arguments),this};x[D[0]+"With"]=F.fireWith}),v.promise(x),d&&d.call(x, 124x),x},when:function(d){var m=arguments.length,q=m,v=Array(q),x=Fb.call(arguments),A=u.Deferred(),D=function(F){return function(K){v[F]=this;x[F]=1<arguments.length?Fb.call(arguments):K;--m||A.resolveWith(v,x)}};if(1>=m&&(p(d,A.done(D(q)).resolve,A.reject,!m),"pending"===A.state()||Ia(x[q]&&x[q].then)))return A.then();for(;q--;)p(x[q],D(q),A.reject);return A.promise()}});var aa=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;u.Deferred.exceptionHook=function(d,m){a.console&&a.console.warn&& 125d&&aa.test(d.name)&&a.console.warn("jQuery.Deferred exception: "+d.message,d.stack,m)};u.readyException=function(d){a.setTimeout(function(){throw d;})};var ba=u.Deferred();u.fn.ready=function(d){return ba.then(d)["catch"](function(m){u.readyException(m)}),this};u.extend({isReady:!1,readyWait:1,ready:function(d){(!0===d?--u.readyWait:u.isReady)||(u.isReady=!0)!==d&&0<--u.readyWait||ba.resolveWith(Oa,[u])}});u.ready.then=ba.then;"complete"===Oa.readyState||"loading"!==Oa.readyState&&!Oa.documentElement.doScroll? 126a.setTimeout(u.ready):(Oa.addEventListener("DOMContentLoaded",r),a.addEventListener("load",r));var ka=function(d,m,q,v,x,A,D){var F=0,K=d.length,S=null==q;if("object"===e(q))for(F in x=!0,q)ka(d,m,F,q[F],!0,A,D);else if(void 0!==v&&(x=!0,Ia(v)||(D=!0),S&&(D?(m.call(d,v),m=null):(S=m,m=function(Y,R,pa){return S.call(u(Y),pa)})),m))for(;F<K;F++)m(d[F],q,D?v:v.call(d[F],F,m(d[F],q)));return x?d:S?m.call(d):K?m(d[0],q):A},ma=/^-ms-/,sa=/-([a-z])/g,ya=function(d){return 1===d.nodeType||9===d.nodeType|| 127!+d.nodeType};y.uid=1;y.prototype={cache:function(d){var m=d[this.expando];return m||(m={},ya(d)&&(d.nodeType?d[this.expando]=m:Object.defineProperty(d,this.expando,{value:m,configurable:!0}))),m},set:function(d,m,q){var v;d=this.cache(d);if("string"==typeof m)d[w(m)]=q;else for(v in m)d[w(v)]=m[v];return d},get:function(d,m){return void 0===m?this.cache(d):d[this.expando]&&d[this.expando][w(m)]},access:function(d,m,q){return void 0===m||m&&"string"==typeof m&&void 0===q?this.get(d,m):(this.set(d, 128m,q),void 0!==q?q:m)},remove:function(d,m){var q=d[this.expando];if(void 0!==q){if(void 0!==m){var v=(m=Array.isArray(m)?m.map(w):(m=w(m))in q?[m]:m.match(L)||[]).length;for(;v--;)delete q[m[v]]}(void 0===m||u.isEmptyObject(q))&&(d.nodeType?d[this.expando]=void 0:delete d[this.expando])}},hasData:function(d){d=d[this.expando];return void 0!==d&&!u.isEmptyObject(d)}};var da=new y,Pa=new y,Zb=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Nb=/[A-Z]/g;u.extend({hasData:function(d){return Pa.hasData(d)||da.hasData(d)}, 129data:function(d,m,q){return Pa.access(d,m,q)},removeData:function(d,m){Pa.remove(d,m)},_data:function(d,m,q){return da.access(d,m,q)},_removeData:function(d,m){da.remove(d,m)}});u.fn.extend({data:function(d,m){var q,v,x,A=this[0],D=A&&A.attributes;if(void 0===d){if(this.length&&(x=Pa.get(A),1===A.nodeType&&!da.get(A,"hasDataAttrs"))){for(q=D.length;q--;)D[q]&&0===(v=D[q].name).indexOf("data-")&&(v=w(v.slice(5)),C(A,v,x[v]));da.set(A,"hasDataAttrs",!0)}return x}return"object"==typeof d?this.each(function(){Pa.set(this, 130d)}):ka(this,function(F){var K;if(A&&void 0===F)return void 0!==(K=Pa.get(A,d))?K:void 0!==(K=C(A,d))?K:void 0;this.each(function(){Pa.set(this,d,F)})},null,m,1<arguments.length,null,!0)},removeData:function(d){return this.each(function(){Pa.remove(this,d)})}});u.extend({queue:function(d,m,q){var v;if(d)return m=(m||"fx")+"queue",v=da.get(d,m),q&&(!v||Array.isArray(q)?v=da.access(d,m,u.makeArray(q)):v.push(q)),v||[]},dequeue:function(d,m){m=m||"fx";var q=u.queue(d,m),v=q.length,x=q.shift(),A=u._queueHooks(d, 131m);"inprogress"===x&&(x=q.shift(),v--);
131x&&("fx"===m&&q.unshift("inprogress"),delete A.stop,x.call(d,function(){u.dequeue(d,m)},A));!v&&A&&A.empty.fire()},_queueHooks:function(d,m){var q=m+"queueHooks";return da.get(d,q)||da.access(d,q,{empty:u.Callbacks("once memory").add(function(){da.remove(d,[m+"queue",q])})})}});u.fn.extend({queue:function(d,m){var q=2;return"string"!=typeof d&&(m=d,d="fx",q--),arguments.length<q?u.queue(this[0],d):void 0===m?this:this.each(function(){var v=u.queue(this,d,m); 132u._queueHooks(this,d);"fx"===d&&"inprogress"!==v[0]&&u.dequeue(this,d)})},dequeue:function(d){return this.each(function(){u.dequeue(this,d)})},clearQueue:function(d){return this.queue(d||"fx",[])},promise:function(d,m){var q,v=1,x=u.Deferred(),A=this,D=this.length,F=function(){--v||x.resolveWith(A,[A])};"string"!=typeof d&&(m=d,d=void 0);for(d=d||"fx";D--;)(q=da.get(A[D],d+"queueHooks"))&&q.empty&&(v++,q.empty.add(F));return F(),x.promise(m)}});var Kb=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, 133kc=new RegExp("^(?:([+-])\x3d|)("+Kb+")([a-z%]*)$","i"),sb=["Top","Right","Bottom","Left"],fc=Oa.documentElement,Ob=function(d){return u.contains(d.ownerDocument,d)},Vb={composed:!0};fc.getRootNode&&(Ob=function(d){return u.contains(d.ownerDocument,d)||d.getRootNode(Vb)===d.ownerDocument});var lc=function(d,m){return"none"===(d=m||d).style.display||""===d.style.display&&Ob(d)&&"none"===u.css(d,"display")},Wb=function(d,m,q,v){var x,A={};for(x in m)A[x]=d.style[x],d.style[x]=m[x];for(x in q=q.apply(d, 134v||[]),m)d.style[x]=A[x];return q},Qb={};u.fn.extend({show:function(){return z(this,!0)},hide:function(){return z(this)},toggle:function(d){return"boolean"==typeof d?d?this.show():this.hide():this.each(function(){lc(this)?u(this).show():u(this).hide()})}});var La=/^(?:checkbox|radio)$/i,Cb=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Xc=/^$|^module$|\/(?:java|ecma)script/i,Rb={option:[1,"\x3cselect multiple\x3d'multiple'\x3e","\x3c/select\x3e"],thead:[1,"\x3ctable\x3e","\x3c/table\x3e"],col:[2,"\x3ctable\x3e\x3ccolgroup\x3e", 135"\x3c/colgroup\x3e\x3c/table\x3e"],tr:[2,"\x3ctable\x3e\x3ctbody\x3e","\x3c/tbody\x3e\x3c/table\x3e"],td:[3,"\x3ctable\x3e\x3ctbody\x3e\x3ctr\x3e","\x3c/tr\x3e\x3c/tbody\x3e\x3c/table\x3e"],_default:[0,"",""]};Rb.optgroup=Rb.option;Rb.tbody=Rb.tfoot=Rb.colgroup=Rb.caption=Rb.thead;Rb.th=Rb.td;var Qc,id=/<|&#?\w+;/;var Rc=Oa.createDocumentFragment().appendChild(Oa.createElement("div"));(Qc=Oa.createElement("input")).setAttribute("type","radio");Qc.setAttribute("checked","checked");Qc.setAttribute("name", 136"t");Rc.appendChild(Qc);ab.checkClone=Rc.cloneNode(!0).cloneNode(!0).lastChild.checked;Rc.innerHTML="\x3ctextarea\x3ex\x3c/textarea\x3e";ab.noCloneChecked=!!Rc.cloneNode(!0).lastChild.defaultValue;var Vc=/^key/,cd=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,dd=/^([^.]*)(?:\.(.+)|)/;u.event={global:{},add:function(d,m,q,v,x){var A,D,F,K,S,Y,R,pa,Ba;if(S=da.get(d))for(q.handler&&(q=(A=q).handler,x=A.selector),x&&u.find.matchesSelector(fc,x),q.guid||(q.guid=u.guid++),(K=S.events)||(K=S.events={}), 137(D=S.handle)||(D=S.handle=function(Va){return"undefined"!=typeof u&&u.event.triggered!==Va.type?u.event.dispatch.apply(d,arguments):void 0}),S=(m=(m||"").match(L)||[""]).length;S--;){var za=Ba=(F=dd.exec(m[S])||[])[1];F=(F[2]||"").split(".").sort();za&&(R=u.event.special[za]||{},za=(x?R.delegateType:R.bindType)||za,R=u.event.special[za]||{},Y=u.extend({type:za,origType:Ba,data:v,handler:q,guid:q.guid,selector:x,needsContext:x&&u.expr.match.needsContext.test(x),namespace:F.join(".")},A),(pa=K[za])|| 138((pa=K[za]=[]).delegateCount=0,R.setup&&!1!==R.setup.call(d,v,F,D)||d.addEventListener&&d.addEventListener(za,D)),R.add&&(R.add.call(d,Y),Y.handler.guid||(Y.handler.guid=q.guid)),x?pa.splice(pa.delegateCount++,0,Y):pa.push(Y),u.event.global[za]=!0)}},remove:function(d,m,q,v,x){var A,D,F,K,S,Y,R,pa,Ba=da.hasData(d)&&da.get(d);if(Ba&&(K=Ba.events)){for(S=(m=(m||"").match(L)||[""]).length;S--;)if(Y=pa=(F=dd.exec(m[S])||[])[1],R=(F[2]||"").split(".").sort(),Y){var za=u.event.special[Y]||{};var Va=K[Y= 139(v?za.delegateType:za.bindType)||Y]||[];F=F[2]&&new RegExp("(^|\\.)"+R.join("\\.(?:.*\\.|)")+"(\\.|$)");for(D=A=Va.length;A--;){var kb=Va[A];!x&&pa!==kb.origType||q&&q.guid!==kb.guid||F&&!F.test(kb.namespace)||v&&v!==kb.selector&&("**"!==v||!kb.selector)||(Va.splice(A,1),kb.selector&&Va.delegateCount--,za.remove&&za.remove.call(d,kb))}D&&!Va.length&&(za.teardown&&!1!==za.teardown.call(d,R,Ba.handle)||u.removeEvent(d,Y,Ba.handle),delete K[Y])}else for(Y in K)u.event.remove(d,Y+m[S],q,v,!0);u.isEmptyObject(K)&& 140da.remove(d,"handle events")}},dispatch:function(d){var m,q,v,x,A=u.event.fix(d),D=Array(arguments.length);var F=(da.get(this,"events")||{})[A.type]||[];var K=u.event.special[A.type]||{};D[0]=A;for(m=1;m<arguments.length;m++)D[m]=arguments[m];if(A.delegateTarget=this,!K.preDispatch||!1!==K.preDispatch.call(this,A)){var S=u.event.handlers.call(this,A,F);for(m=0;(v=S[m++])&&!A.isPropagationStopped();)for(A.currentTarget=v.elem,F=0;(x=v.handlers[F++])&&!A.isImmediatePropagationStopped();)A.rnamespace&& 141!1!==x.namespace&&!A.rnamespace.test(x.namespace)||(A.handleObj=x,A.data=x.data,void 0!==(q=((u.event.special[x.origType]||{}).handle||x.handler).apply(v.elem,D))&&!1===(A.result=q)&&(A.preventDefault(),A.stopPropagation()));return K.postDispatch&&K.postDispatch.call(this,A),A.result}},handlers:function(d,m){var q,v,x,A=[],D=m.delegateCount,F=d.target;if(D&&F.nodeType&&!("click"===d.type&&1<=d.button))for(;F!==this;F=F.parentNode||this)if(1===F.nodeType&&("click"!==d.type||!0!==F.disabled)){var K= 142[];var S={};for(q=0;q<D;q++)void 0===S[x=(v=m[q]).selector+" "]&&(S[x]=v.needsContext?-1<u(x,this).index(F):u.find(x,this,null,[F]
142).length),S[x]&&K.push(v);K.length&&A.push({elem:F,handlers:K})}return F=this,D<m.length&&A.push({elem:F,handlers:m.slice(D)}),A},addProp:function(d,m){Object.defineProperty(u.Event.prototype,d,{enumerable:!0,configurable:!0,get:Ia(m)?function(){if(this.originalEvent)return m(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[d]},set:function(q){Object.defineProperty(this, 143d,{enumerable:!0,configurable:!0,writable:!0,value:q})}})},fix:function(d){return d[u.expando]?d:new u.Event(d)},special:{load:{noBubble:!0},click:{setup:function(d){d=this||d;return La.test(d.type)&&d.click&&k(d,"input")&&cb(d,"click",ea),!1},trigger:function(d){d=this||d;return La.test(d.type)&&d.click&&k(d,"input")&&cb(d,"click"),!0},_default:function(d){d=d.target;return La.test(d.type)&&d.click&&k(d,"input")&&da.get(d,"click")||k(d,"a")}},beforeunload:{postDispatch:function(d){void 0!==d.result&& 144d.originalEvent&&(d.originalEvent.returnValue=d.result)}}}};u.removeEvent=function(d,m,q){d.removeEventListener&&d.removeEventListener(m,q)};u.Event=function(d,m){if(!(this instanceof u.Event))return new u.Event(d,m);d&&d.type?(this.originalEvent=d,this.type=d.type,this.isDefaultPrevented=d.defaultPrevented||void 0===d.defaultPrevented&&!1===d.returnValue?ea:va,this.target=d.target&&3===d.target.nodeType?d.target.parentNode:d.target,this.currentTarget=d.currentTarget,this.relatedTarget=d.relatedTarget): 145this.type=d;m&&u.extend(this,m);this.timeStamp=d&&d.timeStamp||Date.now();this[u.expando]=!0};u.Event.prototype={constructor:u.Event,isDefaultPrevented:va,isPropagationStopped:va,isImmediatePropagationStopped:va,isSimulated:!1,preventDefault:function(){var d=this.originalEvent;this.isDefaultPrevented=ea;d&&!this.isSimulated&&d.preventDefault()},stopPropagation:function(){var d=this.originalEvent;this.isPropagationStopped=ea;d&&!this.isSimulated&&d.stopPropagation()},stopImmediatePropagation:function(){var d= 146this.originalEvent;this.isImmediatePropagationStopped=ea;d&&!this.isSimulated&&d.stopImmediatePropagation();this.stopPropagation()}};u.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(d){var m= 147d.button;return null==d.which&&Vc.test(d.type)?null!=d.charCode?d.charCode:d.keyCode:!d.which&&void 0!==m&&cd.test(d.type)?1&m?1:2&m?3:4&m?2:0:d.which}},u.event.addProp);u.each({focus:"focusin",blur:"focusout"},function(d,m){u.event.special[d]={setup:function(){return cb(this,d,na),!1},trigger:function(){return cb(this,d),!0},delegateType:m}});
vendor: 15,729 bytes, lines 147-178
147u.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(d,m){u.event.special[d]={delegateType:m, 148bindType:m,handle:function(q){var v,x=q.relatedTarget,A=q.handleObj;return x&&(x===this||u.contains(this,x))||(q.type=A.origType,v=A.handler.apply(this,arguments),q.type=m),v}}});u.fn.extend({on:function(d,m,q,v){return bb(this,d,m,q,v)},one:function(d,m,q,v){return bb(this,d,m,q,v,1)},off:function(d,m,q){var v,x;if(d&&d.preventDefault&&d.handleObj)return v=d.handleObj,u(d.delegateTarget).off(v.namespace?v.origType+"."+v.namespace:v.origType,v.selector,v.handler),this;if("object"==typeof d){for(x in d)this.off(x, 149m,d[x]);return this}return!1!==m&&"function"!=typeof m||(q=m,m=void 0),!1===q&&(q=va),this.each(function(){u.event.remove(this,d,q,m)})}});var od=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,ed=/<script|<style|<link/i,xc=/checked\s*(?:[^=]|=\s*.checked.)/i,Yc=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;u.extend({htmlPrefilter:function(d){return d.replace(od,"\x3c$1\x3e\x3c/$2\x3e")},clone:function(d,m,q){var v,x,A,D=d.cloneNode(!0),F=Ob(d);if(!(ab.noCloneChecked|| 1501!==d.nodeType&&11!==d.nodeType||u.isXMLDoc(d))){var K=V(D);var S=0;for(v=(x=V(d)).length;S<v;S++){var Y=x[S];var R=K[S];void 0;"input"===(A=R.nodeName.toLowerCase())&&La.test(Y.type)?R.checked=Y.checked:"input"!==A&&"textarea"!==A||(R.defaultValue=Y.defaultValue)}}if(m)if(q)for(x=x||V(d),K=K||V(D),S=0,v=x.length;S<v;S++)M(x[S],K[S]);else M(d,D);return 0<(K=V(D,"script")).length&&ca(K,!F&&V(d,"script")),D},cleanData:function(d){for(var m,q,v,x=u.event.special,A=0;void 0!==(q=d[A]);A++)if(ya(q)){if(m= 151q[da.expando]){if(m.events)for(v in m.events)x[v]?u.event.remove(q,v):u.removeEvent(q,v,m.handle);q[da.expando]=void 0}q[Pa.expando]&&(q[Pa.expando]=void 0)}}});u.fn.extend({detach:function(d){return N(this,d,!0)},remove:function(d){return N(this,d)},text:function(d){return ka(this,function(m){return void 0===m?u.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=m)})},null,d,arguments.length)},append:function(){return I(this,arguments, 152function(d){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||wa(this,d).appendChild(d)})},prepend:function(){return I(this,arguments,function(d){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var m=wa(this,d);m.insertBefore(d,m.firstChild)}})},before:function(){return I(this,arguments,function(d){this.parentNode&&this.parentNode.insertBefore(d,this)})},after:function(){return I(this,arguments,function(d){this.parentNode&&this.parentNode.insertBefore(d,this.nextSibling)})},empty:function(){for(var d, 153m=0;null!=(d=this[m]);m++)1===d.nodeType&&(u.cleanData(V(d,!1)),d.textContent="");return this},clone:function(d,m){return d=null!=d&&d,m=null==m?d:m,this.map(function(){return u.clone(this,d,m)})},html:function(d){return ka(this,function(m){var q=this[0]||{},v=0,x=this.length;if(void 0===m&&1===q.nodeType)return q.innerHTML;if("string"==typeof m&&!ed.test(m)&&!Rb[(Cb.exec(m)||["",""])[1].toLowerCase()]){m=u.htmlPrefilter(m);try{for(;v<x;v++)1===(q=this[v]||{}).nodeType&&(u.cleanData(V(q,!1)),q.innerHTML= 154m);q=0}catch(A){}}q&&this.empty().append(m)},null,d,arguments.length)},replaceWith:function(){var d=[];return I(this,arguments,function(m){var q=this.parentNode;0>u.inArray(this,d)&&(u.cleanData(V(this)),q&&q.replaceChild(m,this))},d)}});u.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(d,m){u.fn[d]=function(q){for(var v=[],x=u(q),A=x.length-1,D=0;D<=A;D++)q=D===A?this:this.clone(!0),u(x[D])[m](q),hc.apply(v,q.get());return this.pushStack(v)}}); 155var $b=new RegExp("^("+Kb+")(?!px)[a-z%]+$","i"),Ec=function(d){var m=d.ownerDocument.defaultView;return m&&m.opener||(m=a),m.getComputedStyle(d)},jd=new RegExp(sb.join("|"),"i");!function(){function d(){if(F){D.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0";F.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%";fc.appendChild(D).appendChild(F);var K=a.getComputedStyle(F); 156m="1%"!==K.top;A=12===Math.round(parseFloat(K.marginLeft));F.style.right="60%";x=36===Math.round(parseFloat(K.right));q=36===Math.round(parseFloat(K.width));F.style.position="absolute";v=12===Math.round(parseFloat(F.offsetWidth/3));fc.removeChild(D);F=null}}var m,q,v,x,A,D=Oa.createElement("div"),F=Oa.createElement("div");F.style&&(F.style.backgroundClip="content-box",F.cloneNode(!0).style.backgroundClip="",ab.clearCloneStyle="content-box"===F.style.backgroundClip,u.extend(ab,{boxSizingReliable:function(){return d(), 157q},pixelBoxStyles:function(){return d(),x},pixelPosition:function(){return d(),m},reliableMarginLeft:function(){return d(),A},scrollboxSize:function(){return d(),v}}))}();var $c=["Webkit","Moz","ms"],Zc=Oa.createElement("div").style,Sb={},Jc=/^(none|table(?!-c[ea]).+)/,Cc=/^--/,pd={position:"absolute",visibility:"hidden",display:"block"},fd={letterSpacing:"0",fontWeight:"400"};u.extend({cssHooks:{opacity:{get:function(d,m){if(m)return d=T(d,"opacity"),""===d?"1":d}}},cssNumber:{animationIterationCount:!0, 158columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(d,m,q,v){if(d&&3!==d.nodeType&&8!==d.nodeType&&d.style){var x,A,D,F=w(m),K=Cc.test(m),S=d.style;if(K||(m=fa(F)),D=u.cssHooks[m]||u.cssHooks[F],void 0===q)return D&&"get"in D&&void 0!==(x=D.get(d,!1,v))?x:S[m];"string"===(A=typeof q)&& 159(x=kc.exec(q))&&x[1]&&(q=E(d,m,x),A="number");null!=q&&q==q&&("number"!==A||K||(q+=x&&x[3]||(u.cssNumber[F]?"":"px")),ab.clearCloneStyle||""!==q||0!==m.indexOf("background")||(S[m]="inherit"),D&&"set"in D&&void 0===(q=D.set(d,q,v))||(K?S.setProperty(m,q):S[m]=q))}},css:function(d,m,q,v){var x,A,D,F=w(m);return Cc.test(m)||(m=fa(F)),(D=u.cssHooks[m]||u.cssHooks[F])&&"get"in D&&(x=D.get(d,!0,q)),void 0===x&&(x=T(d,m,v)),"normal"===x&&m in fd&&(x=fd[m]),""===q||q?(A=parseFloat(x),!0===q||isFinite(A)? 160A||0:x):x}});u.each(["height","width"],function(d,m){u.cssHooks[m]={get:function(q,v,x){if(v)return!Jc.test(u.css(q,"display"))||q.getClientRects().length&&q.getBoundingClientRect().width?ob(q,m,x):Wb(q,pd,function(){return ob(q,m,x)})},set:function(q,v,x){var A,D=Ec(q),F=!ab.scrollboxSize()&&"absolute"===D.position,K=(F||x)&&"border-box"===u.css(q,"boxSizing",!1,D);x=x?ua(q,m,x,K,D):0;return K&&F&&(x-=Math.ceil(q["offset"+m[0].toUpperCase()+m.slice(1)]-parseFloat(D[m])-ua(q,m,"border",!1,D)-.5)), 161x&&(A=kc.exec(v))&&"px"!==(A[3]||"px")&&(q.style[m]=v,v=u.css(q,m)),qa(0,v,x)}}});u.cssHooks.marginLeft=Z(ab.reliableMarginLeft,function(d,m){if(m)return(parseFloat(T(d,"marginLeft"))||d.getBoundingClientRect().left-Wb(d,{marginLeft:0},function(){return d.getBoundingClientRect().left}))+"px"});u.each({margin:"",padding:"",border:"Width"},function(d,m){u.cssHooks[d+m]={expand:function(q){var v=0,x={};for(q="string"==typeof q?q.split(" "):[q];4>v;v++)x[d+sb[v]+m]=q[v]||q[v-2]||q[0];return x}};"margin"!== 162d&&(u.cssHooks[d+m].set=qa)});u.fn.extend({css:function(d,m){return ka(this,function(q,v,x){var A,D={},F=0;if(Array.isArray(v)){x=Ec(q);for(A=v.length;F<A;F++)D[v[F]]=u.css(q,v[F],!1,x);return D}return void 0!==x?u.style(q,v,x):u.css(q,v)},d,m,1<arguments.length)}});((u.Tween=Ha).prototype={constructor:Ha,init:function(d,m,q,v,x,A){this.elem=d;this.prop=q;this.easing=x||u.easing._default;this.options=m;this.start=this.now=this.cur();this.end=v;this.unit=A||(u.cssNumber[q]?"":"px")},cur:function(){var d= 163Ha.propHooks[this.prop];return d&&d.get?d.get(this):Ha.propHooks._default.get(this)},run:function(d){var m,q=Ha.propHooks[this.prop];return this.options.duration?this.pos=m=u.easing[this.easing](d,this.options.duration*d,0,1,this.options.duration):this.pos=m=d,this.now=(this.end-this.start)*m+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),q&&q.set?q.set(this):Ha.propHooks._default.set(this),this}}).init.prototype=Ha.prototype;(Ha.propHooks={_default:{get:function(d){var m; 164return 1!==d.elem.nodeType||null!=d.elem[d.prop]&&null==d.elem.style[d.prop]?d.elem[d.prop]:(m=u.css(d.elem,d.prop,""))&&"auto"!==m?m:0},set:function(d){u.fx.step[d.prop]?u.fx.step[d.prop](d):1!==d.elem.nodeType||!u.cssHooks[d.prop]&&null==d.elem.style[fa(d.prop)]?d.elem[d.prop]=d.now:u.style(d.elem,d.prop,d.now+d.unit)}}}).scrollTop=Ha.propHooks.scrollLeft={set:function(d){d.elem.nodeType&&d.elem.parentNode&&(d.elem[d.prop]=d.now)}};u.easing={linear:function(d){return d},swing:function(d){return.5- 165Math.cos(d*Math.PI)/2},_default:"swing"};u.fx=Ha.prototype.init;u.fx.step={};var yc,mc,ud=/^(?:toggle|show|hide)$/,gd=/queueHooks$/;u.Animation=u.extend(Tb,{tweeners:{"*":[function(d,m){var q=this.createTween(d,m);return E(q.elem,d,kc.exec(m),q),q}]},tweener:function(d,m){Ia(d)?(m=d,d=["*"]):d=d.match(L);for(var q,v=0,x=d.length;v<x;v++)q=d[v],Tb.tweeners[q]=Tb.tweeners[q]||[],Tb.tweeners[q].unshift(m)},prefilters:[function(d,m,q){var v,x,A,D,F,K,S,Y="width"in m||"height"in m,R=this,pa={},Ba=d.style, 166za=d.nodeType&&lc(d),Va=da.get(d,"fxshow");for(v in q.queue||(null==(D=u._queueHooks(d,"fx")).unqueued&&(D.unqueued=0,F=D.empty.fire,D.empty.fire=function(){D.unqueued||F()}),D.unqueued++,R.always(function(){R.always(function(){D.unqueued--;u.queue(d,"fx").length||D.empty.fire()})})),m)if(x=m[v],ud.test(x)){if(delete m[v],A=A||"toggle"===x,x===(za?"hide":"show")){if("show"!==x||!Va||void 0===Va[v])continue;za=!0}pa[v]=Va&&Va[v]||u.style(d,v)}if((m=!u.isEmptyObject(m))||!u.isEmptyObject(pa))for(v in Y&& 1671===d.nodeType&&(q.overflow=[Ba.overflow,Ba.overflowX,Ba.overflowY],null==(K=Va&&Va.display)&&(K=da.get(d,"display")),"none"===(S=u.css(d,"display"))&&(K?S=K:(z([d],!0),K=d.style.display||K,S=u.css(d,"display"),z([d]))),("inline"===S||"inline-block"===S&&null!=K)&&"none"===u.css(d,"float")&&(m||(R.done(function(){Ba.display=K}),null==K&&(S=Ba.display,K="none"===S?"":S)),Ba.display="inline-block")),q.overflow&&(Ba.overflow="hidden",R.always(function(){Ba.overflow=q.overflow[0];Ba.overflowX=q.overflow[1]; 168Ba.overflowY=q.overflow[2]})),m=!1,pa)m||(Va?"hidden"in Va&&(za=Va.hidden):Va=da.access(d,"fxshow",{display:K}),A&&(Va.hidden=!za),za&&z([d],!0),R.done(function(){for(v in za||z([d]),da.remove(d,"fxshow"),pa)u.style(d,v,pa[v])})),m=nc(za?Va[v]:0,v,R),v in Va||(Va[v]=m.start,za&&(m.end=m.start,m.start=0))}],prefilter:function(d,m){m?Tb.prefilters.unshift(d):Tb.prefilters.push(d)}});u.speed=function(d,m,q){var v=d&&"object"==typeof d?u.extend({},d):{complete:q||!q&&m||Ia(d)&&d,duration:d,easing:q&& 169m||m&&!Ia(m)&&m};return u.fx.off?v.duration=0:"number"!=typeof v.duration&&(v.duration in u.fx.speeds?v.duration=u.fx.speeds[v.duration]:v.duration=u.fx.speeds._default),null!=v.queue&&!0!==v.queue||(v.queue="fx"),v.old=v.complete,v.complete=function(){Ia(v.old)&&v.old.call(this);v.queue&&u.dequeue(this,v.queue)},v};u.fn.extend({fadeTo:function(d,m,q,v){return this.filter(lc).css("opacity",0).show().end().animate({opacity:m},d,q,v)},animate:function(d,m,q,v){var x=u.isEmptyObject(d),A=u.speed(m,q, 170v);m=function(){var D=Tb(this,u.extend({},d),A);(x||da.get(this,"finish"))&&D.stop(!0)};return m.finish=m,x||!1===A.queue?this.each(m):this.queue(A.queue,m)},stop:function(d,m,q){var v=function(x){var A=x.stop;delete x.stop;A(q)};return"string"!=typeof d&&(q=m,m=d,d=void 0),m&&!1!==d&&this.queue(d||"fx",[]),this.each(function(){var x=!0,A=null!=d&&d+"queueHooks",D=u.timers,F=da.get(this);if(A)F[A]&&F[A].stop&&v(F[A]);else for(A in F)F[A]&&F[A].stop&&gd.test(A)&&v(F[A]);for(A=D.length;A--;)D[A].elem!== 171this||null!=d&&D[A].queue!==d||(D[A].anim.stop(q),x=!1,D.splice(A,1));!x&&q||u.dequeue(this,d)})},finish:function(d){return!1!==d&&(d=d||"fx"),this.each(function(){var m=da.get(this),q=m[d+"queue"];var v=m[d+"queueHooks"];var x=u.timers,A=q?q.length:0;m.finish=!0;u.queue(this,d,[]);v&&v.stop&&v.stop.call(this,!0);for(v=x.length;v--;)x[v].elem===this&&x[v].queue===d&&(x[v].anim.stop(!0),x.splice(v,1));for(v=0;v<A;v++)q[v]&&q[v].finish&&q[v].finish.call(this);delete m.finish})}});u.each(["toggle","show", 172"hide"],function(d,m){var q=u.fn[m];u.fn[m]=function(v,x,A){return null==v||"boolean"==typeof v?q.apply(this,arguments):this.animate(ib(m,!0),v,x,A)}});u.each({slideDown:ib("show"),slideUp:ib("hide"),slideToggle:ib("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(d,m){u.fn[d]=function(q,v,x){return this.animate(m,q,v,x)}});u.timers=[];u.fx.tick=function(){var d,m=0,q=u.timers;for(yc=Date.now();m<q.length;m++)(d=q[m])()||q[m]!==d||q.splice(m--,1);q.length|| 173u.fx.stop();yc=void 0};u.fx.timer=function(d){u.timers.push(d);u.fx.start()};u.fx.interval=13;u.fx.start=function(){mc||(mc=!0,Ya())};u.fx.stop=function(){mc=null};u.fx.speeds={slow:600,fast:200,_default:400};u.fn.delay=function(d,m){return d=u.fx&&u.fx.speeds[d]||d,m=m||"fx",this.queue(m,function(q,v){var x=a.setTimeout(q,d);v.stop=function(){a.clearTimeout(x)}})};var Sc=Oa.createElement("input");var J=Oa.createElement("select").appendChild(Oa.createElement("option"));Sc.type="checkbox";ab.checkOn= 174""!==Sc.value;ab.optSelected=J.selected;(Sc=Oa.createElement("input")).value="t";Sc.type="radio";ab.radioValue="t"===Sc.value;var H=u.expr.attrHandle;u.fn.extend({attr:function(d,m){return ka(this,u.attr,d,m,1<arguments.length)},removeAttr:function(d){return this.each(function(){u.removeAttr(this,d)})}});u.extend({attr:function(d,m,q){var v,x,A=d.nodeType;if(3!==A&&8!==A&&2!==A)return"undefined"==typeof d.getAttribute?u.prop(d,m,q):(1===A&&u.isXMLDoc(d)||(x=u.attrHooks[m.toLowerCase()]||(u.expr.match.bool.test(m)? 175U:void 0)),void 0!==q?null===q?void u.removeAttr(d,m):x&&"set"in x&&void 0!==(v=x.set(d,q,m))?v:(d.setAttribute(m,q+""),q):x&&"get"in x&&null!==(v=x.get(d,m))?v:null==(v=u.find.attr(d,m))?void 0:v)},attrHooks:{type:{set:function(d,m){if(!ab.radioValue&&"radio"===m&&k(d,"input")){var q=d.value;return d.setAttribute("type",m),q&&(d.value=q),m}}}},removeAttr:function(d,m){var q=0,v=m&&m.match(L);if(v&&1===d.nodeType)for(;m=v[q++];)d.removeAttribute(m)}});var U={set:function(d,m,q){return!1===m?u.removeAttr(d, 176q):d.setAttribute(q,q),q}};u.each(u.expr.match.bool.source.match(/\w+/g),function(d,m){var q=H[m]||u.find.attr;H[m]=function(v,x,A){var D,F,K=x.toLowerCase();return A||(F=H[K],H[K]=D,D=null!=q(v,x,A)?K:null,H[K]=F),D}});var X=/^(?:input|select|textarea|button)$/i,la=/^(?:a|area)$/i;u.fn.extend({prop:function(d,m){return ka(this,u.prop,d,m,1<arguments.length)},removeProp:function(d){return this.each(function(){delete this[u.propFix[d]||d]})}});u.extend({prop:function(d,m,q){var v,x,A=d.nodeType;if(3!== 177A&&8!==A&&2!==A)return 1===A&&u.isXMLDoc(d)||(m=u.propFix[m]||m,x=u.propHooks[m]),void 0!==q?x&&"set"in x&&void 0!==(v=x.set(d,q,m))?v:d[m]=q:x&&"get"in x&&null!==(v=x.get(d,m))?v:d[m]},propHooks:{tabIndex:{get:function(d){var m=u.find.attr(d,"tabindex");return m?parseInt(m,10):X.test(d.nodeName)||la.test(d.nodeName)&&d.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}});ab.optSelected||(u.propHooks.selected={get:function(d){d=d.parentNode;return d&&d.parentNode&&d.parentNode.selectedIndex, 178null},set:function(d){d=d.parentNode;d&&(d.selectedIndex,d.parentNode&&d.parentNode.selectedIndex)}});u.each("tabIndex readOnly maxLength cellSpacing cellPadding rowSpan colSpan useMap frameBorder contentEditable".split(" "),function(){u.propFix[this.toLowerCase()]=this});
vendor: 5,661 bytes, lines 178-189
178u.fn.extend({addClass:function(d){var m,q,v,x,A,D,F,K=0;if(Ia(d))return this.each(function(S){u(this).addClass(d.call(this,S,Za(this)))});if((m=Aa(d)).length)for(;q=this[K++];)if(x=Za(q),v=1===q.nodeType&&" "+pb(x)+" "){for(D=0;A= 179m[D++];)0>v.indexOf(" "+A+" ")&&(v+=A+" ");x!==(F=pb(v))&&q.setAttribute("class",F)}return this},removeClass:function(d){var m,q,v,x,A,D,F,K=0;if(Ia(d))return this.each(function(S){u(this).removeClass(d.call(this,S,Za(this)))});if(!arguments.length)return this.attr("class","");if((m=Aa(d)).length)for(;q=this[K++];)if(x=Za(q),v=1===q.nodeType&&" "+pb(x)+" "){for(D=0;A=m[D++];)for(;-1<v.indexOf(" "+A+" ");)v=v.replace(" "+A+" "," ");x!==(F=pb(v))&&q.setAttribute("class",F)}return this},toggleClass:function(d, 180m){var q=typeof d,v="string"===q||Array.isArray(d);return"boolean"==typeof m&&v?m?this.addClass(d):this.removeClass(d):Ia(d)?this.each(function(x){u(this).toggleClass(d.call(this,x,Za(this),m),m)}):this.each(function(){var x,A;if(v){var D=0;var F=u(this);for(A=Aa(d);x=A[D++];)F.hasClass(x)?F.removeClass(x):F.addClass(x)}else void 0!==d&&"boolean"!==q||((x=Za(this))&&da.set(this,"__className__",x),this.setAttribute&&this.setAttribute("class",x||!1===d?"":da.get(this,"__className__")||""))})},hasClass:function(d){var m, 181q=0;for(d=" "+d+" ";m=this[q++];)if(1===m.nodeType&&-1<(" "+pb(Za(m))+" ").indexOf(d))return!0;return!1}});var ra=/\r/g;u.fn.extend({val:function(d){var m,q,v,x=this[0];return arguments.length?(v=Ia(d),this.each(function(A){var D;1===this.nodeType&&(null==(D=v?d.call(this,A,u(this).val()):d)?D="":"number"==typeof D?D+="":Array.isArray(D)&&(D=u.map(D,function(F){return null==F?"":F+""})),(m=u.valHooks[this.type]||u.valHooks[this.nodeName.toLowerCase()])&&"set"in m&&void 0!==m.set(this,D,"value")|| 182(this.value=D))})):x?(m=u.valHooks[x.type]||u.valHooks[x.nodeName.toLowerCase()])&&"get"in m&&void 0!==(q=m.get(x,"value"))?q:"string"==typeof(q=x.value)?q.replace(ra,""):null==q?"":q:void 0}});u.extend({valHooks:{option:{get:function(d){var m=u.find.attr(d,"value");return null!=m?m:pb(u.text(d))}},select:{get:function(d){var m,q,v=d.options,x=d.selectedIndex,A="select-one"===d.type,D=A?null:[],F=A?x+1:v.length;for(q=0>x?F:A?x:0;q<F;q++)if(!(!(m=v[q]).selected&&q!==x||m.disabled||m.parentNode.disabled&& 183k(m.parentNode,"optgroup"))){if(d=u(m).val(),A)return d;D.push(d)}return D},set:function(d,m){var q,v,x=d.options;m=u.makeArray(m);for(var A=x.length;A--;)((v=x[A]).selected=-1<u.inArray(u.valHooks.option.get(v),m))&&(q=!0);return q||(d.selectedIndex=-1),m}}}});u.each(["radio","checkbox"],function(){u.valHooks[this]={set:function(d,m){if(Array.isArray(m))return d.checked=-1<u.inArray(u(d).val(),m)}};ab.checkOn||(u.valHooks[this].get=function(d){return null===d.getAttribute("value")?"on":d.value})}); 184ab.focusin="onfocusin"in a;var qb=/^(?:focusinfocus|focusoutblur)$/,ta=function(d){d.stopPropagation()};u.extend(u.event,{trigger:function(d,m,q,v){var x,A,D,F,K,S,Y=[q||Oa],R=Xb.call(d,"type")?d.type:d;var pa=Xb.call(d,"namespace")?d.namespace.split("."):[];if(x=S=A=q=q||Oa,3!==q.nodeType&&8!==q.nodeType&&!qb.test(R+u.event.triggered)&&(-1<R.indexOf(".")&&(R=(pa=R.split(".")).shift(),pa.sort()),D=0>R.indexOf(":")&&"on"+R,(d=d[u.expando]?d:new u.Event(R,"object"==typeof d&&d)).isTrigger=v?2:3,d.namespace= 185pa.join("."),d.rnamespace=d.namespace?new RegExp("(^|\\.)"+pa.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,d.result=void 0,d.target||(d.target=q),m=null==m?[d]:u.makeArray(m,[d]),K=u.event.special[R]||{},v||!K.trigger||!1!==K.trigger.apply(q,m))){if(!v&&!K.noBubble&&!gc(q)){var Ba=K.delegateType||R;for(qb.test(Ba+R)||(x=x.parentNode);x;x=x.parentNode)Y.push(x),A=x;A===(q.ownerDocument||Oa)&&Y.push(A.defaultView||A.parentWindow||a)}for(pa=0;(x=Y[pa++])&&!d.isPropagationStopped();)S=x,d.type=1<pa?Ba:K.bindType|| 186R,(F=(da.get(x,"events")||{})[d.type]&&da.get(x,"handle"))&&F.apply(x,m),(F=D&&x[D])&&F.apply&&ya(x)&&(d.result=F.apply(x,m),!1===d.result&&d.preventDefault());return d.type=R,v||d.isDefaultPrevented()||K._default&&!1!==K._default.apply(Y.pop(),m)||!ya(q)||D&&Ia(q[R])&&!gc(q)&&((A=q[D])&&(q[D]=null),u.event.triggered=R,d.isPropagationStopped()&&S.addEventListener(R,ta),q[R](),d.isPropagationStopped()&&S.removeEventListener(R,ta),u.event.triggered=void 0,A&&(q[D]=A)),d.result}},simulate:function(d, 187m,q){d=u.extend(new u.Event,q,{type:d,isSimulated:!0});u.event.trigger(d,null,m)}});u.fn.extend({trigger:function(d,m){return this.each(function(){u.event.trigger(d,m,this)})},triggerHandler:function(d,m){var q=this[0];if(q)return u.event.trigger(d,m,q,!0)}});ab.focusin||u.each({focus:"focusin",blur:"focusout"},function(d,m){var q=function(v){u.event.simulate(m,v.target,u.event.fix(v))};u.event.special[m]={setup:function(){var v=this.ownerDocument||this,x=da.access(v,m);x||v.addEventListener(d,q, 188!0);da.access(v,m,(x||0)+1)},teardown:function(){var v=this.ownerDocument||this,x=da.access(v,m)-1;x?da.access(v,m,x):(v.removeEventListener(d,q,!0),da.remove(v,m))}}});var Ea=a.location,Bb=Date.now(),Ka=/\?/;u.parseXML=function(d){if(!d||"string"!=typeof d)return null;try{var m=(new a.DOMParser).parseFromString(d,"text/xml")}catch(q){m=void 0}return m&&!m.getElementsByTagName("parsererror").length||u.error("Invalid XML: "+d),m};var Db=/\[\]$/,nb=/\r?\n/g,Na=/^(?:submit|button|image|reset|file)$/i, 189wb=/^(?:input|select|textarea|keygen)/i;u.param=function(d,m){var q,v=[],x=function(A,D){D=Ia(D)?D():D;v[v.length]=encodeURIComponent(A)+"\x3d"+encodeURIComponent(null==D?"":D)};if(null==d)return"";if(Array.isArray(d)||d.jquery&&!u.isPlainObject(d))u.each(d,function(){x(this.name,this.value)});else for(q in d)Q(q,d[q],m,x);return v.join("\x26")};
vendor: 4,614 bytes, lines 189-198
189u.fn.extend({serialize:function(){return u.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var d=u.prop(this,"elements"); 190return d?u.makeArray(d):this}).filter(function(){var d=this.type;return this.name&&!u(this).is(":disabled")&&wb.test(this.nodeName)&&!Na.test(d)&&(this.checked||!La.test(d))}).map(function(d,m){d=u(this).val();return null==d?null:Array.isArray(d)?u.map(d,function(q){return{name:m.name,value:q.replace(nb,"\r\n")}}):{name:m.name,value:d.replace(nb,"\r\n")}}).get()}});var Lb=/%20/g,sc=/#.*$/,jc=/([?&])_=[^&]*/,Wc=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ua=/^(?:GET|HEAD)$/,Kc=/^\/\//,wc={},qd={},Fd="*/".concat("*"), 191vd=Oa.createElement("a");vd.href=Ea.href;u.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ea.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ea.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset\x3dUTF-8",accepts:{"*":Fd,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML", 192text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":u.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(d,m){return m?rb(rb(d,u.ajaxSettings),m):rb(u.ajaxSettings,d)},ajaxPrefilter:zc(wc),ajaxTransport:zc(qd),ajax:function(d,m){function q(Xa,Eb,Hc,ad){var uc,Ic,cc,dc,ac,Ta=Eb;Ma||(Ma=!0,F&&a.clearTimeout(F),v=void 0,A=ad||"",Ca.readyState=0<Xa?4:0,uc=200<=Xa&&300>Xa||304===Xa,Hc&&(dc=function(mb,tb,ub){for(var Yb,Ib,hb, 193Qa,xb=mb.contents,jb=mb.dataTypes;"*"===jb[0];)jb.shift(),void 0===Yb&&(Yb=mb.mimeType||tb.getResponseHeader("Content-Type"));if(Yb)for(Ib in xb)if(xb[Ib]&&xb[Ib].test(Yb)){jb.unshift(Ib);break}if(jb[0]in ub)hb=jb[0];else{for(Ib in ub){if(!jb[0]||mb.converters[Ib+" "+jb[0]]){hb=Ib;break}Qa||(Qa=Ib)}hb=hb||Qa}if(hb)return hb!==jb[0]&&jb.unshift(hb),ub[hb]}(R,Ca,Hc)),dc=function(mb,tb,ub,Yb){var Ib,hb,Qa,xb,jb,vc={},Mc=mb.dataTypes.slice();if(Mc[1])for(Qa in mb.converters)vc[Qa.toLowerCase()]=mb.converters[Qa]; 194for(hb=Mc.shift();hb;)if(mb.responseFields[hb]&&(ub[mb.responseFields[hb]]=tb),!jb&&Yb&&mb.dataFilter&&(tb=mb.dataFilter(tb,mb.dataType)),jb=hb,hb=Mc.shift())if("*"===hb)hb=jb;else if("*"!==jb&&jb!==hb){if(!(Qa=vc[jb+" "+hb]||vc["* "+hb]))for(Ib in vc)if((xb=Ib.split(" "))[1]===hb&&(Qa=vc[jb+" "+xb[0]]||vc["* "+xb[0]])){!0===Qa?Qa=vc[Ib]:!0!==vc[Ib]&&(hb=xb[0],Mc.unshift(xb[1]));break}if(!0!==Qa)if(Qa&&mb["throws"])tb=Qa(tb);else try{tb=Qa(tb)}catch(md){return{state:"parsererror",error:Qa?md:"No conversion from "+ 195jb+" to "+hb}}}return{state:"success",data:tb}}(R,dc,Ca,uc),uc?(R.ifModified&&((ac=Ca.getResponseHeader("Last-Modified"))&&(u.lastModified[x]=ac),(ac=Ca.getResponseHeader("etag"))&&(u.etag[x]=ac)),204===Xa||"HEAD"===R.type?Ta="nocontent":304===Xa?Ta="notmodified":(Ta=dc.state,Ic=dc.data,uc=!(cc=dc.error))):(cc=Ta,!Xa&&Ta||(Ta="error",0>Xa&&(Xa=0))),Ca.status=Xa,Ca.statusText=(Eb||Ta)+"",uc?za.resolveWith(pa,[Ic,Ta,Ca]):za.rejectWith(pa,[Ca,Ta,cc]),Ca.statusCode(kb),kb=void 0,K&&Ba.trigger(uc?"ajaxSuccess": 196"ajaxError",[Ca,R,uc?Ic:cc]),Va.fireWith(pa,[Ca,Ta]),K&&(Ba.trigger("ajaxComplete",[Ca,R]),--u.active||u.event.trigger("ajaxStop")))}"object"==typeof d&&(m=d,d=void 0);m=m||{};var v,x,A,D,F,K,S,Y,R=u.ajaxSetup({},m),pa=R.context||R,Ba=R.context&&(pa.nodeType||pa.jquery)?u(pa):u.event,za=u.Deferred(),Va=u.Callbacks("once memory"),kb=R.statusCode||{},qc={},Hb={},bc="canceled",Ca={readyState:0,getResponseHeader:function(Xa){var Eb;if(Ma){if(!D)for(D={};Eb=Wc.exec(A);)D[Eb[1].toLowerCase()+" "]=(D[Eb[1].toLowerCase()+ 197" "]||[]).concat(Eb[2]);Eb=D[Xa.toLowerCase()+" "]}return null==Eb?null:Eb.join(", ")},getAllResponseHeaders:function(){return Ma?A:null},setRequestHeader:function(Xa,Eb){return null==Ma&&(Xa=Hb[Xa.toLowerCase()]=Hb[Xa.toLowerCase()]||Xa,qc[Xa]=Eb),this},overrideMimeType:function(Xa){return null==Ma&&(R.mimeType=Xa),this},statusCode:function(Xa){var Eb;if(Xa)if(Ma)Ca.always(Xa[Ca.status]);else for(Eb in Xa)kb[Eb]=[kb[Eb],Xa[Eb]];return this},abort:function(Xa){Xa=Xa||bc;return v&&v.abort(Xa),q(0, 198Xa),this}};if(za.promise(Ca),R.url=((d||R.url||Ea.href)+"").replace(Kc,Ea.protocol+"//"),R.type=m.method||m.type||R.method||R.type,R.dataTypes=(R.dataType||"*").toLowerCase().match(L)||[""],null==R.crossDomain){d=Oa.createElement("a");try{d.href=R.url,d.href=d.href,R.crossDomain=vd.protocol+"//"+vd.host!=d.protocol+"//"+d.host}catch(Xa){R.crossDomain=!0}}
vendor: 4,354 bytes, lines 198-207
198if(R.data&&R.processData&&"string"!=typeof R.data&&(R.data=u.param(R.data,R.traditional)),Uc(wc,R,m,Ca),Ma)return Ca;for(S in(K=u.event&&R.global)&& 1990==u.active++&&u.event.trigger("ajaxStart"),R.type=R.type.toUpperCase(),R.hasContent=!Ua.test(R.type),x=R.url.replace(sc,""),R.hasContent?R.data&&R.processData&&0===(R.contentType||"").indexOf("application/x-www-form-urlencoded")&&(R.data=R.data.replace(Lb,"+")):(Y=R.url.slice(x.length),R.data&&(R.processData||"string"==typeof R.data)&&(x+=(Ka.test(x)?"\x26":"?")+R.data,delete R.data),!1===R.cache&&(x=x.replace(jc,"$1"),Y=(Ka.test(x)?"\x26":"?")+"_\x3d"+Bb++ +Y),R.url=x+Y),R.ifModified&&(u.lastModified[x]&& 200Ca.setRequestHeader("If-Modified-Since",u.lastModified[x]),u.etag[x]&&Ca.setRequestHeader("If-None-Match",u.etag[x])),(R.data&&R.hasContent&&!1!==R.contentType||m.contentType)&&Ca.setRequestHeader("Content-Type",R.contentType),Ca.setRequestHeader("Accept",R.dataTypes[0]&&R.accepts[R.dataTypes[0]]?R.accepts[R.dataTypes[0]]+("*"!==R.dataTypes[0]?", "+Fd+"; q\x3d0.01":""):R.accepts["*"]),R.headers)Ca.setRequestHeader(S,R.headers[S]);if(R.beforeSend&&(!1===R.beforeSend.call(pa,Ca,R)||Ma))return Ca.abort(); 201if(bc="abort",Va.add(R.complete),Ca.done(R.success),Ca.fail(R.error),v=Uc(qd,R,m,Ca)){if(Ca.readyState=1,K&&Ba.trigger("ajaxSend",[Ca,R]),Ma)return Ca;R.async&&0<R.timeout&&(F=a.setTimeout(function(){Ca.abort("timeout")},R.timeout));try{var Ma=!1;v.send(qc,q)}catch(Xa){if(Ma)throw Xa;q(-1,Xa)}}else q(-1,"No Transport");return Ca},getJSON:function(d,m,q){return u.get(d,m,q,"json")},getScript:function(d,m){return u.get(d,void 0,m,"script")}});u.each(["get","post"],function(d,m){u[m]=function(q,v,x, 202A){return Ia(v)&&(A=A||x,x=v,v=void 0),u.ajax(u.extend({url:q,type:m,dataType:A,data:v,success:x},u.isPlainObject(q)&&q))}});u._evalUrl=function(d,m){return u.ajax({url:d,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(q){u.globalEval(q,m)}})};u.fn.extend({wrapAll:function(d){var m;return this[0]&&(Ia(d)&&(d=d.call(this[0])),m=u(d,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&m.insertBefore(this[0]),m.map(function(){for(var q= 203this;q.firstElementChild;)q=q.firstElementChild;return q}).append(this)),this},wrapInner:function(d){return Ia(d)?this.each(function(m){u(this).wrapInner(d.call(this,m))}):this.each(function(){var m=u(this),q=m.contents();q.length?q.wrapAll(d):m.append(d)})},wrap:function(d){var m=Ia(d);return this.each(function(q){u(this).wrapAll(m?d.call(this,q):d)})},unwrap:function(d){return this.parent(d).not("body").each(function(){u(this).replaceWith(this.childNodes)}),this}});u.expr.pseudos.hidden=function(d){return!u.expr.pseudos.visible(d)}; 204u.expr.pseudos.visible=function(d){return!!(d.offsetWidth||d.offsetHeight||d.getClientRects().length)};u.ajaxSettings.xhr=function(){try{return new a.XMLHttpRequest}catch(d){}};var Xd={0:200,1223:204},hd=u.ajaxSettings.xhr();ab.cors=!!hd&&"withCredentials"in hd;ab.ajax=hd=!!hd;u.ajaxTransport(function(d){var m,q;if(ab.cors||hd&&!d.crossDomain)return{send:function(v,x){var A,D=d.xhr();if(D.open(d.type,d.url,d.async,d.username,d.password),d.xhrFields)for(A in d.xhrFields)D[A]=d.xhrFields[A];for(A in d.mimeType&& 205D.overrideMimeType&&D.overrideMimeType(d.mimeType),d.crossDomain||v["X-Requested-With"]||(v["X-Requested-With"]="XMLHttpRequest"),v)D.setRequestHeader(A,v[A]);m=function(F){return function(){m&&(m=q=D.onload=D.onerror=D.onabort=D.ontimeout=D.onreadystatechange=null,"abort"===F?D.abort():"error"===F?"number"!=typeof D.status?x(0,"error"):x(D.status,D.statusText):x(Xd[D.status]||D.status,D.statusText,"text"!==(D.responseType||"text")||"string"!=typeof D.responseText?{binary:D.response}:{text:D.responseText}, 206D.getAllResponseHeaders()))}};D.onload=m();q=D.onerror=D.ontimeout=m("error");void 0!==D.onabort?D.onabort=q:D.onreadystatechange=function(){4===D.readyState&&a.setTimeout(function(){m&&q()})};m=m("abort");try{D.send(d.hasContent&&d.data||null)}catch(F){if(m)throw F;}},abort:function(){m&&m()}}});u.ajaxPrefilter(function(d){d.crossDomain&&(d.contents.script=!1)});u.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/}, 207converters:{"text script":function(d){return u.globalEval(d),d}}});
207u.ajaxPrefilter("script",function(d){void 0===d.cache&&(d.cache=!1);d.crossDomain&&(d.type="GET")});u.ajaxTransport("script",function(d){var m,q;if(d.crossDomain||d.scriptAttrs)return{send:function(v,x){m=u("\x3cscript\x3e").attr(d.scriptAttrs||{}).prop({charset:d.scriptCharset,src:d.url}).on("load error",q=function(A){m.remove();q=null;A&&x("error"===A.type?404:200,A.type)});Oa.head.appendChild(m[0])},abort:function(){q&&q()}}}); 208var Gd,Hd=[],wd=/(=)\?(?=&|$)|\?\?/;u.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var d=Hd.pop()||u.expando+"_"+Bb++;return this[d]=!0,d}});u.ajaxPrefilter("json jsonp",function(d,m,q){var v,x,A,D=!1!==d.jsonp&&(wd.test(d.url)?"url":"string"==typeof d.data&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&wd.test(d.data)&&"data");if(D||"jsonp"===d.dataTypes[0])return v=d.jsonpCallback=Ia(d.jsonpCallback)?d.jsonpCallback():d.jsonpCallback,D?d[D]=d[D].replace(wd,"$1"+v): 209!1!==d.jsonp&&(d.url+=(Ka.test(d.url)?"\x26":"?")+d.jsonp+"\x3d"+v),d.converters["script json"]=function(){return A||u.error(v+" was not called"),A[0]},d.dataTypes[0]="json",x=a[v],a[v]=function(){A=arguments},q.always(function(){void 0===x?u(a).removeProp(v):a[v]=x;d[v]&&(d.jsonpCallback=m.jsonpCallback,Hd.push(v));A&&Ia(x)&&x(A[0]);A=x=void 0}),"script"});ab.createHTMLDocument=((Gd=Oa.implementation.createHTMLDocument("").body).innerHTML="\x3cform\x3e\x3c/form\x3e\x3cform\x3e\x3c/form\x3e",2=== 210Gd.childNodes.length);u.parseHTML=function(d,m,q){return"string"!=typeof d?[]:("boolean"==typeof m&&(q=m,m=!1),m||(ab.createHTMLDocument?((v=(m=Oa.implementation.createHTMLDocument("")).createElement("base")).href=Oa.location.href,m.head.appendChild(v)):m=Oa),A=!q&&[],(x=Pb.exec(d))?[m.createElement(x[1])]:(x=xa([d],m,A),A&&A.length&&u(A).remove(),u.merge([],x.childNodes)));var v,x,A};u.fn.load=function(d,m,q){var v,x,A,D=this,F=d.indexOf(" ");return-1<F&&(v=pb(d.slice(F)),d=d.slice(0,F)),Ia(m)?(q= 211m,m=void 0):m&&"object"==typeof m&&(x="POST"),0<D.length&&u.ajax({url:d,type:x||"GET",dataType:"html",data:m}).done(function(K){A=arguments;D.html(v?u("\x3cdiv\x3e").append(u.parseHTML(K)).find(v):K)}).always(q&&function(K,S){D.each(function(){q.apply(this,A||[K.responseText,S,K])})}),this};u.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(d,m){u.fn[m]=function(q){return this.on(m,q)}});u.expr.pseudos.animated=function(d){return u.grep(u.timers,function(m){return d=== 212m.elem}).length};u.offset={setOffset:function(d,m,q){var v,x,A,D=u.css(d,"position"),F=u(d),K={};"static"===D&&(d.style.position="relative");var S=F.offset();var Y=u.css(d,"top");var R=u.css(d,"left");("absolute"===D||"fixed"===D)&&-1<(Y+R).indexOf("auto")?(A=(v=F.position()).top,x=v.left):(A=parseFloat(Y)||0,x=parseFloat(R)||0);Ia(m)&&(m=m.call(d,q,u.extend({},S)));null!=m.top&&(K.top=m.top-S.top+A);null!=m.left&&(K.left=m.left-S.left+x);"using"in m?m.using.call(d,K):F.css(K)}};u.fn.extend({offset:function(d){if(arguments.length)return void 0=== 213d?this:this.each(function(x){u.offset.setOffset(this,d,x)});var m,q,v=this[0];return v?v.getClientRects().length?(m=v.getBoundingClientRect(),q=v.ownerDocument.defaultView,{top:m.top+q.pageYOffset,left:m.left+q.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var d,m=this[0],q={top:0,left:0};if("fixed"===u.css(m,"position"))var v=m.getBoundingClientRect();else{v=this.offset();var x=m.ownerDocument;for(d=m.offsetParent||x.documentElement;d&&(d===x.body||d===x.documentElement)&& 214"static"===u.css(d,"position");)d=d.parentNode;d&&d!==m&&1===d.nodeType&&((q=u(d).offset()).top+=u.css(d,"borderTopWidth",!0),q.left+=u.css(d,"borderLeftWidth",!0))}return{top:v.top-q.top-u.css(m,"marginTop",!0),left:v.left-q.left-u.css(m,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var d=this.offsetParent;d&&"static"===u.css(d,"position");)d=d.offsetParent;return d||fc})}});u.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(d,m){var q="pageYOffset"=== 215m;u.fn[d]=function(v){return ka(this,function(x,A,D){var F;if(gc(x)?F=x:9===x.nodeType&&(F=x.defaultView),void 0===D)return F?F[m]:x[A];F?F.scrollTo(q?F.pageXOffset:D,q?D:F.pageYOffset):x[A]=D},d,v,arguments.length)}});u.each(["top","left"],function(d,m){u.cssHooks[m]=Z(ab.pixelPosition,function(q,v){if(v)return v=T(q,m),$b.test(v)?u(q).position()[m]+"px":v})});u.each({Height:"height",Width:"width"},function(d,m){u.each({padding:"inner"+d,content:m,"":"outer"+d}
215,function(q,v){u.fn[v]=function(x,A){var D= 216arguments.length&&(q||"boolean"!=typeof x),F=q||(!0===x||!0===A?"margin":"border");return ka(this,function(K,S,Y){var R;return gc(K)?0===v.indexOf("outer")?K["inner"+d]:K.document.documentElement["client"+d]:9===K.nodeType?(R=K.documentElement,Math.max(K.body["scroll"+d],R["scroll"+d],K.body["offset"+d],R["offset"+d],R["client"+d])):void 0===Y?u.css(K,S,F):u.style(K,S,Y,F)},m,D?x:void 0,D)}})});u.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "), 217function(d,m){u.fn[m]=function(q,v){return 0<arguments.length?this.on(m,null,q,v):this.trigger(m)}});u.fn.extend({hover:function(d,m){return this.mouseenter(d).mouseleave(m||d)}});u.fn.extend({bind:function(d,m,q){return this.on(d,null,m,q)},unbind:function(d,m){return this.off(d,null,m)},delegate:function(d,m,q,v){return this.on(m,d,q,v)},undelegate:function(d,m,q){return 1===arguments.length?this.off(d,"**"):this.off(m,d||"**",q)}});u.proxy=function(d,m){var q,v,x;if("string"==typeof m&&(q=d[m], 218m=d,d=q),Ia(d))return v=Fb.call(arguments,2),(x=function(){return d.apply(m||this,v.concat(Fb.call(arguments)))}).guid=d.guid=d.guid||u.guid++,x};u.holdReady=function(d){d?u.readyWait++:u.ready(!0)};u.isArray=Array.isArray;u.parseJSON=JSON.parse;u.nodeName=k;u.isFunction=Ia;u.isWindow=gc;u.camelCase=w;u.type=e;u.now=Date.now;u.isNumeric=function(d){var m=u.type(d);return("number"===m||"string"===m)&&!isNaN(d-parseFloat(d))};"function"==typeof define&&define.amd&&define("jquery",[],function(){return u}); 219var Yd=a.jQuery,Zd=a.$;return u.noConflict=function(d){return a.$===u&&(a.$=Zd),d&&a.jQuery===u&&(a.jQuery=Yd),u},n||(a.jQuery=a.$=u),u});window.Granite=window.Granite||{};(function(a,n){a.Util=function(){return{patchText:function(h,e){if(e)if(n.isArray(e))for(var c=0;c<e.length;c++)h=h.replace("{"+c+"}",e[c]);else h=h.replace("{0}",e);return h}}}()})(Granite,jQuery); 220(function(a,n,h){a.HTTP=function(){var e=null,c=/^(?:http|https):\/\/[^\/]+(\/.*)\/(?:etc(\/.*)*\/clientlibs|libs(\/.*)*\/clientlibs|apps(\/.*)*\/clientlibs).*\.js(\?.*)?$/,k=/[^1\w-\.!~\*'\(\)\/%;:@&=\$,]/,l=!1,f={getSchemeAndAuthority:function(b){try{if(-1===b.indexOf("://"))return"";var g=b.indexOf("/",b.indexOf("://")+3);return-1===g?b:b.substring(0,g)}catch(p){return""}},getContextPath:function(){return e},detectContextPath:function(){try{if(window.CQURLInfo)e=CQURLInfo.contextPath||"";else{for(var b= 221document.getElementsByTagName("script"),g=0;g<b.length;g++){var p=c.exec(b[g].src);if(p){e=p[1];return}}e=""}}catch(r){}},externalize:function(b){try{0===b.indexOf("/")&&e&&0!==b.indexOf(e+"/")&&(b=e+b)}catch(g){}return b},internalize:function(b,g){if("/"===b.charAt(0))return e===b?"":e&&0===b.indexOf(e+"/")?b.substring(e.length):b;g||(g=document);g=f.getSchemeAndAuthority(g.location.href);var p=f.getSchemeAndAuthority(b);return g===p?b.substring(p.length+(e?e.length:0)):b},getPath:function(b){if(b)b= 222f.removeParameters(b),b=f.removeAnchor(b);else{if(window.CQURLInfo&&CQURLInfo.requestPath)return CQURLInfo.requestPath;b=window.location.pathname}b=f.internalize(b);var g=b.indexOf(".",b.lastIndexOf("/"));-1!==g&&(b=b.substring(0,g));return b},removeAnchor:function(b){return-1!==b.indexOf("#")?b.substring(0,b.indexOf("#")):b},removeParameters:function(b){return-1!==b.indexOf("?")?b.substring(0,b.indexOf("?")):b},encodePathOfURI:function(b){if(-1!==b.indexOf("?")){b=b.split("?");var g="?"}else-1!== 223b.indexOf("#")?(b=b.split("#"),g="#"):b=[b];k.test(b[0])&&(b[0]=f.encodePath(b[0]));return b.join(g)},encodePath:function(b){b=encodeURI(b).replace(/%5B/g,"[").replace(/%5D/g,"]");b=b.replace(/\+/g,"%2B");b=b.replace(/\?/g,"%3F");b=b.replace(/;/g,"%3B");b=b.replace(/#/g,"%23");b=b.replace(/=/g,"%3D");b=b.replace(/\$/g,"%24");b=b.replace(/,/g,"%2C");b=b.replace(/'/g,"%27");return b=b.replace(/"/g,"%22")},handleLoginRedirect:function(){if(!l){l=!0;alert(a.I18n.get("Your request could not be completed because you have been signed out.")); 224var b=n.getTopWindow().document.location;b.href=f.externalize(sling.LOGIN_URL)+"?resource\x3d"+encodeURIComponent(b.pathname+b.search+b.hash)}},getXhrHook:function(b,g,p){g=g||"GET";return window.G_XHR_HOOK&&h.isFunction(G_XHR_HOOK)?(b={url:b,method:g},p&&(b.params=p),G_XHR_HOOK(b)):null},eval:function(b){"object"!==typeof b&&(b=h.ajax({url:b,type:"get",async:!1}));try{return eval("("+(b.body?b.body:b.responseText)+")")}catch(g){}return null}};return f}()})(Granite,Granite.Util,jQuery); 225(function(a,n,h,e,c){n.I18n=function(){var k={}
225,l="/aemapi/v6/common/i18n/dict.",f=".b2c",b=".json",g=void 0,p=!1,r=null,t={},w=!1;t.LOCALE_DEFAULT="en";t.PSEUDO_LANGUAGE="zz";t.PSEUDO_PATTERN_KEY="_pseudoPattern_";t.init=function(y){y=y||{};this.setLocale(y.locale);this.setUrlPrefix(y.urlPrefix);this.setUrlSuffix(y.urlSuffix)};t.setLocale=function(y){y&&(g=c("#language").val()||y)};t.getLocale=function(){c.isFunction(g)&&(g=g());return c("#language").val()||t.LOCALE_DEFAULT};t.setUrlPrefix=function(y){y&& 226(l=y,w=!0)};t.setUrlSuffix=function(y){y&&(b=y,w=!0)};t.getDictionary=function(y){y=y||t.getLocale();if(!k[y]){p=0===y.indexOf(t.PSEUDO_LANGUAGE);try{var C=c.ajax;var E=y,z=c("#i18nAppsParam").val();z&&-1<z.length&&(f="bc"==z?".bc":f+("."+z));if(w)var V=l+E+f+b;else{var ca=c("html").attr("data-i18n-dictionary-src");V=ca?ca.replace("{locale}",encodeURIComponent(E)).replace("{+locale}",E):l+E+f+b}var xa=C.call(c,V,{async:!1,dataType:"json"});k[y]=c.parseJSON(xa.responseText)}catch(ea){}k[y]||(k[y]= 227{})}return k[y]};t.get=function(y,C,E){var z;var V=t.getDictionary();var ca=p?t.PSEUDO_PATTERN_KEY:E?y+" (("+E+"))":y;V&&(z=V[ca]);z||(z=y);p&&(z=z.replace("{string}",y).replace("{comment}",E?E:""));return h.patchText(z,C)};t.getVar=function(y,C){return y?t.get(y,null,C):null};t.getLanguages=function(){if(!r)try{var y=e.eval("/libs/wcm/core/resources/languages.overlay.infinity.json");c.each(y,function(C,E){E.title=t.getVar(E.language);E.title&&E.country&&"*"!==E.country&&(E.title+=" ("+t.getVar(E.country)+ 228")")});r=y}catch(C){r={}}return r};t.parseLocale=function(y){if(!y)return null;var C=y.indexOf("_");0>C&&(C=y.indexOf("-"));if(0>C){var E=y;C=null}else E=y.substring(0,C),C=y.substring(C+1);return{code:y,language:E,country:C}};return t}()})(document,Granite,Granite.Util,Granite.HTTP,jQuery);Granite.HTTP.detectContextPath();var jaaulde=window.jaaulde||{};jaaulde.utils=jaaulde.utils||{}; 229jaaulde.utils.cookies=function(){var a={expiresAt:null,path:"/",domain:null,secure:!1};var n=function(k){if("object"!==typeof k||null===k)var l=a;else{l={expiresAt:a.expiresAt,path:a.path,domain:a.domain,secure:a.secure};if("object"===typeof k.expiresAt&&k.expiresAt instanceof Date)l.expiresAt=k.expiresAt;else if("number"===typeof k.hoursToLive&&0!==k.hoursToLive){var f=new Date;f.setTime(f.getTime()+36E5*k.hoursToLive);l.expiresAt=f}"string"===typeof k.path&&""!==k.path&&(l.path=k.path);"string"=== 230typeof k.domain&&""!==k.domain&&(l.domain=k.domain);!0===k.secure&&(l.secure=k.secure)}return l};var h=function(k){k=n(k);return("object"===typeof k.expiresAt&&k.expiresAt instanceof Date?"; expires\x3d"+k.expiresAt.toGMTString():"")+"; path\x3d"+k.path+("string"===typeof k.domain?"; domain\x3d"+k.domain:"")+(!0===k.secure?"; secure":"")};var e=function(){var k={},l,f=document.cookie.split(";");for(l=0;l<f.length;l+=1){var b=f[l].split("\x3d");var g=b[0].replace(/^\s*/,"").replace(/\s*$/,"");try{var p= 231decodeURIComponent(b[1])}catch(t){p=b[1]}if("object"===typeof JSON&&null!==JSON&&"function"===typeof JSON.parse)try{var r=p;p=JSON.parse(p)}catch(t){p=r}k[g]=p}return k};var c=function(){};c.prototype.get=function(k){var l,f=e();if("string"===typeof k)var b="undefined"!==typeof f[k]?f[k]:null;else if("object"===typeof k&&null!==k)for(l in b={},k)b[k[l]]="undefined"!==typeof f[k[l]]?f[k[l]]:null;else b=f;return b};c.prototype.filter=function(k){var l,f={},b=e();"string"===typeof k&&(k=new RegExp(k)); 232for(l in b)l.match(k)&&(f[l]=b[l]);return f};c.prototype.set=function(k,l,f){if("object"!==typeof f||null===f)f={};if("undefined"===typeof l||null===l)l="",f.hoursToLive=-8760;else if("string"!==typeof l)if("object"===typeof JSON&&null!==JSON&&"function"===typeof JSON.stringify)l=JSON.stringify(l);else throw Error("cookies.set() received non-string value and could not serialize.");f=h(f);document.cookie=k+"\x3d"+encodeURIComponent(l)+f};c.prototype.del=function(k,l){var f={},b;if("object"!==typeof l|| 233null===l)l={};"boolean"===typeof k&&!0===k?f=this.get():"string"===typeof k&&(f[k]=!0);for(b in f)"string"===typeof b&&""!==b&&this.set(b,null,l)};c.prototype.test=function(){var k=!1;this.set("cT","data");"data"===this.get("cT")&&(this.del("cT"),k=!0);return k};c.prototype.setOptions=function(k){"object"!==typeof k&&(k=null);a=n(k)};return new c}(); 234(function(){window.jQuery&&function(a){a.cookies=jaaulde.utils.cookies;a.each({cookify:function(n){return this.each(function(){var h,e=["name","id"],c=a(this),k;for(h in e)if(!isNaN(h)){var l=c.attr(e[h]);if("string"===typeof l&&""!==l){c.is(":checkbox, :radio")?c.attr("checked")&&(k=c.val()):k=c.is(":input")?c.val():c.html();if("string"!==typeof k||""===k)k=null;a.cookies.set(l,k,n);break}}})},cookieFill:function(){return this.each(function(){var n,h,e=["name","id"],c=a(this);for(h=function(){n= 235e.pop();return!!n};h();){var k=c.attr(n);if("string"===typeof k&&""!==k){h=a.cookies.get(k);null!==h&&(c.is(":checkbox, :radio")?c.val()===h?c.attr("checked","checked"):c.removeAttr("checked"):c.is(":input")?c.val(h):c.html(h));break}}})},cookieBind:function(n){return this.each(function(){var h=a(this);h.cookieFill().change(function(){h.cookify(n)})})}},function(n){a.fn[n]=this})}(window.jQuery)})();Granite.I18n.setLocale($("#language").val());
236var NUMBER_GROUP_PATTERN=/\B(?=(\d{3})+(?!\d))/g,SAUDI_CURRENCY_SYMBOL=String.fromCodePoint(8385);function getMultistoreSiteCode(a){var n={levant:"jo",levant_ar:"jo_ar",n_africa:"ma"};if(n[a])return n[a];if("ae"===a||"ae_ar"===a){n="ae ae_ar kw kw_ar om om_ar bh bh_ar qa qa_ar".split(" ");var h=$.cookies.get("estoreSitecode");if(h&&n.includes(h))return h}return a} 237var currencyComma=function(a,n){null!=n&&(n=n.toLowerCase());if(null===a||""===a)return"";a=String(a);var h=$("#siteCode").val();if(-1<a.indexOf(".")){var e=a.split(".");1<e.length&&2>e[1].length?a+="0":2<e[1].length&&(a=Number(a).toFixed(2))}e="";var c=getMultistoreSiteCode(h);switch(n){case "usd":if("n_africa"===h)return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g," "):a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",e+" DH";if("iq_ar"===h||"iq_ku"===h)return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g, 238","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00",e+" $";e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+e;case "cad":if("ca_fr"===h)return-1<a.indexOf(".")?(e=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),e=e.replace(".",",")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",e+" $";e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+e;case "eur":if("de"===h||"es"===h||"be_fr"=== 239h||"it"===h||"pt"===h)return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,".")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00","be_fr"===h?e:e+" \u20ac";if("fi"===h||"fr"===h||"sk"===h||"at"===h||"ee"===h||"lt"===h||"lv"===h||"hr"===h)return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g," ")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",e+" \u20ac";if("si"==h)return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g, 240".")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+",00",e+" \u20ac";if("bg"==h)return-1<a.indexOf(".")?(e=a.replace(".","\x3csup\x3e"),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\x3c/sup\x3e"):e=a.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\u2070\u2070",e+" \u20ac";-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,".")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00";return"be"===h||"nl"===h?e:"gr"===h?e+" \u20ac":"\u20ac "+e;case "gbp":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g, 241","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u00a3"+e;case "sek":return e=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),e+" kr";case "dkk":return-1<a.indexOf(".")&&(a=parseFloat(a).toFixed(0)),e=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),e+" kr";case "nok":return e=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),e+" kr";case "brl":return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,".")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00","R$ "+e;case "inr":return h=".00",-1<a.indexOf(".")? 242(n=a.substring(0,a.indexOf(".")),h=a.substring(a.indexOf("."))):n=a,"\u20b9 "+(n+h);case "krw":return e=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),e+"\uc6d0";case "aed":if("ae_ar"===h)return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","kw_ar"==c?e+" \u062f.\u0643":"om_ar"==c?e+" \u0631.\u0639.":"bh_ar"==c?e+" .\u062f.\u0628":"qa_ar"==c?e+" \u0631.\u0642":e+" \u062f.\u0625";e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g, 243",")+".00";return"kw"==c?e+" KD":"bh"==c?e+" BD":"om"==c?e+" RO":"qa"==c?e+" QAR":e+" AED";case "rub":return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g," ")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),e+" \u20bd";case "twd":return e=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),"NT$"+e;case "czk":return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g," ")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),e+" K\u010d";case "myr":return e=-1<a.indexOf(".")? 244a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","RM "+e;case "idr":return e=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"Rp "+e;case "pln":return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g," ")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",e+" z\u0142";case "ron":return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,".")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",e+" lei";case "php":return e=-1<a.indexOf(".")? 245a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u20b1"+e;case "sar":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","sa"==siteCode?e+" "+SAUDI_CURRENCY_SYMBOL:SAUDI_CURRENCY_SYMBOL+" "+e;case "pab":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","US$ "+e;case "mxn":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g, 246",")+".00","$ "+e;case "ars":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","$ "+e;case "pen":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","s/ "+e;case "clp":return e=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"$ "+e;case "cop":return e=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"$ "+e;case "vnd":return e=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),e+" VND";case "chf":if("ch"===h|| 247"ch_fr"===h)return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,".")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",e+" CHF";e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,"'"):a.replace(/\B(?=(\d{3})+(?!\d))/g,"'")+".00";return"CHF "+e;case "hkd":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","HK$ "+e;case "jod":case "lbp":e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g, 248",")+".00";if("jo"==c)return e+" JD";if("jo_ar"==c)return e+" \u062f.\u0627";break;case "pkr":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","Rs. "+e;case "ils":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00",e+" \u20aa";case "kzt":return e=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),e+" \u20b8";case "egp":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g,","):a.replace(/\B(?=(\d{3})+(?!\d))/g, 249",")+".00",e+" \u062c.\u0645.";case "huf":return a=String(Math.ceil(parseFloat(a))),e=a.replace(/\B(?=(\d{3})+(?!\d))/g,"."),e+" Ft";case "hrk":return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,".")+" kn"):e=a.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00 kn",e;case "uah":return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g," ")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g," "),e+" \u20b4";case "jpy":case "yen":return-1<a.indexOf(".")&&(a=parseFloat(a).toFixed(0)), 250e=a.replace(/\B(?=(\d{3})+(?!\d))/g,","),e+"\u5186";case "iqd":if(-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g," ")):e=a.replace(/\B(?=(\d{3}
250)+(?!\d))/g,","),"iq_ar"===h||"iq_ku"===h)return e+"\u062f.\u0639";case "mad":return e=-1<a.indexOf(".")?a.replace(/\B(?=(\d{3})+(?!\d))/g," "):a.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",e+" DH";case "cny":return"\uffe5 "+a;case "try":return-1<a.indexOf(".")?(e=a.replace(".",","),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,".")):e=a.replace(/\B(?=(\d{3})+(?!\d))/g, 251".")+",00",e+" TL";case "bgn":return-1<a.indexOf(".")?(e=a.replace(".","\x3csup\x3e"),e=e.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\x3c/sup\x3e"):e=a.replace(/\B(?=(\d{3})+(?!\d))/g,"")+"\u2070\u2070",e+" \u043b\u0432";default:try{e=parseFloat(a).toLocaleString($("#localLang").val(),{style:"currency",currency:n.toUpperCase()})}catch(k){e=a}return e}},currencyCommaExcep=function(a,n){null!=n&&(n=n.toLowerCase());if(null===a||""===a)return"";var h=String(a),e=$("#siteCode").val();if(-1<h.indexOf(".")){var c= 252h.split(".");1<c.length&&2>c[1].length?h+="0":2<c[1].length&&"id"!==e&&(h=Number(h).toFixed(2))}var k=c="";if("levant"===e)k="jo";else if("levant_ar"===e)k="jo_ar";else if("ae"===e||"ae_ar"===e)$.cookies.get("estoreSitecode")?(k=$.cookies.get("estoreSitecode").toString(),k="ae"===k||"ae_ar"===k||"kw"===k||"kw_ar"===k||"om"===k||"om_ar"===k||"bh"===k||"bh_ar"===k||"qa"===k||"qa_ar"===k?k:e):k=e;switch(n){case "usd":if("n_africa"===e)return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g," "): 253h.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",c+" DH";c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+c;case "dollar":if("ca_fr"===e)return-1<h.indexOf(".")?(c=h.replace(/\B(?=(\d{3})+(?!\d))/g," "),c=c.replace(".",",")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",c+" $";c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"$"+c;case "eur":if("de"===e||"es"===e||"be_fr"===e|| 254"it"===e||"pt"===e)return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,".")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",c+" \u20ac";if("fi"===e||"fr"===e||"sk"===e||"at"===e||"ee"===e||"lt"===e||"lv"===e||"si"===e)return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g," ")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",c+" \u20ac";if("gr"===e)return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g, 255",")+".00","\u20ac"+c;-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,".")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00";return"be"===e||"nl"===e?c:"\u20ac "+c;case "gbp":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u00a3"+c;case "sek":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g," "),c+" kr";case "dkk":return-1<h.indexOf(".")&&(h=parseFloat(h).toFixed(0)),c=h.replace(/\B(?=(\d{3})+(?!\d))/g,"."),c+" kr"; 256case "nok":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g," "),c+" kr";case "brl":return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,".")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00","R$ "+c;case "inr":return n=".00",-1<h.indexOf(".")?(a=h.substring(0,h.indexOf(".")),n=h.substring(h.indexOf("."))):a=h,"\u20b9 "+(a+n);case "krw":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,","),c+"\uc6d0";case "aed":if("ae_ar"===e)return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g, 257","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","kw_ar"==k?c+" \u062f.\u0643":"om_ar"==k?c+" \u0631.\u0639.":"bh_ar"==k?c+" .\u062f.\u0628":"qa_ar"==k?c+" \u0631.\u0642":c+" \u062f.\u0625";c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";return"kw"==k?c+" KD":"bh"==k?c+" BD":"om"==k?c+" RO":"qa"==k?c+" QAR":c+" AED";case "rub":return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g," ")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g, 258" "),c+" \u20bd";case "twd":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,","),"NT$"+c;case "czk":return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g," ")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g," "),c+" K\u010d";case "myr":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","RM "+c;case "idr":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"Rp "+c;case "pln":return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g, 259" ")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g," ")+",00",c+" z\u0142";case "ron":return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,".")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",c+" lei";case "php":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","\u20b1"+c;case "sar":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","sa"==siteCode?c+" "+SAUDI_CURRENCY_SYMBOL: 260SAUDI_CURRENCY_SYMBOL+" "+c;case "pab":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","US$ "+c;case "mxn":return"$ "+a;case "ars":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","$ "+c;case "pen":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","s/ "+c;case "clp":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,"."), 261"$ "+c;case "cop":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,"."),"$ "+c;case "vnd":return c=h.replace(/\B(?=(\d{3})+(?!\d))/g,"."),c+" VND";case "chf":if("ch"===e||"ch_fr"===e)return-1<h.indexOf(".")?(c=h.replace(".",","),c=c.replace(/\B(?=(\d{3})+(?!\d))/g,".")):c=h.replace(/\B(?=(\d{3})+(?!\d))/g,".")+",00",c+" CHF";c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,"'"):h.replace(/\B(?=(\d{3})+(?!\d))/g,"'")+".00";return"CHF "+c;case "hkd":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g, 262","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","HK$ "+c;case "jod":case "lbp":c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00";if("jo"==k)return c+" JD";if("jo_ar"==k)return c+" \u062f.\u0627";case "pkr":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00","Rs. "+c;case "ils":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g,","):h.replace(/\B(?=(\d{3})+(?!\d))/g,",")+".00", 263c+" \u20aa";case "mad":return c=-1<h.indexOf(".")?h.replace(/\B(?=(\d{3})+(?!\d))/g," "):h.replace(/\B(?=(\d{3})+(?!\d))/g," ")+".00",c+" DH";
263default:try{c=parseFloat(h).toLocaleString($("#localLang").val(),{style:"currency",currency:n.toUpperCase()})}catch(l){c=h}return c}},deleteCurrencyComma=function(a,n){var h="",e=$("#siteCode").val();null!=n&&(n=n.toLowerCase());if(fnIsNull(a))return"";"ca_fr"===e||"eur"===n&&"gr"!==e||"rub"===n||"brl"===n||"pln"===n||"ron"===n||"krw"===n||"twd"===n||"ch"=== 264e||"ch_fr"===e?-1<a.indexOf(",")?(a=a.split(","),null!=a[0]&&""!=a[0]&&(h=a[0].replace(/[^0-9]/g,"")),null!=a[1]&&""!=a[1]&&(h+="."+a[1].replace(/[^0-9]/g,""))):h=a.replace(/[^0-9]/g,""):"pk"===e?-1<a.indexOf(".")&&(a=a.split("."),null!=a[1]&&""!=a[1]&&(h=a[1].replace(/[^0-9]/g,"")),null!=a[2]&&""!=a[2]&&(h+="."+a[2].replace(/[^0-9]/g,""))):-1<a.indexOf(".")?(a=a.split("."),null!=a[0]&&""!=a[0]&&(h=a[0].replace(/[^0-9]/g,"")),null!=a[1]&&""!=a[1]&&(h+="."+a[1].replace(/[^0-9]/g,""))):h=a.replace(/[^0-9]/g, 265"");return h};String.prototype.comma=function(a){return this.replace(NUMBER_GROUP_PATTERN,a)};function checkFlot(a){return 0!=a%1} 266var currencyInfo=function(a,n,h){h=void 0===h?!1:h;null!=n&&(n=n.toLowerCase());if(null===a||""===a)return"";a=String(a);var e=$("#siteCode").val(),c=checkFlot(a);if(c){var k=a.split(".");1<k.length&&2>k[1].length?a+="0":2<k[1].length&&(a=Number(a).toFixed(2))}var l=k="";if("levant"===e)l="jo";else if("levant_ar"===e)l="jo_ar";else if("ae"===e||"ae_ar"===e)if($.cookies.get("estoreSitecode")){var f=$.cookies.get("estoreSitecode").toString();l="ae"===f||"ae_ar"===f||"kw"===f||"kw_ar"===f||"om"===f|| 267"om_ar"===f||"bh"===f||"bh_ar"===f||"qa"===f||"qa_ar"===f?f:e}else l=e;var b=".00",g=",00";h&&(g=b="");var p=h="";f="";switch(n){case "usd":"n_africa"===e?(k=a.comma(" "),f=b,h=" DH"):"iq_ar"===e||"iq_ku"===e?(k=a.comma(","),f=b,h=" $"):(k=a.comma(","),f=b,p="$");break;case "cad":"ca_fr"===e?(k=a.comma(" "),k=k.replace(".",","),f=g,h=" $"):(k=a.comma(","),f=b,p="$");break;case "eur":"de"===e||"es"===e||"be_fr"===e||"it"===e||"pt"===e?(k=a.replace(".",","),k=k.comma("."),f=g,"be_fr"!==e&&(h=" \u20ac")): 268"fi"===e||"fr"===e||"sk"===e||"at"===e||"ee"===e||"lt"===e||"lv"===e||"hr"===e?(k=a.replace(".",","),k=k.comma(" "),f=g,h=" \u20ac"):"si"==e?(k=a.replace(".",","),k=k.comma("."),f=g,h=" \u20ac"):(c?(k=a.replace(".",","),k=k.comma(".")):f=g,"be"!==e&&"nl"!==e?p="\u20ac ":"gr"===e&&(h=" \u20ac"));break;case "gbp":k=a.comma(",");f=b;p="\u00a3";break;case "sek":k=a.comma(" ");h=" kr";break;case "dkk":k=a.comma(" ");h=" kr";break;case "nok":k=a.comma(" ");h=" kr";break;case "brl":k=a.replace(".",","); 269k=k.comma(".");f=g;p="R$ ";break;case "inr":n=b;c?(c=a.substring(0,a.indexOf(".")),n=a.substring(a.indexOf("."))):c=a;k=c+n;p="\u20b9 ";break;case "krw":k=a.comma(",");h="\uc6d0";break;case "aed":"ae_ar"===e?(k=a.comma(","),f=b,h="kw_ar"==l?" \u062f.\u0643":"om_ar"==l?" \u0631.\u0639.":"bh_ar"==l?" .\u062f.\u0628":"qa_ar"==l?" \u0631.\u0642":" \u062f.\u0625"):(k=a.comma(","),f=b,h="kw"==l?" KD":"bh"==l?" BD":"om"==l?" RO":"qa"==l?" QAR":" AED");break;case "rub":k=a.replace(".",",");k.comma(" ");k= 270a.comma(" ");h=" \u20bd";break;case "twd":k=a.comma(",");p="NT$";break;case "czk":k=a.replace(".",",");k.comma(" ");k=a.comma(" ");h=" K\u010d";break;case "myr":k=a.comma(",");f=b;p="RM ";break;case "idr":k=a.comma(".");p="Rp ";break;case "pln":k=a.replace(".",",");k=k.comma(" ");f=g;h=" z\u0142";break;case "ron":k=a.replace(".",",");k=k.comma(".");f=g;h=" lei";break;case "php":k=a.comma(",");f=b;p="\u20b1";break;case "sar":k=a.comma(",");f=b;h="sa"==siteCode?" "+SAUDI_CURRENCY_SYMBOL:SAUDI_CURRENCY_SYMBOL+ 271" ";break;case "pab":k=a.comma(",");f=b;p="US$ ";break;case "mxn":k=a.comma(",");f=b;p="$ ";break;case "ars":k=a.comma(",");f=b;p="$ ";break;case "pen":k=a.comma(",");f=b;p="s/ ";break;case "clp":k=a.comma(".");p="$ ";break;case "cop":k=a.comma(".");p="$ ";break;case "vnd":k=a.comma(".");h=" VND";break;case "chf":"ch"===e||"ch_fr"===e?(k=a.replace(".",","),k=k.comma("."),f=g,h=" CHF"):(a.comma("'"),k=a.comma("'")+b,p="CHF ");break;case "hkd":k=a.comma(",");f=b;p="HK$ ";break;case "jod":break;case "lbp":k= 272a.comma(",");f=b;"jo"==l?h=" JD":"jo_ar"==l&&(h=" \u062f.\u0627");break;case "pkr":k=a.comma(",");f=b;p="Rs. ";break;case "ils":k=a.comma(",");f=b;h=" \u20aa";break;case "kzt":k=a.comma(" ");h=" \u20b8";break;case "egp":k=a.comma(",");f=b;h=" \u062c.\u0645.";break;case "huf":a=String(Math.ceil(parseFloat(a)));k=a.comma(".");h=" Ft";break;case "hrk":k=a.replace(".",",");k=k.comma(".");f=g;h=" kn";break;case "uah":-1<a.indexOf(".")?(k=a.replace(".",","),k=k.comma(" ")):k=a.comma(" ");h=" \u20b4";break; 273case "jpy":k=a.comma(",");h="\u5186";break;case "yen":k=a.comma(",");h="\u5186";break;case "iqd":c?(k=a.replace(".",","),k=k.comma(" ")):k=a.comma(",");"iq_ar"===e?h="\u062f.\u0639":"iq_ku"===e&&(h="\u062f.\u0639");break;case "mad":k=a.comma(" ");f=b;h=" DH";break;case "cny":k=a;p="\uffe5 ";break;case "try":k=a.replace(".",",");k=k.comma(".");f=g;h=" TL";break;
273default:try{k=parseFloat(a).toLocaleString($("#localLang").val(),{style:"currency",currency:n.toUpperCase()})}catch(r){k=a}}checkFlot(k)|| 274(k+=f);return{suffix:h,prefix:p,value:p+k+h,currency:(p+h).replace(" ","")}},deleteCurrency=function(a,n){if(fnIsNull(a))return"";if("cl"==siteCode||"py"==siteCode)a=a.replace(/[^0-9]/g,"");else if(("pe"==siteCode||"ar"==siteCode||"co"==siteCode||"pk"===siteCode)&&-1<a.indexOf(".")){var h=a.split(".");"pk"===siteCode?null!=h[1]&&""!=h[1]&&(a=h[1].replace(/[^0-9]/g,"")):null!=h[0]&&""!=h[0]&&(a=h[0].replace(/[^0-9]/g,""))}h=a;null!=n&&(n=n.toLowerCase());switch(n){case "usd":return-1<a.indexOf("$")&& 275(h=a.replace("$","")),h;case "dollar":return-1<a.indexOf("$")&&(h=a.replace("$","")),h;case "eur":return-1<a.indexOf("\u20ac")&&(h=a.replace("\u20ac","")),h;case "gbp":return-1<a.indexOf("\u00a3")&&(h=a.replace("\u00a3","")),h;case "sek":return-1<a.indexOf("kr")&&(h=a.replace("kr","")),h;case "dkk":return-1<a.indexOf("kr")&&(h=a.replace("kr","")),h;case "nok":return-1<a.indexOf("kr")&&(h=a.replace("kr","")),h;case "brl":return-1<a.indexOf("R$")&&(h=a.replace(".","").replace("R$","").replace(" ","").replace(",", 276".")),h;case "inr":return-1<a.indexOf("\u20b9")&&(h=a.replace("\u20b9","")),"\u20b9"+h;case "krw":return-1<a.indexOf("\uc6d0")&&(h=a.replace("\uc6d0","")),h;case "ae":return"ae_ar"===siteCode?-1<a.indexOf("\u062f.\u0625")&&(h=a.replace("\u062f.\u0625","")):-1<a.indexOf("AED")&&(h=a.replace("AED","")),h;case "rub":return-1<a.indexOf("\u20bd")&&(h=a.replace("\u20bd","")),h;case "twd":return-1<a.indexOf("NT$")&&(h=a.replace("NT$","")),"NT$"+h;case "czk":return-1<a.indexOf("K\u010d")&&(h=a.replace("K\u010d", 277"")),h;case "myr":return-1<a.indexOf("RM")&&(h=a.replace("RM","")),h;case "aed":return-1<a.indexOf(" \u062f.\u0625")&&(h=a.replace(" \u062f.\u0625","")),h;case "pab":return-1<a.indexOf("U$S")?h=a.replace("U$S","").replace(",","").replace(" ",""):-1<a.indexOf("US$")&&(h=a.replace("US$","").replace(",","").replace(" ","")),h;case "mxn":return-1<a.indexOf("$")&&(h=a.replace("$","").replace(" ","")),h;case "ars":return-1<a.indexOf("$")&&(h=a.replace("$","").replace(" ","")),h;case "pen":return-1<a.indexOf("s/")&& 278(h=a.replace("s/","").replace(" ","")),h;case "clp":return-1<a.indexOf("$")&&(h=a.replace("$","").replace(" ","")),h;case "cop":return-1<a.indexOf("$")&&(h=a.replace("$","").replace(" ","")),h;case "pyg":return-1<a.indexOf("\u20b2")&&(h=a.replace("\u20b2","").replace(" ","")),h;case "hkd":return-1<a.indexOf("HK$")&&(h=a.replace("HK$","").replace(" ","")),h;case "pkr":return a.indexOf("Rs."),h;case "ils":return-1<a.indexOf("\u20aa")&&(h=a.replace("\u20aa","").replace(" ","")),h;case "mad":return-1< 279a.indexOf("DH")&&(h=a.replace("DH","")),h;default:return a}},imagePreset=function(a){return-1<a.indexOf("jpg")?"?$ORIGIN_JPG$":-1<a.indexOf("jpeg")?"?$ORIGIN_JPG$":-1<a.indexOf("png")?"?$ORIGIN_PNG$":-1<a.indexOf("gif")?"?$ORIGIN_GIF$":"?$ORIGIN_PNG$"},imgDomain=function(a,n){var h="",e=$("#scene7domain").val();null!==a&&(-1<a.indexOf("image.samsung.com")?h=a+imagePreset(a):-1<a.indexOf("http:")||""===a?h=a:(n&&(e=e.replace("/image/","/content/")),h=e+a+imagePreset(a)));return h},jqueryImgsrc=function(a, 280n,h){if(null===a)return"";-1<a.indexOf("/content/dam/samsung")&&("qa"===n?(a="stg"===h?a.replace("/content/dam/samsung","//stg-images.samsung.com/is/image/samsung/assets"):"prod"===h?a.replace("/content/dam/samsung","//stg-images.samsung.com/is/image/samsung/assets"):a.replace("/content/dam/samsung","//stg-images.samsung.com/is/image/samsungdev/assets"),a+=imagePreset(a)):"live"===n&&(a="stg"===h?a.replace("/content/dam/samsung","//images.samsung.com/is/image/samsungstg/assets"):"prod"===h?a.replace("/content/dam/samsung", 281"//images.samsung.com/is/image/samsung/assets"):a.replace("/content/dam/samsung","//images.samsung.com/is/image/samsungdev/assets"),a+=imagePreset(a)));return a},dateFormat=function(){var a=/d{1,4}|m{1,4}|yy(?:yy)?|([HhMsTt])\1?|[LloSZ]|"[^"]*"|'[^']*'/g,n=/\b(?:[PMCEA][SDP]T|(?:Pacific|Mountain|Central|Eastern|Atlantic) (?:Standard|Daylight|Prevailing) Time|(?:GMT|UTC)(?:[-+]\d{4})?)\b/g,h=/[^-+\dA-Z]/g,e=function(c,k){c=String(c);for(k=k||2;c.length<k;)c="0"+c;return c};return function(c,k,l){var f= 282dateFormat,b=c;1!==arguments.length||"[object String]"!==Object.prototype.toString.call(c)||/\d/.test(c)||(k=c,c=void 0);c=c?new Date(c):new Date;
282if(isNaN(c)){if(b)return b;throw SyntaxError("invalid date");}k=String(f.masks[k]||k||f.masks["default"]);"UTC:"===k.slice(0,4)&&(k=k.slice(4),l=!0);var g=l?"getUTC":"get";b=c[g+"Date"]();var p=c[g+"Day"](),r=c[g+"Month"](),t=c[g+"FullYear"](),w=c[g+"Hours"](),y=c[g+"Minutes"](),C=c[g+"Seconds"]();g=c[g+"Milliseconds"]();var E=l?0:c.getTimezoneOffset(), 283z={d:b,dd:e(b),ddd:f.i18n.dayNames[p],dddd:f.i18n.dayNames[p+7],m:r+1,mm:e(r+1),mmm:f.i18n.monthNames[r],mmmm:f.i18n.monthNames[r+12],yy:String(t).slice(2),yyyy:t,h:w%12||12,hh:e(w%12||12),H:w,HH:e(w),M:y,MM:e(y),s:C,ss:e(C),l:e(g,3),L:e(99<g?Math.round(g/10):g),t:12>w?"a":"p",tt:12>w?"am":"pm",T:12>w?"A":"P",TT:12>w?"AM":"PM",Z:l?"UTC":(String(c).match(n)||[""]).pop().replace(h,""),o:(0<E?"-":"+")+e(100*Math.floor(Math.abs(E)/60)+Math.abs(E)%60,4),S:["th","st","nd","rd"][3<b%10?0:(10!==b%100-b%10)* 284b%10]};return k.replace(a,function(V){return V in z?z[V]:V.slice(1,V.length-1)})}}();dateFormat.masks={"default":"ddd mmm dd yyyy HH:MM:ss",shortDate:"m/d/yy",mediumDate:"mmm d, yyyy",longDate:"mmmm d, yyyy",fullDate:"dddd, mmmm d, yyyy",shortTime:"h:MM TT",mediumTime:"h:MM:ss TT",longTime:"h:MM:ss TT Z",isoDate:"yyyy-mm-dd",isoTime:"HH:MM:ss",isoDateTime:"yyyy-mm-dd'T'HH:MM:ss",isoUtcDateTime:"UTC:yyyy-mm-dd'T'HH:MM:ss'Z'"}; 285dateFormat.i18n={dayNames:"Sun Mon Tue Wed Thu Fri Sat Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),monthNames:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec January February March April May June July August September October November December".split(" ")};Date.prototype.format=function(a,n){return dateFormat(this,a,n)}; 286var loginJwtApiCal=function(a,n,h){var e={jwt:loginJwt};if("us"===siteCode){var c=$.cookies.get("epp_verified",{domain:".samsung.com"}),k=$.cookies.get("tmktid",{domain:".samsung.com"}),l=$.cookies.get("store_id",{domain:".samsung.com"});null!=c&&(c=c.toString(),"true"==c&&null!=k&&""!=k?e.store_id=k.toString():null!=l&&""!=l&&(e.store_id=l.toString()))}$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/user/validate",type:"POST", 287dataType:"json",data:JSON.stringify(e),timeout:1E4,xhrFields:{withCredentials:!0},async:!1,beforeSend:function(f){"Y"===buyingMultiLanguageYn&&f.setRequestHeader("x-ecom-locale",n)},success:function(f){if(200!==f.statusCode&&"200"!==f.statusCode)return $.cookies.del("jwt_"+h,{domain:".samsung.com"}),{isValidJwtToken:!1}},error:function(f,b,g){console.error(b);return null==f.responseJSON||"StoreIdNotPresent"!==f.responseJSON.error?($.cookies.del("jwt_"+h,{domain:".samsung.com"}),{isValidJwtToken:!1}): 288{loginFlag:!1}}})},isValidJwtTokenApiCal=function(a,n,h,e){$.cookies.get("ReD",{domain:".samsung.com"});a=$("#siteCode").val();var c=!1;$.ajax({url:"/aemapi/v6/data-login/callSALogin."+a+".json",type:"GET",dataType:"json",success:function(k){200===k.statusCode&&"Y"===k.redCookieChk&&$.cookies.get("jwt_"+h,{domain:".samsung.com"})&&(c=!0)},error:function(k,l,f){}});return c},loginJwtValidateApiCal=function(a,n,h,e,c){var k=!1;h={jwt:c};if("us"===siteCode){c=$.cookies.get("epp_verified",{domain:".samsung.com"}); 289var l=$.cookies.get("tmktid",{domain:".samsung.com"}),f=$.cookies.get("store_id",{domain:".samsung.com"});null!=c&&(c=c.toString(),"true"==c&&null!=l&&""!=l?h.store_id=l.toString():null!=f&&""!=f&&(h.store_id=f.toString()))}$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(h),xhrFields:{withCredentials:!0},async:!1,beforeSend:function(b){"Y"===e&&b.setRequestHeader("x-ecom-locale", 290n)},success:function(b){200===b.statusCode||"200"===b.statusCode?(k=!0,$("#loginValidateYnForGPv2").val("Y")):$("#loginValidateYnForGPv2").val("N")},error:function(){$("#loginValidateYnForGPv2").val("N")}});return k},commonLoginCheck=function(a){var n="GPv2"===$("#shopIntegrationFlag").val()?!0:!1,h=function(){$("#loginValidateYnForGPv2").val("N");return!1};if(checkEppSite())if(null!=window.sg.epp&&null!=window.sg.epp.common)if(a&&"function"===typeof a)a(window.sg.epp.common.isLogged);else return window.sg.epp.common.isLogged; 291else return!1;else if(n){a=$("#storeDomain").val();n=$("#countryIsoCode").val();
291var e=$("#multiLanguageYn").val(),c=$("#localLang").val(),k=$.cookies.get("xsdcxyn",{domain:".samsung.com"}),l=$.cookies.get("jwt_"+n,{domain:".samsung.com"}),f=$("#loginValidateYnForGPv2").val(),b=!1,g=!0;if("in"!==$("#siteCode").val()||a||n)if(f){if("Y"===f)return!0;if("N"===f)return!1}else{if(null!=l){k={jwt:l};var p=!1;"us"===siteCode&&(b=$.cookies.get("epp_verified",{domain:".samsung.com"}),l=$.cookies.get("tmktid", 292{domain:".samsung.com"}),f=$.cookies.get("store_id",{domain:".samsung.com"}),null!=b&&(b=b.toString(),"true"==b&&null!=l&&""!=l?k.store_id=l.toString():null!=f&&""!=f&&(k.store_id=f.toString())),$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/jwt/details",type:"POST",async:!1,dataType:"json",data:JSON.stringify(k),xhrFields:{withCredentials:!0},success:function(r){null==r||""===r||null==r.login_type||"guest_epp_store"!== 293r.login_type&&"referral_url"!==r.login_type||(p=!0)}}));p?b=h():$.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:a+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(k),async:!1,xhrFields:{withCredentials:!0},beforeSend:function(r){"Y"===e&&r.setRequestHeader("x-ecom-locale",c)},success:function(r){200!==r.statusCode&&"200"!==r.statusCode&&(g=!1)},error:function(r,t,w){console.error(t);g=!1}});g?($("#loginValidateYnForGPv2").val("Y"), 294b=!0):isValidJwtTokenApiCal(a,c,n,e)?(h=$.cookies.get("jwt_"+n,{domain:".samsung.com"}).toString(),b=loginJwtValidateApiCal(a,c,n,e,h)):b=h()}else null!=k?isValidJwtTokenApiCal(a,c,n,e)?(h=$.cookies.get("jwt_"+n,{domain:".samsung.com"}).toString(),b=loginJwtValidateApiCal(a,c,n,e,h)):b=h():b=h();return b}else return!!$.cookies.get("jwt_IND",{domain:".samsung.com"})}else return ss.Auth.checkSignIn(a)},addedWishList=[],commonGetWishlist=function(a){var n="it ch ch_fr hk hk_en hu ae ae_ar levant levant_ar es pt ca ca_fr sg za".split(" "), 295h=$("#shopIntegrationFlag").val(),e="Hybris-new"===h?!0:!1,c=$("#storeDomain").val(),k=$("#b2bFlag").val(),l=$("#store_sitecode").val(),f=$("#siteCode").val(),b=!1;checkEppSite()&&null!=window.sg.epp&&null!=window.sg.epp.common&&(l=window.sg.epp.common.companyCode,b=window.sg.epp.common.isLogged);checkEppSite()||("levant"===f?l="jo":"levant_ar"===f&&(l="jo_ar"));addedWishList=[];if(e||k&&"true"==h||n.includes(f))c=c+"/tokocommercewebservices/v2/"+l+"/users/current/wishlist?loadEntries\x3dtrue",n.includes(f)&& 296(c=$("#newHyvStoreDomain").val()+"/tokocommercewebservices/v2/"+l+"/users/current/wishlist?loadEntries\x3dtrue"),checkLoginCookie()||b?$.ajax({url:c,type:"GET",dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},crossDomain:!0,success:function(r){if(null!=r&&null!=r.wishlists&&0<r.wishlists.length)for(wishlist in r.wishlists){var t=r.wishlists[wishlist];if(null!=t&&(t.isDefault||"N"===k&&n.includes(f))){if(null!=t.entries&&0<t.entries.length)for(entry in t.entries)if(r=t.entries[entry],null!= 297r.product&&null!=r.product.code){var w={};w.sku=r.product.code;w.deleted=!1;addedWishList.push(w)}break}}},error:function(r){addedWishList=[]},complete:function(){a&&"function"===typeof a&&a()}}):a&&"function"===typeof a&&a();else if("GPv2"===h){h=$("#countryIsoCode").val();h=$.cookies.get("jwt_"+h,{domain:".samsung.com"});e={};b&&null!=window.sg.epp&&null!=window.sg.epp.common&&(e.store_id=window.sg.epp.common.companyCode);var g=$("#multiLanguageYn").val(),p=$("#hreflang").val();null!=h?$.ajax({headers:{"Cache-Control":"no-cache", 298"Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store-global","x-ecom-jwt":h},url:c+"/v4/identity/wishlist",type:"GET",data:e,dataType:"json",timeout:2E4,xhrFields:{withCredentials:!0},beforeSend:function(r){"Y"===g&&r.setRequestHeader("x-ecom-locale",p)},success:function(r){null!=r&&(addedWishList=r)},error:function(r){addedWishList=[]},complete:function(){a&&"function"===typeof a&&a()}}):a&&"function"===typeof a&&a()}}; 299function fnIsNull(a){return""===a||void 0===a||null===a}function def(a,n){for(var h in n)Object.prototype.hasOwnProperty.call(n,h)&&("object"===$.type(a[h])?a[h]=this.isArray(a[h])?n[h].slice(0):this.def(a[h],n[h]):a[h]=n[h]);return a} 300var cookies=function(){var a={expires:"",path:"/",domain:"",secure:"",httpOnly:""};return{setCookie:function(n,h,e){var c=new Date;c.setTime(c.getTime()+864E5*(e||0));e=def(a,{expires:c});document.cookie=[n,"\x3d",h,e.expires?";
300 expires\x3d"+e.expires.toUTCString():"",e.path?"; path\x3d"+e.path:"",e.domain?"; domain\x3d"+e.domain:"",e.secure?"; secure":""].join("")},setCookie2:function(n,h,e,c){var k=new Date;k.setTime(k.getTime()+864E5*(e||0));e=def(a,{expires:k});e.domain=!0===c?".samsung.com": 301".samsung.com.cn";document.cookie=[n,"\x3d",h,e.expires?"; expires\x3d"+e.expires.toUTCString():"",e.path?"; path\x3d"+e.path:"",e.domain?"; domain\x3d"+e.domain:"",e.secure?"; secure":""].join("")},setCookie3:function(n,h,e,c,k,l){var f=new Date;f.setTime(f.getTime()+6E4*e);e=def(a,{expires:f});e.domain=!0===c?".samsung.com":".samsung.com.cn";!0===k&&(e.httpOnly="HttpOnly");!0===l&&(e.secure="secure");document.cookie=[n,"\x3d",h,e.expires?"; expires\x3d"+e.expires.toUTCString():"",e.path?"; path\x3d"+ 302e.path:"",e.domain?"; domain\x3d"+e.domain:"",e.secure?"; secure":"",e.httpOnly?"; HttpOnly":""].join("")},getCookie:function(n){n+="\x3d";for(var h=document.cookie.split(";"),e,c=0,k=h.length;c<k;c++){for(e=h[c];" "===e.charAt(0);)e=e.substring(1);if(-1!==e.indexOf(n))return e.substring(n.length,e.length)}return""},setCookieMailForm:function(n){for(var h in n)if(this.checkMailName(h)&&null!=n[h]){var e=n[h].replace(";","||@||");this.setCookie("mail_form_"+h,e,1)}},checkMailName:function(n){return n&& 303("CompanyName"===n||"ContactFirstName"===n||"ContactName"===n||"EmailAddress"===n||"CompanyAddress"===n||"CompanyInterest"===n||"JobTitle"===n||"Employee"===n||"City"===n||"Zipcode"===n||"Telephone"===n)},getCookieMailForm:function(){var n=document.cookie.split(";"),h={};n=$jscomp.makeIterator(n);for(var e=n.next();!e.done;e=n.next())if(e=e.value,0<e.indexOf("mail_form_")){var c=e.replace("mail_form_","").trim().split("\x3d");e=c[0];c=c[1].replace("||@||",";");h[e]=c}return h},getCookies:function(){var n= 304document.cookie.split(";"),h={};n=$jscomp.makeIterator(n);for(var e=n.next();!e.done;e=n.next())e=e.value.trim().split("\x3d"),h[e[0]]=e[1];return h}}}(),isNotEmpty=function(a){return"number"!=typeof a&&""==a||null==a||void 0==a||null!=a&&"object"==typeof a&&!Object.keys(a).length?!1:!0};void 0===window.sg&&(window.sg={});void 0===window.sg.components&&(window.sg.components={}); 305window.sg.components.pfdevfn={afterAddWishlist:function(a,n,h,e,c,k){fnIsNull(a)||(a.hasClass(n)?"GPv2"===e&&a.removeClass(n):a.addClass(n),n=h,k&&""!=k&&(n=k),"hybrisIntg"===e?(a.prop("disabled",!0),a.attr("data-add-text",h),a.removeAttr("aria-label"),a.addClass("cta--disabled")):"GPv2"===e&&(a.hasClass("js-delete-wishlist-btn")?(a.removeClass("js-delete-wishlist-btn"),a.removeAttr("data-added-text"),a.attr("data-add-text",h),a.attr("an-la","add to wishlist"),a.find("span").text(h),a.blur()):(a.addClass("js-delete-wishlist-btn"), 306a.removeAttr("data-add-text"),a.attr("data-added-text",h),a.attr("an-la","remove from wishlist"),a.find("span").text(h),h={},h.sku=c,h.deleted=!1,addedWishList.push(h)),window.sg.components.wishlistIcon.reInit()),a.removeAttr("aria-label").attr("aria-label",n))},spliceAddedWishList:function(a){if(0<addedWishList.length)for(var n=0;n<addedWishList.length;n++)if(addedWishList[n].sku===a){addedWishList.splice(n,1);break}}}; 307function modelCodeToSelector(a){var n="";a&&(n=a.replace(/\//g,"@$"));return n} 308function addToCartNewHybris(a,n,h,e,c,k,l){n=void 0===n?"":n;c=void 0===c?{}:c;k=void 0===k?!1:k;var f=$("#storeDomain")?$("#storeDomain").val()+"/tokocommercewebservices/v2"
308:"",b=$("#storeWebDomain").val(),g=$("#store_sitecode").val(),p=$("#siteCode")?$("#siteCode").val():"",r=$("#tempTitle").val(),t=k?g:getMultistoreSiteCode(p),w="page-wearable-bc"===$("#tempTitle").val()||"page-wearable-bc-v2"===$("#tempTitle").val()?"\x26ref\x3dwbc":"",y=$("#newHyvStoreDomain").val()?$("#newHyvStoreDomain").val()+ 309"/tokocommercewebservices/v2":"";g="Y"===$("#useNewAddToCartApi").val()?!0:!1;var C="ae ae_ar at au be be_fr bg ca ca_fr ch ch_fr cl cn co de dk eg es fi fr hk hk_en hu nl il it iq_ku iq_ar my mx no nz n_africa levant levant_ar pe ph pt pk sa sa_en se sg th tr tw vn za jp hr si ee lv lt cz sk pl gr ua ro kz_kz kz_ru in id".split(" "),E=["jp","be","be_fr","nl"],z=$("#categoryTypeCode").val();t=checkEppSite()?null!=window.sg.epp&&null!=window.sg.epp.common?window.sg.epp.common.companyCode:"":t;var V= 310window.cookies.getCookie("eligible_epp");V&&-1<location.pathname.indexOf("/us/mypage")&&(t=V.split("/").reverse()[0]);f=f+"/"+t+"/addToCart/multi/?fields\x3dBASIC"+w;g&&y&&!k&&(f=y+"/"+t+"/addToCart/multi/?fields\x3dBASIC"+w);w=[];var ca="",xa=!1;if(e){e.isAddonComponent&&(w=e.filter(function(wa){return wa}));e.bezelCode&&!e.isContinue&&w.push({productCode:e.bezelCode,qty:1});if(e.embedaddon&&0<e.embedaddon.length)for(t=$jscomp.makeIterator(e.embedaddon),y=t.next();!y.done;y=t.next())w.push({productCode:y.value, 311qty:1});if(e.addon&&e.addon.modelCodeList&&0<e.addon.modelCodeList.length)for(t=$jscomp.makeIterator(e.addon.modelCodeList),y=t.next();!y.done;y=t.next()){y=y.value;V={productCode:y,qty:1};if("at"==p&&("page-buying-pd"==r||"page-standard-pd"==r)){var ea=e.addon.childModelObject;if(0<Object.keys(ea).length)for(var va in ea)va==y&&(V.childProducts=[],V.childProducts.push({product:{code:ea[va]},quantity:1}))}w.push(V)}if(e.gift&&e.gift.modelCode)for(r=0;r<e.gift.modelCode.length;r++)w.push({productCode:e.gift.modelCode[r], 312qty:1});if(e.combo&&e.combo.modelCodeList&&0<e.combo.modelCodeList.length)for(r=$jscomp.makeIterator(e.combo.modelCodeList),y=r.next();!y.done;y=r.next())va=y.value,w.push({productCode:va,qty:1}),va.indexOf("SIM");if(e.multi&&e.multi.modelCodeList&&0<e.multi.modelCodeList.length)for(r=$jscomp.makeIterator(e.multi.modelCodeList),y=r.next();!y.done;y=r.next())w.push({productCode:y.value,qty:1})}if(a){var na={productCode:a,qty:1};if(e){e.band&&e.band.bandCode&&(na.childProducts=[],na.childProducts.push({product:{code:e.band.bandCode}, 313quantity:1}));na.services=[];e.orignalQuantity&&(na.qty=e.orignalQuantity.quantity);e.postalCode&&(na.postalCode=e.postalCode);if(("cn"==p||"tr"==p)&&e.tradeIn&&e.tradeIn.plan_id)for(r=$jscomp.makeIterator(e.tradeIn.tradeInResultList),va=r.next();!va.done;va=r.next())va=va.value,na.services.push({serviceCode:va.services.serviceCode,provider:va.services.provider,addToCartType:"append",additionalInfos:va.services.tradeInAdditionalInfo});if(e.exchange&&e.exchange.exchangeId&&C.includes(p))"in"==p?e.exchange.tradeInType&& 314"CE"===e.exchange.tradeInType?na.services.push({exchangeId:e.exchange.exchangeId,additionalInfos:[{key:"isTradeUp",value:"true"}]}):na.services.push({exchangeId:e.exchange.exchangeId}):na.services.push({exchangeId:e.exchange.exchangeId,serviceType:"TRADE_UP"});else if(e.exchange&&e.exchange.exchangeId&&"uk"==p)na.services.push({exchangeId:e.exchange.exchangeId,serviceType:"TRADE_UP"});else if(e.tradeIn&&e.tradeIn.plan_id&&!g&&"cn"!=p&&"tr"!=p)na.services.push({exchangeId:e.tradeIn.plan_id});else if(e.tradeIn&& 315e.tradeIn.plan_id&&E.includes(p))na.services.push({exchangeId:e.tradeIn.plan_id});else if(e.tradeIn&&e.tradeIn.plan_id&&g){var bb=e.tradeIn.tradeInResultList;if(0<bb.length){var cb=!1;$.each(bb,function(wa,Sa){var Ja=Sa.services;if(Ja){Ja.tradeInType||(Ja.tradeInType="IMEI");$.each(Ja.tradeInAdditionalInfo,function(I,N){"sg"!=p||"compasia.imei"!=N.key||isNotEmpty(N.value)||(N.value=Ja.imeiKey);if(!isNotEmpty(Ja.imeiKey)&&N.key==Ja.tradeInType)return Ja.imeiKey=N.value,!1});na.services.push({serviceCode:Ja.serviceCode, 316additionalInfos:[{key:Ja.tradeInType,value:Ja.imeiKey}]});"de"==p&&(na.services[wa].serviceCode=Ja.serviceCode,na.services[wa].provider=Ja.provider);"fr"==p&&null!=Ja.serviceType&&void 0!=Ja.serviceType&&(na.services[wa].serviceType=Ja.serviceTypeCode);
316"bg"==p&&(na.services[wa].provider="FOXWAY");"at"!=p||z.startsWith("01")||na.services[wa].additionalInfos.push({key:"isTradeInTVEnabled",value:!0});Ja.tradeInAdditionalInfo&&$.each(Ja.tradeInAdditionalInfo,function(I,N){na.services[wa].additionalInfos.push({key:N.key, 317value:N.value});"serviceID"==N.key&&(Ja.serviceID=N.value)});var M=0;Sa.specialPrice&&!cb&&(cb=!0,M=Sa.specialPrice);Sa.dataPrice&&Ja.serviceID&&"au"==p&&(na.services[wa].additionalInfos=na.services[wa].additionalInfos.filter(function(I){return"discountAmount"!=I.key&&"additionalDiscount"!=I.key&&"totalTradeinAmount"!=I.key&&!("IMEI"==I.key&&I.value==Ja.serviceID)}),na.services[wa].additionalInfos.push({key:"discountAmount",value:Sa.discountAmountPrice}),na.services[wa].additionalInfos.push({key:"additionalDiscount", 318value:M}),na.services[wa].additionalInfos.push({key:"totalTradeinAmount",value:Sa.discountAmountPrice+M}));Sa.dataPrice&&!Ja.serviceID&&("au"==p?(na.services[wa].additionalInfos=na.services[wa].additionalInfos.filter(function(I){return"discountAmount"!=I.key&&"additionalDiscount"!=I.key&&"totalTradeinAmount"!=I.key}),na.services[wa].additionalInfos.push({key:"discountAmount",value:Sa.discountAmountPrice}),na.services[wa].additionalInfos.push({key:"additionalDiscount",value:M}),na.services[wa].additionalInfos.push({key:"totalTradeinAmount", 319value:Sa.discountAmountPrice+M})):"kz_kz"!=p&&"kz_ru"!=p&&na.services[wa].additionalInfos.push({key:"discountAmount",value:Sa.dataPrice}));1<bb.length&&(na.services[wa].addToCartType="APPEND");Ja.questionAndAnswer&&0<Ja.questionAndAnswer.length&&(na.services[wa].additionalInfos.push({key:"questionAndAnswer",value:JSON.stringify(Ja.questionAndAnswer)}),$.each(Ja.questionAndAnswer,function(I,N){na.services[wa].assessmentCriteria||(na.services[wa].assessmentCriteria=[]);na.services[wa].assessmentCriteria.push({name:N.name, 320value:N.value})}))}else Sa={serviceCode:Sa.services.serviceCode,additionalInfos:[{key:"IMEI",value:Sa.services.imeiKey},{key:"discountAmount",value:Sa.dataPrice}]},1<bb.length&&(Sa.addToCartType="append"),na.services.push(Sa)})}}else e.exchange&&e.exchange.exchangeId&&na.services.push({exchangeId:e.exchange.exchangeId,provider:"EXCHANGE"});e.samsungUpgrade&&na.services.push({serviceCode:e.samsungUpgrade.serviceCode});e.care&&e.care.modelCode&&e.care&&e.care.modelCode&&(C={serviceCode:e.care.modelCode}, 321e.care.isMonltly&&(C.additionalInfos=[{key:"paymentCycle",value:e.care.paymentCycle}]),na.services.push(C));e.upgrade&&e.upgrade.modelCode&&na.services.push({serviceCode:e.upgrade.modelCode});e.tariff&&e.tariff.modelCode&&(e.tariff.tariffResult.isBroadbandService?na.services.push({planId:e.tariff.modelCode,serviceType:"BROADBAND_PLAN",serviceAddress:e.tariff.tariffResult.tariffArr[0],serviceCode:e.tariff.tariffResult.simSkuCode}):na.services.push({planId:e.tariff.modelCode,serviceType:"SIM_PLAN", 322serviceCode:e.tariff.tariffResult.simSkuCode}),f+="\x26newCart\x3dtrue");e.newAssuredBuyBack&&e.newAssuredBuyBack.modelCode&&na.services.push({serviceCode:e.newAssuredBuyBack.modelCode});if("cn"===p&&e.installment&&e.installment.selectedOffers)for(na.selectedOffers=[],C=$jscomp.makeIterator(e.installment.selectedOffers),E=C.next();!E.done;E=C.next())na.selectedOffers.push(E.value);e.warrantyVd&&e.warrantyVd.modelCode&&na.services.push({serviceCode:e.warrantyVd.modelCode});if(k){if(e.tradeIn&&e.tradeIn.exchangeData)for(E= 323$jscomp.makeIterator(e.tradeIn.exchangeData),C=E.next();!C.done;C=E.next())na.services.push(C.value);e.samsungCareData&&na.services.push(e.samsungCareData);e.knoxManage&&na.services.push({serviceCode:e.knoxManage.serviceSkuCode})}}na&&w.push(na)}if(0===w.length)n?location.href=n:h&&"function"===typeof h&&(h(ca,xa,c),ss.Auth.getGlobalCartCount());else if(k&&"uk"!==p&&"cn"!==p&&"tr"!==p&&!g){g=1;f=0;C=[];k={products:[]};b+="/servicesv2/addToCart";if(e&&(e.orignalQuantity&&(g=e.orignalQuantity.quantity), 324e.addon&&e.addon.modelCodeList&&0<e.addon.modelCodeList.length))for(E=$jscomp.makeIterator(e.addon.modelCodeList),y=E.next();!y.done;y=E.next())w=y.value,C.push("products["+f+"].productCode\x3d"+w+"\x26products["+f+"].quantity\x3d1"),f++,k.products.push({productC
324ode:w,quantity:1});if(a){C.push("products["+f+"].productCode\x3d"+a+"\x26products["+f+"].quantity\x3d"+g);f++;a={productCode:a,quantity:g,services:[]};if(e){if(e.tradeIn&&e.tradeIn.exchangeData)for(g=$jscomp.makeIterator(e.tradeIn.exchangeData), 325C=g.next();!C.done;C=g.next())a.services.push(C.value);e.samsungCareData&&a.services.push(e.samsungCareData);e.knoxManage&&a.services.push({serviceCode:e.knoxManage.serviceSkuCode})}a&&k.products.push(a)}$.ajax({url:b,type:"POST",cache:!1,crossDomain:!0,xhrFields:{withCredentials:!0},contentType:"application/json",dataType:"json",data:JSON.stringify(k),timeout:2E4,success:function(wa){if("0000"===wa.resultCode||"00301"===wa.resultCode||"00302"===wa.resultCode)ca=wa,xa=!0},error:function(wa){var Sa= 326"";wa.responseJSON&&wa.responseJSON.message&&(Sa=wa.responseJSON.message);confirmPopup(Sa,null,null,l)},complete:function(){xa&&(n&&"00301"!==ca.resultCode&&"00302"!==ca.resultCode?location.href=n:h&&"function"===typeof h&&(h(ca,xa,c),ss.Auth.getGlobalCartCount()))}})}else $.ajax({url:f,type:"POST",dataType:"json",cache:!0,crossDomain:!0,contentType:"application/json",timeout:3E4,xhrFields:{withCredentials:!0},data:JSON.stringify(w),success:function(wa){ca=wa;xa=!0},error:function(wa){var Sa="";wa.responseJSON&& 327wa.responseJSON.message&&(Sa=wa.responseJSON.message);if(wa&&wa.responseJSON&&wa.responseJSON.errors&&0<wa.responseJSON.errors.length&&wa.responseJSON.errors[0]&&wa.responseJSON.errors[0].type){var Ja=wa.responseJSON.errors[0].type,M="Please remove Samsung Flex or Samsung Upgrade to order multiple items, or place a separate order.";"cn"==p?M=Granite.I18n.get("Please remove Samsung Flex or Samsung Upgrade to order multiple items, or place a separate order."):"uk"==p&&(M="Please remove Galaxy Club to order multiple items, or place a separate order"); 328"TokoUpgradeProductsError"==Ja&&(Sa=M);("levant"==p||"levant_ar"==p||"sa"==p||"sa_en"==p||"ae"==p||"ae_ar"==p)&&"MaxExternalServiceLimitError"==Ja&&wa.responseJSON.errors[0].type&&wa.responseJSON.errors[0].message&&(Sa=wa.responseJSON.errors[0].message)}confirmPopup(Sa,null,null,l)},complete:function(){xa&&(n&&"00301"!==ca[0].statusCode&&"00302"!==ca[0].statusCode?location.href=n:h&&"function"===typeof h&&(h(ca,xa,c),ss.Auth.getGlobalCartCount()))}})} 329function setCookieData(a,n,h,e){var c=new Date,k="";c.setTime(c.getTime()+36E5*(h||0));e&&(k="; path\x3d"+e);document.cookie=a+"\x3d"+n+"; domain\x3dsamsung.com; expires\x3d"+c.toUTCString()+k} 330function getNewCartId(a,n){n=void 0===n?{}:n;var h=commonLoginCheck(),e=$("#storeDomain")?$("#storeDomain").val()+"/tokocommercewebservices/v2"
330:"",c=$("#siteCode")?$("#siteCode").val():"",k=$("#store_sitecode").val(),l=$("#b2bFlag").val(),f=$.cookies.get("hybriscartID-guid"),b=$.cookies.get("hybriscartID-code"),g=!1,p="",r=!1;h&&!b?(g=!0,p="current"):h||f?(r=!0,a&&"function"===typeof a&&a(r,n)):(g=!0,p="anonymous");g&&(h=e+"/"+c+"/users/"+p+"/carts?fields\x3dBASIC","Y"===l&&(h=e+"/"+k+"/users/"+p+ 331"/carts?fields\x3dBASIC"),$.ajax({url:h,type:"POST",dataType:"json",cache:!0,crossDomain:!0,timeout:5E3,xhrFields:{withCredentials:!0},success:function(t){if(t&&(t.code||t.guid)){var w=-1<location.href.indexOf("/content/samsung")?"/content/samsung/"+c:""+c;"current"===p?(r=!0,setCookieData("hybriscartID-code",t.code,1,w)):(r=!0,setCookieData("hybriscartID-guid",t.guid,1,w))}},error:function(t){var w="";t.responseJSON&&t.responseJSON.message&&(w=t.responseJSON.message);confirmPopup(w)},complete:function(){a&& 332"function"===typeof a&&a(r,n)}}))}function goToSMBRegister(a,n){$.cookies.del("isSMBRegisteredUserYN",{path:"/"+SITE_CD+"/",domain:".samsung.com"});n?document.location.href=a:($.cookies.set("goSMBRegisterYN","Y",{domain:".samsung.com"}),$.cookies.set("smbRegisterUrl",a,{domain:".samsung.com"}),ss.Auth.callSaSignInGate())} 333function checkEppSite(){var a="",n=document.location.pathname;n=n.replace(".html","/");n=n.split("/");5<=n.length&&"content"==n[1]&&"samsung"==n[2]?a=n[4]:3<=n.length&&(a="cn"===$("#siteCode").val()?n[1]:n[2]);return"multistore"==a} 334function getEppMultiStorePath(a){if(checkEppSite()){if(fnIsNull(a)||a.startsWith("//")||a.startsWith("http:")||a.startsWith("https:")||a.includes("/multistore/")||a.startsWith("/"+siteCode+"/")||a.startsWith("/"+siteCode))return a;var n="/"+siteCode+"/multistore/"+window.sg.epp.common.companyCode;a.startsWith("/")||(a="/"+a);return n+a}return a} 335function checkLoginCookie(){var a=Object.freeze({B2C:"xsdcxyn",B2B:"xsdcbxyn"}),n=Object.freeze({BASE:".samsung.com",CN:".samsung.com.cn"}),h=$("#b2bFlag").val(),e=$("#siteCode").val(),c=$("#shopIntegrationFlag").val();n="cn"===e?n.CN:n.BASE;a="Y"===h?a.B2B:a.B2C;["Hybris","Hybris-intg","Hybris-new"].includes(c);document.cookie.match(a);return!!$.cookies.get(a,{domain:n})} 336function getSECACountryRegion(){var a=$("#siteCode").val();return["ca","ca_fr"].includes(a)?$.cookies.get("country_region",{domain:".samsung.com"})||"CA-ON":""}function ellipsize(a,n){n=void 0===n?12:n;if("string"!==typeof a){var h;a=String(null!=(h=a)?h:"")}return a.length<=n?a:a.slice(0,n)+"..."} 337(function(a){"undefined"===typeof a.cookies&&(a.cookies={});var n=a("#siteCode").val(),h="/";"cn"!==n&&(h="/"+n+"/");"/global_nw/"===h?h="/global/business/networks/":"/global_cps/"===h&&(h="/global/business/compressor/");a.cookies.data=a.cookies.data||{};a.cookies.data.SEARCH_NAME="sk";a.cookies.data.ACCESSORY_SEARCH_NAME="ask";a.cookies.getDefaultOption=function(e,c){e&&e instanceof Date||(e=new Date,e.setTime(e.getTime()+864E5));c?-1<window.location.pathname.indexOf("/content/samsung")&&(c="/content/samsung"+ 338c):c="/";var k=".samsung.com";"cn"===n&&(k=".samsung.com.cn");return{expiresAt:e,path:c,domain:k,secure:!1}};a.cookies.setSearchKeyword=function(e,c){var k=this.data.SEARCH_NAME,l=this.get(k);if(l){if(0<=a.inArray(e,l))return;4<=l.length&&l.splice(0,1);l.push(e)}else l=[e];this.set(k,l,this.getDefaultOption(c,h))};a.cookies.getSearchKeyword=function(){var e=this.get(this.data.SEARCH_NAME);return e&&a.isArray(e)?e:[]};a.cookies.clearSearchKeyword=function(e){this.del(this.data.SEARCH_NAME,this.getDefaultOption(e, 339h))};a.cookies.setAccessorySearchKeyword=function(e,c){var k=this.data.ACCESSORY_SEARCH_NAME,l=this.get(k);if(l){if(0<=a.inArray(e,l))return;4<=l.length&&l.splice(0,1);l.push(e)}else l=[e];this.set(k,l,this.getDefaultOption(c,h))};a.cookies.getAccessorySearchKeyword=function(){var e=this.get(this.data.ACCESSORY_SEARCH_NAME);return e&&a.isArray(e)?e:[]};a.cookies.clearAccessorySearchKeyword=function(e){this.del(this.data.ACCESSORY_SEARCH_NAME,this.getDefaultOption(e,h))};a(function(){var e="us"=== 340n;if("live"===a("#runmodeInfo").val()&&"Y"===a("#b2bFlag").val()&&!e){e="";if("business solution detail"===digitalData.page.pageInfo.pageTrack||"business solutions detail"===digitalData.page.pageInfo.pageTrack)e="solution";else if("business insight detail"===digitalData.page.pageInfo.pageTrack||"business insights detail"===digitalData.page.pageInfo.pageTrack)e="insight";""!==e&&void 0!==window.sg.components.util&&(this.cookieUtil=new window.sg.components.util.CookieUtil,this.cookieUtil.addHistory(e, 341a("#pathString").val(),a("#pageUrl").val()))}})})(window.jQuery); 342(function(a,n){function h(M,I){if(I.children)for(var N=0;N<I.children.length;){var T=I.children[N],Z=T.classList;if(Z&&Z.contains("sdf-component-metadata"))e(M,T);else if(Z&&Z.contains("sdf-component-templates")){Z=T.children;for(var fa=0;fa<Z.length;){var qa=Z[fa];qa.hasAttribute("data-sdf-template")?c(M,qa):fa++}I.removeChild(T)}else T.hasAttribute("data-sdf-template")?c(M,T):(T.hasAttribute("data-sdf-test")&&(Z=T.sdfContext={},l(Z,T.getAttribute("data-sdf-test")),T.removeAttribute("data-sdf-test")), 343T.hasAttribute("data-sdf-call")?(Z=T.sdfContext={},f(Z,T.getAttribute("data-sdf-call")),T.removeAttribute("data-sdf-call")):(h(M,T),N++))}}function e(M,I){I=a(I);I.find("[data-sdf-prop]").each(function(){var N=a.trim(this.getAttribute("data-sdf-prop"));N&&0<N.length&&M.metadata.set(N,a.trim(this.textContent))});I.remove()}function c(M,I){var N=a(I),T=I.parentElement;N.removeClass("sdf-component-template");var Z=a.trim(I.getAttribute("data-sdf-template"));if(0===Z.length)log.error("[SDF] Illegal template attribute: template name required: "+ 344na(I));else{var fa=Z.indexOf("@");var qa=0>fa?Z:a.trim(Z.substring(0,fa));if(0===qa.length)log.error("[SDF] Illegal template attribute: template name is empty: "+na(I));else{var ua=a.trim(Z.substring(fa+1));Z=[];fa=!1;if(0<ua.length){ua=ua.split(",");for(var ob=0;ob<ua.length;ob++){var Ha=a.trim(ua[ob]);if(0!==Ha.length){var Ya=Ha.indexOf("\x3d");if(0>Ya)Z.push({variable:Ha});else{var oa=a.trim(Ha.substring(0,Ya));Ha=t(a.trim(Ha.substring(Ya+1)));!fa&&Ha&&(fa=!0);Z.push({variable:oa,reference:Ha})}}}}I.removeAttribute("data-sdf-template"); 345if(fa){T=n.createElement(I.localName);if(I.hasAttributes()){fa=I.attributes;for(ua=0;ua<fa.length;ua++)T.setAttribute(fa[ua].localName,fa[ua].nodeValue);fa=I.attributes;for(ua=fa.length-1;0<=ua;ua--)I.removeAttribute(fa[ua].localName)}if(I.hasChildNodes())for(;I.firstChild;)T.appendChild(I.firstChild);fa=r(qa);I.sdfContext={invokeTemplate:{template:qa,isDynamic:fa,nameToken:fa?p(qa):null,binds:Z}};I=T}else T&&T.removeChild(I);T=I;fa=(fa=N.parent())&&0<fa.length&&!fa.hasClass("sdf-component-templates")? 346fa.get(0):null;N={name:qa,element:T,$element:N,variables:Z,target:fa};M.templates.set(qa,N);I.sdfContext=I.sdfContext||{};I.sdfContext.template=N;k(M,N,I)}}}function k(M,I,N){if(N.nodeType===n.ELEMENT_NODE){a:{N.sdfContext=N.sdfContext||{};if(N.hasAttributes()){if(N.hasAttribute("data-sdf-template")){c(M,N);M=!0;break a}for(var T=N.attributes,Z=N.sdfContext,fa=0;fa<T.length;fa++){var qa=T[fa],ua=qa.name;qa=qa.nodeValue;if("data-sdf-test"===ua)l(Z,qa);else if("data-sdf-call"===ua)f(Z,qa);else if("data-sdf-unwrap"=== 347ua)ua=Z,r(qa)?ua.unwrap={isDynamic:!0,value:t(qa)}:(qa=a.trim(qa),ua.unwrap={isDynamic:!1,value:0===qa.length||"true"===qa.toLowerCase()});else if("data-sdf-element"===ua)ua=Z,r(qa)?ua.element={isDynamic:!0,value:t(qa)}:ua.element={isDynamic:!1,value:a.trim(qa)};else if(0===ua.indexOf("data-sdf-attr")){var ob=Z;ua=ua.substring(13);1>=ua.length||"."!==ua.charAt(0)?console.warn("[SDF] Empty dynamic attribute name: "+ua+'\x3d"'+qa+'"'):g(ob,!0,!1,ua.substring(1),p(qa))}else 0===ua.indexOf("data-sdf-list")? 348b("data-sdf-list",Z,ua,qa):0===ua.indexOf("data-sdf-repeat")?b("data-sdf-repeat",Z,ua,qa):(ob=r(qa),g(Z,ob,!0,ua,ob?p(qa):qa))}N.sdfContext=Z}if(N.hasChildNodes())for(N=N.childNodes,T=0;T<N.length;)k(M,I,N[T])||T++;M=!1}return M}
348N.nodeType===n.TEXT_NODE&&0<=N.nodeValue.indexOf("{{")&&(M=p(N.nodeValue),N.sdfContext={bindTokens:M});return!1}function l(M,I){var N=r(I),T=N?t(a.trim(I)):I.toLowerCase();T&&0<T.length?N?(I=T.split(/[ \t]+/),2===I.length&&"not"===I[0]?(M.testInverse=!0,M.test=I[1]):M.test= 349T):M.test="true"===T:console.warn("[SDF] Empty test attribute: "+aname+'\x3d"'+I+'"')}function f(M,I){var N=a.trim(I).split(/\s*@\s*/);if(0===N[0].length)console.warn("[SDF] Illegal template call: "+I+'"');else{I=N[0];var T=r(I);M.invokeTemplate={template:I,isDynamic:T,nameTokens:T?p(I):null};if(1<N.length&&0<N[1].length){I=[];N=N[1].split(/\s*,\s*/);for(T=0;T<N.length;T++)if(0<N[T].length){var Z=N[T].split(/\s*=\s*/);2<Z.length||0===Z[0].length?console.warn("[SDF] Illegal variable binds: "+N[T]): 350I.push({variable:Z[0],reference:2===Z.length?t(Z[1]):null})}0<I.length&&(M.invokeTemplate.binds=I)}}}function b(M,I,N,T){N=N.substring(M.length);var Z=1<N.length&&"."===N.charAt(0)?N.substring(1):"";0===Z.length&&(Z="item");var fa=t(T);0===fa.length?console.warn("[SDF] Illegal '"+M+"' directive: "+N+'\x3d"'+T+'"'):I["data-sdf-list"===M?"list":"repeat"]={variable:Z,reference:fa}}function g(M,I,N,T,Z){T&&Z&&0<Z.length&&(M.attributes||(M.attributes={}),M.attributes[T]={isDynamic:I,isAllowBlank:N,isNamespaceProvided:0< 351T.indexOf(":"),name:T,value:Z})}function p(M){for(var I=0,N=0,T=[];I<M.length;){I=M.indexOf("{{",N);if(0>I){T.push(M.substring(N));break}T.push(M.substring(N,I));N=M.indexOf("}}",I+2);if(0>N){T.push(M.substring(I));break}T.push(M.substring(I+2,N));I=N+=2}return T}function r(M){var I=M.indexOf("{{");return 0<=I?0<M.indexOf("}}",I+2+1):!1}function t(M){if(!M||4>M.length)return"";var I=M.indexOf("{{"),N=M.indexOf("}}");return 0>I||0>N||I>N||I+2===N?(console.warn("[SDF] Illegal expression: "+M),""):M.substring(I+ 3522,N)}function w(M,I,N,T){(T=T||I.target)||console.log("[SDF] Unknown bind target with template: "+I.name);var Z={component:M,template:I,bindObject:N,target:T,parent:T||a("\x3cdiv\x3e\x3c/div\x3e").get(0),currentNode:I.element},fa=y(Z);fa&&(fa.boundData=N);0<M.observers.length&&M.notify("onTemplateRendered",{template:I,target:T,boundData:N});return T?fa:Z.parent}function y(M){var I=M.currentNode,N=I.sdfContext;if(I.nodeType===n.TEXT_NODE){var T=I.nodeValue;N?N.bindTokens&&(T=V(N.bindTokens,M.bindObject)): 353r(T)&&(T=p(T),T=V(T,M.bindObject));N=document.createElement("div");for(N.innerHTML=T;N.firstChild;)M.parent.appendChild(N.firstChild);return I}a:if(T=N||{},I=M.bindObject,ca(T,I)){if(T.invokeTemplate){N=T.invokeTemplate;var Z=N.isDynamic?V(N.nameTokens,I):N.template,fa=M.component.templates.get(Z);if(fa){M=C(M.component,fa,N.binds,I,M.parent);break a}else console.warn("[SDF] Unknown template '"+Z+"'")}N=!1;T.unwrap&&(Z=T.unwrap,!Z.isDynamic&&!0===Z.value||Z.isDynamic&&!0===z(Z.value))&&(N=!0);Z=void 0; 354if(T.repeat||T.list){if(T.repeat){fa=N;var qa=z(I,T.repeat.reference);if(qa&&0<qa.length){for(var ua=M.parent,ob=M.currentNode,Ha=T.repeat.variable,Ya=Ha+"List",oa=0;oa<qa.length;oa++){var ib=qa[oa];I[Ha]=ib||{};try{ib.loopIndex=String(oa),ib.loopCount=String(oa+1)}catch(nc){}ib=I[Ya]=I[Ya]||{};ib.loopIndex=String(oa);ib.loopCount=String(oa+1);M.parent=fa?ua:xa(ua,ob,T,I);M.currentNode=ob;E(M)}delete I[Ha];M.parent=ua}}if(T.list&&(Z=void 0,(fa=z(I,T.list.reference))&&0<fa.length)){qa=M.parent;ua= 355M.currentNode;ob=T.list.variable;Ha=ob+"List";N||(Z=xa(qa,ua,T,I),M.parent=Z);for(T=0;T<fa.length;T++){Ya=fa[T]||{};I[ob]=Ya;try{Ya.loopIndex=String(T),Ya.loopCount=String(T+1)}catch(nc){}Ya=I[Ha]=I[Ha]||{};Ya.loopIndex=String(T);Ya.loopCount=String(T+1);M.parent=N?qa:Z;M.currentNode=ua;E(M)}delete I[ob];M.parent=qa}}else N||(Z=xa(M.parent,M.currentNode,T,I),M.parent=Z),E(M);M=Z}else M=void 0;return M}function C(M,I,N,T,Z){var fa={};if(N&&0<N.length)for(var qa=0;qa<N.length;qa++)fa[N[qa].variable]= 356z(T,N[qa].reference);return w(M,I,fa,Z||I.target)}function E(M){var I=M.parent,N=M.currentNode.childNodes;if(N&&0<N.length)for(var T=0;T<N.length;T++)M.parent=I,M.currentNode=N[T],y(M);M.parent=I}function z(M,I){if(M&&I){I=a.trim(I).split(".");for(var N=0;N<I.length&&(M=M[I[N]],M);N++);return M}}function V(M,I){var N=[];if(M&&0<M.length)for(var T=0;T<M.length;T++){var Z=M[T],fa=z(I,Z);void 0!==fa&&null!==fa&&(fa=String(fa));N.push(0===T%2?Z:fa)}return N.join("")}function ca(M,I){var N=!0;"undefined"!== 357typeof M.test&&(I="string"===typeof M.test?z(I,M.test):M.test,void 0===I||null===I||!1===I||"undefined"!==typeof I.length&&0===I.length)&&(N=!1);return M.testInverse?!N:N}function xa(M,I,N,T){var Z=I.localName;N.element&&(Z=N.element,Z=a.trim(Z.isDynamic?z(T,Z.value):Z.value),0===Z.length&&(console.warn("[SDF] Empty dynamic tag name: use default '"+I.localName+"'"),Z=I.localName));try{if(I.prefix){var fa=wa[I.prefix];if(fa)var qa=n.createElementNS(fa,Z);else console.warn("[SDF] Unsupported name prefix of element: "+ 358I.name+"; namespace ignored"),qa=n.createElement(Z)}else qa=n.createElement(Z)}
358catch(ob){console.warn("[SDF] Can't create element: "+ob.toString()+": use default '"+I.localName+"'"),qa=n.createElement(I.localName)}if(I=N.attributes)for(var ua in I)if(fa=I[ua],N=fa.isDynamic?V(fa.value,T):fa.value,fa.isAllowBlank||!fa.isAllowBlank&&0<N.length)fa.isNamespaceProvided?(fa=ua.substring(0,ua.indexOf(":")),(fa=wa[fa])?qa.setAttributeNS(fa,ua,N):(console.warn("[SDF] Unsupported name prefix of attribute: "+ 359ua+"; namespace ignored"),qa.setAttribute(ua,N))):qa.setAttribute(ua,N);M.appendChild(qa);return qa}function ea(M,I,N){if(I.nodeType===n.TEXT_NODE)va(I,N);else{if(I.sdfContext){var T=I.sdfContext;if(!ca(T,N)){I.parentElement.removeChild(I);return}if(T.invokeTemplate){T=I.parentElement;var Z=I.sdfContext.invokeTemplate,fa=Z.isDynamic?V(Z.nameTokens,N):Z.template;if(fa=M.templates.get(fa)){for(var qa=I.childNodes,ua=qa.length-1;0<=ua;ua--)I.removeChild(qa[ua]);C(M,fa,Z.binds,N,I);if(T)for(;I.hasChildNodes();)T.insertBefore(I.firstChild, 360I)}T&&T.removeChild(I);return}}if(I.hasAttributes())for(T=I.attributes,Z=0;Z<T.length;Z++)0>T[Z].localName.indexOf("data-sdf-")&&va(T[Z],N);if(I.hasChildNodes())for(T=0;T<I.childNodes.length;T++)ea(M,I.childNodes[T],N)}}function va(M,I){if(r(M.nodeValue)){var N=p(M.nodeValue);M.nodeValue=V(N,I)}}function na(M){var I="\x3c"+M.nodeName.toLowerCase();if(M.hasAttributes()){M=M.attributes;for(var N=0;N<M.length;N++)I+=" "+M[N].name+'\x3d"'+M[N].nodeValue+'"'}return I+"\x3e"}function bb(M,I,N){if((M=Sa.get(M))&& 3610<M.length)for(var T=0;T<M.length;T++){var Z=M[T];if(Z[I])try{Z[I].call(Z,N)}catch(fa){console.warn("[SDF] Can't notify component event '"+I+"': "+fa)}}}function cb(M,I){this.selector=M;this.$ui=I;this.rootElement=I.get(0);this.metadata=new Map;this.templates=new Map;this.observers=[];h(this,this.rootElement)}window.sg=window.sg||{};window.sg.sdf=window.sg.sdf||{};var wa={html:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xbl:"http://www.mozilla.org/xbl", 362xul:"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"},Sa=new Map,Ja=new Map;cb.prototype={init:function(M){bb(this.selector,"onBeforeInit",this);var I=t(this.rootElement.getAttribute("data-sdf-bind"));I&&0<I.length&&((M=z(M,I))&&ea(this,this.rootElement,M),this.rootElement.removeAttribute("data-sdf-bind"),this.rootElement.boundData=M);bb(this.selector,"onAfterInit",this)},meta:function(M){return this.metadata.get(M)},invokeTemplate:function(M,I,N){r(M)&&(M=p(M),M=V(M,I));return(M=this.templates.get(M))? 363w(this,M,I,N):null},addObserver:function(M){this.observers.push(M)},removeObserver:function(M){M=this.observers.indexOf(M);0<=M&&this.observers.splice(M,1)},notify:function(M,I){for(var N=0;N<this.observers.length;N++){var T=this.observers[N];if(T[M])try{T[M].call(T,I)}catch(Z){console.warn("[SDF] Notification failure: '"+M+"': "+Z)}}}};window.sg.sdf.comp={dispatch:function(M){var I=a(M);if(0!==I.length){var N=Ja.get(M);N||(N=[],Ja.set(M,N),I.each(function(){var T=new cb(M,a(this));bb(M,"onCreated", 364T);N.push(T)}));return 1===N.length?N[0]:N}},dispose:function(M){if(Ja.has(M)){for(var I=Ja.get(M),N=0;N<I.length;N++)bb(M,"onDispose",I[N]);Ja["delete"](M)}},attachListener:function(M,I){var N=Sa.get(M);N||(N=[],Sa.set(M,N));N.push(I)},detachListener:function(M,I){(M=Sa.get(M))&&0<M.length&&(I=M.indexOf(I),0<=I&&M.splice(I,1))}}})(jQuery,document); 365(function(a){function n(c){this._capacity=c;this._queue=[]}function h(){this._handlerMap={}}window.sg=window.sg||{};window.sg.sdf=window.sg.sdf||{};var e={prepareNamespace:function(c,k){var l=a.trim(c).split(".");c=null;k=k||window;l=$jscomp.makeIterator(l);for(var f=l.next();!f.done;f=l.next())f=f.value,null==c?(c=k[f])||(c=k[f]={}):c=c[f]=c[f]||{};return c},resolve:function(c,k){c=a.trim(c).split(".");if(k=k||window){c=$jscomp.makeIterator(c);for(var l=c.next();!l.done&&(k=k[l.value],"undefined"!== 366typeof k&&null!=k);l=c.next());}return k},getImagePreset:function(c,k,l){function f(p,r){var t=p.lastIndexOf(".");if(0<t)switch(p.substring(t+1).toLowerCase()){case "jpg":case "jpeg":return"JPG";case "png":return"PNG";case "gif":return"GIF";default:if("LazyLoad_Home"===r)return"PNG"}return"IMG"}k=a.trim(k);l=a.trim(l);c=a.trim(c);var b=k.indexOf("?$");if(0<b){var g=k.indexOf("$",b+2);if(0<g)return b=k.substring(b+2,g).split("_"),c=""!==c?c:1===b.length?b[0]:b.slice(0,b.length-1).join("_"),k=""!== 367l?l.toUpperCase():1===b.length?f(k,c):b[b.length-1].toUpperCase(),"?$"+c+"_"+k+"$"}return function(p,r,t){if(""===r)return"";p=""!==t?t.toUpperCase():f(p,r);
367return"?$"+r+"_"+p+"$"}(k,c,l)},presetImage:function(c,k,l){k=a.trim(k);if(0<k.length){var f=k.indexOf("?$");if(0>f)return k+this.getImagePreset(c,k,l);if(0<f){var b=k.indexOf("$",f+2);b=0<b?k.substring(b+1):"";return k.substring(0,f)+this.getImagePreset(c,k,l)+b}}return k},previewImageSrc:function(c,k){return this.presetImage("LazyLoad_Home", 368c,k)},productCardImageSrc:function(c,k){return this.presetImage("PC_PRD_CARD",c,k)}};n.prototype={offer:function(c){return this._queue.length<this._capacity?(this._queue.push(c),!0):!1},put:function(c){var k=null;this._queue.length===this._capacity&&(k=this._queue.shift());this._queue.push(c);return k},get:function(){var c=null;0<this._queue.length&&(c=this._queue[0]);return c},take:function(){var c=null;0<this._queue.length&&(c=this._queue.shift());return c},clear:function(){this._queue=[]},capacity:function(){return this._capacity}, 369size:function(){return this._queue.length}};e.Queue=n;h.prototype={register:function(c,k){if(k){var l=this._handlerMap[c];l||(l=[],this._handlerMap[c]=l);l.push(k)}},unregister:function(c,k){if(k){var l=this._handlerMap[c];if(l&&0<l.length){var f=[];l=$jscomp.makeIterator(l);for(var b=l.next();!b.done;b=l.next())b=b.value,b!==k&&f.push(b);this._handlerMap[c]=f}}},fire:function(c,k,l){var f=this._handlerMap[c];if(f&&0<f.length){c={};f=$jscomp.makeIterator(f);for(var b=f.next();!b.done;c={$jscomp$loop$prop$h$88:c.$jscomp$loop$prop$h$88}, 370b=f.next())c.$jscomp$loop$prop$h$88=b.value,setTimeout(function(g){return function(){g.$jscomp$loop$prop$h$88.call(l||this,k)}}(c),10)}}};e.eventBroker=new h;window.sg.sdf.util=e})(jQuery);(function(a){function n(h,e){a(h).each(function(c,k){k.hasAttribute(e)||k.setAttribute(e,"")})}a(function(){n("img","alt")})})(jQuery); 371(function(){function a(h,e){var c=e+"_desktop",k=h[c],l=e+"_mobile",f=h[l];"mobile"===n?f&&0<f.length?h[e]=f:!h[e]&&k&&0<k.length&&(h[e]=k):"desktop"===n&&(k&&0<k.length?h[e]=k:!h[e]&&f&&0<f.length&&(h[e]=f));delete h[c];delete h[l]}var n=function(){var h=window,e="inner";"innerWidth"in window||(e="client",h=document.documentElement||document.body);return 767<h[e+"Width"]?"desktop":"mobile"}();(function(){var h=document.querySelectorAll("script[data-object-type\x3d'VideoObject']");if(h&&0<h.length)for(var e= 3720,c=h.length;e<c;e++){var k=JSON.parse(h[e].innerText);a(k,"thumbnailUrl");a(k,"contentUrl");h[e].innerText=JSON.stringify(k)}})()})(); 373(function(){window.sg=window.sg||{};window.sg.common=window.sg.common||{};window.sg.components=window.sg.components||{};var a={BREAKPOINTS:{DESKTOP:1440,MOBILE:767,MOBILE_UNDER:360},SELECTOR:{RES_IMG:".responsive-img",VIDEO:".video",LAZY_LOAD:".lazy-load",PREVIEW_IMG:".preview",INDICATOR:".indicator"},KEY_CODE:{TAB:9,ENTER:13,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,ESC:27}},n,h,e="",c=null,k=null,l=!!document.querySelector(".wearable-bc"),f=new Intl.Segmenter(void 0, 374{granularity:"grapheme"}),b={getViewPort:function(){var g=window,p="inner";"innerWidth"in window||(p="client",g=document.documentElement||document.body);return{width:g[p+"Width"],height:g[p+"Height"]}},getCurrentDevice:function(){return b.getViewPort().width>a.BREAKPOINTS.MOBILE?"desktop":"mobile"},getCurrentMediaType:function(){var g=b.getViewPort().width;return g>a.BREAKPOINTS.MOBILE?g>a.BREAKPOINTS.DESKTOP?"desktop-over":"desktop":g>a.BREAKPOINTS.MOBILE_UNDER?"mobile":"mobile-under"},isInVerticalViewPort:function(g, 375p){p=void 0===p?200:p;g=g.getBoundingClientRect();return g.top-p<=b.getViewPort().height&&g.bottom>=0+(this.scrollFlag?null:b.getStickyNavHeightPromise())},isInHorizontalViewPort:function(g,p){p=void 0===p?200:p;g=g.getBoundingClientRect();return g.left-p<=b.getViewPort().width&&0<=g.right+p},isVerticalVisible:function(g,p){return b.isInVerticalViewPort(g,void 0===p?200:p)&&!!(g.offsetWidth||g.offsetHeight||g.getClientRects().length)},isHorizontalVisible:function(g,p){return b.isInHorizontalViewPort(g, 376void 0===p?200:p)&&!!(g.offsetWidth||g.offsetHeight||g.getClientRects().length)},isInViewPort:function(g){return b.isInVerticalViewPort(g)&&b.isInHorizontalViewPort(g)},isVisible:function(g){return b.isInViewPort(g)&&!!(g.offsetWidth||g.offsetHeight||g.getClientRects().length)},scrollTo:function(g,p){var r=document.documentElement,t=r.scrollTop,w=r.scrollHeight,y=r.clientHeight;r=r.scrollLeft;g>w-y&&(g=w-y);
376var C=isNaN(p)?t:p;C+=(g-t)/7;0>C?C=0:C>w-y&&(C=w-y);p=Math.ceil(C);window.scrollTo(r,p);p!== 377g?n=setTimeout(function(){b.scrollTo(g,C)},15):clearTimeout(n)},setImageSpecGuide:function(g,p){var r=document.createElement("span");r.innerHTML=p;r.style.position="absolute";r.style.display="inline-block";r.style.top="50%";r.style.right="50%";r.style.width="100%";r.style.textAlign="center";r.style.fontStyle="italic";r.style.transform="translateX(50%) translateY(-50%)";r.style.color="#fff";r.style.fontSize="30px";r.classList.add("media-size-guide");g.appendChild(r)},extend:function(g,p){Object.keys(p).forEach(function(r){g[r]= 378p[r]});return g},setCookie:function(g,p,r){var t=new Date;t.setTime(t.getTime()+864E5*r);document.cookie=g+"\x3d"+p+"; expires\x3d"+t.toUTCString()+"; path\x3d/"},getCookie:function(g){return(g=document.cookie.match("(^|;) ?"+g+"\x3d([^;]*)(;|$)"))?g[2]:null},triggerEvent:function(g,p,r,t,w){r=void 0===r?null:r;t=void 0===t?!1:t;w=void 0===w?!0:w;if("function"===typeof CustomEvent)var y=new CustomEvent(p,{bubbles:t,cancelable:w,detail:r});else y=document.createEvent("CustomEvent"),y.initCustomEvent(p, 379t,w,r);g.dispatchEvent(y)},hiddenScroll:function(){if(!0!==this.scrollFlag){this.scrollFlag=!0;this.currentPos=window.scrollY||document.documentElement.scrollTop;var g=document.querySelector("body");var p=0<this.currentPos?"-"+this.currentPos+"px":0;g.style.position="fixed";g.style.width="100%";g.style.top=p}},visibleScroll:function(){if(!0===this.scrollFlag){this.scrollFlag=!1;var g=document.querySelector("body");g.style.position="";g.style.width="";g.style.top="";window.scrollTo(0,this.currentPos)}}, 380getDirection:function(){return window.getComputedStyle(document.body).direction},addEventListener:function(g,p,r){if(g){h||(h=new WeakMap);var t=h.has(g)?h.get(g):{};t[p]||(t[p]=[]);t[p].push(r);h.set(g,t);g.addEventListener(p,r)}},removeAllEventListeners:function(g,p){if(g&&h&&h.has(g)){var r=h.get(g);r[p]&&(r[p].forEach(function(t){g.removeEventListener(p,t)}),delete r[p],Object.keys(r).length||h.delete(g))}},closest:function(g,p){do{if(g.matches?g.matches(p):g.msMatchesSelector(p))return g;g=g.parentElement|| 381g.parentNode}while(null!==g&&1===g.nodeType);return null},popupControl:{closeParam:null,popstateHandler:function(){window.history.state?"popOpen"===window.history.state.page&&(window.sg.common.utils.popupControl.closeParam(),window.sg.common.utils.popupControl.close()):(window.sg.common.utils.popupControl.closeParam(),window.sg.common.utils.popupControl.close())},open:function(g){this.closeParam=g;window.removeEventListener("popstate",this.popstateHandler);window.addEventListener("popstate",this.popstateHandler); 382g=window.history.state&&"popOpen"===window.history.state.page;(new URLSearchParams(window.location.search)).has("addon")||g||window.history.pushState({page:"popOpen"},"",""+window.location.href);l&&b.hideOverDimEls()},close:function(g){g=void 0===g?!1:g;this.closeParam=null;window.history.state&&("popOpen"===window.history.state.page&&(g?window.history.back():window.history.forward(),window.removeEventListener("popstate",this.popstateHandler)),l&&b.showOverDimEls())}},setSwiperIndicatorTaggingAttributes:function(g, 383p){var r=JSON.parse(g);[].concat($jscomp.arrayFromIterable(p.querySelectorAll(".swiper-pagination-bullet"))).forEach(function(t,w){t.setAttribute("an-tr",r.anTr);t.setAttribute("an-ca",r.anCa);t.setAttribute("an-ac",r.anAc);t.setAttribute("an-la",""+r.anLa+(w+1))})},isEnglish:function(g){return/^[a-zA-Z]*$/.test(g)},isNumber:function(g){return/^[0-9]*$/.test(g)},isEngNum:function(g){return/^[a-zA-Z0-9]*$/.test(g)},isEmail:function(g){return/^[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*@[0-9a-zA-Z]([-_.]?[0-9a-zA-Z])*.[a-zA-Z]{2,3}$/i.test(g)}, 384detectTransitionEndEvent:function(g){for(var p={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"},r=Object.keys(p),t=0;t<r.length;t++)if(void 0!==g.style[r[t]])return p[r[t]]},isRtl:function(){return"RTL"===getComputedStyle(document.body).direction.toUpperCase()},setMobileFocusLoop:function(g){do{for(var p=g.parentElement.childNodes,r=0;r<p.length;r++)1===p[r].nodeType&&p[r]!==g&&"SCRIPT"!==p[r].tagName.toUpperCase()&&"STYLE"!== 385p[r].tagName.toUpperCase()&&(p[r].setAttribute("data-aria-hidden",p[r].getAttribute("aria-hidden")||"null"),p[r].setAttribute("aria-hidden","true"));g=g.parentElement}while(g!==document.body)},removeMobileFocusLoop:function(){for(var g=document.querySelectorAll("[data-aria-hidden]"),p=0;p<g.length;p++){var r=g[p].getAttribute("data-aria-hidden");"null"===r?g[p].removeAttribute("aria-hidden"):g[p].setAttribute("aria-hidden",r);g[p].removeAttribute("data-aria-hidden")}},detectScrollType:function(){if(e)return e; 386e="reverse";var g=document.createElement("div");g.appendChild(document.createTextNode("tmpDivEl"));g.dir="rtl";g.style.fontSize="12px";g.style.width="4px";g.style.height="2px";g.style.position="absolute";g.style.overflow="scroll";document.body.appendChild(g);0<g.scrollLeft?e="default":(g.scrollLeft=2,2>g.scrollLeft&&(e="negative"));document.body.removeChild(g);return e},getNormalizedScrollLeft:function(g){if(b.isRtl())switch(b.detectScrollType()){case "negative":return g.scrollWidth-g.clientWidth+ 387g.scrollLeft;case "reverse":return g.scrollWidth-g.clientWidth-g.scrollLeft}return g.scrollLeft},setNormalizedScrollLeft:function(g,p){if(b.isRtl())switch(b.detectScrollType()){case "negative":g.scrollLeft=g.clientWidth-g.scrollWidth+p;break;case "reverse":g.scrollLeft=g.scrollWidth-g.clientWidth-p;break;default:g.scrollLeft=p}else g.scrollLeft=p},isPassiveSupported:function(){if(null===c)try{var g={get passive
387(){c=!0}};window.addEventListener("test",g,g);window.removeEventListener("test",g,g)}catch(p){c= 388!1}return c},makeDate:function(g){var p=g.replace(/[+|-][0-9]{4}$/,""),r=new Date(p);p=g.substring(p.length);""!==p&&(g=parseInt(p.substring(0,3),0),p=parseInt(p.substring(3),0),0>g&&(p*=-1),r.setHours(r.getHours()+-1*g),r.setMinutes(r.getMinutes()+-1*p));return r},getTimeStatus:function(g,p){g=b.makeDate(g);p=b.makeDate(p);var r=new Date;return r>=g?r>p?"after":"live":"before"},showBambuserLiveShopping:function(g){window.onBambuserLiveShoppingReady=function(r){r.configure({buttons:{dismiss:r.BUTTON.MINIMIZE}})}; 389if(!window.initBambuserLiveShopping){window.initBambuserLiveShopping=function(r){window.initBambuserLiveShopping.queue.push(r)};window.initBambuserLiveShopping.queue=[];var p=document.createElement("script");p.src="https://lcx-embed.bambuser.com/samsung/embed.js";document.body.appendChild(p)}window.initBambuserLiveShopping({showId:g,type:"overlay"})},removeReCaptchaFrameBorder:function(){0<document.querySelectorAll('[title\x3d"reCAPTCHA"]').length&&[].concat($jscomp.arrayFromIterable(document.querySelectorAll('[title\x3d"reCAPTCHA"]'))).forEach(function(g){g.removeAttribute("frameborder")})}, 390changeActiveReCaptchaProperty:function(){0<document.querySelectorAll('[title\x3d"reCAPTCHA"]').length&&[].concat($jscomp.arrayFromIterable(document.querySelectorAll('[title\x3d"reCAPTCHA"]'))).forEach(function(g){g.setAttribute("aria-hidden","true");g.removeAttribute("frameborder");/Android/i.test(navigator.userAgent)&&g.removeAttribute("role")})},changeInActiveReCaptchaProperty:function(){0<document.querySelectorAll('[title\x3d"reCAPTCHA"]').length&&[].concat($jscomp.arrayFromIterable(document.querySelectorAll('[title\x3d"reCAPTCHA"]'))).forEach(function(g){g.removeAttribute("aria-hidden"); 391/Android/i.test(navigator.userAgent)&&g.setAttribute("role","presentation")})},buyingFocus:function(g){(g=document.querySelector(['.pdd-buying-tool [data-target-popup\x3d"'+g+'"]','.pd-buying-tool [data-target-popup\x3d"'+g+'"]','.wearable-bc-buying [data-target-popup\x3d"'+g+'"]'].join()))&&g.focus()},hideOverDimEls:function(){k||(k=[{display:null,sel:"#spr-live-chat-app"},{display:null,sel:"#QSIFeedbackButton-btn"},{display:null,sel:"#kampyleButtonContainer"}],k.forEach(function(g){var p=document.querySelector(g.sel); 392p&&(g.display=p.style.display,p.style.display="none")}))},showOverDimEls:function(){k&&(k.forEach(function(g){var p=document.querySelector(g.sel);p&&(p.style.display=g.display)}),k=null)},bindRaf:function(g){var p=!1;return function(r){p||(p=!0,requestAnimationFrame(function(){p=!1;g(r)}))}},getFirstFocusableEl:function(g,p){p=void 0===p?[]:p;g=g?g:document;var r=function(C){return!!(C.offsetWidth||C.offsetHeight||C.getClientRects().length)&&"hidden"!==getComputedStyle(C).visibility},t=function(C){if(p.length)for(var E= 3930;E<p.length;E++)if(C.matches(p[E]))return!0;return!1};if((g.matches?g.matches('input:not([tabindex\x3d"-1"]), select:not([tabindex\x3d"-1"]), textarea:not([tabindex\x3d"-1"]), button:not([disabled]):not([tabindex\x3d"-1"]), [href]:not(use):not([tabindex\x3d"-1"]), [tabindex]:not([tabindex\x3d"-1"])'):g.msMatchesSelector('input:not([tabindex\x3d"-1"]), select:not([tabindex\x3d"-1"]), textarea:not([tabindex\x3d"-1"]), button:not([disabled]):not([tabindex\x3d"-1"]), [href]:not(use):not([tabindex\x3d"-1"]), [tabindex]:not([tabindex\x3d"-1"])'))&& 394r(g))return g;g=g.querySelectorAll('input:not([tabindex\x3d"-1"]), select:not([tabindex\x3d"-1"]), textarea:not([tabindex\x3d"-1"]), button:not([disabled]):not([tabindex\x3d"-1"]), [href]:not(use):not([tabindex\x3d"-1"]), [tabindex]:not([tabindex\x3d"-1"])');if(!g.length)return null;for(var w=0;w<g.length;w++){var y=g[w];if(r(y)&&!t(y))return y}},setFocusFirstFocusableEl:function(g,p){p=void 0===p?[]:p;if(g=b.getFirstFocusableEl(g,p))return g.focus(),g},setFocusNextFocusableEl:function(g){if(!(g&& 395g instanceof Element))return null;var p=g.nextElementSibling;if(p)return(g=b.getFirstFocusableEl(p))?(g.focus(),g):b.setFocusNextFocusableEl(p);p=g.parentElement;return p===document.body?null:b.setFocusNextFocusableEl(p)},setFocusFirstEl:function(g,p){var r=g.querySelector(p);if(r){r.setAttribute("tabindex",0);var t=function(){r.removeAttribute("tabindex");r.removeEventListener("blur",t)};requestAnimationFrame(function(){r.addEventListener("blur",t);r.focus()})}},getMobileOS:function(){var g=navigator.userAgent; 396return/android/i.test(g)?"android":/iPad|iPhone|iPod|iPad Simulator|iPhone Simulator|iPod Simulator/.test(g)||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints?"
396ios":"other"},getStickyNavHeightPromise:function(g){g=void 0===g?!1:g;var p=[],r=null;".explore-lnb-navigation .explore-lnb.sticky-nav;.nv07-explore-floating-navigation.use-sticky-nav;.floating-navigation.floating-navigation--fixed;.nv14-visual-lnb__container.sticky;.lnb-nav.lnb-nav--sticky.lnb-nav--fixed;.sticky-navigation-text.is-fixed;.pdd01-anchor-nav-v2--fixed .pdd01-anchor-nav-v2__menu".split(";").forEach(function(t){var w= 397document.querySelector(t);w&&0<w.offsetWidth&&0<w.offsetHeight&&(g?(t=new Promise(function(y){var C=null,E=w.offsetHeight,z=setInterval(function(){w.offsetHeight===E?(clearInterval(z),C+=w.offsetHeight,y(C)):E=w.offsetHeight},100)}),p.push(t)):r+=w.offsetHeight)});return g?Promise.allSettled(p):r},scrollHash:function(){var g=window.location.hash.trim().replace("#","");document.getElementById(g)&&b.getStickyNavHeightPromise(!0).then(function(p){var r=null;p.forEach(function(t){r+=t.value});window.scrollTo(0, 398Math.round(document.getElementById(g).getBoundingClientRect().top+window.scrollY)-r)})},getEllipsis:function(g,p){function r(E){if(!y)if(E.nodeType===Node.TEXT_NODE){var z=[].concat($jscomp.arrayFromIterable(f.segment(E.textContent))),V=p-w;z.length>V&&(y=E,C=V);w+=z.length}else E.nodeType===Node.ELEMENT_NODE&&Array.from(E.childNodes).forEach(function(ca){r(ca)})}var t=document.createElement("div");t.innerHTML=g;var w=0,y=null,C=0;r(t);if(!y)return g;g=[].concat($jscomp.arrayFromIterable(f.segment(y.textContent))); 399y.textContent=g.slice(0,C).map(function(E){return E.segment}).join("")+"...";for(g=y;g&&g!==t;){for(;g.nextSibling;)g.nextSibling.remove();g=g.parentNode}return t.innerHTML},setScrollPaddingTop:function(){var g={};return function(p,r){Number.isNaN(Number(r))||(g[p]=Number(r),p=Object.values(g).reduce(function(t,w){return t+w},0),0<p?document.querySelector("html").style.scrollPaddingTop=p+3+"px":document.querySelector("html").style.scrollPaddingTop="")}}(),getFileData:function(g){return window.__fileData__&& 400window.__fileData__[g]}};window.sg.common.constants=a;window.sg.common.utils=b;window.sg.common.bindEvents={hashChange:function(){window.removeEventListener("hashchange",window.sg.common.utils.scrollHash);window.addEventListener("hashchange",window.sg.common.utils.scrollHash)}};window.sg.common.bindEvents.hashChange()})(); 401(function(){var a={},n=window.sg.common.utils,h=n.extend,e=n.closest,c=function(l,f){f=void 0===f?{}:f;if(!l||l.nodeType!==Node.ELEMENT_NODE)throw new TypeError("Element should be given to initialize.");this.el=l;this.options={isRoot:!0,shouldInitChildren:!0};h(this.options,f);this.children=new Map;this.init();this.constructor.instances.set(this.el,this)};c.create=function(l,f){return this.instances.get(l)||new this(l,f)};c.prototype.init=function(){this.options.isRoot&&this.options.shouldInitChildren&& 402this._initChildren();this._init()};c.prototype._initChildren=function(){var l=this;this._getChildEls().forEach(function(f){return l._initChild(f)})};c.prototype._getChildEls=function(l){l=void 0===l?this.el:l;l=Array.from(l.querySelectorAll("[data-comp-name]"));l.sort(function(f,b){if(f===b)return 0;f=f.compareDocumentPosition(b);return f&4||f&16?1:f&2||f&8?-1:0});return l};c.prototype._initChild=function(l){var f=a[l.getAttribute("data-comp-name")];f&&((f=f.create&&"function"===typeof f.create?f.create(l, 403{isRoot:!1,shouldInitChildren:!1}):f.instances&&f.instances.has(l)?f.instances.get(l):new f(l))&&f.swiper&&(f=f.swiper),this.children.set(l,f))};c.prototype._init=function(){};c.prototype.reInit=function(l){for(var f=[],b=0;b<arguments.length;++b)f[b-0]=arguments[b];var g;b={shouldInitChildren:!0};1===f.length?f[0]instanceof Element?g=f[0]:"string"===typeof f[0]?g=this.el.querySelector(f[0]):"object"===typeof f[0]&&(b=f[0]):2===f.length&&(f[0]instanceof Element?g=f[0]:"string"===typeof f[0]&&(g=this.el.querySelector(f[0])), 404"object"===typeof f[1]&&(b=f[1]));h(this.options,b);g||(g=this.el);!this.options.isRoot&&this.options.shouldInitChildren?(g=this._getRoot(),g.reInit.apply(g,$jscomp.arrayFromIterable(f))):(this.options.isRoot&&this._reInitChildren(g),this.el===g?this._reInit():this.el.contains(g)&&this._reInitChild(g),this.options.isRoot&&window.sg.common.lazyLoad.setLazyLoad())};c.prototype._getRoot=function(l){l=void 0===l?this.el:l;var f=e(l.parentElement,"[data-comp-name]");
404if(l)return l=this.constructor.instances.get(f), 405l.options.isRoot?l:this._getRoot(f)};c.prototype._reInitChildren=function(l){var f=this;l=void 0===l?this.el:l;this.children.forEach(function(b,g){f.el.contains(g)||(b.destroy&&"function"===typeof b.destroy&&b.destroy(),f.children.delete(g))});this._getChildEls(l).forEach(function(b){return f._reInitChild(b)})};c.prototype._reInitChild=function(l){this.children.has(l)?(l=this.children.get(l),l.reInit&&"function"===typeof l.reInit&&(l.options&&"shouldInitChildren"in l.options?l.reInit({shouldInitChildren:!1}): 406l.reInit())):this._initChild(l)};c.prototype._reInit=function(){this._init()};c.prototype.update=function(){this.options.isRoot&&this._updateChildren();this._update();this.options.isRoot&&window.sg.common.lazyLoad.setLazyLoad()};c.prototype._updateChildren=function(){var l=this;this.children.forEach(function(f,b){l.el.contains(b)&&f.update&&"function"===typeof f.update&&f.update()})};c.prototype._update=function(){};c.prototype.destroy=function(){var l=this;this.children.forEach(function(f,b){f.destroy&& 407"function"===typeof f.destroy&&f.destroy();l.children.delete(b)});this.children=null;this._destroy();this.constructor.instances.delete(this.el)};c.prototype._destroy=function(){};c.prototype.getChild=function(l){if(!(l instanceof Element))if("string"===typeof l)l=this.el.querySelector(l);else return;if(this.children&&this.children.has(l))return this.children.get(l);if(this.el.contains(l)){var f=a[l.getAttribute("data-comp-name")];if(f&&f.instances&&f.instances.has(l))return(l=f.instances.get(l))&& 408l.swiper&&(l=l.swiper),l}};c.prototype.setOptions=function(l){h(this.options,l)};c.prototype.emit=function(l,f,b){b=void 0===b?!1:b;if("function"===typeof CustomEvent)var g=new CustomEvent(l,{bubbles:b,detail:f});else g=document.createEvent("CustomEvent"),g.initCustomEvent(l,b,!1,f);this.el.dispatchEvent(g)};c.prototype.listen=function(l,f,b){this.el.addEventListener(l,f,b)};c.prototype.unListen=function(l,f,b){this.el.removeEventListener(l,f,b)};c.instances=new WeakMap;var k=function(l,f){if(!(l instanceof 409Element))if("string"===typeof l)l=document.querySelector(l);else throw new TypeError("Element or selector string should be given as an argument");var b=l.getAttribute("data-comp-name");if(!b||!a[b])throw new ReferenceError("Component class should be registered.");b=a[b];(f=b===c||b.prototype instanceof c?b.create(l,f):b.instances&&b.instances.has(l)?b.instances.get(l):new b(l))&&f.swiper&&(f=f.swiper);return f};n=function(l,f){a[l]=f;if(f===c||f.prototype instanceof c){var b=Array.from(document.querySelectorAll('[data-comp-name\x3d"'+ 410l+'"]:not([data-auto-init\x3d"false"])'));b=b.filter(function(g){return!e(g.parentElement,"[data-comp-name]")});l=function(){return b.forEach(function(g){return k(g)})};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",l):l()}};n("base",c);h(window.sg.components,{create:k,registerClass:n,unRegisterClass:function(l){a[l]=null;delete a[l]},getClass:function(l){return a[l]},Base:c})})(); 411(function(){var a=[];window.sg.common.observer={register:function(n){"function"===typeof n&&-1===a.indexOf(n)&&a.push(n)},unRegister:function(n){if("function"===typeof n){var h=a.indexOf(n);-1<h&&n.splice(h,1)}},test:function(){a.forEach(function(n){n(document)})},handlers:a}})(); 412(function(){var a=function(h){this.target="object"===typeof h?Array.isArray(h)?h:[h]:h?Array.prototype.slice.call(document.querySelectorAll(h)):[]};a.prototype.find=function(h){var e=[];this.target.forEach(function(c){e=e.concat(Array.prototype.slice.call(c.querySelectorAll(h)))});return new a(e)};a.prototype.eq=function(h){h=this.target[h];return new a(h?[h]:"")};a.prototype.parent=function(){return 0===this.target.length?new a(""):new a(this.target[0].parentNode?[this.target[0].parentNode]:"")}; 413a.prototype.children=function(h){h=void 0===h?null:h;var e=[];this.target.forEach(function(c){e=h?e.concat(Array.prototype.slice.call(c.querySelectorAll(h))):e.concat(Array.prototype.slice.call(c.children))});return new a(e)};a.prototype.closest=function(h){function e(f){return(f.matches?f.matches(h):f.webkitMatchesSelector?f.webkitMatchesSelector(h):f.msMatchesSelector(h))?f:f===document.body?null:null!==f.parentNode?e(f.parentNode):null}function c(f){return f===h?f:f===document.body?null:c(f.parentNode)} 414if(0===this.target.length)return this;if(!this.target[0].parentElement)return new a([this.target]);var k=[],l="string"===typeof h;this.target.forEach(function(f){f=l?e(f):c(f);null!==f&&k.push(f)});return new a(k)};a.prototype.siblings=function(){return new a(function(h){return[].concat($jscomp.arrayFromIterable(h.parentElement.children)).filter(function(e){return e!==h})}(this.target[0]))};a.prototype.setLayerFocus=function(h,e,c){c=void 0===c?!0:c;var k=this.find(h);c&&k.attr("tabindex",0);k.addClass("layer-popup__looping"); 415this.find(".layer-popup__looping--first").target.length||(c?k.prepend('\x3cdiv class\x3d"layer-popup__looping--first hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'):this.target[0].insertAdjacentHTML("afterbegin",'\x3cdiv class\x3d"layer-popup__looping--first hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'));var l=this.find(e);this.find(".layer-popup__looping--end").target.length||(c?l.after('\x3cdiv class\x3d"layer-popup__looping--end hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'): 416this.append('\x3cdiv class\x3d"layer-popup__looping--end hidden" tabindex\x3d"0" aria-hidden\x3d"true"\x3e\x3c/div\x3e'));h=this.find(".layer-popup__looping--first");e=this.find(".layer-popup__looping--end");h.off("focus").on("focus",function(){l.focus()});e.off("focus").on("focus",function(){k.focus()});k.focus()};a.prototype.offLayerFocus=function(){this.find(".layer-popup__looping").removeAttr("tabindex");this.find(".layer-popup__looping--first").off("focus").remove();this.find(".layer-popup__looping--end").off("focus").remove()}; 417a.prototype.css=function(h){var e=this.target[0];if(e){if("string"===typeof h)return window.getComputedStyle(e)[h];
417this.target.forEach(function(c){Object.keys(h).forEach(function(k){c.style[k]=h[k]})})}};a.prototype.show=function(){var h=this.target;h&&h.forEach(function(e){n(e).css({display:"block"})})};a.prototype.hide=function(){var h=this.target;h&&h.forEach(function(e){n(e).css({display:"none"})})};a.prototype.scrollTop=function(h){var e=this.target[0];if(e){if(void 0===h)return e.scrollTop; 418e.scrollTop=h}};a.prototype.animate=function(h,e,c,k){var l=this;c=void 0===c?null:c;k=void 0===k?null:k;"string"!==typeof c&&(k=c,c=null);var f="webkitTransitionEnd oTransitionEnd otransitionend mozTransitionEnd moztransitionend transitionend transitionEnd".split(" ");this.target.forEach(function(b){function g(t){if(void 0===t||t.target===b)null!==k&&k(b),b.style.transition=r,f.forEach(function(w){b.removeEventListener(w,g);b.animateComplete=null})}var p=window.getComputedStyle(b);Object.keys(h).forEach(function(t){b.style[t]= 419p[t]});var r=b.style.transition;b.style.transitionDuration=e/1E3+"s";null!==c&&(b.style.transitionTimingFunction=c);["o","ms","moz","webkit"].forEach(function(t){b.style[t+"TransitionDuration"]=e/1E3+"s";null!==c&&(b.style[t+"transitionTimingFunction"]=c)});b.animateComplete=g;f.forEach(function(t){b.addEventListener(t,g)})});setTimeout(function(){l.css(h)}.bind(this),30)};a.prototype.finish=function(){var h=this;if(this.target[0]){var e=document.createEvent("Event");"webkitTransitionEnd oTransitionEnd otransitionend mozTransitionEnd moztransitionend transitionend transitionEnd".split(" ").forEach(function(c){e.initEvent(c, 420!1,!0);h.target.forEach(function(k){k.dispatchEvent(e)})});return this}};a.prototype.stop=function(){this.target.forEach(function(h){for(var e=0,c=window.getComputedStyle(h);h.style.length>e;){e++;var k=h.style[e-1];-1<k.indexOf("transition")||(h.style[k]=c[k])}h.style.transitionDuration="0s";["o","ms","moz","webkit"].forEach(function(f){h.style[f+"TransitionDuration"]="0s"});var l=h.animateComplete;"webkitTransitionEnd oTransitionEnd otransitionend mozTransitionEnd moztransitionend transitionend transitionEnd".split(" ").forEach(function(f){h.removeEventListener(f, 421l);h.animateComplete=null})});return this};a.prototype.isAnimate=function(){return this.target.some(function(h){if("function"===typeof h.animateComplete)return!0})};a.prototype.slideDown=function(h,e){var c=this;this.target.forEach(function(k){var l=k.style.height,f=k.style.display;k.style.display="block";var b=window.getComputedStyle(k).height;k.style.height="0px";var g=k.style.overflow;k.style.overflow="hidden";c.css({overflow:"hidden"});c.animate({height:b},h,function(){k.style.display=f;k.style.height= 422l;k.style.overflow=g;void 0!==e&&e()})})};a.prototype.slideUp=function(h,e){var c=this;this.target.forEach(function(k){function l(){k.style.height=f.height;k.style.overflow=f.overflow;k.style.padding=f.padding;void 0!==e&&e()}var f={height:k.style.height,overflow:k.style.overflow,padding:k.style.padding};k.style.height=window.getComputedStyle(k).height;setTimeout(function(){c.animate({overflow:"hidden",height:"0px",paddingTop:"0px",paddingBottom:"0px"},h,l)}.bind(c),30)})};a.prototype.index=function(){var h= 423this.target[0];if(h){var e=0;Array.prototype.slice.call(h.parentNode.children).forEach(function(c,k){h===c&&(e=k)});return e}};a.prototype.offset=function(){var h=this.target[0];if(h)return h.getBoundingClientRect()};a.prototype.width=function(){var h=this.target[0];if(h){var e=window.getComputedStyle(h);return h.offsetWidth-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10)-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}};a.prototype.innerWidth=function(){var h=this.target[0]; 424if(h){var e=window.getComputedStyle(h);return h.offsetWidth-parseInt(e.borderLeftWidth,10)-parseInt(e.borderRightWidth,10)}};a.prototype.outerWidth=function(){var h=this.target[0];if(h)return h.clientWidth};a.prototype.height=function(){var h=this.target[0];if(h){var e=window.getComputedStyle(h);return h.offsetHeight-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)-parseInt(e.borderTopWidth,10)-parseInt(e.borderBottomWidth,10)}};
424a.prototype.innerHeight=function(){var h=this.target[0];if(h){var e= 425window.getComputedStyle(h);return h.offsetHeight-parseInt(e.borderTopWidth,10)-parseInt(e.borderBottomWidth,10)}};a.prototype.outerHeight=function(){var h=this.target[0];if(h)return h.clientHeight};a.prototype.isImageLoad=function(){return 0<this.target[0].naturalWidth&&this.target[0].naturalHeight?!0:!1};a.prototype.hasClass=function(h){var e=this.target[0];if(e)return(new RegExp("(\\s|^)"+h+"(\\s|$)")).test(e.className)};a.prototype.addClass=function(h){var e=this.target;e&&e.forEach(function(c){c.classList.add(h)})}; 426a.prototype.removeClass=function(h){var e=this.target;e&&e.forEach(function(c){c.classList.remove(h)})};a.prototype.toggleClass=function(h){var e=this.target;e&&e.forEach(function(c){c.classList.toggle(h)})};a.prototype.attr=function(h,e){if(this.target){if(1<arguments.length)this.target.forEach(function(k){k.setAttribute&&k.setAttribute(h,e)});else{var c=this.target[0];return c?c.getAttribute(h):!1}return this}};a.prototype.removeAttr=function(h){this.target&&this.target.forEach(function(e){e.removeAttribute(h)})}; 427a.prototype.text=function(h){this.target.forEach(function(e){e.textContent=h})};a.prototype.innerHTML=function(h){this.target&&(this.target[0].innerHTML=h)};a.prototype.append=function(h){this.target.forEach(function(e){Array.isArray(h)?h.forEach(function(c){"string"===typeof c?e.insertAdjacentHTML("beforeend",c):e.appendChild(c)}):"string"===typeof h?e.insertAdjacentHTML("beforeend",h):e.appendChild(h)})};a.prototype.after=function(h){this.target.forEach(function(e){Array.isArray(h)?(h=[].concat($jscomp.arrayFromIterable(h)).reverse(), 428h.forEach(function(c){"string"===typeof c?e.insertAdjacentHTML("afterend",c):e.insertAdjacentElement("afterend",c)})):"string"===typeof h?e.insertAdjacentHTML("afterend",h):e.insertAdjacentElement("afterend",h)})};a.prototype.prepend=function(h){this.target.forEach(function(e){Array.isArray(h)?h.forEach(function(c){"string"===typeof c?e.insertAdjacentHTML("beforebegin",c):c&&e.insertBefore(c,e.firstChild)}):"string"===typeof h?e.insertAdjacentHTML("beforebegin",h):h&&e.insertBefore(h,e.firstChild)})}; 429a.prototype.before=function(){};a.prototype.clone=function(){if(this.target[0]){var h=[];this.target.forEach(function(e){h.push(e.cloneNode(!0))});return h}};a.prototype.remove=function(){this.target[0]&&this.target.forEach(function(h){h.parentNode.removeChild(h)})};a.prototype.focus=function(){var h=this.target[0];if(h&&h.focus)return h.focus(),this};a.prototype.blur=function(){var h=this.target[0];if(h)return h.blur(),this};a.prototype.on=function(h,e){var c=this.target;c&&c.forEach(function(k){a.instances.has(k)|| 430a.instances.set(k,{event:[],handler:[]});a.instances.get(k).handler.push({event:h,handler:e});k.addEventListener(h,e)})};a.prototype.off=function(h,e){var c=this.target;if(c)return c.forEach(function(k){if(a.instances.has(k)){var l=a.instances.get(k);if(h&&e){var f=[];l.handler.forEach(function(g){g.event===h&&g.handler===e?k.removeEventListener(g.event,g.handler):f.push({event:g.event,handler:g.handler})});l.handler=f}else if(h){var b=[];l.handler.forEach(function(g){g.event===h&&k!==window?k.removeEventListener(g.event, 431g.handler):b.push({event:g.event,handler:g.handler})});l.handler=b}else k!==window&&(l.handler.forEach(function(g){k.removeEventListener(g.event,g.handler)}),l.handler=[])}}),this};a.prototype.trigger=function(h){if(this.target[0]){var e=document.createEvent("Event");e.initEvent(h,!1,!0);this.target.forEach(function(c){c.dispatchEvent(e)})}};a.prototype.moveScroll=function(h,e,c){e=void 0===e?500:e;c=void 0===c?null:c;var k=(new Date).getTime();if(0===this.target.length)return!1;if("HTML"!==this.target[0].tagName&& 432"BODY"!==this.target[0].tagName){var l=this.target[0],f=h-l.scrollTop,b=e,g=Math.ceil(Math.abs(f)/Math.ceil(b/16));requestAnimationFrame(function E(){var z=(new Date).getTime()-k;if(0<f){var V=l.scrollTop+g;l.scrollTop=l.scrollTop>h?h:V}else V=l.scrollTop-g,l.scrollTop=l.scrollTop<h?h:V;z<=b?requestAnimationFrame(E):(0<f?l.scrollTop<h&&(l.scrollTop=h):l.scrollTop>h&&(l.scrollTop=h),null!==c&&c())})}else{var p=Math.round(h),r=p-(document.body.scrollTop||document.documentElement.scrollTop),t=Math.ceil(Math.abs(r)/ 433(e/16)),w=document.body.scrollLeft||document.documentElement.scrollLeft,y=null;requestAnimationFrame(function E(){var z=document.body.scrollTop||document.documentElement.scrollTop;if(y===z)null!==c&&c();else{if(0<r){var V=z+t;V>p&&(V=p)}else V=z-t,V<p&&(V=p);window.scrollTo(w,V);y=z;p!==V?requestAnimationFrame(E):null!==c&&c()}})}};a.prototype.moveScrollX=function(h,e,c){function k(){b.scrollLeft=f;null!==c&&c()}e=void 0===e?500:e;c=void 0===c?null:c;var l=(new Date).getTime();if(0===this.target.length)return!1; 434var f=h,b=this.target[0],g=f-b.scrollLeft,p=e,r=Math.ceil(Math.abs(g)/Math.ceil(p/16));requestAnimationFrame(function w(){var y=(new Date).getTime()-l;if(0<g){var C=b.scrollLeft+r;if(b.scrollLeft>f){k();return}}else if(C=b.scrollLeft-r,b.scrollLeft<f){k();return}b.scrollLeft=C;y<=p?requestAnimationFrame(w):0<g?b.scrollLeft<f&&k():b.scrollLeft>f&&k()})};a.instances=new WeakMap;var n=function(h){return new a(h)};n.ready=function(h){"loading"===document.readyState?document.addEventListener("DOMContentLoaded", 435h):h()};n.load=function(h){document.addEventListener("readystatechange",function(e){"complete"===e.target.readyState&&h()})};window.sg.common.libs={keyCode:{TAB_KEY:9,ENTER:13,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40},extend:function(h,e){Object.keys(e).forEach(function(c){h[c]=e[c]});return h}};window.sg.common.$q=n})(); 436(function(){var a=window.sg.common.utils.isVerticalVisible,n=window.sg.common.utils.isHorizontalVisible,h=function(c){this.el=c=void 0===c?document:c;this.lazyEls=[];this.disabled=this.active=!1;this.tempTitle=document.querySelector("#tempTitle")&&document.querySelector("#tempTitle").value;this.tempTitleVerticalBuffer={"page-standard-pd":2E3,"page-feature-pd":2E3};this.tempTitleHorizontalBuffer={};this.init()};h.prototype.init=function(){this.setLazyLoad();this.bindEvents()};h.prototype.dispose=function(){this.el= 437null;this.lazyEls=[];this.unBindEvents()};h.prototype.setDisabled=function(c){(this.disabled=c=void 0===c?!0:c)||this.setLazyLoad()};h.prototype.getEls=function(){this.el&&(this.lazyEls=[].concat($jscomp.arrayFromIterable(this.el.querySelectorAll(".lazy-load"))))};h.prototype.reInit=function(){this.disabled=this.active=!1;this.setLazyLoad();this.unBindEvents();this.bindEvents()};h.prototype.handleLazyLoad=function(c){var k=void 0;c&&c.detail&&(k=c.detail.delay);this.setLazyLoad(k)};h.prototype.setLazyLoad= 438function(c){var k=this;c=void 0===c?200:c;
438var l=function(){k.disabled||(k.getEls(),k.lazyEls.forEach(function(f){k.load(f);0===k.lazyEls.length&&k.unBindEvents()}))};this.active||(0<c?(this.active=!0,setTimeout(function(){l();k.active=!1},c)):l())};h.prototype.setPreviewImageLoaded=function(c){var k=this,l=this.tempTitleVerticalBuffer&&this.tempTitleVerticalBuffer[this.tempTitle]||void 0,f=function(){!k.disabled&&a(c,l)&&([].concat($jscomp.arrayFromIterable(c.querySelectorAll(".image__preview"))).forEach(function(b){b.classList.contains("lazy-load")&& 439k.loadImage(b)}),document.removeEventListener("scroll",f),window.removeEventListener("resize",f),window.removeEventListener("orientationchange",f))};document.addEventListener("scroll",f);window.addEventListener("resize",f);window.addEventListener("orientationchange",f)};h.prototype.loadImmediately=function(c){c.classList.contains("image__preview")||c.classList.contains("image__main")||c.classList.contains("image__hover-image--hover")?this.loadImage(c):c.classList.contains("video")&&this.loadVideo(c); 440c.classList.contains("image-v2")&&this.loadImage(c,"all")};h.prototype.setLazyLoadManually=function(c){var k=this;c.classList.contains("lazy-load-man")?(this.loadImmediately(c),c.classList.remove("lazy-load-man")):[].concat($jscomp.arrayFromIterable(c.querySelectorAll(".lazy-load-man"))).forEach(function(l){k.loadImmediately(l);l.classList.remove("lazy-load-man")})};h.prototype.ignoreLazyLoadOnceUnder=function(c,k){[].concat($jscomp.arrayFromIterable(c.querySelectorAll(".lazy-load"))).forEach(function(l){var f= 441window.pageYOffset,b=l.getBoundingClientRect();(b.bottom+f<k||b.top+f<k)&&l.classList.add("lazy-load-ignore-once")})};h.prototype.forceLoad=function(c){var k=this;c.classList.contains("lazy-load")?this.loadImmediately(c):[].concat($jscomp.arrayFromIterable(c.querySelectorAll(".lazy-load"))).forEach(function(l){k.loadImmediately(l)})};h.prototype.load=function(c){var k=this.tempTitleVerticalBuffer&&this.tempTitleVerticalBuffer[this.tempTitle]||void 0,l=this.tempTitleHorizontalBuffe&&this.tempTitleHorizontalBuffer[this.tempTitle]|| 442void 0;c.classList.contains("lazy-load-ignore-once")||(a(c,k)&&(c.classList.contains("image__preview")?this.loadImage(c):n(c,l)&&(c.classList.contains("image__main")||c.classList.contains("image__hover-image--hover")?this.loadImage(c):c.classList.contains("video")&&this.loadVideo(c))),c.classList.contains("image-v2")&&a(c)&&(this.loadImage(c,"preview"),n(c)&&this.loadImage(c,"main")));c.classList.remove("lazy-load-ignore-once")};h.prototype.clearLazy=function(c){if(c.classList.contains("image-v2")){var k= 443!1;[].concat($jscomp.arrayFromIterable(c.querySelectorAll("img"))).forEach(function(l){l.dataset.src&&(k=!0)});if(k)return}c.classList.remove("lazy-load");this.lazyEls=this.lazyEls.filter(function(l){return l!==c})};h.prototype.loadImage=function(c,k){var l=(k=void 0===k?null:k)?window.sg.common.imagev2:window.sg.common.image;l&&l.load(c,k);this.clearLazy(c)};h.prototype.loadVideo=function(c){var k=window.sg.common.video;k&&k.load(c);this.clearLazy(c)};h.prototype.bindEvents=function(){this.handleLazyLoad= 444this.handleLazyLoad.bind(this);document.addEventListener("scroll",this.handleLazyLoad);window.addEventListener("resize",this.handleLazyLoad);window.addEventListener("orientationchange",this.handleLazyLoad)};h.prototype.unBindEvents=function(){document.removeEventListener("scroll",this.handleLazyLoad);window.removeEventListener("resize",this.handleLazyLoad);window.removeEventListener("orientationchange",this.handleLazyLoad)};h.instance=null;var e={initAll:function(){h.instance&&(h.instance.dispose(), 445h.instance=null);h.instance=new h},init:function(){h.instance?h.instance.reInit():h.instance=new h},reInit:function(){e.init()},setLazyLoad:function(){h.instance||(h.instance=new h);h.instance.setLazyLoad(0)},setPreviewImageLoaded:function(c){h.instance||(h.instance=new h);h.instance.setPreviewImageLoaded(c)},setLazyLoadManually:function(c){c&&(h.instance||(h.instance=new h),h.instance.setLazyLoadManually(c))},ignoreLazyLoadOnceUnder:function(c,k){h.instance||(h.instance=new h);h.instance.ignoreLazyLoadOnceUnder(c, 446k)},setDisabled:function(c){c=void 0===c?!0:c;h.instance||(h.instance=new h);h.instance.setDisabled(c)},forceLoad:function(c){c&&(h.instance||(h.instance=new h),h.instance.forceLoad(c))}};window.sg.common.lazyLoad=e;document.addEventListener("DOMContentLoaded",e.initAll);"loading"!==document.readyState&&e.initAll()})(); 447(function(){var a=window.sg.common.utils.getViewPort,n=window.sg.common.utils.getCurrentDevice,h=function(c){this.els={el:c,previewImgEl:null,mainImg
447El:null};this.dpr=this.maxWidth=this.device="";this.init()};h.prototype.init=function(){h.instances.has(this.els.el)||(h.instances.set(this.els.el,this),this.setElement(),this.els.mainImgEl.complete&&0!==this.els.mainImgEl.naturalWidth&&this.handleLoad(),this.setResponsive(),this.bindEvents())};h.prototype.setElement=function(){this.els.previewImgEl= 448this.els.el.querySelector(".image-v2__preview");this.els.mainImgEl=this.els.el.querySelector(".image-v2__main")};h.prototype.setResponsive=function(){var c=this,k=n(),l=this.getCurrentMaxWidth(),f=this.getCurrentDpr(),b=this.els.el.classList.contains("lazy-load")||this.els.el.classList.contains("lazy-load-man"),g=function(p,r){b?(p.dataset.src=void 0===p.dataset.src?"":p.dataset.src,0>p.dataset.src.indexOf(r)&&(p.dataset.src=r)):0>decodeURI(p.src).indexOf(r)&&(p===c.els.mainImgEl&&c.els.el.classList.remove("image-v2--main-loaded"), 449p.src=r)};this.els.previewImgEl&&this.device!==k&&(this.device=k,g(this.els.previewImgEl,this.els.previewImgEl.dataset[this.device+"Src"]),this.els.previewImgEl.dataset.desktopAlt&&("desktop"===this.device?this.els.previewImgEl.setAttribute("alt",this.els.previewImgEl.dataset.desktopAlt):this.els.previewImgEl.setAttribute("alt",this.els.previewImgEl.dataset.mobileAlt)));if(this.maxWidth!==l||this.dpr!==f)this.maxWidth=l,this.dpr=f,g(this.els.mainImgEl,this.els.mainImgEl.dataset[this.maxWidth+"w"+ 450this.dpr+"xSrc"]),this.els.mainImgEl.dataset.desktopAlt&&("360"===this.maxWidth?this.els.mainImgEl.setAttribute("alt",this.els.mainImgEl.dataset.mobileAlt):this.els.mainImgEl.setAttribute("alt",this.els.mainImgEl.dataset.desktopAlt))};h.prototype.load=function(c){var k=this,l=function(f){f&&f.dataset.src&&0>decodeURI(f.src).indexOf(f.dataset.src)&&(f===k.els.mainImgEl&&k.els.el.classList.remove("image-v2--main-loaded"),f.src=f.dataset.src,f.removeAttribute("data-src"))};"preview"===c?l(this.els.previewImgEl): 451("main"!==c&&l(this.els.previewImgEl),l(this.els.mainImgEl))};h.prototype.handleLoad=function(){this.els.el.classList.add("image-v2--main-loaded")};h.prototype.bindEvents=function(){this.setResponsive=this.setResponsive.bind(this);window.addEventListener("resize",this.setResponsive);this.handleLoad=this.handleLoad.bind(this);this.els.mainImgEl.addEventListener("load",this.handleLoad)};h.prototype.getCurrentMaxWidth=function(){var c=a().width;return 768>c?"360":768<=c&&1366>c?"768":"1366"};h.prototype.getCurrentDpr= 452function(){return 1.5>window.devicePixelRatio?1:2};h.instances=new WeakMap;var e={initAll:function(c){c=void 0===c?document:c;var k=function(l){h.instances.has(l)||new h(l)};c!==document&&c.classList&&c.classList.contain("image-v2")?k(c):(c.querySelectorAll||(c=document),[].concat($jscomp.arrayFromIterable(c.querySelectorAll(".image-v2"))).forEach(function(l){k(l)}))},load:function(c,k){k=void 0===k?"all":k;h.instances.has(c)?h.instances.get(c).load(k):(new h(c)).load(k)}};window.sg.common.imagev2= 453e;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e.initAll):e.initAll()})(); 454(function(){var a=window.sg.common.utils.getCurrentDevice,n=window.sg.common.utils.detectTransitionEndEvent,h=function(c){this.el=c;this.init()};h.prototype.init=function(){h.instances.has(this.el)||(h.instances.set(this.el,this),this.setElement(),this.setResponsiveImage(),this.bindEvents())};h.prototype.reInit=function(){this.unBindEvents();this.setElement();this.setResponsiveImage();this.bindEvents()};h.prototype.setElement=function(){this.el.getAttribute("alt")||(this.el.setAttribute("alt",""), 455this.el.removeAttribute("role"))};h.prototype.destroy=function(){this.unBindEvents();h.instances.has(this.el)&&h.instances.delete(this.el);this.el=null};h.prototype.load=function(){0>decodeURI(this.el.src).indexOf(this.el.dataset.src)&&(this.el.src=this.el.dataset.src,this.el.classList.remove("image--loaded"),this.el.classList.remove("image--hide"),this.el.removeAttribute("aria-hidden"));this.el.removeAttribute("data-src")};h.prototype.setImageLoaded=function(){var c=this;this.el.classList.add("image--loaded"); 456if(this.el.classList.contains("image__main")){this.el.style.transition="opacity .2s";this.el.parentElement.classList.add("image--main-loaded");var k=function(){c.el.style.transition="";var b=c.el.parentElement.querySelector(".image__preview");b&&(b.classList.add("image--hide"),b.setAttribute("aria-hidden","true"))},l=n(this.el);if(l){var f=function(){k();c.el.removeEventListener(l,f)};this.el.addEventListener(l,f)}else setTimeout(k,200)}};h.prototype.bindImageLoad=function(){if(this.el.classList.contains("image__main")|| 457this.el.classList.contains("image__preview"))this.el.complete&&0!==this.el.naturalWi
457dth&&!this.el.classList.contains("image--loaded")&&this.setImageLoaded(),this.setImageLoaded=this.setImageLoaded.bind(this),this.el.addEventListener("load",this.setImageLoaded)};h.prototype.bindResponsive=function(){this.el.dataset.desktopSrc!==this.el.dataset.mobileSrc&&(this.setResponsiveImage=this.setResponsiveImage.bind(this),window.addEventListener("resize",this.setResponsiveImage))};h.prototype.bindEvents=function(){this.el.classList.contains("responsive-img")&& 458this.bindResponsive();this.bindImageLoad()};h.prototype.unBindEvents=function(){this.el.removeEventListener("load",this.setImageLoaded);window.removeEventListener("resize",this.setResponsiveImage)};h.prototype.setResponsiveImage=function(){if(this.el.classList.contains("responsive-img")){var c=a();if(this.device!==c){this.device=c;(c=this.el.dataset[this.device+"Src"])?this.el.style.removeProperty("display"):this.el.style.display="none";if(this.el.classList.contains("lazy-load")||this.el.classList.contains("lazy-load-man"))this.el.dataset.src= 459void 0===this.el.dataset.src?"":this.el.dataset.src,0>this.el.dataset.src.indexOf(c)&&(this.el.dataset.src=c);else{try{var k=decodeURI(this.el.src)}catch(l){k=this.el.src}0>k.indexOf(c)&&(this.el.classList.remove("image--loaded"),this.el.classList.remove("image--hide"),this.el.removeAttribute("aria-hidden"),this.el.src=c)}k=this.el.dataset[this.device+"Alt"];void 0!==k&&this.el.setAttribute("alt",k)}}};h.instances=new WeakMap;window.sg.components.registerClass("image",h);var e={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.image img:not([data-auto-init\x3d"false"])'))).forEach(function(c){h.instances.has(c)|| 460new h(c)})},init:function(c){h.instances.has(c)||new h(c)},reInit:function(c){h.instances.has(c)?h.instances.get(c).reInit():new h(c)},load:function(c){h.instances.has(c)?h.instances.get(c).load():(new h(c)).load()},delete:function(c){h.instances.delete(c)},destroy:function(c){h.instances.has(c)&&h.instances.get(c).destroy()}};window.sg.common.image=e;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e.initAll):e.initAll()})(); 461(function(){var a={index:0,isYoutubeReady:!1,callbacks:[],enqueueOnYoutubeIframeApiReady:function(b){a.isYoutubeReady?b():a.callbacks.push(b)},onYouTubeIframeApiReady:function(){a.isYoutubeReady=!0;a.callbacks.forEach(function(b){b()});a.callbacks.splice(0)}};window.sg.common.videoApi=a;window.onYouTubeIframeAPIReady=a.onYouTubeIframeApiReady;var n={ACE:{accountId:"5685289444001",playerId:"WO3Tb7i1g"},AE:{accountId:"923227814001",playerId:"YVPxrKSek"},AE_ARABIC:{accountId:"923136719001",playerId:"E3oao1olw"}, 462AE_ARABIC_CS:{accountId:"5711373595001",playerId:"9urZPAGHD"},AE_CS:{accountId:"5711373594001",playerId:"0XMYguG2Nw"},AFRICA_EN:{accountId:"923270648001",playerId:"lsyG00Wz0"},AFRICA_EN_CS:{accountId:"5711373605001",playerId:"t1guP7iYwy"},AFRICA_FR:{accountId:"923227818001",playerId:"Tmx2dzbrT"},AFRICA_FR_CS:{accountId:"5711373606001",playerId:"gLuvxDp4b"},AFRICA_PT:{accountId:"923136723001",playerId:"1CZXrnviEE"},AFRICA_PT_CS:{accountId:"5711373607001",playerId:"azVZUTl7x"},AL:{accountId:"5395474900001", 463playerId:"oKHrt1Hn6"},AL_CS:{accountId:"5711373614001",playerId:"if48zX24H"},AR:{accountId:"923270634001",playerId:"gqJSxYCzB"},AR_CS:{accountId:"5709700884001",playerId:"ojd4uMnUWl"},AT:{accountId:"923227809001",playerId:"wnRfbwIVL"},AT_CS:{accountId:"5711373581001",playerId:"cGZtAkJpT"},AU:{accountId:"923162666001",playerId:"VMb9FyMxk"},AU_CS:{accountId:"5709700889001",playerId:"bB2vkQudw"},BE:{accountId:"923136716001",playerId:"LzbXypCvz"},BE_CS:{accountId:"5675787971001",playerId:"sEimKv7IW"}, 464BE_FR:{accountId:"923162674001",playerId:"FleM4KQofp"},BE_FR_CS:{accountId:"5675787972001",playerId:"7WhhmlxJj"},BG:{accountId:"923270643001",playerId:"Jo7zzVtd5"},BG_CS:{accountId:"5711373580001",playerId:"e6AWwoixf"},BR:{accountId:"923162661001",playerId:"v2BLpgM8d"},BR_CS:{accountId:"5709700879001",playerId:"qjm3J8bZLB"},CA:{accountId:"923270632001",playerId:"RUxsKbp4e"},CA_CS:{accountId:"5709700877001",playerId:"VCXS3jzBQ"},CA_FR:{accountId:"923227798001",playerId:"db9VQnzIIo"},CA_FR_CS:{accountId:"5709700876001", 465playerId:"Hghbkb4GOc"},CH:{accountId:"923162673001",playerId:"U0Tv0wE3G"},CH_CS:{accountId:"5711373582001",playerId:"wfkyW1T9N"},CH_FR:{accountId:"923227810001",playerId:"wvyBB7ZyD"},CH_FR_CS:{accountId:"5711373583001",playerId:"8iaLX3eay"},CL:{accountId:"923227801001",playerId:"nbGAqWiyZ"},CL_CS:{accountId:"5709700885001",playerId:"seAio3Iab1"},CN:{accountId:"923270636001",playerId:"UOGt9s1Ot"},CN_CS:{accountId:"5711373561001",playerId:"0polYNx0hB"},CO:{accountId:"923162663001",playerId:"VN3FsuEmoA"}, 466CO_CS:{accountId:"5709700883001",playerId:"QkIcs4LRi"},CZ:{accountId:"923270642001",playerId:"JofGmsuUaU"},CZ_CS:{accountId:"5711373577001",playerId:"W4LcfRCdX"},DE:{accountId:"923227805001",playerId:"r5nOZyzd1"},DEV:{accountId:"901961867001",playerId:"jSPFC1gYrR"},DE_CS:{accountId:"5675787970001",playerId:"Ojq20h6rI"},DK:{accountId:"923270638001",playerId:"zThis2SPx"},DK_CS:{accountId:"5711373569001",playerId:"V6MCi9Amm"},EE:{accountId:"923227812001",playerId:"89aGBrdO5"},EE_CS:{accountId:"5711373586001", 467playerId:"h1RB4WzC8h"},EG:{accountId:"923162680001",playerId:"KWJoclhcD"},EG_CS:{accountId:"5711373603001",playerId:"t6vHuEvebf"},ES:{accountId:"923162670001",playerId:"yq8Y8zZ3dG"},ES_CS:{accountId:"5711373566001",playerId:"AzllJfpFb"},FI:{accountId:"923162672001",playerId:"B8mrwLnI6"},FI_CS:{accountId:"5711373571001",playerId:"1d4N0XfEj"},FR:{accountId:"923227807001",playerId:"aACd9IQvK"},FR_CS:{accountId:"5711373573001",playerId:"wfmvyAQHg"},GCS:{accountId:"1852113008001",playerId:"b1SElAGyQ"}, 468GLOBAL:{accountId:"2933392367001",playerId:"i8zNocbMqF"},GR:{accountId:"923136713001",playerId:"VXwt3KwO7"},GR_CS:{accountId:"5711373576001",playerId:"OHk0ZpVMG"},HK:{accountId:"923227804001",playerId:"BlUhaVyrM"},HK_CS:{accountId:"5711373562001",playerId:"rUnBOAERZ"},HK_EN:{accountId:"923136709001",playerId:"y80dQbj5o"},HK_EN_CS:{accountId:"5711373563001",playerId:"oiUmA2Dpb"},HR:{accountId:"923270646001",playerId:"rtDIMNREJ"},HR_CS:{accountId:"5711373588001",playerId:"4dpG0kuPi"},HU:{accountId:"923270637001", 469playerId:"J3N8K2Ta8"},HU_CS:{accountId:"5711373567001",playerId:"xhpdyXZwQC"},ID:{accountId:"923162667001",playerId:"8VQZlxO23"},ID_CS:{accountId:"5709700891001",playerId:"eS8Ygw9D5N"},IE:{accountId:"923136711001",playerId:"Eby5I5ug3"},IE_CS:{accountId:"5711373564001",playerId:"g2yJSJmLr"},IL:{accountId:"923162679001",playerId:"CNuem5Ud0"},IL_CS:{accountId:"5711373596001",playerId:"CuXrQqYtZ"},IN:{accountId:"923162669001",playerId:"q6Ut0BCj1"},IN_CS:{accountId:"5711373560001",playerId:"CcOagXw6na"}, 470IRAN:{accountId:"923270650001",playerId:"z13tWzaxK"},IRAN_CS:{accountId:"5711373600001",playerId:"rLjx2H1MSc"},IT:{accountId:"923136712001",playerId:"JhjbQ74fF"},IT_CS:{accountId:"5711373565001",playerId:"YeJZJaeSW"},JP:{accountId:"923162668001",playerId:"5syx1iggoU"},JP_CS:{accountId:"5711373559001",playerId:"1pWQq0OoW"},KZ_RU_CS:{accountId:"5711373593001",playerId:"IjzGA4NhB"},KZ_UR:{accountId:"923270647001",playerId:"1wWJHtrJL"},LATIN:{accountId:"923136703001",playerId:"Ejglgn7vR"},LATIN_CS:{accountId:"5709700880001", 471playerId:"xtj1AknXN"},LATIN_EN:{accountId:"923227800001",playerId:"PqDI8nhcAF"},LATIN_EN_CS:{accountId:"5709700881001",playerId:"BwUsVdHWJ"},LB:{accountId:"5359769185001",playerId:"I6JB29uKP"},LB_CS:{accountId:"5711373613001",playerId:"PF3r8iX45"},LED:{accountId:"2172563229001",playerId:"fZOTwR23Ja"},LEVANT:{accountId:"923227815001",playerId:"sNmJq2Rhtq"},LEVANT_CS:{accountId:"5711373601001",playerId:"S2BFseOxn"},LIVE:{accountId:"901973578001",playerId:"rkHiJmE8b"},LIVE2:{accountId:"901973578001", 472playerId:"BJroFThOM"},LT:{accountId:"923227813001",playerId:"UnNH8Q0aA"},LT_CS:{accountId:"5711373585001",playerId:"PLBhOXxqd"},LV:{accountId:"923270644001",playerId:"8DWjAYXe8t"},LV_CS:{accountId:"5711373584001",playerId:"wVmguU4uL"},MM:{accountId:"5395474902001",playerId:"vF6OMxYpz"},MM_CS:{accountId:"5711373615001",playerId:"HRve5S5Wk"},MX:{accountId:"923227799001",playerId:"yWADI9eqWt"},MX_CS:{accountId:"5709700878001",playerId:"fMFwGNOoA"},MY:{accountId:"923136706001",playerId:"kkY3yWnfk2"}, 473MY_CS:{accountId:"5711373556001",playerId:"TUr9f1ZrD"},NL:{accountId:"923136717001",playerId:"Lv58R1RvL"},NL_CS:{accountId:"5675788007001",playerId:"MKP6lFpdB"},NO:{accountId:"923227806001",playerId:"RtYYg3Lhz"},NO_CS:{accountId:"5711373572001",playerId:"lpa9BAvSi"},NZ:{accountId:"923136704001",playerId:"uc2rRn2xNM"},NZ_CS:{accountId:"5709700890001",playerId:"C200YutMY"},N_AFRICA:{accountId:"923227817001",playerId:"xMwGwNxoe"},N_AFRICA_CS:{accountId:"5711373604001",playerId:"trym9TQi9"},PE:{accountId:"923162664001", 474playerId:"QnLGOyhWT"},PE_CS:{accountId:"5709700887001",playerId:"8g7eqsa4b"},PH:{accountId:"923136707001",playerId:"TPkcStHQq"},PH_CS:{accountId:"5711373557001",playerId:"XAANJvPl4I"},PK:{accountId:"923227816001",playerId:"KMGcvTLwI"},PK_CS:{accountId:"5711373602001",playerId:"ucBD9N7Wo"},PL:{accountId:"923270641001",playerId:"w6lBgsUzX"},PL_CS:{accountId:"5711373575001",playerId:"oimMVhVjJ"},PT:{accountId:"923270640001",playerId:"sdOVA4ZFD"},PT_CS:{accountId:"5711373574001",playerId:"coEoIreou"}, 475PY:{accountId:"4455299568001",playerId:"DVT5m3yv2"},PY_CS:{accountId:"5711373610001",playerId:"Pog90o2pZ"},RO:{accountId:"923136715001",playerId:"Xpb5ogQRq"},RO_CS:{accountId:"5711373579001",playerId:"7m3xl6r857"},RS:{accountId:"923162676001",playerId:"An8gNEU4n"},RS_CS:{accountId:"5711373587001",playerId:"XkZo8R4hQ"},RU:{accountId:"923136718001",playerId:"prEGLNvtgw"},RU_CS:{accountId:"5711373589001",playerId:"TGIYbAEj4"},SA:{accountId:"923136720001",playerId:"UGyvbSD4m"},SA_CS:{accountId:"5711373597001", 476playerId:"e8LeXD9z2"},SA_EN:{accountId:"2571515532001",playerId:"e1aY2iob1"},SA_EN_CS:{accountId:"5711373598001",playerId:"HMfJhv02t"},SC:{accountId:"1275380501001",playerId:"uOrcEND0S"},SE:{accountId:"923162671001",playerId:"87s7LoiYm"},SEC:{accountId:"923136708001",playerId:"O0UmvJBBkC"},SE_CS:{accountId:"5711373568001",playerId:"YQAEzeCh7"},SG:{accountId:"923162665001",playerId:"VcCu1i5eGY"},SG_CS:{accountId:"5709700888001",playerId:"1uAHw2z66"},SI:{accountId:"3855502820001",playerId:"3iQ8u8kzHJ"},
477SI_CS:{accountId:"5711373609001",playerId:"aWXzB4G7Y"},SK:{accountId:"923227808001",playerId:"6pYCGSOVM"},SK_CS:{accountId:"5711373578001",playerId:"DtyAUtIWf"},TH:{accountId:"923227802001",playerId:"GjtcZdzhG"},TH_CS:{accountId:"5711373553001",playerId:"jhV8EaiQ2P"},TR:{accountId:"923136721001",playerId:"eo4EiXfOZ6"},TR_CS:{accountId:"5711373599001",playerId:"uw0Vade3U"},TW:{accountId:"923270635001",playerId:"gB0Jrk4eC"},TW_CS:{accountId:"5711373558001",playerId:"zRLdsvdiUi"},UA:{accountId:"923162678001", 478playerId:"1ZqNirAQQ"},UA_CS:{accountId:"5711373590001",playerId:"1oPqU5Hja"},UA_RU:{accountId:"923162677001",playerId:"TNhyfS3s0z"},UA_RU_CS:{accountId:"5711373592001",playerId:"n355uJ5toG"},UK:{accountId:"923136710001",playerId:"Ta4g51Ongy"},UK_CS:{accountId:"5675787969001",playerId:"X4XabEZljp"},UR:{accountId:"4455299570001",playerId:"6Sn4qURxs"},UR_CS:{accountId:"5711373612001",playerId:"SQg3bJxYB"},US:{accountId:"923227797001",playerId:"COJfPFSPz"},US_CS:{accountId:"5709700875001",playerId:"YtbrW77H5e"}, 479VE:{accountId:"923162662001",playerId:"NGFTP7VzK"},VE_CS:{accountId:"5709700882001",playerId:"t00eQogYI"},VN:{accountId:"923136705001",playerId:"V8VheyNOH"},VN_CS:{accountId:"5711373555001",playerId:"4gy4Qw9sC"},ZA:{accountId:"2571515531001",playerId:"ohoOzqLWr"},ZA_CS:{accountId:"5711373608001",playerId:"lK2PT9hyDT"},GLOBAL_NW:{accountId:"1832636967001",playerId:"default"},GLOBAL_CPS:{accountId:"1832636966001",playerId:"HJ7xuijZz"}},h=window.sg.common.utils.isVisible,e=window.sg.common.utils.getCurrentDevice, 480c=window.sg.common.utils.getCookie,k=window.sg.common.utils.triggerEvent,l=function(b){this.el=b;this.init()};l.prototype.initValues=function(){this.type="";this.isResonsiveBind=this.isScrollPlayBind=this.isResponsive=this.isScrollPlay=this.isLazyLoad=this.isEmbed=!1;this.option={};this.defaultOption={mp4:{videoEl:'\x3cvideo class\x3d"video-player" playsinline\x3e\x3csource src\x3d"" type\x3d"video/mp4"\x3e\x3c/video\x3e',src:"",desktopSrc:"",mobileSrc:"",autoplay:!1,muted:!1,controls:!1,loop:!1, 481scrollplay:!1},youtube:{videoEl:'\x3ciframe class\x3d"video-player" src\x3d\'about:blank\' allowfullscreen allow\x3d"autoplay" sandbox\x3d"allow-scripts allow-same-origin allow-presentation" style\x3d"border: none;"\x3e\x3c/iframe\x3e',src:"https://www.youtube.com/embed/{{VIDEO_ID}}
481?wmode\x3dopaque\x26rel\x3d0\x26enablejsapi\x3d1\x26version\x3d3\x26origin\x3d{{ORIGIN}}",id:"",autoplay:!1,muted:!1},brightCove:{countryCode:"DEV",videoEl:'\x3cvideo data-embed\x3d"default" controls class\x3d"video-js video-player"\x3e\x3c/video\x3e', 482id:"",autoplay:!1,muted:!1},aparat:{videoEl:"\x3ciframe src\x3d'about:blank' allowfullscreen style\x3d\"border: none;\"\x3e\x3c/iframe\x3e",src:"https://www.aparat.com/video/video/embed/videohash/{{VIDEO_ID}}/vt/frame",liveSrc:"",autoplay:!1},url:{videoEl:"\x3ciframe src\x3d'about:blank' allowfullscreen style\x3d\"border: none;\"\x3e\x3c/iframe\x3e",src:""}};this.videoInfo={};this.toVideoState="";this.useDefaultImage=!1;this.isLazyLoad=this.el.classList.contains("lazy-load")||this.el.classList.contains("lazy-load-man"); 483this.isEmbed=this.el.dataset.videoEmbed?"TRUE"===this.el.dataset.videoEmbed.toUpperCase():!1;this.videoData=this.el.dataset.videoData?JSON.parse(this.el.dataset.videoData):null;this.type=this.el.dataset.videoType};l.prototype.setElements=function(){this.videoData&&(this.setDefaultImage(),!this.isLazyLoad&&this.isEmbed&&this.setVideo())};l.prototype.init=function(){l.instances.has(this.el)||(l.instances.set(this.el,this),this.initValues(),this.setElements())};l.prototype.reInit=function(){this.unBindEvents(); 484this.dispose();this.initValues();this.setElements()};l.prototype.load=function(){!this.isLazyLoad&&this.isEmbed||this.setVideo()};l.prototype.setDefaultImage=function(){var b=this.el.querySelector(".image");b&&(b.style.width=this.videoData.width?this.videoData.width:"100%",b.style.height=this.videoData.height?this.videoData.height:"100%");if(this.useDefaultImage="TRUE"===this.el.dataset.imageDefault.toUpperCase()){var g=c("__COM_SPEED");if(null===g||"L"!==g.toString().toUpperCase())this.useDefaultImage= 485!1}this.el.dataset.imageDefault=this.useDefaultImage.toString();b&&(this.useDefaultImage?b.classList.add("default-image--show"):b.setAttribute("aria-hidden","true"))};l.prototype.setVideo=function(){if(!this.useDefaultImage){switch(this.type){case "mp4":this.setMp4(this.videoData);break;case "youtube":this.setYoutube(this.videoData);break;case "brightcove":this.setBrightCove(this.videoData);break;case "aparat":this.setAparat(this.videoData);break;case "url":this.setIframe(this.videoData)}k(this.el, 486"videoInit",this.type)}};l.prototype.setMp4=function(b){var g=JSON.parse(JSON.stringify(this.defaultOption.mp4)),p=this.getEl(g.videoEl,this.el),r=p.querySelector("source");this.videoInfo.el=p;this.videoInfo.sourceEl=r;this.option=this.setOption(g,b);""!==this.option.src?r.setAttribute("src",this.option.src):(this.setResponsiveVideo(),this.isResponsive=!0,this.isResonsiveBind||(this.bindResponsive(),this.isResonsiveBind=!0));this.bindPlay();p.muted=this.option.muted;p.autoplay=this.option.autoplay; 487p.controls=this.option.controls;p.loop=this.option.loop;this.isEmbed&&(p.disableRemotePlayback=!0);this.option.scrollplay&&this.isEmbed&&(p.preload="auto",p.autoplay=!1,this.videoInfo.state="stop",this.isScrollPlay=!0,this.isScrollPlayBind||(this.bindScrollPlay(),this.isScrollPlayBind=!0));p.style.width=this.option.width?this.option.width:"100%";p.style.height=this.option.height?this.option.height:"100%";b=this.option[e()+"Caption"]||this.option.caption;this.setCaption(b,p);"play"===this.toVideoState? 488this.playMp4Video():"stop"===this.toVideoState&&this.stopMp4Video();this.toVideoState=""};l.prototype.setPlayed=function(){this.videoInfo.el.parentElement.classList.contains("video--played")||this.videoInfo.el.parentElement.classList.add("video--played")};l.prototype.bindPlay=function(){"mp4"===this.type&&(this.setPlayed=this.setPlayed.bind(this),this.videoInfo.el.addEventListener("play",this.setPlayed))};l.prototype.setScrollPlayVideo=function(){h(this.videoInfo.el)?"play"!==this.videoInfo.state&& 4891<=this.videoInfo.el.readyState&&(this.videoInfo.el.currentTime=0,this.videoInfo.el.play(),this.videoInfo.state="play"):"play"===this.videoInfo.state&&1<=this.videoInfo.el.readyState&&(this.videoInfo.el.pause(),this.videoInfo.state="pause")};l.prototype.bindScrollPlay=function(){"mp4"===this.type&&this.isScrollPlay&&(this.setScrollPlayVideo=this.setScrollPlayVideo.bind(this),this.videoInfo.el.addEventListener("loadedmetadata",this.setScrollPlayVideo),document.addEventListener("scroll",this.setScrollPlayVideo), 490window.addEventListener("resize",this.setScrollPlayVideo),window.addEventListener("orientationchange",this.setScrollPlayVideo),this.setScrollPlayVideo())};l.prototype.setResponsiveVideo=function(){var b=e();this.isEmbed&&this.device===b||(this.device=b,b=this.option[this.device+"Src"],0>this.videoInfo.sourceEl.src.indexOf(b)&&(this.videoInfo.sourceEl.src=b,this.videoInfo.el.load(),this.isScrollPlay&&(this.videoInfo.state="stop")),this.setCaption(this.option[this.device+"Caption"]||this.option.caption, 491this.videoInfo.el))};l.prototype.bindResponsive=function(){"mp4"===this.type&&this.isResponsive&&(this.setResponsiveVideo=this.setResponsiveVideo.bind(this),window.addEventListener("resize",this.setResponsiveVideo))};l.prototype.unBindEvents=function(){this.videoInfo.el&&(this.videoInfo.el.removeEventListener("play",this.setPlayed),this.videoInfo.el.removeEventListener("loadedmetadata",this.setScrollPlayVideo));document.removeEventListener("scroll",this.setScrollPlayVideo);window.removeEventListener("resize", 492this.setResponsiveVideo);window.removeEventListener("resize",this.setScrollPlayVideo);window.removeEventListener("orientationchange",this.setScrollPlayVideo)};l.prototype.destroy=function(){this.unBindEvents();this.dispose();l.instances.has(this.el)&&l.instances.delete(this.el);this.videoInfo=this.el=null};l.prototype.setYoutube=function(b){var g=this,p=window.sg.common.videoApi,r=JSON.parse(JSON.stringify(this.defaultOption.youtube)),t=this.getEl(r.videoEl,this.el);this.option=this.setOption(r,b); 493this.option.muted=void 0!==b.muted?b.muted:this.option.autoplay;this.option.src=this.option.src.replace("{{VIDEO_ID}}",this.option.id).replace("{{ORIGIN}}",window.location.origin)+"\x26autoplay\x3d"+(this.option.autoplay?"1":"0")+"\x26mute\x3d"+(this.option.muted?"1":"0");var w=this.option.id+p.index++;t.setAttribute("id",w);t.setAttribute("src",this.option.src);t.setAttribute("title",this.option.title);t.style.width=this.option.width?this.option.width:"100%";t.style.height=this.option.height?this.option.height: 494"100%";this.setCaption(this.option.caption,t);
494b=document.createElement("script");b.src="https://www.youtube.com/iframe_api";b.classList.add("sg-youtube-api");document.querySelector('script[src\x3d"'+b.src+'"]')||document.body.appendChild(b);var y=function(){"play"===g.toVideoState?g.playYoutubeVideo():"stop"===g.toVideoState&&g.stopYoutubeVideo();g.toVideoState=""};p.enqueueOnYoutubeIframeApiReady(function(){g.videoInfo.player=new YT.Player(w,{host:"https://www.youtube.com",events:{onReady:y}})})}; 495l.prototype.setBrightCove=function(b){var g=this,p=window.sg.common.videoApi,r=JSON.parse(JSON.stringify(this.defaultOption.brightCove)),t=this.getEl(r.videoEl,this.el);this.option=this.setOption(r,b);this.option.muted=void 0!==b.muted?b.muted:this.option.autoplay;b=this.option.countryCode.toUpperCase();var w=this.option.id+p.index++;t.setAttribute("id",w);t.setAttribute("data-video-id",this.option.id);t.setAttribute("data-account",n[b].accountId);t.setAttribute("data-player",n[b].playerId);t.style.width= 496this.option.width?this.option.width:"100%";t.style.height=this.option.height?this.option.height:"100%";this.setCaption(this.option.caption,t);p="https://players.brightcove.net/"+n[b].accountId+"/"+n[b].playerId+"_default/index.min.js";t=document.createElement("script");t.src=p;document.body.appendChild(t);t.onload=function(){return g.setBrightCovePlayer(w,g.option)}};l.prototype.setBrightCovePlayer=function(b,g){var p=this;this.videoInfo.player=videojs(b);b=function(){p.option.muted&&p.videoInfo.player.muted(!0); 497p.videoInfo.player.play()};var r=function(){"play"===p.toVideoState?p.playBrightCoveVideo():"stop"===p.toVideoState&&p.stopBrightCoveVideo();p.toVideoState=""};if(1>this.videoInfo.player.readyState()){if(g.autoplay)this.videoInfo.player.on("loadedmetadata",b);this.videoInfo.player.on("loadedmetadata",r)}else g.autoplay&&b(),r()};l.prototype.setAparat=function(b){var g=JSON.parse(JSON.stringify(this.defaultOption.aparat)),p=this.getEl(g.videoEl,this.el);this.option=this.setOption(g,b);this.option.src= 498this.option.liveSrc?this.option.liveSrc:""+this.option.src.replace("{{VIDEO_ID}}",this.option.id);p.setAttribute("src",this.option.src);p.setAttribute("title",this.option.title);p.style.width=this.option.width?this.option.width:"100%";p.style.height=this.option.height?this.option.height:"100%";this.setCaption(this.option.caption,p)};l.prototype.setIframe=function(b){var g=JSON.parse(JSON.stringify(this.defaultOption.url)),p=this.getEl(g.videoEl,this.el);this.option=this.setOption(g,b);p.setAttribute("src", 499this.option.src);p.setAttribute("title",this.option.title);p.style.width=this.option.width?this.option.width:"100%";p.style.height=this.option.height?this.option.height:"100%";this.setCaption(this.option.caption,p)};l.prototype.setOption=function(b,g){for(var p=Object.keys(g),r=0;r<p.length;r++){var t=p[r];b[t]=g[t]?g[t]:b[t]}return b};l.prototype.setCaption=function(b,g){var p=this.el.querySelector("p.hidden");(b=(b||"").replace(/\\\//g,"/"))?p?p.innerHTML=b:g.insertAdjacentHTML("afterend",'\x3cp class\x3d"hidden"\x3e'+ 500b+"\x3c/p\x3e"):p&&p.remove()};l.prototype.getEl=function(b,g){g.querySelector("figure")||g.insertAdjacentHTML("beforeend","\x3cfigure\x3e\x3c/figure\x3e");g=g.lastElementChild;g.style.width=this.videoData.width?this.videoData.width:"100%";g.style.height=this.videoData.height?this.videoData.height:"100%";g.querySelector(".video-player")||g.insertAdjacentHTML("afterbegin",b);return g.firstElementChild};l.prototype.play=function(){switch(this.type){case "mp4":this.playMp4Video();break;case "youtube":this.playYoutubeVideo(); 501break;case "brightcove":this.playBrightCoveVideo()}};l.prototype.stop=function(){switch(this.type){case "mp4":this.stopMp4Video();break;case "youtube":this.stopYoutubeVideo();break;case "brightcove":this.stopBrightCoveVideo()}};l.prototype.playMp4Video=function(){"mp4"===this.type&&(this.videoInfo.el?this.isScrollPlay||(this.videoInfo.el.play(),this.videoInfo.state="play"):this.toVideoState="play")};l.prototype.stopMp4Video=function(){var b=this;if("mp4"===this.type)if(this.videoInfo.el){var g=function(){b.videoInfo.el.pause(); 502b.videoInfo.el.currentTime=0;b.videoInfo.state="stop"},p=function(){g();b.videoInfo.el.removeEventListener("loadedmetadata",p)};1>this.videoInfo.el.readyState?this.videoInfo.el.addEventListener("loadedmetadata",p):g()}else this.toVideoState="stop"};l.prototype.playYoutubeVideo=function(){"youtube"===this.type&&(this.videoInfo.player?(this.videoInfo.player.playVideo(),this.videoInfo.state="play"):this.toVideoState="play")};l.prototype.stopYoutubeVideo=function(){"youtube"===this.type&&(this.videoInfo.player? 503(this.videoInfo.player.stopVideo(),this.videoInfo.state="stop"):this.toVideoState="stop")};l.prototype.playBrightCoveVideo=function(){var b=this;if("brightcove"===this.type)if(this.videoInfo.player)if(1>this.videoInfo.player.readyState())this.videoInfo.player.on("loadedmetadata",function(){b.videoInfo.player.play();b.videoInfo.state="play"});else this.videoInfo.player.play(),this.videoInfo.state="play";else this.toVideoState="play"};l.prototype.stopBrightCoveVideo=function(){var b=this;if("brightcove"=== 504this.type)if(this.videoInfo.player)if(1>this.videoInfo.player.readyState())this.videoInfo.player.on("loadedmetadata",function(){b.videoInfo.player.pause();b.videoInfo.player.currentTime(0);b.videoInfo.state="stop"});else this.videoInfo.player.pause(),this.videoInfo.player.currentTime(0),this.videoInfo.state="stop";else this.toVideoState="stop"};l.prototype.dispose=function(){if(this.el.lastElementChild&&!this.isEmbed){if("brightcove"===this.type){this.videoInfo.player&&this.videoInfo.player.dis
504pose(); 505var b=this.option.countryCode.toUpperCase();(b=document.querySelector('script[src\x3d"https://players.brightcove.net/'+(n[b].accountId+"/"+n[b].playerId+'_default/index.min.js"]')))&&document.body.removeChild(b)}else"youtube"===this.type&&(b=document.body.querySelector('script[src\x3d"https://www.youtube.com/iframe_api"].sg-youtube-api'))&&document.body.removeChild(b);for(;this.el.lastElementChild.hasChildNodes();)this.el.lastElementChild.removeChild(this.el.lastElementChild.firstChild);this.el.removeChild(this.el.lastElementChild)}}; 506l.instances=new WeakMap;var f={initAll:function(){for(var b=[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".video"))),g=[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".static-content .video"))),p=0;p<b.length;p++){for(var r=b[p],t=!1,w=0;w<g.length;w++)if(r===g[w]){t=!0;break}t||l.instances.has(r)||new l(r)}},init:function(b,g){g=void 0===g?!0:g;b=l.instances.has(b)?l.instances.get(b):new l(b);g&&b.load();return b},reInit:function(b){l.instances.has(b)?l.instances.get(b).reInit(): 507new l(b)},dispose:function(b){l.instances.has(b)&&l.instances.get(b).dispose()},load:function(b){l.instances.has(b)?l.instances.get(b).load():(new l(b)).load()},play:function(b){l.instances.has(b)?l.instances.get(b).play():(new l(b)).play()},stop:function(b){l.instances.has(b)?l.instances.get(b).stop():(new l(b)).stop()},destroy:function(b){l.instances.has(b)&&l.instances.get(b).destroy()}};window.sg.common.video=f;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",f.initAll): 508f.initAll()})(); 509(function(){var a=window.sg.common.$q,n=window.BezierEasing,h=window.sg.common.utils.closest,e=window.sg.common.utils.getNormalizedScrollLeft,c=window.sg.common.utils.setNormalizedScrollLeft,k=window.sg.common.utils.isPassiveSupported,l=window.sg.common.utils.bindRaf,f=function(g){this.els={el:g,contentsEl:null,wrapEl:null,horizTrackEl:null,horizTrackContentEl:null,horizBarEl:null,vertTrackEl:null,vertTrackContentEl:null,vertBarEl:null};this.init()};f.prototype.init=function(){f.instances.has(this.els.el)||(f.instances.set(this.els.el, 510this),this.initValues(),this.setElement(),this.resize(),this.initHandlers(),this.bindEvents())};f.prototype.initValues=function(){this.barScrollTop=this.barScrollLeft=0;this.isAnim=this.isContentsDragging=this.isbarDragging=!1;this.isPassiveSupported=k();this.isAutoResize=this.els.el.hasAttribute("data-auto-resize");this.observer=null};f.prototype.reInit=function(){this.unBindEvents();this.initValues();this.setElement();this.resize();this.bindEvents()};f.prototype.destroy=function(){this.unBindEvents(); 511f.instances.has(this.els.el)&&f.instances.delete(this.els.el);this.els=this.els.el=null};f.prototype.setElement=function(){this.els.contentsEl=this.els.el.querySelector(".scrollbar__contents");this.els.wrapEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar__wrap")})[0];this.els.wrapEl||(this.els.el.insertAdjacentHTML("afterbegin",'\x3cdiv class\x3d"scrollbar__wrap"\x3e\x3c/div\x3e'),this.els.wrapEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar__wrap")})[0], 512this.els.wrapEl.insertAdjacentElement("afterbegin",this.els.contentsEl));this.els.horizTrackEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar-horizontal__track")})[0];this.els.horizTrackEl||(this.els.el.insertAdjacentHTML("beforeend",'\x3cdiv class\x3d"scrollbar-horizontal__track"\x3e\x3cdiv class\x3d"scrollbar-horizontal__track-content"\x3e\x3cdiv class\x3d"scrollbar-horizontal__bar"\x3e\x3c/div\x3e\x3c/div\x3e'),this.els.horizTrackEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar-horizontal__track")})[0]); 513this.els.horizTrackContentEl=this.els.horizTrackEl.querySelector(".scrollbar-horizontal__track-content");this.els.horizBarEl=this.els.horizTrackEl.querySelector(".scrollbar-horizontal__bar");this.els.vertTrackEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar-vertical__track")})[0];this.els.vertTrackEl||(this.els.el.insertAdjacentHTML("beforeend",'\x3cdiv class\x3d"scrollbar-vertical__track"\x3e\x3cdiv class\x3d"scrollbar-vertical__track-content"\x3e\x3cdiv class\x3d"scrollbar-vertical__bar"\x3e\x3c/div\x3e'), 514this.els.vertTrackEl=Array.from(this.els.el.children).filter(function(g){return g.classList.contains("scrollbar-vertical__track")})[0]);this.els.vertTrackContentEl=this.els.vertTrackEl.querySelector(".scrollbar-vertical__track-content");this.els.vertBarEl=this.els.vertTrackEl.querySelector(".scrollbar-vertical__bar");this.els.wrapEl.style["-ms-user-select"]="";this.els.wrapEl.style.userSelect="";this.els.wrapEl.style.cursor="";this.els.wrapEl.style.overscrollBehaviorX=""};f.prototype.setTagging=function(){var g= 515this;if(this.els.horizTrackEl&&this.isHorizBar!==this.prevIsHorizBar){var p=this.els.el.getAttributeNames().filter(function(r){return r.startsWith("data-tagging-")}).reduce(function(r,t){r[t.replace("data-tagging-","")]=g.els.el.getAttribute(t);return r},{});Object.keys(p).length&&(this.isHorizBar&&"none"!==window.getComputedStyle(this.els.horizTrackEl).display?Object.keys(p).forEac
515h(function(r){g.els.horizTrackEl.setAttribute(r,p[r])}):Object.keys(p).forEach(function(r){g.els.horizTrackEl.removeAttribute(r)})); 516this.prevIsHorizBar=this.isHorizBar}};f.prototype.setBarSize=function(){this.els.horizTrackEl.style.display="";var g=Math.ceil(this.els.wrapEl.getBoundingClientRect().width),p=this.els.contentsEl.scrollWidth,r=Math.ceil(this.els.horizTrackContentEl.getBoundingClientRect().width),t=g/p;1>t?(this.els.horizTrackEl.style.display="",this.horizBarWidth=r*t,this.els.horizBarEl.style.width=this.horizBarWidth+"px",this.contentsMaxScrollLeft=p-g,this.barMaxScrollLeft=r-r*t,this.isHorizBar=!0,this.els.wrapEl.style["-ms-user-select"]= 517"none",this.els.wrapEl.style.userSelect="none",this.els.wrapEl.style.cursor="default",this.els.wrapEl.style.overscrollBehaviorX="contain"):(this.els.horizTrackEl.style.display="none",this.barMaxScrollLeft=this.contentsMaxScrollLeft=0,this.isHorizBar=!1);this.els.vertTrackEl.style.display="";g=Math.ceil(this.els.wrapEl.getBoundingClientRect().height);p=this.els.contentsEl.scrollHeight;r=Math.ceil(this.els.vertTrackContentEl.getBoundingClientRect().height);t=g/p;1>t?(this.els.vertTrackEl.style.display= 518"",this.els.vertBarEl.style.height=r*t+"px",this.contentsMaxScrollTop=p-g,this.barMaxScrollTop=r-r*t,this.isVertBar=!0):(this.els.vertTrackEl.style.display="none",this.barMaxScrollTop=this.contentsMaxScrollTop=0,this.isVertBar=!1);this.setTagging()};f.prototype.scrollHorizBar=function(g){0>g?g=0:g>this.barMaxScrollLeft&&(g=this.barMaxScrollLeft);this.barScrollLeft=g;this.els.horizBarEl.style.transition="";this.els.horizBarEl.style.transform="translate3d("+g+"px, 0, 0)"};f.prototype.scrollVertBar= 519function(g){0>g?g=0:g>this.barMaxScrollTop&&(g=this.barMaxScrollTop);this.barScrollTop=g;this.els.vertBarEl.style.transform="translate3d(0, "+g+"px, 0)"};f.prototype.scrollHoriz=function(g){var p=g;0>g?p=0:g>this.contentsMaxScrollLeft&&(p=this.contentsMaxScrollLeft);c(this.els.wrapEl,p)};f.prototype.scrollVert=function(g){0>g?g=0:g>this.contentsMaxScrollTop&&(g=this.contentsMaxScrollTop);this.els.wrapEl.scrollTop=g};f.prototype.handleScroll=function(){if(this.isHorizBar){var g=e(this.els.wrapEl); 520this.scrollHorizBar(g/this.contentsMaxScrollLeft*this.barMaxScrollLeft)}this.isVertBar&&this.scrollVertBar(this.els.wrapEl.scrollTop/this.contentsMaxScrollTop*this.barMaxScrollTop);a(document).trigger("scroll")};f.prototype.handleBarScrollStart=function(g){this.isbarDragging=!0;this.prevPointX=g.screenX;this.prevPointY=g.screenY;g.target===this.els.horizBarEl?this.els.horizTrackContentEl.classList.add("bar-dragging"):g.target===this.els.vertBarEl&&this.els.vertTrackContentEl.classList.add("bar-dragging"); 521document.addEventListener("mousemove",this.handleBarScroll);document.addEventListener("mouseup",this.handleBarScrollEnd);document.addEventListener("selectstart",this.handleSelect)};f.prototype.handleBarScrollTouchStart=function(g){this.isbarDragging=!0;this.prevPointX=g.touches[0].screenX;this.prevPointY=g.touches[0].screenY;g.target===this.els.horizBarEl?this.els.horizTrackContentEl.classList.add("bar-dragging"):g.target===this.els.vertBarEl&&this.els.vertTrackContentEl.classList.add("bar-dragging"); 522document.addEventListener("touchmove",this.handleBarScroll,this.isPassiveSupported?{passive:!0}:!1);document.addEventListener("touchend",this.handleBarScrollEnd)};f.prototype.handleBarScroll=function(g){if(!this.isAnim&&this.isbarDragging){if(this.isHorizBar){var p=void 0!==g.screenX?g.screenX:g.touches[0].screenX,r=this.barScrollLeft+(p-this.prevPointX);this.scrollHorizBar(r);this.scrollHoriz(r*this.contentsMaxScrollLeft/this.barMaxScrollLeft);this.prevPointX=p}this.isVertBar&&(g=void 0!==g.screenY? 523g.screenY:g.touches[0].screenY,p=this.barScrollTop+(g-this.prevPointY),this.scrollVertBar(p),this.scrollVert(p*this.contentsMaxScrollTop/this.barMaxScrollTop),this.prevPointY=g)}};f.prototype.handleBarScrollEnd=function(){this.isbarDragging=!1;this.prevPointY=this.prevPointX=0;this.els.horizTrackContentEl.classList.remove("bar-dragging");this.els.vertTrackContentEl.classList.remove("bar-dragging");document.removeEventListener("mousemove",this.handleBarScroll);document.removeEventListener("mouseup", 524this.handleBarScrollEnd);document.removeEventListener("touchmove",this.handleBarScroll);document.removeEventListener("touchend",this.handleBarScrollEnd);document.removeEventListener("selectstart",this.handleSelect)}
524;f.prototype.handleSelect=function(g){g.stopPropagation();g.preventDefault();return!1};f.prototype.handleContentsDragStart=function(g){this.isHorizBar&&"hidden"!==window.getComputedStyle(this.els.wrapEl).overflow&&(this.startX=g.clientX+e(this.els.wrapEl),this.isContentsDragging=!0,this.isClickDisabled= 525!1,this.diffX=0,document.addEventListener("mousemove",this.handleContentsDrag),document.addEventListener("mouseup",this.handleContentsDragEnd))};f.prototype.handleContentsDrag=function(g){if(!this.isAnim&&this.isContentsDragging){this.diffX=this.startX-(g.clientX+e(this.els.wrapEl));this.scrollHoriz(e(this.els.wrapEl)+this.diffX);var p=function(r){h(r.target,"a")&&(r.preventDefault(),r.stopPropagation());document.removeEventListener("click",p)};this.isClickDisabled||(document.addEventListener("click", 526p),this.isClickDisabled=!0)}};f.prototype.handleContentsDragEnd=function(){this.isContentsDragging=!1;document.removeEventListener("mousemove",this.handleContentsDrag);document.removeEventListener("mouseup",this.handleContentsDragEnd)};f.prototype.handleHorizTrackContentClick=function(g){g=g.clientX-this.els.horizTrackContentEl.getBoundingClientRect().left;g<this.barScrollLeft?this.scrollTo(-this.els.wrapEl.getBoundingClientRect().width,null,!1,200):g>this.barScrollLeft+this.horizBarWidth&&this.scrollTo(this.els.wrapEl.getBoundingClientRect().width, 527null,!1,200)};f.prototype.handleDragStart=function(g){g.preventDefault()};f.prototype.resize=function(){this.setBarSize();this.handleScroll()};f.prototype.initHandlers=function(){this.handleScroll=l(this.handleScroll.bind(this));this.handleBarScrollStart=this.handleBarScrollStart.bind(this);this.handleBarScrollTouchStart=this.handleBarScrollTouchStart.bind(this);this.handleBarScroll=l(this.handleBarScroll.bind(this));this.handleBarScrollEnd=this.handleBarScrollEnd.bind(this);this.handleSelect=this.handleSelect.bind(this); 528this.handleContentsDragStart=this.handleContentsDragStart.bind(this);this.handleContentsDrag=l(this.handleContentsDrag.bind(this));this.handleContentsDragEnd=this.handleContentsDragEnd.bind(this);this.resize=l(this.resize.bind(this));this.handleHorizTrackContentClick=this.handleHorizTrackContentClick.bind(this);this.handleDragStart=this.handleDragStart.bind(this)};f.prototype.bindEvents=function(){var g=this;this.els.wrapEl.addEventListener("scroll",this.handleScroll);this.els.horizTrackContentEl.addEventListener("click", 529this.handleHorizTrackContentClick);this.els.horizBarEl.addEventListener("mousedown",this.handleBarScrollStart);this.els.horizBarEl.addEventListener("touchstart",this.handleBarScrollTouchStart,this.isPassiveSupported?{passive:!0}:!1);this.els.vertBarEl.addEventListener("mousedown",this.handleBarScrollStart);this.els.vertBarEl.addEventListener("touchstart",this.handleBarScrollTouchStart,this.isPassiveSupported?{passive:!0}:!1);this.els.wrapEl.addEventListener("mousedown",this.handleContentsDragStart); 530this.els.wrapEl.addEventListener("dragstart",this.handleDragStart);window.addEventListener("resize",this.resize);if(this.isAutoResize){var p=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;this.observerTimer=null;this.observer=new p(function(){g.observerTimer&&clearTimeout(g.observerTimer);g.observerTimer=setTimeout(function(){g.resize()},320)});this.observer.observe(this.els.wrapEl,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]})}};f.prototype.unBindEvents= 531function(){this.els.wrapEl.removeEventListener("scroll",this.handleScroll);this.els.horizTrackContentEl.removeEventListener("click",this.handleHorizTrackContentClick);this.els.horizBarEl.removeEventListener("mousedown",this.handleBarScrollStart);this.els.horizBarEl.removeEventListener("touchstart",this.handleBarScrollTouchStart);this.els.vertBarEl.removeEventListener("mousedown",this.handleBarScrollStart);this.els.vertBarEl.removeEventListener("touchstart",this.handleBarScrollTouchStart);this.els.wrapEl.removeEventListener("mousedown", 532this.handleContentsDragStart);this.els.wrapEl.removeEventListener("dragstart",this.handleDragStart);window.removeEventListener("resize",this.resize);this.observerTimer&&(clearTimeout(this.observerTimer),this.observerTimer=null);this.observer&&(this.observer.disconnect(),this.observer=null)};f.prototype.scrollBottom=function(){this.scrollTo(null,this.contentsMaxScrollTop-this.els.wrapEl.scrollTop)};f.prototype.scrollTo=function(g,p,r,t,w){var y=this;t=void 0===t?300:t;w=void 0===w?n(.4,0,.2,1):w;var C= 533e(this.els.wrapEl),E=this.els.wrapEl.scrollTop;r?(g&&(g>this.contentsMaxScrollLeft&&(g=this.contentsMaxScrollLeft),0>g&&(g=0),g-=C),p&&(p>this.contentsMaxScrollTop&&(p=this.contentsMaxScrollTop),0>g&&(p=0),p-=E)):(g&&(C+g>this.contentsMaxScrollLeft&&(g=this.contentsMaxScrollLeft-C),0>C+g&&(g=-C)),p&&(E+p>this.contentsMaxScrollTop&&(p=this.contentsMaxScrollTop-E),0>E+g&&(p=-E)));r=function(z){g&&y.scrollHoriz(C+g*z);p&&y.scrollVert(E+p*z)};0<t?this.isAnim||this.animate(r,t,w):r(1)};f.prototype.animate= 534function(g,p,r){var t=this,w=Date.now();this.isAnim=!0;this.isbarDragging=this.isContentsDragging=!1;var y=function(){var C=(Date.now()-w)/p;1<C?(g(1),t.isAnim=!1):(requestAnimationFrame(y),g(r(C)))};y()};f.instances=new WeakMap;window.sg.components.registerClass("scrollbar",f);var b={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.scrollbar:not([data-auto-init\x3d"false"])'))).forEac
534h(function(g){f.instances.has(g)||new f(g)})},init:function(g){return f.instances.has(g)? 535f.instances.get(g):new f(g)},reInit:function(g){f.instances.has(g)?(g=f.instances.get(g),g.reInit()):g=new f(g);return g},scrollTo:function(g,p,r,t){t=void 0===t?!1:t;f.instances.has(g)&&f.instances.get(g).scrollTo(p,r,t)},scrollBottom:function(g){f.instances.has(g)&&f.instances.get(g).scrollBottom()},resize:function(g){f.instances.has(g)&&f.instances.get(g).resize()},destroy:function(g){f.instances.has(g)&&f.instances.get(g).destroy()}};window.sg.common.scrollbar=b;a.ready(b.initAll)})(); 536(function(){var a=window.sg.common.$q,n=window.sg.common.constants.BREAKPOINTS,h=window.sg.common.utils,e=window.sg.common.scrollbar,c=function(k){this.ele={window:a(window),section:a(k),scrollPopup:null,boxWrap:null};this.setProperty();this.handler={resize:this.resize.bind(this)};c.instances.set(k,this);this.init()};c.prototype.setProperty=function(){this.ele.scrollPopup=this.ele.section.find(".layer-popup__contents.scrollbar");this.ele.boxWrap=this.ele.section.find(".layer-popup__inner")};c.prototype.init= 537function(){var k=this;0>=this.ele.scrollPopup.target.length||(this.bindEvents(),this.resize(),setTimeout(function(){k.resize()},500))};c.prototype.reInit=function(){var k=this;this.setProperty();0>=this.ele.scrollPopup.target.length||(this.bindEvents(),this.resize(),setTimeout(function(){k.resize()},500))};c.prototype.resize=function(){this.setScrollHeight()};c.prototype.setScrollHeight=function(){var k=this.ele.scrollPopup.find(".scrollbar__wrap").eq(0),l=k.target[0].scrollTop,f=h.getViewPort().height; 538k.css({maxHeight:""});f-=this.ele.scrollPopup.target[0].offsetTop;f-=this.ele.boxWrap.offset().bottom-this.ele.scrollPopup.offset().bottom;f=void 0===this.ele.section.target[0].dataset.paddingCustom?f-(n.MOBILE<h.getViewPort().width?60:2*this.ele.boxWrap.target[0].offsetTop):f-2*this.ele.boxWrap.target[0].offsetTop;0>f&&(f=0);k.height()-1>Math.round(f)&&k.css({maxHeight:f+"px"});k.target[0].scrollTop=l;e.resize(this.ele.scrollPopup.target[0])};c.prototype.bindEvents=function(){this.ele.window.off("resize", 539this.handler.resize).on("resize",this.handler.resize)};c.instances=new WeakMap;window.sg.common.layerPopupMaxHeight={initAll:function(){a(".layer-popup").target.forEach(function(k){if(0<k.querySelectorAll(".layer-popup__contents.scrollbar").length&&!c.instances.has(k))new c(k);else return null})},init:function(k){if(0<k.querySelectorAll(".layer-popup__contents.scrollbar").length&&!c.instances.has(k))[].concat($jscomp.arrayFromIterable(k.querySelectorAll(".scrollbar"))).forEach(function(l){e.init(l)}), 540new c(k);else return null},reInit:function(k){if(0<k.querySelectorAll(".layer-popup__contents.scrollbar").length&&c.instances.has(k))c.instances.get(k).reInit();else return null},setMax:function(k){if(0<k.querySelectorAll(".layer-popup__contents.scrollbar").length&&c.instances.has(k))c.instances.get(k).setScrollHeight();else return null}}})(); 541(function(){var a=window.sg.common.$q,n=window.Swiper,h=window.sg.common.constants.BREAKPOINTS,e=window.sg.common.utils,c=window.sg.common.lazyLoad,k=window.sg.common.utils.removeAllEventListeners,l={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.basic-swiper:not([data-auto-init\x3d"false"])'))).forEach(function(b){f.instances.has(b)||new f(b)})},init:function(){a(".basic-swiper").target.forEach(function(b){f.instances.has(b)?f.instances.get(b).swiper.reInit(): 542new f(b)})},reInit:function(){c.reInit();a(".basic-swiper").target.forEach(function(b){f.instances.has(b)?f.instances.get(b).swiper.reInit():new f(b)})},update:function(){a(".basic-swiper").target.forEach(function(b){f.instances.has(b)&&(b=f.instances.get(b).swiper,b.slideResize(),b.update())})},getSwiper:function(b){if(f.instances.has(b))return f.instances.get(b).swiper.getSwiper()},slideChange:function(b,g){f.instances.has(b)&&f.instances.get(b).swiper.slideChange(g)},slideChangeTransitionEnd:function(b, 543g){f.instances.has(b)&&f.instances.get(b).swiper.slideChangeTransitionEnd(g)},slideReInit:function(b){f.instances.has(b)?f.instances.get(b).swiper.reInit():new f(b)},slideUpdate:function(b,g){f.instances.has(b)&&f.instances.get(b).swiper.slideUpdate(g)},slideInit:function(b,g){new f(b,g)},slideRemove:function(b){f.instances.has(b)&&f.instances.get(b).swiper.remove()},slideInitEnd:function(b,g){f.instances.has(b)&&f.instances.get(b).swiper.slideInitEnd(g)},slideSwiperDestory:function(b){f.instances.has(b)&& 544f.instances.get(b).swiper.slideSwiperDestory()},slideStop:function(b){f.instances.has(b)&&f.instances.get(b).swiper.slideStop()},slideStart:function(b){f.instances.has(b)&&f.instances.get(b).swiper.slideStart()},destroy:function(b){f.instances.has(b)&&f.instances.get(b).swiper.destroy()}},f=function(b,g){var p=this;this.indicator=window.sg.common.indicator;this.selector={imageMain:".image \x3e .image__main",swiperSlide:".swiper-slide",swiperWrapper:".swiper-wrapper",swiperButtonNext:".swiper-button-next", 545swiperButtonPrev:".swiper-button-prev",indicator:".indicator",indicatorList:".indicator__list",indicatorControls:".indicator__controls",indicatorItem:".indicator__item",indicatorScreenWrap:".screen-indicator-wrap",indicatorScreenPrev:".screen-indicator--prev",indicatorScreenNext:".screen-indicator--next",indicatorProgress:".progressbar-indicator",indicatorProgressBar:".progressbar-indicator__bar",indicatorProgressShowClass:"progressbar-indicator--show",indicatorProgressFillClass:"progressbar-indicator__bar-fill", 546hiddenButton:".hiddenButton"};this.el={componentEl:null,containerEl:null,indicatorEl:null,prevEl:null,nextEl:null,autoPlayBtnEl:null};this.group=0;this.el.containerEl=a(b);b=this.el.containerEl.attr("data-swiper-option")?JSON.parse(this.el.containerEl.target[0].dataset.swiperOption):{};this.el.componentEl=this.el.containerEl.closest(b.componentEl);var r={slidesPerView:1,spaceBetween:0,longSwipes:!0,longSwipesRatio:.1,keepWrapper:!0,offSlideAccessibility:!1,offTxtAccesibility:!1};r=e.extend(r,b);r.on= 547{};r.threshold=10;r.init=!1;r.accessibility=!0;g&&(r=e.extend(r,g));void 0!==r.offTxtAccessibility&&(r.offTxtAccesibility=r.offTxtAccessibility);r.freeMode&&(r.threshold=0,r.freeModeSticky=!0,r.freeModeMomentumRatio=.01,r.centeredSlidesB
547ounds=!0,r.touchStartPreventDefault=!1);r.a11y=!1;r.autoplay&&(r.autoplay.disableOnInteraction=!1,!1===r.autoplay.start&&(r.autoplay=!1));this.$qwindow=a(window);this.option=r;this.focusInCheck=this.autoPlayCheck=null;this.clickCheck=!1;this.activeSlide=0;this.slideChangeHandler= 548this.slideInitEndHandler=this.slideChangeTransitionEndHandler=null;this.prevImageCheck=!1;this.wrapperStr='\x3cdiv class\x3d"swiper-wrapper" role\x3d"listbox"\x3e';this.focusElementStr="a, button, .video, video, h1, h2, h3, h4, h5, h6, p";this.focusElementNotxt="a, button";this.focusClass=".three-column-carousel__content, .swiper-slide-focus";this.swiperStopEle=".swiper-wrapper";this.hiddenButton='\x3cbutton type\x3d"button" class\x3d"hidden hiddenButton" tabindex\x3d"-1"\x3eStop automatic slide show\x3c/button\x3e'; 549this.textColorArr=[];this.textColorArr[0]=".text-white";this.textColorArr[1]=".text-black";this.bulletColorArr=[];this.bulletColorArr[0]="text-color--white";this.bulletColorArr[1]="text-color--black";this.sw=!1;this.handler={setImageCheck:function(){var t=p.el.containerEl.find(p.selector.imageMain).eq(0);0>=t.height()&&(p.el.containerEl.css({"min-height":"2px"}),t.on("load",p.handler.checkImageLoad))},checkImageLoad:function(t){p.el.containerEl.css({"min-height":""});p.slideResize();a(t.target).off("load", 550p.handler.checkImageLoad)},autoPlayHandler:function(){p.autoPlayCheck=p.autoPlayCheck?!1:!0;p.autoPlayCheck?(p.sw.autoplay.start(),p.handler.autoPlayBtnSetup(!1)):(p.sw.autoplay.stop(),p.handler.autoPlayBtnSetup(!0))},autoPlayBtnSetup:function(t){if(p.el.autoPlayBtnEl.target.length){var w=p.el.autoPlayBtnEl.attr("an-la");t?(p.el.autoPlayBtnEl.attr("an-la",w.replace(":stop",":play")),p.el.autoPlayBtnEl.find(".hidden").innerHTML("play"),p.el.indicatorEl&&p.indicator.pause(p.el.indicatorEl),p.el.autoPlayBtnEl.addClass("indicator__controls--play"), 551p.el.containerEl.find(p.selector.hiddenButton).text("Play automatic slide show")):(p.el.autoPlayBtnEl.attr("an-la",w.replace(":play",":stop")),p.el.autoPlayBtnEl.find(".hidden").innerHTML("stop"),p.el.indicatorEl&&p.indicator.play(p.el.indicatorEl),p.el.autoPlayBtnEl.removeClass("indicator__controls--play"),p.el.containerEl.find(p.selector.hiddenButton).text("Stop automatic slide show"))}},focusInHandler:function(t){t.preventDefault();p.sw.autoplay&&!p.focusInCheck&&(p.focusInCheck=!0,p.autoPlayCheck= 552p.sw.autoplay.running,"focusin"!==t.type.toLowerCase()&&"mouseover"!==t.type.toLowerCase()||p.handler.autoPlayBtnSetup(!0),p.sw.autoplay.stop())},focusOutHandler:function(t){t.preventDefault();p.sw.autoplay&&p.focusInCheck&&(p.focusInCheck=!1,p.autoPlayCheck&&(p.clickCheck=!1,p.sw.autoplay.start(),p.handler.autoPlayBtnSetup(!1)))},renderIndicator:function(){if(p.el.indicatorEl){var t=p.indicator.init(p.el.indicatorEl);t&&t.reInit();p.el.componentEl.find(p.selector.indicatorItem).target.length&&p.indicator.move(p.el.indicatorEl, 553p.activeSlide)}p.el.autoPlayBtnEl.target.length&&(p.el.autoPlayBtnEl.find(".hidden").innerHTML("stop"),k(p.el.autoPlayBtnEl.target[0],"click"),p.el.autoPlayBtnEl.removeClass("indicator__controls--play"),t=function(w){p.el.indicatorEl||p.el.autoPlayBtnEl.toggleClass("indicator__controls--play");w.preventDefault();p.focusInCheck&&!p.clickCheck&&(p.clickCheck=!0,setTimeout(function(){p.handler.autoPlayHandler(!0)},100));p.handler.autoPlayHandler()},p.el.autoPlayBtnEl.off("click").on("click",t),p.el.containerEl.find(p.selector.hiddenButton).off("click").on("click", 554t))},paginationUpdateHandler:function(t,w){t=a(w).find(p.selector.indicatorItem+".swiper-pagination-bullet-active").target[0];w=a(w).find(p.selector.indicatorItem+".indicator__item--active").target[0];t!==w&&t&&(w=parseInt(t.getAttribute("data-type-clickid"),10),p.indicator.move(p.el.indicatorEl,w))},paginationRenderHandler:function(){p.handler.renderIndicator();p.handler.setupBullet()},setupBullet:function(){p.headlineArr=[];p.el.containerEl.find(".swiper-slide:not(.swiper-slide-duplicate)").target.forEach(function(y){var C= 555y.getAttribute("data-type-headline");C||(C=y.dataset.tagging?JSON.parse(y.dataset.tagging)["an-tr"]:y.getAttribute("an-tr"));p.headlineArr.push(C)});p.headlineArr=p.headlineArr.concat(p.headlineArr);a(p.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(y,C){var E=null;E=C*p.group;p.group!==p.getNowPerView()&&(E=C);E=p.option.loop?p.el.containerEl.find(p.selector.swiperWrapper).find('.swiper-slide[data-swiper-slide-index\x3d"'+E+'"]'):a(p.sw.slides[E]);var z=a(y);E.target.forEach(function(va){va.setAttribute("aria-describedby", 556z.attr("id"))});if(E.target[0].dataset.tagging){var V=JSON.parse(E.target[0].dataset.tagging);y=V["an-tr"];var ca=V["an-ca"];var xa=V["an-ac"];V=V["an-la"]}else y=E.attr("an-tr"),ca=E.attr("an-ca"),xa=E.attr("an-ac"),V=E.attr("an-la");var ea=E.attr("data-type-headline");ea||(ea=y);z.attr("an-tr",y);z.attr("an-ca",ca);z.attr("an-ac",xa);z.attr("an-la",V);z.attr("data-type-slide-index",C);setTimeout(function(){z.find(".hidden").innerHTML(""+ea)},0)});var t=p.getNowPerView();if(1<t)if(1>=p.option.slidesPerGroup)a(p.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(y, 557C){for(var E="",z=C;z<C+t;z++)E=z!==C+t-1?E+(p.headlineArr[z]+", "):E+(""+p.headlineArr[z]);a(y).find(".hidden").innerHTML(""+E)});else{var w=0;a(p.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(y){for(var C="",E=w;E<w+t;E++)C=E!==w+t-1?C+(p.headlineArr[E]+", "):C+(""+p.headlineArr[E]);w+=t;a(y).find(".hidden").innerHTML(""+C)})}},resize:function(){"pc"===p.option.viewMode?p.resizePc():"mobile"===p.option.viewMode?p.resizeMobile():p.resize()}};this.handler.setImageCheck(); 558this.bindEvents();this.reInit=function(){p.el.containerEl.find(p.selector.swiperSlide).removeClass("swiper-slide-active");p.remove();p.handler.setImageCheck();p.bindEvents()};f.instances.set(this.el.containerEl.target[0],{swiper:this})};f.createCount=function(){return this.count+=1};f.prototype.customFocus=function(){};f.prototype.getSwiper=function(){return this.sw};f.prototype.init=function(){function b(){p.option.loop||y(C())}var g=this;if(!1===this.sw){this.activeSlide=0;var p=this,r=this.el.containerEl.find(this.selector.swiperSlide); 559this.el.autoPlayBtnEl=this.el.componentEl.find(this.selector.indicatorControls);this.el.indicatorEl=this.el.componentEl.find(this.selector.indicator).target[0];this.el.prevEl=this.el.componentEl.find(this.selector.swiperButtonPrev);this.el.nextEl=this.el.componentEl.find(this.selector.swiperButtonNext);this.el.indicatorScreenPrev=this.el.componentEl.find(this.selector.indicatorScreenPrev);this.el.indicatorScreenNext=this.el.componentEl.find(this.selector.indicatorScreenNext);if(this.getNowPerView()> 560r.target.length)this.el.prevEl.hide(),this.el.nextEl.hide();else{this.el.containerEl.find(this.selector.swiperSlide).target.forEach(function(ea,va){a(ea).hasClass("swiper-slide-active")&&(g.activeSlide=va)});if(0===this.el.containerEl.find(this.selector.swiperWrapper).target.length){var t=this.el.containerEl.find(this.selector.swiperSlide);this.slideAccessibility();r=t.clone();t.remove();
560t=this.el.containerEl.find(".indicator");var w=this.el.containerEl.children();0===w.target.length?this.el.containerEl.append(this.wrapperStr): 561t.target.length&&!this.el.containerEl.find(this.selector.swiperButtonPrev).target.length?t.prepend(this.wrapperStr):w.eq(0).after(this.wrapperStr);this.el.containerEl.find(this.selector.swiperWrapper).append(r);window.sg.common.image.initAll();c.initAll()}this.el.containerEl.find(this.selector.hiddenButton).off().remove();this.option.autoplay&&this.el.containerEl.target[0].insertAdjacentHTML("afterbegin",this.hiddenButton);this.option.navigation?"string"===(typeof this.option.navigation.prevEl).toLowerCase()&& 562(this.el.prevEl=this.el.componentEl.find(this.option.navigation.prevEl),this.el.nextEl=this.el.componentEl.find(this.option.navigation.nextEl)):(this.option.navigation={},this.option.navigation.prevEl=this.el.prevEl.target[0],this.option.navigation.nextEl=this.el.nextEl.target[0]);this.option.navigation.navigationDisabledClass="swiper-navigation-disabled";this.slideChangeHandler&&(this.option.on.slideChange=function(){g.slideChangeHandler(g.sw,g.sw.realIndex)});if(this.option.pagination){this.option.pagination= 563{};if(r=this.el.componentEl.find(this.selector.indicatorProgress).target[0])this.option.pagination.type="progressbar";switch(this.option.pagination.type){case "progressbar":this.option.pagination.el=r.querySelector(this.selector.indicatorProgressBar);this.option.pagination.progressbarFillClass=this.selector.indicatorProgressFillClass;break;default:this.el.componentEl.find(this.selector.indicatorList+" \x3e button").remove(),this.option.pagination.el=this.el.componentEl.find(this.selector.indicatorList).target[0], 564this.option.pagination.el&&"list"===this.option.pagination.el.getAttribute("role")?this.option.pagination.renderBullet=function(ea,va){return'\x3cdiv class\x3d"div-for-accessibility" role\x3d"listitem"\x3e\x3cbutton class\x3d"indicator__item '+va+'" data-type-clickid\x3d"'+ea+'" id\x3d"swiper'+f.createCount()+'"\x3e\x3cspan class\x3d"indicator__dot-wrap"\x3e\x3cspan class\x3d"indicator__dot"\x3e \x3cspan class\x3d"indicator__dot-inner"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"hidden"\x3eIndicator 10\x3c/span\x3e\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e'}: 565this.option.pagination.el&&(this.option.pagination.renderBullet=function(ea,va){return'\x3cbutton class\x3d"indicator__item '+va+'" role\x3d"tab" data-type-clickid\x3d"'+ea+'" id\x3d"swiper'+f.createCount()+'"\x3e\x3cspan class\x3d"indicator__dot-wrap"\x3e\x3cspan class\x3d"indicator__dot"\x3e \x3cspan class\x3d"indicator__dot-inner"\x3e\x3c/span\x3e\x3c/span\x3e\x3cspan class\x3d"hidden"\x3eIndicator 10\x3c/span\x3e\x3c/span\x3e\x3c/button\x3e'})}}var y=function(ea){switch(void 0===ea?!1:ea){case "beginning":g.el.indicatorScreenPrev.attr("disabled", 566!0);g.el.prevEl.attr("disabled",!0);g.sw.isEnd||g.sw.perView>=g.sw.slides.length?(g.el.indicatorScreenNext.attr("disabled",!0),g.el.nextEl.attr("disabled",!0)):(g.el.indicatorScreenNext.removeAttr("disabled"),g.el.nextEl.removeAttr("disabled"));g.el.containerEl.removeClass("swiper-slide--end");g.el.containerEl.addClass("swiper-slide--beginning");break;case "end":g.el.indicatorScreenPrev.removeAttr("disabled");g.el.prevEl.removeAttr("disabled");g.el.indicatorScreenNext.attr("disabled",!0);g.el.nextEl.attr("disabled", 567!0);g.el.containerEl.addClass("swiper-slide--end");g.el.containerEl.removeClass("swiper-slide--beginning");break;case !1:g.el.indicatorScreenNext.removeAttr("disabled"),g.el.nextEl.removeAttr("disabled"),g.el.indicatorScreenPrev.removeAttr("disabled"),g.el.prevEl.removeAttr("disabled"),g.el.containerEl.removeClass("swiper-slide--end"),g.el.containerEl.removeClass("swiper-slide--beginning")}},C=function(){return!p.option.loop&&p.sw.isBeginning?"beginning":!p.option.loop&&p.sw.isEnd?"end":!1};r=this.getNowPerView(); 568this.group=this.option.slidesPerGroup;this.group||(this.group=1);r=r!==this.group&&"number"===(typeof this.group).toLowerCase()&&"auto"!==r?!0:!1;var E=[];r?(this.option.slidesPerGroup=1,this.timer=null,this.option.on={slideNextTransitionStart:function(){var ea=this;0===(this.realIndex-1)%this.group&&this.slideTo(this.activeIndex+(this.group-1));var va=!1;
568E.forEach(function(na){ea.realIndex===na&&(va=!0)});va&&this.slideNext();this.slideChangeHandler&&(this.timer&&clearTimeout(this.timer),this.timer= 569setTimeout(function(){ea.slideChangeHandler(ea.sw,ea.sw.realIndex)},200))},slidePrevTransitionStart:function(){var ea=this;0===(this.realIndex+1)%this.group&&this.slideTo(this.activeIndex-(this.group-1));var va=!1;E.forEach(function(na){ea.realIndex===na&&(va=!0)});va&&this.slidePrev();this.slideChangeHandler&&(this.timer&&clearTimeout(this.timer),this.timer=setTimeout(function(){ea.slideChangeHandler(ea.sw,ea.sw.realIndex)},200))}}):this.option.pagination&&(this.option.pagination.clickable=!0);this.option.autoHeight&& 570(this.el.containerEl.find(this.selector.swiperWrapper).css({transition:"all ease-out","-o-transition":"all ease-out","-ms-transition":"all ease-out","-moz-transition":"all ease-out","-webkit-transition":"all ease-out"}),this.option.on.touchStart=function(){g.slideResize()});var z=!1;this.option.freeMode&&(this.option.on.touchEnd=function(){z=!0});this.option.on.slideChangeTransitionEnd=function(){g.slideChangeTransitionEndHandler&&g.slideChangeTransitionEndHandler(g.sw,g.sw.realIndex);g.slideAccessibility(); 571z||g.customFocus();z=!1};this.sw=new n(this.el.containerEl.target[0],this.option);this.sw.init();this.option.autoplay?(this.el.autoPlayBtnEl.attr("an-tr",this.option.autoplay["an-tr"]),this.el.autoPlayBtnEl.attr("an-ca",this.option.autoplay["an-ca"]),this.el.autoPlayBtnEl.attr("an-ac",this.option.autoplay["an-ac"]),this.el.autoPlayBtnEl.attr("an-la",this.option.autoplay["an-la"]),!this.el.indicatorEl&&this.el.autoPlayBtnEl&&this.handler.renderIndicator()):this.el.autoPlayBtnEl.hide();if(this.option.pagination){this.handler.setupBullet(); 572if(r){var V=0,ca=a(this.option.pagination.el).find(".swiper-pagination-bullet");ca.target.forEach(function(ea,va){0===va%g.group||va===ca.target.length-1?(ea.setAttribute("data-type-group-index",va),ea.setAttribute("data-type-clickid",V),V++):(E.push(va),ea.setAttribute("disabled","false"))});this.el.componentEl.find(this.selector.indicatorItem+'[disabled\x3d"false"]').remove();this.el.componentEl.find(this.selector.indicatorItem).on("click",function(ea){ea=parseInt(a(ea.target).closest(g.selector.indicatorItem).attr("data-type-group-index"), 57310);g.sw.slideToLoop(ea)});var xa=parseInt(this.getNowPerView(),0);a(this.option.pagination.el).find(".swiper-pagination-bullet").target.forEach(function(ea,va){var na="",bb=parseInt(ea.getAttribute("data-type-slide-index"),10);if(g.option.realSlidesPerView){for(var cb=bb;cb<bb+xa;cb++)na+=" "+g.headlineArr[cb];a(ea).find(".hidden").innerHTML("Slide "+(va+1)+":"+na)}else{for(va=bb;va<bb+xa;va++)na=va!==bb+xa-1?na+(g.headlineArr[va]+", "):na+(""+g.headlineArr[va]);a(ea).find(".hidden").innerHTML(""+ 574na)}})}this.option.pagination&&setTimeout(function(){g.sw.pagination&&g.sw.pagination.bullets&&(g.handler.renderIndicator(),g.sw.on("paginationUpdate",g.handler.paginationUpdateHandler),g.sw.on("paginationRender",g.handler.paginationRenderHandler))},100)}this.option.autoplay&&(this.autoPlayCheck=this.sw.autoplay.running,r=null,r=this.el.componentEl.target.length?this.el.componentEl.find(this.swiperStopEle):this.el.containerEl,this.focusInCheck=!1,r.off("mouseover",this.handler.focusInHandler).on("mouseover", 575this.handler.focusInHandler),r.off("mouseleave",this.handler.focusOutHandler).on("mouseleave",this.handler.focusOutHandler),r.off("focusin",this.handler.focusInHandler).on("focusin",this.handler.focusInHandler),r.off("focusout",this.handler.focusOutHandler).on("focusout",function(ea){setTimeout(function(){a(document.activeElement).target[0]!==g.el.autoPlayBtnEl.target[0]&&g.handler.focusOutHandler(ea)},300)}));if(this.option.loop)this.sw.slideToLoop(this.activeSlide,0);else if(this.sw.slideTo(this.activeSlide, 5760),this.el.indicatorEl&&"none"!==this.el.autoPlayBtnEl.css("display"))this.sw.on("slideChange",function(){g.sw.isEnd&&!g.el.autoPlayBtnEl.hasClass("indicator__controls--play")&&(g.clickCheck=!0,g.handler.autoPlayHandler())});this.slideAccessibility();this.el.nextEl.off("click").on("click",function(){g.sw.isEnd&&!g.option.loop&&g.el.prevEl.focu
576s()});this.el.prevEl.off("click").on("click",function(){g.sw.isBeginning&&!g.option.loop&&g.el.nextEl.focus()});this.el.indicatorScreenNext.off("click").on("click", 577function(){g.sw.slideNext();g.sw.isEnd&&!g.option.loop&&g.el.indicatorScreenPrev.focus()});this.el.indicatorScreenPrev.off("click").on("click",function(){g.sw.slidePrev();g.sw.isBeginning&&!g.option.loop&&g.el.indicatorScreenNext.focus()});this.sw.on("slideChange",function(){c.setLazyLoad();!1===C()&&y()});this.sw.on("transitionEnd",function(){c.setLazyLoad()});this.sw.on("reachBeginning",function(){y("beginning")});this.sw.on("reachEnd",function(){y("end")});this.sw.on("breakpoint",function(){setTimeout(function(){b()}, 57810)});this.sw.on("update",function(){b()});this.sw.on("init",function(){g.slideInitEndHandler&&g.slideInitEndHandler()});this.option&&this.option.pagination&&"progressbar"===this.option.pagination.type&&(r=this.el.componentEl.find(this.selector.indicatorProgress).target[0],this.sw&&this.sw.params.slidesPerView<this.sw.slides.length&&r&&r.classList.add(this.selector.indicatorProgressShowClass));b()}}};f.prototype.slideStart=function(){this.sw&&(this.autoPlayCheck=!0,this.sw.autoplay.start(),this.handler.autoPlayBtnSetup(!1))}; 579f.prototype.slideStop=function(){this.sw&&(this.autoPlayCheck=!1,this.sw.autoplay.stop(),this.handler.autoPlayBtnSetup(!0))};f.prototype.getNowPerView=function(){var b=0,g=this.option.breakpoints;g&&Object.keys(g).forEach(function(p){p=parseInt(p,0);e.getViewPort().width>p&&b<p&&(b=p)});g=0!==b?g[b].slidesPerView:this.option.slidesPerView;this.option.realSlidesPerView&&(g=parseInt(this.option.realSlidesPerView,0));return g};f.prototype.slideAccessibility=function(){var b=this;if(this.sw&&!this.sw.destroyed&& 580!this.option.offSlideAccessibility){var g=this.getNowPerView();this.el.containerEl.find(this.focusClass).removeAttr("tabindex");for(var p=[],r=0;r<this.sw.slides.length;r++){var t=a(this.sw.slides[r]);this.option.offTxtAccesibility?t.find(this.focusElementNotxt).attr("tabindex","-1"):t.find(this.focusElementStr).attr("tabindex","-1");t.attr("aria-hidden",!0);p.push(t)}if("auto"!==g&&1<g)for(r=this.sw.activeIndex;r<this.sw.activeIndex+g;r++)if(t=p[r])t.find(this.focusElementStr).removeAttr("tabindex"), 581t.attr("aria-hidden",!1),0<t.find(this.focusClass).target.length?t.find(this.focusClass).attr("tabindex","0"):t.find(this.focusElementStr).target.forEach(function(C){b.option.offTxtAccesibility&&!1===(C.matches?C.matches(b.focusElementNotxt):C.msMatchesSelector(b.focusElementNotxt))?C.removeAttribute("tabindex"):C.setAttribute("tabindex","0")});var w=this.el.containerEl.find(".swiper-slide-active");w.find(this.focusClass).target.length?w.find(this.focusClass).attr("tabindex","0"):w.find(this.focusElementStr).target.forEach(function(C){b.option.offTxtAccesibility&& 582!1===(C.matches?C.matches(b.focusElementNotxt):C.msMatchesSelector(b.focusElementNotxt))?C.removeAttribute("tabindex"):C.setAttribute("tabindex","0")});w.attr("aria-hidden",!1);if(this.option.pagination){var y=!0;this.textColorArr.forEach(function(C,E){w.find(C).target.length&&(b.bulletColorArr.forEach(function(z){b.el.containerEl.removeClass(z)}),y=!1,b.el.containerEl.addClass(b.bulletColorArr[E]))});y&&this.bulletColorArr.forEach(function(C){b.el.containerEl.removeClass(C)})}}};f.prototype.update= 583function(){if(this.sw){var b=this.el.containerEl.find(".swiper-slide-active").index();this.option.loop||(this.sw.activeIndex=b);this.slideResize();this.sw.update();this.slideAccessibility()}};f.prototype.slideChange=function(b){this.slideChangeHandler=b};f.prototype.slideChangeTransitionEnd=function(b){this.slideChangeTransitionEndHandler=b};f.prototype.slideInitEnd=function(b){this.sw.initialized?b():this.slideInitEndHandler=b};f.prototype.slideResize=function(){if(!1!==this.sw&&this.option.autoHeight){var b= 584this.el.containerEl.find(this.selector.swiperWrapper),g=b.find(this.selector.swiperSlide);b.css({height:""});g.css({height:""});g.target.forEach(function(p){p=a(p);var r=p.outerHeight();p.css({height:r+"px"})});g=b.find(".swiper-slide.swiper-slide-active").height();b.css({height:g+"px"})}};f.prototype.remove=function(){if(!1!==this.sw){this.el.containerEl.find(".swiper-pagination-bullet").off();this.el.componentEl.find(this.selector.indicatorControls).off();var b=this.el.containerEl.find(this.selector.swiperSlide); 585b.find(this.focusElementStr).removeAttr("tabindex");b.css({width:"",height:"",visibility:""});b.removeAttr("aria-hidden");b.removeAttr("aria-describedby");b.removeClass("swiper-slide-prev");b.removeClass("swiper-slide-next");this.option.keepWrapper||(b=b.clone(),this.el.containerEl.find(this.selector.swiperWrapper).remove(),this.el.containerEl.append(b));this.el.containerEl.find(".swiper-slide-duplicate").remove();this.sw.destroy();this.sw=!1}};f.prototype.slideSwiperDestory=function(){this.sw.destroy(); 586this.sw=!1};f.prototype.resizePc=function(){h.MOBILE<e.getViewPort().width?(this.resize(),this.init()):this.remove();this.slideAccessibility()};f.prototype.resize=function(){this.el.containerEl.find(this.selector.swiperWrapper).css({height:""});this.el.containerEl.find(this.selector.swiperWrapper+" "+this.selector.swiperSlide).css({height:""});this.slideResize();this.slideAccessibility()};f.prototype.resizeMobile=function(){h.MOBILE>=e.getViewPort().width?(this.resize(),this.init()):this.remove(); 587this.slideAccessibility()};f.prototype.bindEvents=function(){this.$qwindow.off("resize",this.handler.resize).on("resize",this.handler.resize);
587this.$qwindow.off("change",this.handler.resize).on("change",this.handler.resize);this.option.viewMode||this.init();this.handler.resize()};f.prototype.slideUpdate=function(b){void 0!==b&&(this.option=e.extend(this.option,b));this.update()};f.prototype.destroy=function(){!1!==this.sw&&(this.sw.destroy(),this.$qwindow.off("resize",this.handler.resize),f.instances.has(this.el.containerEl.target[0])&& 588f.instances.delete(this.el.containerEl.target[0]))};f.count=0;f.instances=new WeakMap;window.sg.components.registerClass("swiper",f);window.sg.common.swiperManager=l;a.ready(l.initAll);a.load(l.update)})(); 589(function(){var a=0,n=function(){var k=window.document.createEvent("UIEvents");k.initUIEvent("resize",!0,!1,window,0);window.dispatchEvent(k)},h=function(k){k?60<a||768===window.innerWidth?n():(a++,requestAnimationFrame(function(){return h(k)})):60<a||768!==window.innerWidth?n():(a++,requestAnimationFrame(function(){return h(k)}))},e=function(){var k=document.querySelector('meta[name\x3d"viewport"]'),l=k.getAttribute("content");768>window.outerWidth&&534<window.outerWidth||window.outerWidth>window.outerHeight&& 590768<=window.outerWidth&&768>window.innerWidth?"width\x3d768"!==l&&(null!=document.getElementById("isBespokeDesignStudioUSPage")?k.setAttribute("content","width\x3ddevice-width,initial-scale\x3d1.0,minimum-scale\x3d1.0"):k.setAttribute("content","width\x3d768"),a=0,requestAnimationFrame(function(){return h(!0)})):window.outerWidth>window.outerHeight&&"width\x3d768"===l||"width\x3ddevice-width,initial-scale\x3d1.0,minimum-scale\x3d1.0"===l||(k.setAttribute("content","width\x3ddevice-width,initial-scale\x3d1.0,minimum-scale\x3d1.0"), 591a=0,requestAnimationFrame(function(){return h(!1)}))},c=function(k){window.outerWidth!==k||120<=a?e():(a++,k=window.outerWidth,requestAnimationFrame(function(){return c(k)}))};window.addEventListener("resize",e);window.addEventListener("orientationchange",function(){a=0;c(window.outerWidth)});"loading"===document.readyState?document.addEventListener("DOMContentLoaded",e):e()})(); 592(function(){var a=window.sg.common.$q,n=window.sg.common.utils.closest,h=function(k,l){this.el=k;this.src=l;Array.isArray(this.src)||(this.src=[this.src]);this.init()};h.prototype.init=function(){var k=this;this.src.forEach(function(l){k.loadSvgSprite(l)});this.setSvgs(this.el)};h.prototype.load=function(k){k&&0>this.src.indexOf(k)&&(this.src.push(k),this.loadSvgSprite(k))};h.prototype.loadSvgSprite=function(k){var l=new XMLHttpRequest;l.open("GET",k);l.send();k=function(){if(4===l.readyState){var f= 593document.createElement("div");f.innerHTML=l.responseText;if(f=f.querySelector("svg"))f.setAttribute("aria-hidden","true"),f.style.position="absolute",f.style.width="0",f.style.height="0",document.body.insertBefore(f,document.body.firstChild)}};l.onreadystatechange=k;k()};h.prototype.setSvgs=function(k){k=k.querySelectorAll("use");[].concat($jscomp.arrayFromIterable(k)).forEach(function(l){var f=l.getAttribute("xlink:href")||l.getAttribute("href"),b=n(l,"svg");f&&b&&(f="#"+f.split("#")[1],l.setAttribute("xlink:href", 594f),l.setAttribute("href",f))})};h.instance=null;var e=["/etc.clientlibs/samsung/clientlibs/consumer/global/clientlib-common/resources/images/svg-sprite.svg"],c={init:function(){var k=document.querySelector("#useSvgSprite");if(!k||k&&"N"!==k.value)h.instance=new h(document,e)},load:function(k){h.instance?h.instance.load(k):0>e.indexOf(k)&&e.push(k)},setSvgs:function(k){k=void 0===k?document:k;h.instance&&h.instance.setSvgs(k)},redrawSvg:function(k){var l=k.parentElement;if(l){var f=[].concat($jscomp.arrayFromIterable(l.childNodes)).indexOf(k); 595l.removeChild(k);var b=document.createElement("div");b.appendChild(k);b.innerHTML=b.innerHTML;k=b.firstChild;l.childNodes[f]?l.insertBefore(k,l.childNodes[f]):l.appendChild(k)}},redrawSvgs:function(k){k=void 0===k?document:k;k=k.querySelectorAll("svg");[].concat($jscomp.arrayFromIterable(k)).forEach(function(l){c.redrawSvg(l)})},redrawAbnormalSvgs:function(k){k=void 0===k?document:k;var l=k.querySelectorAll("svg");
595[].concat($jscomp.arrayFromIterable(l)).forEach(function(f){"http://www.w3.org/2000/svg"!== 596k.namespaceURI&&c.redrawSvg(f)})},update:function(k){k=void 0===k?document:k;c.setSvgs(k);c.redrawSvgs(k)},updateAbnormalSvgs:function(k){k=void 0===k?document:k;c.setSvgs(k);c.redrawAbnormalSvgs(k)}};window.sg.common.icon=c;a.ready(c.init)})();(function(){window.sg=window.sg||{};window.sg.authoring=window.sg.authoring||{};window.sg.authoring.raiseEvent={domContentLoaded:function(){var a=document.createEvent("Event");a.initEvent("DOMContentLoaded",!0,!0);return window.document.dispatchEvent(a)}}})(); 597(function(){var a=window.sg.common.$q,n=window.sg.common.constants.KEY_CODE,h=window.sg.common.scrollbar,e=function(k,l){var f=this;l=void 0===l?-1:l;this.els={el:a(k),selectEl:null,btnEl:null,btnTextEl:null,listWrapEl:null,listEl:null,itemEls:null,docEl:a(document)};this.els.selectEl=this.els.el.find("select");this.els.selectEl.hide();this.options=[].concat($jscomp.arrayFromIterable(this.els.selectEl.target[0].options));this.selectedIndex=l;this.isDisabled=this.isOpen=!1;this.itemMappedIndices=[]; 598this.itemMappedIndicesExclDisabled=[];this.eventHandler={docEl:{click:function(b){b.preventDefault();b.target.hasClass("dropdown__option")||f.close()}},el:{keydown:function(b){if(!f.isDisabled)switch(b.keyCode){case n.TAB:f.els.el.removeClass("selected");break;case n.ENTER:case n.SPACE:-1===f.selectedIndex&&(f.selectedIndex=0,f.selectItem(f.selectedIndex));f.keydown(b);break;case n.PAGE_UP:case n.HOME:f.selectedIndex=0;f.selectItem(f.selectedIndex,b);break;case n.PAGE_DOWN:case n.END:f.selectedIndex= 599f.els.itemEls.target.length-1;f.selectItem(f.selectedIndex,b);break;case n.LEFT:case n.UP:-1!==f.selectedIndex&&f.selectNext(-1,b);break;case n.RIGHT:case n.DOWN:-1!==f.selectedIndex?f.selectNext(1,b):f.selectItem(0,b);break;default:f.selectItem(f.getSelectedItemIndex(b.keyCode),b)}}},btnEl:{click:function(b){b.preventDefault();b.stopPropagation();f.isDisabled||(f.els.el.toggleClass("selected"),f.els.el.hasClass("selected")?(f.els.docEl.off("click",f.eventHandler.docEl.click),f.els.docEl.on("click", 600f.eventHandler.docEl.click),f.open()):f.close())}},selectEl:{change:function(b){f.selectedIndex=b.target.selectedIndex;f.els.btnTextEl.text(b.target.options[f.selectedIndex].text);f.select()}},itemEls:{click:function(b){b.preventDefault();b=a(b.target);b.hasClass("disabled")||(b=b.closest("li").index(),f.change(b),f.close(),f.els.btnEl.focus())}}};this.init()};e.prototype.init=function(){e.instances.has(this.els.el.target[0])||(e.instances.set(this.els.el.target[0],this),this.setElements(),this.bindEvents(), 601this.update(),-1<this.selectedIndex&&this.selectItem(this.selectedIndex))};e.prototype.reInit=function(k){this.els.selectEl=this.els.el.find("select");this.els.btnEl=this.els.el.find(".dropdown__cta");this.els.listWrapEl=this.els.el.find(".dropdown__list-wrap");this.options=[].concat($jscomp.arrayFromIterable(this.els.selectEl.target[0].options));this.removeElements();this.setElements();this.bindEvents();this.update();-1<k&&this.selectItem(k)};e.prototype.removeElements=function(){this.els.btnEl.remove(); 602this.els.listWrapEl.remove()};e.prototype.setElements=function(){var k=this,l=this.els.selectEl.target[0],f=l.dataset.defaultMessage;f?l.selectedIndex=-1:f=l.options[l.selectedIndex].text;this.selectedIndex=l.selectedIndex;this.els.el.append('\x3ca class\x3d"dropdown__cta" title\x3d"'+l.title+'" href\x3d"#" role\x3d"combobox" aria-haspopup\x3d"listbox" aria-expanded\x3d"false"\x3e\x3cspan\x3e'+f+"\x3c/span\x3e\x3c/a\x3e");this.els.btnEl=this.els.el.find(".dropdown__cta");this.els.btnTextEl=this.els.btnEl.find("span"); 603this.els.el.append('\x3cdiv class\x3d"dropdown__list-wrap scrollbar"\x3e\x3c/div\x3e');this.els.listWrapEl=this.els.el.find(".dropdown__list-wrap");this.els.listWrapEl.append('\x3cul class\x3d"dropdown__option-list scrollbar__contents" role\x3d"listbox" tabindex\x3d"0"\x3e');this.els.listEl=this.els.listWrapEl.find(".dropdown__option-list");this.options.forEach(function(b){k.els.listEl.append('\x3cli class\x3d"dropdown__option"\x3e\x3ca href\x3d"#" role\x3d"option"\x3e\x3cspan\x3e'+b.text+"\x3c/span\x3e\x3c/a\x3e\x3c/li\x3e")}); 604this.els.itemEls=this.els.listEl.find("li\x3ea");h.init(this.els.listWrapEl.target[0]);this.select()};e.prototype.select=function(){this.els.itemEls.removeAttr("aria-selected");this.els.itemEls.removeClass("active");var k=this.els.itemEls.eq(this.selectedIndex);k.addClass("active");k.attr("aria-selected",!0)};e.prototype.bindEvents=function(){this.els.btnEl.off("click").on("click",this.eventHandler.btnEl.click);this.els.itemEls.off("click").on("click",this.eventHandler.itemEls.click);this.els.selectEl.off("change").on("change", 605this.eventHandler.selectEl.change);this.els.el.off("keydown").on("keydown",this.eventHandler.el.keydown)};e.prototype.update=function(){var k=this;this.els.el.hasClass("selected")&&(this.els.el.removeClass("selected"),this.els.btnEl.trigger("click"));(this.isDisabled=this.els.el.hasClass("disabled"))?(this.els.btnEl.attr("tabindex","-1"),this.els.btnEl.attr("aria-disabled","true")):(this.els.btnEl.removeAttr("tabindex"),this.els.btnEl.attr("aria-disabled","false"));this.els.itemEls.removeClass("disabled"); 606this.els.itemEls.removeAttr("tabindex");this.els.itemEls.attr("aria-disabled","false");this.itemMappedIndices=[];this.itemMappedIndicesExclDisabled=[];var l=0;this.options.forEach(function(f,b){k.itemMappedIndices.push(-1);f.disabled?(f=k.els.itemEls.eq(b),f.addClass("disabled"),f.attr("tabindex","-1"),f.attr("aria-disabled","true")):(k.itemMappedIndices[b]=l++,k.itemMappedIndicesExclDisabled.push(b))})};e.prototype.open=function(){this.els.el.css({"z-index":1});-1!==this.els.selectEl.target[0].selectedIndex&& 607this.els.itemEls.eq(this.els.selectEl.target[0].selectedIndex).focus();this.els.btnEl.attr("aria-expanded",!0);this.isOpen=!0;this.resize()};e.prototype.close=function(){this.els.el.css({"z-index":""});this.els.el.removeAttr("z-index");this.els.el.removeClass("selected");this.isOpen=!1;this.els.btnEl.attr("aria-expanded",!1);this.els.docEl.off("click",this.eventHandler.docEl.click);this.els.btnEl.focus()};e.prototype.resize=function(){h.resize(this.els.listWrapEl.target[0])};e.prototype.change=function(k){var l= 608this.els.selectEl.target[0];l.selectedIndex!==k&&(this.selectedIndex=l.selectedIndex=k,this.els.selectEl.trigger("change"))};e.prototype.keydown=function(k){this.els.btnEl.trigger("click");k.preventDefault()};e.prototype.selectNext=function(k,l){var f=-1===this.itemMappedIndices[this.selectedIndex]?0:this.itemMappedIndices[this.selectedIndex];f+=k;k=0>f?this.itemMappedIndicesExclDisabled[0]:f>this.itemMappedIndicesExclDisabled.length-1?this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length- 6091]:this.itemMappedIndicesExclDisabled[f];-1!==k&&(this.els.itemEls.target[k].focus(),this.change(k));l&&l.preventDefault()};e.prototype.selectItem=function(k,l){if(!(0>k)){var f=-1;0===k?f=this.itemMappedIndicesExclDisabled[0]:k===this.itemMappedIndices.length-1?f=this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-1]:-1!==this.itemMappedIndices[k]&&(f=k);-1!==f&&(this.els.itemEls.target[f].focus(),this.change(f));l&&l.preventDefault()}};e.prototype.getSelectedItemIndex=function(k){var l= 610this,f=/[A-Z]/,b=k-48*Math.floor(k/48),g=String.fromCharCode(96<=k?b:k),p=!0,r=-1;k=this.selectedIndex;this.els.itemEls.target.forEach(function(t,w){var y=t.textContent.substring(0,1).toUpperCase();t=a(t).hasClass("disabled");f.test(y)&&y===g&&!t&&-1===r&&(r=w);f.test(y)&&y===g&&l.selectedIndex<w&&p&&!t&&(l.selectedIndex=w,p=!1)});k===this.selectedIndex&&-1!==r&&(this.selectedIndex=r);return this.selectedIndex};e.instances=new WeakMap;var c={initAll:function(){a(".dropdown").target.forEach(function(k){e.instances.has(k)|| 611new e(k)})},init:function(k){e.instances.has(k)||new e(k)},reInit:function(k,l){l=void 0===l?-1:l;e.instances.has(k)?e.instances.get(k).reInit(l):new e(k,l)}};window.sg.common.dropdown=c;a.ready(c.initAll)})();
612(function(){var a=window.sg.common.$q,n=window.BezierEasing,h=window.sg.common.lazyLoad,e=function(c){this.el=c;this.init()};e.prototype.init=function(){this.scrollPos=document.body.scrollTop||document.documentElement.scrollTop;this.isAnim=!1;this.duration=600;this.easing=n(.4,0,.2,1);this.bindEvent()};e.prototype.bindEvent=function(){this.handleScroll=this.handleScroll.bind(this);window.addEventListener("scroll",this.handleScroll);this.scrollToTop=this.scrollToTop.bind(this);this.el.addEventListener("click", 613this.scrollToTop)};e.prototype.handleScroll=function(){var c=document.body.scrollTop||document.documentElement.scrollTop;0<=c&&c!==this.scrollPos&&(0===c||c>this.scrollPos||this.isAnim?this.el.classList.remove("show"):this.el.classList.add("show"),this.scrollPos=c)};e.prototype.scrollToTop=function(){var c=document.body.scrollTop||document.documentElement.scrollTop,k=function(l){window.scrollTo(0,c-c*l);1===l&&h.setDisabled(!1)};this.isAnim||(h.setDisabled(),this.animate(k))};e.prototype.animate= 614function(c){var k=this,l=Date.now();this.isAnim=!0;var f=function(){var b=(Date.now()-l)/k.duration;1<b?(c(1),k.isAnim=!1):(requestAnimationFrame(f),c(k.easing(b)))};requestAnimationFrame(f)};e.instance=null;a.ready(function(){var c=document.querySelector(".fab");c&&!e.instance&&(e.instance=new e(c))})})(); 615(function(){var a=window.sg.common.$q,n=function(e){this.els={el:e,inputEl:e.querySelector("input, textArea"),clearButtonEl:e.querySelector(".icon"),assistiveMsgEl:e.querySelector(".assistive-message"),errorMsgEl:e.querySelector(".error-message"),successMsgEl:e.querySelector(".success-message")};this.init()};n.prototype.init=function(){n.instances.has(this.els.el)||(n.instances.set(this.els.el,this),this.bindEvents())};n.prototype.setAssistiveMessage=function(e){this.els.assistiveMsgEl.innerText= 616e};n.prototype.setErrorMessage=function(e){this.els.errorMsgEl.innerText=e};n.prototype.setSuccessMessage=function(e){this.els.errorMsgEl.innerText=e};n.prototype.setValue=function(e){this.els.inputEl.value=e;this.els.inputEl!==document.activeElement&&(""!==e.replace(/^\s+$/,"")?this.els.el.classList.add("text-field--active"):this.els.el.classList.remove("text-field--active"))};n.prototype.focusIn=function(){this.els.el.classList.add("text-field--focus")};n.prototype.focusOut=function(e){this.els.el.classList.remove("text-field--focus"); 617""!==e.target.value.replace(/^\s+$/,"")?this.els.el.classList.add("text-field--active"):this.els.el.classList.remove("text-field--active")};n.prototype.bindEvents=function(){var e=this;this.focusIn=this.focusIn.bind(this);this.focusOut=this.focusOut.bind(this);this.els.inputEl.addEventListener("focus",this.focusIn);this.els.inputEl.addEventListener("blur",this.focusOut);this.els.clearButtonEl&&this.els.clearButtonEl.addEventListener("click",function(){e.els.inputEl.value="";e.els.el.classList.remove("text-field--active")})}; 618n.instances=new WeakMap;var h={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".text-field"))).forEach(function(e){n.instances.has(e)||new n(e)})},init:function(e){return n.instances.has(e)?n.instances.get(e):new n(e)},setAssistiveMessage:function(e,c){n.instances.has(e)&&n.instances.get(e).setAssistiveMessage(c)},setErrorMessage:function(e,c){n.instances.has(e)&&n.instances.get(e).setErrorMessage(c)},setSuccessMessage:function(e,c){n.instances.has(e)&&n.instances.get(e).setSuccessMessage(c)}, 619setValue:function(e,c){n.instances.has(e)&&n.instances.get(e).setValue(c)}};window.sg.common.textField=h;a.ready(function(){return h.initAll()})})(); 620(function(){var a=window.sg.common.$q,n=window.sg.common.utils.getCurrentDevice,h=function(c){this.els={el:c,inputWrapEl:null,hintTextEl:null,inputWrapOutlineEl:null,inputEl:null,textAreaEl:null,voiceInputBtnEl:null,deleteBtnEl:null,errorIconEl:null,openDownBtnEl:null,iconEls:[],textLengthEl:null,assistiveMsgEl:null,errorMsgEl:null,successMsgEl:null};this.isCheckTextLength=this.isMultiLineHint=this.isMultiLine=this.isNoTitle=this.disabled=!1;this.maxLength=0;this.device=n();this.init()};h.prototype.init= 621function(){h.instances.has(this.els.el)||(h.instances.set(this.els.el,this),this.setElements(),this.bindEvents())};h.prototype.reInit=function(){this.unBindEvents();this.setElements();this.bindEvents()};h.prototype.destroy=function(){this.unBindEvents();h.instances.has(this.els.el)&&h.instances.delete(this.els.el);this.els=null};h.prototype.setElements=function(){this.els.inputEl=this.els.el.querySelector(".text-field-v2__input");this.els.textAreaEl=this.els.el.querySelector(".text-field-v2__input-multi-line"); 622this.els.voiceInputBtnEl=this.els.el.querySelector(".text-field-v2__input-icon.voice-input");this.els.voiceInputBtnEl&&this.els.iconEls.push(this.els.voiceInputBtnEl);this.els.deleteBtnEl=this.els.el.querySelector(".text-field-v2__input-icon.delete");this.els.deleteBtnEl&&this.els.iconEls.push(this.els.deleteBtnEl);this.els.errorIconEl=this.els.el.querySelector(".text-field-v2__input-icon.error");this.els.errorIconEl&&this.els.iconEls.push(this.els.errorIconEl);this.els.openDownBtnEl=this.els.el.querySelector(".text-field-v2__input-icon.open-down"); 623this.els.openDownBtnEl&&this.els.iconEls.push(this.els.openDownBtnEl);this.els.assistiveMsgEl=this.els.el.querySelector(".text-field-v2__text.assistive");this.els.errorMsgEl=this.els.el.querySelector(".text-field-v2__text.error");this.els.successMsgEl=this.els.el.querySelector(".text-field-v2__text.success");this.disabled=this.els.el.classList.contains("disabled");!this.els.inputEl&&this.els.textAreaEl&&(this.els.el.classList.add("multi-line"),this.isMultiLine=!0);!this.els.iconEls.length&&this.els.inputEl&& 624this.els.el.classList.add("no-icon");this.isNoTitle=this.els.el.classList.contains("no-title");
624if(this.isMultiLineHint=this.els.el.hasAttribute("data-multi-line-hint"))this.els.inputWrapEl=this.els.el.querySelector(".text-field-v2__input-wrap"),this.els.hintTextEl=this.els.el.querySelector(".text-field-v2__hint"),this.isMultiLine&&(this.els.inputWrapOutlineEl=this.els.el.querySelector(".text-field-v2__input-wrap__outline")),this.setMultiLineHint();if(this.isCheckTextLength=this.isMultiLine&&this.els.el.hasAttribute("data-text-length"))this.els.textLengthEl= 625this.els.el.querySelector(".text-field-v2__text.text-length"),this.maxLength=this.els.textAreaEl.getAttribute("maxLength"),this.setTextLength(this.els.textAreaEl.value);this.checkActive();this.els.el.classList.contains("error")?this.setState("error"):this.els.el.classList.contains("success")?this.setState("success"):this.setState("normal")};h.prototype.setAccessibility=function(c){switch(c){case "error":if(this.els.errorMsgEl)var k=this.els.errorMsgEl.id;break;case "success":this.els.successMsgEl&& 626(k=this.els.successMsgEl.id);break;default:this.els.assistiveMsgEl&&(k=this.els.assistiveMsgEl.id)}this.els.textLengthEl&&(k=k?k+" "+this.els.textLengthEl.id:this.els.textLengthEl.id);this.els.inputEl&&(k?this.els.inputEl.setAttribute("aria-describedby",k):this.els.inputEl.removeAttribute("aria-describedby"));this.els.textAreaEl&&(k?this.els.textAreaEl.setAttribute("aria-describedby",k):this.els.textAreaEl.removeAttribute("aria-describedby"))};h.prototype.handleFocus=function(){this.els.el.classList.add("active"); 627this.els.el.classList.add("focus")};h.prototype.handleBlur=function(){this.els.el.classList.remove("focus");this.checkActive()};h.prototype.handleInput=function(c){""!==c.target.value.replace(/^\s+$/,"")?this.els.deleteBtnEl&&this.els.el.classList.add("delete"):(this.els.el.classList.remove("delete"),this.setState("normal"));this.setTextLength(c.target.value)};h.prototype.handleDeleteBtnClick=function(){this.els.inputEl.value="";this.els.el.classList.remove("delete");this.setState("normal");this.els.inputEl.focus()}; 628h.prototype.handleDeleteBtnKeypress=function(c){13===c.keyCode&&c.stopPropagation()};h.prototype.checkActive=function(){var c="";this.els.inputEl&&(c=this.els.inputEl.value);this.els.textAreaEl&&(c=this.els.textAreaEl.value);""!==c.replace(/^\s+$/,"")?this.els.el.classList.add("active"):this.els.el.classList.remove("active")};h.prototype.setTextLength=function(c){this.isCheckTextLength&&(this.els.textLengthEl.textContent=c.length+"/"+this.maxLength)};h.prototype.bindEvents=function(){this.handleFocus= 629this.handleFocus.bind(this);this.handleBlur=this.handleBlur.bind(this);this.handleInput=this.handleInput.bind(this);this.els.inputEl&&(this.els.inputEl.addEventListener("focus",this.handleFocus),this.els.inputEl.addEventListener("blur",this.handleBlur),this.els.inputEl.addEventListener("input",this.handleInput));this.els.textAreaEl&&(this.els.textAreaEl.addEventListener("focus",this.handleFocus),this.els.textAreaEl.addEventListener("blur",this.handleBlur),this.els.textAreaEl.addEventListener("input", 630this.handleInput));this.els.deleteBtnEl&&(this.handleDeleteBtnClick=this.handleDeleteBtnClick.bind(this),this.handleDeleteBtnKeypress=this.handleDeleteBtnKeypress.bind(this),this.els.deleteBtnEl.addEventListener("click",this.handleDeleteBtnClick),this.els.deleteBtnEl.addEventListener("keypress",this.handleDeleteBtnKeypress));this.isMultiLineHint&&(this.resize=this.resize.bind(this),window.addEventListener("resize",this.resize))};h.prototype.unBindEvents=function(){this.els.inputEl&&(this.els.inputEl.removeEventListener("focus", 631this.handleFocus),this.els.inputEl.removeEventListener("blur",this.handleBlur),this.els.inputEl.removeEventListener("input",this.handleInput));this.els.textAreaEl&&(this.els.textAreaEl.removeEventListener("input",this.handleInput),this.els.textAreaEl.removeEventListener("blur",this.handleBlur),this.els.textAreaEl.removeEventListener("input",this.handleInput));this.els.deleteBtnEl&&(this.els.deleteBtnEl.removeEventListener("click",this.handleDeleteBtnClick),this.els.deleteBtnEl.removeEventListener("keypress", 632this.handleDeleteBtnKeypress));this.isMultiLineHint&&window.removeEventListener("resize",this.resize)};h.prototype.setDisabled=function(c){(this.disabled=void 0===c?!0:c)?(this.els.el.classList.add("disabled"),[].concat($jscomp.arrayFromIterable(this.els.iconEls)).forEac
632h(function(k){k&&"BUTTON"===k.tagName.toUpperCase()&&(k.disabled=!0)})):(this.els.el.classList.remove("disabled"),[].concat($jscomp.arrayFromIterable(this.els.iconEls)).forEach(function(k){k&&"BUTTON"===k.tagName.toUpperCase()&&(k.disabled= 633!1)}))};h.prototype.setState=function(c){switch(c){case "error":this.els.errorIconEl&&this.els.el.classList.remove("delete");this.els.el.classList.remove("success");this.els.el.classList.add("error");break;case "success":this.els.el.classList.remove("delete");this.els.el.classList.remove("error");this.els.el.classList.add("success");break;default:this.els.el.classList.remove("success"),this.els.el.classList.remove("error")}this.setAccessibility(c)};h.prototype.setMsg=function(c,k){switch(c){case "error":this.els.errorMsgEl&& 634(this.els.errorMsgEl.innerText=k);break;case "success":this.els.successMsgEl&&(this.els.successMsgEl.innerText=k);break;default:this.els.assistiveMsgEl&&(this.els.assistiveMsgEl.innerText=k)}};h.prototype.setMultiLineHint=function(){var c=this;if("mobile"===this.device){var k=function(f){return(100*f/360).toFixed(2)+"vw"};requestAnimationFrame(function(){if(c.isMultiLine){if(!c.isNoTitle){c.els.el.querySelector(".text-field-v2__fake-label.title")||c.els.el.insertAdjacentHTML("afterbegin",'\x3cp class\x3d"text-field-v2__fake-label title" aria-hidden\x3d"true"\x3e'+ 635c.els.hintTextEl.textContent+"\x3c/p\x3e");var f=360*c.els.el.querySelector(".text-field-v2__fake-label.title").getBoundingClientRect().height/window.innerWidth+10;c.els.hintTextEl.style.transform="translate("+k(14)+", "+k(f)+")"}}else{c.isNoTitle||(c.els.el.querySelector(".text-field-v2__fake-label.title")||c.els.el.insertAdjacentHTML("afterbegin",'\x3cp class\x3d"text-field-v2__fake-label title" aria-hidden\x3d"true"\x3e'+c.els.hintTextEl.textContent+"\x3c/p\x3e"),f=360*c.els.el.querySelector(".text-field-v2__fake-label.title").getBoundingClientRect().height/ 636window.innerWidth,c.els.hintTextEl.style.transform="translate(0, "+k(f)+")");c.els.inputWrapEl.querySelector(".text-field-v2__fake-label.input")||c.els.inputWrapEl.insertAdjacentHTML("afterbegin",'\x3cp class\x3d"text-field-v2__fake-label input" aria-hidden\x3d"true"\x3e'+c.els.hintTextEl.textContent+"\x3c/p\x3e");var b=c.els.el.querySelector(".text-field-v2__fake-label.input").getBoundingClientRect().height;c.els.inputEl.style.height=k(360*b/window.innerWidth);c.els.iconEls.forEach(function(g){g.style.bottom= 637k(360*b/window.innerWidth/2-6)})}})}else{var l=this.els.el.querySelector(".text-field-v2__fake-label.title");l&&l.remove();(l=this.els.el.querySelector(".text-field-v2__fake-label.input"))&&l.remove();this.els.hintTextEl.style="";this.els.inputEl&&(this.els.inputEl.style="");this.els.iconEls.forEach(function(f){f.style=""})}};h.prototype.resize=function(){var c=n();this.device!==c&&(this.device=c,this.setMultiLineHint())};h.prototype.setValue=function(c){if(this.els.inputEl)var k=this.els.inputEl; 638this.els.textAreaEl&&(k=this.els.textAreaEl);k.value=void 0===c?"":c;""!==k.value.replace(/^\s+$/,"")?(this.els.el.classList.add("active"),this.els.deleteBtnEl&&this.els.el.classList.add("delete")):(document.activeElement!==k&&this.els.el.classList.remove("active"),this.els.el.classList.remove("delete"),this.setState("normal"));this.setTextLength(k.value)};h.prototype.getValue=function(){if(this.els.inputEl)return this.els.inputEl.value;if(this.els.textAreaEl)return this.els.textAreaEl.value};h.instances= 639new WeakMap;window.sg.components.registerClass("textFieldv2",h);var e={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.text-field-v2:not([data-auto-init\x3d"false"])'))).forEach(function(c){h.instances.has(c)||new h(c)})},init:function(c){h.instances.has(c)||new h(c)},reInit:function(c){h.instances.has(c)?h.instances.get(c).reInit():new h(c)},destroy:function(c){h.instances.has(c)&&h.instances.get(c).destroy()},setDisabled:function(c,k){k=void 0===k?!0:k;h.instances.has(c)&& 640h.instances.get(c).setDisabled(k)},setState:function(c,k){h.instances.has(c)&&h.instances.get(c).setState(k)},setMsg:function(c,k,l){h.instances.has(c)&&h.instances.get(c).setMsg(k,l)}};window.sg.common.textFieldv2=e;a.ready(e.initAll)})();
641(function(){var a=window.sg.common.$q,n=function(e){this.els={el:a(e),buttonEl:null};this.on=!1;this.init()};n.prototype.init=function(){n.instances.has(this.els.el.target[0])||(n.instances.set(this.els.el.target[0],this),this.setElements(),this.bindEvents())};n.prototype.reInit=function(){this.setElements();this.bindEvents()};n.prototype.setElements=function(){this.els.buttonEl=this.els.el.find(".switch-v2__button");this.els.textEl=this.els.el.find(".switch-v2__button-text");this.on=this.els.buttonEl.hasClass("on"); 642this.els.el.addClass("initialized")};n.prototype.bindEvents=function(){var e=this;this.els.buttonEl.off("click").on("click",function(){e.els.el.removeClass("initialized");e.els.buttonEl.hasClass("on")?(e.els.buttonEl.removeClass("on"),e.on=!1,e.els.buttonEl.attr("aria-pressed",!1)):(e.els.buttonEl.addClass("on"),e.on=!0,e.els.buttonEl.attr("aria-pressed",!0))})};n.instances=new WeakMap;var h={initAll:function(){a(".switch-v2").target.forEach(function(e){n.instances.has(e)||new n(e)})},reInit:function(e){n.instances.has(e)? 643n.instances.get(e).reInit():new n(e)}};window.sg.common.switchv2=h;a.ready(h.initAll())})(); 644(function(){var a=window.sg.common.$q,n=window.sg.common.utils,h=n.getCurrentDevice,e=n.extend,c=n.closest,k=n.addEventListener,l=n.removeAllEventListeners,f=n.triggerEvent,b=n.isRtl,g=n.getNormalizedScrollLeft,p=n.setNormalizedScrollLeft,r=window.BezierEasing,t=function(w){this.els={el:w,wrap:null,controlEl:null,controlHiddenEl:null,indicatorListWrapEl:null,indicatorListEl:null,indicatorEls:[],indicatorDotEls:[],indicatorLineEls:[],indicatorPageEls:[],videoWrapEls:[],videoEls:[]};this.defaultOption= 645{type:"label-indicator",play:!1,control:!1,autoRolling:!1,infiniteRolling:!1,indicators:[]};this.dotSizeSmall=.5;this.dotSizeMedium=.75;this.dotSizeLarge=1;this.transitionDuration=400;this.transitionTimer=null;this.init()};t.prototype.init=function(){this.initValues();this.setElements();this.bindEvents();this.option.control||this.option.play||this.select(0);t.instances.has(this.els.el)||t.instances.set(this.els.el,this)};t.prototype.reInit=function(){this.select(-1);this.unBindEvents();this.initValues(); 646this.setElements();this.bindEvents();clearTimeout(this.transitionTimer);this.option.control||this.option.play||this.select(0)};t.prototype.destroy=function(){this.select(-1);this.unBindEvents();t.instances.has(this.els.el)&&t.instances.delete(this.els.el);this.els=null};t.prototype.initValues=function(){this.option={};this.playing=!1;this.selectedIndex=-1;this.elapseTime=0;this.device=h();this.type="";this.firstIndex=this.translateX=0;this.lastIndex=6;this.maxDotNum=7;this.inTransition=!1;this.control= 647"stop";this.role="";this.animReqId&&(cancelAnimationFrame(this.animReqId),this.animReqId=null);this.videosLoaded=[];this.isRtl=b();if(this.isDotSrollable=!!this.els.el.hasAttribute("data-dot-scrollable"))this.isAnim=!1,this.duration=200,this.easing=r(.4,0,.2,1)};t.prototype.setElements=function(){var w=this,y=c(this.els.el,".indicator-container");y?(this.els.wrap=y,[].concat($jscomp.arrayFromIterable(this.els.wrap.querySelectorAll(".indicator-page"))).forEach(function(E){E.classList.contains("swiper-slide-duplicate")|| 648w.els.indicatorPageEls.push(E)})):this.els.wrap=null;this.els.controlEl=this.els.el.querySelector(".indicator__controls");this.els.controlHiddenEl=this.els.el.querySelector(".indicator__controls \x3e .hidden");this.els.indicatorEls=this.els.el.querySelectorAll(".indicator__item");this.els.indicatorListWrapEl=this.els.el.querySelector(".indicator__list-wrap");this.els.indicatorListEl=this.els.el.querySelector(".indicator__list");this.els.indicatorDotEls=this.els.el.querySelectorAll(".indicator__dot-inner"); 649this.els.indicatorLineEls=this.els.el.querySelectorAll(".indicator__label-line-filled");var C=JSON.parse(JSON.stringify(this.defaultOption));this.role=this.els.indicatorListEl.getAttribute("role");[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(E){"tablist"===w.role&&E.setAttribute("aria-selected","false");C.indicators.push(parseInt(E.dataset.indicatorDelay))});y=JSON.parse(this.els.el.dataset.indicatorData);this.option=e(C,y);this.els.controlEl&&(this.option.control= 650!0);this.option.autoRolling&&(this.option.play=!1);this.setType();this.setDots()};t.prototype.setType=function(){if("desktop"===h())switch(this.option.type){case "dot-indicator":this.els.el.classList.remove("label-indicator");this.els.el.classList.add("dot-indicator");this.type="dot-indicator";break;case "dot-indicator-mobile-only":this.els.el.classList.remove("label-indicator");this.els.el.classList.add("dot-indicator");this.els.el.classList.add("dot-indicator-mobile-only");this.type="dot-indicator"; 651break;case "progress-indicator":break;default:this.els.el.classList.remove("dot-indicator"),this.els.el.classList.remove("dot-indicator-mobile-only"),this.els.el.classList.add("label-indicator"),this.type="label-indicator"}else"dot-indicator-mobile-only"===this.option.type&&this.els.el.classList.add("dot-indicator-mobile-only"),this.els.el.classList.remove("label-indicator"),this.els.el.classList.add("dot-indicator"),this.type="dot-indicator";"dot-indicator"===this.type&&this.option.indicators.length> 652this.maxDotNum&&this.els.indicatorListWrapEl.classList.add("dot-more")};t.prototype.bindEvents=function(){var w=this;[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEac
652h(function(y,C){k(y,"click",function(){return w.select(C)});k(y,"mouseenter",function(){return w.handleMouseEnter(C)});k(y,"mouseleave",function(){return w.handleMouseLeave(C)});k(y,"focusin",function(){w.handleMouseEnter(C);w.isDotSrollable||w.setDotsFocused(C)});k(y,"focusout",function(){w.handleMouseLeave(C)})});this.option.control&& 653k(this.els.controlEl,"click",function(){w.handleControl()});this.resize=this.resize.bind(this);window.addEventListener("resize",this.resize)};t.prototype.unBindEvents=function(){[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(w){l(w,"click");l(w,"mouseenter");l(w,"mouseleave");l(w,"focusin");l(w,"focusout")});this.option.control&&l(this.els.controlEl,"click");window.removeEventListener("resize",this.resize)};t.prototype.resize=function(){var w=h();this.device!==w&&(this.device= 654w,this.setType(),"label-indicator"===this.type&&(this.els.indicatorListEl.style.transform="",[].concat($jscomp.arrayFromIterable(this.els.indicatorEls)).forEach(function(y){y.removeAttribute("tabindex");y.removeAttribute("aria-hidden");y.style.visibility=""})),this.select(this.selectedIndex,!0));this.setDots()};t.prototype.handleMouseEnter=function(w){w=this.els.indicatorEls[w];w.classList.add("indicator__item--hover");w.classList.remove("indicator__item--not-hover")};t.prototype.handleMouseLeave= 655function(w){w=this.els.indicatorEls[w];var y=w.matches?w.matches(":hover"):w.msMatchesSelector(":hover"),C=w.matches?w.matches(":focus"):w.msMatchesSelector(":focus");y||C||(w.classList.remove("indicator__item--hover"),w.classList.add("indicator__item--not-hover"))};t.prototype.handleControl=function(w){if((w=void 0===w?null:w)?!this.playing&&"play"===w:!this.playing)this.control="play",-1<this.selectedIndex?this.play():this.select(0);else if(w?this.playing&&"pause"===w:this.playing)this.control= 656"stop",this.pause();this.option.control&&(this.setControlTagging(),w||f(this.els.el,"controlChange",{index:this.selectedIndex,playing:this.playing}))};t.prototype.setControlTagging=function(){var w="play"===this.control?"stop":"play",y=this.els.controlEl.getAttribute("an-la");y&&(y=""+y.substring(0,y.length-4)+w,this.els.controlEl.setAttribute("an-la",y))};t.prototype.select=function(w,y,C){var E=this;C=void 0===C?!1:C;if(this.els.indicatorEls.length){var z=this.selectedIndex;if(z!==w||(void 0=== 657y?0:y))if(this.animReqId&&(cancelAnimationFrame(this.animReqId),this.animReqId=null),-1<z&&(this.els.indicatorEls[z].classList.contains("indicator__item--active")&&this.els.indicatorEls[z].classList.remove("indicator__item--active"),"tablist"===this.role?this.els.indicatorEls[z].setAttribute("aria-selected","false"):this.els.indicatorEls[z].removeAttribute("title"),"label-indicator"===this.type&&this.els.indicatorLineEls[z]&&(this.els.indicatorLineEls[z].style.transform="")),0>w)this.option.control&& 658this.pause(),this.selectedIndex=w;else{this.selectedIndex=w;this.els.indicatorEls[this.selectedIndex].classList.contains("indicator__item--active")||this.els.indicatorEls[this.selectedIndex].classList.add("indicator__item--active");"tablist"===this.role?this.els.indicatorEls[this.selectedIndex].setAttribute("aria-selected","true"):this.els.indicatorEls[this.selectedIndex].setAttribute("title","selected");C&&f(this.els.el,"indicatorReiterate");f(this.els.el,"indicatorMove",this.selectedIndex);this.inTransition= 659!0;var V=function(ea){ea=void 0===ea?E.transitionDuration:ea;E.transitionTimer=setTimeout(function(){E.elapseTime=0;E.inTransition=!1;E.selectedIndex===w&&("play"===E.control||!E.option.autoRolling&&E.option.play)&&E.play()},0<ea?ea:0)},ca=0,xa=function(ea){var va=E.els.videoEls[E.selectedIndex]?E.els.videoEls[E.selectedIndex]:E.els.videoEls[E.selectedIndex]=ea.querySelector(".indicator-background video");if(va)if(4>va.readyState&&!E.videosLoaded[E.selectedIndex]){var na=Date.now(),bb=function(){va.removeEventListener("canplaythrough", 660bb);va.currentTime=0;E.option.indicators[E.selectedIndex]===parseInt(E.els.indicatorEls[E.selectedIndex].dataset.indicatorDelay)&&(E.option.indicators[E.selectedIndex]=1E3*va.duration);E.videosLoaded[E.selectedIndex]=!0;V(E.transitionDuration-(Date.now()-na+200*ca))};va.addEventListener("canplaythrough",bb)}else va.currentTime=0,E.option.indicators[E.selectedIndex]===parseInt(E.els.indicatorEls[E.selectedIndex].dataset.indicatorDelay)&&(E.option.indicators[E.selectedIndex]=1E3*va.duration),E.videosLoaded[E.selectedIndex]= 661!0,V();else 5>ca&&setTimeout(function(){xa(ea);ca++},200)};this.els.indicatorPageEls[this.selectedIndex]?(y=this.els.videoWrapEls[this.selectedIndex]?this.els.videoWrapEls[this.selectedIndex]:this.els.videoWrapEls[this.selectedIndex]=this.els.indicatorPageEls[this.selectedIndex].querySelector(".indicator-background .video"))?"TRUE"===y.dataset.videoEmbed.toUpperCase()&&"FALSE"===y.dataset.imageDefault.toUpperCase()?xa(y):V():V():V();-1<z&&this.els.videoEls[z]&&this.els.videoEls[z].pause();this.setDots()}}}; 662t.prototype.moveDots=function(){var w=this;if("dot-indicator"===this.type&&this.option.indicators.length>this.maxDotNum){var y=this.els.indicatorEls[0].getBoundingClientRect().width+parseFloat(this.isRtl?getComputedStyle(this.els.indicatorEls[0]).marginLeft:getComputedStyle(this.els.indicatorEls[0]).marginRight),C=this.firstIndex*y;if(this.isDotSrollable){var E=g(this.els.indicatorListEl);y=this.els.indicatorListEl.scrollWidth-Math.floor(this.els.indicatorListEl.getBoundingClientRect().width);C>y&& 663(C=y);C=this.isRtl?y-C-E:C-E;y=function(){if(!w.isAnim){var z=Date.now();w.isAnim=!0;var V=function(){var ca=(Date.now()-z)/w.duration;1<ca?(p(w.els.indicatorListEl,E+1*C),w.isAnim=!1):(requestAnimationFrame(V),p(w.els.indicatorListEl,E+C*w.easing(ca)))};requestAnimationFrame(V)}};0<Math.abs(C)&&y()}else C=this.isRtl?C:-C,this.els.indicatorListEl.style.transform="translate3d("+C+"px,0,0)"}};t.prototype.setDotsFocused=function(w){"dot-indicator"===this.type&&this.option.indicators.length>this.maxDotNum&& 664(w>this.lastIndex?(this.firstIndex=w-6,this.lastIndex=w,this.moveDots()):w<this.firstIndex&&(this.firstIndex=w,this.lastIndex=w+6,this.moveDots()))};t.prototype.setDots=function(){if("dot-indicator"===this.type&&this.option.indicators.length>this.maxDotNum){var w=0>this.selectedIndex?0:this.selectedIndex;w>this.lastIndex?(this.firstIndex=w-6,this.lastIndex=w):w<this.firstIndex&&(this.firstIndex=w,this.lastIndex=w+6);if(w>this.lastIndex-2){var y=2-(this.lastIndex-w),C=this.option.indicators.length- 665this.lastIndex-1;this.firstIndex+=C>=y?y:C;this.lastIndex+=C>=y?y:C}else w<this.firstIndex+2&&(y=2-(w-this.firstIndex),C=this.firstIndex,this.firstIndex-=C>=y?y:C,this.lastIndex-=C>=y?y:C);this.moveDots();for(y=0;y<this.els.indicatorEls.length;y++)if(y<this.firstIndex||y>this.lastIndex)this.els.indicatorDotEls[y].style.transform="scale("+this.dotSizeSmall+")";this.els.indicatorDotEls[w].style.transform="scale("+this.dotSizeLarge+")";if(w>this.lastIndex-3){for(y=this.firstIndex+2;y<w;y++)this.els.indicatorDotEls[y].style.transform= 666"scale("+this.dotSizeLarge+")";1<this.firstIndex?(this.els.indicatorDotEls[this.firstIndex].style.transform="scale("+this.dotSizeSmall+")",this.els.indicatorDotEls[this.firstIndex+1].style.transform="scale("+this.dotSizeMedium+")"):0<this.firstIndex&&(this.els.indicatorDotEls[this.firstIndex].style.transform="scale("+this.dotSizeMedium+")");this.els.indicatorDotEls[w+1]&&(y=parseFloat(this.els.indicatorDotEls[w+1].style.transform.replace(/[^\d.]/g,"")),this.dotSizeMedium>=y&&(this.els.indicatorDotEls[w+ 6671].style.transform="scale("+this.dotSizeMedium+")"));this.els.indicatorDotEls[w+2]&&(y=parseFloat(this.els.indicatorDotEls[w+2].style.transform.replace(/[^\d.]/g,"")),this.dotSizeSmall>=y&&(this.els.indicatorDotEls[w+2].style.transform="scale("+this.dotSizeSmall+")"))}if(w<this.firstIndex+3){for(y=w+1;y<this.lastIndex-1;y++)this.els.indicatorDotEls[y].style.transform="scale("+this.dotSizeLarge+")";this.lastIndex<this.option.indicators.length-2?(this.els.indicatorDotEls[this.lastIndex].style.transform= 668"scale("+this.dotSizeSmall+")",this.els.indicatorDotEls[this.lastIndex-1].style.transform="scale("+this.dotSizeMedium+")"):this.lastIndex<this.option.indicators.length-1&&(this.els.indicatorDotEls[this.lastIndex].style.transform="scale("+this.dotSizeMedium+")");this.els.indicatorDotEls[w-1]&&(y=parseFloat(this.els.indicatorDotEls[w-1].style.transform.replace(/[^\d.]/g,"")),this.dotSizeMedium>=y&&(this.els.indicatorDotEls[w-1].style.transform="scale("+this.dotSizeMedium+")"));this.els.indicatorDotEls[w- 6692]&&(y=parseFloat(this.els.indicatorDotEls[w-2].style.transform.replace(/[^\d.]/g,"")),this.dotSizeSmall>=y&&(this.els.indicatorDotEls[w-2].style.transform="scale("+this.dotSizeSmall+")"))}}};t.prototype.setIndicatorDelay=function(w,y){this.option.indicators[w]=y};t.prototype.play=function(){var w=this;this.inTransition||(this.option.control&&(this.els.controlEl.classList.remove("indicator__controls--play"),this.els.controlHiddenEl.innerHTML="stop",this.control="play",this.setControlTagging()),this.playing= 670!0,this.els.videoEls[this.selectedIndex]&&!this.els.videoEls[this.selectedIndex].ended&&this.els.videoEls[this.selectedIndex].play(),this.delay=this.option.indicators[this.selectedIndex]-this.elapseTime,0<this.delay&&(this.start=Date.now(),this.animReqId=requestAnimationFrame(function(){return w.updateProgress(w.selectedIndex)})))};t.prototype.pause=function(){this.option.control&&(this.els.controlEl.classList.add("indicator__controls--play"),this.els.controlHiddenEl.innerHTML="play",this.control= 671"stop",this.setControlTagging());this.playing=!1;this.els.videoEls[this.selectedIndex]&&this.els.videoEls[this.selectedIndex].pause();this.animReqId&&(this.elapseTime+=Date.now()-this.start,cancelAnimationFrame(this.animReqId),this.animReqId=null)};t.prototype.updateProgress=function(w){var y=this;if(this.selectedIndex===w){var C=Date.now()-this.start;C>=this.delay?(f(this.els.el,"indicatorDelayEnd",{index:this.selectedIndex}),this.option.autoRolling&&(w===this.option.indicators.length-1?this.option.infiniteRolling? 672this.select(0,!1,!0):this.select(-1):this.select(w+1))):("label-indicator"===this.type&&(C=(this.elapseTime+C)/this.option.indicators[w],1<C&&(C=100),this.els.indicatorLineEls[w].style.transform="scaleX("+C+")"),this.animReqId=requestAnimationFrame(function(){return y.updateProgress(w)}))}};t.instances=new WeakMap;window.sg.components.registerClass&&window.sg.components.registerClass("indicator",t);n={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.indicator:not([data-auto-init\x3d"false"])'))).forEac
672h(function(w){t.instances.has(w)|| 673new t(w)})},init:function(w){return t.instances.has(w)?t.instances.get(w):new t(w)},reInit:function(w){t.instances.has(w)?t.instances.get(w).reInit():new t(w)},move:function(w,y,C){C=void 0===C?!1:C;t.instances.has(w)&&t.instances.get(w).select(y,C)},play:function(w){t.instances.has(w)&&t.instances.get(w).handleControl("play")},pause:function(w){t.instances.has(w)&&t.instances.get(w).handleControl("pause")},setIndicatorDelay:function(w,y,C){t.instances.has(w)&&t.instances.get(w).setIndicatorDelay(y, 674C)}};window.sg.common.indicator=n;a.ready(n.initAll)})(); 675(function(){var a=window.sg.common.$q,n=function(e){this.els={el:e,mobileSourceEl:e.querySelector("source:nth-of-type(1)"),desktopSourceEl:e.querySelector("source:nth-of-type(2)"),desktopOverSourceEl:e.querySelector("source:nth-of-type(3)"),imgEl:e.querySelector("img")};this.currentPlayingVideoEl={};this.focusTargetEl={};this.init()};n.prototype.init=function(){var e=this;n.instances.get(this.els.el)||(n.instances.set(this.els.el,this),"Netscape"===navigator.appName&&-1!==navigator.userAgent.
675search("Trident")|| 676-1!==navigator.userAgent.indexOf("msie")?(this.setFirstImage(),window.addEventListener("resize",function(){e.setFirstImage()})):this.els.imgEl.dataset.desktopAlt&&(this.setResponsiveAlt(),window.addEventListener("resize",function(){e.setResponsiveAlt()})))};n.prototype.setFirstImage=function(){var e=this.getTargetDevice();if(this.els.imgEl.dataset.targetDevice!==e){var c="";"mobile"===e?(c=this.els.mobileSourceEl.getAttribute("srcset").split(","),c=1.5>window.devicePixelRatio||1===c.length?c[0]:c[1]): 677"desktop"===e?(c=this.els.desktopSourceEl.getAttribute("srcset").split(","),c=1.5>window.devicePixelRatio||1===c.length?c[0]:c[1]):"desktop-over"===e&&(c=this.els.desktopOverSourceEl.getAttribute("srcset").split(","),c=1.5>window.devicePixelRatio||1===c.length?c[0]:c[1]);c=c.trim().split(" ")[0];c!==this.els.imgEl.src&&(this.els.imgEl.src=c);this.els.imgEl.dataset.desktopAlt&&("mobile"===e?this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.mobileAlt):this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.desktopAlt)); 678this.els.imgEl.dataset.targetDevice=e}};n.prototype.setResponsiveAlt=function(){var e=this.getTargetDevice();this.els.imgEl.dataset.targetDevice!==e&&("mobile"===e?this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.mobileAlt):this.els.imgEl.setAttribute("alt",this.els.imgEl.dataset.desktopAlt),this.els.imgEl.dataset.targetDevice=e)};n.prototype.getTargetDevice=function(){var e=window,c="inner";"innerWidth"in window||(c="client",e=document.documentElement||document.body);e=e[c+"Width"];return 768> 679e?"mobile":768<=e&&1366>e?"desktop":"desktop-over"};n.instances=new WeakMap;var h={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".first-image"))).forEach(function(e){n.instances.has(e)||new n(e)})}};window.sg.common.firstImage=h;a.ready(h.initAll)})(); 680(function(){var a=window.sg.common.$q,n=window.sg.common.constants.KEY_CODE,h=window.sg.common.scrollbar,e=window.sg.common.utils.getCurrentDevice,c=window.sg.common.utils.getMobileOS,k=window.sg.common.utils.detectTransitionEndEvent,l=window.sg.common.utils.closest,f=window.sg.common.utils.isVisible,b=window.sg.common.icon,g=function(r,t){var w=this;t=void 0===t?-1:t;this.els={el:a(r),selectEl:null,selectOptionTaggingEl:null,fieldEl:null,fieldTextEl:null,listWrapEl:null,listEl:null,scrollWrapEl:null, 681itemWrapEls:null,itemEls:null,textFiledErrorTextEl:null,docEl:a(document),winEl:a(window)};this.handler={docEl:{click:function(y){w.isDisabled||(y.preventDefault(),l(y.target,".menu")!==w.els.el.target[0]&&w.close())}},el:{keydown:function(y){if(!w.isDisabled)switch(y.keyCode){case n.TAB:case n.ESC:w.isOpen&&w.close();break;case n.PAGE_UP:case n.HOME:w.index=0;w.selectItem(w.index,y);break;case n.PAGE_DOWN:case n.END:w.index=w.els.itemEls.target.length-1;w.selectItem(w.index,y);break;case n.LEFT:case n.UP:w.selectNext(-1, 682y);break;case n.RIGHT:case n.DOWN:w.selectNext(1,y);break;case n.ENTER:case n.SPACE:"mobile"===w.getCurrentDevice()&&y.target===w.els.selectEl.target[0]&&-1===w.index&&(w.index=0,w.selectItem(w.index));break;default:w.selectItem(w.getSelectedItemIndex(y.keyCode),y)}}},fieldEl:{click:function(y){y.preventDefault();w.isDisabled||(w.isOpen?w.close():w.open())}},selectEl:{change:function(y){var C=w.els.selectEl.find("option"),E=y.target.selectedIndex;C.target.forEach(function(ca,xa){E!==xa&&ca.removeAttribute("selected")}); 683w.index=E;-1<w.index&&C.target[w.index].setAttribute("selected","");w.els.fieldTextEl.text(y.target.options[w.index].text);w.select();w.els.fieldEl.target[0].dataset.ariaLabel&&w.els.fieldEl.target[0].setAttribute("aria-label",y.target.options[w.index].text+": "+w.els.fieldEl.target[0].dataset.ariaLabel);w.els.selectEl.target[0].dataset.selectAriaLabel&&w.els.selectEl.target[0].setAttribute("aria-label",y.target.options[w.index].text+" "+w.els.selectEl.target[0].dataset.selectAriaLabel);w.handleMobileOptionTagging(y); 684if(y.target.dataset.useLink){y=C.target[w.index];var z=y.dataset.openAction,V=y.value;requestAnimationFrame(function(){"current-window"===z?window.location.href=V:"new-window"===z&&window.open(V,"_blank")})}w.setState("normal")},click:function(){"mobile"===w.getCurrentDevice()&&(w.isOpen?w.close():w.open())},keyup:function(y){w.isDisabled||"mobile"===w.getCurrentDevice()&&w.isOpen&&y.keyCode===n.ESC&&w.close()}},itemWrapEls:{click:function(y){y.preventDefault();var C=a(y.target),E=w.els.selectEl.target[0]; 685C.hasClass("disabled")||(C=C.closest("li").index(),"click"===y.type&&E.dataset.useLink&&E.selectedIndex===C&&(E.selectedIndex=-1),w.change(C),w.close())}},winEl:{resize:this.resize.bind(this)}};this.init();this.selectItem(t)};g.prototype.init=function(){g.instances.has(this.els.el.target[0])||(g.instances.set(this.els.el.target[0],this),this.initValues(),this.setElements(),this.bindEvents(),this.update())};g.prototype.reInit=function(r){r=void 0===r?-1:r;this.els.listWrapEl.remove();this.initValues(); 686this.setElements();this.bindEvents();this.update();this.selectItem(r)};g.prototype.initValues=function(){this.options={};this.index=-1;this.isDisabled=this.isOpen=!1;this.itemMappedIndices=[];this.itemMappedIndicesExclDisabled=[];this.maxHeight=0;this.maxItemNum=11;this.isAnim=!0;this.device=this.getCurrentDevice();this.openDir=this.defaultOpenDir="";this.focusedIndex=-1;this.isMobileCustomSelect=this.els.el.attr("data-use-customselect-mo")?"TRUE"===this.els.el.attr("data-use-customselect-mo").toUpperCase(): 687!1};g.prototype.setElements=function(){var r=this;this.els.selectEl=this.els.el.find(".menu__select");var t=this.els.selectEl.target[0],w=this.els.selectEl.find("option[selected]");"ios"!==c()||this.isMobileCustomSelect||t.setAttribute("style","z-index: 1; visibility: visible;");w.target[0]&&(t.selectedIndex=w.index(),this.els.selectEl.target[0].dataset.selectAriaLabel&&this.els.selectEl.target[0].setAttribute("aria-label",w.target[0].text+" "+this.els.selectEl.target[0].dataset.selectAriaLabel)); 688var y=t.dataset.defaultMessage;!y&&t.options[t.selectedIndex]?y=t.options[t.selectedIndex].text:t.selectedIndex=-1;this.els.el.hasClass("menu--text-field")&&!w.target[0]&&(y="",t.selectedIndex=-1);this.index=t.selectedIndex;this.options=[].concat($jscomp.arrayFromIterable(t.options));-1===this.index&&this.options.forEach(function(E){E.removeAttribute("selected")});var C=this.els.el.target[0].hasAttribute("data-tagging-button");this.els.fieldEl=this.els.el.find(".menu__select-field");this.els.fieldTextEl= 689this.els.fieldEl.find(".menu__select-field-text");this.els.fieldTextEl.text(y);this.els.fieldEl.target[0].dataset.ariaLabel&&""!==y&&this.els.fieldEl.target[0].setAttribute("aria-label",y+": "+this.els.fieldEl.target[0].dataset.ariaLabel);this.els.el.append('\x3cdiv class\x3d"menu__list-wrap scrollbar"\x3e\x3c/div\x3e');this.els.listWrapEl=this.els.el.find(".menu__list-wrap");this.els.listWrapEl.append('\x3cul class\x3d"menu__list scrollbar__contents" role\x3d"listbox"\x3e');this.els.listEl=this.els.listWrapEl.find(".menu__list"); 690this.options.forEach(function(E){var z="",V="";["an-tr","an-ca","an-ac","an-la"].forEach(function(ca){E.hasAttribute(ca)&&(z+=" "+ca+'\x3d"'+E.getAttribute(ca).replace('"',"")+'" ')});t.dataset.useLink&&E.title&&""!==E.title&&(V=' title\x3d"'+E.title+'"');r.els.listEl.append('\x3cli class\x3d"menu__list-option-wrap" role\x3d"presentation"'+(C?"":z)+'\x3e\x3cbutton class\x3d"menu__list-option" aria-selected\x3d"false" role\x3d"option"'+V+(C?z:"")+'\x3e\x3cspan class\x3d"menu__list-option-text"\x3e'+ 691E.text+'\x3c/span\x3e\x3csvg class\x3d"menu__list-option-icon" focusable\x3d"false"\x3e\x3cuse xlink:href\x3d"#done-bold" href\x3d"#done-bold"\x3e\x3c/use\x3e\x3c/svg\x3e\x3c/button\x3e\x3c/li\x3e')});this.els.itemWrapEls=this.els.listEl.find(".menu__list-option-wrap");this.els.itemEls=this.els.listEl.find(".menu__list-option");h.init(this.els.listWrapEl.target[0]);this.els.scrollWrapEl=this.els.listWrapEl.find(".scrollbar__wrap");this.els.scrollWrapEl.css({"max-height":0});this.els.listWrapEl.css({visibility:"hidden"}); 692this.els.listWrapEl.attr("aria-hidden",!0);this.els.textFiledErrorTextEl=this.els.el.find(".menu--text-field__error");this.els.el.attr("data-max-item-number")&&(w=parseInt(this.els.el.attr("data-max-item-number")))&&(this.maxItemNum=w);this.els.el.attr("data-open-direction")&&(w=this.els.el.attr("data-open-direction"))&&(this.defaultOpenDir=w);this.els.el.attr("data-animation")&&(w=this.els.el.attr("data-animation"))&&"false"===w.toLowerCase()&&(this.isAnim=!1);b.update(this.els.el.target[0]);this.select(!0)}; 693g.prototype.select=function(r){if("desktop"===this.getCurrentDevice()
693){if(this.isOpen){var t=this.els.el.hasClass("filled"),w=this.els.el.offset();t=t?0:w.height;"up"===this.openDir?(this.els.el.hasClass("menu--text-field")&&(t-=parseInt(this.els.el.css("padding-top"),10)),this.els.listWrapEl.css({bottom:0===t?"0":t+"px",top:"auto"})):"down"===this.openDir&&(this.els.el.hasClass("menu--text-field")&&this.els.textFiledErrorTextEl.target.length&&(t-=this.els.textFiledErrorTextEl.offset().height.toFixed(2)), 694this.els.listWrapEl.css({bottom:"auto",top:0===t?"0":t+"px"}))}this.els.el.removeClass("selected");this.els.itemEls.attr("aria-selected","false");this.els.itemWrapEls.removeClass("active");-1<this.index&&(this.els.el.hasClass("menu--text-field")&&(r?this.els.el.addClass("init"):this.els.el.removeClass("init")),this.els.el.addClass("selected"),this.els.itemWrapEls.eq(this.index).addClass("active"),this.els.itemEls.eq(this.index).attr("aria-selected",!0))}else-1<this.index&&(r=this.els.el.target[0].dataset.type, 695(this.els.el.hasClass("menu--text-field")||"textField"===r||"filled"===r)&&this.els.el.addClass("selected"))};g.prototype.bindEvents=function(){var r=this;this.els.fieldEl.off("click").on("click",this.handler.fieldEl.click);this.els.itemWrapEls.off("click").on("click",this.handler.itemWrapEls.click);this.els.selectEl.off("change").on("change",this.handler.selectEl.change);this.els.selectEl.off("click").on("click",this.handler.selectEl.click);this.els.selectEl.off("keyup").on("keyup",this.handler.selectEl.keyup); 696this.els.itemEls.off("focus").on("focus",function(t){a(t.target).closest(".menu__list-option-wrap").addClass("focus")});this.els.itemEls.off("blur").on("blur",function(t){a(t.target).closest(".menu__list-option-wrap").removeClass("focus")});this.els.selectEl.off("focus").on("focus",function(){r.els.el.addClass("focus")});this.els.selectEl.off("blur").on("blur",function(){r.els.el.removeClass("focus")});this.els.el.off("keydown").on("keydown",this.handler.el.keydown);this.els.winEl.off("resize",this.handler.winEl.resize).on("resize", 697this.handler.winEl.resize);this.els.el.hasClass("menu--text-field")&&(this.els.fieldEl.off("focus").on("focus",function(){r.els.el.addClass("focus")}),this.els.fieldEl.off("blur").on("blur",function(){r.els.el.removeClass("focus")}))};g.prototype.update=function(){var r=this;this.isOpen&&this.close(!1);(this.isDisabled=this.els.el.hasClass("disabled"))?(this.els.selectEl.attr("disabled",!0),this.els.fieldEl.attr("disabled",!0)):(this.els.selectEl.removeAttr("disabled"),this.els.fieldEl.removeAttr("disabled")); 698this.els.itemWrapEls.removeClass("disabled");"desktop"===this.device?(this.els.selectEl.attr("tabindex","-1"),this.els.selectEl.attr("aria-hidden",!0),this.els.fieldEl.removeAttr("tabindex"),this.els.fieldEl.removeAttr("aria-hidden")):(this.els.selectEl.removeAttr("tabindex"),this.els.selectEl.removeAttr("aria-hidden"),this.els.fieldEl.attr("tabindex","-1"),this.els.fieldEl.attr("aria-hidden",!0),this.els.fieldEl.removeAttr("aria-expanded"));this.itemMappedIndices=[];this.itemMappedIndicesExclDisabled= 699[];var t=0;this.options.forEach(function(w,y){var C=r.els.itemWrapEls.eq(y);w.disabled?("desktop"===r.getCurrentDevice()&&C.addClass("disabled"),r.itemMappedIndices[y]=-1):(r.itemMappedIndices[y]=t++,r.itemMappedIndicesExclDisabled.push(y))})};g.prototype.open=function(r){var t=this;r=void 0===r?!0:r;this.isAnim||(r=!1);var w=function(){t.els.docEl.on("click",t.handler.docEl.click);"desktop"===t.getCurrentDevice()&&(t.focusedIndex=-1===t.els.selectEl.target[0].selectedIndex?t.itemMappedIndicesExclDisabled[0]: 700t.els.selectEl.target[0].selectedIndex,requestAnimationFrame(function(){t.els.itemEls.eq(t.focusedIndex).focus();h.resize(t.els.listWrapEl.target[0])}))};requestAnimationFrame(function(){t.els.el.addClass("open");t.isOpen=!0;if("desktop"===t.getCurrentDevice()){t.els.scrollWrapEl.css({"max-height":""});var y=t.els.itemWrapEls.target.length;t.maxHeight=0;if(y>t.maxItemNum){for(var C=0;C<t.maxItemNum;C++){var E=t.els.itemWrapEls.eq(C);t.maxHeight+=E.offset().height}t.maxHeight+=parseFloat(getComputedStyle(t.els.itemWrapEls.target[0]).marginTop)+ 701parseFloat(getComputedStyle(t.els.itemWrapEls.target[y-1]).marginBottom)}else t.maxHeight=t.els.scrollWrapEl.offset().height;t.els.scrollWrapEl.css({"max-height":"0"});var z=t.els.el.hasClass("filled"),V=t.els.el.offset();y=window.innerHeight-V.bottom;C=V.top;E=z?t.maxHeight-V.height:t.maxHeight;var ca=z?0:V.height;z=function(){t.els.el.hasClass("menu--text-field")&&(ca-=parseInt(t.els.el.css("padding-top"),10));ca=0===ca?"0":ca+"px";t.openDir="up";t.els.listWrapEl.css({bottom:ca,top:"auto"})};V= 702function(){t.els.el.hasClass("menu--text-field")&&t.els.textFiledErrorTextEl.target.length&&(ca-=t.els.textFiledErrorTextEl.offset().height.toFixed(2));ca=0===ca?"0":ca+"px";t.openDir="down";t.els.listWrapEl.css({bottom:"auto",top:ca})};t.defaultOpenDir?"up"===t.defaultOpenDir?z():V():E>y&&E<C?z():V();if(r){t.els.scrollWrapEl.css({transition:"max-height .2s cubic-bezier(.4,0,.2,1)"});var xa=k(t.els.scrollWrapEl.target[0]);if(xa){var ea=function(){w();t.els.scrollWrapEl.off(xa,ea)};t.els.scrollWrapEl.on(xa, 703ea)}else setTimeout(w,200)}else t.els.scrollWrapEl.css({transition:""}),requestAnimationFrame(w);requestAnimationFrame(function(){t.els.fieldEl.attr("aria-expanded",!0);t.els.listWrapEl.css({visibility:"visible"});t.els.listWrapEl.attr("aria-hidden",!1);t.els.scrollWrapEl.css({"max-height":t.maxHeight+"px"})})}else w()})};g.prototype.close=function(r){var t=this;r=void 0===r?!0:r;this.isAnim&&f(this.els.el.target[0])||(r=!1);var w=function(){t.els.listWrapEl.css({visibility:"hidden"});t.els.listWrapEl.attr("aria-hidden", 704!0)};requestAnimationFrame(function(){t.els.docEl.off("click",t.handler.docEl.click);t.els.el.removeClass("open");t.isOpen=!1;
704if("desktop"===t.getCurrentDevice()){if(r){t.els.scrollWrapEl.css({transition:"max-height .2s cubic-bezier(.4,0,.2,1)"});var y=k(t.els.scrollWrapEl.target[0]);if(y){var C=function(){w();t.els.scrollWrapEl.off(y,C)};t.els.scrollWrapEl.on(y,C)}else setTimeout(w,200)}else t.els.scrollWrapEl.css({transition:""}),w();t.els.fieldEl.attr("aria-expanded",!1);t.els.scrollWrapEl.css({"max-height":"0"}); 705t.els.fieldEl.focus()}else w()})};g.prototype.resize=function(){var r=this.getCurrentDevice();this.device!==r&&(this.device=r,this.update(),"desktop"===this.device&&(this.els.el.target[0].dataset.type&&(this.els.selectEl.target[0].selectedIndex=-1),this.selectItem(this.index)));"desktop"===this.device&&this.isOpen&&this.close(!1)};g.prototype.change=function(r){var t=this.els.selectEl.target[0];t.selectedIndex!==r&&(this.index=t.selectedIndex=r,this.els.selectEl.trigger("change"))};g.prototype.keydown= 706function(r){this.els.fieldEl.trigger("click");r.preventDefault()};g.prototype.selectNext=function(r,t){this.focusedIndex=0>this.focusedIndex?-1!==this.index?this.itemMappedIndicesExclDisabled[0]:0:this.focusedIndex;var w=this.itemMappedIndices[this.focusedIndex];w+=r;r=0>w?this.itemMappedIndicesExclDisabled[0]:w>this.itemMappedIndicesExclDisabled.length-1?this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-1]:this.itemMappedIndicesExclDisabled[w];-1!==r&&("desktop"===this.getCurrentDevice()&& 707this.els.itemEls.target[r].focus(),this.focusedIndex=r);t&&t.preventDefault()};g.prototype.selectItem=function(r,t){if(!(0>r)){var w=-1;0===r?w=this.itemMappedIndicesExclDisabled[0]:r===this.itemMappedIndices.length-1?w=this.itemMappedIndicesExclDisabled[this.itemMappedIndicesExclDisabled.length-1]:-1!==this.itemMappedIndices[r]&&(w=r);-1!==w&&("desktop"===this.getCurrentDevice()&&this.els.itemEls.target[w].focus(),this.change(w));t&&t.preventDefault()}};g.prototype.getSelectedItemIndex=function(r){var t= 708this,w=/[A-Z]/,y=r-48*Math.floor(r/48),C=String.fromCharCode(96<=r?y:r),E=!0,z=-1;r=this.index;this.els.itemEls.target.forEach(function(V,ca){var xa=V.textContent.substring(0,1).toUpperCase();V=a(V).closest(".menu__list-option-wrap").hasClass("disabled");w.test(xa)&&xa===C&&!V&&-1===z&&(z=ca);w.test(xa)&&xa===C&&t.index<ca&&E&&!V&&(t.index=ca,E=!1)});r===this.index&&-1!==z&&(this.index=z);return this.index};g.prototype.setState=function(r){if(this.els.el.hasClass("menu--text-field")){var t=this.els.el.find(".required"), 709w=this.els.textFiledErrorTextEl.target.length?this.els.textFiledErrorTextEl.attr("id"):"";switch(r){case "error":this.els.el.addClass("error");w&&(this.els.fieldEl.attr("aria-describedby",w),this.els.selectEl.attr("aria-labelledby",this.els.selectEl.attr("aria-labelledby")+" "+w),t&&t.attr("aria-hidden",!0));break;default:this.els.el.removeClass("error"),this.els.fieldEl.removeAttr("aria-describedby"),w&&this.els.selectEl.attr("aria-labelledby",this.els.selectEl.attr("aria-labelledby").replace(w, 710"").trim()),t&&t.removeAttr("aria-hidden")}}};g.prototype.getCurrentDevice=function(){return"ios"!==c()||this.isMobileCustomSelect?this.isMobileCustomSelect?"desktop":e():"mobile"};g.prototype.handleMobileOptionTagging=function(r){var t=this;if("mobile"===e()&&"visible"===this.els.selectEl.css("visibility")){var w=r.target.selectedIndex,y=(0===w||!!w)&&r.target.options[w],C=function(){t.els.selectOptionTaggingEl=t.els.el.find(".menu__select-option-tagging");return t.els.selectOptionTaggingEl&&t.els.selectOptionTaggingEl.target&& 7110<t.els.selectOptionTaggingEl.target.length};C()||this.els.selectEl.after('\x3cbutton class\x3d"menu__select-option-tagging hidden" tabindex\x3d"-1" aria-hidden\x3d"true"\x3e\x3c/button\x3e');requestAnimationFrame(function(){y&&C()&&(Array.from(y.attributes).forEach(function(E){t.els.selectOptionTaggingEl.attr(E.name,E.value)}),t.els.selectOptionTaggingEl.trigger("click"))})}};g.instances=new WeakMap;window.sg.components.registerClass("menu",g);var p={initAll:function(){a('.menu:not([data-auto-init\x3d"false"])').target.forEach(function(r){g.instances.has(r)|| 712new g(r)})},init:function(r){g.instances.has(r)||new g(r)},reInit:function(r,t){t=void 0===t?-1:t;g.instances.has(r)?g.instances.get(r).reInit(t):new g(r,t)},setState:function(r,t){g.instances.has(r)&&g.instances.get(r).setState(t)},selectItem:function(r,t){t=void 0===t?-1:t;g.instances.has(r)&&g.instances.get(r).selectItem(t)}};window.sg.common.menu=p;a.ready(p.initAll)})();
713(function(){var a=window.sg.common.$q,n=window.sg.common.constants.BREAKPOINTS,h=window.sg.common.utils,e=window.sg.common.icon,c=function(l,f){var b=this;f=void 0===f?null:f;this.selector={swiperSlide:".option-selector__swiper-slide",swiperWrap:".option-selector__swiper",swiperPrev:".option-selector__button-prev",swiperNext:".option-selector__button-next",btnDisabledCls:"option-selector__button--disabled",capaContainer:".option-selector__swiper-container",capaItemInner:".option-selector__size",capaItemRadio:".option-selector__size input", 714flotingBox:".option-selector__floating-bar",moveWapper:".option-selector__swiper-wrapper",optionRadio:'input[type\x3d"radio"]',colorRadio:".option-selector__color input",colorName:".option-selector__color-name",tooltipCta:".option-selector__color-name-text",tooltipWrap:".option-selector__color-tooltip",closeCta:".option-selector__color-tooltip-close",slideButtonList:".option-selector__swiper-slide input",activeClass:"is-show"};this.el={window:a(window),component:a(l)};this.handler={timeHandler:function(){b.el.moveWapper.css({transition:"none"}); 715b.resize();b.resizeTimer&&clearTimeout(b.resizeTimer);b.resizeTimer=setTimeout(function(){b.el.moveWapper.css({transition:""})},400)},changeCapacity:this.changeCapacity.bind(this),setHalfSlide:this.setHalfSlide.bind(this),changeColor:function(g){var p=a(g.target).closest(".option-selector__color");p=p.find(".hidden").target[0]||p.find(".option-selector__color-code").target[0];var r=a(g.target).closest(".option-selector").find(".option-selector__color-name .color-name-text");g=a(g.target).closest(".option-selector").find(".option-selector__color-name-text-in"); 716null!==p&&0<r.target.length&&r.innerHTML(p.innerText);null!==p&&0<g.target.length&&g.innerHTML(p.innerText)},tooltipShow:this.tooltipShow.bind(this),tooltipKeyEvent:function(g){g.keyCode===window.sg.common.constants.KEY_CODE.ENTER?b.showBoxEvent():g.keyCode===window.sg.common.constants.KEY_CODE.ESC&&b.hideBoxEvent()},changeColorName:function(g){g=g.target.parentNode.querySelector(".hidden")||null;0<b.el.component.parent().find(".option-selector__color-name button, span.option-selector__color-name-text").target.length&& 717(b.el.component.parent().find(".option-selector__color-name .option-selector__color-name-text-in").innerHTML(g.innerText),b.el.component.parent().find(".option-selector__color-name .option-selector__color-tooltip-text").innerHTML(g.innerText),b.tooltipShow())},showBoxEvent:function(){b.showBoxEvent()},hideBoxEvent:function(g){"focusout"===g.type?requestAnimationFrame(function(){0===a(document.activeElement).closest(b.el.colorName.target[0]).target.length&&b.hideBoxEvent()}):b.hideBoxEvent()}};this.moveLength= 718null;c.instances.set(l,this);this.setElements();this.checkedActive=f;this.init()};c.prototype.setElements=function(){var l=this;this.el.swiperPrev=this.el.component.find(this.selector.swiperPrev);this.el.swiperNext=this.el.component.find(this.selector.swiperNext);this.el.swiperSlide=this.el.component.find(this.selector.swiperSlide);this.el.moveWapper=this.el.component.find(this.selector.moveWapper);this.el.capaContainer=this.el.component.find(this.selector.capaContainer);this.el.capaItemInner=this.el.component.find(this.selector.capaItemInner); 719this.el.capaItemRadio=this.el.component.find(this.selector.capaItemRadio);this.el.capaItemRadioActive=this.el.component.find(this.selector.capaItemRadio+":checked").closest(this.selector.swiperSlide);this.el.flotingBox=this.el.component.find(this.selector.flotingBox);this.el.optionRadio=this.el.component.find(this.selector.optionRadio);this.el.colorRadio=this.el.component.find(this.selector.colorRadio);this.desktopPerView=this.el.component.attr("data-desktop-view");this.mobilePerView=this.el.component.attr("data-mobile-view"); 720this.maxCnt=Number(n.MOBILE<h.getViewPort().width?this.desktopPerView:this.mobilePerView);this.mobileFlg=this.desktopFlg=!1;this.slideCnt=this.el.swiperSlide.target.length;this.lastCnt=this.slideCnt<=this.maxCnt?1:this.slideCnt-this.maxCnt;this.activeCnt=this.slideCnt<=this.maxCnt&&this.el.moveWapper.target[0].scrollWidth-8>this.el.capaContainer.outerWidth()&&this.el.capaItemRadioActive.index()===this.slideCnt-1?this.lastCnt:0;this.maxPos=this.el.moveWapper.target[0].scrollWidth-8<=this.el.capaContainer.outerWidth()? 7210:this.el.moveWapper.target[0].scrollWidth-this.el.capaContainer.outerWidth();this.slideGradientWidth=0===this.el.component.find(".option-selector__button-prev").target.length?0:parseInt(window.getComputedStyle(this.el.component.find(".option-selector__button-prev").target[0],":after").getPropertyValue("width"));this.slideLength=0===this.el.component.find(this.selector.swiperSlide).target.length?0:this.el.component.find(this.selector.swiperSlide).target.length-1;this.slidePadding=0;this.el.colorName= 722this.el.component.parent(".option-selector").find(this.selector.colorName);this.el.tooltipCta=this.el.colorName.find(this.selector.tooltipCta);this.el.closeCta=this.el.colorName.find(this.selector.closeCta);
722this.el.tooltipWrap=this.el.colorName.find(this.selector.tooltipWrap);this.el.slideButtonList=this.el.component.find(this.selector.slideButtonList);this.resizeTimer=this.timer=null;this.reInitFlag=this.initFlag=this.activeCheck=!1;this.direction=(this.rtlFlag="rtl"===a("body").css("direction")? 723!0:!1)?1:-1;this.startActiveIdx=null;this.isCapacity=this.el.component.target[0].classList.contains("option-selector__wrap--capacity");this.checkedActive=null;this.tooltipFlag=!1;"none"!==this.el.moveWapper.css("transform")?this.moveLength=Math.abs(Number(this.el.moveWapper.css("transform").match(/-?[\d\\.]+/g)[4])):this.moveLength=0;this.el.swiperSlide.target.forEach(function(f,b){a(f).hasClass("active-slide")&&(l.startActiveIdx=b)});this.calcPos=this.rtlFlag?-1*parseInt(this.el.moveWapper.css("margin-right"), 72410):-1*parseInt(this.el.moveWapper.css("margin-left"),10);this.hiddenText=this.el.tooltipCta.find(".hidden");this.globalText=0<this.hiddenText.target.length?JSON.parse(this.hiddenText.target[0].dataset.globalText):null};c.prototype.init=function(){this.initFlag=!0;this.bindEvents();this.optionSlide();this.resize(!0);this.setHalfSlide()};c.prototype.reInit=function(l){this.setElements();this.reInitFlag=!0;this.checkedActive=l;this.init()};c.prototype.calcPadding=function(){0<this.el.component.find(".option-selector__color").target.length&& 725(this.slidePadding=parseInt(window.getComputedStyle(this.el.component.find(".option-selector__color").target[0]).getPropertyValue("padding-left")));0<this.el.component.find(".option-selector__size").target.length&&(this.slidePadding=parseInt(window.getComputedStyle(this.el.component.find(".option-selector__size-label").target[0]).getPropertyValue("padding-left"))/2)};c.prototype.setBtnDisable=function(){this.el.capaItemRadioActive=this.el.component.find(this.selector.capaItemRadio+":checked").closest(this.selector.swiperSlide); 726var l=this.el.swiperSlide.outerWidth();(this.el.component.hasClass("option-selector__wrap--wide")?0<this.el.component.find(".option-selector__color").target.length?l*this.slideCnt-2*this.slidePadding:l*this.slideCnt:l*this.slideCnt)>this.el.capaContainer.outerWidth()&&0!==this.maxPos?(this.el.swiperNext.show(),this.el.swiperPrev.show(),this.el.component.hasClass("option-selector__wrap--wide")&&this.el.component.removeClass("no-swiper-mode"),this.el.component.addClass("swiper-mode"),0<this.moveLength? 727(this.el.swiperPrev.removeClass(this.selector.btnDisabledCls),this.el.swiperPrev.attr("aria-disabled","false"),this.el.swiperPrev.attr("tabindex","0"),this.moveLength>=this.maxPos?(this.el.swiperNext.addClass(this.selector.btnDisabledCls),this.el.swiperNext.attr("aria-disabled","true"),this.el.swiperNext.attr("tabindex","-1"),document.activeElement===this.el.swiperNext.target[0]&&this.el.swiperNext.hasClass("option-selector__button--disabled")&&this.el.swiperPrev.focus()):(this.el.swiperNext.removeClass(this.selector.btnDisabledCls), 728this.el.swiperNext.attr("aria-disabled","false"),this.el.swiperNext.attr("tabindex","0"))):(this.el.swiperNext.removeClass(this.selector.btnDisabledCls),this.el.swiperNext.attr("aria-disabled","false"),this.el.swiperNext.attr("tabindex","0"),this.el.swiperPrev.addClass(this.selector.btnDisabledCls),this.el.swiperPrev.attr("aria-disabled","true"),this.el.swiperPrev.attr("tabindex","-1"),document.activeElement===this.el.swiperPrev.target[0]&&this.el.swiperPrev.hasClass("option-selector__button--disabled")&& 729this.el.swiperNext.focus())):(this.el.component.removeClass("swiper-mode"),this.el.component.hasClass("option-selector__wrap--wide")&&this.el.component.addClass("no-swiper-mode"),this.el.swiperNext.hide(),this.el.swiperNext.attr("aria-disabled","true"),this.el.swiperNext.attr("tabindex","-1"),this.el.swiperPrev.hide(),this.el.swiperPrev.attr("aria-disabled","true"),this.el.swiperPrev.attr("tabindex","-1"))};c.prototype.setActiveCnt=function(){!0===this.initFlag&&("none"===this.el.moveWapper.css("transform")? 730this.activeCnt=this.el.component.find("input:checked").closest(this.selector.swiperSlide).index():this.activeCnt=null);this.initFlag=!1};c.prototype.setSlidePos=function(l){l=void 0===l?null:l;this.desktopPerView||this.mobilePerView?(this.calcPadding(),this.maxPos=this.el.moveWapper.target[0].scrollWidth-8<=this.el.capaContainer.outerWidth()?0:this.el.moveWapper.target[0].scrollWidth-this.el.capaContainer.outerWidth()-Math.floor(this.slidePadding/2)):(this.el.component.addClass("option-selector__wrap--wide"), 731this.calcPos=this.rtlFlag?-1*parseInt(this.el.moveWapper.css("margin-right"),10):-1*parseInt(this.el.moveWapper.css("margin-left"),10),this.maxPos=this.el.moveWapper.target[0].scrollWidth-8<=this.el.capaContainer.outerWidth()?0:this.el.moveWapper.target[0].scrollWidth-this.el.capaContainer.outerWidth()-2*this.calcPos,0>=this.maxPos&&(this.maxPos=0,this.el.component.removeClass("swiper-mode"),this.el.component.addClass("no-swiper-mode")));this.el.component.hasClass("swiper-mode")?this.setSlideMove(l): 732this.el.moveWapper.css({transform:""})};c.prototype.setSlideMove=function(l){var f=this;l=void 0===l?null:l;var b=this.el.component.find("input:checked").closest(this.selector.swiperSlide).index(),g=this.el.component.find(this.selector.swiperSlide).outerWidth();this.slideGradientWidth=0===this.el.component.find(".option-selector__button-prev").target.length?0:parseInt(window.getComputedStyle(this.el.component.find(".option-selector__button-prev").target[0],":after").getPropertyValue("width"));this.calcPadding(); 733this.reInitFlag||(null!==l?null!==this.activeCnt?0!==b&&(this.el.component.hasClass("option-selector__wrap--wide")?this.moveLength=g*this.activeCnt>this.maxPos+this.slideGradientWidth?this.maxPos:g*this.activeCnt-this.slideGradientWidth:n.MOBILE<h.getViewPort().width?this.moveLength=g*this.activeCnt>this.maxPos?this.maxPos:g*this.activeCnt-this.slidePadding:this.el.component.hasClass("option-selector__wrap--color-chip")&&(this.moveLength=g*this.activeCnt>this.maxPos+this.slideGradientWidth?this.maxPos: 734g*this.activeCnt)):this.activeCnt=Math.ceil(this.moveLength/g):(this.checkedActive||"none"===this.el.moveWapper.css("transform")&&0===this.moveLength&&0<b)&&0!==b&&(this.el.component.hasClass("option-selector__wrap--wide")?this.moveLength=g*b>this.maxPos+this.slideGradientWidth?this.maxPos:g*b-this.slideGradientWidth:n.MOBILE<h.getViewPort().width?this.moveLength=g*b>this.maxPos?this.maxPos:g*b-this.slidePadding:this.el.component.hasClass("option-selector__wrap--color-chip")&&(this.moveLength=g*b> 735this.maxPos+this.slideGradientWidth?this.maxPos:g*b-this.slideGradientWidth+this.slidePadding)));0<=this.moveLength&&this.el.moveWapper.css({transform:"translateX("+this.direction*this.moveLength+"px)"});this.checkedActive=null;this.reInitFlag&&(this.reInitFlag=!1);setTimeout(function(){f.setBtnDisable()},300)};c.prototype.setSwiperWidth=function(){var l=this;this.el.component.target.forEach(function(f){f=a(f);var b=[],g=f.find(l.selector.swiperSlide);g.css({width:""});g.target.forEach(function(C){b.push(a(C).width())}); 736var p=Math.max.apply(null,b),r=n.MOBILE<h.getViewPort().width?l.desktopPerView:l.mobilePerView,t=["pf-product-compare","hubble-item-card__option-memory"],w=16,y=f.closest("."+t.join(",.")).target[0];void 0!==y&&(y.classList.contains(t[0])?w=n.MOBILE<h.getViewPort().width?4:8:y.classList.contains(t[1])&&(w=0));g.css({width:p+"px"});null!==r?(f.find(l.selector.swiperWrap).css({width:p*r+2+"px"}),l.calcPadding()):(p*l.slideCnt>l.el.capaContainer.outerWidth()&&l.el.component.addClass("swiper-mode"),l.el.component.addClass("option-selector__wrap--wide"), 737f.find(l.selector.swiperWrap).css({width:"auto"}));0!==f.find(l.selector.flotingBox).target.length&&f.find(l.selector.flotingBox).css({transition:"none",width:p-w+"px"})})};c.prototype.setHalfSlide=function(l){l=l?a(l.target):a(this.el.slideButtonList.target.filter(function(g){return g.checked}));if(l.target.length){var f=l.closest(this.selector.swiperSlide).index(),b=this.el.swiperSlide.outerWidth()*f;this.el.component.hasClass("swiper-mode")?(this.activeCnt=f,this.el.component.hasClass("option-selector__wrap--wide")? 738this.moveLength=b>=this.maxPos+this.slideGradientWidth?this.maxPos:b-this.slideGradientWidth:n.MOBILE<h.getViewPort().width?this.moveLength=b>=this.maxPos+this.slideGradientWidth?this.maxPos:b-this.slidePadding:this.el.component.hasClass("option-selector__wrap--color-chip")?this.moveLength=b>=this.maxPos+this.slideGradientWidth?this.maxPos:b-this.slideGradientWidth+this.slidePadding:this.moveLength=b>=this.maxPos+this.slideGradientWidth?this.maxPos:b,0===f&&(this.moveLength=0),this.el.moveWapper.css({transform:"translateX("+ 739this.direction*this.moveLength+"px)"}),this.setBtnDisable(),this.el.moveWapper.find(".option-selector__color-name.active").removeClass("active"),l.closest(this.selector.swiperSlide).find(".option-selector__color-name").addClass("active")):(this.el.swiperNext.hide(),this.el.swiperNext.attr("aria-disabled","true"),this.el.swiperNext.attr("tabindex","-1"),this.el.swiperPrev.hide(),this.el.swiperPrev.attr("aria-disabled","true"),this.el.swiperPrev.attr("tabindex","-1"))}};c.prototype.optionSlide=function(){var l= 740this;
740this.el.swiperNext.target.forEach(function(f){a(f).off("click").on("click",function(){var b=l.el.swiperSlide.outerWidth();l.activeCnt+=1;l.moveLength>=l.el.moveWapper.target[0].scrollWidth-l.el.capaContainer.outerWidth()&&(l.activeCnt=l.lastCnt);l.el.component.hasClass("option-selector__wrap--wide")?l.moveLength=1===l.activeCnt?l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b-l.slideGradientWidth:l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b:n.MOBILE<h.getViewPort().width?l.moveLength=1===l.activeCnt? 741l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b-l.slidePadding:l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b:l.el.component.hasClass("option-selector__wrap--color-chip")?l.moveLength=l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b:l.moveLength=1===l.activeCnt?l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b+l.slidePadding:l.moveLength+b>l.maxPos?l.maxPos:l.moveLength+b;l.el.moveWapper.css({transform:"translateX("+l.direction*l.moveLength+"px)"});l.setBtnDisable()})});this.el.swiperPrev.target.forEach(function(f){a(f).off("click").on("click", 742function(){var b=l.el.swiperSlide.outerWidth();--l.activeCnt;0>l.activeCnt&&(l.activeCnt=0);b=0<l.moveLength%b?l.moveLength-Math.floor(l.moveLength/b)*b:b;l.el.component.hasClass("option-selector__wrap--wide")?l.moveLength=0>=l.moveLength-b?0:l.moveLength-b-l.slideGradientWidth:n.MOBILE<h.getViewPort().width?l.moveLength=0>=l.moveLength-b?0:l.moveLength-b-l.slidePadding:l.el.component.hasClass("option-selector__wrap--color-chip")?l.moveLength=0>=l.moveLength-b?0:l.moveLength-b-l.slideGradientWidth+ 743l.slidePadding:l.moveLength=0>=l.moveLength-b?0:l.moveLength-b;l.el.moveWapper.css({transform:"translateX("+l.direction*l.moveLength+"px)"});l.setBtnDisable()})})};c.prototype.moveFloting=function(l){if(!(0>=l.target.length)){var f=0;0<this.el.flotingBox.closest(".pf-product-compare").target.length?f=n.MOBILE<h.getViewPort().width?2:4:1>this.el.flotingBox.closest(".hubble-item-card__option-memory").target.length&&(f=7.5);this.el.flotingBox.css({display:"block",transition:"",left:l.target[0].offsetLeft+ 744f+"px"});this.flotingActive=l.closest(this.selector.swiperSlide)}};c.prototype.resize=function(l){l=void 0===l?null:l;this.setSwiperWidth();this.moveFloting(this.el.component.find(this.selector.capaItemRadio+":checked").closest(this.selector.swiperSlide));n.MOBILE<h.getViewPort().width?!1===this.desktopFlg&&(this.desktopFlg=!0,this.mobileFlg=!1,this.el.component.removeClass("no-swiper-mode"),!0===l?(this.setActiveCnt(),this.reInitFlag?(this.setBtnDisable(),this.setSlidePos()):(this.setSlidePos(), 745this.setBtnDisable())):this.desktopPerView!==this.mobilePerView&&(this.setActiveCnt(),this.setBtnDisable())):!1===this.mobileFlg&&(this.mobileFlg=!0,this.desktopFlg=!1,this.el.component.removeClass("no-swiper-mode"),!0===l?(this.setActiveCnt(),this.reInitFlag?(this.setBtnDisable(),this.setSlidePos()):(this.setSlidePos(),this.setBtnDisable())):this.desktopPerView!==this.mobilePerView&&(this.setActiveCnt(),this.setBtnDisable()));this.setSlidePos(!0);this.tooltipShow()};c.prototype.changeCapacity=function(l){l= 746a(l.currentTarget);this.el.component.find(".option-selector__wrap--capacity "+this.selector.swiperSlide+".is-active").removeClass("is-active");l.closest(this.selector.swiperSlide).addClass("is-active");this.moveFloting(l.closest(this.selector.swiperSlide))};c.prototype.tooltipShow=function(){if(0!==this.el.tooltipCta.target.length){var l=this.el.tooltipCta.outerWidth()<this.el.tooltipCta.target[0].scrollWidth,f="button"===this.el.tooltipCta.target[0].tagName.toLowerCase();l?this.tooltipFlag||(this.tooltipFlag= 747!0,f?this.el.tooltipCta.removeAttr("disabled"):this.el.tooltipCta.attr("tabindex","0")):(this.tooltipFlag=!1,f?this.el.tooltipCta.attr("disabled",""):this.el.tooltipCta.removeAttr("tabindex"))}};c.prototype.showBoxEvent=function(){this.tooltipFlag&&!this.el.colorName.hasClass(this.selector.activeClass)&&(this.el.colorName.addClass(this.selector.activeClass),this.globalText&&(this.hiddenText.text(this.globalText.Collapse),this.el.tooltipWrap.attr("aria-hidden",!1)),this.hiddenText.attr("aria-hidden", 748!1))};c.prototype.hideBoxEvent=function(){this.el.colorName.hasClass(this.selector.activeClass)&&(document.activeElement===this.el.closeCta.target[0]&&this.el.tooltipCta.focus(),this.el.colorName.removeClass(this.selector.activeClass),this.globalText&&(this.hiddenText.text(this.globalText.Expand),this.el.tooltipWra
748p.attr("aria-hidden",!0)),this.hiddenText.attr("aria-hidden",!0))};c.prototype.bindEvents=function(){this.el.window.off("resize",this.handler.timeHandler).on("resize",this.handler.timeHandler); 749this.el.optionRadio.off("change",this.handler.setHalfSlide).on("change",this.handler.setHalfSlide);this.el.optionRadio.off("focus",this.handler.setHalfSlide).on("focus",this.handler.setHalfSlide);this.el.capaItemRadio.off("change",this.handler.changeCapacity).on("change",this.handler.changeCapacity);this.el.colorRadio.off("change",this.handler.changeColor).on("change",this.handler.changeColor);0<this.el.colorName.target.length&&(this.el.slideButtonList.off("click",this.handler.changeColorName).on("click", 750this.handler.changeColorName),this.el.tooltipCta.off("mouseenter",this.handler.showBoxEvent).on("mouseenter",this.handler.showBoxEvent),this.el.colorName.off("mouseleave",this.handler.hideBoxEvent).on("mouseleave",this.handler.hideBoxEvent),this.el.tooltipCta.off("focus",this.handler.showBoxEvent).on("focus",this.handler.showBoxEvent),this.el.colorName.off("focusout",this.handler.hideBoxEvent).on("focusout",this.handler.hideBoxEvent),this.el.tooltipCta.off("click",this.handler.showBoxEvent).on("click", 751this.handler.showBoxEvent),this.el.closeCta.off("click",this.handler.hideBoxEvent).on("click",this.handler.hideBoxEvent),this.el.tooltipCta.off("keydown",this.handler.tooltipKeyEvent).on("keydown",this.handler.tooltipKeyEvent))};var k=function(){a(".option-selector__wrap").target.forEach(function(l){a(l).closest(".unbind-option").target.length||c.instances.has(l)||new c(l)})};c.instances=new WeakMap;a.ready(k);window.sg.common.OptionSelector={init:k,reInit:function(l,f){f=void 0===f?null:f;var b= 752a(".option-selector__wrap");void 0!==l&&(b=l.hasClass("option-selector__wrap")?l:l.find(".option-selector__wrap"));b.target.forEach(function(g){c.instances.has(g)?c.instances.get(g).reInit(f):new c(g,f);e.update(g)})}}})(); 753(function(){var a=window.sg.common.$q,n=window.sg.common.utils,h=window.sg.common.constants.KEY_CODE,e=window.sg.common.swiperManager,c=function(l){var f=this;this.isTouchEvent=this.keypress=this.motioning=this.dragging=!1;this.containerPadding=this.timer=this.percent=0;this.type=this.currentDevice=null;this.isCentered=!1;this.offset={startX:0,wrapperX:0,x_origine:0,y_origine:0,x_new:0,y_new:0};this.touchEvents={};this.el={window:a(window),document:a(document),section:a(l),component:null,slideContainer:null, 754slideWrap:null,slideButtonList:null,slideList:null};this.selector={wrapper:".option-selector-v2",component:".option-selector-v2__swiper",colorNameMaxchar:"data-maxchar",colorNameMaxcharPC:"data-maxchar-pc",colorNameMaxcharMO:"data-maxchar-mo",colorName:".option-selector-v2__color-name",colorNameTooltip:".option-selector-v2__color-tooltip",colorNameTooltipText:".option-selector-v2__color-tooltip-text",colorCode:".option-selector-v2__color-code",sizeText:".option-selector-v2__size-text",slideContainer:".option-selector-v2__swiper-container", 755slideWrap:".option-selector-v2__swiper-wrapper",slideButtonList:".option-selector-v2__swiper-slide button",slideList:".option-selector-v2__swiper-slide",slideSelected:".is-checked"};this.classes={typeColor:"option-selector-v2__wrap--color-chip",typeSize:"option-selector-v2__wrap--capacity"};this.handler={touchsupport:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints},heightLimit:function(){return f.isTouchEvent? 75610:100},clickHandler:function(b){f.dragging||f.handler.slideTo(a(b.target).closest(".option-selector-v2__swiper-slide"));f.dragging=!1},slideTo:function(b){var g=f.el.slideWrap.offset();b=b.offset();var p=g.left-b.left;"ltr"!==c.direction&&(p=g.right-b.right);f.handler.setWrapperPos(p,!0,f.isCentered,b.width)},eventClick:function(b){b.preventDefault();b.preventDefault?b.preventDefault():b.returnValue=!1},touchStart:function(b){b=f.isTouchEvent?b.touches[0]||b.changedTouches[0]:b;f.offset.x_new=0; 757f.offset.y_new=0;f.offset.x_origine=b.pageX;f.offset.y_origine=b.pageY;f.offset.wrapperX=f.offset.startX;f.el.slideWrap.on(f.touchEvents.touchMove,f.handler.touchMove);f.el.document.on(f.touchEvents.touchMove,f.handler.touchMove);f.el.document.on(f.touchEvents.touchEnd,f.handler.touchEnd);f.el.document.on("mouseleave",f.handler.touchEnd);if(b=e.getSwiper(f.el.slideContainer.closest(".swiper-container").target[0]))b.allowTouchMove=!1},touchMove:function(b){var g=f.isTouchEvent?b.touches[0]||b.changedTouches[0]: 758b;f.offset.x_new=f.offset.x_origine-g.pageX;f.offset.y_new=f.offset.y_origine-g.pageY;b.preventDefault();Math.abs(f.offset.y_new)>f.handler.heightLimit()?(f.handler.touchEnd(),f.handler.eventClick(b),f.dragging=!1):0!==f.offset.x_new&&(f.dragging=!0,f.handler.setWrapperPos(f.offset.wrapperX-f.offset.x_new))},touchEnd:function(){f.el.slideWrap.off(f.touchEvents.touchMove,f.handler.touchMove);f.el.document.off(f.touchEvents.touchMove,f.handler.touchMove);f.el.document.off(f.touchEvents.touchEnd,f.handler.touchEnd); 759f.el.document.off("mouseleave",f.handler.touchEnd);setTimeout(function(){f.dragging=!1},1);var b=e.getSwiper(f.el.slideContainer.closest(".swiper-container").target[0]);b&&(b.allowTouchMove=!0)},resetPos:function(){f.el.slideWrap.css({transform:""})},changeHandler:function(b){f.el.slideList.removeClass("is-checked");f.el.slideList.find(".blind").remove();var g=a(b.target).closest(f.selector.slideList),p=g.find(f.selector.colorCode),r=g.find(f.selector.sizeText);b=b.target.querySelector(".hidden")|| 760null;g.addClass("is-checked");p.target.length&&p.after('\x3cspan class\x3d"blind"\x3e'+f.globalText+"\x3c/span\x3e");r.target.length&&r.after('\x3cspan class\x3d"blind"\x3e'+f.globalText+"\x3c/span\x3e");null!==b&&f.setColorName(b.innerText)},keyDownHandler:function(b){b.keyCode===h.TAB&&f.el.component.hasClass("bindC
760heck")&&(f.handler.clickHandler(b),f.el.slideContainer.target[0].scrollLeft=0)},setWrapperPos:function(b,g,p,r){g=void 0===g?!1:g;p=void 0===p?!1:p;r=void 0===r?null:r;if(!isNaN(b)){var t= 761f.el.slideContainer.outerWidth()-f.containerPadding,w=f.el.slideWrap.outerWidth();"ltr"!==c.direction&&(b*=-1);p?b=0<b||Math.abs(b)<t/2?0:Math.max(b+t/2-r/2,-(w-t)):0<b?b=0:w+b<=t&&(b=t-w);"ltr"!==c.direction&&(b*=-1);f.el.slideWrap.css({transform:"translateX("+b+"px)",transition:g?"":"none"});f.offset.startX=b;b=Math.abs(b)/(t-w)*100;b=isNaN(b)?0:b;f.percent=Math.abs(b);f.el.component.removeClass("next");f.el.component.removeClass("prev");2>=f.percent?f.el.component.addClass("next"):98>=f.percent? 762(f.el.component.addClass("prev"),f.el.component.addClass("next")):f.el.component.addClass("prev")}},resize:function(){clearTimeout(f.timer);f.timer=setTimeout(function(){f.handler.timeResize()},10)},timeResize:function(){var b=n.getCurrentDevice();if(f.el.slideContainer.width()<f.el.slideWrap.width()){f.el.component.hasClass("bindCheck")||(f.el.component.addClass("bindCheck"),f.el.slideWrap.on(f.touchEvents.touchStart,f.handler.touchStart),f.el.slideWrap.on(f.touchEvents.touchEnd,f.handler.touchEnd), 763f.el.slideButtonList.on("click",f.handler.clickHandler));f.containerPadding=2*parseInt(f.el.slideContainer.css("padding-right"),10);var g=(f.el.slideContainer.outerWidth()-f.containerPadding-f.el.slideWrap.outerWidth())*(f.percent/100);"ltr"!==c.direction&&(g*=-1);f.handler.setWrapperPos(g)}else f.el.component.removeClass("bindCheck"),f.el.component.removeClass("next"),f.el.component.removeClass("prev"),f.el.component.addClass("option-selector-v2__swiper--min"),f.el.slideWrap.off(f.touchEvents.touchStart, 764f.handler.touchStart),f.el.slideWrap.off(f.touchEvents.touchEnd,f.handler.touchEnd),f.el.slideButtonList.off("click",f.handler.clickHandler),f.handler.resetPos();f.currentDevice!==b&&f.handleColorName();f.currentDevice=b}};this.startX=0;this.globalText=null;c.instances.set(l,this);this.init()};c.prototype.init=function(){this.setProperty();this.bindEvents()};c.prototype.scrollX=function(){var l=window.getComputedStyle(this.el.slideWrap.target[0]).getPropertyValue("transform").match(/(-?[0-9\\.]+)/g), 765f=0;l&&(f=parseInt(l[4],10));return f};c.prototype.reInit=function(){this.isTouchEvent=this.handler.touchsupport();this.unBindEvents();this.setProperty();this.bindEvents()};c.prototype.setProperty=function(){"rtl"===n.getDirection()&&(c.direction="rtl");this.el.section.hasClass(this.classes.typeColor)?this.type="color":this.el.section.hasClass(this.classes.typeSize)&&(this.type="size");this.el.component=this.el.section.find(this.selector.component);this.el.slideWrap=this.el.component.find(this.selector.slideWrap); 766this.el.slideContainer=this.el.component.find(this.selector.slideContainer);this.el.slideButtonList=this.el.component.find(this.selector.slideButtonList);this.el.slideList=this.el.component.find(this.selector.slideList);this.el.component.removeClass("bindCheck");this.isTouchEvent=this.handler.touchsupport();this.touchEvents={touchStart:this.isTouchEvent?"touchstart":"mousedown",touchMove:this.isTouchEvent?"touchmove":"mousemove",touchEnd:this.isTouchEvent?"touchend":"mouseup"};this.globalText=JSON.parse(this.el.section.target[0].dataset.globalText).selected; 767this.isCentered="true"===this.el.section.attr("data-align-center");this.startX=Math.abs(this.scrollX());if(0<this.startX){var l=this.startX/(this.el.slideContainer.outerWidth()-2*parseInt(this.el.slideContainer.css("padding-right"),10)-this.el.slideWrap.outerWidth())*100;this.percent=Math.abs(l)}};c.prototype.bindEvents=function(){this.el.window.on("resize",this.handler.timeResize);this.el.slideButtonList.on("click",this.handler.changeHandler);this.el.slideButtonList.on("keyup",this.handler.keyDownHandler); 768this.handler.timeResize();var l=this.el.slideContainer.find(".is-checked");0===this.startX&&l.target.length&&this.el.component.hasClass("bindCheck")&&this.handler.slideTo(l)};c.prototype.unBindEvents=function(){this.el.window.off("resize",this.handler.timeResize);this.el.slideButtonList.off("click",this.handler.clickHandler);this.el.slideButtonList.off("keyup",this.handler.keyDownHandler);this.el.slideButtonList.off("click",this.handler.changeHandler);this.el.slideWrap.off(this.touchEvents.touchStart, 769this.handler.touchStart);this.el.slideWrap.off(this.touchEvents.touchEnd,this.handler.touchEnd)};c.prototype.handleColorName=function(){if("color"===this.type){var l=this.el.section.find(this.selector.slideSelected);l.target.length&&(l=l.find(".hidden"),this.setColorName(l.target.length&&l.target[0].textContent))}};c.prototype.setColorName=function(l){if(null!==l&&void 0!==l){var f=this.el.section.closest(this.selector.wrapper).find(this.selector.colorName);if(f.target.length){var b=Math.max(0,parseInt(f.attr(this.selector.colorNameMaxchar))), 770g=Math.max(0,parseInt(f.attr(this.selector.colorNameMaxcharPC)))||b;b=Math.max(0,parseInt(f.attr(this.selector.colorNameMaxcharMO)))||b;var p="desktop"===n.getCurrentDevice()?g:b,r=f.find("\x26 \x3e span"),t=f.find(this.selector.colorNameTooltip);p?(p&&g!==b?r.target.length&&r.innerHTML('\x3cspan class\x3d"option-selector-v2__color-name--pc"\x3e'+n.getEllipsis(l,g)+'\x3c/span\x3e\x3cspan class\x3d"option-selector-v2__color-name--mo"\x3e'+n.getEllipsis(l,b)+"\x3c/span\x3e"):r.target.length&&r.innerHTML(n.getEllipsis(l, 771p)),l.length>p?(t.target.length?t.find(this.selector.colorNameTooltipText).innerHTML(l):f.append('\x3cdiv class\x3d"option-selector-v2__color-tooltip"\x3e\x3cp class\x3d"option-selector-v2__color-tooltip-text"\x3e'+l+'\x3c/p\x3e\x3cbutton class\x3d"option-selector-v2__color-tooltip-close"\x3e\x3cspan class\x3d"blind"\x3eClose\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e'),r.attr("tabindex",0)):(t.remove(),r.removeAttr("tabindex"))):r.text(l)}}};c.direction="ltr";var k=function(){a(".option-selector-v2 .option-selector-v2__wrap").target.forEach(function(l){new c(l)})}; 772c.instances=new WeakMap;a.ready(k);window.sg.common.optionSelectorV2={init:k,reInit:function(l){a(l).find(".option-selector-v2 .option-selector-v2__wrap").target.forEach(function(f){c.instances.has(f)?c.instances.get(f).reInit():new c(f)})}}})();
773(function(){var a=window.sg.common.$q,n=window.sg.common.utils,h=function(c){var k=this;this.isTouchEvent=this.keypress=this.motioning=this.dragging=!1;this.containerPadding=this.timer=this.percent=0;this.type=this.currentDevice=null;this.offset={startX:0,wrapperX:0,x_origine:0,y_origine:0,x_new:0,y_new:0};this.el={window:a(window),document:a(document),section:a(c),component:null,itemList:null,itemButtonList:null};this.selector={wrapper:".option-selector-v3",component:".option-selector-v3__list", 774colorNameMaxchar:"data-maxchar",colorNameMaxcharPC:"data-maxchar-pc",colorNameMaxcharMO:"data-maxchar-mo",colorName:".option-selector-v3__color-name",colorNameTooltip:".option-selector-v3__color-tooltip",colorNameTooltipText:".option-selector-v3__color-tooltip-text",colorCode:".option-selector-v3__color-code",sizeText:".option-selector-v3__size-text",itemList:".option-selector-v3__item",itemButtonList:".option-selector-v3__item button",itemSelected:".is-checked"};this.classes={typeColor:"option-selector-v3__wrap--color-chip", 775typeSize:"option-selector-v3__wrap--capacity"};this.handler={touchsupport:function(){return"ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints},heightLimit:function(){return k.isTouchEvent?10:100},eventClick:function(l){l.preventDefault();l.preventDefault?l.preventDefault():l.returnValue=!1},changeHandler:function(l){k.el.itemList.removeClass("is-checked");k.el.itemList.find(".blind").remove();var f= 776a(l.target).closest(k.selector.itemList),b=f.find(k.selector.colorCode),g=f.find(k.selector.sizeText);l=l.target.querySelector(".hidden")||null;f.addClass("is-checked");b.target.length&&b.after('\x3cspan class\x3d"blind"\x3e'+k.globalText+"\x3c/span\x3e");g.target.length&&g.after('\x3cspan class\x3d"blind"\x3e'+k.globalText+"\x3c/span\x3e");null!==l&&k.setColorName(l.innerText)},resize:function(){var l=n.getCurrentDevice();k.currentDevice!==l&&k.handleColorName();k.currentDevice=l}};this.startX=0; 777this.globalText=null;h.instances.set(c,this);this.init()};h.prototype.init=function(){this.setProperty();this.bindEvents()};h.prototype.reInit=function(){this.isTouchEvent=this.handler.touchsupport();this.setProperty();this.bindEvents()};h.prototype.setProperty=function(){"rtl"===n.getDirection()&&(h.direction="rtl");this.el.section.hasClass(this.classes.typeColor)?this.type="color":this.el.section.hasClass(this.classes.typeSize)&&(this.type="size");this.el.component=this.el.section.find(this.selector.component); 778this.el.itemButtonList=this.el.component.find(this.selector.itemButtonList);this.el.itemList=this.el.component.find(this.selector.itemList);this.globalText=JSON.parse(this.el.section.target[0].dataset.globalText).selected};h.prototype.bindEvents=function(){this.el.itemButtonList.off("click",this.handler.changeHandler).on("click",this.handler.changeHandler);var c=this.el.section.find(this.selector.itemSelected);c.target.length?c.eq(0).trigger("click"):this.el.itemButtonList.eq(0).trigger("click"); 779this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};h.prototype.handleColorName=function(){if("color"===this.type){var c=this.el.section.find(this.selector.itemSelected);c.target.length&&(c=c.find(".hidden"),this.setColorName(c.target.length&&c.target[0].textContent))}};h.prototype.setColorName=function(c){if(null!==c&&void 0!==c){var k=this.el.section.closest(this.selector.wrapper).find(this.selector.colorName);if(k.target.length){var l=Math.max(0,parseInt(k.attr(this.selector.colorNameMaxchar))), 780f=Math.max(0,parseInt(k.attr(this.selector.colorNameMaxcharPC)))||l;l=Math.max(0,parseInt(k.attr(this.selector.colorNameMaxcharMO)))||l;var b="desktop"===n.getCurrentDevice()?f:l,g=k.find("\x26 \x3e span"),p=k.find(this.selector.colorNameTooltip);b?(b&&f!==l?g.target.length&&g.innerHTML('\x3cspan class\x3d"option-selector-v3__color-name--pc"\x3e'+n.getEllipsis(c,f)+'\x3c/span\x3e\x3cspan class\x3d"option-selector-v3__color-name--mo"\x3e'+n.getEllipsis(c,l)+"\x3c/span\x3e"):g.target.length&&g.innerHTML(n.getEllipsis(c, 781b)),c.length>b?(p.target.length?p.find(this.selector.colorNameTooltipText).innerHTML(c):k.append('\x3cdiv class\x3d"option-selector-v3__color-tooltip"\x3e\x3cp class\x3d"option-selector-v3__color-tooltip-text"\x3e'+c+'\x3c/p\x3e\x3cbutton class\x3d"option-selector-v3__color-tooltip-close"\x3e\x3cspan class\x3d"blind"\x3eClose\x3c/span\x3e\x3c/button\x3e\x3c/div\x3e'),g.attr("tabindex",0)):(p.remove(),g.removeAttr("tabindex"))):g.text(c)}}};h.direction="ltr";var e=function(){a(".option-selector-v3 .option-selector-v3__wrap").target.forEach(function(c){new h(c)})}; 782h.instances=new WeakMap;a.ready(e);window.sg.common.optionSelectorV3={init:e,reInit:function(c){a(c).find(".option-selector-v3 .option-selector-v3__wrap").target.forEach(function(k){h.instances.has(k)?h.instances.get(k).reInit():new h(k)})}}})();
783(function(){var a=window.sg.common.$q,n=window.sg.common.utils.getCurrentDevice,h=window.sg.common.video,e=window.sg.common.utils.triggerEvent,c=window.sg.common.utils.setMobileFocusLoop,k=window.sg.common.utils.removeMobileFocusLoop,l=function(b){this.el=b;this.init()};l.prototype.setElements=function(){this.els={el:this.el,videoWrapEl:this.el.querySelector(".popup-video__video-wrap"),currentVideoTitleEl:this.el.querySelector(".popup-video__current-video-title"),videoEls:this.el.querySelectorAll(".popup-video__video-wrap .video"), 784videoCloseButtonEl:this.el.querySelector(".popup-video__btn-video-close"),popupVideoLoopingStartEl:this.el.querySelector(".popup-video__looping--start"),popupVideoLoopingEndEl:this.el.querySelector(".popup-video__looping--end")};this.currentPlayingVideoEl={};this.focusTargetEl={}};l.prototype.init=function(){l.instances.get(this.el)||(l.instances.set(this.el,this),this.setElements(),this.bindEvents())};l.prototype.reInit=function(){this.currentPlayingVideoEl instanceof Element&&this.close();this.unBindEvents(); 785this.setElements();this.bindEvents()};l.prototype.destroy=function(){this.unBindEvents();l.instances.has(this.els.el)&&l.instances.delete(this.els.el);this.els=null};l.prototype.setVideoSize=function(){this.els.videoWrapEl.classList.contains("popup-video__video-wrap--vertical")?"desktop"===n()?(this.els.videoWrapEl.style.height=window.innerHeight+"px",this.els.videoWrapEl.style.width=9*window.innerHeight/16+"px"):.9*window.innerWidth<7.2*window.innerHeight/16?(this.els.videoWrapEl.style.height=14.4* 786window.innerWidth/9+"px",this.els.videoWrapEl.style.width=.9*window.innerWidth+"px"):(this.els.videoWrapEl.style.height=.8*window.innerHeight+"px",this.els.videoWrapEl.style.width=7.2*window.innerHeight/16+"px"):"desktop"===n()?.9*window.innerHeight<8.1*window.innerWidth/16?(this.els.videoWrapEl.style.width=14.4*window.innerHeight/9+"px",this.els.videoWrapEl.style.height=.9*window.innerHeight+"px"):(this.els.videoWrapEl.style.width=.9*window.innerWidth+"px",this.els.videoWrapEl.style.height=8.1*window.innerWidth/ 78716+"px"):(this.els.videoWrapEl.style.width=window.innerWidth+"px",this.els.videoWrapEl.style.height=9*window.innerWidth/16+"px")};l.prototype.setFocusToCloseButtonEl=function(){this.els.videoCloseButtonEl.focus()};l.prototype.setFocusToVideoTitleEl=function(){this.els.currentVideoTitleEl.focus()};l.prototype.bindEvents=function(){this.close=this.close.bind(this);this.setFocusToCloseButtonEl=this.setFocusToCloseButtonEl.bind(this);this.setFocusToVideoTitleEl=this.setFocusToVideoTitleEl.bind(this); 788this.setVideoSize=this.setVideoSize.bind(this);this.els.videoCloseButtonEl.addEventListener("click",this.close);this.els.popupVideoLoopingStartEl.addEventListener("focus",this.setFocusToCloseButtonEl);this.els.popupVideoLoopingEndEl.addEventListener("focus",this.setFocusToVideoTitleEl);window.addEventListener("resize",this.setVideoSize)};l.prototype.unBindEvents=function(){this.els.videoCloseButtonEl.removeEventListener("click",this.close);this.els.popupVideoLoopingStartEl.removeEventListener("focus", 789this.setFocusToCloseButtonEl);this.els.popupVideoLoopingEndEl.removeEventListener("focus",this.setFocusToVideoTitleEl);window.removeEventListener("resize",this.setVideoSize)};l.prototype.open=function(b,g,p){var r=this;b=void 0===b?0:b;g=void 0===g?null:g;"vertical"===(void 0===p?null:p)?this.els.videoWrapEl.classList.add("popup-video__video-wrap--vertical"):this.els.videoWrapEl.classList.remove("popup-video__video-wrap--vertical");this.els.currentVideoTitleEl.innerText=JSON.parse(this.els.videoEls[b].dataset.videoData).title; 790document.body.style.overflow="hidden";this.els.el.classList.add("popup-video--show");this.els.videoCloseButtonEl.focus();this.els.videoEls[b].style.display="block";this.setVideoSize();h.init(this.els.videoEls[b]);this.currentPlayingVideoEl=this.els.videoEls[b];this.focusTargetEl=g;"mobile"===n()&&c(this.els.el);setTimeout(function(){r.els.videoWrapEl.focus()},200)};l.prototype.close=function(){h.dispose(this.currentPlayingVideoEl);this.els.currentVideoTitleEl.innerText="";this.currentPlayingVideoEl.removeAttribute("style"); 791this.els.el.classList.remove("popup-video--show");document.body.removeAttribute("style");this.currentPlayingVideoEl={};this.focusTargetEl instanceof Element&&this.focusTargetEl.focus();"mobile"===n()&&k();e(this.els.el,"popupVideoClose")};l.instances=new WeakMap;var f={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".popup-video"))).forEac
791h(function(b){l.instances.has(b)||new l(b)})},init:function(b){l.instances.has(b)||new l(b)},reInit:function(b){l.instances.has(b)? 792l.instances.get(b).reInit():new l(b)},destroy:function(b){l.instances.has(b)&&l.instances.get(b).destroy()},open:function(b,g,p,r){l.instances.has(b)?l.instances.get(b).open(g,p,r):(new l(b)).open(g,p,r)},close:function(b){l.instances.has(b)?l.instances.get(b).close():(new l(b)).close()}};window.sg.common.popupVideo=f;a.ready(f.initAll)})(); 793(function(){var a=window.sg.common.constants.KEY_CODE,n={getFirstFocusableEl:window.sg.common.utils.getFirstFocusableEl,setFocusFirstFocusableEl:window.sg.common.utils.setFocusFirstFocusableEl,setMobileFocusLoop:window.sg.common.utils.setMobileFocusLoop,removeMobileFocusLoop:window.sg.common.utils.removeMobileFocusLoop,hideScroll:window.sg.common.utils.hiddenScroll,showScroll:window.sg.common.utils.visibleScroll,handlePopstate:{open:window.sg.common.utils.popupControl.open,close:window.sg.common.utils.popupControl.close}, 794showOverDimEls:window.sg.common.utils.showOverDimEls,hideOverDimEls:window.sg.common.utils.hideOverDimEls},h=window.sg.common.utils.getMobileOS,e=function(){return window.sg.components.Base.apply(this,arguments)||this};$jscomp.inherits(e,window.sg.components.Base);e.prototype._init=function(){this.els={el:this.el,closeEl:null,innerEl:null,scrollEls:null,childEl:null,actionsWrapEl:null};this.id=null;this.isOpen=!1;this.focusTargetEl=null;this._setElements();this._bindEvents()};e.prototype._setElements= 795function(){this.els.closeEl=this.els.el.querySelector(".popup__close");this.els.innerEl=this.els.el.querySelector(".popup__inner");this.els.scrollEls=this.els.el.querySelectorAll('[data-comp-name\x3d"scrollbar"]');this.els.childEl=this.els.el.querySelector(".popup__inner \x3e [data-comp-name]");this.els.actionsWrapEl=this.els.el.querySelector(".popup__btn-wrap");this.id=this.els.el.getAttribute("id");(this.child=this.getChild(this.els.childEl))&&this.child.setOptions({id:this.id});this.isOpen=!!this.els.el.classList.contains("popup--open")}; 796e.prototype._bindEvents=function(){this.close=this.close.bind(this);this._handleKeydown=this._handleKeydown.bind(this);this._handleCloseKeydown=this._handleCloseKeydown.bind(this);this._handleActionClick=this._handleActionClick.bind(this);this._handleSetActions=this._handleSetActions.bind(this);this._handleReInit=this._handleReInit.bind(this);this.els.closeEl.addEventListener("click",this.close);this.els.el.addEventListener("keydown",this._handleKeydown);this.els.closeEl.addEventListener("keydown", 797this._handleCloseKeydown);this.child&&(this.child.listen("setButtons",this._handleSetActions),this.child.listen("reInit",this._handleReInit),this.child.listen("close",this.close));this.els.actionsWrapEl&&this.els.actionsWrapEl.addEventListener("click",this._handleActionClick)};e.prototype._unBindEvents=function(){this.els.closeEl.removeEventListener("click",this.close);this.els.el.removeEventListener("keydown",this._handleKeydown);this.els.closeEl.removeEventListener("keydown",this._handleCloseKeydown); 798this.child&&(this.child.unListen("setButtons",this._handleSetActions),this.child.unListen("close",this.close));this.els.actionsWrapEl&&this.els.actionsWrapEl.removeEventListener("click",this._handleActionClick)};e.prototype.open=function(c){var k=this;this.isOpen||(this.focusTargetEl=c&&c instanceof Element?c:document.activeElement,this.els.el.classList.add("popup--open"),this.isOpen=!0,n.handlePopstate.open(this.close),n.hideScroll(),n.setMobileFocusLoop(this.el),n.hideOverDimEls(),"ios"===h()?setTimeout(function(){return k._setFocusFirstFocusableEl()}, 799450):this._setFocusFirstFocusableEl(),c={id:this.id},this.emit("open",c),window.sg.common.lazyLoad.setLazyLoadManually(this.els.innerEl),Array.from(this.els.scrollEls).forEach(function(l){k.getChild(l).resize()}),this._handleControl("open",c))};e.prototype._handleControl=function(c,k){if(this.child&&this.child[c]&&"function"===typeof this.child[c])this.child[c](k)};e.prototype._reInit=function(){this._unBindEvents();this._setElements();this._bindEvents()};e.prototype._destroy=function(){this._unBindEvents()}; 800e.prototype.close=function(){var c=this;if(this.isOpen){this.els.el.classList.remove("popup--open");n.handlePopstate.close();n.showScroll();n.removeMobileFocusLoop();n.showOverDimEls();if(this.focusTargetEl&&this.focusTargetEl instanceof Element){var k=function(){c.focusTargetEl.focus();c.focusTargetEl=null};"ios"===h()?setTimeout(k,200):k()}this.isOpen=!1;k={id:this.id};
800this.emit("close",{id:this.id},!0);this._handleControl("close",k)}};e.prototype._handleKeydown=function(c){if(c.shiftKey&&a.TAB=== 801c.keyCode){var k=this._getFirstFocusableEl();k&&c.target===k&&(c.preventDefault(),this.els.closeEl.focus())}};e.prototype._handleCloseKeydown=function(c){c.shiftKey||a.TAB!==c.keyCode||(c.preventDefault(),this._setFocusFirstFocusableEl())};e.prototype._setFocusFirstFocusableEl=function(){var c=this.els.el.querySelector(".popup__title"),k=c||this._getFirstFocusableEl();c&&c.setAttribute("tabindex","-1");k&&k.focus()};e.prototype._getFirstFocusableEl=function(){var c=n.getFirstFocusableEl(this.els.el); 802if(c&&c.matches('input[type\x3d"radio"]')){var k=this.els.el.querySelector('input[type\x3d"radio"][name\x3d"'+c.name+'"]:checked');k&&(c=k)}return c};e.prototype._handleActionClick=function(c){if(c=c.target.dataset.action)c={id:this.id,action:c},this.emit("action",c),this._handleControl("action",c)};e.prototype._handleSetActions=function(c){var k=this;c.stopPropagation();var l=c.detail;Array.isArray(l)||(l=[l]);l.forEach(function(f){var b=k.els.actionsWrapEl.querySelector("[data-action\x3d'"+f.action+ 803"']");b&&("enable"===f.state?(b.classList.remove("cta--disabled"),b.disabled=!1):"disable"===f.state&&(b.classList.add("cta--disabled"),b.disabled=!0),c.detail.focus&&b.focus())})};e.prototype._handleReInit=function(c){(c=c.detail.el?c.detail.el:null)?this.reInit(c):this.reInit()};window.sg.components.registerClass("popup",e)})(); 804(function(){var a=document.querySelector("#siteCode")?document.querySelector("#siteCode").value:"",n="fr pl ro bg it se dk fi no hr si hu de ee lv lt pt".split(" ").includes(a),h="function"===typeof currencyComma?currencyComma:function(b){return b},e=document.querySelector("#shopIntegrationFlag")?document.querySelector("#shopIntegrationFlag").value:"",c=function(b,g){var p=b;"undefined"!==typeof Granite&&(p=g?Granite.I18n.get(b,g):Granite.I18n.get(b));return p},k=function(b){this.productInfo=b;this.upperStock= 805b.ctaType?b.ctaType.toUpperCase():"";this.priceObj={usePrice:!0,wasPrice:null,wasPriceFormatted:null,salePrice:null,salePriceFormatted:null,currentSub:"",savePrice:null,savePriceFormatted:null,monthlyPriceInfo:{},priceCurrency:b.currency,descText:null,installText:null,saveI18nText:"Save {0}"};this.init()};k.prototype.init=function(){this.setPriceObjectByDefaultRule();return this.priceObj};k.prototype.setPriceObjectByDefaultRule=function(){switch(a){case "pl":"OUTOFSTOCK"===this.upperStock&&(this.priceObj.usePrice= 806!1);break;case "nl":case "be":case "be_fr":if("NOORDER"===this.upperStock||"LEARNMORE"===this.upperStock)this.priceObj.usePrice=!0;break;default:if("NOORDER"===this.upperStock||"LEARNMORE"===this.upperStock)this.priceObj.usePrice=!1}if(this.priceObj.usePrice){""===this.productInfo.lowestWasPrice&&(this.productInfo.lowestWasPrice="0");switch(!0){case !(!n||!parseFloat(this.productInfo.lowestWasPrice)):this.priceObj.wasPrice=parseFloat(this.productInfo.lowestWasPrice);break;case !!this.productInfo.price:this.priceObj.wasPrice= 807parseFloat(this.productInfo.price)}switch(!0){case !(!n||!this.productInfo.lowestWasPriceDisplay):this.priceObj.wasPriceFormatted=this.productInfo.lowestWasPriceDisplay;break;case !!this.productInfo.priceDisplay:this.priceObj.wasPriceFormatted=this.productInfo.priceDisplay;break;case !!this.productInfo.price:this.priceObj.wasPriceFormatted=h(this.productInfo.price,this.priceObj.priceCurrency)}switch(!0){case !!this.productInfo.promotionPrice:this.priceObj.salePrice=parseFloat(this.productInfo.promotionPrice); 808break;case !!this.productInfo.price:this.priceObj.salePrice=parseFloat(this.productInfo.price)}switch(!0){case !!this.productInfo.promotionPriceDisplay:this.priceObj.salePriceFormatted=this.productInfo.promotionPriceDisplay;break;case !!this.priceObj.salePrice:this.priceObj.salePriceFormatted=h(this.priceObj.salePrice,this.priceObj.priceCurrency)}switch(!0){case this.priceObj.wasPrice>this.priceObj.salePrice:this.priceObj.savePrice=this.priceObj.wasPrice-this.priceObj.salePrice}switch(!0){case !!this.priceObj.savePrice:this.priceObj.savePriceFormatted= 809h(this.priceObj.savePrice,this.priceObj.priceCurrency)}switch(!0){case !!(this.productInfo.monthlyPriceInfo&&this.productInfo.monthlyPriceInfo.leasingMonthly&&this.productInfo.monthlyPriceInfo.leasingMonths):this.priceObj.monthlyPriceInfo.monthlyPrice=h(this.productInfo.monthlyPriceInfo.leasingMonthly,this.priceObj.priceCurrency),this.priceObj.monthlyPriceInfo.tenureVal=this.productInfo.monthlyPriceInfo.leasingMonths,this.productInfo.monthlyPriceInfo.interest&&(this.priceObj.monthlyPriceInfo.leasingInterest= 810this.productInfo.monthlyPriceInfo.interest),this.priceObj.monthlyPriceInfo.useMonthlyPrice=!0}switch(a){case "pl":this.priceObj.descText=c("Lowest price 30 days before the discount:");break;case "hu":var b=this.priceObj,g=""+c("Best price in the past 30 days:")+this.priceObj.wasPriceFormatted+"(",p=this.priceObj.wasPrice;p=(Number(this.priceObj.salePrice)-Number(p))/Number(p)*Math.pow(10,2);p=Math.round(Number(p));b.descText=g+p+"%)"}switch(a){case "ch":case "ch_fr":this.priceObj.installText=c("From {0}/mo*", 811this.priceObj.monthlyPriceInfo.monthlyPrice)+" "+c("or")+" "+this.priceObj.salePriceFormatted}switch(e){case "Hybris":if("pt"===a)break;this.productInfo.formattedPriceSave?this.priceObj.savePriceFormatted=this.productInfo.formattedPriceSave:(this.priceObj.savePriceFormatted=null,this.priceObj.savePrice=null);this.priceObj.wasPriceFormatted=null;this.priceObj.saveI18nText="{0}";break;case "Hybris-intg":this.priceObj.savePriceFormatted=null}switch(a){case "fr":case "pl":case "de":case "ee":case "lv":case "lt":case "pt":this.priceObj.salePrice>= 812parseFloat(this.productInfo.lowestWasPrice)&&(this.priceObj.savePrice=null);break;case "it":this.productInfo.lowestWasPriceDisplay?(b=this.priceObj,g=Number(this.priceObj.savePrice)/Number(this.priceObj.wasPrice)*Math.pow(10,2),g=Number(g).toFixed(2),g=g.replace(".",","),b.savePriceFormatted=g,this.priceObj.wasPriceFormatted=this.productInfo.lowestWasPriceDisplay):this.priceObj.savePriceFormatted=null;this.priceObj.saveI18nText="Save the {0}%";break;case "br":this.productInfo.formattedPriceSave?(this.priceObj.wasPriceFormatted= 813this.productInfo.rrpPriceDisplay,this.priceObj.savePriceFormatted=this.productInfo.formattedPriceSave,this.priceObj.savePrice=this.priceObj.savePriceFormatted):(this.priceObj.wasPriceFormatted=null,this.priceObj.savePriceFormatted=null);this.priceObj.currentSub=this.priceObj.savePriceFormatted?"\u00e0 vista":"";this.priceObj.saveI18nText="{0}";break;case "iq_ar":case "iq_ku":this.priceObj.saveI18nText="{0}";break;case "tr":this.priceObj.savePriceFormatted=null;this.priceObj.wasPriceFormatted=null; 814break;case "bg":case "ro":this.priceObj.wasPriceFormatted=c("RRP {0}",this.priceObj.wasPriceFormatted);this.priceObj.savePriceFormatted=null;break;case "my":this.priceObj.savePriceFormatted=h(this.priceObj.savePrice,this.priceObj.priceCurrency);break;case "nl":this.priceObj.wasPriceFormatted=this.productInfo.msrpPrice?c("Recommend price")+" "+this.productInfo.msrpPrice:null;this.priceObj.savePriceFormatted=null;break;case "in":this.priceObj.salePriceFormatted=h(this.priceObj.salePrice,this.priceObj.priceCurrency); 815this.priceObj.wasPriceFormatted="MRP: "+h(this.productInfo.price,this.priceObj.priceCurrency)+" (Incl. of all taxes)";break;case "ae_ar":case "ae":case "ca_fr":case "ca":case "eg":case "levant_ar":case "levant":this.priceObj.wasPriceFormatted=this.priceObj.savePriceFormatted,this.priceObj.savePriceFormatted=null}}};k.prototype.getPriceObject=function(){return this.priceObj};var l=function(){if(l.instance)return l.instance;this.instance=this;this.priceObj};l.prototype.getPriceInfoByProductInfo=function(b){return(new k(b)).getPriceObject()}; 816l.prototype.buildCurrentHTML=function(){return'\n \x3cdiv class\x3d"price-ux__price-current" data-pricetext\x3d"'+this.priceObj.salePriceFormatted+'"\x3e\n \x3cspan class\x3d"hidden"\x3e'+c("Total Price")+": \x3c/span\x3e\n \x3cstrong\x3e"+this.priceObj.salePriceFormatted+"\x3c/strong\x3e\n "+(this.priceObj.currentSub?'\x3cspan class\x3d"price-ux__price-current-sub"\x3e'+this.priceObj.currentSub+"\x3c/span\x3e":"")+"\n \x3c/div\x3e"};l.prototype.buildInstallmentHTML= 817function(){return this.priceObj.monthlyPriceInfo.useMonthlyPrice?'\x3cdiv class\x3d"price-ux__installment"\x3e\n '+this.priceObj.installText+"\n \x3c/div\x3e":""};l.prototype.buildWasHTML=function(){if(!this.priceObj.wasPriceFormatted)return"";switch(a){case "dk":case "fi":case "no":case "pl":case "se":case "fr":var b="\x3cdel\x3e"+this.priceObj.wasPriceFormatted+"\x3c/del\x3e";break;default:b=this.priceObj.wasPriceFormatted}
817return'\x3cp class\x3d"price-ux__price-original"\x3e'+b+ 818"\x3c/p\x3e"};l.prototype.buildSaveHTML=function(){var b="";if(!this.priceObj.savePriceFormatted)return b;b=c(this.priceObj.saveI18nText,this.priceObj.savePriceFormatted);switch(a){case "au":case "ch":case "ch_fr":case "hu":b='\n \x3cp class\x3d"price-ux__price-save price-ux__price-save--line-through"\x3e\n \x3cem\x3e'+b+"\x3c/em\x3e\n \x3c/p\x3e";break;case "br":b='\n \x3cp class\x3d"price-ux__price-save price-ux__price-save--line-break"\x3e\n \x3cem\x3e'+ 819b+"\x3c/em\x3e\n \x3c/p\x3e";break;default:b='\n \x3cp class\x3d"price-ux__price-save"\x3e\n \x3cem\x3e'+b+"\x3c/em\x3e\n \x3c/p\x3e"}return b};l.prototype.buildSubHTML=function(){return this.priceObj.savePrice?'\n \x3cdiv class\x3d"price-ux__price-sub price-ux__price-sub--ux-v2"\x3e\n \x3cspan class\x3d"hidden"\x3e'+c("Original Price")+": \x3c/span\x3e\n "+(this.buildWasHTML()+this.buildSaveHTML())+"\n \x3c/div\x3e":""};l.prototype.buildDescriptionHTML= 820function(){return'\x3cdiv class\x3d"price-ux__desc"\x3e'+this.priceObj.descText+"\x3c/div\x3e"};l.prototype.buildPrice=function(){var b=this.buildCurrentHTML();switch(a){case "uk":case "pt":b+=this.buildSubHTML();break;case "pl":this.priceObj.savePrice&&(b+=this.buildSaveHTML()+this.buildDescriptionHTML()+this.buildWasHTML());break;case "hu":this.priceObj.savePrice&&(b+=this.buildDescriptionHTML()+this.buildSaveHTML());break;case "ch":case "ch_fr":this.priceObj.savePrice&&(b+=this.buildSaveHTML()+ 821this.buildWasHTML());b+=this.buildInstallmentHTML();break;case "in":b+=(this.priceObj.savePrice?this.buildSaveHTML():"")+this.buildWasHTML();break;default:this.priceObj.savePrice&&(b+=this.buildSaveHTML()+this.buildWasHTML())}return b};l.prototype.getPriceHTML=function(b){this.priceObj=this.getPriceInfoByProductInfo(b);return'\n \x3cdiv class\x3d"price-ux__wrap price-ux__wrap--ux-v2"\x3e\n '+(this.priceObj.usePrice?this.buildPrice():"")+"\n \x3c/div\x3e"};var f=null;window.sg.common.price= 822{getPriceInfoByProductInfo:function(b,g){f||(f=new l);b.currency=g;return f.getPriceInfoByProductInfo(b)},getPrice:function(b,g){b=Object.assign({},b,{currency:g.currency});f||(f=new l);return f.getPriceHTML(b)}}})(); 823(function(){function a(){n(c.section).target.forEach(function(b){f.instances.has(b)||new f(b)})}var n=window.sg.common.$q,h=window.sg.common.utils,e="function"===typeof currencyComma?currencyComma:function(b,g){return""+b+g},c={section:".multi-range-slider"},k={},l=(k["default"]="default",k.number="number",k.currency="currency",k),f=function(b){this.selector={rangeTrack:".multi-range-slider__track",rangeHandleMin:".multi-range-slider__range-handle--min",rangeHandleMax:".multi-range-slider__range-handle--max", 824rangeInput:".multi-range-slider__range input",rangeMinEl:".multi-range-slider__range--min",rangeMaxEl:".multi-range-slider__range--max",textFieldWrap:".multi-range-slider__text",textFieldMinEl:".multi-range-slider__text-field--min",textFieldMaxEl:".multi-range-slider__text-field--max",textInput:".multi-range-slider__text input",textMinEl:".multi-range-slider__text--min",textMaxEl:".multi-range-slider__text--max",rangeProgress:".multi-range-slider__progress",stepIndicator:".multi-range-slider__step-indicator"}; 825this.type=l.default;this.els={section:n(b),sectionEl:b};this.handler={handleResize:this.handleResize.bind(this),handleInputValues:this.handleInputValues.bind(this)};this.init();f.instances.set(b,this)};f.prototype.init=function(){this.setElements();this.setType();this.setInitialValues();this.setOptions();this.setRangeSliderOptions();this.drawInitValues();this.bindEvents()};f.prototype.reInit=function(){this.unbindEvents();this.setElements();this.setType();this.setInitialValues();this.setOptions(); 826this.setRangeSliderOptions();this.drawInitValues();this.bindEvents()};f.prototype.setOptions=function(){this.els.stepIndicator.target.length&&this.els.stepIndicator.remove();var b=this.els.section.attr("data-slider-data");if(b){var g=JSON.parse(b),p=g.stepIndicator,r=g.stepType;b=g.step;this.options=g;if(p&&r&&b){g=Math.floor(100/parseInt(b));for(p=0;p<g;p++){r=document.createElement("div");var t=b*(p+1),w=(this.rangeMaxValue-this.rangeMinValue)*t/100;r.classList.add("multi-range-slider__step-indicator"); 827r.setAttribute("data-step-value",w);h.isRtl()?r.style.right=t+"%":r.style.left=t+"%";this.els.rangeTrack.append(r)}this.els.stepIndicator=this.els.section.find(this.selector.stepIndicator)}}else this.options={},this.options.stepIndicator=!1,this.options.stepType="percent",this.options.step=1,this.options.activeMaxStepIndicatorIndex=0};f.prototype.updateStepIndicatorActive=function(){var b=this;if(this.options.stepIndicator){var g=this.els.rangeMaxEl.attr("value");this.els.stepIndicator.target.forEach(function(p, 828r){p=n(p);var t=p.attr("data-step-value");parseInt(t)<=parseInt(g)?(p.addClass("multi-range-slider__step-indicator--active"),b.options.activeMaxStepIndicatorIndex=r):p.removeClass("multi-range-slider__step-indicator--active")});this.els.stepIndicator.hasClass("multi-range-slider__step-indicator--active")||(this.options.activeMaxStepIndicatorIndex=-1)}};f.prototype.setElements=function(){this.els.rangeTrack=this.els.section.find(this.selector.rangeTrack);this.els.rangeHandleMin=this.els.section.find(this.selector.rangeHandleMin); 829this.els.rangeHandleMax=this.els.section.find(this.selector.rangeHandleMax);this.els.rangeInput=this.els.section.find(this.selector.rangeInput);this.els.rangeMinEl=this.els.section.find(this.selector.rangeMinEl);this.els.rangeMaxEl=this.els.section.find(this.selector.rangeMaxEl);this.els.textFieldWrap=this.els.section.find(this.selector.textFieldWrap);this.els.textFieldMinEl=this.els.section.find(this.selector.textFieldMinEl);this.els.textFieldMaxEl=this.els.section.find(this.selector.textFieldMaxEl); 830this.els.textInput=this.els.section.find(this.selector.textInput);this.els.textMinEl=this.els.section.find(this.selector.textMinEl);this.els.textMaxEl=this.els.section.find(this.selector.textMaxEl);this.els.rangeProgress=this.els.section.find(this.selector.rangeProgress);this.els.stepIndicator=this.els.section.find(this.selector.stepIndicator)};f.prototype.setType=function(){var b=this;switch((this.els.section.attr("data-type")||"default").toLowerCase()){case l.default:case l.number:this.t
830ype=l.number; 831this.adaptor=function(g){return(new Intl.NumberFormat("en-US")).format(String(g))};break;case l.currency:this.type=l.currency;this.currency=this.els.section.attr("data-currency")||"";this.adaptor=function(g){return e(g,b.currency)};break;default:this.type=l.default,this.adaptor=function(g){return(new Intl.NumberFormat("en-US")).format(String(g))}}};f.prototype.setInitialValues=function(){this.rangeMinValue=this.els.rangeMinEl.attr("min")||0;this.rangeMaxValue=this.els.rangeMaxEl.attr("max")||100; 832this.minPrefix=this.els.textFieldMinEl.attr("data-prefix")||"";this.minSuffix=this.els.textFieldMinEl.attr("data-suffix")||"";this.maxPrefix=this.els.textFieldMaxEl.attr("data-prefix")||"";this.maxSuffix=this.els.textFieldMaxEl.attr("data-suffix")||"";this.initialMinValue=this.els.rangeMinEl.attr("value")||this.rangeMinValue;this.initialMaxValue=this.els.rangeMaxEl.attr("value")||this.rangeMaxValue};f.prototype.setRangeSliderOptions=function(){var b=this;this.range=this.rangeMaxValue-this.rangeMinValue; 833this.rangeStart=this.rangeMinValue/this.range*100;this.rangeGap=this.options.stepIndicator?0:10;this.step=this.els.rangeMinEl.attr("data-step")?this.els.rangeMinEl.attr("data-step")*this.range/100:1*this.range/100;this.els.rangeInput.target.forEach(function(g){g.min=b.rangeMinValue;g.max=b.rangeMaxValue;g.step=b.step})};f.prototype.drawValues=function(b){for(var g=[],p=0;p<arguments.length;++p)g[p-0]=arguments[p];p=Math.min(this.rangeMaxValue,Math.max(this.rangeMinValue,2>g.length?0:g[0]));g=Math.max(this.rangeMinValue, 834Math.min(this.rangeMaxValue,2>g.length?g[0]:g[1]));this.updateInputValue(this.els.rangeMinEl,p);this.updateInputValue(this.els.rangeMaxEl,g);this.makeDisplayText(p,g);this.setOffset(p,g);"rtl"===h.getDirection()?(this.els.rangeProgress.css({right:p/this.range*100-this.rangeStart+this.minHandleOffset+"%",left:100-g/this.range*100+this.rangeStart+this.maxHandleOffset+"%"}),this.els.rangeHandleMin.css({right:p/this.range*100-this.rangeStart+this.minHandleOffset+"%"}),this.els.rangeHandleMax.css({left:100- 835g/this.range*100+this.rangeStart+this.maxHandleOffset+"%"})):(this.els.rangeProgress.css({left:p/this.range*100-this.rangeStart+this.minHandleOffset+"%",right:100-g/this.range*100+this.rangeStart+this.maxHandleOffset+"%"}),this.els.rangeHandleMin.css({left:p/this.range*100-this.rangeStart+this.minHandleOffset+"%"}),this.els.rangeHandleMax.css({right:100-g/this.range*100+this.rangeStart+this.maxHandleOffset+"%"}));this.updateStepIndicatorActive()};f.prototype.drawInitValues=function(){this.drawValues(this.initialMinValue, 836this.initialMaxValue)};f.prototype.bindEvents=function(){window.addEventListener("resize",this.handler.handleResize);this.els.rangeInput.on("input",this.handler.handleInputValues)};f.prototype.unbindEvents=function(){window.removeEventListener("resize",this.handler.handleResize);this.els.rangeInput.off("input",this.handler.handleInputValues)};f.prototype.makeDisplayText=function(b,g){var p=parseFloat(b),r=parseFloat(g);0<=p&&(b=""+this.minPrefix+this.adaptor(b)+this.minSuffix,this.updateInputValue(this.els.textMinEl, 837b));0<=r&&(g=""+this.maxPrefix+this.adaptor(g)+this.maxSuffix,this.updateInputValue(this.els.textMaxEl,g))};f.prototype.updateInputValue=function(b,g){b.target[0]&&(b.target[0].value=g,b.attr("value",g))};f.prototype.getHandleSize=function(){this.handleSize=this.els.rangeHandleMin.target.length&&!this.options.stepIndicator?this.els.rangeHandleMin.target[0].offsetWidth:0};f.prototype.getRangeTrackSize=function(){this.rangeTrackW=this.els.rangeTrack.offset().width};f.prototype.setOffset=function(b, 838g){this.getHandleSize();this.getRangeTrackSize();this.minHandleOffset=(this.handleSize/2-(b-this.rangeMinValue)/this.range*this.handleSize)/this.rangeTrackW*100;this.maxHandleOffset=(this.handleSize/2-(this.rangeMaxValue-g)/this.range*this.handleSize)/this.rangeTrackW*100};f.prototype.handleInputValues=function(b){if(this.els.rangeMinEl.target.length&&this.els.rangeMaxEl.target.length){var g=parseInt(this.els.rangeMinEl.target[0].value),p=parseInt(this.els.rangeMaxEl.target[0].value);p/this.range* 839100-g/this.range*100<=this.rangeGap&&(b.target===this.els.rangeMinEl.target[0]?g=p-parseInt(this.rangeGap*this.range/100):p=g+parseInt(this.rangeGap*this.range/100));this.drawValues(g,p)}};f.prototype.handleResize=function(){this.getHandleSize();this.getRangeTrackSize()};f.prototype.goNextStep=function(){var b=this.els.stepIndicator.eq
839(this.options.activeMaxStepIndicatorIndex+1);b.target.length&&this.drawValues(b.attr("data-step-value"))};f.prototype.goPrevStep=function(){var b=this.els.rangeMaxEl.attr("value"), 840g=this.options.activeMaxStepIndicatorIndex;g=this.els.stepIndicator.eq(g);var p=g.attr("data-step-value");b>p?this.drawValues(p):(g=this.options.activeMaxStepIndicatorIndex-1,g=this.els.stepIndicator.eq(g),p=g.attr("data-step-value"),this.drawValues(g.target.length?p:this.rangeMinValue))};f.instances=new WeakMap;window.sg.components.RangeSlider={init:a,reInit:function(){n(c.section).target.forEach(function(b){f.instances.has(b)?f.instances.get(b).reInit():new f(b)})},updateRange:function(b,g,p){f.instances.has(b)? 841f.instances.get(b).drawValues(g,p):(new f(b)).drawValues(g,p)},goNextStep:function(b){return f.instances.has(b)?f.instances.get(b).goNextStep():(new f(b)).goNextStep()},goPrevStep:function(b){return f.instances.has(b)?f.instances.get(b).goPrevStep():(new f(b)).goPrevStep()},getRangeSlider:function(b){return f.instances.has(b)?f.instances.get(b):new f(b)}};n.ready(a)})(); 842(function(){var a=function(){return window.sg.components.Base.apply(this,arguments)||this};$jscomp.inherits(a,window.sg.components.Base);a.prototype._init=function(){this.els={el:this.el,containerEl:null,wrapperEl:null,slideEls:null,prevEl:null,nextEl:null,indicatorEl:null};this.isCarousel=!1;this.indicator=this.swiper=null;this.isLoop=!1;this._setElements();this._setSwiper();this._bindEvents()};a.prototype._setElements=function(){this.els.containerEl=this.els.el.querySelector(".slider__container"); 843this.els.wrapperEl=this.els.el.querySelector(".slider__wrapper");this.els.slideEls=this.els.el.querySelectorAll(".slider__slide");this.els.prevEl=this.els.el.querySelector(".arrow-indicator--prev");this.els.nextEl=this.els.el.querySelector(".arrow-indicator--next");this.els.indicatorEl=this.els.el.querySelector(".indicator")};a.prototype._setSwiper=function(){if(this.isCarousel=1<this.els.slideEls.length)this.isLoop=this.els.el.hasAttribute("data-loop"),this.swiper=new Swiper(this.els.containerEl, 844{loop:this.isLoop,navigation:{prevEl:this.els.prevEl,nextEl:this.els.nextEl}}),this.els.slideEls=this.els.el.querySelectorAll(".slider__slide"),this._setSwiperArrows(),this._setAccessibility(),this.indicator=this.getChild(this.els.indicatorEl)};a.prototype._bindEvents=function(){var n=this;this.isCarousel&&(this.swiper.on("slideChange",function(){n._setSwiperArrows();n._setAccessibility();n.indicator.select(n.swiper.realIndex);window.sg.common.lazyLoad.setLazyLoadManually(n.els.slideEls[n.swiper.activeIndex])}), 845this._handleIndicatorMove=this._handleIndicatorMove.bind(this),this.els.indicatorEl.addEventListener("indicatorMove",this._handleIndicatorMove))};a.prototype._unBindEvents=function(){this.isCarousel&&this.els.indicatorEl.removeEventListener("indicatorMove",this._handleIndicatorMove)};a.prototype._setSwiperArrows=function(){this.isLoop||(this.swiper.isBeginning?(document.activeElement===this.els.prevEl&&this.els.nextEl.focus(),this.els.prevEl.style.display="none"):this.els.prevEl.style.display="", 846this.swiper.isEnd?(document.activeElement===this.els.nextEl&&this.els.prevEl.focus(),this.els.nextEl.style.display="none"):this.els.nextEl.style.display="")};a.prototype._setAccessibility=function(){var n=this;[].concat($jscomp.arrayFromIterable(this.els.slideEls)).forEach(function(h,e){e===n.swiper.activeIndex?(h.removeAttribute("aria-hidden"),[].concat($jscomp.arrayFromIterable(h.querySelectorAll('input, select, textarea, button, [href], [tabindex]:not([tabindex\x3d"-1"])'))).forEach(function(c){c.removeAttribute("tabindex"); 847c.removeAttribute("aria-hidden")})):(h.setAttribute("aria-hidden","true"),[].concat($jscomp.arrayFromIterable(h.querySelectorAll('input, select, textarea, button, [href], [tabindex]:not([tabindex\x3d"-1"])'))).forEach(function(c){c.setAttribute("tabindex","-1");c.setAttribute("aria-hidden","true")}))})};a.prototype._handleIndicatorMove=function(n){this.swiper&&n.detail!==this.swiper.realIndex&&this.swiper.slideToLoop(n.detail)};a.prototype._reInit=function(){this._unBindEvents();this.swiper&&this.swiper.destroy(); 848this._setElements();this._setSwiper();this._bindEvents()};a.prototype._destroy=function(){this._unBindEvents();this.swiper.destroy()};window.sg.components.registerClass("slider",a)})();
849(function(){var a=window.sg.common.$q,n=function(e){this.els={el:e,linkActionEl:e.querySelector(".cta")};this.init()};n.prototype.init=function(){n.instances.get(this.els.el)||(n.instances.set(this.els.el,this),this.bindEvents())};n.prototype.bindEvents=function(){this.els.el.style.bottom=-this.els.el.getBoundingClientRect().height+"px";this.els.linkActionEl&&this.els.linkActionEl.setAttribute("tabindex","-1")};n.prototype.open=function(){var e=this;this.els.el.removeAttribute("aria-hidden");this.els.linkActionEl&& 850this.els.linkActionEl.removeAttribute("tabindex");this.els.el.classList.add("show");this.els.el.style.bottom="24px";setTimeout(function(){e.els.el.style.transitionProperty="opacity";e.els.el.style.opacity="0"},3500);setTimeout(function(){e.els.el.classList.remove("show");e.els.el.removeAttribute("style");e.els.el.setAttribute("aria-hidden",!0);e.els.el.style.bottom=-e.els.el.getBoundingClientRect().height+"px";e.els.linkActionEl&&e.els.linkActionEl.setAttribute("tabindex","-1")},4E3)};n.instances= 851new WeakMap;var h={initAll:function(){[].concat($jscomp.arrayFromIterable(document.querySelectorAll(".snack-bar"))).forEach(function(e){n.instances.has(e)||new n(e)})},show:function(e){n.instances.has(e)?n.instances.get(e).open():(new n(e)).open()}};window.sg.common.snackBar=h;a.ready(h.initAll)})(); 852(function(){var a=window.sg.common.$q,n=window.sg.common.utils.getCurrentDevice,h=window.sg.common.utils.getCurrentMediaType,e=window.BezierEasing,c=window.sg.common.utils.triggerEvent,k=window.sg.common.utils.addEventListener,l=window.sg.common.utils.removeAllEventListeners,f=window.sg.common.utils.getNormalizedScrollLeft,b=window.sg.common.utils.setNormalizedScrollLeft,g=window.sg.common.utils.isRtl,p=window.sg.common.constants.KEY_CODE,r=window.sg.common.lazyLoad,t=function(y,C){this.selector= 853{setPositionOption:"[data-set-scroll-position]",focusable:"a[href], button:not([disabled])"};this.els={el:y,tabListEl:null,tabItemTitleEls:[],tabLeftArrowEl:null,tabRightArrowEl:null};this.selectedAriaTypeText={selected:"selected",current:"current"};this.scrollEndTime=this.dragStartTitle=null;this.init(void 0===C?0:C)};t.prototype.init=function(y){y=void 0===y?0:y;t.instances.has(this.els.el)||(t.instances.set(this.els.el,this),this.initValues(),this.setElements(),this.setSelectedAriaType(),this.bindEvents(), 854this.select(y,!0))};t.prototype.reInit=function(y){y=void 0===y?0:y;this.unBindEvents();this.initValues();this.setElements();this.setSelectedAriaType();this.bindEvents();if("false"===this.els.el.dataset.reinitActive){var C=this.els.el.querySelector(".tab__item--active .tab__item-title");C?this.index=[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).indexOf(C):this.select(y)}else this.select(y)};t.prototype.destroy=function(){this.unBindEvents();t.instances.has(this.els.el)&&t.instances.delete(this.els.el); 855this.els=null};t.prototype.initValues=function(){this.index=-1;this.startX=0;this.isAnim=this.isContentsDragging=!1;this.diffX=0;this.device="";this.selectDisabled=!1;this.selectedAriaType=this.selectedAriaTypeText.selected;this.selectedAriaDisabled=!1;this.isUseArrow=void 0!==this.els.el.dataset.useArrow;this.isUseArrowMo=void 0!==this.els.el.dataset.useArrowMo;this.setPositionOption=this.els.el.dataset.setScrollPosition;this.intoScrollExtend=this.els.el.dataset.intoScrollExtend;this.duration=300; 856this.easing=e(.4,0,.2,1);this.isRtl=g()};t.prototype.setElements=function(){this.els.tabListEl=this.els.el.querySelector(".tab__list");this.els.tabItemTitleEls=this.els.el.querySelectorAll(".tab__item-title");if(this.isUseArrow){this.els.tabLeftArrowEl=this.els.el.querySelector(".tab__left-arrow");this.els.tabRightArrowEl=this.els.el.querySelector(".tab__right-arrow");if(this.isRtl){var y=this.els.tabLeftArrowEl.getAttribute("aria-label"),C=this.els.tabRightArrowEl.getAttribute("aria-label");this.els.tabLeftArrowEl.setAttribute("aria-label", 857C);this.els.tabRightArrowEl.setAttribute("aria-label",y)}this.setArrow()}};t.prototype.setSelectedAriaType=function(){this.selectedAriaType=this.els.el.hasAttribute("data-selected-aria-type")&&this.els.el.getAttribute("data-selected-aria-type")===this.selectedAriaTypeText.current?this.selectedAriaTypeText.current:this.selectedAriaTypeText.selected;this.selectedAriaDisabled=this.els.el.hasAttribute("data-selected-aria-type")&&"false"===this.els.el.getAttribute("data-selected-aria-type")?!0:!1};t.prototype.select= 858function(y,C){var E=this;C=void 0===C?!1:C;var z=parseInt(y);y===this.index||this.isAnim||(this.index=z,Array.from(this.els.tabItemTitleEls).forEac
858h(function(V,ca){if(ca===E.index){if(a(V).parent().addClass("tab__item--active"),!E.selectedAriaDisabled)a:switch(E.selectedAriaType){case E.selectedAriaTypeText.selected:a(V).attr("aria-"+E.selectedAriaType,"true");break a;case E.selectedAriaTypeText.current:ca=V.dataset.ariaCurrentValue?V.dataset.ariaCurrentValue:"page",a(V).attr("aria-"+E.selectedAriaType, 859ca)}}else if(a(V).parent().removeClass("tab__item--active"),!E.selectedAriaDisabled)a:switch(E.selectedAriaType){case E.selectedAriaTypeText.selected:a(V).attr("aria-"+E.selectedAriaType,"false");break a;case E.selectedAriaTypeText.current:a(V).removeAttr("aria-"+E.selectedAriaType)}}),0>z||(C?this.setPosition(z,!1):this.setPosition(z),C||c(this.els.el,"tabSelect",this.index)))};t.prototype.selectTab=function(y){this.selectDisabled||(this.select(y),this.setPosition(y))};t.prototype.setPosition=function(y, 860C){var E=this;C=void 0===C?!0:C;var z=Math.max(0,parseInt(y)),V=this.els.tabListEl.getBoundingClientRect(),ca=this.els.tabItemTitleEls[z];if(ca){y=ca.getBoundingClientRect();var xa=this.els.tabListEl.getBoundingClientRect(),ea=C?this.duration:0;C=this.isUseArrow?this.els.el.querySelector(".tab__left-arrow-wrap").getBoundingClientRect().width||this.els.el.querySelector(".tab__right-arrow-wrap").getBoundingClientRect().width:0;var va=2>this.els.tabItemTitleEls.length?0:(this.isRtl?this.els.tabItemTitleEls[0].getBoundingClientRect().left- 861this.els.tabItemTitleEls[1].getBoundingClientRect().right:this.els.tabItemTitleEls[1].getBoundingClientRect().left-this.els.tabItemTitleEls[0].getBoundingClientRect().right)/2,na=C+va,bb=function(cb){cb=cb.getBoundingClientRect();return cb.right+na>V.right?(E.scrollTo(cb.right-V.right+na,ea),!0):cb.left-na<V.left?(E.scrollTo(-(V.left-cb.left+na),ea),!0):!1};C=function(){var cb=E.isRtl?-1:1,wa=E.els.tabItemTitleEls[z+cb],Sa=wa&&wa.getBoundingClientRect(),Ja=(cb=E.els.tabItemTitleEls[z-cb])&&cb.getBoundingClientRect(); 862Sa&&Sa.right+na>V.right?bb(wa):Ja&&Ja.left-na<V.left?bb(cb):bb(ca)};if("mobile"===n())switch(this.setPositionOption){case "center":this.scrollTo(y.left-xa.width/2+y.width/2,ea);break;case "start":this.isRtl?this.scrollTo(y.left-(xa.width-y.width)+na):this.scrollTo(y.left-na);break;default:bb(ca)}else"true"===this.intoScrollExtend?C():bb(ca)}};t.prototype.animate=function(y,C,E){var z=this,V=Date.now();this.isAnim=!0;this.isContentsDragging=!1;var ca=function(){var xa=(Date.now()-V)/C;1<xa?(y(1),z.isAnim= 863!1):(requestAnimationFrame(ca),y(E(xa)))};requestAnimationFrame(ca)};t.prototype.scrollTo=function(y,C){var E=this;C=void 0===C?this.duration:C;var z=f(this.els.tabListEl),V=this.els.tabListEl.scrollWidth-this.els.el.getBoundingClientRect().width;z+y>V&&(y=V-z);0>z+y&&(y=-z);V=function(ca){b(E.els.tabListEl,z+y*ca)};0<C?this.isAnim||this.animate(V,C,this.easing):V(1)};t.prototype.handleScroll=function(){this.isUseArrow&&this.setArrow();this.scrollEndTime&&clearTimeout(this.scrollEndTime);this.scrollEndTime= 864setTimeout(function(){r.setLazyLoad()},100)};t.prototype.getCurrentPixelSize=function(y){var C=h(),E=parseFloat(y),z="desktop-over"!==C;C=-1<C.indexOf("mobile")?360:1440;if(!isNaN(E))return z?parseFloat((y/C*window.innerWidth).toFixed(3)):y};t.prototype.setArrow=function(){if("desktop"===n()&&this.isUseArrow||this.isUseArrowMo&&this.isUseArrow){var y=this.els.tabListEl.scrollWidth-this.els.el.getBoundingClientRect().width,C=this.els.tabLeftArrowEl.parentElement,E=this.els.tabRightArrowEl.parentElement, 865z=f(this.els.tabListEl);4>z?(document.activeElement===this.els.tabLeftArrowEl&&this.els.tabRightArrowEl.focus(),C.classList.add("disabled"),this.els.tabLeftArrowEl.setAttribute("disabled",!0),this.els.tabLeftArrowEl.setAttribute("aria-disabled",!0),this.els.tabLeftArrowEl.setAttribute("tabindex",-1)):C.classList.contains("disabled")&&(C.classList.remove("disabled"),this.els.tabLeftArrowEl.removeAttribute("disabled"),this.els.tabLeftArrowEl.removeAttribute("aria-disabled"),this.els.tabLeftArrowEl.removeAttribute("tabindex")); 866z>y-4?(document.activeElement===this.els.tabRightArrowEl&&this.els.tabLeftArrowEl.focus(),E.classList.add("disabled"),this.els.tabRightArrowEl.setAttribute("disabled",!0),this.els.tabRightArrowEl.setAttribute("aria-disabled",!0),this.els.tabRightArrowEl.setAttribute("tabindex",-1)):E.classList.contains("disabled")&&(E.classList.remove("disabled"),this.els.tabRightArrowEl.removeAttribute("disabled"),this.els.tabRightArrowEl.removeAttribute("aria-disabled"),this.els.tabRightArrowEl.removeAttribute("tabindex"))}}; 867t.prototype.handleTabLeftArrowClick=function(){if("desktop"===n()&&this.isUseArrow||this.isUseArrowMo&&this.isUseArrow){for(var y=this.els.el.getBoundingClientRect().left+this.getCurrentPixelSize(56),C=-1,E=this.els.tabItemTitleEls.length,z=0;z<E;z++){var V=this.els.tabItemTitleEls[z].parentElement.getBoundingClientRect().left;if(!this.isRtl){if(V+4>y||z===E-1){C=z-1;break}}else if(V+4<y){C=z;break}}this.scrollTo(this.els.tabItemTitleEls[C].parentElement.getBoundingClientRect().left-y)}};t.prototype.handleTabRightArrowClick= 868function(){if("desktop"===n()&&this.isUseArrow||this.isUseArrowMo&&this.isUseArrow){for(var y=this.els.el.getBoundingClientRect().right-this.getCurrentPixelSize(56),C=-1,E=this.els.tabItemTitleEls.length,z=0;z<E;z++){var V=this.els.tabItemTitleEls[z].parentElement.getBoundingClientRect().right;if(!this.isRtl){if(V-4>y){C=z;break}}else if(V-4<y||z===E-1){C=z-1;break}}this.scrollTo(this.els.tabItemTitleEls[C].parentElement.getBoundingClientRect().right-y)}};t.prototype.handleKeydown=function(y){var C= 869this,E=y.currentTarget;if(E.matches(this.selector.focusable)){var z=[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).filter(function(ca){return ca.matches(C.selector.focusable)});E=z.indexOf(E);var V=this.isRtl?p.RIGHT:p.LEFT;y.keyCode===(this.isRtl?p.LEFT:p.RIGHT)||y.keyCode===p.DOWN?z[E+1]&&z[E+1].focus():(y.keyCode===V||y.keyCode===p.UP)&&z[E-1]&&z[E-1].focus()}};t.prototype.bindEvents=function(){var y=this;[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).forEac
869h(function(C, 870E){k(C,"click",function(){y.selectDisabled||y.select(E)});k(C,"keydown",function(z){y.handleKeydown(z)})});this.handleContentsDragStart=this.handleContentsDragStart.bind(this);this.handleContentsDrag=this.handleContentsDrag.bind(this);this.handleContentsDragEnd=this.handleContentsDragEnd.bind(this);this.els.el.addEventListener("mousedown",this.handleContentsDragStart);this.handleScroll=this.handleScroll.bind(this);this.handleTabLeftArrowClick=this.handleTabLeftArrowClick.bind(this);this.handleTabRightArrowClick= 871this.handleTabRightArrowClick.bind(this);this.els.tabListEl.addEventListener("scroll",this.handleScroll);this.isUseArrow&&(this.els.tabLeftArrowEl.addEventListener("click",this.handleTabLeftArrowClick),this.els.tabRightArrowEl.addEventListener("click",this.handleTabRightArrowClick));this.resize=this.resize.bind(this);window.addEventListener("resize",this.resize)};t.prototype.unBindEvents=function(){[].concat($jscomp.arrayFromIterable(this.els.tabItemTitleEls)).forEach(function(y){l(y,"click")});this.els.el.removeEventListener("mousedown", 872this.handleContentsDragStart);this.els.tabListEl.removeEventListener("scroll",this.handleScroll);this.isUseArrow&&(this.els.tabLeftArrowEl.removeEventListener("click",this.handleTabLeftArrowClick),this.els.tabRightArrowEl.removeEventListener("click",this.handleTabRightArrowClick));window.removeEventListener("resize",this.resize)};t.prototype.resize=function(){var y=n();this.device!==y&&(this.device=y,this.setPosition(this.index));this.setArrow()};t.prototype.handleContentsDragStart=function(y){if("mobile"=== 873n()||"desktop"===n()&&this.isUseArrow)this.dragStartTitle=y.target.closest(".tab__item-title"),this.startX=y.clientX+f(this.els.tabListEl),this.isContentsDragging=!0,this.diffX=0,document.addEventListener("mousemove",this.handleContentsDrag),document.addEventListener("mouseup",this.handleContentsDragEnd)};t.prototype.handleContentsDrag=function(y){if(!this.isAnim&&this.isContentsDragging){this.diffX=this.startX-(y.clientX+f(this.els.tabListEl));0!==this.diffX&&this.dragStartTitle&&"A"===this.dragStartTitle.tagName&& 874(this.dragStartTitle.style.pointerEvents="none");y=f(this.els.tabListEl)+this.diffX;var C=this.els.tabListEl.scrollWidth-this.els.el.getBoundingClientRect().width;0>y?y=0:y>C&&(y=C);b(this.els.tabListEl,y)}};t.prototype.handleContentsDragEnd=function(){this.isContentsDragging=!1;this.dragStartTitle&&(this.dragStartTitle.style.pointerEvents="auto");this.dragStartTitle=null;document.removeEventListener("mousemove",this.handleContentsDrag);document.removeEventListener("mouseup",this.handleContentsDragEnd)}; 875t.prototype.setSelectDisabled=function(y){this.selectDisabled=y};t.instances=new WeakMap;window.sg.components.registerClass("tab",t);var w={initAll:function(){for(var y=[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.tab:not([data-auto-init\x3d"false"])'))),C=[].concat($jscomp.arrayFromIterable(document.querySelectorAll('.static-content .tab:not([data-auto-init\x3d"false"])'))),E=0;E<y.length;E++){for(var z=y[E],V=!1,ca=0;ca<C.length;ca++)if(z===C[ca]){V=!0;break}V||t.instances.has(z)|| 876new t(z)}},init:function(y,C){t.instances.has(y)?(y=t.instances.get(y),y.reInit(C)):y=new t(y,C);return y},reInit:function(y,C){t.instances.has(y)?t.instances.get(y).reInit(C):new t(y,C)},selectTab:function(y,C){t.instances.has(y)&&t.instances.get(y).selectTab(C)},setSelectDisabled:function(y,C){t.instances.has(y)&&t.instances.get(y).setSelectDisabled(C)},destroy:function(y){t.instances.has(y)&&t.instances.get(y).destroy()}};window.sg.common.tab=w;a.ready(w.initAll)})(); 877(function(){function a(p){var r=p.getAttribute("aria-label");null!==r&&p.setAttribute("data-old-labeltxt",r);p.removeAttribute("aria-label")}function n(p){var r=p.getAttribute("data-old-labeltxt");null!==r&&p.setAttribute("aria-label",r);p.removeAttribute("data-old-labeltxt")}function h(p){p=void 0===p?null:p;l(b.start||".wishlist-popup").hide();f.window.off("keydown",g.focusLockPop);c.visibleScroll();p instanceof Element?p.focus():b.closefocus.focus();b.start=null;b.close=null;b.closefocus=null} 878function e(){f.window.off("keydown",g.hideBoxHover).on("keydown",g.hideBoxHover);f.component.off("click",g.clickBtn).on("click",g.clickBtn);f.component.target.forEach(function(p){var r=l(p);
878r.on("keydown",g.hideBoxEvent);r.on("click",g.showBoxEvent);r.on("blur",g.showBoxEvent);r.on("mouseleave",g.showBoxEvent);p.classList.contains("pd-wishlist-cta--on")?!0===p.hasAttribute("data-product-name")?p.setAttribute("aria-label",p.getAttribute("data-added-text")+" : "+p.getAttribute("data-product-name")): 879p.setAttribute("aria-label",p.getAttribute("data-added-text")):!0===p.hasAttribute("data-product-name")?p.setAttribute("aria-label",p.getAttribute("data-add-text")+" : "+p.getAttribute("data-product-name")):p.setAttribute("aria-label",p.getAttribute("data-add-text"))})}var c=window.sg.common.utils,k=window.sg.common.constants,l=window.sg.common.$q,f={component:null,window:l(window)},b={start:null,close:null,closefocus:null},g={clickBtn:function(p){p=l(p.currentTarget);var r=l(p.attr("data-div-id")|| 880"");if(!(0>=r.target.length)){var t=r.find(".wishlist-popup__close");b.start=r.target[0];b.close=t.target[0];b.closefocus=p;r.show();f.window.off("keydown",g.focusLockPop).on("keydown",g.focusLockPop);c.hiddenScroll();r.focus();t.off("click",h).on("click",h)}},hideBoxEvent:function(p){p.keyCode===window.sg.common.constants.KEY_CODE.ESC?a(p.currentTarget||p.target):p.keyCode===window.sg.common.constants.KEY_CODE.ENTER&&n(p.currentTarget||p.target)},hideBoxHover:function(p){p.keyCode===window.sg.common.constants.KEY_CODE.ESC&& 881(p=document.querySelector(".pd-wishlist-cta:hover"),null!==p&&a(p))},showBoxEvent:function(p){n(p.currentTarget||p.target)},focusLockPop:function(p){p.keyCode===k.KEY_CODE.TAB&&(b.close===document.activeElement&&!1===p.shiftKey?(p.preventDefault(),b.start.focus()):b.start===document.activeElement&&!0===p.shiftKey&&(p.preventDefault(),b.close.focus()))}};window.sg.components.wishlistIcon={reInit:function(){f.component=l(".pd-wishlist-cta");e()},closeWishlistPop:h};l.ready(function(){f.component=l(".pd-wishlist-cta"); 882e()})})();var SITE_CD="";SITE_CD=""!==$("#siteCode").val()&&void 0!==$("#siteCode").val()?$("#siteCode").val():"sec";var USE_ESTORE=!0,DOMAIN="";DOMAIN=""!==$("#domain").val()&&void 0!==$("#domain").val()?$("#domain").val():"www.samsung.com";var STORE_DOMAIN="";"N"===$("#useStore").val()&&(USE_ESTORE=!1);STORE_DOMAIN=""!==$("#storeDomain").val()?$("#storeDomain").val():location.protocol+"shop.samsung.com"; 883var STORE_SITE_CODE=$("#store_sitecode").val(),IS_B2B="Y"===$("#b2bFlag").val()?!0:!1,IS_EPP=checkEppSite(),EPP_COMPANYCODE="";null!=window.sg&&null!=window.sg.epp&&null!=window.sg.epp.common&&(EPP_COMPANYCODE=window.sg.epp.common.companyCode);var SEC_LOCAL_URL_CHECKMEMBERSTATE="http://local.sec.samsung.com/comLocal/checkMemberStateAjax.do",SEC_LOCAL_URL_SIGNIN="http://local.sec.samsung.com/comLocal/loginCheck.do",login_user_info={};$("#signInForm input[name\x3ddomain]").val(DOMAIN);$("#joinForm input[name\x3ddomain]").val(DOMAIN); 884$("#findAccountForm input[name\x3ddomain]").val(DOMAIN);(function(a,n){a(function(){a(".layer_popup .close, .layer_popup .icon-close-x, .layer_popup .alert-ok-button").click(function(){"close"===a(this).data("popup")&&a(".accesseFocusTarget").trigger("focus");a(".layer_popup").hide();a(".lightbox-skrim").hide();return!1})})})(jQuery,window); 885$.cookies.data={SEARCH_NAME:"sk",ACCESSORY_SEARCH_NAME:"ask",NAVIGATION_NAME:"nh",PRIVATECODE_NAME:"pv",COMPARELIST_NAME:"cl",WISHLIST_NAME:"wl",INSTORE_PRIVATECODE_NAME:"ipv",STORE_REGION_NUM:"cnregionnum",STORE_REGION_CODE:"cnregion",STORE_REGION_NAME:"cnregionname",STORE_CITY_NUM:"cncitynamenum",STORE_CITY_CODE:"cncity",STORE_CITY_NAME:"cncityname",SEARCH_MAX_SIZE:4,PRIVATECODE_MAX_SIZE:5,WISHLIST_MAX_SIZE:6,STORE_REGION_MAX_SIZE:1,STORE_CITY_MAX_SIZE:1};var CONTENT="/content/samsung"; 886$.cookies.getDefaultOption=function(a,n){a&&a instanceof Date||(a=new Date,a.setTime(a.getTime()+864E5));n?-1<window.location.pathname.indexOf(CONTENT)&&(n=CONTENT+n):n="/";var h=".samsung.com";"cn"===SITE_CD&&(h=".samsung.com.cn");return{expiresAt:a,path:n,domain:h,secure:!1}};$.cookies.setWishList=function(a,n){var h=this.data.WISHLIST_NAME,e=this.get(h);if(e){if(0<=$.inArray(a,e))return;e.length>=this.data.WISHLIST_MAX_SIZE&&e.splice(0,1);e.push(a)}else e=[a];this.set(h,e,this.getDefaultOption(n))}; 887$.cookies.getWishListCnt=function(){var a=this.get(this.data.WISHLIST_NAME);return a&&$.isArray(a)?a.length:0};$.cookies.getWishList=function(){var a=this.get(this.data.WISHLIST_NAME);return a&&$.isArray(a)?a:[]};$.cookies.isAddedWishList=function(a){var n=this.get(this.data.WISHLIST_NAME);if(n&&$.isArray(n))for(var h=0,e=n.length;h<e;h++)if(n[h]===a)return!0;return!1}; 888$.cookies.deleteWishProduct=function(a,n){var h=this.data.WISHLIST_NAME,e=this.get(h);return e&&$.isArray(e)&&(a=$.inArray(a,e),0<=a)?(e.splice(a,1),0>=e.length?this.del(h,this.getDefaultOption(n)):this.set(h,e,this.getDefaultOption(n)),!0):!1};$.cookies.deleteWishList=function(a){this.del(this.data.WISHLIST_NAME,this.getDefaultOption(a))}; 889try{if(!$.cookies.get("cookie_country")||""===$.cookies.get("cookie_country"))$.cookies.set("cookie_country",SITE_CD,$.cookies.getDefaultOption());else if(SITE_CD!==$.cookies.get("cookie_country")){var deleteOption=$.cookies.getDefaultOption();$.cookies.del($.cookies.data.NAVIGATION_NAME,deleteOption);$.cookies.del($.cookies.data.PRIVATECODE_NAME,deleteOption);$.cookies.del($.cookies.data.COMPARELIST_NAME,deleteOption);$.cookies.del($.cookies.data.WISHLIST_NAME,deleteOption);$.cookies.del($.cookies.data.INSTORE_PRIVATECODE_NAME, 890deleteOption);$.cookies.set("cookie_country",SITE_CD,$.cookies.getDefaultOption())}}catch(a){}var ss=$; 891(function(a){ss.EstoreIfQueue={setQueue:function(n){var h=a.cookies.get("iPlanetDirectoryPro",{domain:".samsung.com"}),e=a.cookies.get("snsSessionId",{domain:".samsung.com"});h||e?USE_ESTORE?this.getIsSignReady()?this.callFunction(n,arguments):this.queue.push(arguments):this.callFunction(n,arguments):this.callFunction(n,arguments)},callFunction:function(n,h){if(n&&"function"==typeof n){for(var e=[],c=1;c<h.length;c++)e.push(h[c]);n.apply(null,e)}},setIsSignReady:function(n){this.isSignReady=n;if(!0=== 892n||"true"===n)for(n=0;n<this.queue.length;n++)this.queue[n].length&&this.callFunction(this.queue[n][0],this.queue[n])},getIsSignReady:function(){return this.isSignReady}
892,setProperties:function(){this.isSignReady=!1;this.queue=[]},init:function(){this.setProperties()}};ss.EstoreIfQueue.init()})(jQuery); 893var estore=function(){var a=function(c){var k="?",l=0,f;for(f in c){0!=l&&(k+="\x26");var b=c[f];$.isArray(b)?$.each(b,function(g,p){k+=f+"\x3d"+p;g<b.length-1&&(k+="\x26")}):k+=f+"\x3d"+b;l++}return k},n=function(c){var k=$("#popup_alert");k.find(".msg-text").html(c);"sec"===SITE_CD&&k.find(".pop-btn").find(".button").text("\ud655\uc778");$(".layer_popup").hide();k.parent().show();"sec"===SITE_CD?$(".lightbox-skrim").show():$(".lightbox-skrim").hide();c=parseInt(($("body").width()-k.width())/2); 894var l=parseInt($(window).scrollTop()+($(window).height()-k.height())/2);$(window).height()<k.height()&&(l=$(window).scrollTop()+10);k.css({top:l+"px",left:c+"px"});$("#popup_alert .popup_wrap .pop-btn").find("a").focus()},h=function(c,k,l){var f=!1;-1<location.href.indexOf("/consumer")&&(f=!0);var b=$("#hybrisApiJson").val(),g="Hybris-new"===$("#shopIntegrationFlag").val()?!0:!1,p="Hybris-intg"===$("#shopIntegrationFlag").val()?!0:!1,r="Hybris"===$("#shopIntegrationFlag").val()?!0:!1,t=$("#newHyvStoreDomain").val(), 895w="";if("ae"==SITE_CD||"ae_ar"==SITE_CD){var y=$.cookies.get("estoreSitecode")?$.cookies.get("estoreSitecode").toString():"";w=fnIsNull(y)?SITE_CD:y}else"levant"==SITE_CD?w="jo":"levant_ar"==SITE_CD?w="jo_ar":"n_africa"==SITE_CD&&(w="ma");IS_EPP&&""!=w&&(w=EPP_COMPANYCODE);var C=IS_EPP?EPP_COMPANYCODE:STORE_SITE_CODE;y=IS_EPP?EPP_COMPANYCODE:SITE_CD;var E="";"addCart"===c&&("ar"===SITE_CD||"br"===SITE_CD?(E=STORE_DOMAIN+"/"+SITE_CD+"/getServicesProduct"+(k?a(k):""),window.location.href=E):"py"=== 896SITE_CD&&(E=STORE_DOMAIN+"/getServicesProduct"+(k?a(k):""),window.location.href=E));(g||p||r||IS_B2B)&&"getCartCount"===c?E=IS_B2B?STORE_DOMAIN+"/tokocommercewebservices/v2/"+C+"/minicart/totalProducts":g?""!=w?STORE_DOMAIN+"/tokocommercewebservices/v2/"+w+"/minicart/totalProducts":STORE_DOMAIN+"/tokocommercewebservices/v2/"+C+"/minicart/totalProducts":""!=w?t+"/tokocommercewebservices/v2/"+w+"/minicart/totalProducts":t+"/tokocommercewebservices/v2/"+C+"/minicart/totalProducts":"ar"!==SITE_CD&&"br"!== 897SITE_CD||"getCartCount"!==c?"py"===SITE_CD?E="getCartCount"===c&&"py"===SITE_CD?STORE_DOMAIN+"/_v/private/ng/p4v1/"+c+(k?a(k):""):STORE_DOMAIN+"/ng/p4v1/"+c+(k?a(k):""):""!=w?E=STORE_DOMAIN+"/"+w+"/ng/p4v1/"+c+(k?a(k):""):g&&"uk"!=SITE_CD&&"cn"!=SITE_CD||IS_B2B?(t=$("#storeWebDomain").val(),E=t+"/"+y+"/ng/p4v1/"+c+(k?a(k):""),IS_B2B&&(E=t+"/ng/p4v1/"+c+(k?a(k):""))):E=STORE_DOMAIN+"/"+C+"/ng/p4v1/"+c+(k?a(k):""):E=STORE_DOMAIN+"/"+SITE_CD+"/_v/private/ng/p4v1/"+c+(k?a(k):"");(g||p||r||IS_B2B)&&"getCartCount"=== 898c?""!=E&&$.ajax({url:E,type:"GET",dataType:"json",crossDomain:!0,xhrFields:{withCredentials:!0},success:function(z){$.isFunction(l)&&("undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isPlatformReady()&&shopAppUtilInstance.updateCartCount(z),l(z))}}):"getRealTimeProductSimpleInfo"===c&&f&&"br"!==SITE_CD&&"Y"!==b?$.ajax({url:E,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584",jsonp:"callback",success:function(z){"2100"===z.resultCode||2100===z.resultCode? 899k&&k.hasOwnProperty("returnUrl")&&""!==k.returnUrl?$.Auth.signOut(k.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode|| 9009E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||"2002"===z.resultCode||2002===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==z.resultCode&&"9000"!==z.resultCode&&"9001"!==z.resultCode&&"9002"!==z.resultCode&&9E3!==z.resultCode&&9001!==z.resultCode&&9002!==z.resultCode&&"2110"!==z.resultCode&&2110!==z.resultCode&&n(z.resultMessage):n(z.resultMessage): 901n(z.resultMessage);$.isFunction(l)&&l(z)},error:function(z,V,ca){}}):"getRealTimeProductSimpleInfo"===c&&"sec"===SITE_CD?$.ajax({url:E,type:"GET",dataType:"jsonp",jsonpCallback:"jQuery1910499421933433041_1385598221584",jsonp:"callback",timeout:1E4,success:function(z){"2100"===z.resultCode||2100===z.resultCode?k&&k.hasOwnProperty("returnUrl")&&""!==k.returnUrl?$.Auth.signOut(k.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"=== 902z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||"2002"===z.resultCode||2002===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&& 903"3"!==z.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==z.resultCode&&"9000"!==z.resultCode&&"9001"!==z.resultCode&&"9002"!==z.resultCode&&9E3!==z.resultCode&&9001!==z.resultCode&&9002!==z.resultCode&&"2110"!==z.resultCode&&2110!==z.resultCode&&n(z.resultMessage):(-1!==z.resultMessage.indexOf("\uad6c\ub9e4 \ud55c\ub3c4\ub97c \ucd08\uacfc\ud558\uc5ec \uad6c\ub9e4\uac00 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.\x3cbr /\x3e")&&(z.resultMessage="\uad6c\ub9e4 \ud55c\ub3c4"+z.resultMessage.split("\uad6c\ub9e4 \ud55c\ub3c4")[1].replace("\x3cbr /\x3e", 904"\n")),n(z.resultMessage)):n(z.resultMessage);$.isFunction(l)&&l(z)},error:function(z,V,ca){"au"!==SITE_CD&&"nz"!==SITE_CD&&"sec"!==SITE_CD||window.location.pathname!=="/"+SITE_CD+"/wishlist"||l();"sec"===SITE_CD&&"timeout"===ca&&$("#product-detail-current-modelcode").val()&&($("#BT_shop .BT_txt").html("\ud574\ub2f9 \uc0c1\ud488\uc744 \ud310\ub9e4 \uc900\ube44\ud558\uace0 \uc788\uc2b5\ub2c8\ub2e4. \uad6c\ub9e4 \uac00\ub2a5 \uc5ec\ubd80\ub294\x3cbr /\x3e\uac00\uae4c\uc6b4 \ub9e4\uc7a5\uc774\ub098 \uc0bc\uc131\uc804\uc790 \uacf5\uc2dd \ud310\ub9e4\ucc98\uc5d0 \ubb38\uc758\ud558\uc2dc\uae30 \ubc14\ub78d\ub2c8\ub2e4."), 905$("#BT_shop").show(),$("#BT_shop .product-details__link.s-cta-retailer.js-cta-buy-sec").hide(),$("#BT_shop .BT_help").hide(),$("#BT_shop .BT_help-content").hide(),$("#BT_shop .BT_txt").show(),$("#find-store-shopmain").show(),$("#store-reservation").hide())}}):"getRealTimeProductSimpleInfo"===c&&f&&"Y"===b?$.ajax({url:E,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(z){"2100"===z.resultCode||2100===z.resultCode? 906k&&k.hasOwnProperty("returnUrl")&&""!==k.returnUrl?$.Auth.signOut(k.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode|| 9079E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||"2002"===z.resultCode||2002===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==z.resultCode&&"9000"!==z.resultCode&&"9001"!==z.resultCode&&"9002"!==z.resultCode&&9E3!==z.resultCode&&9001!==z.resultCode&&9002!==z.resultCode&&"2110"!==z.resultCode&&2110!==z.resultCode&&n(z.resultMessage):n(z.resultMessage): 908n(z.resultMessage);$.isFunction(l)&&l(z)},error:function(z,V,ca){}}):"getRealTimeProductSimpleInfo"===c||f||"Y"!==b?$.ajax({url:E,type:"GET",dataType:"jsonp",jsonp:"callback",success:function(z){"2100"===z.resultCode?k&&k.hasOwnProperty("returnUrl")&&""!==k.returnUrl?$.Auth.signOut(k.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode|| 9092110===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||"2002"===z.resultCode||2002===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==z.resultCode&& 910"9000"!==z.resultCode&&"9001"!==z.resultCode&&"9002"!==z.resultCode&&9E3!==z.resultCode&&9001!==z.resultCode&&9002!==z.resultCode&&"2110"!==z.resultCode&&2110!==z.resultCode&&n(z.resultMessage):(-1!==z.resultMessage.indexOf("\uad6c\ub9e4 \ud55c\ub3c4\ub97c \ucd08\uacfc\ud558\uc5ec \uad6c\ub9e4\uac00 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.\x3cbr /\x3e")&&(z.resultMessage="\uad6c\ub9e4 \ud55c\ub3c4"+z.resultMessage.split("\uad6c\ub9e4 \ud55c\ub3c4")[1].replace("\x3cbr /\x3e","\n")),n(z.resultMessage)): 911n(z.resultMessage);$.isFunction(l)&&l(z)},error:function(z,V,ca){"au"!==SITE_CD&&"nz"!==SITE_CD&&"sec"!==SITE_CD||window.location.pathname!=="/"+SITE_CD+"/wishlist"||l()}}):$.ajax({url:E,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(z){"2100"===z.resultCode||2100===z.resultCode?k&&k.hasOwnProperty("returnUrl")&&""!==k.returnUrl?$.Auth.signOut(k.returnUrl):$.Auth.signOut():"cn"!==SITE_CD||"0000"===z.resultCode|| 912"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"sec"!==SITE_CD||"0000"===z.resultCode||"9000"===z.resultCode||"9001"===z.resultCode||"9002"===z.resultCode||9E3===z.resultCode||9001===z.resultCode||9002===z.resultCode||"2110"===z.resultCode||2110===z.resultCode||"2002"===z.resultCode||2002=== 913z.resultCode||4!==z.resultCode.length||"2"!==z.resultCode.charAt(0)&&"3"!==z.resultCode.charAt(0)?"cn"!==SITE_CD&&"sec"!==SITE_CD&&"0000"!==z.resultCode&&"9000"!==z.resultCode&&"9001"!==z.resultCode&&"9002"!==z.resultCode&&9E3!==z.resultCode&&9001!==z.resultCode&&9002!==z.resultCode&&"2110"!==z.resultCode&&2110!==z.resultCode&&n(z.resultMessage):(-1!==z.resultMessage.indexOf("\uad6c\ub9e4 \ud55c\ub3c4\ub97c \ucd08\uacfc\ud558\uc5ec \uad6c\ub9e4\uac00 \ubd88\uac00\ub2a5\ud569\ub2c8\ub2e4.\x3cbr /\x3e")&& 914(z.resultMessage="\uad6c\ub9e4 \ud55c\ub3c4"+z.resultMessage.split("\uad6c\ub9e4 \ud55c\ub3c4")[1].replace("\x3cbr /\x3e","\n")),n(z.resultMessage)):n(z.resultMessage);$.isFunction(l)&&l(z)},error:function(z,V,ca){"au"!==SITE_CD&&"nz"!==SITE_CD&&"sec"!==SITE_CD||window.location.pathname!=="/"+SITE_CD+"/wishlist"||l()}})},e=function(){};e.prototype.makeBuyNowCookie=function(c){$.EstoreIfQueue.setQueue(h,"makeBuyNowCookie",null,c)};e.prototype.addCart=function(c,k){$.EstoreIfQueue.setQueue(h,"addCart", 915c,k)};e.prototype.getCartCount=function(c){$.EstoreIfQueue.setQueue(h,"getCartCount",null,c)};e.prototype.getRealTimeProductSimpleInfo=function(c,k){$.EstoreIfQueue.setQueue(h,"getRealTimeProductSimpleInfo",c,k)};e.prototype.getRealTimeProductListInfo=function(c,k){$.EstoreIfQueue.setQueue(h,"getRealTimeProductListInfo",c,k)};e.prototype.addWishListItem=function(c,k){$.EstoreIfQueue.setQueue(h,"addWishListItem",c,k)};e.prototype.addWishListItemForce=function(c,k){h("addWishListItem",c,k)};e.prototype.delWishListItem= 916function(c,k){$.EstoreIfQueue.setQueue(h,"delWishListItem",c,k)};e.prototype.getWishList=function(c,k){var l={page:1,pageSize:5};c&&!$.isFunction(c)&&(l=$.extend(l,c));$.EstoreIfQueue.setQueue(h,"getWishList",l,k)};e.prototype.login=function(c){$.EstoreIfQueue.setQueue(h,"login",null,c)};e.prototype.logout=function(c,k){$.EstoreIfQueue.setQueue(h,"logout",c,k)};e.prototype.getRealTimeWishProductListInfo=function(c,k){$.EstoreIfQueue.setQueue(h,"getRealTimeWishProductListInfo",c,k)};e.prototype.getGuestOrderExistYn= 917function(c,k){$.EstoreIfQueue.setQueue(h,"getGuestOrderExistYn",c,k)};e.prototype.getSnsUserInfo=function(c,k){$.EstoreIfQueue.setQueue(h,"getSnsUserInfo",c,k)};e.prototype.setAgreeStorePolicy=function(c,k){$.EstoreIfQueue.setQueue(h,"setAgreeStorePolicy",c,k)};e.prototype.getSessionCheck=function(c,k){$.EstoreIfQueue.setQueue(h,"getSessionCheck",c,k)};e.prototype.getEstoreCategoryList=function(c){$.EstoreIfQueue.setQueue(h,"getEstoreCategoryList",null,c)};e.prototype.getCurrentUserInfo=function(c, 918k){$.EstoreIfQueue.setQueue(h,"getCurrentUserInfo",c,k)};e.prototype.buyNow=function(c,k){$.EstoreIfQueue.setQueue(h,"buyNow",c,k)};e.prototype.getReviews=function(c,k){$.EstoreIfQueue.setQueue(h,"getReviewList",c,k)};e.prototype.getMyReview=function(c,k){$.EstoreIfQueue.setQueue(h,"getMyReview",c,k)};e.prototype.addReview=function(c,k){$.EstoreIfQueue.setQueue(h,"addReview",c,k)};e.prototype.updateReview=function(c,k){$.EstoreIfQueue.setQueue(h,"updateReview",c,k)};e.prototype.deleteReview=function(c, 919k){$.EstoreIfQueue.setQueue(h,"deleteReview",c,k)};e.prototype.addReviewHelpful=function(c,k){$.EstoreIfQueue.setQueue(h,"setReviewHelpful",c,k)};e.prototype.addReviewHelpful=function(c,k){$.EstoreIfQueue.setQueue(h,"setReviewHelpful",c,k)};e.prototype.addReviewUnHelpful=function(c,k){$.EstoreIfQueue.setQueue(h,"setReviewUnHelpful",c,k)};e.prototype.addReviewAbuse=function(c,k){$.EstoreIfQueue.setQueue(h,"setReviewAbuse",c,k)};e.prototype.getExpertReviewList=function(c,k){$.EstoreIfQueue.setQueue(h, 920"getExpertReviewList",c,k)};e.prototype.getProductDetailRegion=function(c,k){$.EstoreIfQueue.setQueue(h,"getProductDetailRegion",c,
920k)};e.prototype.getProductDetailCity=function(c,k){$.EstoreIfQueue.setQueue(h,"getProductDetailCity",c,k)};e.prototype.showProductOpenphoneOption=function(c,k){$.EstoreIfQueue.setQueue(h,"showProductOpenphoneOption",c,k)};e.prototype.preCalc=function(c,k){$.EstoreIfQueue.setQueue(h,"preCalc",c,k)};e.prototype.preCalcApply=function(c,k){$.EstoreIfQueue.setQueue(h,"preCalcApply", 921c,k)};e.prototype.stores=function(c,k){$.EstoreIfQueue.setQueue(h,"stores",c,k)};e.prototype.getReviewStatus=function(c,k){$.EstoreIfQueue.setQueue(h,"getReviewStatus",c,k)};e.prototype.addViewCount=function(c,k){$.EstoreIfQueue.setQueue(h,"addViewCount",c,k)};return new e}(); 922(function(){function a(){n(l.section).target.forEach(function(b){f.instances.has(b)||new f(b)})}var n=window.sg.common.$q,h=window.sg.common.utils,e=window.sg.common.lazyLoad,c=window.sg.common.constants.KEY_CODE,k=window.sg.common.swiperManager,l={section:".nv00-gnb-v4"},f=function(b){this.selector={header:".nv00-gnb-v4__header",container:".nv00-gnb-v4__container",containerInner:".nv00-gnb-v4__container-inner",featuredWrap:".nv00-gnb-v4__featured-wrap",featuredSwiper:".nv00-gnb-v4__featured-list", 923featuredSwiperSlide:".nv00-gnb-v4__featured-item",featuredSwiperIndicator:".nv00-gnb-v4__featured-list .screen-indicator-wrap",l0MenuList:".nv00-gnb-v4__l0-menu-list",l0MenuListRight:".nv00-gnb-v4__l0-menu-list--right",l0Menu:".nv00-gnb-v4__l0-menu",l0MenuItem:'[data-js-action\x3d"l0MenuBtn"]',l0MenuTitle:".nv00-gnb-v4__l0-menu-title",l0MenuBtn:".nv00-gnb-v4__l0-menu-btn",l0MenuLink:".nv00-gnb-v4__l0-menu-link",l0MenuToggleBtn:".nv00-gnb-v4__l0-menu-toggle-btn",l1MenuContainer:".nv00-gnb-v4__l1-menu-container", 924l1MenuInner:".nv00-gnb-v4__l1-menu-inner",l1MenuList:".nv00-gnb-v4__l1-menu-list",l1MenuItem:".nv00-gnb-v4__l1-menu-btn, .nv00-gnb-v4__l1-menu-link",l1MenuAccordion:'.nv00-gnb-v4__l1-menu [data-js-action\x3d"accordionBtn"]',l2FeaturedAccordionContainer:'.nv00-gnb-v4__l2-featured-container[data-js-action\x3d"accordionContainer"]',l2FeaturedLink:".nv00-gnb-v4__l2-featured-link",utilityList:".nv00-gnb-v4__utility-list",utilityUserWrap:".nv00-gnb-v4__utility-wrap",utilityUserBtn:".nv00-gnb-v4__utility-user", 925utilityUserList:".nv00-gnb-v4__utility-menu-list",utilityMenuWrap:".nv00-gnb-v4__utility-menu-wrap",mobileExpandMenuButton:".nv00-gnb-v4__utility-hamburger",mobileExpandCloseButton:".nv00-gnb-v4__close-btn",mobileContainerHeader:".nv00-gnb-v4__container-header",mobileContainerHeaderSearch:".nv00-gnb-v4__container-header .nv00-gnb-v4__search",mobileL0MenuBtn:'[data-js-action\x3d"l0MenuBtn"]',mobileBackwardBtn:".nv00-gnb-v4__backward-btn",mobileLeftMenuList:".nv00-gnb-v4__mo-left-menu-list",l0AccordionList:".nv00-gnb-v4__accordion-list", 926accordionBtn:'[data-js-action\x3d"accordionBtn"]',accordionWrap:'[data-js-action\x3d"accordionWrap"]',accordionContainer:'[data-js-action\x3d"accordionContainer"]',accordionInner:'[data-js-action\x3d"accordionInner"]',dimm:".nv00-gnb-v4__dim",layerPopup:".layer-popup",layerPopupWrap:".nv00-gnb-v4__layer-popup-wrap",layerPopupOpenButton:".js-layer-open",layerPopupCloseButton:".layer-popup__close",layerPopupLoopingStart:".nv00-gnb-v4__layer-popup-looping--start",layerPopupLoopingEnd:".nv00-gnb-v4__layer-popup-looping--end", 927heroKv:".hd08-hero-kv-home"};this.classes={textType:"nv00-gnb-v4--text-type",gnbShow:"nv00-gnb-v4--show",gnbOpended:"nv00-gnb-v4--opended",gnbl1MenuShow:"nv00-gnb-v4--l1-show",l0MenuShow:"nv00-gnb-v4__l0-menu--show",l0MenuBannerType:"nv00-gnb-v4__l0-menu--type-banner",l0MenuListShow:"nv00-gnb-v4__l0-menu-list--show",l1MenuShow:"nv00-gnb-v4__l1-menu--show",l1MenuGroupType:"nv00-gnb-v4__l1-menu-inner--group",featuredTextType:"nv00-gnb-v4__l1-featured-list--text",accordionActive:"nv00-gnb-v4__accordion--active", 928userMenuShow:"nv00-gnb-v4__utility-wrap--show",fixed:"nv00-gnb-v4--fixed",down:"nv00-gnb-v4--down",shyLight:"nv00-gnb-v4--shy-light",shyDark:"nv00-gnb-v4--shy-dark",mobileOnly:"nv00-gnb-v4--mobile-only",l2FeaturedLinkHide:"nv00-gnb-v4__l2-featured-link--hide",popupLooping:"layer-popup__looping"};this.el={section:n(b),window:n(window)};this.currentDevice=null;this.stickyMode=!1;this.shyTheme=null;this.scrollTop=window.scrollY;this.navRightMenuTop=this.navOffsetTop=0;this.isDimClick=this.isTextType= 929this.isTouchScreen=!1;this.resizeTimer=this.swiper=null;if("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch||0<navigator.maxTouchPoints||0<window.navigator.msMaxTouchPoints)this.isTouchScreen=!0;this.menuOpenTimeout=this.menuEnterTimeout=null;this.isKeydown=this.isLeaveAfterTouch=this.isTouch=this.isActiveMenuOpen=this.isRightpcMenuOpen=!1;this.handler={resize:this.resize.bind(this),scroll:this.scroll.bind(this),mousewheel:this.mousewheel.bind(this),keydown:this.keydown.bind(this), 930handleSticky:this.handleSticky(this),handleMenuMouseEnter:this.handleMenuMouseEnter.bind(this),handleMenuMouseLeave:this.handleMenuMouseLeave.bind(this),hanledMenuListMouseLeave:this.hanledMenuListMouseLeave.bind(this),handleMenuToggleClick:this.handleMenuToggleClick.bind(this),handleMenuToggleKeydown:this.handleMenuToggleKeydown.bind(this),handleMenuLinkClick:this.handleMenuLinkClick.bind(this),handleMenuLinkKeydown:this.handleMenuLinkKeydown.bind(this),handleLeaveFirstFocus:this.handleLeaveFirstFocus.bind(this), 931handleMobileGnbOpen:this.handleMobileGnbOpen.bind(this),handleMobileGnbClose:this.handleMobileGnbClose.bind(this),handleMobileMenuOpen:this.handleMobileMenuOpen.bind(this),handleMobileMenuClose:this.handleMobileMenuClose.bind(this),handleUtilityMouseEnter:this.handleUtilityMouseEnter.bind(this),handleAccordionToggle:this.handleAccordionToggle.bind(this),handleAccordionKeydown:this.handleAccordionKeydown.bind(this),handleUserMenuMouseEnter:this.handleUserMenuMouseEnter.bind(this),handleUserMenuMouseLeave:this.handleUserMenuMouseLeave.bind(this), 932handleUserMenuKeydown:this.handleUserMenuKeydown.bind(this),handleCheckClickDim:this.handleCheckClickDim.bind(this),handleClickDim:this.handleClickDim.bind(this),openLayerPopup:this.openLayerPopup.bind(this),closeLayerPopup:this.closeLayerPopup.bind(this)};this.init();f.instances.set(b,this)};f.prototype.init=function(){this.currentDevice=this.getCurrentDevice();this.setElements();this.setAccessbility();this.setL1MenuHeight();this.reInitL2Featured();this.initSwiper();this.setShyGNB();this.setScrollPaddingTop(); 933this.bindEvent();this.resize()};f.prototype.reInit=function(){this.init()};f.prototype.reInitL2Featured=function(){var b=this;this.el.l0Menu.target.forEach(function(g){if(n(g).find(b.selector.l2FeaturedAccordionContainer).target.length){var p=n(g).find(b.selector.l2FeaturedLink+":not(."+b.classes.mobileOnly+")");g=n(g).find("."+b.classes.featuredTextType).target.length?p.target.slice(10):p.target.slice(8);p.removeClass(b.classes.l2FeaturedLinkHide);n(g).addClass(b.classes.l2FeaturedLinkHide)}})}; 934f.prototype.setElements=function(){this.el.header=this.el.section.find(this.selector.header);this.el.container=this.el.section.find(this.selector.container);this.el.containerInner=this.el.section.find(this.selector.containerInner);this.el.featuredWrap=this.el.section.find(this.selector.featuredWrap);this.el.featuredSwiper=this.el.section.find(this.selector.featuredSwiper);this.el.featuredSwiperSlide=this.el.section.find(this.selector.featuredSwiperSlide);this.el.featuredSwiperIndicator=this.el.section.find(this.selector.featuredSwiperIndicator); 935this.el.l0MenuList=this.el.section.find(this.selector.l0MenuList);this.el.l0Menu=this.el.section.find(this.selector.l0Menu);this.el.l0MenuTitle=this.el.section.find(this.selector.l0MenuTitle);this.el.l0MenuItem=this.el.section.find(this.selector.l0MenuItem);this.el.l0MenuBtn=this.el.section.find(this.selector.l0MenuBtn);this.el.l0MenuLink=this.el.section.find(this.selector.l0MenuLink);this.el.l0MenuToggleBtn=this.el.section.find(this.selector.l0MenuToggleBtn);this.el.l1MenuContainer=this.el.section.find(this.selector.l1MenuContainer); 936this.el.l1MenuInner=this.el.section.find(this.selector.l1MenuInner);this.el.l1MenuAccordion=this.el.section.find(this.selector.l1MenuAccordion);this.el.l2FeaturedAccordionContainer=this.el.section.find(this.selector.l2FeaturedAccordionContainer);this.el.l2FeaturedLink=this.el.section.find(this.selector.l2FeaturedLink);this.el.utilityList=this.el.section.find(this.selector.utilityList);this.el.dimm=this.el.section.find(this.selector.dimm);this.el.utilityUserWrap=this.el.section.find(this.selector.utilityUserWrap); 937this.el.utilityUserBtn=this.el.section.find(this.selector.utilityUserBtn);this.el.utilityUserList=this.el.section.find(this.selector.utilityUserList);this.el.mobileExpandMenuButton=this.el.section.find(this.selector.mobileExpandMenuButton);this.el.mobileExpandCloseButton=this.el.section.find(this.selector.mobileExpandCloseButton);this.el.mobileContainerHeader=this.el.section.find(this.selector.mobileContainerHeader);this.el.mobileContainerHeaderSearch=this.el.section.find(this.selector.mobileContainerHeaderSearch); 938this.el.mobileL0MenuBtn=this.el.section.find(this.selector.mobileL0MenuBtn);this.el.mobileBackwardBtn=this.el.section.find(this.selector.mobileBackwardBtn);this.el.mobileLeftMenuList=this.el.section.find(this.selector.mobileLeftMenuList);this.el.l0AccordionList=this.el.section.find(this.selector.l0AccordionList);this.el.accordionWrap=this.el.section.find(this.selector.accordionWrap);this.el.accordionBtn=this.el.section.find(this.selector.accordionBtn);this.el.accordionContainer=this.el.section.find(this.selector.accordionContainer); 939this.el.accordionInner=this.el.section.find(this.selector.accordionInner);this.el.layerPopupOpenButton=this.el.section.find(this.selector.layerPopupOpenButton);this.el.layerPopupWrap=this.el.section.find(this.selector.layerPopupWrap);this.el.layerPopupLoopingStart=this.el.section.find(this.selector.layerPopupLoopingStart);this.el.layerPopupLoopingEnd=this.el.section.find(this.selector.layerPopupLoopingEnd);this.el.section.hasClass(this.classes.textType)&&(this.isTextType=!0)};f.prototype.bindEvent= 940function(){var b=this;"mobile"===this.getCurrentDevice()?this.bindMobileEvents():this.bindDesktopEvents();this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize);this.el.window.off("scroll",this.handler.scroll).on("scroll",this.handler.scroll);this.el.window.off("mousewheel",this.handler.mousewheel).on("mousewheel",this.handler.mousewheel);this.el.dimm.off("click",this.handler.handleMobileGnbClose).on("click",this.handler.handleMobileGnbClose);this.el.layerPopupOpenButton.target.forEach(function(g){n(g).off("
940click").on("click", 941function(){return b.handler.openLayerPopup(g.dataset.targetPopup)})})};f.prototype.bindMobileEvents=function(){this.el.window.off("keydown",this.handler.keydown);this.el.l0MenuToggleBtn.off("click",this.handler.handleMenuToggleClick);this.el.l0MenuToggleBtn.off("keydown",this.handler.handleMenuToggleKeydown);this.el.l0MenuBtn.off("click",this.handler.handleMenuToggleClick);this.el.l0MenuBtn.off("keydown",this.handler.handleMenuToggleKeydown);this.el.l0MenuLink.off("click",this.handler.handleMenuLinkClick); 942this.el.l0MenuLink.off("keydown",this.handler.handleMenuLinkKeydown);this.el.utilityList.off("mouseenter",this.handler.handleUtilityMouseEnter);this.el.l0MenuItem.off("mouseenter",this.handler.handleMenuMouseEnter);this.el.l0MenuItem.off("mouseleave",this.handler.handleMenuMouseLeave);this.el.l0MenuList.off("mouseleave",this.handler.hanledMenuListMouseLeave);this.el.utilityUserWrap.off("mouseenter",this.handler.handleUserMenuMouseEnter);this.el.utilityUserWrap.off("mouseleave",this.handler.handleUserMenuMouseLeave); 943this.el.utilityUserBtn.off("keydown",this.handler.handleUserMenuKeydown);this.el.mobileExpandMenuButton.off("click",this.handler.handleMobileGnbOpen).on("click",this.handler.handleMobileGnbOpen);this.el.mobileExpandCloseButton.off("click",this.handler.handleMobileGnbClose).on("click",this.handler.handleMobileGnbClose);this.el.mobileBackwardBtn.off("click",this.handler.handleMobileMenuClose).on("click",this.handler.handleMobileMenuClose);this.el.accordionBtn.off("click",this.handler.handleAccordionToggle).on("click", 944this.handler.handleAccordionToggle);this.el.l1MenuAccordion.off("keydown",this.handler.handleAccordionKeydown).on("keydown",this.handler.handleAccordionKeydown);if(this.isTextType)this.el.l0MenuBtn.off("click",this.handler.handleMobileMenuOpen).on("click",this.handler.handleMobileMenuOpen),this.el.l0MenuToggleBtn.off("click",this.handler.handleMobileMenuOpen).on("click",this.handler.handleMobileMenuOpen);else this.el.mobileL0MenuBtn.off("click",this.handler.handleMobileMenuOpen).on("click",this.handler.handleMobileMenuOpen)}; 945f.prototype.bindDesktopEvents=function(){var b=this;this.el.mobileExpandMenuButton.off("click",this.handler.handleMobileGnbOpen);this.el.mobileExpandCloseButton.off("click",this.handler.handleMobileGnbClose);this.el.mobileBackwardBtn.off("click",this.handler.handleMobileMenuClose);this.el.accordionBtn.off("click",this.handler.handleAccordionToggle);this.el.l1MenuAccordion.off("keydown",this.handler.handleAccordionKeydown);this.isTextType?(this.el.l0MenuBtn.off("click",this.handler.handleMobileMenuOpen), 946this.el.l0MenuToggleBtn.off("click",this.handler.handleMobileMenuOpen)):this.el.mobileL0MenuBtn.off("click",this.handler.handleMobileMenuOpen);this.el.l0MenuList.target.forEach(function(g){b.setPcFocusLooping(g,"l0menu")});this.el.l1MenuInner.target.forEach(function(g){var p=g.closest(b.selector.l0Menu).querySelector(b.selector.l0MenuToggleBtn||b.selector.l0MenuBtn);b.setPcFocusLooping(g,"l1menu",p)});this.el.utilityUserWrap.target.forEach(function(g){var p=g.querySelector(b.selector.utilityUserBtn); 947g=g.querySelector(b.selector.utilityMenuWrap);b.setPcFocusLooping(g,"usermenu",p)});this.el.window.off("keydown",this.handler.keydown).on("keydown",this.handler.keydown);this.el.l0MenuToggleBtn.off("click",this.handler.handleMenuToggleClick).on("click",this.handler.handleMenuToggleClick);this.el.l0MenuToggleBtn.off("keydown",this.handler.handleMenuToggleKeydown).on("keydown",this.handler.handleMenuToggleKeydown);this.el.l0MenuLink.off("click",this.handler.handleMenuLinkClick).on("click",this.handler.handleMenuLinkClick); 948this.el.l0MenuLink.off("keydown",this.handler.handleMenuLinkKeydown).on("keydown",this.handler.handleMenuLinkKeydown);this.el.l0MenuBtn.off("click",this.handler.handleMenuToggleClick).on("click",this.handler.handleMenuToggleClick);this.el.l0MenuBtn.off("keydown",this.handler.handleMenuToggleKeydown).on("keydown",this.handler.handleMenuToggleKeydown);this.el.utilityList.off("mouseenter",this.handler.handleUtilityMouseEnter).on("mouseenter",this.handler.handleUtilityMouseEnter);this.el.l0MenuItem.off("mouseenter", 949this.handler.handleMenuMouseEnter).on("mouseenter",this.handler.handleMenuMouseEnter);this.el.l0MenuItem.off("mouseleave",this.handler.handleMenuMouseLeave).on("mouseleave",this.handler.handleMenuMouseLeave);this.el.l0MenuList.off("mouseleave",this.handler.hanledMenuListMouseLeave).on("mouseleave",this.handler.hanledMenuListMouseLeave);this.el.utilityUserWrap.off("mouseenter",this.handler.handleUserMenuMouseEnter).on("mouseenter",this.handler.handleUserMenuMouseEnter);this.el.utilityUserWrap.off("mouseleave", 950this.handler.handleUserMenuMouseLeave).on("mouseleave",this.handler.handleUserMenuMouseLeave);this.el.utilityUserBtn.off("keydown",this.handler.handleUserMenuKeydown).on("keydown",this.handler.handleUserMenuKeydown)};f.prototype.resize=function(){var b=this,g=this.getCurrentDevice();this.navOffsetTop=this.el.section.target[0].offsetTop;this.navRightMenuTop=this.el.section.target[0].getBoundingClientRect().top;this.el.section.target[0].style.setProperty("--gnb04-top",this.navOffsetTop+"px");this.el.section.target[0].style.setProperty("--gnb04-rightmenu-top", 951this.navRightMenuTop+"px");g!==this.currentDevice&&(this.setDeviceBindEvents(),this.setAccessbility());clearTimeout(this.resizeTimer);this.resizeTimer=setTimeout(function(){"mobile"===g&&b.updateSwiper();b.setL1MenuHeight();b.setScrollPaddingTop()});this.currentDevice=g};
951f.prototype.scroll=function(){this.isRightpcMenuOpen&&(this.setRightMenuTop(),this.hanledMenuListMouseLeave());this.stickyMode&&this.handleSticky()};f.prototype.mousewheel=function(b){var g=this.el.section.find(".nv00-gnb-v4__l0-menu--show .nv00-gnb-v4__l1-menu-container"); 952"desktop"===this.getCurrentDevice()&&g.target.length&&b.clientY>g.offset().bottom&&(this.isActiveMenuOpen=!1,this.pcMenuClose())};f.prototype.keydown=function(b){"desktop"===this.getCurrentDevice()&&b.keyCode===c.ESC&&(this.isActiveMenuOpen=!1,this.el.section.find("."+this.classes.l0MenuShow).target.length?this.pcMenuClose():this.el.section.find("."+this.classes.userMenuShow).target.length&&this.userMenuClose())};f.prototype.setPcFocusLooping=function(b,g,p){function r(y){if("desktop"===t.getCurrentDevice()){var C= 953w.target.findIndex(function(z){return z===y.target});if(y&&y.keyCode===c.TAB&&!0===y.shiftKey&&0===C&&"l0menu"!==g)t.handleLeaveFirstFocus(g),y.preventDefault();else if("l0menu"!==g||y.keyCode===c.RIGHT||y.keyCode===c.LEFT)if(t.isKeydownNextInput(y)||t.isKeydownPrevInput(y)){var E;t.isKeydownNextInput(y)?E=w.target[C+1]:t.isKeydownPrevInput(y)&&0===C&&"l0menu"!==g?E=p:t.isKeydownPrevInput(y)&&(E=w.target[C-1]);E&&E.focus();E===p&&t.handleLeaveFirstFocus(g);y.preventDefault()}}}p=void 0===p?null:p; 954if(b){var t=this,w=this.getFocusableElements(b,g);w&&w.off("keydown").on("keydown",r)}};f.prototype.getFocusableElements=function(b,g){var p=this;b=b.target?b:n(b);g="mobile"===this.getCurrentDevice()?[].concat($jscomp.arrayFromIterable(b.find("a, button").target)).filter(function(r){return!r.closest(".
954nv00-gnb-v4--pc-only")}):"l0menu"===g?[].concat($jscomp.arrayFromIterable(b.find(this.selector.l0MenuItem+", "+this.selector.l0MenuToggleBtn).target)):"l1menu"===g?b.closest(this.selector.l0MenuListRight).target.length? 955[].concat($jscomp.arrayFromIterable(b.find("a").target)):[].concat($jscomp.arrayFromIterable(b.find("a, button").target)).filter(function(r){return!(n(r).hasClass("nv00-gnb-v4__l1-featured-btn")||n(r).hasClass(p.classes.mobileOnly)||n(r).hasClass(p.classes.l2FeaturedLinkHide)||r.closest(".nv00-gnb-v4__l2-menu-container"))}):[].concat($jscomp.arrayFromIterable(b.find("a").target));return n(g)};f.prototype.handleLeaveFirstFocus=function(b){this.isActiveMenuOpen=!1;"l1menu"===b?this.pcMenuClose():"usermenu"=== 956b&&this.userMenuClose()};f.prototype.setRightMenuTop=function(){this.el.section.hasClass(this.classes.fixed)?this.el.section.target[0].style.setProperty("--gnb04-rightmenu-top",0):(this.navRightMenuTop=this.el.section.target[0].getBoundingClientRect().top,this.el.section.target[0].style.setProperty("--gnb04-rightmenu-top",this.navRightMenuTop+"px"))};f.prototype.setDeviceBindEvents=function(){"mobile"===this.getCurrentDevice()?(this.hanledMenuListMouseLeave(),this.bindMobileEvents()):(this.handleMobileGnbClose(), 957this.bindDesktopEvents())};f.prototype.setAccessbility=function(){var b=this,g=[this.el.l1MenuContainer,this.el.utilityUserList],p=[this.el.container,this.el.l1MenuContainer,this.el.accordionContainer];"mobile"===this.getCurrentDevice()?(this.el.l0MenuList.attr("role","menu"),g.forEach(function(r){r.removeAttr("aria-hidden")}),p.forEach(function(r){r.attr("aria-hidden",!0)}),this.el.l2FeaturedAccordionContainer.target.forEach(function(r){var t=r.dataset.jsTitle?r.dataset.jsTitle:null;t&&n(r).attr("aria-label", 958t);n(r).attr("role","menu");n(r).find(b.selector.l2FeaturedLink).attr("tabindex",-1)}),this.el.l0MenuTitle.target.forEach(function(r){n(r).find("a, button").removeAttr("aria-expanded");b.isTextType?n(r).find("button").attr("aria-haspopup",!0):(n(r).find("a, button").removeAttr("aria-haspopup"),n(r).closest(b.selector.l0Menu).find(b.selector.l1MenuContainer).target[0]&&n(r).find(b.selector.l0MenuItem).attr("aria-haspopup",!0))}),this.el.l1MenuAccordion.target.forEach(function(r){n(r).attr("role","button"); 959n(r).attr("aria-expanded",!1);n(r).attr("tabindex","0");n(r).closest(b.selector.accordionWrap).find(b.selector.accordionInner+" a").attr("tabindex",-1)})):(h.removeMobileFocusLoop(),this.el.container.find(".layer-popup__looping--first, .layer-popup__looping--end").remove(),this.el.l0MenuList.attr("role","menubar"),this.el.l0MenuTitle.removeAttr("aria-hidden"),this.el.l2FeaturedAccordionContainer.removeAttr("role"),this.el.l2FeaturedAccordionContainer.removeAttr("aria-label"),p.forEach(function(r){r.removeAttr("aria-hidden")}), 960g.forEach(function(r){r.attr("aria-hidden",!0)}),this.el.l0MenuTitle.target.forEach(function(r){n(r).find("a, button").removeAttr("aria-expanded");n(r).find("a, button").removeAttr("aria-haspopup");n(r).closest(b.selector.l0Menu).find(b.selector.l1MenuContainer).target[0]&&(n(r).find(b.selector.l0MenuToggleBtn).target[0]?(n(r).find(b.selector.l0MenuToggleBtn).attr("aria-expanded",!1),n(r).find(b.selector.l0MenuToggleBtn).attr("aria-haspopup",!0)):(n(r).find(b.selector.l0MenuItem).attr("aria-expanded", 961!1),n(r).find(b.selector.l0MenuItem).attr("aria-haspopup",!0)))}),this.el.l1MenuAccordion.target.forEach(function(r){n(r).attr("role","menuitem");n(r).removeAttr("aria-expanded");r.classList.contains("nv00-gnb-v4__l1-menu-btn")&&n(r).attr("tabindex",-1);n(r).closest(b.selector.accordionWrap).find(b.selector.accordionInner+" a").removeAttr("tabindex")}),this.el.l2FeaturedLink.removeAttr("tabindex"))};f.prototype.setL1MenuHeight=function(){var b=this;this.el.l1MenuInner.target.forEach(function(g){if(n(g).hasClass(b.classes.l1MenuGroupType)){g= 962n(g).find(b.selector.l1MenuList).target.map(function(w){return n(w).find(b.selector.l1MenuItem)});var p=Math.max.apply(Math,$jscomp.arrayFromIterable(g.map(function(w){return w.target.length}))),r=[];g.forEach(function(w){w.css({height:""})});
962if("mobile"!==b.getCurrentDevice()){for(var t={$jscomp$loop$prop$i$90:0};t.$jscomp$loop$prop$i$90<p;t={$jscomp$loop$prop$i$90:t.$jscomp$loop$prop$i$90},t.$jscomp$loop$prop$i$90+=2)r.push(g.flatMap(function(w){return function(y){return y.target.slice(w.$jscomp$loop$prop$i$90, 963w.$jscomp$loop$prop$i$90+2)}}(t)));r.forEach(function(w){var y=Math.max.apply(Math,$jscomp.arrayFromIterable(w.map(function(C){return C.getBoundingClientRect().height})));w.forEach(function(C){n(C).css({height:Math.round(y)+"px"})})})}}})};f.prototype.handleMenuMouseEnter=function(b){this.isTouch=!1;this.isLeaveAfterTouch||this.handlePcMenuOpen(b)};f.prototype.handleMenuLinkKeydown=function(){this.isKeydown=!0};f.prototype.handleMenuLinkClick=function(b){this.isTouchScreen&&(this.isKeydown?this.isKeydown= 964!1:1>n(b.target).closest(this.selector.l0Menu).find(this.selector.l1MenuContainer).target.length||(this.isTouch=!0,this.handlePcMenuOpen(b)))};f.prototype.handleMenuToggleKeydown=function(b){this.isKeydown=!0;b.keyCode===c.DOWN&&(b.preventDefault(),this.handleMenuToggle(b))};f.prototype.handleMenuToggleClick=function(b){this.isTouch=!0;this.handleMenuToggle(b)};f.prototype.handleMenuToggle=function(b){b=n(b.target).closest(this.selector.l0Menu);var g=b.find(this.selector.l1MenuContainer),p=this.isKeydown? 965g.find("a:not(.nv00-gnb-v4__l1-menu-container-title), button:not(.nv00-gnb-v4__l1-menu-container-title):not(.nv00-gnb-v4__l1-menu-btn)").target[0]:null;this.isKeydown&&(this.isKeydown=!1);!b.hasClass(this.classes.l0MenuShow)&&g.target.length?(this.isActiveMenuOpen=!0,this.pcMenuOpen(b,p)):(this.isActiveMenuOpen=!1,this.pcMenuClose())};f.prototype.handlePcMenuOpen=function(b){var g=this;n(b.target).closest(this.selector.l0Menu).hasClass(this.classes.l0MenuShow)||b.preventDefault();clearTimeout(this.menuOpenTimeout); 966this.menuOpenTimeout=setTimeout(function(){clearTimeout(g.menuEnterTimeout);var p=b.type,r=n(b.target).closest(g.selector.l0Menu),t=r.find(g.selector.l1MenuContainer),w=100;g.isLeaveAfterTouch&&"mouseenter"===p||(!r.hasClass(g.classes.l0MenuShow)&&t.target.length?(g.isActiveMenuOpen=!0,g.el.section.hasClass(g.classes.gnbShow)&&(w=300),"click"===p?w=0:"mouseenter"===p&&g.el.l0MenuList.find(g.selector.l0MenuItem+":focus, "+g.selector.l0MenuToggleBtn+":focus").blur(),g.menuEnterTimeout=setTimeout(function(){g.pcMenuOpen(r)}, 967w)):t.target.length||(g.isActiveMenuOpen=!1,setTimeout(function(){g.pcMenuClose()})))})};f.prototype.handleMenuMouseLeave=function(){this.isTouch?this.isLeaveAfterTouch=!0:this.isActiveMenuOpen=this.isLeaveAfterTouch=!1};f.prototype.hanledMenuListMouseLeave=function(){var b=this;this.isTouch?this.isTouch=!1:(this.isActiveMenuOpen=!1,setTimeout(function(){b.pcMenuClose()}))};f.prototype.pcMenuOpen=function(b,g){g=void 0===g?null:g;if(this.isActiveMenuOpen){var p=b.find(this.selector.l0MenuBtn+", "+ 968this.selector.l0MenuToggleBtn),r=b.closest(this.selector.l0Menu),t=r.find(this.selector.l1MenuContainer),w=r.find(this.selector.l1MenuInner);r=b.closest(this.selector.l0MenuList);w=w.innerHeight();var y=this.el.section.find("."+this.classes.l0MenuShow),C=y.find(this.selector.l0MenuBtn+", "+this.selector.l0MenuToggleBtn),E=this.el.section.find("."+this.classes.l0MenuShow).target.length;this.isRightpcMenuOpen=b.closest(this.selector.l0MenuListRight).target.length;e.setLazyLoadManually(t.target[0]); 969E&&(this.el.section.addClass(this.classes.gnbOpended),y.removeClass(this.classes.l0MenuShow),C.attr("aria-expanded",!1),y.find(this.selector.l1MenuContainer).attr("aria-hidden",!0));this.isRightpcMenuOpen&&this.setRightMenuTop();b.addClass(this.classes.l0MenuShow);p.attr("aria-expanded",!0);t.attr("aria-hidden",!1);g&&g.focus();this.el.section.target[0].style.setProperty("--l1-container-current-height",w+"px");this.el.section.hasClass(this.classes.gnbShow)||this.el.section.addClass(this.classes.gnbShow); 970r.hasClass(this.classes.l0MenuListShow)||(this.el.section.removeClass(this.classes.gnbOpended),this.el.l0MenuList.removeClass(this.classes.l0MenuListShow),r.addClass(this.classes.l0MenuListShow))}};f.prototype.pcMenuClose=function(){if(!this.isActiveMenuOpen){var b=this.el.section.find("."+this.classes.l0MenuShow),g=b.find(this.selector.l0MenuToggleBtn).target.length?b.find(this.selector.l0MenuToggleBtn):b.find(this.selector.l0MenuItem);b=b.find(this.selector.l1MenuContainer+" a:focus").target.length? 971b.find(this.selector.l1MenuContainer+" a:focus"):null;"desktop"===this.getCurrentDevice()&&(this.el.l0MenuBtn.attr("aria-expanded",!1),this.el.l0MenuToggleBtn.attr("aria-expanded",!1));
971b&&g&&g.focus();this.el.l1MenuContainer.attr("aria-hidden",!0);this.el.section.removeClass(this.classes.gnbOpended);this.el.section.removeClass(this.classes.gnbShow);this.el.l0MenuList.removeClass(this.classes.l0MenuListShow);this.el.l0Menu.removeClass(this.classes.l0MenuShow);this.el.section.target[0].style.setProperty("--l1-container-current-height", 9720);this.isRightpcMenuOpen=!1}};f.prototype.handleUtilityMouseEnter=function(){this.isActiveMenuOpen=this.isRightpcMenuOpen?!0:!1};f.prototype.handleMobileGnbOpen=function(){this.el.section.hasClass(this.classes.gnbShow)||(this.isTextType?e.setLazyLoadManually(this.el.featuredWrap.target[0]):e.setLazyLoadManually(this.el.mobileLeftMenuList.target[0]),this.el.l0MenuTitle.target.forEach(function(b){return e.setLazyLoadManually(b)}),this.el.section.addClass(this.classes.gnbShow),this.el.l0MenuTitle.attr("aria-hidden", 973!1),this.el.container.attr("aria-hidden",!1),this.el.container.setLayerFocus(this.selector.mobileContainerHeaderSearch,this.selector.mobileExpandCloseButton,!1),this.el.mobileContainerHeaderSearch.focus(),this.setAccordion(),h.setMobileFocusLoop(this.el.container.target[0]),this.el.header.find("a, button").attr("tabindex",-1),h.hiddenScroll(),this.el.window.off("click",this.handler.handleClickDim).on("click",this.handler.handleClickDim),this.el.window.off("pointerdown",this.handler.handleCheckClickDim).on("pointerdown", 974this.handler.handleCheckClickDim))};f.prototype.handleMobileGnbClose=function(){var b=this;this.isLeaveAfterTouch=this.isTouch=!0;this.el.section.hasClass(this.classes.gnbShow)&&(h.removeMobileFocusLoop(),this.el.section.removeClass(this.classes.gnbShow),this.el.header.find("a, button").removeAttr("tabindex"),this.el.mobileExpandMenuButton.focus(),this.el.l0MenuTitle.attr("aria-hidden",!1),this.el.l0Menu.attr("aria-hidden",!1),this.el.l1MenuContainer.attr("aria-hidden",!0),this.el.container.attr("aria-hidden", 975!0),this.el.l0MenuList.removeClass(this.classes.l0MenuListShow),this.el.section.removeClass(this.classes.gnbl1MenuShow),this.el.l0Menu.removeClass(this.classes.l0MenuShow),this.setAccordion(),h.visibleScroll(),this.el.window.off("click",this.handler.handleClickDim),this.el.window.off("pointerdown",this.handler.handleCheckClickDim),setTimeout(function(){b.el.containerInner.target[0].scrollTo({top:0})},300))};f.prototype.handleCheckClickDim=function(b){this.isDimClick=!b.target.closest(this.selector.container)&& 976!b.target.closest(this.selector.header)};f.prototype.handleMobileMenuOpen=function(b){var g=n(b.currentTarget).closest(".nv00-gnb-v4__l0-menu"),p=g.closest(this.selector.l0MenuList),r=g.find(this.selector.l1MenuContainer);!g.hasClass(this.classes.l0MenuBannerType)&&!g.hasClass(this.classes.l0MenuShow)&&g.target.length&&r.target.length&&(this.isTextType||b.preventDefault(),r.attr("aria-hidden",!1),e.setLazyLoadManually(p.target[0]),this.el.l0Menu.removeClass(this.classes.l0MenuShow),this.el.section.addClass(this.classes.gnbl1MenuShow), 977p.addClass(this.classes.l0MenuListShow),g.addClass(this.classes.l0MenuShow),this.setAccordion(),this.el.mobileContainerHeaderSearch.removeClass(this.classes.popupLooping),this.el.container.setLayerFocus(this.selector.mobileBackwardBtn,this.selector.mobileExpandCloseButton,!1),g.find("a.nv00-gnb-v4__l1-menu-container-title, "+this.selector.l1MenuItem).eq(0).focus(),this.el.l0MenuList.find(this.selector.l0Menu+":not(."+this.classes.l0MenuShow+")").attr("aria-hidden",!0),this.el.l0MenuTitle.attr("aria-hidden", 978!0))};f.prototype.handleMobileMenuClose=function(){var b=this,g=this.el.section.find("."+this.classes.l0MenuShow),p=g.find(this.selector.l0MenuItem);this.isTextType&&(p=g.find(".nv00-gnb-v4__l0-menu-title button"));this.el.l0MenuTitle.attr("aria-hidden",!1);this.el.l0Menu.attr("aria-hidden",!1);this.el.l0Menu.removeClass(this.classes.l0MenuShow);this.el.section.removeClass(this.classes.gnbl1MenuShow);this.el.l0MenuList.removeClass(this.classes.l0MenuListShow);this.setAccordion();this.el.mobileBackwardBtn.removeClass(this.classes.popupLooping); 979setTimeout(function(){b.el.container.setLayerFocus(b.selector.mobileContainerHeaderSearch,b.selector.mobileExpandCloseButton,!1);p.target[0].focus();b.el.l1MenuContainer.attr("aria-hidden",!0)},400)};f.prototype.initSwiper=function(){var b=this,g=this.el.featuredSwiper.target[0];g&&(k.slideReInit(g),k.slideUpdate(g,{realSlidesPerView:Math.round(this.getRealSlidePerview())}),k.slideInitEnd(g,function(){b.swiper=k.getSwiper(g);b.setSwiperStatus()}))};f.prototype.updateSwiper=function(){var b=this.el.featuredSwiper.target[0]; 980b&&(k.slideUpdate(b,{realSlidesPerView:Math.round(this.getRealSlidePerview())}),this.setSwiperStatus())};f.prototype.getRealSlidePerview=function(){var b=parseInt(window.getComputedStyle(this.el.featuredSwiper.target[0]).paddingLeft);b=this.el.featuredSwiper.offset().width-b;var g=this.el.featuredSwiperSlide.offset().width;b/=g;
980return.8<b-Math.floor(b)?b:Math.floor(b)};f.prototype.setSwiperStatus=function(){var b=this.el.featuredSwiper.target[0];(this.swiper=k.getSwiper(b))?this.swiper.slides.length<= 981this.getRealSlidePerview()||1===this.swiper.slides.length?(this.swiper.allowTouchMove=!1,this.el.featuredSwiperIndicator.hide(),k.destroy(b)):(this.swiper.allowTouchMove=!0,this.el.featuredSwiperIndicator.show()):this.initSwiper()};f.prototype.handleAccordionKeydown=function(b){b.keyCode===c.SPACE&&(b.preventDefault(),this.handleAccordionToggle(b))};f.prototype.setAccordion=function(){var b=this,g=null,p=null;p=this.el.section.hasClass(this.classes.gnbl1MenuShow);var r=!this.el.section.hasClass(this.classes.gnbShow); 982p?(g=this.el.l0MenuList.find("."+this.classes.l0MenuListShow+" "+this.selector.accordionWrap),p=this.el.section.find(this.selector.l0Menu+":not(."+this.classes.l0MenuShow+") "+this.selector.accordionWrap+", "+this.selector.l0AccordionList)):r?p=this.el.section.find(this.selector.accordionWrap):(g=this.el.l0AccordionList,p=this.el.l0MenuList.find(this.selector.accordionWrap));g&&g.target.forEach(function(t){t=n(t);var w=t.find(b.selector.accordionBtn);t.hasClass(b.classes.accordionActive)?b.openAccordion(w): 983b.closeAccordion(t)});p&&p.target.forEach(function(t){t=n(t);b.closeAccordion(t)})};f.prototype.handleAccordionToggle=function(b){b.preventDefault();b=n(b.currentTarget);var g=b.closest(this.selector.accordionWrap);g.hasClass(this.classes.accordionActive)?(this.closeAccordion(g),g.removeClass(this.classes.accordionActive)):(this.openAccordion(b),g.addClass(this.classes.accordionActive))};f.prototype.openAccordion=function(b){var g=b.closest(this.selector.accordionWrap),p=g.find(this.selector.accordionContainer), 984r=g.find(this.selector.accordionInner);g=g.find("a");r=r.innerHeight();p.css({"max-height":r+"px"});b.attr("aria-expanded",!0);p.attr("aria-hidden",!1);g.removeAttr("tabindex")};f.prototype.closeAccordion=function(b){var g=b.find(this.selector.accordionContainer),p=b.find(this.selector.accordionBtn);b=b.find(this.selector.accordionInner+" a");g.attr("aria-hidden",!0);g.css({"max-height":null});p.attr("aria-expanded",!1);b.attr("tabindex",-1)};f.prototype.handleUserMenuMouseEnter=function(b){b=n(b.currentTarget); 985this.userMenuOpen(b)};f.prototype.handleUserMenuMouseLeave=function(){this.userMenuClose()};f.prototype.handleUserMenuKeydown=function(b){if("keydown"!==b.type||this.isKeydownEvent(b)){b.preventDefault();b=n(b.currentTarget).closest(this.selector.utilityUserWrap);var g=b.find(".nv00-gnb-v4__utility-menu").target[0];b.hasClass(this.classes.userMenuShow)?this.userMenuClose():this.userMenuOpen(b,g)}};f.prototype.handleClickDim=function(b){!this.isDimClick||b.target.closest(this.selector.container)|| 986b.target.closest(this.selector.header)||this.handleMobileGnbClose()};f.prototype.userMenuOpen=function(b,g){g=void 0===g?null:g;var p=b.find(this.selector.utilityMenuWrap);p=p.innerHeight()+parseFloat(window.getComputedStyle(p.target[0]).marginTop)+15;var r=b.find(this.selector.utilityUserBtn),t=b.find(this.selector.utilityUserList);this.isActiveMenuOpen=!1;this.pcMenuClose();b.target[0].style.setProperty("--gnb04-utility-user-height",p+"px");b.addClass(this.classes.userMenuShow);r.attr("aria-expanded", 987!0);t.attr("aria-hidden",!1);g&&g.focus()};f.prototype.userMenuClose=function(){var b=this.el.section.find("."+this.classes.userMenuShow),g=b.find(this.selector.utilityUserBtn),p=b.find(this.selector.utilityUserList);p.find(".nv00-gnb-v4__utility-menu:focus").target.length&&p.find(".nv00-gnb-v4__utility-menu:focus")&&g.focus();b.removeClass(this.classes.userMenuShow);g.attr("aria-expanded",!1);p.attr("aria-hidden",!0)};f.prototype.setShyGNB=function(){var b=n(this.selector.heroKv).eq(0);if(b.target.length){var g= 988this.el.section.offset().top+this.el.section.height(),p=b.offset().top;g=10>Math.abs(parseInt(g-p));b.target.length&&g&&(this.stickyMode=!0,this.shyTheme=b.hasClass("hd08-hero-kv-home--text-white")?"dark":"light",this.setShyTheme())}else this.stickyMode=!1};f.prototype.setShyMode=function(b){this.stickyMode=!0;this.shyTheme=b;this.setShyTheme()};f.prototype.handleSticky=function(){if(this.stickyMode){var b=window.scrollY,g=b>this.scrollTop?"down":"up",p=0>this.el.section.offset().top;"up"===g&&p? 989(this.el.section.addClass(this.classes.fixed),this.removeShyTheme()):(this.el.section.removeClass(this.classes.fixed),this.setShyTheme());"down"===g&&p?this.el.section.addClass(this.classes.down):this.el.section.removeClass(this.classes.down);this.scrollTop=b}else this.el.section.removeClass(this.classes.fixed),this.el.section.removeClass(this.classes.down)};f.prototype.setShyTheme=function(){"dark"===this.shyTheme?this.el.section.addClass(this.classes.shyDark):"light"===this.shyTheme?this.el.section.addClass(this.classes.shyLight): 990this.removeShyTheme()};f.prototype.removeShyTheme=function(){this.el.section.removeClass(this.classes.shyDark);this.el.section.removeClass(this.classes.shyLight)};f.prototype.setScrollPaddingTop=function(){this.stickyMode&&h.setScrollPaddingTop("gnbV4",this.el.section.innerHeight())};f.prototype.openLayerPopup=function(b){var g=this,p=b&&this.el.layerPopupWrap.find(b);b&&p.target.length&&(h.setMobileFocusLoop(this.el.layerPopupWrap.target[0]),this.el.layerPopupWrap.addClass("show"),this.el.layerPopupWrap.setLayerFocus(this.selector.layerPopupLoopingStart, 991this.selector.layerPopupLoopingEnd),p.addClass("show"),b=p.find(this.selector.layerPopupCloseButton),b.focu
991s(),b.off("click").on("click",function(){return g.handler.closeLayerPopup(p.target[0])}),this.el.layerPopupWrap.off("click").on("click",function(r){r.target.closest(".layer-popup")||g.handler.closeLayerPopup(p.target[0])}),h.hiddenScroll())};f.prototype.closeLayerPopup=function(b){h.removeMobileFocusLoop();b=b?n(b):this.el.section.find(this.el.layerPopup+".show");b.removeClass("show");this.el.layerPopupWrap.removeClass("show"); 992this.el.layerPopupWrap.offLayerFocus();this.el.layerPopupWrap.off("click");b="mobile"===this.getCurrentDevice()?this.el.section.find('.nv00-gnb-v4__header [data-target-popup\x3d"#'+b.attr("id")+'"]'):this.el.section.find('.nv00-gnb-v4__container [data-target-popup\x3d"#'+b.attr("id")+'"]');b.target.length&&b.focus();h.visibleScroll()};f.prototype.getCurrentDevice=function(){return 1279<h.getViewPort().width?"desktop":"mobile"};f.prototype.isKeydownEvent=function(b){return"keydown"===b.type&&(b.keyCode=== 993c.ENTER||b.keyCode===c.DOWN||b.keyCode===c.SPACE)};f.prototype.isKeydownNextInput=function(b){return b&&b.keyCode===c.RIGHT||b.keyCode===c.DOWN};f.prototype.isKeydownPrevInput=function(b){return b&&b.keyCode===c.LEFT||b.keyCode===c.UP};f.instances=new WeakMap;window.sg.components.Nv00GnbV4={init:a,reInit:function(){n(l.section).target.forEach(function(b){f.instances.has(b)?f.instances.get(b).reInit():new f(b)})},openLayerPopup:function(b){n(l.section).target.forEach(function(g){f.instances.has(g)&& 994f.instances.get(g).openLayerPopup(b)})},closeLayerPopup:function(b){n(l.section).target.forEach(function(g){f.instances.has(g)&&f.instances.get(g).closeLayerPopup(b)})},getCurrentDevice:function(){var b=document.querySelector(l.section);if(b)return f.instances.get(b).getCurrentDevice()},setShyLight:function(){n(l.section).target.forEach(function(b){f.instances.has(b)&&f.instances.get(b).setShyMode("light")})},setShyDark:function(){n(l.section).target.forEach(function(b){f.instances.has(b)&&f.instances.get(b).setShyMode("dark")})}}; 995n.ready(a)})();ss=$;var reservationUserData=null;function nextGenLoginResult(a){} 996(function(a){ss.Sign=function(){function n(J){if(!J)return{};var H={};J.slice(1).split("\x26").map(function(U){return U.split("\x3d")}).forEach(function(U){var X=$jscomp.makeIterator(U);U=X.next().value;X=X.next().value;U&&X&&(H[U]=decodeURIComponent(X))});return H}function h(){a.cookies.del("estoreLoginRequesting");a.cookies.del("estoreLoginRequesting",{domain:Q})}function e(){a.cookies.del("snsSessionId");a.cookies.del("snsSessionId",{path:"/",domain:Q});a.cookies.del("isStoreLogedIn");a.cookies.del("sa_em"); 997a.cookies.del("sa_em",{path:"/",domain:Q});a.cookies.del("eVar67");a.cookies.del("eVar67",{path:"/",domain:Q});a.cookies.del("lastName",{domain:Q});a.cookies.del("firstName",{domain:Q});a.cookies.del("guid",{domain:Q});a.cookies.del("ReD",{domain:Q});a.cookies.del("ReDCheck",{domain:Q});a.cookies.del("directCallFl",{expires:null,domain:Q});a.cookies.del("directCallFlv2",{expires:null,domain:Q});a.cookies.del("returnURL",{domain:Q});a.cookies.del("mVal10",{domain:Q});a.cookies.del("mVal11",{domain:Q}); 998a.cookies.del("flpe",{domain:Q});a.cookies.del("encGuid",{domain:Q});a.cookies.del("dcgue",{domain:Q});a.cookies.del("dg_sai",{domain:Q});a.cookies.del("glbState",{domain:Q});a.cookies.del("cntoken",{domain:Q});a.cookies.del("cnfl",{domain:Q});if(IS_B2B){var J="/"+SITE_CD+"/";a.cookies.del("emailId",{domain:Q});a.cookies.del("emailAddr",{domain:Q});a.cookies.del("phone",{domain:Q});a.cookies.del("userAccount",{domain:Q});a.cookies.del("dotcomReturnURL",{domain:Q});a.cookies.del("isSMBRegisteredUserYN", 999{path:J,domain:Q})}h();a.cookies.del("prof_id",{path:"/",domain:Q});a.cookies.del("prof_lname",{path:"/",domain:Q});a.cookies.del("prof_bpno",{path:"/",domain:Q});a.cookies.del("prof_bpno_s",{path:"/",domain:Q});a.cookies.del("rew_enr",{path:"/",domain:Q});a.cookies.del("prof_fname",{path:"/",domain:Q});a.cookies.del("tppid",{path:"/",domain:Q});a.cookies.del("tmktid",{path:"/",domain:Q});a.cookies.del("tmktname",{path:"/",domain:Q});a.cookies.del("tlgimg",{path:"/",domain:Q});a.cookies.del("taccessrtype", 1000{path:"/",domain:Q});a.cookies.del("remoteId",{path:"/",domain:Q});a.cookies.del("tsgmt",{path:"/",domain:Q});a.cookies.del("epp_verified",{path:"/",domain:Q});a.cookies.del("store_id",{path:"/",domain:Q});login_user_info={};if(IS_EPP){J=document.cookie.split(";");J=$jscomp.makeIterator(J);for(var H=J.next();!H.done;
1000H=J.next()){H=H.value;var U=H.indexOf("\x3d");H=unescape(H.slice(0,U)).trim();(-1<H.indexOf("useAuthorizedApi.")||-1<H.indexOf("groupName."))&&a.cookies.del(H,{domain:Q})}}}function c(){a.cookies.del("xsdcxyn"); 1001a.cookies.del("xsdcxyn",{path:"/",domain:Q});a.cookies.del("xsdcbxyn");a.cookies.del("xsdcbxyn",{path:"/",domain:Q});a.cookies.del("iPlanetDirectoryPro");a.cookies.del("iPlanetDirectoryPro",{path:"/",domain:Q});a.cookies.del("iPlanetDirectoryProOptVal");a.cookies.del("iPlanetDirectoryProOptVal",{path:"/",domain:Q})}function k(){window.localStorage.removeItem("dcgue");window.localStorage.removeItem("flpe");window.localStorage.removeItem("encGuid");window.localStorage.removeItem("guidSet");window.localStorage.removeItem("TierName"); 1002window.localStorage.removeItem("TierCode")}function l(J){var H={education:"/us/shop/offer-program/education/","first responder":"/us/shop/offer-program/first-responders/",government:"/us/shop/offer-program/government/",workplace:"/us/shop/offer-program/workplace/",military:"/us/shop/offer-program/military/"},U=a.cookies.get("tlgimg"),X=a.cookies.get("tmktname"),la=a.cookies.get("tmktid"),ra=a.cookies.get("tsgmt"),qb=a.cookies.get("xsdcxyn"),ta;if(J){if(ta=J.store_info)ta.image_logo_url&&(U=ta.image_logo_url), 1003ta.store_disp_name&&(X=ta.store_disp_name),ta.store_id&&(la=ta.store_id),ta.store_segment&&(ra=ta.store_segment);"sa_login"===J.login_type?(ta=!0,window.isSaLogin=!0):(ta=!1,window.isSaLogin=!1)}J=ra&&H[ra.toLowerCase()]||"/us/shop/offer-program/";window.EcommFlutterClient&&(window.EcommFlutterClient.onmessage=function(Ka){Ka=JSON.parse(Ka.data);var Db=Ka.data.status;"isSignedInStatus"===Ka.name&&(window.isShopSignedIn=Db)},window.EcommFlutterClient.postMessage(JSON.stringify({name:"isSignedIn",params:{callbackEvent:"isSignedInStatus"}}))); 1004H=a(".epp-bar-wrap");H.show();H.addClass("gnb-edited");ra=H.find(".epp-bar-msg");ra.empty();var Ea=H.find(".benfit-wrap");Ea.empty();var Bb=H.find(".epp-bar-logo");Bb.empty();U&&Bb.append("\x3cimg src\x3d"+U+" /\x3e");X?(qb?ta||window.isShopSignedIn?ra.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+X+" Store!\x3c/div\x3e Please enjoy our special offers for you."):ra.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+X+' Store!\x3c/div\x3e Please \x3ca href\x3d"#" class\x3d"epp-login"\x3elogin\x3c/a\x3e to access your special pricing.'): 1005("4145500"===la&&"17593200"===a.cookies.get("tppid")?(a(".epp-bar-logo img").remove(),a(".epp-bar-logo").append('\x3cimg src\x3d"'+U+'"/\x3e'),a(".epp-bar-msg").html("Welcome to Samsung's Friends and Family Store! Enjoy special pricing. Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'font-size:12px;font-weight: bold'\x3elogin/signup\x3c/a\x3e to make a purchase.")):"900297"==la||"4789760653"==la?(a(".epp-bar-logo img").remove(),a(".epp-bar-logo").append('\x3cimg src\x3d"'+U+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+ 1006X+" Store!\x3c/div\x3e")):(a(".epp-bar-logo img").remove(),a(".epp-bar-logo").append('\x3cimg src\x3d"'+U+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username" style\x3d"color:#1428a0;"\x3e'+X+" Store!\x3c/div\x3e Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'color:#1428a0;font-weight: bold'\x3elogin\x3c/a\x3e to enjoy our special pricing."),a("#openLogin").click(function(Ka){Ka.preventDefault();a(".gnb-login").trigger("click")})),a(".epp-bar-wrap").slideDown()), 1007"900297"!=la&&"4789760653"!=la&&Ea.append('\x3ca class\x3d"benfit-wrap__offers" href\x3d"'+J+'"\x3eSPECIAL OFFERS\x3c/a\x3e'),ta||"900297"==la||"4789760653"==la||Ea.append('\x3cspan class\x3d"benfit-wrap__gap"\x3e\x3c/span\x3e\x3ca class\x3d"benfit-wrap__exit"\x3eEXIT STORE\x3c/a\x3e'),H.find(".epp-login").click(function(Ka){Ka.preventDefault();a(".nv00-gnb-v4__utility-menu.loginBtn").trigger("click")}),Ea.find(".benfit-wrap__exit").click(function(){window.AEMapp.eppStore.exitStore();a(document).trigger("exit__store"); 1008a(".epp-bar-wrap").hide();a(".epp-bar-wrap").find(".epp-bar-msg").empty();a(".epp-bar-wrap").find(".epp-bar-logo").empty();a(".epp-bar-wrap").find(".benfit-wrap").empty()})):H.hide();window.location.href.includes("us/business")&&H.hide()}function f(){e();c();k();clearInterval(Fa);Ha=null;(USE_ESTORE||Jb)&&g(!1);return!1}
1008function b(J,H,U,X){var la=a.trim(J+" "+H);"jp"===siteCode&&(la=a.trim(H+" "+J));"cn"===SITE_CD&&(la=H);J=la;null!=lb&&void 0!=lb.emailAddr&&null!=lb.emailAddr&&(J+=". "+lb.emailAddr, 1009lb.emailAddr&&(lb.emailAddr.includes("@")?window.userEmailDomain=lb.emailAddr.split("@")[1]:window.userEmailDomain=lb.emailAddr));a(".nv00-gnb-v4__utility-menu.nv00-gnb-v4__utility-menu--user-profile.nv00-gnb-v4--pc-only.js-user-name").attr("aria-label",J);Za.find(".image__main");J=Za.find(".user-name");H=a(".js-gnb-afterlogin-image");var ra=a(".js-gnb-afterlogin-no-image");if(""!=Ab&&null!=Ab&&U){Sc("LazyLoad_Home",Ab);var qb=Ab;H.find(".image__main").attr("src",qb);H.show();ra.remove()}else H.remove(); 1010X&&(fc="https://account.samsung.com/membership/contents/profile/profile-gate",Za.attr("href",fc));J.html(la);window.sg.common.lazyLoad.setLazyLoadManually(H[0]);!window.localStorage.getItem("guidSet")&&U?(window.digitalData.user.sa=eb,window.localStorage.setItem("guidSet","true"),a.ajax({url:"/aemapi/v6/mysamsung/pdrewards/tierinfo",type:"GET",data:{siteCode:SITE_CD,ncp:Math.random()},dataType:"json"}).done(function(ta){if(ta&&ta.resultData&&ta.resultData.apiResult&&ta.resultData.apiResult.d){var Ea= 1011ta.resultData.apiResult.d.TierCode;window.localStorage.setItem("TierName",ta.resultData.apiResult.d.TierName);window.localStorage.setItem("TierCode",Ea)}})):window.digitalData.user.sa=""}function g(J){null==gb||null==u?b("","",!1):"vn"===SITE_CD?b("",u,!1):b(gb,"",!1)}function p(J,H){var U=new Date;U.setDate(U.getDate()+H);document.cookie="_common_saveEmail\x3d"+encodeURIComponent(J)+"; path\x3d/; domain\x3d.samsung.com; expires\x3d"+U.toGMTString()+";"}function r(){var J=document.cookie+";",H=J.indexOf("_common_saveEmail", 10120),U="";-1!=H&&(J=J.substring(H,J.length),H=J.indexOf("\x3d",0)+1,U=J.indexOf(";",H),U=decodeURIComponent(J.substring(H,U)));""!==U&&(xc.next().css({visibility:"hidden"}),xc.val(U),$b.attr("checked","checked"),$b.prop("checked",!0),$b.next().addClass($b.next().attr("data-acc-onclass")))}function t(){"N"===a.cookies.get("directCallFlv2")&&("undefined"!=typeof dataLayer&&"object"==typeof dataLayer&&dataLayer.push({event:"login",eventNonInteraction:!0}),a.cookies.set("directCallFlv2","Y",{expires:null, 1013domain:Q}))}function w(J){J?(ss.Auth.getUserProfile(function(H){null!=H&&""!==H?"vn"===SITE_CD?b("",H.lastName,!0):b(H.firstName,H.lastName,!0):b("","",!0)}),IS_EPP||IS_B2B||!ud||a(".nv00-gnb-v4__utility-user-menu-rewards-link"),Aa.addClass("hide")):Aa.removeClass("hide")}function y(){a.ajax({url:"https://account.samsung.com/api/v1/users",type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(J){console.log("reload sa cookie -"+ 1014new Date)},error:function(J,H,U){}})}function C(){function J(X){U<H.length?(estore.addWishListItemForce({productCode:H[U]},J),U++):(a.cookies.deleteWishList(),a.EstoreIfQueue&&a.EstoreIfQueue.setIsSignReady(!0))}var H=a.cookies.getWishList(),U=0;0<H.length?J():a.EstoreIfQueue&&a.EstoreIfQueue.setIsSignReady(!0)}function E(){void 0!=window.sg.components.Nv00GnbV4&&(window.sg.components.Nv00GnbV4.closeLayerPopup("#"+Sb.attr("id")),window.sg.components.Nv00GnbV4.closeLayerPopup("#"+Jc.attr("id")))}function z(J){if(J){var H= 1015LOGIN.msg.errorTitleText,U="";switch(J){case "DW":case "AW":case "WP":U=LOGIN.msg.errorText1;break;case "BA":U=LOGIN.msg.errorText2;break;case "UK":U=LOGIN.msg.errorText3;break;case "ES":U=LOGIN.msg.errorText4}Vb=Cc;-1=="pop-tit".indexOf(a("#confirmPopup \x3ediv\x3e div.popup_wrap").find("h2").attr("class"))&&(Cc.append('\x3ch2 class\x3d"pop-tit"\x3e'),Cc.append('\x3cp class\x3d"msg-text tc"\x3e'));a(".pop-tit",Cc).text(H);a(".msg-text",Cc).text(U)}E();if(ma){a("#privacy-terms").parent().find(".checkbox-v2__label-text").empty(); 1016a("#privacy-terms2").parent().find(".checkbox-v2__label-text").remove();a("#privacy-terms2").parent().find(".layer-popup__checkbox-desc").remove();if(0<sb.length){var X=sb[0].data.content;if(null!=sb[1]){var la=sb[1].data.content;la=la.replace("checkbox-v2__label-text","checkbox-radio__label-text checkbox-v2__label-text")}}a("#privacy-terms").parent().find(".checkbox-v2__label-text").append(X);null!=la&&a("#privacy-terms2").parent().append(la)}Vb&&0<Vb.length&&void 0!=window.sg.components.Nv00GnbV4&& 1017window.sg.components.Nv00GnbV4.openLayerPopup("#"+Vb.attr("id"))}function V(J){var H="",U=a.cookies.get("jwt_"+ya,{domain:Q});ma&&(H=STORE_DOMAIN+"/v4/identity/preferences");a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store","x-ecom-jwt":U},url:H,type:"PUT",dataType:"json",data:J,xhrFields:{withCredentials:!0},beforeSend:function(X){"Y"===Nb&&X.setRequestHeader("x-ecom-locale",Kb)}
1017,success:function(X){E(); 1018Vb="Y"===N||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Jc;z()},error:function(X,la,ra){console.error(la)}})}function ca(){var J="";IS_B2B?J=da+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa:"au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD|| 1019"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"eg"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"pk"===SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD?J=STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa:aa?(J=da+"/"+STORE_SITE_CODE+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa,"tr"===SITE_CD&&(J=STORE_DOMAIN+"/tokocommercewebservices/v2/tr/users/current/agreeStorePolicy?receiveEmail\x3d"+ 1020qa+"\x26etkOptin\x3d"+ua+"\x26dataTransferConsent\x3d"+ob)):J="es"===SITE_CD||"it"===SITE_CD?-1<STORE_DOMAIN.indexOf("https://")?STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/setAgreeStorePolicy?receiveEmail\x3d"+qa:"levant"===SITE_CD?STORE_DOMAIN+"/jo/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa:"levant_ar"===SITE_CD?STORE_DOMAIN+"/jo_ar/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+qa:"n_africa"===SITE_CD?STORE_DOMAIN+"/ma/ng/p4v1/agreeStorePolicy?receiveEmail\x3d"+ 1021qa:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/setAgreeStorePolicy?receiveEmail\x3d"+qa;Ob?a.ajax({url:J,type:"GET",data:{ssoID:eb},dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,beforeSend:function(){},success:function(H){E();"0000"===H.resultCode&&(Vb="Y"===N||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Jc,z())},error:function(H,U,X){console.error(U)}}):a.ajax({url:J, 1022type:"GET",dataType:"jsonp",data:{ssoID:eb},jsonp:"callback",beforeSend:function(){},success:function(H){E();"0000"===H.resultCode&&(Vb="Y"===N||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Jc,z())},error:function(H,U,X){console.error(U)}})}function xa(){var J=!0,H=a.cookies.get("new_sa_login",{domain:".samsung.com"});H&&"us"===SITE_CD&&(J=!1);if(Z)J=a.cookies.get("sa_state",{domain:Q}),H=a.cookies.get("temp_sa_state",{domain:Q}), 1023!J&&!H||gb&&u?shopAppUtilInstance.isPlatformReady()?window.flutter_inappwebview.callHandler("login",window.location.href):window.addEventListener("flutterInAppWebViewPlatformReady",function(){window.flutter_inappwebview.callHandler("login",window.location.href)}):Sa();else if("cn"===SITE_CD)a("#signInForm").attr("action",ib),a("#client_id",La).val(a("#loginAccountServiceId").val()),J=a("#redirect_uri",La).val(),H="https://"+window.location.host+J,a("#redirect_uri",La).val(H),a("#response_type",La).val("code"), 1024a("#scope",La).val("server"),a("#signInState",La).val("STATE"),a.cookies.set("glbState","STATE",{domain:Q}),oa=window.location.href,a.cookies.set("returnURL",oa,{domain:Q}),IS_B2B&&a.cookies.set("dotcomReturnURL",oa,{domain:Q}),La.submit(),oa=void 0;else if(J){oa=window.location.href;J=a("#redirect_uri",La).val();H="https://"+window.location.host+J;J="GLB"+Math.random().toString(36).substr(2,7);a.cookies.set("glbState",J,{domain:Q});var U=a("#loginAccountServiceId").val(),X=a("#languageCode").val(), 1025la=a("#countryCode").val();"id"==SITE_CD&&(X="in");X=X+"-"+la;a.cookies.set("returnURL",oa,{domain:Q});IS_B2B&&a.cookies.set("dotcomReturnURL",oa,{domain:Q});oa=void 0;(la=$b.is(":checked"))?p(a.trim(xc.val()),7):p(null,-1);J={clientId:U,redirectUri:encodeURIComponent(H),responseType:"code",scope:"",state:J};window.samsung.account.signIn(J,{locale:X})}else if(!IS_B2B||null!=ib&&""!=ib&&IS_B2B){a("#signInForm").attr("action",ib);oa=window.location.href;J=a("#redirect_uri",La).val();H="";H=window.location.port; 1026H=null==H||""===H||"80"===H||"8080"===H?"https://"+window.location.host:"http://"+window.location.host;0>J.indexOf(window.location.hostname)&&(H+=J,a("#redirect_uri",La).val(H));J="GLB"+Math.random().toString(36).substr(2,11);a.cookies.set("glbState",J,{domain:Q});a("#response_type",La).val("code");a("#countryCode",La).val(a("#countryCode",La).val());a("#redirect_uri",La).val(a("#redirect_uri",La).val());a("#signInState",La).val(J);a("#signInGoBackURL",La).val(oa);a(".goBackURL").val(oa);a("#scope", 1027La).val("");
1027(H=a.cookies.get("new_sa_login",{domain:".samsung.com"}))&&"us"===SITE_CD&&(J=btoa(window.location.href+"?state\x3d"+J),a("#signInState",La).val(J),J=-1<window.location.host.indexOf("p6-pre-qa")||-1<window.location.host.indexOf("p6-qa")?"https://us.ecom-qa.samsung.com/v4/sso/sa/login":"https://www.samsung.com/us/api/v4/sso/sa/login",a("#redirect_uri",La).val(J));if(J=a("#loginAccountServiceId").val())U=J,a("#client_id",La).val(U);X=a("#languageCode").val();la=a("#countryCode").val();X&& 1028la&&(X=X+"_"+la,a("#locale",La).val(X));a.cookies.set("returnURL",oa,{domain:Q});IS_B2B&&a.cookies.set("dotcomReturnURL",oa,{domain:Q});La.submit();(la=$b.is(":checked"))?p(a.trim(xc.val()),7):p(null,-1);oa=void 0}}function ea(){var J=!0;oa=window.location.href;a.cookies.set("returnURL",oa,{domain:Q});var H=a.cookies.get("new_sa_login",{domain:".samsung.com"});H&&"us"===SITE_CD&&(J=!1);if("cn"===SITE_CD){var U=a.cookies.get("cntoken",{domain:Q});U=decodeURIComponent(U).split("|");a.ajax({headers:{"Cache-Control":"no-cache", 1029"Content-Type":"application/json","Access-Control-Allow-Origin":"*",Authorization:"Bearer "+U[0]},url:nc,type:"POST",data:JSON.stringify({accessToken:U[0],channel:"hybris"}),dataType:"json",xhrFields:{withCredentials:!0},success:function(X){null!=X&&"200"==X.status?(f(),oa=window.location.href,oa=oa.escapeHtml(),location.href=da+"/cn/logout?redirectUrl\x3d"+encodeURIComponent(oa)):null!=X&&"500"==X.status&&console.error(X.code+" : "+X.message)}})}else if(J)window.samsung.account.signOut().then(function(){location.href= 1030"/aemapi/v6/data-login/afterLogout."+SITE_CD+".json?state\x3dstate\x26result\x3dsuccess"}).catch(function(X){console.error(X);console.error("sign-out failure");a("#signOutForm").attr("action",nc);oa=window.location.href;!a("#tempTitle").val()||"page-my-samsung"!==a("#tempTitle").val()&&"page-my-products"!==a("#tempTitle").val()&&"page-my-rewards"!==a("#tempTitle").val()&&"page-my-referrals"!==a("#tempTitle").val()||(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/");a.cookies.set("returnURL", 1031oa,{domain:Q});if(IS_B2B){a.cookies.set("dotcomReturnURL",oa,{domain:Q});X="/"+SITE_CD+"/";a.cookies.del("useTaxExPriceYN",{path:X,domain:Q});var la=a.cookies.get("useSMBCookiePaths");a.cookies.del("useSMBCookiePaths",{path:"/",domain:Q});if(null!=la){X=la.split(";");for(var ra in X)""!=X[ra]&&null!=X[ra]&&a.cookies.del("isSMBRegisteredUserYN",{path:X[ra],domain:Q})}else a.cookies.del("isSMBRegisteredUserYN",{path:X,domain:Q})}ra=a("#signOutURL",Cb).val();X=window.location.port;X=null==X||""===X|| 1032"80"===X||"8080"===X?"https://"+window.location.host:"http://"+window.location.host;0>ra.indexOf(window.location.hostname)&&(ra=X+ra,a("#signOutURL",Cb).val(ra));ra="GLB"+Math.random().toString(36).substr(2,11);a.cookies.set("glbState",ra,{domain:Q});a("#signOutState",Cb).val(ra);"us"===SITE_CD&&(ra=btoa(window.location.href+"?state\x3d"+ra),a("#signOutState",Cb).val(ra),ra=-1<window.location.host.indexOf("p6-pre-qa")?"https://us3.ecom-qa.samsung.com/v2/sso/user/logout":"/us/api/v2/sso/user/logout", 1033a("#signOutURL",Cb).val(ra));(ra=a("#loginAccountServiceId").val())&&a("#client_id",Cb).val(ra);k();clearInterval(Fa);Ob&&"us"===siteCode?(ra=da+"/us/logout?redirectUrl\x3d"+encodeURIComponent(window.location.href),location.href=ra):Cb.submit();oa=void 0});else{a("#signOutForm").attr("action",nc);oa=window.location.href;!a("#tempTitle").val()||"page-my-samsung"!==a("#tempTitle").val()&&"page-my-products"!==a("#tempTitle").val()&&"page-my-rewards"!==a("#tempTitle").val()&&"page-my-referrals"!==a("#tempTitle").val()|| 1034(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/");a.cookies.set("returnURL",oa,{domain:Q});if(IS_B2B)if(a.cookies.set("dotcomReturnURL",oa,{domain:Q}),H="/"+SITE_CD+"/",a.cookies.del("useTaxExPriceYN",{path:H,domain:Q}),J=a.cookies.get("useSMBCookiePaths"),a.cookies.del("useSMBCookiePaths",{path:"/",domain:Q}),null!=J)for(U in H=J.split(";"),H)""!=H[U]&&null!=H[U]&&a.cookies.del("isSMBRegisteredUserYN",{path:H[U],domain:Q});else a.cookies.del("isSMBRegisteredUserYN",{path:H, 1035domain:Q});U=a("#signOutURL",Cb).val();H="";H=window.location.port;H=null==H||""===H||"80"===H||"8080"===H?"https://"+window.location.host:"http://"+window.location.host;0>U.indexOf(window.location.hostname)&&(U=H+U,a("#signOutURL",Cb).val(U));U="GLB"+Math.random().toString(36).substr(2,11);a.cookies.set("glbState",U,{domain:Q});a("#signOutState",Cb).val(U);
1035(H=a.cookies.get("new_sa_login",{domain:".samsung.com"}))&&"us"===SITE_CD&&(U=btoa(window.location.href+"?state\x3d"+U),a("#signOutState",Cb).val(U), 1036U=-1<window.location.host.indexOf("p6-pre-qa")?"https://us3.ecom-qa.samsung.com/v2/sso/user/logout":"/us/api/v2/sso/user/logout",a("#signOutURL",Cb).val(U));(U=a("#loginAccountServiceId").val())&&a("#client_id",Cb).val(U);k();clearInterval(Fa);Cb.submit();oa=void 0}}function va(){function J(H){H?ss.Auth.signOut(oa):a.cookies.get("sa_state",{domain:Q})&&"cn"!=SITE_CD&&"us"!=SITE_CD?Sa():xa()}Xc.click(function(){signIn()});Rb.click(function(){oa="http://"+window.location.host+"/"+SITE_CD+"/";a("#joinReturnURL", 1037Wb).val(oa);a("#joinGoBackURL",Wb).val(oa);var H=a("#joinRegistURL",Wb).val();var U=window.location.port;U=null==U||""===U||"80"===U||"8080"===U?"https://"+window.location.host:"http://"+window.location.host;0>H.indexOf(window.location.hostname)&&(H=U+H,a("#joinRegistURL",Wb).val(H));H=a("#joinEmailActivationURL",Wb).val();0>H.indexOf(window.location.hostname)&&(H=window.location.protocol+"//"+window.location.host+H,a("#joinEmailActivationURL",Wb).val(H));Wb.submit()});Qc.click(function(){oa=window.location.href; 1038a("#findReturnURL",Qb).val(oa);a("#findGoBackURL",Qb).val(oa);Qb.submit()});Zc.click(function(){a(this).closest("#loginLayerPopup").is(":visible")&&(a("body").removeClass("gb-login-open"),a("#loginLayerPopup .popAlign").trigger("clickoutside","touchstartoutside"))});Rc.click(function(){"es"===SITE_CD&&ss.Auth.signOut();E();return!1});a(document).on("click",".loginBtn",function(H){H.preventDefault();H=!1;a(this).hasClass("nv00-gnb-v4__utility-btn")?"mobile"===window.sg.components.Nv00GnbV4.getCurrentDevice()&& 1039(H=!0):H=!0;H&&(ma?ss.Auth.checkSignInUs():ss.Auth.checkSignIn(J))});a(document).on("click",".js-account",function(H){H.preventDefault();fnIsNull(fc)?window.location.href="cn"===SITE_CD?"https://shop.samsung.com.cn/cn/mypage":"https://account.samsung.com/membership/contents/profile/profile-gate":window.location.href=fc});a(document).on("click",".logoutBtn",function(H){H.preventDefault();H=a(this).attr("data-return-url");ma&&!IS_B2B?("dev"===T?(oa=window.location.protocol+"//"+window.location.host+ 1040"/content/samsung/"+SITE_CD+".html",IS_B2B&&(oa=window.location.protocol+"//"+window.location.host+"/content/samsung/"+SITE_CD+"/business.html")):"qa"===T?(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+".html",IS_B2B&&(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business.html")):"live"===T&&(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/",IS_B2B&&(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business/")),ss.Auth.signOutUs()): 1041(null!=H&&""!==H?oa=H:"dev"===T?(oa=window.location.protocol+"//"+window.location.host+"/content/samsung/"+SITE_CD+".html",IS_B2B&&(oa=window.location.protocol+"//"+window.location.host+"/content/samsung/"+SITE_CD+"/business.html")):"qa"===T?(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+".html",IS_B2B&&(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business.html")):"live"===T&&(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/",IS_B2B&& 1042(oa=window.location.protocol+"//"+window.location.host+"/"+SITE_CD+"/business/")),ss.Auth.checkSignIn(J));return!1});a(".sign_input").focusin(function(){switch(a(this).attr("id")){case xc.attr("id"):jd.hide();break;case Yc.attr("id"):$c.hide()}});a(".sign-in__form-text").unbind("keydown").bind("keydown",function(H){if("13"===H.keyCode)switch(H.preventDefault(),a(this).attr("id")){case xc.attr("id"):case Yc.attr("id"):signIn()}});$b.focusin(function(H){H.preventDefault();Ec.addClass("fs-boarder")}); 1043$b.focusout(function(H){H.preventDefault();Ec.removeClass()});pd.click(function(){var H=Vc.is(":checked");if("tr"!=siteCode&&!H)return ed.show(),!1;qa=cd.is(":checked");"tr"==siteCode&&(ua=dd.is(":checked"),ob=od.is(":checked"));if(0<sb.length){var U=sb[0].id;if(null!=sb[1])var X=sb[1].id}if(fa)return a.cookies.set("shopPrivacyPolicyAgreeYN","Y",{domain:Q}),Ja();if(ma){var la=Vc.is(":checked")?!0:!1;H=null!=X?cd.is(":checked")?!0:!1:!1;U='{"consents": {"'+U+'" : {"is_accepted" : '+la+"}";null!=X&& 1044(U+=',"'+X+'" : {"is_accepted" : '+H+"}");return V(U+"}}")}return ca()});Vc.change(function(){ed.hide()});fd.click(function(){if("Y"===sa)ma?(a("#accountModifyForm").attr("target",""),a("#accountModifyForm").submit()):window.location.href=L;else if(null!=gd&&""!==gd)if("ca"===SITE_CD||"ca_fr"===SITE_CD){var H=a.cookies.get("prof_id",{domain:Q}),U=a.cookies.get("prof_country",{domain:Q});window.location.href="https://support-ca.samsung.com/seca/myaccount/ap/premodify/go?prof_id\x3d"+H+"\x26lang\x3d"+ 1045U+"\x26page\x3dmyaccount"}else window.location.href=STORE_DOMAIN+gd;else window.location.href=IS_B2B?da+"/ng/my-samsung/updatemyprofile":STORE_DOMAIN+"/"+SITE_CD+"/ng/my-samsung/updatemyprofile"});yc.click(function(){a(this).closest("#layerPreference").is(":visible")&&a(this).closest("#layerPreference").hide()});id.click(function(){a(".icon-down-arrow",lc).toggleClass("icon-up-arrow")})}function na(){return"undefined"!==typeof window?!(!window.EcommAndroidClient&&!window.flutter_inappwebview):!1} 1046function bb(){function J(){if(ma){if(!window.sg.epp.common.isPreLanding){var X={"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"};if("in"===siteCode){window&&window.EcommAndroidClient&&(X["x-ecom-app-id"]="samsung-mobile-app");if(na()){var la=-1<(navigator.userAgent&&navigator.userAgent.toLowerCase()).indexOf("android")?"samsung-mobile-app":"samsung-mobile-app-ios";X["x-ecom-app-id"]=la}X["x-ecom-source"]="AEM.PDP"}a.ajax({headers:X,url:STORE_DOMAIN+"/v4/shopping-carts/", 1047type:"POST",data:JSON.stringify({}),dataType:"json",xhrFields:{withCredentials:!0},beforeSend:function(ra){null!=U&&""!=U&&ra.setRequestHeader("x-ecom-jwt",U)},success:function(){var ra=a.cookies.get("s_ecom_sc_cnt",{domain:Q});null!=ra&&""!==ra&&(0===ra?pb.hide():pb.show(),pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productC
1047ountText").val()+" : \x3c/span\x3e"+ra))}})}}else ss.Auth.getGlobalCartCount()}null==window.sg.epp&&(window.sg.epp={},window.sg.epp.common={});var H=window.sg.epp.common.isLogged; 1048!H&&"in"===siteCode&&window.sg.epp.common.isEndlessAisleSite&&window.sg.epp.common.isGuestLogged&&(H=!0);var U=a.cookies.get("jwt_"+ya,{domain:Q});a(".js-epp-partner-bar-exit").on("click",function(){window.sg.epp.common.signOut(!0)});H?(!window.sg.epp.common.isExternalSSO&&gb&&u?b(gb,u,!0,!1):b(window.sg.epp.common.tempUserName,"",!0,!1),J(),Aa.addClass("hide"),a(document).on("click",".logoutBtn",function(X){X.preventDefault();window.sg.epp.common.signOut()})):(Aa.removeClass("hide"),J(),a(document).on("click", 1049".loginBtn",function(X){X.preventDefault();window.sg.epp.common.signIn()}))}function cb(J){var H=!0;a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-app-id":"identity-store","x-ecom-jwt":J},url:STORE_DOMAIN+"/v4/identity/preferences",type:"GET",dataType:"json",cache:!0,xhrFields:{withCredentials:!0},beforeSend:function(U){"Y"===Nb&&U.setRequestHeader("x-ecom-locale",Kb)},success:function(U){if(null!=U&&""!==U){if("pl"===SITE_CD)H= 1050!0;else if(null!=U.consents&&""!==U.consents){sb=Array(U.consents.length);for(var X=0;X<U.consents.length;X++){var la=U.consents[X];sb[X]=la;!0===la.data.is_required&&!0!==la.is_accepted&&(H=!1)}}!1===H&&(E(),Vb="Y"===N||"de"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Sb,z())}},error:function(U,X,la){console.error(X)}})}function wa(J){var H=a.cookies.get("jwt_"+ya,{domain:Q}),U=function(){e();c();mc.val("N")},X= 1051function(Ka){var Db={jwt:Ka};if("us"===siteCode){var nb=a.cookies.get("epp_verified",{domain:Q}),Na=a.cookies.get("tmktid",{domain:Q}),wb=a.cookies.get("store_id",{domain:Q});null!=nb&&(nb=nb.toString(),"true"==nb&&null!=Na&&""!=Na?Db.store_id=Na.toString():null!=wb&&""!=wb&&(Db.store_id=wb.toString()))}a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(Db), 1052xhrFields:{withCredentials:!0},beforeSend:function(Lb){"Y"===Nb&&Lb.setRequestHeader("x-ecom-locale",Kb)},success:function(Lb){if(200===Lb.statusCode||"200"===Lb.statusCode){var sc=a.cookies.get("jwt_"+ya,{domain:Q});mc.val("Y");var jc=function(){if(a.cookies.get("xsdcxyn")){if(a.cookies.get("tppid")&&a.cookies.get("tmktname")){var Ua=a.cookies.get("tlgimg");Ua&&(Ua=a('\x3cimg src\x3d"'+Ua+'"\x3e'),a(".epp-bar-logo").append(Ua));Ua=a.cookies.get("tmktname")+" Store";a(".epp-bar-username").text(Ua); 1053"16568500"===a.cookies.get("tppid")&&a(".gnb__utility-link.sea").removeClass("hidden");a(".epp-bar-wrap").show()}}else if(a.cookies.get("tppid")){var Kc=a.cookies.get("xsdcxyn");Ua=a.cookies.get("tlgimg");var wc=a.cookies.get("tmktname");Kc?(Kc=a.cookies.get("prof_fname")?a.cookies.get("prof_fname"):a.cookies.get("tmktname"),a(".epp-bar-logo img").remove(),Ua&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ua+'"/\x3e'),"null"!=Kc?a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+ 1054wc+" Store.\x3c/div\x3e Please enjoy our special offers for you"):a(".epp-bar-msg").html('Welcome \x3cdiv class\x3d"epp-bar-username"\x3e'+wc+'!\x3c/div\x3e Please \x3cdiv class\x3d"epp-bar-username"\x3e\x3ca href\x3d"#" id\x3d"openLogin"\x3elogin\x3c/a\x3e\x3c/div\x3e to enjoy our special offers for you')):"4145500"===a.cookies.get("tmktid")&&"17593200"===a.cookies.get("tppid")?(a(".epp-bar-logo img").remove(),Ua&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ua+'"/\x3e'),a(".epp-bar-msg").html("Welcome to Samsung's Friends and Family Store! Enjoy special pricing. Please \x3cdiv class\x3d'epp-bar-username'\x3e\x3ca href\x3d'#' id\x3d'openLogin' style\x3d'font-size:12px;'\x3elogin/signup\x3c/a\x3e\x3c/div\x3e to make a purchase.")): 1055"900297"==a.cookies.get("tmktid")||"4789760653"==a.cookies.get("tmktid")?(a(".epp-bar-logo img").remove(),Ua&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ua+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+wc+" Store!\x3c/div\x3e")):(a(".epp-bar-logo img").remove(),Ua&&a(".epp-bar-logo").append('\x3cimg src\x3d"'+Ua+'"/\x3e'),a(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username" style\x3d"color:#1428a0;"\x3e'+wc+" Store!\x3c/div\x3e Please \x3cdiv class\x3d'epp-bar-username' style\x3d'color:#1428a0;'\x3e\x3ca href\x3d'#' id\x3d'openLogin' style\x3d'color:#1428a0;'\x3elogin\x3c/a\x3e\x3c/div\x3e to enjoy our special pricing.")); 1056a(".epp-bar-wrap").slideDown()}else a(".epp-bar-wrap").hide();window.location.href.includes("us/business")&&a(".epp-bar-wrap").hide()};-1<window.location.href.indexOf("/us/")&&jc();-1<window.location.hostname.indexOf("stgwebus")||-1<window.location.hostname.indexOf("p6-pre-qa")||window.location.hostname.indexOf("p6-pre-qa");"us"!==siteCode||a.cookies.get("rewards_tier",{domain:Q})||a.ajax({url:"https://www.samsung.com/us/api/ecom/v4/rewards/reward-points",method:"GET",xhrFields:{withCredentials:!0}, 1057crossDomain:!0,headers:{"x-ecom-jwt":a.cookies.get("jwt_USA",{domain:Q})}});jc={"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*","x-ecom-jwt":sc};if("in"===siteCode){window&&window.EcommAndroidClient&&(jc["x-ecom-app-id"]="samsung-mobile-app");if(na()){var Wc=-1<(navigator.userAgent&&navigator.userAgent.toLowerCase()).indexOf("android")?"samsung-mobile-app":"samsung-mobile-app-ios";jc["x-ecom-app-id"]=Wc}jc["x-ecom-source"]="AEM.PDP"}a.ajax({headers:jc, 1058url:STORE_DOMAIN+"/v4/shopping-carts/",type:"POST",dataType:"json",data:JSON.stringify({}),xhrFields:{withCredentials:!0},beforeSend:function(Ua){"Y"===Nb&&Ua.setRequestHeader("x-ecom-locale",Kb)},success:function(){var Ua=a.cookies.get("s_ecom_sc_cnt",{domain:Q});null!=Ua&&""!==Ua&&(0===Ua?pb.hide():pb.show(),pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productC
1058ountText").val()+" : \x3c/span\x3e"+Ua))}});null!=Lb.user_info.firstname&&""!==Lb.user_info.firstname?(Aa.addClass("hide"),b(Lb.user_info.firstname, 1059Lb.user_info.lastname,!0)):a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",dataType:"json",data:JSON.stringify({jwt:sc}),xhrFields:{withCredentials:!0},beforeSend:function(Ua){"Y"===Nb&&Ua.setRequestHeader("x-ecom-locale",Kb)},success:function(Ua){null!=Ua&&""!==Ua&&(null!=Ua.user_info.firstname&&""!==Ua.user_info.firstname?(Aa.addClass("hide"),b(Ua.user_info.firstname,Ua.user_info.lastname, 1060!0)):(Aa.addClass("hide"),b("User","",!0)),login_user_info.user_info=Ua.user_info,login_user_info.login_type=Ua.login_type,login_user_info.user_identity=Ua.user_identity)}});cb(Ka)}else a.cookies.del("jwt_"+ya,{domain:Q}),a(".epp-bar-wrap").hide(),U()},error:function(Lb,sc,jc){console.error(sc);a.cookies.del("jwt_"+ya,{domain:Q});U()}})},la=function(){a.ajax({url:"/aemapi/v6/data-login/callSALogin."+siteCode+".json",type:"GET",dataType:"json",success:function(Ka){var Db=a.cookies.get("jwt_"+ya,{domain:Q}); 1061t();200===Ka.statusCode&&"Y"===Ka.redCookieChk?Db?X(Db):U():"N"===Ka.redCookieChk&&J?(e(),c(),xa()):U()},error:function(Ka,Db,nb){console.error(Db);U()}})},ra=a.cookies.get("sa_state",{domain:Q});a.cookies.get("temp_sa_state",{domain:Q});ra&&(y(),Fa=setInterval(y,9E5));if(H){ra={jwt:H};var qb=!1;if("us"===siteCode){var ta=a.cookies.get("epp_verified",{domain:Q}),Ea=a.cookies.get("tmktid",{domain:Q}),Bb=a.cookies.get("store_id",{domain:Q});null!=ta&&(ta=ta.toString(),"true"==ta&&null!=Ea&&""!=Ea?ra.store_id= 1062Ea.toString():null!=Bb&&""!=Bb&&(ra.store_id=Bb.toString()));a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",async:!1,dataType:"json",data:JSON.stringify({jwt:H}),xhrFields:{withCredentials:!0},success:function(Ka){Ka&&"us"===siteCode&&l(Ka);null==Ka||""===Ka||null==Ka.login_type||"guest_epp_store"!==Ka.login_type&&"referral_url"!==Ka.login_type?a.cookies.set("isUSGuestUser","N"):(qb= 1063!0,a.cookies.set("isUSGuestUser","Y"),a.cookies.del("snsSessionId"),a.cookies.del("snsSessionId",{path:"/",domain:Q}),a.cookies.del("isStoreLogedIn"),a.cookies.del("sa_em"),a.cookies.del("sa_em",{path:"/",domain:Q}),a.cookies.del("eVar67"),a.cookies.del("eVar67",{path:"/",domain:Q}),a.cookies.del("lastName",{domain:Q}),a.cookies.del("firstName",{domain:Q}),a.cookies.del("guid",{domain:Q}),a.cookies.del("ReD",{domain:Q}),a.cookies.del("ReDCheck",{domain:Q}),a.cookies.del("directCallFl",{expires:null, 1064domain:Q}),a.cookies.del("directCallFlv2",{expires:null,domain:Q}),a.cookies.del("returnURL",{domain:Q}),a.cookies.del("mVal10",{domain:Q}),a.cookies.del("mVal11",{domain:Q}),a.cookies.del("flpe",{domain:Q}),a.cookies.del("encGuid",{domain:domainName}),a.cookies.del("dcgue",{domain:Q}),a.cookies.del("dg_sai",{domain:Q}),a.cookies.del("glbState",{domain:domainName}),h(),c(),mc.val("N"))}})}qb||a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"}, 1065url:STORE_DOMAIN+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(ra),xhrFields:{withCredentials:!0},beforeSend:function(Ka){"Y"===Nb&&Ka.setRequestHeader("x-ecom-locale",Kb)},success:function(Ka){if(200===Ka.statusCode||"200"===Ka.statusCode){var Db=a.cookies.get("jwt_"+ya,{domain:Q});mc.val("Y");t();null!=Ka.user_info.firstname&&""!==Ka.user_info.firstname?(Aa.addClass("hide"),Db=a.cookies.get("guid",{domain:Q}),fnIsNull(Db)?b(Ka.user_info.firstname,Ka.user_info.lastname, 1066!0,!0):b(Ka.user_info.firstname,Ka.user_info.lastname,!0)):a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",dataType:"json",data:JSON.stringify({jwt:Db}),xhrFields:{withCredentials:!0},beforeSend:function(nb){"Y"===Nb&&nb.setRequestHeader("x-ecom-locale",Kb)},success:function(nb){null!=nb&&""!==nb&&(null!=nb.user_info.firstname&&""!==nb.user_info.firstname?(Aa.addClass("hide"),b(nb.user_info.firstname, 1067nb.user_info.lastname,!0,!0)):(Aa.addClass("hide"),b("User","",!0,!0)),login_user_info.user_info=nb.user_info,login_user_info.login_type=nb.login_type,login_user_info.user_identity=nb.user_identity)}});cb(H);-1<window.location.hostname.indexOf("stgwebus")||-1<window.location.hostname.indexOf("p6-pre-qa")||window.location.hostname.indexOf("p6-pre-qa");"us"!==siteCode||a.cookies.get("rewards_tier",{domain:Q})||a.ajax({url:"https://www.samsung.com/us/api/ecom/v4/rewards/reward-points",method:"GET",xhrFields:{withCredentials:!0}, 1068crossDomain:!0,headers:{"x-ecom-jwt":a.cookies.get("jwt_USA",{domain:Q})}})}else la()},error:function(Ka,Db,nb){console.error(Db);console.log(Ka);void 0==Ka.responseJSON||"StoreIdNotPresent"!==Ka.responseJSON.error?la():mc.val("N")}})}else J?la():mc.val("N")}function Sa(){a.ajax({url:"/aemapi/v6/data-login/holdLogin."+siteCode+".json",type:"GET",data:{return_url:window.location.href},dataType:"json",success:function(J){200===J.statusCode?location.reload(!0):301===J.statusCode?location.replace(J.returnURL): 1069f()},error:function(J,H,U){f()}})}function Ja(){var J=!IS_B2B||IS_B2B&&"Y"==a("#useLogin").val()&&null!=ib&&""!=ib?!0:!1,H=a.cookies.get("snsSessionId",{domain:Q}),U=a.cookies.get("xsdcxyn",{domain:Q}),X=a.cookies.get("xsdcbxyn",{domain:Q}),la=a.cookies.get("cntoken",{domain:Q}),ra=a.cookies.get("sa_state",{domain:Q}
1069),qb=a.cookies.get("temp_sa_state",{domain:Q});ra&&(y(),Fa=setInterval(y,9E5));var ta="Y"===a.cookies.get("estoreLoginRequesting",{domain:Q})?!0:!1;r();t();Aa.removeClass("hide");if(J){if(!IS_B2B&& 1070("YG"===U||"us"===SITE_CD&&"YA"===U||"YH"===U)&&gb&&u||IS_B2B&&X&&gb&&u)if(USE_ESTORE&&!Pa&&"cn"!=SITE_CD){J=!1;if(!ta){ta=[Q];for(H=0;H<ta.length;H++)if(-1<document.referrer.indexOf(ta[H])){J=!0;break}Z&&(J=!0);if(J)for(ta="www.samsung.com dev.samsung.com p4.samsung.com stgweb4.samsung.com ptcweb4.samsung.com local.dev.my.eu.samsung.com dev.my.eu.samsung.com stg.my.eu.samsung.com my.eu.samsung.com www.eumysamsung.com stg-account.samsung.com account.samsung.com local.sec.samsung.com dev-aem.samsung.com stg-aem.samsung.com itg-aem.samsung.com aem.samsung.com org-aem.samsung.com qaweb.samsung.com org-qaweb.samsung.com org-ap.samsung.com org-eu.samsung.com org-aem-eu.samsung.com aem-eu.samsung.com org-qashop.samsung.com qashop.samsung.com pre-qa.samsung.com pre-qa2.samsung.com p6-pre-qa.samsung.com p6-pre-qa2.samsung.com p6-pre-qa3.samsung.com ushl.samsung.com".split(" "), 1071H=document.referrer.replace(/http(s)?:\/\//,""),U="",la=0;la<ta.length;la++)if("es"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"uk"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"it"===SITE_CD||"au"===SITE_CD||"cn"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD|| 1072"eg"==SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||aa||IS_B2B){if(U="account.samsung.com"===ta[la]||"stg-account.samsung.com"===ta[la]?ta[la]+"/":ta[la]+"/"+SITE_CD+"/",-1<H.indexOf(U)&&"Y"!==a.cookies.get("isStoreLogedIn")){J=!1;break}}else if(U=ta[la]+"/"+SITE_CD+"/",-1<U.indexOf(H)&&"Y"!==a.cookies.get("isStoreLogedIn")){J=!1;break}}if(J)"es"=== 1073SITE_CD&&E(),w(!0),a.EstoreIfQueue&&a.EstoreIfQueue.setIsSignReady(!0);else{nextGenLoginResult=function(Na){if("0000"!==Na.resultCode)"903"===Na.resultCode||903===Na.resultCode?z("BA"):Na.customerStatus?z(Na.customerStatus):z("UK"),h();else if(w(!0),"Y"===a.cookies.get("estoreLoginRequesting",{domain:Q})&&(h(),ss.Auth.getGlobalCartCount()),C(),a.cookies.set("isStoreLogedIn","Y"),!Na.hasAddInfo&&("au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD|| 1074"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"uk"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"eg"==SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||aa||IS_B2B||("es"=== 1075SITE_CD||"it"===SITE_CD)&&-1<STORE_DOMAIN.indexOf("https://"))||!Na.hasAddInfo&&"cn"!==SITE_CD)fa?ca():(Vb="Y"===N||"de"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Sb,z())};a.cookies.set("estoreLoginRequesting","Y",{domain:Q});var Ea="";ta="";Ea=STORE_DOMAIN.split("/")[2];if(aa||IS_B2B)Ea=da.split("/")[2];ta="https://"+Ea+"/"+SITE_CD+"/ng/p4v1/sessionCheck";IS_B2B&&(ta=da+"/ng/p4v1/sessionCheck");"levant"==SITE_CD? 1076ta="https://"+Ea+"/jo/ng/p4v1/sessionCheck":"levant_ar"==SITE_CD?ta="https://"+Ea+"/jo_ar/ng/p4v1/sessionCheck":"n_africa"==SITE_CD&&(ta="https://"+Ea+"/ma/ng/p4v1/sessionCheck");"tr"===SITE_CD&&(ta=STORE_DOMAIN+"/tokocommercewebservices/v2/tr/users/current/sessionCheck");"us"===SITE_CD&&(ta=STORE_DOMAIN+"/tokocommercewebservices/v2/us/users/current/sessionCheck");if(Ob)try{a.ajax({url:ta,type:"GET",data:{ssoID:eb},dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded", 1077crossDomain:!0,success:function(Na){"0000"!==Na.resultCode?ss.Auth.signOut():nextGenLoginResult(Na)},error:function(Na,wb,Lb){Ya=!1}}),Ya||ss.Auth.signOut()}catch(Na){Ya=!1}else if("es"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"it"===SITE_CD||"au"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"uk"=== 1078SITE_CD||"my"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"us"===SITE_CD||"eg"===SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||aa||IS_B2B)try{a.ajax({url:ta,type:"GET",dataType:"jsonp",data:{ssoID:eb},jsonp:"callback",success:function(Na){var wb="0000"===Na.resultCode?!0:!1;"latin"===SITE_CD&&(wb=!0,Na.hasAddInfo=!0);wb?nextGenLoginResult(Na):ss.Auth.signOut()}, 1079error:function(Na,wb,Lb){Ya=!1}}),Ya||ss.Auth.signOut()}catch(Na){Ya=!1}else"cn"===SITE_CD&&(a("body").append("\x3ciframe id\x3d'storeLoginIframe' src\x3d'"+STORE_DOMAIN+"/"+SITE_CD+"/ng/p4v1/login' style\x3d'display:block;width:0px;height:0px;border:none;'\x3e\x3c/iframe\x3e"),a("#storeLoginIframe").load(function(){a("#storeLoginIframe").unbind("load");try{document.getElementById("storeLoginIframe").contentWindow.postMessage("","https://"+Ea);var Na=0;Ea=STORE_DOMAIN.split("/")[2];a.ajax({url:"https://"+ 1080Ea+"/"+SITE_CD+"/ng/p4v1/getSessionCheck",type:"GET",dataType:"jsonp",jsonp:"callback",success:function(wb){var Lb="0000"===wb.resultCode?!0:!1,sc="N";Na++;if(Lb)Na=0,nextGenLoginResult(wb);else{var jc=function(Wc){Na++;a.ajax({url:"https://"+Ea+"/"+SITE_CD+"/ng/p4v1/getSessionCheck",type:"GET",dataType:"jsonp",jsonp:"callback",success:function(Ua){var Kc="0000"===Ua.resultCode?!0:!1;sc="N";Kc?(Na=0,nextGenLoginResult(Ua)):(Na="Y"===sc)?(sc="N",setTimeout(function(wc){N
1080a=2;return function(){jc(wc)}}(Ua), 10815E3)):ss.Auth.signOut()},error:function(Ua,Kc,wc){Ya=!1}})};setTimeout(function(Wc){return function(){jc(Wc)}}(wb),6E3)}},error:function(wb,Lb,sc){Ya=!1}});Ya||ss.Auth.signOut()}catch(wb){Ya=!1,ss.Auth.signOut()}}))}}else if(Jb||Pa)w(!0);else{if("cn"==SITE_CD&&eb&&la){w(!0);var Bb=decodeURIComponent(la).split("|");a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:"https://shop-support.samsung.com.cn/api/auth/login/refresh",type:"POST", 1082data:JSON.stringify({clientId:Bb[3],clientSecret:Bb[4],refreshToken:Bb[1]}),dataType:"json",xhrFields:{withCredentials:!0},success:function(Na){if(null!=Na&&"200"==Na.status){var wb=Na.data.refresh_token,Lb=Na.data.expires_in;Na=encodeURIComponent(Na.data.access_token)+"|"+encodeURIComponent(wb)+"|"+encodeURIComponent(Lb)+"|"+encodeURIComponent(Bb[3])+"|"+encodeURIComponent(Bb[4]);a.cookies.set("cntoken",Na,{domain:Q})}else f()}})}}else U&&!IS_B2B||IS_B2B&&X?"cn"==SITE_CD?f():ra&&"cn"!=SITE_CD?Sa(): 1083xa():H?(w(!0),USE_ESTORE&&C()):!ra&&!qb||gb&&u||"cn"==SITE_CD||"us"==SITE_CD||Sa();if(IS_B2B&&X&&null!=eb&&"true"===a("#shopIntegrationFlag").val()){X=a.cookies.get("isSMBRegisteredUserYN");var Ka=a.cookies.get("goSMBRegisterYN"),Db=a.cookies.get("smbRegisterUrl"),nb=a.cookies.get("useSMBCookiePaths");null==nb&&(nb="");a.cookies.del("goSMBRegisterYN",{path:"/",domain:Q});a.cookies.del("smbRegisterUrl",{path:"/",domain:Q});X&&"Y"!=Ka||a.ajax({url:STORE_DOMAIN+"/tokocommercewebservices/v2/"+STORE_SITE_CODE+ 1084"/users/current/getCustomer",type:"GET",dataType:"json",async:!1,xhrFields:{withCredentials:!0},crossDomain:!0,beforeSend:function(){},success:function(Na){if(null!=Na&&null!=Na.customer){var wb="/"+SITE_CD+"/";1==Na.customer.isSMBRegisteredUser?(a.cookies.set("isSMBRegisteredUserYN","Y",{path:wb,domain:Q}),nb+=wb+";"):"Y"==Ka?document.location.href=Db:(a.cookies.set("isSMBRegisteredUserYN","N",{path:wb,domain:Q}),nb+=wb+";");a.cookies.set("useSMBCookiePaths",nb,{path:"/",domain:Q})}},error:function(Na){"401"== 1085Na.status&&ss.Auth.signOut()}})}"Y"==a.cookies.get("isSMBRegisteredUserYN")?a("li.js-smb-user-only-menu").show():a("li.js-smb-user-only-menu").remove()}ss.Auth.getGlobalCartCount();X=n(document.location.search);if(null!=X.customerStatus||null!=X.isblock)X.isblock&&"true"===X.isblock?z("BA"):data.customerStatus?z(data.customerStatus):z("UK")}function M(){var J=a.cookies.get("xsdcxyn",{domain:Q}),H=a.cookies.get("xsdcbxyn",{domain:Q});ma&&!IS_B2B?J?J?wa(J):wa():wa():(J&&!IS_B2B||H&&IS_B2B)&&fa?(J=STORE_DOMAIN+ 1086"/"+STORE_SITE_CODE,IS_B2B&&(J=da),a.ajax({url:J+"/ng/p4v1/getGuidCheckInfo",type:"GET",dataType:"jsonp",data:{ssoID:eb},jsonp:"callback",beforeSend:function(){},success:function(U){"0000"===U.resultCode?"N"===U.resultValue?(E(),Vb="Y"===N||"de"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"se"===SITE_CD||"si"===SITE_CD?null:Sb,z()):Ja():ss.Auth.signOut()},error:function(U,X,la){console.error(X)}})):Ja()}var I=navigator.userAgent,N="N";"in"===SITE_CD&& 1087(-1<I.indexOf("MyGalaxy")||-1<I.indexOf("SamsungShopSDK"))&&(N="Y");Granite.I18n.setLocale(a("#language").val());var T=a("#runmodeInfo").val(),Z="undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView(),fa="es"!==SITE_CD||Z?!1:!0,qa=!1,ua=!1,ob=!1,Ha=null,Ya=!0,oa="",ib=a("#loginLinkURL").val(),nc=a("#logoutURL").val(),Tb=!IS_B2B||IS_B2B&&"Y"==a("#useLogin").val()&&null!=ib&&""!=ib?!0:!1,pb=a(".gnb-cart-count"),Za=a(".nv00-gnb-v4__inner").find(".js-user-name"),Aa=a(".before-login"); 1088a("#scene7domain").val();var Q=".samsung.com";"cn"===SITE_CD&&(Q=".samsung.com.cn");var zc=a.cookies.get("xsdcxyn",{domain:Q}),Uc=a.cookies.get("xsdcbxyn",{domain:Q}),rb=!IS_B2B&&("YG"===zc||"us"===SITE_CD&&"YA"===zc)||IS_B2B&&"YGB"===Uc||IS_EPP&&zc?!0:!1;!rb&&(window.localStorage.getItem("dcgue")||window.localStorage.getItem("flpe")||window.localStorage.getItem("encGuid"))&&k();var eb=a.cookies.get("guid",{domain:Q}),Oa=window.cookies.getCookie("flpe");if(!(a.cookies.get("sa_state",{domain:Q})|| 1089Z||"ae"!==SITE_CD&&"ae_ar"!==SITE_CD&&"levant"!==SITE_CD&&"levant_ar"!==SITE_CD&&"iq_ar"!==SITE_CD&&"iq_ku"!==SITE_CD&&"sa"!==SITE_CD&&"sa_en"!==SITE_CD&&"n_africa"!==SITE_CD&&"eg"!==SITE_CD&&"il"!==SITE_CD&&"pk"!==SITE_CD&&"za"!==SITE_CD&&"ca"!==SITE_CD&&"ca_fr"!==SITE_CD&&"pl"!==SITE_CD&&"ro"!==SITE_CD&&"cz"!==SITE_CD&&"sk"!==SITE_CD&&"hr"!==SITE_CD&&"si"!==SITE_CD&&"hu"!==SITE_CD&&"lv"!==SITE_CD&&"lt"!==SITE_CD&&"ee"!==SITE_CD&&"gr"!==SITE_CD&&"mx"!==SITE_CD&&"cl"!==SITE_CD&&"co"!==SITE_CD&&"pe"!== 1090SITE_CD&&"au"!==SITE_CD&&"kz_ru"!==SITE_CD&&"kz_kz"!==SITE_CD&&"ua"!==SITE_CD&&"jp"!==SITE_CD&&"de"!==SITE_CD&&"fr"!==SITE_CD&&"be"!==SITE_CD&&"be_fr"!==SITE_CD&&"nl"!==SITE_CD&&"uk"!==SITE_CD&&"it"!==SITE_CD&&"es"!==SITE_CD&&"pt"!==SITE_CD&&"se"!==SITE_CD&&"dk"!==SITE_CD&&"fi"!==SITE_CD&&"no"!==SITE_CD&&"at"!==SITE_CD&&"ch"!==SITE_CD&&"ch_fr"!==SITE_CD&&"id"!==SITE_CD&&"th"!==SITE_CD&&"my"!==SITE_CD&&"ph"!==SITE_CD&&"sg"!==SITE_CD&&"nz"!==SITE_CD&&"vn"!==SITE_CD&&"ru"!==SITE_CD&&"tw"!==SITE_CD&& 1091"hk"!==SITE_CD&&"hk_en"!==SITE_CD))f();else if(Tb){var oc=window.cookies.getCookie("dcgue"),Fb=a.cookies.get("encGuid",{domain:Q});oc?(oc=decodeURIComponent(oc),window.localStorage.setItem("dcgue",encodeURIComponent(oc)),a.cookies.del("dcgue",{domain:Q}),void 0!=Oa&&window.localStorage.setItem("flpe",encodeURIComponent(Oa)),void 0!=Fb&&window.localStorage.setItem("encGuid",encodeURIComponent(Fb))):window.localStorage.getItem("dcgue")&&rb&&(oc=decodeURIComponent(window.localStorage.getItem("dcgue")), 1092void 0==Oa&&window.localStorage.getItem("flpe")&&(Oa=decodeURIComponent(window.localStorage.getItem("flpe")),document.cookie="flpe\x3d"+Oa+";domain\x3d"+Q+";path\x3d/"),void 0==Fb&&window.localStorage.getItem("encGuid")&&(Fb=decodeURIComponent(window.localStorage.getItem("encGuid")),document.cookie="encGuid\x3d"+Fb+";domain\x3d"+Q+";path\x3d/"));if(rb&&oc&&!eb&&Fb){var Tc=Fb.substring(4,36).toLowerCase(),hc=CryptoJS.enc.Utf8.parse(Tc),tc=CryptoJS.AES.decrypt(oc,hc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}); 1093eb=CryptoJS.enc.Utf8.stringify(tc)}var Dc=function(){a.ajax({url:"/aemapi/v6/data-login/getidentity."+siteCode+".json",type:"GET",data:{siteCode:siteCode,return_url:window.location.href,enc:Fb},dataType:"json",async:!1,timeout:1E4,success:function(J){200===J.statusCode&&(eb=J.identity)}})};rb&&!eb&&Dc();var lb={};if(Oa&&eb){var Xb=a("#cck").val(),pc=CryptoJS.enc.Utf8.parse(Xb),Fc=(CryptoJS.AES.encrypt
1093(""+eb,pc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+Xb).substring(0,32),ab=CryptoJS.enc.Utf8.parse(Fc), 1094Ia=CryptoJS.AES.decrypt(Oa,ab,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),gc=CryptoJS.enc.Utf8.stringify(Ia);lb=JSON.parse(decodeURIComponent(gc))}Z&&a.cookies.get("sa_state",{domain:Q})&&(a.cookies.del("firstName"),a.cookies.del("firstName",{domain:Q}),a.cookies.del("lastName"),a.cookies.del("lastName",{domain:Q}));var gb=lb.firstName?lb.firstName:a.cookies.get("firstName",{domain:Q}),u=lb.lastName?lb.lastName:a.cookies.get("lastName",{domain:Q}),Ab=lb.picturePath?lb.picturePath:a.cookies.get("mVal11", 1095{domain:Q});null!=Ab&&""!=Ab&&(Ab=decodeURI(Ab.toString()));var ec=a.cookies.get("cnfl",{domain:Q});if("cn"===SITE_CD&&eb&&ec&&!IS_EPP){var ic=a("#cck").val(),Oc=CryptoJS.enc.Utf8.parse(ic),Pc=(CryptoJS.AES.encrypt(""+eb,Oc,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+ic).substring(0,32),Pb=CryptoJS.enc.Utf8.parse(Pc),db=CryptoJS.AES.decrypt(ec,Pb,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),Ub=CryptoJS.enc.Utf8.stringify(db);gb=Granite.I18n.get("Hello");u=decodeURIComponent(Ub)}}var Fa= 10960,Jb=a("#isLoginWithNoStore").val();Jb="Y"===Jb?!0:!1;var L=a("#gnbMyAccountUrl").val(),aa="Hybris-new"===a("#shopIntegrationFlag").val()?!0:!1,ba="Hybris-intg"===a("#shopIntegrationFlag").val()?!0:!1,ka="Hybris"===a("#shopIntegrationFlag").val()?!0:!1,ma="GPv2"===a("#shopIntegrationFlag").val()?!0:!1,sa=ma||aa||"Hybris-intg"===a("#shopIntegrationFlag").val()?"Y":"",ya=a("#countryIsoCode").val(),da=a("#storeWebDomain").val(),Pa=!1;if("ar"===SITE_CD||"co"===SITE_CD||"py"===SITE_CD||"mx"===SITE_CD|| 1097"uy"===SITE_CD||"br"===SITE_CD)Pa=!0;if(ma){var Zb=a.cookies.get("s_ecom_sc_cnt",{domain:Q});null!=Zb&&""!==Zb&&(pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e"+Zb),0===Zb?pb.hide():pb.show())}var Nb=a("#multiLanguageYn").val(),Kb=a("#localLang").val();null!=Kb&&(Kb=Kb.toLowerCase());var kc="https://sso-stg.us.samsung.com/sso";"prod"===a("#serverType").val()&&(kc="https://sso-us.samsung.com/sso");var sb=[],fc="",Ob=a("#hybrisApiJson").val(),Vb=null,lc=null, 1098Wb=null,Qb=null,La=null,Cb=null,Xc=null,Rb=null,Qc=null,id=null,Rc=null,Vc=null,cd=null,dd=null,od=null,ed=null,xc=null,Yc=null,$b=null,Ec=null,jd=null,$c=null,Zc=null,Sb=null,Jc=null,Cc=null,pd=null,fd=null,yc=null,mc=a("#loginValidateYnForGPv2"),ud=!fnIsNull(a("#mySamsungRewardsTierType").val())&&"none"!=a("#mySamsungRewardsTierType").val(),gd=a("#updateProfileURL").val();ss.Auth={};Date.prototype.format=function(J){if(!this.valueOf())return" ";var H=this;return J.replace(/(yyyy|MM|dd|HH|mm|ss)/gi, 1099function(U){switch(U){case "yyyy":return H.getFullYear();case "MM":return(H.getMonth()+1).zf(2);case "dd":return H.getDate().zf(2);case "HH":return H.getHours().zf(2);case "mm":return H.getMinutes().zf(2);case "ss":return H.getSeconds().zf(2);default:return U}})};String.prototype.string=function(J){for(var H="",U=0;U++<J;)H+=this;return H};String.prototype.zf=function(J){return"0".string(J-this.length)+this};Number.prototype.zf=function(J){return this.toString().zf(J)};String.prototype.escapeHtml= 1100function(){return this.replace(/</g,"\x26lt;").replace(/"/g,"\x26quot;").replace(/>/g,"\x26gt;").replace(/'/g,"\x26#039;")};var Sc=function(J,H){J="?$"+J;H=H.toLowerCase();return J=-1<H.indexOf(".jpg")?J+"_JPG$":-1<H.indexOf(".jpeg")?J+"_JPG$":-1<H.indexOf(".png")?J+"_PNG$":-1<H.indexOf(".gif")?J+"_GIF$":J+"_PNG$"};ss.Auth.checkSignInUs=function(J){var H=a.cookies.get("xsdcxyn",{domain:Q}),U=a.cookies.get("jwt_"+ya,{domain:Q}),X=function(){a.ajax({url:"/aemapi/v6/data-login/callSALogin."+siteCode+ 1101".json",type:"GET",dataType:"json",success:function(Ea){200===Ea.statusCode?"N"===Ea.redCookieChk?(e(),c(),J&&"function"==typeof J?J():xa()):a.cookies.get("jwt_"+ya,{domain:Q})?location.reload(!0):(e(),c(),J&&"function"==typeof J?J():xa()):(e(),c(),J&&"function"==typeof J?J():xa())},error:function(Ea,Bb,Ka){console.error(Bb);e();c();J&&"function"==typeof J?J():xa()}})};if(U){H={jwt:U};var la=!1;if("us"===siteCode){var ra=a.cookies.get("epp_verified",{domain:Q}),qb=a.cookies.get("tmktid",{domain:Q}), 1102ta=a.cookies.get("store_id",{domain:Q});null!=ra&&(ra=ra.toString(),"true"==ra&&null!=qb&&""!=qb?H.store_id=qb.toString():null!=ta&&""!=ta&&(H.store_id=ta.toString()));a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/jwt/details",type:"POST",async:!1,dataType:"json",data:JSON.stringify({jwt:U}),xhrFields:{withCredentials:!0},success:function(Ea){Ea&&"us"===siteCode&&l(Ea);null==Ea||""===Ea||null==Ea.login_type|| 1103"guest_epp_store"!==Ea.login_type&&"referral_url"!==Ea.login_type?a.cookies.set("isUSGuestUser","N"):(la=!0,a.cookies.set("isUSGuestUser","Y"))}})}la?J&&"function"==typeof J?J():xa():a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/user/validate",type:"POST",dataType:"json",data:JSON.stringify(H),xhrFields:{withCredentials:!0},beforeSend:function(Ea){"Y"===Nb&&Ea.setRequestHeader("x-ecom-locale",Kb)},success:function(Ea){200!== 1104Ea.statusCode&&"200"!==Ea.statusCode?X():null!=Ea.user_info.firstname&&""!==Ea.user_info.firstname&&(Aa.addClass("hide"),fnIsNull(eb)?b(Ea.user_info.firstname,Ea.user_info.lastname,!0,!0):b(Ea.user_info.firstname,Ea.user_info.lastname,!0),-1<window.location.hostname.indexOf("stgwebus")||-1<window.location.hostname.indexOf("p6-pre-qa")||window.location.hostname.indexOf("p6-pre-qa"),"us"!==siteCode||a.cookies.get("rewards_tier",{domain:Q})||a.ajax({url:"https://www.samsung.com/us/api/ecom/v4/rewards/reward-points", 1105method:"GET",xhrFields:{withCredentials:!0},crossDomain:!0,headers:{"x-ecom-jwt":a.cookies.get("jwt_USA",{domain:Q})}}))},error:function(Ea,Bb,Ka){console.error(Bb);X()}})}else H?X():J&&"function"==typeof J?J():xa()};ss.Auth.checkSignIn=function(J,H,U){var X=!1;if(!IS_B2B||null!=ib&&""!=ib&&IS_B2B){var la=a.cookies.get("xsdcxyn",{domain:Q}),ra=a.cookies.get("xsdcbxyn",{domain:Q}),qb=a.cookies.get("snsSessionId",{domain:Q});if(!IS_B2B&&la||IS_B2B&&(ra||qb))if(H){if(USE_ESTORE&&!Pa){H="";H=STORE_DOMAIN.split("/")[2]; 1106if(aa||IS_B2B)H=da.split("/")[2];"au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"===SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"uk"===SITE_CD||"ca"===SITE_CD||"ca_fr"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||"es"===SITE_CD||"it"===SITE_CD||"pt"===SITE_CD||"sg"===SITE_CD||"eg"==SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD|| 1107"hu"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||aa||IS_B2B?(H="https://"+H+"/"+SITE_CD+"/ng/p4v1/sessionCheck",IS_B2B&&(H=da+"/ng/p4v1/sessionCheck")):H="levant"===SITE_CD?"https://"+H+"/jo/ng/p4v1/sessionCheck":"levant_ar"===SITE_CD?"https://"+H+"/jo_ar/ng/p4v1/sessionCheck":"n_africa"===SITE_CD?"https://"+H+"/ma/ng/p4v1/sessionCheck":"https://"+H+"/"+SITE_CD+"/ng/p4v1/getSessionCheck";"tr"===SITE_CD&&(H=STORE_DOMAIN+"/tokocommercewebservices/v2/tr/users/current/sessionCheck"); 1108"us"===SITE_CD&&(H=STORE_DOMAIN+"/tokocommercewebservices/v2/us/users/current/sessionCheck");Ob?a.ajax({url:H,type:"GET",data:{ssoID:eb},dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,success:function(ta){J&&"function"==typeof J&&(ta="0000"===ta.resultCode?!0:!1,0==ta&&(f(),U&&xa()),J(ta))},error:function(ta,Ea,Bb){}}):a.ajax({url:H,type:"GET",dataType:"jsonp",data:{ssoID:eb},jsonp:"callback",success:function(ta){J&&"function"==typeof J&& 1109(ta="0000"===ta.resultCode?!0:!1,0==ta&&(f(),U&&xa()),J(ta))},error:function(ta,Ea,Bb){}})}}else X=!0,J&&"function"==typeof J&&J(X);else J&&"function"==typeof J&&(J(X),U&&xa()),w(!1)}return X};ss.Auth.callSaSignInGate=function(){xa()};ss.Auth.getUserProfile=function(J){if(Ha)J&&"function"==typeof J&&J(Ha);else{var H=a.cookies.get("xsdcxyn",{domain:Q}),U=a.cookies.get("snsSessionId",{domain:Q}),X=a.cookies.get("xsdcbxyn",{domain:Q});!IS_B2B&&!H&&U||IS_B2B&&!X&&U?Ob?a.ajax({url:STORE_DOMAIN+"/"+STORE_SITE_CODE+ 1110"/ng/p4v1/getSnsUserInfo?snsSessionId\x3d"+U,type:"GET",dataType:"json",xhrFields:{withCredentials:!0},contentType:"application/x-www-form-urlencoded",crossDomain:!0,beforeSend:function(){},success:function(la){Ha=la?{firstName:la.givenName,lastName:la.familyName}:null;J&&"function"==typeof J&&J(Ha)},error:function(la,ra,qb){console.error(ra)}}):a.ajax({url:STORE_DOMAIN+"/"+STORE_SITE_CODE+"/ng/p4v1/getSnsUserInfo?snsSessionId\x3d"+U,type:"GET",dataType:"jsonp",jsonp:"callback",beforeSend:function(){}, 1111success:function(la){Ha=la?{firstName:la.givenName,lastName:la.familyName}:null;J&&"function"==typeof J&&J(Ha)},error:function(la,ra,qb){console.error(ra)}}):H&&!IS_B2B?(b(gb,u,!0),Ha={firstName:gb,lastName:u},reservationUserData={firstName:gb,lastName:u}):X&&IS_B2B?(H=a.cookies.get("emailId",{domain:Q}),b(gb,u,!0),Ha={firstName:gb,lastName:u,emailId:H}):(H=function(){console.log("get user profile Success");if(null!=gb||null!=u){Ha={firstName:gb,lastName:u};reservationUserData={firstName:gb,lastName:u}; 1112if(IS_B2B){var la=a.cookies.get("emailId",{domain:Q}),ra=a.cookies.get("emailAddrText",{domain:Q}),qb=a.cookies.get("phone",{domain:Q}),ta=a.cookies.get("userAccount",{domain:Q});Ha={firstName:gb,lastName:u,emailId:la};reservationUserData={firstName:gb,lastName:u,emailAddr:ra,phone:qb,userAccount:ta}}if(USE_ESTORE||Jb)"vn"===SITE_CD?b("",u,!0):b(gb,u,!0)}else Ha=null,(USE_ESTORE||Jb)&&b("","",!0);J&&"function"==typeof J&&J(Ha)},"Y"===a("#useLogin").val()&&(USE_ESTORE?ss.EstoreIfQueue.setQueue(H): 1113H()))}};ss.Auth.signOutUs=function(J){oa=J?J:window.location.href;oa=oa.escapeHtml();var H=a.cookies.get("jwt_"+ya,{domain:Q});if("us"==siteCode){var U=-1==window.location.hostname.indexOf("www.samsung.com")?"https://us.ecom-stg.samsung.com":"https://www.samsung.com/us/api";J=btoa(window.location.href+"?state\x3d"+Math.random().toString(36).substr(2,11));var X=a("#loginAccountServiceId").val();U+="/v2/sso/user/logout";var la=-1==window.location.hostname.indexOf("www.samsung.com")?"https://stg-account.samsung.com/accounts/v1/samsung_com_us": 1114"https://account.samsung.com/accounts/v1/samsung_com_us";window.location.href=la+"/signOutGate?client_id\x3d"+X+"\x26signOutURL\x3d"+U+"\x26state\x3d"+J}else H?(a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Allow-Origin":"*"},url:STORE_DOMAIN+"/v1/sso/user/logout",type:"GET",dataType:"json",xhrFields:{withCredentials:!0},crossDomain:!0,async:!1,beforeSend:function(ra){"Y"===Nb&&ra.setRequestHeader("x-ecom-locale",Kb);"us"===siteCode&&ra.setRequestHeader("x-ecom-jwt", 1115H)},success:function(ra){200===ra.statusCode||"200"===ra.statusCode?"us"===siteCode?a.ajax({headers:{"Cache-Control":"no-cache","Content-Type":"application/json","Access-Control-Request-Headers":"access-control-allow-origin","Access-Control-Allow-Origin":"*"},url:kc+"/apiservices/logout",type:"GET",dataType:"jsonp",async:!1,crossDomain:!0,xhrFields:{withCredentials:!0},success:function(qb){window.location.replace("/"+SITE_CD)},error:function(qb,ta,Ea){console.error(ta);a.cookies.del("jwt_"+ya,{domain:Q}); 1116window.location.replace("/"+SITE_CD)}}):window.location.replace("/"+SITE_CD):a.cookies.del("jwt_"+ya,{domain:Q})},error:function(ra,qb,ta){console.error(qb);a.cookies.del("jwt_"+ya,{domain:Q});window.location.replace("/"+SITE_CD)},complete:function(){ea()}}),Aa.removeClass("hide"),b("","",!1)):location.href=oa,oa=void 0};ss.Auth.signOut=function(J){oa=J?J:window.location.href;oa=oa.escapeHtml();(USE_ESTORE||Jb||Pa||IS_B2B)&&Ya?"au"===SITE_CD||"latin"===SITE_CD||"tw"===SITE_CD||"ru"===SITE_CD||"ae"=== 1117SITE_CD||"ae_ar"===SITE_CD||"jp"===SITE_CD||"vn"===SITE_CD||"th"===SITE_CD||"sa"===SITE_CD||"sa_en"===SITE_CD||"nz"===SITE_CD||"uk"===SITE_CD||Jb||Pa||"ca"===SITE_CD||"ca_fr"===SITE_CD||"se"===SITE_CD||"dk"===SITE_CD||"fi"===SITE_CD||"no"===SITE_CD||"at"===SITE_CD||"my"===SITE_CD||("es"===SITE_CD||"it"===SITE_CD)&&-1<STORE_DOMAIN.indexOf("https://")||"pt"===SITE_CD||"sg"===SITE_CD||"za"==SITE_CD||"hk"==SITE_CD||"hk_en"==SITE_CD||"hu"==SITE_CD||"eg"==SITE_CD||"levant"==SITE_CD||"levant_ar"==SITE_CD|| 1118"n_africa"==SITE_CD||"pk"==SITE_CD||"ch"==SITE_CD||"ch_fr"==SITE_CD||"il"==SITE_CD||aa||IS_B2B?(ea(),g(!1)):(k(),clearInterval(Fa),location.href=STORE_DOMAIN+"/"+SITE_CD+"/ng/logout?goUrl\x3d"+encodeURIComponent(oa)):location.href=oa;oa=void 0;Ha=null};ss.Auth.setCartEl=function(J){J=a(".js-global-cart-btn");var H=a("#pageTrack").val();J.each(function(){a(this).hasClass("js-has-carturl")&&a(this).attr("an-tr","nv00_gnb-"+H+"-gnb cart icon-navigation6")});J.removeClass("js-layer-open");J.removeAttr("data-target-popup"); 1119var U=J.data("cart-url");J.attr("href",U)};ss.Auth.getGlobalCartCount=function(J){function H(X){var la=!1,ra=0;aa||ba||ka||IS_B2B?X?(X=parseInt(X),!isNaN(X)&&0<X?(ra=99<X?99:X,la=!0):la=!1):la=!1:X?"0000"===X.resultCode?(ra=99<parseInt(X.cartCount)?99:parseInt(X.cartCount),0<ra&&(la=!0)):la=!1:la=!1;
1119la?(pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e"+ra),pb.show()):(pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e0"), 1120pb.hide());ss.Auth.setCartEl(la);J&&"function"==typeof J&&J(X)}function U(X){if(X)estore.getCartCount(H);else{IS_EPP&&ss.cookies.del("everAddCart",{path:"/"+siteCode,domain:Q});X=ss.cookies.get("everAddCart",{domain:Q});if("br"===SITE_CD||"ar"===SITE_CD||"mx"===SITE_CD||"co"===SITE_CD||"py"===SITE_CD||"uy"===SITE_CD)X="Y";"sec"!==SITE_CD||void 0!==X&&null!==X||(X="N");"Y"===X?estore.getCartCount(H):(pb.html('\x3cspan class\x3d"hidden"\x3e'+a("#productCountText").val()+" : \x3c/span\x3e0"),pb.hide(), 1121ss.Auth.setCartEl(!1))}}USE_ESTORE&&"Y"!==a.cookies.get("estoreLoginRequesting",{domain:Q})&&(IS_EPP?window.sg.epp.common.isLogged?U(!0):U(!1):ss.Auth.checkSignIn(U))};ss.Auth.setReturnURL=function(J){};Wb=a("#joinForm");Qb=a("#findAccountForm");La=a("#signInForm");Cb=a("#signOutForm");lc=a("#loginLayerPopup");xc=a("#email");Yc=a("#password");$b=a("#save-mail");Ec=a("label[for\x3d'save-mail']");jd=a("#errorId");$c=a("#errorPw");Xc=a("input[type\x3d'submit'].sign-in__btn-submit");Rb=a(".sign-in__btn-submit__black"); 1122Qc=a(".sign-in__form-forgot-password a");id=a("#signToggleArrow");Zc=a("#loginLayerPopup .login-close-btn");Rc=a(".login-leave-btn");Sb=a("#layerPrivacy");ma&&(Sb=a("#layerPrivacyGPV2"));Jc=a("#layerPreference");Cc=a("#confirmPopup");pd=a("#privacyBtn",Sb);Vc=a("#privacy-terms",Sb);cd=a("#privacy-terms2",Sb);dd=a("#privacy-terms3",Sb);od=a("#privacy-terms4",Sb);ed=a("#errorPrivacy",Sb);fd=a("#preferenceCheckBtn",Jc);yc=a("#privacyCloseBtn");IS_EPP?bb():(va(),M())}})(jQuery);new ss.Sign; 1123(function(){window.AEMapp=window.AEMapp||{};window.AEMapp.eppStore=window.AEMapp.eppStore||{};window.AEMapp.eppStore.isRealEppUser=function(){var l=$.cookies.get("jwt_USA"),f=$.cookies.get("tmktid"),b=$.cookies.get("taccessrtype")||"";return!!l&&!!f&&~b.toLowerCase().indexOf("email")};window.AEMapp.eppStore.isUnverifiedEppUser=function(){var l=$.cookies.get("tmktid"),f=$.cookies.get("taccessrtype")||"";return!!$.cookies.get("jwt_USA")&&!!l&&-1==f.toLowerCase().indexOf("email")};window.AEMapp.eppStore.setEppStoreCookie= 1124function(l){var f=l&&l.store_info,b={path:"/",domain:".samsung.com"};$.cookies.set("jwt_USA",l.jwt,b);$.cookies.set("epp_verified",l.epp_verified,b);$.cookies.set("tmktname",f.store_disp_name,b);$.cookies.set("tmktid",f.store_id,b);$.cookies.set("tlgimg",f.image_logo_url,b);$.cookies.set("tppid",f.legacy_plan_id,b);$.cookies.set("tsgmt",f.store_segment,b)};window.AEMapp.eppStore.clearEppStoreCookie=function(){var l={path:"/",domain:".samsung.com"};$.cookies.del("tmktname",l);$.cookies.del("tmktid", 1125l);$.cookies.del("tlgimg",l);$.cookies.del("tppid",l);$.cookies.del("tsgmt",l);$.cookies.del("epp_verified",l)};window.AEMapp.eppStore.getEcomURL=function(){var l="https://www.samsung.com/us/api/ecom";~window.location.href.indexOf("stgwwwus")&&(l="https://us.ecom-qa.samsung.com");~window.location.href.indexOf("stgwebus")&&(l="https://us.ecom-stg.samsung.com");return l};window.AEMapp.eppStore.getEppStore=function(){return new Promise(function(l,f){$.ajax({url:"/us/smg/content/samsung/content-library/prepurchase/eppdiscount/epp-discount.json", 1126method:"GET",success:function(b){l(b)},error:function(b){l({eppDiscounts:[{storeId:"4789741110",label:"Education Discounts"},{storeId:"654345",label:"First Responders Discounts"},{storeId:"4789760945",label:"Government Discounts"},{storeId:"3485000",label:"Workplace Discounts"},{storeId:"4789760940",label:"Military Discounts"}]})}})})};window.AEMapp.eppStore.exitStore=function(){$.cookies.get("jwt_USA")&&$.ajax({url:window.AEMapp.eppStore.getEcomURL()+"/v1/sso/user/private-store/exit-store",method:"GET", 1127headers:{"x-ecom-jwt":$.cookies.get("jwt_USA")},success:function(l){l&&l.jwt?$.cookies.set("jwt_USA",l.jwt,{path:"/",domain:".samsung.com"}):$.cookies.del("jwt_USA",{path:"/",domain:".samsung.com"})},fail:function(){$.cookies.del("jwt_USA",{path:"/",domain:".samsung.com"})}});window.AEMapp.eppStore.clearEppStoreCookie()};window.AEMapp.eppStore.updateGNBCartSaving=function(){function l(f,b){_.each(f,function(g){b=((100*g.line_item_cost.unit_list_price-100*g.line_item_cost.unit_price)/100*1E5*g.quantity/ 11281E3+100*b)/100;g.line_items&&0<Object.keys(g.line_items).length&&(b=l(g.line_items,b))});return b}($.cookies.get("remoteId")||$.cookies.get("xsdcxyn"))&&$.cookies.get("tppid")&&
11281<=$.cookies.get("s_ecom_sc_cnt")?$.ajax({type:"POST",url:window.AEMapp.eppStore.getEcomURL()+"/v4/shopping-carts/fetch-cart",headers:{"x-ecom-jwt":$.cookies.get("jwt_USA"),"x-ecom-app-id":"temp"},contentType:"application/json",data:JSON.stringify({}),xhrFields:{withCredentials:!0,crossDomain:!0}}).then(function(f){(f=l(f.line_items, 11290))&&(0<$(".epp-bar-save").length?$(".epp-bar-save").html("You will save \x3cb\x3e$"+f.toFixed(2)+"\x3c/b\x3e on this purchase."):$(".epp-bar-msg").after('\x3cspan class\x3d"epp-bar-save"\x3eYou will save \x3cb\x3e$'+f.toFixed(2)+"\x3c/b\x3e on this purchase.\x3c/span\x3e"))}):$(".epp-bar-save").remove()};window.AEMapp.eppStore.updateEppGNB=function(l,f){var b={education:"/us/shop/discount-program/education/","first responder":"/us/shop/discount-program/first-responders/",government:"/us/shop/discount-program/government/", 1130employee:"/us/shop/discount-program/workplace/",military:"/us/shop/discount-program/military/"}[($.cookies.get("tsgmt")||"").toLowerCase()]||"/us/shop/discount-program/",g=$(".epp-bar-wrap");g.show();g.addClass("gnb-edited");var p=g.find(".epp-bar-msg");p.empty();var r=g.find(".benfit-wrap");r.empty();var t=g.find(".epp-bar-logo");t.empty();$.cookies.get("tlgimg")&&($(".epp-bar-logo img").remove(),t.append("\x3cimg src\x3d"+$.cookies.get("tlgimg")+" /\x3e"));window.EcommFlutterClient&&(window.EcommFlutterClient.onmessage= 1131function(w){w=JSON.parse(w.data);var y=w.data.status;"isSignedInStatus"===w.name&&(window.isShopSignedIn=y)},window.EcommFlutterClient.postMessage(JSON.stringify({name:"isSignedIn",params:{callbackEvent:"isSignedInStatus"}})));$.cookies.get("remoteId")||$.cookies.get("xsdcxyn")||window.isShopSignedIn?p.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+l+" Store!\x3c/div\x3e Please enjoy our special offers for you."):"900297"==$.cookies.get("tmktid")||"4789760653"==$.cookies.get("tmktid")? 1132p.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+l+" Store!\x3c/div\x3e"):p.append('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+l+' Store!\x3c/div\x3e Please \x3ca href\x3d"#" class\x3d"epp-login"\x3elogin\x3c/a\x3e to access your special pricing.');"900297"!=$.cookies.get("tmktid")&&"4789760653"!=$.cookies.get("tmktid")&&r.append('\x3ca class\x3d"benfit-wrap__offers" href\x3d"'+b+'"\x3eSPECIAL OFFERS\x3c/a\x3e\x3cspan class\x3d"benfit-wrap__gap"\x3e\x3c/span\x3e\x3ca class\x3d"benfit-wrap__exit"\x3eEXIT STORE\x3c/a\x3e'); 1133g.find(".epp-login").click(function(w){w.preventDefault();$(".nv00-gnb-v4__utility-menu.loginBtn").trigger("click")});r.find(".benfit-wrap__exit").click(function(){window.AEMapp.eppStore.exitStore();$(document).trigger("exit__store");$(".epp-bar-wrap").hide();$(".epp-bar-wrap").find(".epp-bar-msg").empty();$(".epp-bar-wrap").find(".epp-bar-logo").empty();$(".epp-bar-wrap").find(".benfit-wrap").empty()});($.cookies.get("remoteId")||$.cookies.get("xsdcxyn"))&&$.cookies.get("tppid")&&1<=$.cookies.get("s_ecom_sc_cnt")&& 1134window.AEMapp.eppStore.updateGNBCartSaving();l=g.find(".benfit-wrap__exit");l.attr("an-tr","epp discount-"+f+"-text-link");l.attr("an-ca","content click");l.attr("an-ac","feature");l.attr("an-la","epp:bar:exit store");l=g.find(".benfit-wrap__offers");l.attr("an-tr","epp discount-"+f+"-text-link");l.attr("an-ca","content click");l.attr("an-ac","feature");l.attr("an-la","epp:bar:special offer");window.location.href.includes("us/business")&&g.hide()};if("us"===siteCode&&!window.location.href.includes("us/business"))if($.cookies.get("tmktid")|| 1135$.cookies.get("tppid")){var a=$.cookies.get("xsdcxyn")||$.cookies.get("remoteId"),n=$.cookies.get("tlgimg"),h=$.cookies.get("tmktname");if(h)if(window.AEMapp&&window.AEMapp.eppStore&&window.AEMapp.eppStore.isUnverifiedEppUser()&&!window.isSaLogin)window.AEMapp.eppStore.updateEppGNB(h,window.digitalData&&window.digitalData.page&&window.digitalData.page.pageInfo&&window.digitalData.page.pageInfo.pageTrack||"");else{if(a){var e=$.cookies.get("guid",{domain:".samsung.com"});a=$.cookies.get("flpe",{domain:".samsung.com"}); 1136var c={};if(a&&e){c=$("#cck").val();var k=CryptoJS.enc.Utf8.parse(c);
1136e=(CryptoJS.AES.encrypt(e,k,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7})+c).substring(0,32);e=CryptoJS.enc.Utf8.parse(e);a=CryptoJS.AES.decrypt(a,e,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7});a=CryptoJS.enc.Utf8.stringify(a);c=JSON.parse(decodeURIComponent(a))}a=(a=c.firstName)?a:$.cookies.get("tmktname");$(".epp-bar-logo img").remove();n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e');"null"!=a&&(window.isSaLogin|| 1137window.isShopSignedIn)?$(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+h+" Store.\x3c/div\x3e Please enjoy our special offers for you"):$(".epp-bar-msg").html('Welcome \x3cdiv class\x3d"epp-bar-username"\x3e'+h+'!\x3c/div\x3e Please \x3ca href\x3d"#" id\x3d"openLogin" style\x3d"color:#1428a0;font-weight: bold"\x3elogin\x3c/a\x3e to enjoy our special offers for you')}else a&&"4145500"===$.cookies.get("tmktid")&&"17593200"===$.cookies.get("tppid")?($(".epp-bar-logo img").remove(), 1138n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e'),$(".epp-bar-msg").html("Welcome to Samsung's Friends and Family Store! Enjoy special pricing. Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'font-size:12px;font-weight: bold'\x3elogin/signup\x3c/a\x3e to make a purchase.")):"900297"==$.cookies.get("tmktid")||"4789760653"==$.cookies.get("tmktid")?($(".epp-bar-logo img").remove(),n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e'),$(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username"\x3e'+ 1139h+" Store!\x3c/div\x3e")):($(".epp-bar-logo img").remove(),n&&$(".epp-bar-logo").append('\x3cimg src\x3d"'+n+'"/\x3e'),$(".epp-bar-msg").html('Welcome to the \x3cdiv class\x3d"epp-bar-username" style\x3d"color:#1428a0;"\x3e'+h+" Store!\x3c/div\x3e Please \x3ca href\x3d'#' id\x3d'openLogin' style\x3d'color:#1428a0;font-weight: bold'\x3elogin\x3c/a\x3e to enjoy our special pricing."),$("#openLogin").click(function(l){l.preventDefault();$(".gnb-login").trigger("click")}));$(".epp-bar-wrap").slideDown(); 1140window.AEMapp&&window.AEMapp.eppStore&&window.AEMapp.eppStore.updateGNBCartSaving()}else $(".epp-bar-wrap").hide()}else $(".epp-bar-wrap").hide()})(); 1141(function(a,n){function h(c,k){var l={};l.cid=c;l.utm_source=k;n.ajax({type:"GET",data:l,url:"/aemapi/v6/business/common/campaignCookie",success:function(f,b,g){console.log("call success")}})}var e=function(){var c=n("#typeCodeForGNB").val(),k=n("#groupCodeForGNB").val();n(".js-gnb-menu-btn");if(!fnIsNull(c)||!fnIsNull(k)){var l=n(".gnb__depth2-menu").filter("[data-type-code\x3d'"+c+"']");fnIsNull(l)&&(l=n(".gnb__depth2-menu").filter("[data-group-code\x3d'"+k+"']"));fnIsNull(l)||l.each(function(f){0=== 1142f&&(l.closest(".gnb__depth1-menu").addClass("active-first"),l.addClass("active-second"))})}};n(function(){e();var c="Y"===n("#b2bFlag").val()?!0:!1,k=n("#siteCode").val();if(c&&("nl"===k||"be"===k||"be_fr"===k)){var l=new URLSearchParams(location.search);c=l.get("cid");k=l.get("utm_source");var f=l.get("utm_medium");l=l.get("utm_campaign");console.log("cid\x3d["+c+"]");console.log("utm_source\x3d["+k+"]");null!=c&&null!=k&&""!=c&&""!=k&&null!=f&&null!=l&&""!=f&&""!=l&&2<c.length&&2<k.length&&(f=cookies.getCookie("cid"), 1143l=cookies.getCookie("utm_source"),console.log("cookieCidString\x3d["+f+"]"),console.log("cookieUtmSourceString\x3d["+l+"]"),null!=f&&null!=l&&""!=f&&""!=l?f!=c&&l!=k&&h(c,k):(console.log("cookieCid, cookieUtmSourceString is empty~"),h(c,k)))}});n("div.s-page-error div.s-page-error__wrap a.s-link-text").on("click",function(){if(-1<location.pathname.indexOf("/"+n("#siteCode").val()+"/multistore/")){var c=location.pathname.substring(location.pathname.indexOf("/"+n("#siteCode").val()+"/multistore/"),
1144location.pathname.length).split("/");4<c.length&&c[4]&&n(this).attr("href","/"+n("#siteCode").val()+"/multistore/"+c[3])}})})(window,$); 1145(function(){if("us"===siteCode){var a=$("#storeDomain").val(),n=$("#isUSPFpage").val(),h=$("#hybrisApiJson").val(),e=window.location.pathname;!h||e.includes("/us/multistore")||e.includes("/us/business")||e.includes("/us/support")||commonLoginCheck()&&("/us/"===e||"/us/shop/"===e||"/us/offer/"===e||e.includes("/us/shop/offer-program/")||"Y"===n)&&fetch(a+"/tokocommercewebservices/v2/us/users/current/eppEligibility",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:""})}).then(function(c){return c.json()}).then(function(c){!0!== 1146(null==c?void 0:c.eligible)||null==c||!c.multistoreLoginUrl||null!=c&&c.multistoreUrl.includes("/us/business")||(window.location.href=c.multistoreLoginUrl)}).catch(function(c){console.error("EPP Eligibility API Error:",c)})}})();function getNextApiDomain(){return STORE_DOMAIN} 1147function updateTotalCartCount(a){/^[0-9]+$/.test(a)||(a=0);99<a&&(a=99);$(".gnb-cart-count").html('\x3cspan class\x3d"hidden"\x3e'+$("#productCountText").val()+" : \x3c/span\x3e"+a);0<a?($(".gnb-cart-count").show(),ss.Auth.setCartEl(!0)):($(".gnb-cart-count").hide(),ss.Auth.setCartEl(!1))}function hideMiniCart(){navigation.miniCartHide()} 1148function nextViewPopup(a){a=$("#"+a.split("#")[1]);$(".layer_popup, .layer_popup_ng").hide();a.parent().show();$(".lightbox-skrim").show();var n=document.getElementById(a.attr("id"));setTimeout(function(){n.popAlign()},100);return!1}function hidePopup(){$(".layer_popup, .layer_popup_ng").hide();$(".lightbox-skrim").hide();return!1} 1149function viewGlovalMessagePopup(a){var n=$("#gloval_message_popup");n.find(".msg-text").text(a);n.find(".button").attr("tabindex","1");n.find(".button").attr("data-focus-id","shop-popover-ok");n.find(".button").attr("data-tab-next","shop-popover-close");n.find(".icon-close-x").attr("data-tab-next","shop-popover-ok");n.attr("data-tab-next","nav-cart-link");n.find(".button").focus();nextViewPopup("#"+n.attr("id"));n.find(".button").focus();n.find(".pop-btn\x3e.button").click(function(){hidePopup(); 1150$(".cartbutton.item").focus();return!1})}function getProtocal(){return document.location.href.split("://")[0]} 1151(function(){var a=window.sg.common.$q,n=window.sg.common.utils,h=function(c){this.selector={gnbMenu:".gnb__depth1-menu.has-depth-menu .gnb__depth1-link, .gnb__depth2-menu.has-depth-menu .gnb__depth2-link"};this.el={window:a(window),component:a(c)};this.handler={resize:this.resize.bind(this)};h.instances.set(c,this);this.setElements();this.init()};h.prototype.setElements=function(){this.el.gnbMenu=this.el.component.find(this.selector.gnbMenu);this.breakpoint=1279;this.mobileFlag=this.desktopFlag=!1}; 1152h.prototype.init=function(){this.bindEvents();this.resize()};h.prototype.reInit=function(){this.setElements();this.bindEvents();this.resize()};h.prototype.removeTagging=function(){this.el.gnbMenu.removeAttr("an-tr");this.el.gnbMenu.removeAttr("an-la");this.el.gnbMenu.removeAttr("an-ca");this.el.gnbMenu.removeAttr("an-ac")};h.prototype.setTagging=function(){this.el.gnbMenu.target.forEach(function(c){var k=a(c);c=void 0!==c.dataset.engname?c.dataset.engname:"";var l=k.hasClass("gnb__depth1-link")?"nv00_gnb--click-depth1": 1153"nv00_gnb--click-depth2";k.attr("an-tr",l);k.attr("an-la",c);k.attr("an-ca","navigation");k.attr("an-ac","gnb")})};h.prototype.resize=function(){this.breakpoint<n.getViewPort().width?!1===this.desktopFlag&&(this.desktopFlag=!0,this.mobileFlag=!1,this.removeTagging()):!1===this.mobileFlag&&(this.mobileFlag=!0,this.desktopFlag=!1,this.setTagging())};h.prototype.bindEvents=function(){this.el.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};h.instances=new WeakMap;var e=function(){a(".gnb").target.forEach(function(c){h.instances.has(c)|| 1154new h(c)})};a.ready(e);window.sg.components.gnbTagging={init:e,reInit:function(){a(".gnb").target.forEach(function(c){h.instances.has(c)?h.instances.get(c).reInit():new h(c)})}}})(); 1155(function(){function a(){n(k.section).target.forEach(function(f){l.instance.has(f)||new l(f)})}var n=window.sg.common.$q,h=window.sg.common.lazyLoad,e=window.sg.common.utils.setMobileFocusLoop,c=window.sg.common.utils.removeMobileFocusLoop,k={section:".srd19-gnb-search"},l=function(f){this.selector={focusLoopingStart:".srd19-gnb-search__looping--start",focusLoopingEnd:".srd19-gnb-search__looping--end",searchInput:".srd19-gnb-search__input",searchInputWrap:".srd19-gnb-search__input-wrap",btnSearch:".nv00-gnb-v3__utility-btn", 1156btnClose:".srd19-gnb-search__close",dim:".srd19-gnb-search__dimmed"};this.class={searchShowClass:"srd19-gnb-search--show",searchCloseClass:"srd19-gnb-search--close",searchShowBodyClass:"srd19-gnb-search--layer-open",searchInputOverflowClass:"srd19-gnb-search__input--overflow"};this.el={window:n(window),body:n("body"),section:n(f)};this.returnFocusEl=!1;this.handler={handleInputText:this.handleInputText.bind(this),handleResize:this.handleResize.bind(this),close:this.close.bind(this)};this.init();l.instance.set(f, 1157this)};l.prototype.init=function(){this.setElements();this.bindEvents()};l.prototype.reInit=function(){this.init();this.loadImages()};l.prototype.setElements=function(){this.el.searchInput=this.el.section.find(this.selector.searchInput);this.el.searchInputWrap=this.el.section.find(this.selector.searchInputWrap);this.el.btnClose=this.el.section.find(this.selector.btnClose);this.el.focusLoopingStart=this.el.section.find(this.selector.focusLoopingStart);this.el.focusLoopingEnd=this.el.section.find(this.selector.focusLoopingEnd); 1158this.el.dim=this.el.section.find(this.selector.dim)};l.prototype.bindEvents=function(){this.el.searchInput.off("input",this.handler.handleInputText).on("input",this.handler.handleInputText);this.el.btnClose.off("click",this.handler.close).on("click",this.handler.close);this.el.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize)};l.prototype.show=function(f){var b=this;this.returnFocusEl=f;this.el.body.addClass(this.class.searchShowBodyClass);this.el.section.css({display:"block"}); 1159e(this.el.section.target[0]);this.el.section.setLayerFocus(this.selector.focusLoopingStart,this.selector.focusLoopingEnd);this.el.section.find(".layer-popup__looping--first,.layer-popup__looping--end").attr("aria-hidden",!0);if(n(".nv00-gnb-v3").target.length&&"mobile"===window.sg.components.nv00GnbV3.getCurrentDevice()
1159){f=n(".nv00-gnb-v3__inner-wrap");var g=n(".nv00-gnb-v3__close-btn");f.hasClass("show")&&g.trigger("click")}else n(".nv00-gnb-v4").target.length&&"mobile"===window.sg.components.Nv00GnbV4.getCurrentDevice()&& 1160(f=n(".nv00-gnb-v4"),g=n(".nv00-gnb-v4__close-btn"),f.hasClass("nv00-gnb-v4--show")&&g.trigger("click"));this.el.section.addClass(this.class.searchShowClass);this.loadImages();this.el.dim.off("click").on("click",function(){b.close()});setTimeout(function(){b.el.searchInput.focus()},500)};l.prototype.close=function(){function f(){b.el.body.removeClass(b.class.searchShowBodyClass);b.el.section.off("transitionend",f);setTimeout(function(){b.el.section.css({display:"none"});b.el.section.removeClass(b.class.searchCloseClass); 1161b.returnFocusEl&&b.returnFocusEl.focus()},500)}var b=this;this.el.section.on("transitionend",f);this.el.section.addClass(this.class.searchCloseClass);this.el.section.removeClass(this.class.searchShowClass);this.el.dim.off("click");c();this.el.section.offLayerFocus()};l.prototype.loadImages=function(){this.el.section.find(".image").target.forEach(function(f){h.setLazyLoadManually(f)})};l.prototype.handleResize=function(){this.handleInputText()};l.prototype.handleInputText=function(){this.el.searchInput.target[0].scrollLeft? 1162this.el.searchInputWrap.addClass(this.class.searchInputOverflowClass):this.el.searchInputWrap.removeClass(this.class.searchInputOverflowClass)};l.instance=new WeakMap;window.sg.components.GnbSearchV25={init:a,reInit:function(){n(k.section).target.forEach(function(f){l.instance.has(f)?l.instance.get(f).reInit():new l(f)})},show:function(f){f=void 0===f?!1:f;n(k.section).target.forEach(function(b){l.instance.has(b)&&l.instance.get(b).show(f)})}};n.ready(a)})(); 1163(function(a){function n(){Fa.gnbSearchRecent.addClass("srd19-gnb-search__list-wrap--hide");Fa.gnbSearchSuggested.addClass("srd19-gnb-search__list-wrap--hide");Fa.gnbSearchAISuggested.addClass("srd19-gnb-search__list-wrap--hide");Fa.gnbSearchNoSuggestions.addClass("srd19-gnb-search__list-wrap--hide");Fa.gnbSearchPopular.addClass("srd19-gnb-search__list-wrap--hide")}function h(){n();g();Fa.gnbSearchRecent.removeClass("srd19-gnb-search__list-wrap--hide")}function e(){n();0<pc.length&&(g(),Fa.gnbSearchPopular.removeClass("srd19-gnb-search__list-wrap--hide")); 1164Ab&&lb&&Fa.gnbSearchAISuggested.removeClass("srd19-gnb-search__list-wrap--hide")}function c(){e();Fa.gnbSearchNoSuggestions.removeClass("srd19-gnb-search__list-wrap--hide")}function k(){"us"===Aa?(Fa.gnbSearchRelatedThumb.addClass("srd19-gnb-search__list-wrap--hide"),window.RECOMMENDATIONS_DATA&&Fa.gnbSearchRecommendedThumb.removeClass("srd19-gnb-search__list-wrap--hide")):(Fa.gnbSearchRelatedThumb.addClass("srd19-gnb-search__list-wrap--hide"),Fa.gnbSearchRecommendedThumb.removeClass("srd19-gnb-search__list-wrap--hide"))} 1165function l(){Fa.gnbSearchRecommendedThumb.addClass("srd19-gnb-search__list-wrap--hide");Fa.gnbSearchRelatedThumb.removeClass("srd19-gnb-search__list-wrap--hide")}function f(){Fa.gnbSearchRecommendedThumb.addClass("srd19-gnb-search__list-wrap--hide")}function b(){Fa.gnbSearchRelatedThumb.addClass("srd19-gnb-search__list-wrap--hide")}function g(){if(0<Xb.length){var L="";a.each(Xb,function(aa,ba){L+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e';L+=' \x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+ 1166rb+encodeURIComponent("us"===Aa?I(ba):N(ba))+ib("recentsearch")+'" an-tr\x3d"srd19_gnb search-'+Pb+'-search history-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"search history:'+(aa+1+"_"+T(ba))+'"\x3e';L+=' \x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e\x3cstrong\x3e'+ba+"\x3c/strong\x3e\x3c/span\x3e";L+=" \x3c/a\x3e";L+="\x3c/li\x3e"});Fa.gnbSearchRecent.find("ul").html(L)}}function p(L){var aa,ba,ka,ma,sa,ya,da,Pa,Zb,Nb,Kb,kc,sb,fc,Ob,Vb,lc,Wb;return $jscomp.asyncExecutePromiseGeneratorProgram(function(Qb){switch(Qb.nextAddress){case 1:return aa= 1167Aa+":"+Math.floor((new Date).getTime()/1E3)+":"+Math.floor(1E5+9E5*Math.random()),sa=ma=ka=ba="",Qb.setCatchFinallyBlocks(2),Qb.yield(alloy("getIdentity").then(function(La){return La.identity.ECID}),4);case 4:sa=Qb.yieldResult;Qb.leaveTryBlock(3);break;case 2:Qb.enterCatchBlock(),sa="";case 3:ya=".samsung.com","cn"===Aa&&(ya=".samsung.com.cn"),commonLoginCheck()&&(ba=a.cookies.get("guid",{domain:ya}),(da=a.cookies.get("dcgue",{domain:ya}))?(da=decodeURIComponent(da),window.localStorage.setItem("dcgue", 1168encodeURIComponent(da)),a.cookies.del("dcgue",{domain:ya})):window.localStorage.getItem("dcgue")&&(da=window.localStorage.getItem("dcgue"),da=decodeURIComponent(da)),Pa=a.cookies.get("encGuid",{domain:ya}),da&&Pa&&(Zb=Pa.substring(4,36).toLowerCase(),Nb=CryptoJS.enc.Utf8.parse(Zb),Kb=CryptoJS.AES.decrypt(da,Nb,{mode:CryptoJS.mode.ECB,padding:CryptoJS.pad.Pkcs7}),ba=CryptoJS.enc.Utf8.stringify(Kb)),kc=function(){a.ajax({url:"/aemapi/v6/data-login/getidentity."+Aa+".json",type:"GET",data:{siteCode:Aa, 1169return_url:window.location.href,enc:Pa},dataType:"json",async:!1,timeout:1E4,success:function(La){200===La.statusCode&&(ba=La.identity)}})},ba||kc(),ka=a.cookies.get("sa_id",{domain:ya}),ma=a.cookies.get("s_ecid",{domain:ya})),sb=a.cookies.get("cmapi_cookie_privacy",{domain:ya}),fc=cookies.getCookie("recent_list"),Ob=[],a.each(cookies.getCookies(),function(La,Cb){-1!=La.indexOf("AMCV_")&&Ob.push(Cb.toString())}),Vb=window.location.href,lc={requestId:aa,country:Aa,num:Ub.recommend},Wb={pageType:"search", 1170guid:ba,ecid:sa,saId:ka,visitorId:ma,visitorIdList:Ob,consent:sb,recentList:fc,targetModel:"",rewardPoint:"",url:Vb},checkEppSite()&&(lc.siteType="epp",Wb.eppStoreName=window.sg.epp.common.companyCode),a.ajax({headers:lc,url:"https://api-recommender.bigdata.samsung.com/prodrec/recommendation",type:"POST",data:JSON.stringify(Wb),contentType:"application/json; charset\x3dutf-8",dataType:"json",xhrFields:{withCredentials:!0},cache:!0,timeout:2E4}).done(function(La){La.code&&200===La.code&&La.recommendations&& 11710<La.recommendations.length&&r(La.recommendations,La.requestId)}).fail(function(La){console.log("error::"+La)}),Qb.jumpToEnd()}})}function r(L,aa){var ba="";
1171L.forEach(function(ka,ma){var sa=ka.product.modelList.find(function(ya){return"Y"===ya.selected});ma<Ub.recommend&&(checkEppSite()&&(sa.pdpUrl=sa.pdpUrl.replace("feature.","buy.")),sa.promotionPriceDisplay&&(sa.priceDisplay=sa.promotionPriceDisplay),ba+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n \x3ca href\x3d"'+sa.pdpUrl+ 1172'" class\x3d"srd19-gnb-search__thumb-link" role\x3d"menuitem" an-tr\x3d"srd19_gnb search-'+Pb+'-recommended product click-search4" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"recommended:'+ka.recType+":card"+(ma+1)+"_"+Jb(sa.displayName)+':product click"\n data-modelcode\x3d"'+sa.modelCode+'" data-modelname\x3d"'+sa.modelName+'" data-modeldisplay\x3d"'+qa(sa.displayName)+'" data-modelprice\x3d"'+sa.price+'" data-modelrevenue\x3d"'+sa.promotionPrice+'"\n data-pvitype\x3d"'+ 1173sa.pviTypeName+'" data-pvisubtype\x3d"'+sa.pviSubtypeName+'" data-requested\x3d"'+aa+'"\x3e\n \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n \x3cdiv class\x3d"image"\x3e\n \x3cimg class\x3d"image__main '+("us"===Aa?"us-image":"")+' lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+(sa.thumbUrl+'?$200_200_PNG$" data-mobile-src\x3d"')+(sa.thumbUrl+'?$140_140_PNG$" alt\x3d"" role\x3d"img" data-comp-name\x3d"image"\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e')+ 1174fa(sa.displayName,20)+'\x3c/p\x3e\n \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e'+sa.priceDisplay+"\x3c/p\x3e\n \x3c/a\x3e\n \x3c/li\x3e")});Fa.gnbSearchRecommendedThumb.find("ul").html(ba);window.sg.components.GnbSearchV25.reInit();0==L.length&&f()}function t(L){if(null===L||void 0===L||"null"===L||"undefined"===L||""===L)return!1;L=parseFloat(String(L).trim());return!isNaN(L)&&0!==L}function w(L){if(Array.isArray(L)&&L.length){var aa=[];L.forEach(function(ba){var ka= 1175t((null==ba?void 0:ba.value)||null),ma=t((null==ba?void 0:ba.promoPrice)||null),sa="N"!==(null==ba?void 0:ba.stockFlag);(ka||ma)&&sa&&(ba.customDisplayValue=ma?ba.promoPrice:ba.value,aa.push(ba))});Fc=aa;y(aa)}}function y(L){var aa="";L.forEach(function(ba,ka){if(ka<Ub.recommend){var ma;aa+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n \x3ca an-ca\x3d"search" an-ac\x3d"search layer" an-la\x3d"pzn\x3erecommended\x3e'+(ka+1)+"\x3e"+(null==(ma=ba.name)?void 0:ma.replaceAll('"', 1176""))+'" an-tr\x3d"select_search_recommended_card_click" href\x3d"'+ba.pageUrl+'" class\x3d"srd19-gnb-search__thumb-link gnb-tagging-trigger" role\x3d"menuitem"\x3e\n \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n \x3cdiv class\x3d"image"\x3e\n \x3cimg class\x3d"image__main us-image lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+ba.thumbnailUrl+'" data-mobile-src\x3d"'+ba.thumbnailUrl+'" alt\x3d"'+ba.name+'" role\x3d"img" data-comp-name\x3d"image"\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e'+ 1177ba.name+'\x3c/p\x3e\n \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e$ '+ba.customDisplayValue+"\x3c/p\x3e\n \x3c/a\x3e\n \x3c/li\x3e"}});Fa.gnbSearchRecommendedThumb.find("ul").html(aa);window.sg.components.GnbSearchV25.reInit();0==L.length&&f()}function C(L){Ia=!0;a.ajax({type:"GET",data:{siteCd:Aa,stage:db.stage,searchValue:""},dataType:"json",jsonCallback:"samsungcallback",url:ob(db.domain)+db.uri,error:function(){},success:function(aa){(aa= 1178aa.response.resultData)&&aa.common&&aa.common.suggestedKeywords&&ca({resultSet:aa.common.suggestedKeywords})},complete:function(){Ya("");window.sg.components.GnbSearchV25.show(L)}})}function E(L){Ia=!0;var aa=window.location.pathname.split(Aa)[1]||"";-1<aa.indexOf("/content/samsung")&&(aa=aa.split(".html")[0]);a.ajax({type:"POST",crossDomain:!0,headers:db.headers,data:{clientCode:"b2c",clientName:"scom",countryCode:Aa,storeID:hc,baseURL:aa},dataType:"json",url:db.domain+"/us/popularSearch",success:function(ba){if("OK"== 1179ba.statusCode){ba=ba.popularSearchResults;0<ba.resultCount&&(pc=ba.resultSet,xa(ba.resultSet),e());ba=ba.resultCount;var ka=aa,ma=window.navigator.userAgent.match(/(Windows\sNT|iOS|iPhone\sOS|Android)\s([\d_]+)/);ba="si\x3d"+Ha()+"\x26qt\x3d"+ka.replace(/ /ig,"_")+"\x26cn\x3dscom\x26ch\x3d"+hc+"\x26cc\x3d"+Aa+"\x26lc\x3d"+a("#languageCode").val()+"\x26sc\x3d"+ba+"\x26ff\x3d"+(ma,ma?ma[1].split(" ")[0].toLowerCase():"")+"\x26ui\x3d"+Ha()+"\x26ti\x3d"+Ha()+"\x26qi\x3d"+Ha();window.ssMetrics=ba;a.ajax({headers:{"Content-Type":"application/x-www-form-urlencoded"}, 1180type:"POST",data:{metricsParam:ba},url:"cn"==Aa?db.domain+"/metrics/popularSearch":db.domain+"/"+Aa+"/metrics/popularSearch"})}},complete:function(){Ya("");window.sg.components.GnbSearchV25.show(L)}})}function z(){var L=window.location.pathname;"cn"!==Aa&&(L=L.split(Aa)[1]);if(-1<L.indexOf(".html"))L=L.split(".html")[0];else{var aa=L.lastIndexOf("/");L.length-1==aa&&(L=L.substr(0,aa))}return L}function V(L){Ia=!0;var aa=z();a.ajax({type:"POST",crossDomain:!0,headers:db.headers,data:{clientCode:"b2c", 1181countryCode:Aa,storeID:hc,baseURL:aa},dataType:"json",url:db.domain+"/popularSearch",success:function(ba){"OK"==ba.statusCode&&(ba=ba.popularSearchResults,0<ba.resultCount&&ca(ba))},complete:function(){Ya("");window.sg.components.GnbSearchV25.show(L)}})}function ca(L){var aa="";a.each(L.resultSet,function(ba,ka){0>pc.indexOf(ka)&&pc.push(ka);ba<Ub.popular&&(aa+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e',aa+='\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+rb+encodeURIComponent(N(ka))+ 1182ib("popularsearch")+'" title\x3d"'+ua(ka)+'" an-tr\x3d"srd19_gnb search-'+Pb+'-popular keywords-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"popular keywords:'+(ba+1)+"_"+Jb(ka)+'"\x3e',aa+='\x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e\x3cstrong\x3e'+ka+"\x3c/strong\x3e\x3c/span\x3e",aa+="\x3c/a\x3e",aa+="\x3c/li\x3e")});Fa.gnbSearchPopular.find("ul").html(aa)}function xa(L){var aa="";a.each(L,function(ba,ka){ba<Ub.popular&&(aa+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e', 1183aa+='\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+rb+encodeURIComponent(I(ka))+'" title\x3d"'+ua(ka)+'" an-tr\x3d"gnb search-'+Pb+'-popular keywords-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"popular keywords:'+(ba+1)+"_"+Jb(ka)+'"\x3e',aa+='\x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e\x3cstrong\x3e'+ka+"\x3c/strong\x3e\x3c/span\x3e",aa+="\x3c/a\x3e",aa+="\x3c/li\x3e")});Fa.gnbSearchPopular.find("ul").html(aa)}function ea(){clearTimeout(ic);ic=setTimeout(function(){db.data.isTyping= 1184"N";var L=N(a.trim(Fa.gnbSearchInput.val()));L&&va(L,!0)},500)}function va(L,aa,ba){db.data[db.keywordKey]=L;!gb&&"us"!==Aa||aa||ea();a.ajax({type:db.type,crossDomain:!0,dataType:"json",data:db.data,url:db.domain+db.uri,headers:db.headers,success:function(ka){if(gc||ba){n();var ma,sa=0;if("us"===Aa){var ya=ka.resultData.suggestedSearches;ka=ka.resultData.relatedProducts;Oc=ma=ya.results.length;Pc=L;na(ya.results,L);ka&&ka.results&&0<ka.results.length?(sa=ka.results.length,Sa(ka.results,L)):b();Ja(ma, 1185L)}else if(gb)Ab&&lb&&""===L?(ya=ka.resultData.suggestedAiSearches,ma=ya.results.length,bb(ya.results,L)):(ya=ka.resultData.suggestedSearches,ma=ya.results.length,cb(ya.results,L)),ka=ka.resultData.relatedProducts,u&&wa(ka.results,L),Ja(ma,L);else{ya=ka.response.resultData;ma=ya.common.relatedKeywords.length;ka=ya.common.relatedKeywords;ya="";for(var da=0;da<ka.length;da++){var Pa=ka[da]||"";Pa=fa(Pa,58);if(da<Ub.suggest){var Zb="suggested searches:"+(da+1)+"_"+Jb(Pa)+":keyword:"+a.trim(L),Nb=Z(Pa, 1186L);ya+='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+rb+encodeURIComponent(N(ka[da]))+'" title\x3d"'+ua(Pa)+'" an-tr\x3d"srd19_gnb search-'+Pb+'-suggested searches-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"'+Zb+'"\x3e'+qa(Pa).toLowerCase()+"\x3e"+L+'"\x3e'+Nb+"\x3c/a\x3e\x3c/li\x3e"}}Fa.gnbSearchSuggested.find("ul").html(ya)}u||(f(),b());0<ma?(Ab&&lb&&""===L||Fa.gnbSearchSuggested.removeClass("srd19-gnb-search__list-wrap--hide"), 1187!gb&&"us"!==Aa||ba?k():f(),"us"===Aa&&0<sa?l():"us"===Aa&&(b(),window.RECOMMENDATIONS_DATA||f())):(c(),b(),f())}},error:function(){c()},complete:function(){ba&&(Ya(""),window.sg.components.GnbSearchV25.show(ba))}});if(gb||"us"===Aa)db.data.isTyping="Y"}function na(L,aa){var ba="",ka=Fa.gnbSearchInput.val();a.each(L,function(ma,sa){var ya=fa(sa.name,58),da=sa.category;if(ma<Ub.suggest){var Pa=Z(ya,aa),Zb=ba;ma='\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+ 1188rb+encodeURIComponent(I(sa.name))+'" title\x3d"'+ua(ya)+'" an-tr\x3d"srd19_gnb search-'+Pb+'-suggested searches-search" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"suggested searches:'+(ma+1)+"_"+(ya&&ya.replace(/"/g,"\x26quot;"))+":"+da+":keyword:"+ka+'"\x3e';if(sa=Pa)"us"===Aa?Pa.includes("in")?(da=Pa.split(" in "),1<da.length&&(sa=da[0]+' \x3cem class\x3d"srd19-gnb-search__list-category"\x3ein '+da[1]+"\x3c/em\x3e")):sa=Pa+' \x3cem class\x3d"srd19-gnb-search__list-category"\x3ein '+da+"\x3c/em\x3e": 1189(da=Pa.split(" in "),1<da.length&&(sa=da[0]+' \x3cem class\x3d"srd19-gnb-search__list-category"\x3ein '+da[1]+"\x3c/em\x3e"));ba=Zb+(ma+sa+"\x3c/a\x3e\x3c/li\x3e")}});Fa.gnbSearchSuggested.find("ul").html(ba)}function bb(L,aa){var ba="";a.each(L,function(ka,ma){var sa=fa(ma.name,58);ka<Ub.suggestAi&&(Z(sa,aa),ba+='\n\t\t\t\t\x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\n\t\t\t\t\t\x3ca href\x3d"'+rb+encodeURIComponent(N(ma))+ib("suggestedsearch")+'" title\x3d"'+ua(ma)+'" class\x3d"srd19-gnb-search__list-link"\n\t\t\t\t\t\tan-tr\x3d"srd19_gnb search-'+ 1190Pb+'-ai suggested searches-search"\n\t\t\t\t\t\tan-ca\x3d"search"\n\t\t\t\t\t\tan-ac\x3d"gnb search"\n\t\t\t\t\t\tan-la\x3d"ai suggested searches:'+ma+':keyword:"\n\t\t\t\t\t\t\x3e\n\t\t\t\t\t\t\x3cspan class\x3d"srd19-gnb-search__list-link-text"\x3e'+ma+"\x3c/span\x3e\n\t\t\t\t\t\x3c/a\x3e\n\t\t\t\t\u00a0\x3c/li\x3e\n\t\t\t\t")});Fa.gnbSearchAISuggested.find("ul").html(ba)}function cb(L,aa){var ba="";a.each(L,function(ka,ma){var sa=fa(ma.name,58);if(ka<Ub.suggest){var ya=Z(sa,aa),da="srd19_gnb search-"+ 1191Pb+"-suggested searches-search";ka="suggested searches:"+(ka+1)+"_"+Jb(ma.name)+":keyword:"+a.trim(aa);Ab&&lb&&(da="srd19_gnb search-"+Pb+"-ai suggested searches-search",ka="ai suggested searches:"+Jb(ma.name)+":keyword:"+a.trim(aa));ba+='\n \x3cli class\x3d"srd19-gnb-search__list-item" role\x3d"listitem"\x3e\n \x3ca class\x3d"srd19-gnb-search__list-link" href\x3d"'+rb+encodeURIComponent(N(ma.name))+ib("suggestedsearch")+'"\n\t\t\t\t\t\ttitle\x3d"'+ua(sa)+'"\n\t\t\t\t\t\tan-tr\x3d"'+ 1192da+'" \n\t\t\t\t\t\tan-ca\x3d"search" \n\t\t\t\t\t\tan-ac\x3d"gnb search" \n\t\t\t\t\t\tan-la\x3d"'+ka+'"\x3e\n '+ya+" \n \x3c/a\x3e\n \x3c/li\x3e\n\t\t\t\t"}});Ab&&lb&&Fa.gnbSearchSuggested.find("p").text(Granite.I18n.get("AI Suggested Searches"));Fa.gnbSearchSuggested.find("ul").html(ba)}function wa(L,aa){var ba="";a.each(L,function(ka,ma){if(ka<Ub.recommend){var sa="";ma.images&&(sa=ma.images.laImage);ba+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n \x3ca href\x3d"'+ 1193ma.pdpURL+'" class\x3d"srd19-gnb-search__thumb-link" role\x3d"menuitem" data-feedback\x3d"'+ma.feedbackParam+'"\n an-tr\x3d"srd19_gnb search-'+Pb+'-related product click-search4" an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"related products:card'+(ka+1)+"_"+Jb(ma.name)+":product click:keyword:"+aa+'"\n data-modelcode\x3d"'+ma.sku+'" data-modelname\x3d"'+ma.modelName+'" data-modeldisplay\x3d"'+ma.name+'" data-modelprice\x3d"'+ma.msrp+'" data-modelrevenue\x3d"'+ 1194ma.salePrice+'" data-pvisubtype\x3d"'+ma.classification+'"\x3e\n \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n \x3cdiv class\x3d"image"\x3e\n \x3cimg class\x3d"image__main '+("us"===Aa?"us-image":"")+' lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+(sa+'?$200_200_PNG$" data-mobile-src\x3d"')+(sa+'?$140_140_PNG$" alt\x3d"alt text" role\x3d"img" data-comp-name\x3d"image"\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e')+ 1195fa(ma.name,20)+'\x3c/p\x3e\n \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e'+currencyComma(ma.salePrice,eb)+"\x3c/p\x3e\n \x3c/a\x3e\n \x3c/li\x3e"}});Fa.gnbSearchRelatedThumb.find("ul").html(ba);window.sg.components.GnbSearchV25.reInit();0==L.length?b():l()}function Sa(L,aa){var ba="",ka=Fa.gnbSearchInput.val();a.each(L,function(ma,sa){if(ma<Ub.recommend){var ya="";sa.images&&(ya=sa.images.laImage);var da,Pa=sa.name&&(null==(da=sa.name.replace(/"/g, 1196"\x26quot;"))?void 0:da.toLowerCase())||"";ba+='\x3cli class\x3d"srd19-gnb-search__thumb-item"\x3e\n \x3ca href\x3d"'+sa.pdpURL+'" class\x3d"srd19-gnb-search__thumb-link" data-feedback\x3d"'+(sa.feedbackParam&&sa.feedbackParam.replace(/"/g,"\x26quot;"))+'"\n an-ca\x3d"search" an-ac\x3d"gnb search" an-la\x3d"related products:card'+(ma+1)+"_"+Pa+":product click:keyword:"+ka+'" an-tr\x3d"srd19_gnb search-'+Pb+"-related product click-search"+(ma+1)+'"\n data-modelcode\x3d"'+ 1197sa.sku+'" data-modelname\x3d"'+sa.modelName+'" data-modeldisplay\x3d"'+(sa.name&&sa.name.replace(/"/g,"\x26quot;"))+'" data-modelprice\x3d"'+sa.msrp+'" data-modelrevenue\x3d"'+sa.salePrice+'" data-pvisubtype\x3d"'+sa.classification+'"\x3e\n \x3cdiv class\x3d"srd19-gnb-search__thumb-image"\x3e\n \x3cdiv class\x3d"image"\x3e\n \x3cimg class\x3d"image__main us-image lazy-load-man responsive-img hover-scale" data-desktop-src\x3d"'+ya+'" data-mobile-src\x3d"'+ 1198ya+'" alt\x3d"alt text" role\x3d"img" data-comp-name\x3d"image"\x3e\n \x3c/div\x3e\n \x3c/div\x3e\n \x3cp class\x3d"srd19-gnb-search__thumb-name"\x3e'+sa.name+'\x3c/p\x3e\n \x3cp class\x3d"srd19-gnb-search__thumb-price"\x3e'+currencyComma(sa.salePrice,eb)+"\x3c/p\x3e\n \x3c/a\x3e\n \x3c/li\x3e"}});Fa.gnbSearchRelatedThumb.find("ul").html(ba);window.sg.components.GnbSearchV25.reInit();0==L.length? 1199(b(),window.RECOMMENDATIONS_DATA&&k()):l()}function Ja(L,aa){var ba=window.navigator.userAgent.match(/(Windows\sNT|iOS|iPhone\sOS|Android)\s([\d_]+)/);L="si\x3d"+Ha()+"\x26qt\x3d"+aa.replace(/ /ig,"_")+"\x26cn\x3dscom\x26ch\x3d"+hc+"\x26cc\x3d"+Aa+"\x26lc\x3d"+a("#languageCode").val()+"\x26sc\x3d"+L+"\x26ff\x3d"+(ba,ba?ba[1].split(" ")[0].toLowerCase():"")+"\x26ui\x3d"+Ha()+"\x26ti\x3d"+Ha()+"\x26qi\x3d"+Ha();window.ssMetrics=L;a.ajax({headers:{"Content-Type":"application/x-www-form-urlencoded"}, 1200type:"POST",data:{metricsParam:L},url:"cn"==Aa?db.domain+"/metrics/suggestedSearch":db.domain+"/"+Aa+"/metrics/suggestedSearch"})}function M(L,aa,ba){var ka=window.ssMetrics,ma=ka.match(/(ui=)([^&]+)/)[2],sa=ka.match(/(qi=)([^&]+)/)[2],ya=ka.match(/(si=)([^&]+)/)[2],da=ka.match(/(ti=)([^&]+)/)[2],Pa=ka.match(/(ch=)([^&]+)/)[2];ka=ka.match(/(sc=)([^&]+)/)[2];L=a.extend({feedbackParam:"st\x3d"+Pa+"\x26ct\x3d"+Aa+"\x26qt\x3d"+L.replace(/ /ig,"_")+"\x26cn\x3dscom\x26ui\x3d"+ma+"\x26si\x3d"+ya+"\x26ti\x3d"+ 1201da+"\x26qi\x3d"+sa+"\x26ft\x3dSS\x26tr\x3d"+ka+"\x26dr\x3d"+aa,actionType:"click"},{feedbackParam:ba});a.ajax({headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"POST",url:"cn"==Aa?db.domain+"/feedback/click":db.domain+"/"+Aa+"/feedback/click",data:L})}function I(L){var aa=L;null!=L&&(aa=aa.split('"').join('"').split("\x3cb\x3e").join("").split("\x3c/b\x3e").join(""),aa=aa.split(" in ")[0]);return aa}function N(L){null!=L&&(L=L.split("\x3c").join("").split("\x3e").join("")
1201.split("\x26lt").join("").split("\x26gt").join("")); 1202return L}function T(L){var aa=/[\{\}\[\]?,;:|\)*~`!^_<>@#$%&\\=\('"]/gi;"cn"===Aa&&(aa=/[\{\}\[\]?,;:|\)*~`!^_<>@#$%&\\=\("]/gi);aa.test(L)&&(L=L.replace(aa,""));return L}function Z(L,aa){null!=L&&(L=L.replace(new RegExp("("+aa+")","i"),"\x3cstrong\x3e$1\x3c/strong\x3e"));return L}function fa(L,aa){if(!L)return"";for(var ba,ka=0,ma=L.length,sa="",ya=0;ya<ma;ya++){ba=L.charAt(ya);4<encodeURI(ba).length?ka+=2:ka++;if(ka>aa){sa+="...";break}sa+=ba}return sa}function qa(L){null!=L&&(L=L.split('"').join("\x26quot;").split("\x3cb\x3e").join("").split("\x3c/b\x3e").join("")); 1203return L}function ua(L){qa(L);return Granite.I18n.get("search.comp.queryInput.searchButton")}function ob(L){var aa=L;L.lastIndexOf("/")===L.length-1&&(aa=L.substr(0,L.length-1));return aa}function Ha(){var L=window.crypto||window.msCrypto;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(aa){return(aa^L.getRandomValues(new Uint8Array(1))[0]&15>>aa/4).toString(16)})}function Ya(L){Fa.gnbSearchInputSubmitButton.attr("an-la","search bar:keyword submit:keyword:"+L)}function oa(L){if(ab=== 1204L)return!1;ab=L;return!0}function ib(L){var aa="";Ab&&("suggestedsearch"===L&&lb&&(L="aisuggestedsearch"),aa="\x26querySource\x3d"+L);return aa}function nc(){Fa.gnbSearchInput.val("");Fa.gnbSearchInput.trigger("input");Fa.gnbSearchInputWrap.removeClass("srd19-gnb-search__input--overflow");Fa.gnbSearchInput.focus()}function Tb(){var L=a(".srd19-gnb-search__input"),aa=!1,ba="";L.off("input.resetState").on("input.resetState",function(){""===this.value&&(aa=!1,ba="")});L.off("keydown.firstKey").on("keydown.firstKey", 1205function(ka){var ma=this.value;aa||""!==ba||0!==ma.length||1!==ka.key.length||(window._satellite&&"us"===Aa&&_satellite.track("searchoverlaytyping",{an_tr:"select_search_search layer_start_typing_click",an_ca:"search",an_ac:"search layer",an_la:"start typing"}),aa=!0);ba=ma});L.off("blur.resetState").on("blur.resetState",function(){aa=!1;ba=""})}function pb(){Granite.I18n.setLocale(a("#language").val());var L="searchvalue",aa={"Content-type":"application/x-www-form-urlencoded"};"cn"===Aa&&(zc="https://sribsrch.ecom.samsung.com/estoresearch-api/v1/scom/cn"); 1206if("us"===Aa){L="searchvalue";var ba,ka=tc?(null==(ba=sg)?void 0:ba.epp.common.storeId)||hc:"us";db={type:"POST",uri:"/us/suggestedSearch",domain:"https://sribsrch.ecom.samsung.com/estoresearch-api/v1/scom",keywordKey:"query",data:{countryCode:Aa,clientName:"scom",storeID:ka,isTyping:"Y",clientCode:"b2c",query:""},headers:aa};rb=Oa}else gb||ec?(db={type:"POST",uri:"/suggestedSearch",domain:zc,keywordKey:"query",data:{countryCode:Aa,storeID:hc,isTyping:"Y",clientCode:"b2c",query:""},headers:aa},Ab&& 1207lb&&(db.data.clientName="scom")):db={type:"GET",uri:"/search/suggest/v6",domain:ob(Q),keywordKey:"searchValue",data:{siteCd:Aa,stage:Uc,searchValue:""},headers:{}};rb=-1<rb.indexOf(".html")?rb+("?"+L+"\x3d"):rb+("/?"+L+"\x3d");tc&&window.sg.epp&&window.sg.epp.common&&window.sg.epp.common.isPosStore&&"Y"===a("#scannerYn").val()&&(Fa.gnbSearchScanBarcodeButton.removeClass("srd19-gnb-search__scan-barcode--hide"),L=location.pathname.substr(0,location.pathname.indexOf(window.sg.epp.common.companyCode))+ 1208window.sg.epp.common.companyCode,L=0<location.pathname.indexOf(".html")?L+".scanner.html":L+".scanner/",a.ajax({url:L,success:function(ma){a("section.srd19-gnb-search").append(ma)},error:function(ma){console.log(ma)}}))}var Za=a("section.srd19-gnb-search");if(Za){var Aa=a("#siteCode").val(),Q=a.trim(a("#esapiSearchDomain").val()),zc="https://sribsrch.ecom.samsung.com/estoresearch-api/v1/scom";window.location.href.indexOf("www.samsung.com");window.location.href.indexOf("www.samsung.com");var Uc=a.trim(a("#apiStageInfo").val()), 1209rb=a("#sc_gnb_searchURL").val(),eb=a("#gPriceCurrency").val(),Oa=a("#sc_gnb_AI_searchURL").val();a("#sc_gnb_placeholder").val();var oc=a("#sc_gnb_aiSearchUseYn").val(),Fb=a("#sc_gnb_bdcApiUseYn").val(),Tc=a("#sc_gnb_AiLoginUseYn").val(),hc=a("#siteCode").val(),tc="Y"===a("#eppFlag").val(),Dc=a("#sc_gnb_eppUseGnbAiSearchYn").val();a("#loginLinkURL").val();var lb=commonLoginCheck(),Xb=a.cookies.getSearchKeyword(),pc=[],Fc=[],ab="",Ia=!1,gc=!1,gb="Y"===oc,u="Y"===Fb,Ab="Y"===Tc,ec="Y"===Dc,ic=null,Oc= 12100,Pc="",Pb=(digitalData.page.pageInfo.pageTrack||"").toLowerCase(),db={keywordKey:"",url:null,data:{}},Ub={recommend:4,popular:4,suggest:4,suggestAi:4},Fa={gnbSearchInput:Za.find(".srd19-gnb-search__input"),gnbSearchInputWrap:Za.find(".srd19-gnb-search__input-wrap"),gnbSearchInputClearButton:Za.find(".srd19-gnb-search__clear"),gnbSearchInputSubmitButton:Za.find(".srd19-gnb-search__btn-search"),gnbSearchResultWrap:Za.find(".srd19-gnb-search__result-wrap"),gnbSearchRecent:Za.find(".srd19-gnb-search__recent"), 1211gnbSearchPopular:Za.find(".srd19-gnb-search__popular"),gnbSearchSuggested:Za.find(".srd19-gnb-search__suggested"),gnbSearchAISuggested:Za.find(".srd19-gnb-search__ai-search"),gnbSearchRelatedThumb:Za.find(".srd19-gnb-search__related"),gnbSearchRecommendedThumb:Za.find(".srd19-gnb-search__recommended"),gnbSearchNoSuggestions:Za.find(".srd19-gnb-search__no-suggestions"),gnbSearchCloseBtn:Za.find(".srd19-gnb-search__btn--close"),gnbSearchScanBarcodeButton:Za.find(".srd19-gnb-search__scan-barcode"),gnbSearchSearchSearches:Za.find(".srd19-gnb-search__searches")}, 1212Jb=function(L){fnIsNull(L)||(L=L.replace(/&/g,"\x26amp;").replace(/</g,"\x26lt;").replace(/>/g,"\x26gt;").replace(/"/g,"\x26#92;\x26quot;").replace(/'/g,"\x26#039;"));return L};Za.on("focus",".srd19-gnb-search__input",function(){Tb();var L=N(a.trim(a(this).val()));if(oa(L)||""==L)Xb=a.cookies.getSearchKeyword(),n(),L&&0<L.length?va(L):0<Xb.length?h():e(),window.sg.components.GnbSearchV25.reInit()});Za.on("click",".srd19-gnb-search__clear",function(){nc()});Za.on("propertychange change keyup paste input", 1213".srd19-gnb-search__input",function(){var L=a(this).val();oa(L)&&(a(this).val(T(L)),L=a.trim(L),Xb=a.cookies.getSearchKeyword(),Ya(L),L&&0<L.length?(gc=!0,Fa.gnbSearchInputClearButton.addClass("srd19-gnb-search__clear--show"),va(L)):(gc=!1,Fa.gnbSearchInputClearButton.removeClass("srd19-gnb-search__clear--show"),0<Xb.length?h():e(),k(),Fa.gnbSearchSuggested.find("ul").empty()))});Za.on("click",".srd19-gnb-search__suggested a, .srd19-gnb-search__ai-search a",function(){var L=a(this).text();a.cookies.setSearchKeyword(decodeURIComponent(L)); 1214L=[].concat($jscomp.arrayFromIterable(this.parentElement.parentElement.children)).indexOf(this.parentElement);M(ab,L+1)});Za.on("click",".srd19-gnb-search__popular a",function(){var L=a(this).text();a.cookies.setSearchKeyword(decodeURIComponent(L))});Za.on("click",".srd19-gnb-search__related .srd19-gnb-search__thumb-item a",function(){var L=a(this).attr("data-feedback");M("","",L)});Za.on("click",".srd19-gnb-search__btn-search",function(L){L.preventDefault();if(L=N(a.trim(Fa.gnbSearchInput.val()))){a.cookies.setSearchKeyword(decodeURIComponent(L)); 1215if("us"===Aa){encodeURIComponent(L);Ja(Oc,Pc);var aa=Oa+"/?searchvalue\x3d"+encodeURIComponent(L);window.location.href=aa}else window.location.href=rb+encodeURIComponent(L)+ib("suggestedsearch");window.gmap=null;"undefined"!==typeof window&&window._satellite&&"us"===Aa&&_satellite.track("searchoverlaytyping",{an_tr:"select_search_search layer_finish_typing_click",an_ca:"search",an_ac:"search layer",an_la:"finish typing",global_search_term:""+L})}});a(document).on("click",".gnb__search-btn-js",function(){Ab= 1216Ab&&"true"===window.sg.common.utils.getCookie("aisearch");nc();u?p(this):Fa.gnbSearchRecommendedThumb.hide();"us"===Aa||Ia?(Ya(""),window.sg.components.GnbSearchV25.show(this)):gb||ec?Ab&&lb?(db.data.isTyping="N",va("",!0,this)):V(this):C(this);if("us"===Aa)if(pc&&0<pc.length?e():E(this),Fc&&0<Fc.length)y(Fc);else{var L=window&&window.RECOMMENDATIONS_DATA&&window.RECOMMENDATIONS_DATA["target-search-recs-scom51498"];L&&0<L.length&&w(L)}});a(document).on("click",".shop-with-expert-search",function(L){L.preventDefault(); 1217768>a(window).width()?window.open("https://www.samsung.com/us/expert-chat/?search_instant","newwindow"):window.open("https://www.samsung.com/us/expert-chat/?search_instant","newwindow","height\x3d700, width\x3d440, top\x3d0, left\x3d0, toolbar\x3dno, menubar\x3dno, scrollbars\x3dno, resizable\x3dno, location\x3dno, status\x3dno")});Za.on("click",".srd19-gnb-search__scan-barcode",function(L){L.preventDefault();tc&&(L=new CustomEvent("scanner.enabled"),document.dispatchEvent(L),window.sg.components.barcodeScannerPopup.showPopup(this))}); 1218a(function(){rb&&""!==rb&&pb()})}})(window.jQuery); 1219(function(){var a,n,h,e,c,k,l,f,b,g,p,r,t;function w(){var ea=document.querySelector(".cod03-delivery-location-selector");if(ea)for(a=ea,n=ea.querySelector(".cod03-delivery-location-selector__select"),h=ea.querySelector("#detail-btn"),e=ea.querySelector(".menu__select"),c=ea.querySelector(".cod03-delivery-location-selector__region-name"),k=ea.querySelector(".cod03-delivery-location-selector__select-ctas"),l=ea.querySelector(".cod03-delivery-location-selector__popup"),f=ea.querySelector(".cod03-delivery-location-selector__popup--contents"), 1220b=ea.querySelector(".cta--confirm"),g=ea.querySelector(".cta--cancel"),p=ea.querySelector(".cod03-delivery-location-selector__popup--close"),r=ea.querySelector(".cod03-delivery-location-selector__popup--looping-start"),t=ea.querySelector(".cod03-delivery-location-selector__popup--looping-end"),V=ea.querySelector(".menu__select"),y(),ea=0;ea<V.length;ea++)V.options[ea].hasAttribute("selected")&&(xa=ea)}function y(){a.querySelector(".cod03-delivery-location-selector__region-icon").addEventListener("click", 1221function(){n.classList.contains("show")?(n.classList.remove("show"),n.classList.add("hide"),h.setAttribute("xlink:href","#open-down-regular"),h.setAttribute("href","#open-down-regular")):n.classList.contains("hide")?(n.classList.remove("hide"),n.classList.add("show"),h.setAttribute("xlink:href","#close-up-regular"),h.setAttribute("href","#close-up-regular")):n.classList.add("hide")});e.addEventListener("change",function(){l.classList.add("cod03-delivery-location-selector__popup--show");f.classList.add("show"); 1222b.focus()});p.addEventListener("click",function(){C();E()});g.addEventListener("click",function(){C();E()});b.addEventListener("click",function(){ca=V.options[V.selectedIndex].text;c.textContent=ca;xa=V.selectedIndex;E()});r.addEventListener("focus",function(){p.focus()});t.addEventListener("focus",function(){f.querySelector(".cta").focus()})}function C(){window.sg.common.menu.selectItem(a.querySelector(".menu"),xa)}function E(){f.classList.remove("show");l.classList.remove("cod03-delivery-location-selector__popup--show"); 1223k.focus()}var z=window.sg.common.$q;var V=t=r=p=g=b=f=l=k=c=e=h=n=a=void 0;var ca,xa;window.sg.components.deliveryLocationSelector={init:w};z.ready(function(){return w()})})();var componentDeliveryLocationSelector={}; 1224(function(a,n){"undefined"===typeof a.smg&&(a.smg={});a.smg.deliverylocationselector=a.smg.deliverylocationselector||{};var h=n("#siteCode").val(),e=n("#tempTitle").val();a=n.cookies.get("country_region",{domain:".samsung.com"});if(null==a||""==a)a="CA-ON",n.cookies.set("country_region",a,{domain:".samsung.com"});for(var c=n(".cod03-delivery-location-selector__select-ctas .menu__select").children(),k=0;k<c.length;k++)if(a==c.eq(k).val()){c.eq(k).val();var l=c.eq(k).text();n(".cod03-delivery-location-selector__select-ctas .menu__select option").eq(k).attr("selected", 1225!0);n(".cod03-delivery-location-selector__region-name").text(l)}a="cod03_delivery location selector-"+n("#pageTrackPd").val()+"-province selector-content_click";n(".cod03-delivery-location-selector__popup .cta--confirm").attr("an-tr",a).attr("an-ca","content click").attr("an-ac","feature").attr("an-la","confirm popup:confirm");n(".cod03-delivery-location-selector__popup .cta--cancel").attr("an-tr",a).attr("an-ca","content click").attr("an-ac","feature").attr("an-la","confirm popup:cancel");n(".cod03-delivery-location-selector__popup--close").attr("an-tr", 1226a).attr("an-ca","content click").attr("an-ac","feature").attr("an-la","confirm popup:cancel");n(".cod03-delivery-location-selector").find(".menu__list-option").on("click",function(){console.log("$componentByDropDownOption click!!!");var f=n(this).find(".menu__list-option-text").text().trim();console.log("delivery-location-selector-confirm clickedSelectedText\x3d["+f+"]")});
1226n(document).off("click","#delivery-location-selector-confirm");n(document).on("click","#delivery-location-selector-confirm", 1227function(){var f=n(".cod03-delivery-location-selector__select-ctas .menu__select option:selected").val(),b=n(".cod03-delivery-location-selector__select-ctas .menu__select option:selected").text();n.cookies.set("country_region",f,{domain:".samsung.com"});n(".cod03-delivery-location-selector__region-name").text(b);n(document).ready(function(){("ca"==h||"ca_fr"==h)&&("page-standard-pd"==e||"page-buying-pd"==e||"page-pf"==e||"page-pf-ux2"==e||"page-search"==e||"page-wearable-bc"==e||"page-bc-pd"==e|| 1228"page-pcd"==e&&0<n(".pf-product-compare").length)&&location.reload()})});componentDeliveryLocationSelector={initGrid:function(){}}})(window,$); 1229(function(){var a=window.sg.common.$q,n=window.sg.common.libs,h=window.sg.common.constants.BREAKPOINTS,e=window.sg.common.utils,c=function(k){var l=this;this.selector={section:".footer",category:".footer-category__anchor",categoryActive:"footer-category__anchor--active",categoryList:".footer-category__list-wrap",categoryItem:".footer-column__item",language:".footer-language__anchor",languagePanel:".footer-language__panel .footer-language__content",languageActive:"footer-language__anchor--active", 1230languageTopTarget:".footer-copyright-align",topBtn:".footer-back-to-top__cta",showFormBtn:'[data-js-action\x3d"showForm"]'};this.ele={window:a(window),section:a(k),wrap2list:[]};this.setProperty();this.prevDevice-0;this.isPCmode=h.MOBILE<e.getViewPort().width;this.handler={resize:this.resize.bind(this),focusLock:this.focusLock.bind(this),outClick:this.outClick.bind(this),clickLanguage:function(){l.ele.language.hasClass(l.selector.languageActive)?l.closeLanguage():l.openLanguage()},handleShowFormBtnClick:this.handleShowFormBtnClick.bind(this)}; 1231c.instances.set(k,this);this.init()};c.prototype.setProperty=function(){var k=this;this.ele.topBtn=this.ele.section.find(this.selector.topBtn).eq(0);var l=this.ele.section.find("."+this.selector.categoryActive);this.ele.categoryActive=0>=l.target.length?null:l;this.ele.category=this.ele.section.find(this.selector.category);this.ele.language=this.ele.section.find(this.selector.language);this.ele.languagePanel=this.ele.section.find(this.selector.languagePanel);this.ele.languageTopTarget=this.ele.section.find(this.selector.languageTopTarget); 1232this.ele.wrap2list=[];this.ele.section.find(this.selector.categoryList).target.forEach(function(f){f=f.querySelectorAll(".footer-category__list");1<f.length&&k.ele.wrap2list.push([].concat($jscomp.arrayFromIterable(f)))});this.ele.showFormBtn=this.ele.section.find(this.selector.showFormBtn)};c.prototype.focusLock=function(k){var l=this;k.keyCode===n.keyCode.TAB_KEY&&setTimeout(function(){if(0>=a(document.activeElement).closest(l.selector.languagePanel).target.length)if("desktop"===e.getCurrentDevice())l.closeLanguage(document.activeElement); 1233else if(k.shiftKey){var f=l.ele.languagePanel.eq(0).find("a");f.target[f.target.length-1].focus()}}.bind(this),30)};c.prototype.outClick=function(k){(("touchend"===k.type?0>=a(k.target||k.touches[0].target).closest(this.ele.languagePanel.target[0]).target.length:0>=a(k.target).closest(this.ele.languagePanel.target[0]).target.length)||k.target===document.documentElement)&&this.closeLanguage()};c.prototype.init=function(){var k=this;this.setLengthTop();this.bindEvents();var l=this.ele.section.find(".image__preview"); 1234if(0<l.target.length)l.eq(l.target.length-1).on("load",function(){k.setLengthTop()});this.setContentIdDamTagging()};c.prototype.reInit=function(){this.setProperty();this.bindEvents();this.resize();this.setContentIdDamTagging()};c.prototype.resize=function(){this.isPCmode=h.MOBILE<e.getViewPort().width;this.setLengthTop();this.isPCmode?(null!==this.ele.categoryActive&&this.closeCategory(this.ele.categoryActive,!0),this.ele.language.hasClass(this.selector.languageActive)&&this.closeLanguage(!1),this.ele.category.removeAttr("aria-expanded")): 1235this.ele.category.attr("aria-expanded",!1)};c.prototype.bindEvents=function(){var k=this;this.ele.topBtn.off("click").on("click",this.moveScroll.bind(this));this.ele.category.off("click").on("click",function(l){l=a(l.currentTarget);l.hasClass(k.selector.categoryActive)?k.closeCategory(l):k.openCategory(l)});this.ele.showFormBtn.off("click",this.handler.handleShowFormBtnClick).on("click",this.handler.handleShowFormBtnClick);this.ele.language.off("click").on("click",this.handler.clickLanguage);this.ele.window.off("resize", 1236this.handler.resize).on("resize",this.handler.resize)};c.prototype.moveScroll=function(){e.scrollTo(0)};c.prototype.openLanguage=function(){var k=this,l="mobile"===e.getCurrentDevice();this.ele.language.addClass(this.selector.languageActive);this.ele.language.attr("aria-expanded",!0);l&&window.sg.common.utils.setMobileFocusLoop(this.ele.languagePanel.target[0]);var f=l?this.ele.languagePanel.eq(0).find(".footer-language__link--selected").target[0]:this.ele.languagePanel.eq(1).find(".footer-language__link--selected").target[0]; 1237f&&f.blur();
1237setTimeout(function(){f&&f.focus();k.ele.window.off("keydown",k.handler.focusLock).on("keydown",k.handler.focusLock);k.ele.window.off("click",k.handler.outClick).on("click",k.handler.outClick);k.ele.window.off("touchend",k.handler.outClick).on("touchend",k.handler.outClick)},30)};c.prototype.closeLanguage=function(k){var l=this;k=void 0===k?null:k;this.ele.language.attr("aria-expanded",!1);"mobile"===e.getCurrentDevice()&&window.sg.common.utils.removeMobileFocusLoop();this.ele.window.off("keydown", 1238this.handler.focusLock);this.ele.window.off("click",this.handler.outClick);this.ele.window.off("touchend",this.handler.outClick);setTimeout(function(){l.ele.language.removeClass(l.selector.languageActive);null===k&&l.ele.language.target.forEach(function(f){"none"!==a(f).closest(".footer-language").css("display")&&f.focus()})},30)};c.prototype.openCategory=function(k){if(null!==this.ele.categoryActive){this.ele.categoryActive.removeClass(this.selector.categoryActive);k.addClass(this.selector.categoryActive); 1239var l=k.closest(this.selector.categoryItem).target[0].getBoundingClientRect();l.top<-1*k.height()&&window.scrollTo(document.body.scrollLeft||document.documentElement.scrollLeft,(document.body.scrollTop||document.documentElement.scrollTop)+l.top);this.ele.categoryActive.addClass(this.selector.categoryActive);k.removeClass(this.selector.categoryActive);this.closeCategory(this.ele.categoryActive)}k.addClass(this.selector.categoryActive);k.attr("aria-expanded",!0);k.parent().find(this.selector.categoryList).slideDown(500); 1240l=k.find(".hidden").target[0].dataset.i18nClose;k.find(".hidden").target[0].innerHTML=l;this.ele.categoryActive=k};c.prototype.closeCategory=function(k,l){var f=this;l=void 0===l?!1:l;var b=k.parent().find(this.selector.categoryList),g=k.find(".hidden").target[0].dataset.i18nOpen;if(l)k.removeClass(this.selector.categoryActive),k.find(".hidden").target[0].innerHTML=g;else{var p=b.isAnimate();b.stop().slideUp(500,function(){k.removeClass(f.selector.categoryActive);k.find(".hidden").target[0].innerHTML= 1241g;p&&b.css({height:"",display:"",overflow:""})})}k.attr("aria-expanded",!1);this.ele.categoryActive=null};c.prototype.setLengthTop=function(){};c.prototype.handleShowFormBtnClick=function(k){"undefined"!==typeof KAMPYLE_ONSITE_SDK&&(k=parseInt(k.currentTarget.getAttribute("data-form-id")),KAMPYLE_ONSITE_SDK.loadForm(k)&&KAMPYLE_ONSITE_SDK.showForm(k))};c.prototype.setContentIdDamTagging=function(){function k(w,y){var C="";return C="desktop"===y?w.find(".image__main[data-desktop-aem-asset-id], .image-v2__main[data-desktop-aem-asset-id], .first-image img[data-desktop-aem-asset-id], .video[data-desktop-aem-asset-id], .image__main[data-aem-asset-id], .image-v2__main[data-aem-asset-id], .first-image img[data-aem-asset-id], .video[data-aem-asset-id]").target.map(function(E){return a(E).attr("data-desktop-aem-asset-id")|| 1242a(E).attr("data-aem-asset-id")}).filter(function(E){return null!==E&&""!==E}).join(","):w.find(".image__main[data-mobile-aem-asset-id], .image-v2__main[data-mobile-aem-asset-id], .first-image img[data-mobile-aem-asset-id], .video[data-mobile-aem-asset-id], .image__main[data-aem-asset-id], .image-v2__main[data-aem-asset-id], .first-image img[data-aem-asset-id], .video[data-aem-asset-id]").target.map(function(E){return a(E).attr("data-mobile-aem-asset-id")||a(E).attr("data-aem-asset-id")}).filter(function(E){return null!== 1243E&&""!==E}).join(",")}function l(w,y){var C=k(r,y);w.forEach(function(E){E=a(E);switch(y){case "desktop":E.attr("an-as",C);break;case "mobile":E.attr("an-as",C)}})}function f(w,y){w.forEach(function(C){C=a(C);var E=k(C,y);switch(y){case "desktop":C.attr("an-as",E);break;case "mobile":C.attr("an-as",E)}})}var b=this;this.prevDevice=e.getCurrentDevice();var g=this.ele.window,p=this.ele.section,r=p.find(".footer-local-logo__item a"),t=p.find(".footer-category__anchor, .footer-category__link, .footer-language__link, .footer-language__anchor, .footer-terms__link, .footer-sns__link").target; 1244a(".fab").target.length&&t.push(a(".fab").target[0]);l(t,this.prevDevice);f(r.target,this.prevDevice);g.on("resize",function(){var w=e.getCurrentDevice();b.prevDevice!==w&&(b.prevDevice=w,l(t,b.prevDevice),f(r.target,b.prevDevice))})};c.instances=new WeakMap;window.sg.components.footer={reInit:function(){a(".footer").target.forEach(function(k){c.instances.has(k)&&c.instances.get(k).reInit()})}};a.ready(function(){a(".footer").target.forEach(function(k){c.instances.has(k)||new c(k)})})})();
1245(function(){var a=window.sg.common.$q,n=window.sg.common.menu,h=window.sg.common.utils.getCurrentDevice,e=function(k){this.els={el:k,cookieBarShopBanner:k.querySelector(".cookie-bar__app-banner"),cookieBarShopBannerCloseButton:k.querySelector(".cookie-bar__shop-app-close"),cookieBarMainArea:k.querySelector(".cookie-bar__wrap"),settingButton:k.querySelector(".cookie-bar__setting"),settingConditionWrap:k.querySelector(".cookie-bar__setting-condition-wrap"),cookieBarMainCloseButton:k.querySelector(".cookie-bar__main-close")}; 1246this.isMainArea=this.isMobileShopBanner=this.isShowSettingConditionWrap=!1;this.init()};e.prototype.init=function(){e.instances.get(this.els.el)||(e.instances.set(this.els.el,this),this.bindEvents(),this.checkCookieBarCloseStatus())};e.prototype.reInitMobileAppBar=function(){this.checkCookieBarCloseStatus()};e.prototype.bindEvents=function(){var k=this;this.els.cookieBarMainCloseButton.addEventListener("click",this.closeMain.bind(this));this.els.cookieBarShopBannerCloseButton&&this.els.cookieBarShopBannerCloseButton.addEventListener("click", 1247this.closeBanner.bind(this));this.els.settingButton&&this.els.settingButton.addEventListener("click",function(){k.isShowSettingConditionWrap?(k.els.settingConditionWrap.removeAttribute("style"),k.isShowSettingConditionWrap=!1):(k.els.settingConditionWrap.style.display="block",k.isShowSettingConditionWrap=!0)});window.addEventListener("resize",function(){k.checkCookieBarCloseStatus()})};e.prototype.checkCookieBarCloseStatus=function(){this.isMobileShopBanner&&!this.isMainArea&&("mobile"===h()?this.els.el.style.display= 1248"block":this.els.el.style.display="none")};e.prototype.closeBanner=function(){this.els.cookieBarShopBanner.classList.remove("cookie-bar__app-banner--visible");this.isMobileShopBanner=!1;this.isMainArea||(this.els.el.style.display="none")};e.prototype.showBanner=function(){this.els.cookieBarShopBanner.classList.remove("cookie-bar--hidden");this.isMobileShopBanner=!0};e.prototype.closeMain=function(){this.els.cookieBarMainArea.classList.add("cookie-bar--hidden");this.isMainArea=!1;this.isMobileShopBanner? 1249this.checkCookieBarCloseStatus():this.els.el.style.display="none"};e.prototype.showMain=function(){this.els.cookieBarMainArea.classList.remove("cookie-bar--hidden");this.isMainArea=!0};e.instances=new WeakMap;var c={init:function(){a(".cookie-bar").target.forEach(function(k){e.instances.has(k)||new e(k)})},reInit:function(){a(".cookie-bar").find(".menu").target.forEach(function(k){n.reInit(k)})},showCookieBar:function(){e.instances.get(document.querySelector(".cookie-bar")).isMainArea=!0;e.instances.get(document.querySelector(".cookie-bar")).showMain(); 1250e.instances.get(document.querySelector(".cookie-bar")).els.el.style.display="block"},showMobileAppBanner:function(){this.showCookieBar();e.instances.get(document.querySelector(".cookie-bar")).els.cookieBarMainArea.classList.add("cookie-bar--hidden");e.instances.get(document.querySelector(".cookie-bar")).isMainArea=!1;e.instances.get(document.querySelector(".cookie-bar")).els.cookieBarShopBanner.classList.add("cookie-bar__app-banner--visible");e.instances.get(document.querySelector(".cookie-bar")).isMobileShopBanner= 1251!0;e.instances.get(document.querySelector(".cookie-bar")).reInitMobileAppBar()}};window.sg.components.cookieBar=c;a.ready(c.init)})(); 1252(function(a,n){var h=[{site_code:"CA_FR",global:{country_name:"Canada",lang:"French"},local:{country_name:"Canada",lang:"Fran\u00e7ais"},country_codes:["ca"]},{site_code:"CA",global:{country_name:"Canada",lang:"English"},local:{country_name:"Canada",lang:"English"},country_codes:["ca"]},{site_code:"MX",global:{country_name:"Mexico",lang:"Spanish"},local:{country_name:"M\u00e9xico",lang:"Espa\u00f1o"},country_codes:["mx"]},{site_code:"BR",global:{country_name:"Brazil",lang:"Portuguese"},local:{country_name:"Brasil", 1253lang:"Portugu\u00eas"},country_codes:["br"]},{site_code:"LATIN",global:{country_name:"Latin America",lang:"Spanish"},local:{country_name:"Latin",lang:"Espa\u00f1ol"},country_codes:"gt ni do bo ec sv cr pa hn".split(" ")},{site_code:"LATIN_EN",global:{country_name:"Latin America",lang:"English"},local:{country_name:"Latin",lang:"English"},country_codes:"gy gp mq bb bm bz lc sr aw ht ag jm ky tt".split(" ")},{site_code:"CO",global:{country_name:"Colombia",lang:"Spanish"},local:{country_name:"Colombia", 1254lang:"Espa\u00f1ol"},country_codes:["co"]},{site_code:"AR",global:{country_name:"Argentina",lang:"Spanish"},local:{country_name:"Argentina",lang:"Espa\u00f1ol"},country_codes:["ar"]},{site_code:"UY",global:{country_name:"Uruguay",lang:"Spanish"},local:{country_name:"Uruguay",lang:"Espa\u00f1ol"},country_codes:["uy"]},{site_code:"PY",global:{country_name:"Paraguay",lang:"Spanish"},local:{country_name:"Paraguay",lang:"Espa\u00f1ol"},country_codes:["py"]},{site_code:"CL",global:{country_name:"Chile", 1255lang:"Spanish"},local:{country_name:"Chile",lang:"Espa\u00f1ol"},country_codes:["cl"]},{site_code:"PE",global:{country_name:"Peru",lang:"Spanish"},local:{country_name:"Per\u00fa ",lang:"Espa\u00f1ol"},country_codes:["pe"]},{site_code:"SG",global:{country_name:"Singapore",lang:"English"},local:{country_name:"Singapore",lang:"English"},country_codes:["sg"]},{site_code:"AU",global:{country_name:"Australia",lang:"English"},local:{country_name:"Australia",lang:"English"},country_codes:["au"]},{site_code:"NZ", 1256global:{country_name:"New Zealand",lang:"English"},local:{country_name:"New Zealand",lang:"English"},country_codes:["nz"]},{site_code:"ID",global:{country_name:"Indonesia",lang:"Indonesian"},local:{country_name:"Indonesia",lang:"Bahasa Indonesia"},country_codes:["id"]},{site_code:"TH",global:{country_name:"Thailand",lang:"Thai"},local:{country_name:"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22",lang:"\u0e44\u0e17\u0e22"},country_codes:["th"]},{site_code:"VN",global:{country_name:"Vietnam", 1257lang:"Vietnamese"},local:{country_name:"Vi\u1ec7t Nam",lang:"Ti\u1ebfng Vi\u1ec7t"},country_codes:["vn"]},{site_code:"MY",global:{country_name:"Malaysia",lang:"English"},local:{country_name:"Malaysia",lang:"English"},country_codes:["my"]},{site_code:"MM",global:{country_name:"Myanmar",lang:"Burmese"},local:{country_name:"Myanmar",lang:"Burmese"},country_codes:["mm"]},{site_code:"JP",global:{country_name:"Japan",lang:"Japanese"},local:{country_name:"\u65e5\u672c",lang:"\u65e5\u672c\u8a9e"},country_codes:["jp"]}, 1258{site_code:"IN",global:{country_name:"India",lang:"English"},local:{country_name:"India",lang:"English"},country_codes:["in","np","bd","lk"]},{site_code:"UK",global:{country_name:"United Kingdom",lang:"English"},local:{country_name:"United Kingdom",lang:"English"},country_codes:["gb","uk"]},{site_code:"IE",global:{country_name:"Ireland",lang:"English"},local:{country_name:"Ireland",lang:"English"},country_codes:["ie"]},{site_code:"IT",global:{country_name:"Italy",lang:"Italian"},local:{country_name:"Italia", 1259lang:"Italiano"},country_codes:["it","mt"]},{site_code:"ES",global:{country_name:"Spain",lang:"Spanish"},local:{country_name:"Espana",lang:"Espanol"},country_codes:["es"]},{site_code:"HU",global:{country_name:"Hungary",lang:"Hungarian"},local:{country_name:"Magyarorsz\u00e1g",lang:"Magyar"},country_codes:["hu"]},{site_code:"DE",global:{country_name:"Germany",lang:"German"},local:{country_name:"Deutschland",lang:"Deutsch"},country_codes:["de"]},{site_code:"SE",global:{country_name:"Sweden",lang:"Swedish"}, 1260local:{country_name:"Sverige",lang:"Svenska"},country_codes:["se"]},{site_code:"DK",global:{country_name:"Denmark",lang:"Danish"},local:{country_name:"Danmark",lang:"Dansk"},country_codes:["dk"]},{site_code:"FI",global:{country_name:"Finland",lang:"Finnish"},local:{country_name:"Suomi",lang:"Suomi"},country_codes:["fi"]},{site_code:"NO",global:{country_name:"Norway",lang:"Norwegian"},local:{country_name:"Norge",lang:"Norsk"},country_codes:["no"]},{site_code:"FR",global:{country_name:"France",lang:"French"}, 1261local:{country_name:"France",lang:"Fran\u00e7ais"},country_codes:["fr"]},{site_code:"PT",global:{country_name:"Portugal",lang:"Portuguese"}
1261,local:{country_name:"Portugal",lang:"Portugu\u00eas"},country_codes:["pt"]},{site_code:"PL",global:{country_name:"Poland",lang:"Polish"},local:{country_name:"Polska",lang:"Polski"},country_codes:["pl"]},{site_code:"GR",global:{country_name:"Greece",lang:"Greek"},local:{country_name:"\u0395\u03bb\u03bb\u03ac\u03b4\u03b1",lang:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"}, 1262country_codes:["gr"]},{site_code:"CZ",global:{country_name:"Czech",lang:"Czech"},local:{country_name:"\u010cesk\u00e1 republika",lang:"\u010ce\u0161tina"},country_codes:["cz"]},{site_code:"SK",global:{country_name:"Slovakia",lang:"Slovakian"},local:{country_name:"Slovensko",lang:"Sloven\u010dina"},country_codes:["sk"]},{site_code:"RO",global:{country_name:"Romania",lang:"Romanian"},local:{country_name:"Romania",lang:"Romanian"},country_codes:["ro"]},{site_code:"BG",global:{country_name:"Bulgaria", 1263lang:"Bulgarian"},local:{country_name:"\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",lang:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},country_codes:["bg"]},{site_code:"AT",global:{country_name:"Austria",lang:"German"},local:{country_name:"\u00d6sterreich",lang:"Deutsch"},country_codes:["at"]},{site_code:"CH",global:{country_name:"Switzerland",lang:"German"},local:{country_name:"Schweiz",lang:"Deutsch"},country_codes:["ch"]},{site_code:"CH_FR",global:{country_name:"Switzerland",lang:"French"}, 1264local:{country_name:"Suisse",lang:"Francaise"},country_codes:["ch"]},{site_code:"BE",global:{country_name:"Belgium",lang:"Dutch"},local:{country_name:"Belgi\u00eb",lang:"Nederlands"},country_codes:["be"]},{site_code:"BE_FR",global:{country_name:"Belgium",lang:"French"},local:{country_name:"Belgium",lang:"French"},country_codes:["lu"]},{site_code:"NL",global:{country_name:"Netherlands",lang:"Dutch"},local:{country_name:"Nederland",lang:"Nederlands"},country_codes:["nl"]},{site_code:"LV",global:{country_name:"Latvia", 1265lang:"Latvian"},local:{country_name:"Latvija",lang:"Latvie\u0161u"},country_codes:["lv"]},{site_code:"LT",global:{country_name:"Lithuania",lang:"Lithuanian"},local:{country_name:"Lietuva",lang:"Lietuvi\u0173"},country_codes:["lt"]},{site_code:"EE",global:{country_name:"Estonia",lang:"Estonian"},local:{country_name:"Eesti",lang:"Eesti"},country_codes:["ee"]},{site_code:"RS",global:{country_name:"Serbia",lang:"Serbian"},local:{country_name:"C\u0440\u0431\u0438\u0458\u0430",lang:"C\u0440\u043f\u0441\u043a\u0438"}, 1266country_codes:["rs"]},{site_code:"HR",global:{country_name:"Croatia",lang:"Croatian"},local:{country_name:"Hrvatska",lang:"Hrvatski"},country_codes:["hr"]},{site_code:"SI",global:{country_name:"Slovenia",lang:"Slovenijan"},local:{country_name:"Slovenija",lang:"Sloven\u0161\u010dina"},country_codes:["sl"]},{site_code:"AL",global:{country_name:"Albania",lang:"Albania"},local:{country_name:"Shqip\u00ebri",lang:"Shqi"},country_codes:["al"]},{site_code:"RU",global:{country_name:"Russia",lang:"Russian"}, 1267local:{country_name:"\u0420\u043e\u0441\u0441\u0438\u044f",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["ru"]},{site_code:"UA",global:{country_name:"Ukraine",lang:"Ukrainian"},local:{country_name:"\u0423\u043a\u0440\u0430\u0457\u043d\u0430",lang:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},country_codes:["ua"]},{site_code:"UA_RU",global:{country_name:"Ukraine",lang:"Russian"},local:{country_name:"\u0423\u043a\u0440\u0430\u0438\u043d\u0430",lang:"P\u0443\u0441\u0441\u043a\u0438\u0439"}, 1268country_codes:["ua"]},{site_code:"KZ_RU",global:{country_name:"Kazakhstan",lang:"Russian"},local:{country_name:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d",lang:"P\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["kz"]},{site_code:"KZ_KZ",global:{country_name:"Kazakhstan",lang:"Kazakh"},local:{country_name:"\u049a\u0430\u0437\u0430\u049b\u0441\u0442\u0430\u043d",lang:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430"},country_codes:["kz"]},{site_code:"UZ_RU",global:{country_name:"Uzbekistan", 1269lang:"Russian"},local:{country_name:"\u0423\u0437\u0431\u0435\u043a\u0438\u0441\u0442\u0430\u043d",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["uz"]},{site_code:"UZ_UZ",global:{country_name:"Uzbekistan",lang:"Uzbek"},local:{country_name:"O'zbekiston",lang:"O'zbek"},country_codes:["uz"]},{site_code:"AE",global:{country_name:"UAE",lang:"English"},local:{country_name:"UAE",lang:"English"},country_codes:"bh ae ye om qa kw".split(" ")},{site_code:"AE_AR",global:{country_name:"UAE", 1270lang:"Arabic"},local:{country_name:"\u0627\u0644\u0625\u0645\u0627\u0631\u0627\u062a ",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:["ae"]},{site_code:"IL",global:{country_name:"Israel",lang:"Hebrew"}
1270,local:{country_name:"\u05d9\u05e9\u05e8\u05d0\u05dc",lang:"\u05e2\u05d1\u05e8\u05d9\u05ea"},country_codes:["il"]},{site_code:"SA",global:{country_name:"Saudi Arabia",lang:"Arabic"},local:{country_name:"\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629", 1271lang:"\u0639\u0631\u0628\u064a"},country_codes:["sa","ly"]},{site_code:"SA_EN",global:{country_name:"Saudi Arabia",lang:"English"},local:{country_name:"Saudi Arabia",lang:"English"},country_codes:["sa"]},{site_code:"TR",global:{country_name:"Turkey",lang:"Turkish"},local:{country_name:"T\u00fcrkiye",lang:"T\u00fcrk\u00e7e"},country_codes:["tr"]},{site_code:"IRAN",global:{country_name:"Iran",lang:"Persian"},local:{country_name:"\u0627\u06cc\u0631\u0627\u0646",lang:"\u0641\u0627\u0631\u0633\u064a"}, 1272country_codes:["lr"]},{site_code:"LEVANT",global:{country_name:"Levant",lang:"English"},local:{country_name:"Levant",lang:"English"},country_codes:["lb","jo","iq","ps"]},{site_code:"LEVANT_AR",global:{country_name:"Levant",lang:"Arabic"},local:{country_name:"Levant",lang:"Arabic"},country_codes:["lb","jo","iq","ps"]},{site_code:"PK",global:{country_name:"Pakistan",lang:"English"},local:{country_name:"Pakistan",lang:"English"},country_codes:["pk","af"]},{site_code:"EG",global:{country_name:"Egypt", 1273lang:"Arabic"},local:{country_name:"\u0627\u0644\u0628\u0644\u062f \u0645\u0635\u0631",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:["eg","so","er"]},{site_code:"LB",global:{country_name:"Lebanon",lang:"Lebanon"},local:{country_name:"Lebanon",lang:"English"},country_codes:["lb"]},{site_code:"N_AFRICA",global:{country_name:"Africa",lang:"French"},local:{country_name:"Maroc",lang:"Fran\u00e7ais"},country_codes:["ma","dz","tn"]},{site_code:"AFRICA_EN",global:{country_name:"Africa Pan", 1274lang:"English"},local:{country_name:"Africa",lang:"English"},country_codes:"gh gm na ng lr mw bw sz sl et ug zm zw ke tz".split(" ")},{site_code:"AFRICA_FR",global:{country_name:"Africa Pan",lang:"French"},local:{country_name:"Afrique",lang:"Fran\u00e7ais"},country_codes:"ga gn ne rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" ")},{site_code:"AFRICA_PT",global:{country_name:"Africa Pan",lang:"Portuguese"},local:{country_name:"\u00c1frica",lang:"Portugu\u00eas"},country_codes:["gw", 1275"mz","ao","cv"]},{site_code:"ZA",global:{country_name:"South Africa",lang:"English"},local:{country_name:"South Africa",lang:"English"},country_codes:["za"]},{site_code:"US",global:{country_name:"USA",lang:"English"},local:{country_name:"USA",lang:"English"},country_codes:["us"]},{site_code:"CN",global:{country_name:"China",lang:"Chinese"},local:{country_name:"\u4e2d\u56fd",lang:"\u4e2d\u6587"},country_codes:["cn"]},{site_code:"HK",global:{country_name:"Hong Kong",lang:"Chinese"},local:{country_name:"\u9999\u6e2f", 1276lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["hk"]},{site_code:"HK_EN",global:{country_name:"Hong Kong",lang:"English"},local:{country_name:"Hong Kong",lang:"English"},country_codes:["hk"]},{site_code:"TW",global:{country_name:"Taiwan",lang:"Chinese"},local:{country_name:"\u53f0\u7063",lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["tw"]},{site_code:"SEC",global:{country_name:"Korea",lang:"Korean"},local:{country_name:"\ub300\ud55c\ubbfc\uad6d",lang:"\ud55c\uad6d\uc5b4"},country_codes:["kr"]}, 1277{site_code:"PH",global:{country_name:"Philippines",lang:"English"},local:{country_name:"Philippines",lang:"English"},country_codes:["ph"]},{site_code:"VE",global:{country_name:"Venezuela",lang:"English"},local:{country_name:"Venezuela",lang:"English"},country_codes:["sg","ve"]}];"undefined"===typeof a.smg&&(a.smg={});"undefined"===typeof a.smg.aem&&(a.smg.aem={});"undefined"===typeof a.smg.aem.common&&(a.smg.aem.common={});var e=function(){var c=n("#siteCode").val(),k=!0;"cn"===c&&(k=!1);var l={closeBtn:".cookie-bar__close", 1278akkoordBtn:"#akkoord_btn",cookieAcceptBtn:".cta--contained",geoSelectWrap:".cookie-bar__select",visitBtnsWrap:".cookie-bar__select-ctas .menu__select",geoMsgCookieWrap:".cookie-bar__msg-wrap",typeManage:".cookie-bar--type-manage",paramsCookie:{commonaccepted:"cookiesaccepted",accepted:"cookiesaccepted-geo",acceptedCountries:"cookiesaccepted-countries",banneraccepted:"cookiesaccepted_banner",countryCodes:"country_codes",siteCode:"site_cd"}};return{init:function(f,b){if(!(1>n(".cookie-bar").length|| 1279"undefined"!==typeof shopAppUtilInstance&&shopAppUtilInstance.isWebView())){var g="N",p=navigator.userAgent;if("in"===c||"es"===c||"de"===c||"nl"===c||"uk"===c){if(-1<p.indexOf("MyGalaxy")||-1<p.indexOf("SamsungShopSDK"))g="Y";if("Y"===g){n(".cookie-bar").remove();return}navigator.userAgent.match(/iPhone|iPad|iPod/i);window.location.href.indexOf("/"+c+"/support/")}(this.$container=f).length&&!this.$container.data("initialized")&&c&&(this.options=def(l,b||{}),this.assignedHTMLElements(),this.initProperties(), 1280this.isAcceptedCountries()&&this.$geoMsgCookieWrap.remove(),this.isAcceptedBanner()&&this.removebannerInner(),this.setCountryInfo(),!this.isAcceptedGeo()&&!this.isLocalLanguageSite()&&""!==this.visitCountryCode&&this.currentCountrySiteInfo[0]||!this.isAcceptedCountries()||null!==this.$bannerInner&&(null===this.$bannerInner||0!==this.$bannerInner.length))&&(this.bindEvents(),this.$container.attr("data-initialized",!0),"es"!==c&&"de"!==c&&"nl"!==c&&"uk"!==c||this.$geoMsgCookieWrap.hide(),window.sg.components.c
1280ookieBar.showCookieBar())}}, 1281assignedHTMLElements:function(){var f=this.$container,b=this.options;this.$visitBtnsWrap=f.find(b.visitBtnsWrap);this.$cookieGeoClose=f.find(b.closeBtn);this.$akkoordBtn=f.find(b.akkoordBtn);this.$cookieAcceptBtn=f.find(b.cookieAcceptBtn);this.$geoSelectWrap=f.find(b.geoSelectWrap);this.$selectListToggleBtn=f.find(b.selectListToggleBtn);this.$geoMsgCookieWrap=f.find(b.geoMsgCookieWrap);this.$bannerClose=n(".cookie-bar__shop-app-close");this.$bannerInner=n(".cookie-bar__app-banner")},initProperties:function(){var f= 1282this.options.paramsCookie;this.testSiteCd=this.getParam(f.siteCode);this.currentSiteCode=c.toLowerCase();this.visitCountryCode=this.testSiteCd?this.testSiteCd:cookies.getCookie(f.countryCodes).toLowerCase();this.currentCountrySiteInfo=[];this.visitCountrySiteInfo=[];this.selectedSiteCode="";this.acceptedCountries=[];cookies.getCookie(f.acceptedCountries)&&(this.acceptedCountries=cookies.getCookie(f.acceptedCountries).split(","))},isLocalLanguageSite:function(){return this.currentSiteCode===this.visitCountryCode}, 1283isSameSiteGroup:function(){var f=this.visitCountrySiteInfo,b=this.currentCountrySiteInfo[0],g=!1;b&&n.each(b.country_codes,function(p,r){n.each(f,function(t,w){0<=n.inArray(r,w.country_codes)&&(g=!0)})});return g},setCountryInfo:function(){n.each(h,n.proxy(function(f,b){f=b.country_codes;var g=b.site_code.toLowerCase();n.each(f,n.proxy(function(p,r){g===this.currentSiteCode&&this.currentCountrySiteInfo.push(b);r===this.visitCountryCode&&this.visitCountrySiteInfo.push(b)},this))},this))},append:function(){var f= 1284this.visitCountrySiteInfo,b=this.currentCountrySiteInfo[0];if(f.length&&b){var g="",p="",r=0;this.isSameSiteGroup()||(r++,g+='\x3coption value\x3d"'+r+'" site_cd\x3d"'+b.site_code.toLowerCase()+'" title\x3d"Visit '+b.local.country_name+"/"+b.local.lang+' site"\x3e'+b.local.country_name+" / "+b.local.lang+"\x3c/option\x3e",p=b.local.country_name+" / "+b.local.lang);n.each(f,n.proxy(function(t,w){r++;g+='\x3coption value\x3d"'+r+'" site_cd\x3d"'+w.site_code.toLowerCase()+'" title\x3d"Visit '+w.local.country_name+ 1285"/"+w.local.lang+' site"\x3e'+w.local.country_name+" / "+w.local.lang+"\x3c/option\x3e";""===p&&(p=w.local.country_name+" / "+w.local.lang)},this));this.$visitBtnsWrap.attr("data-default-message",p);this.$visitBtnsWrap.html(g);window.sg.components.cookieBar.reInit()}else this.$geoSelectWrap.remove()},bindEvents:function(){this.$visitBtnsWrap.on("change",n.proxy(this.onSelectBtnsClick,this));this.$cookieGeoClose.on("click",n.proxy(this.onCloseBtnClick,this));this.$akkoordBtn.on("click",n.proxy(this.onAkkoordBtnClick, 1286this));this.$cookieAcceptBtn.on("click",n.proxy(this.onAcceptClick,this));this.$bannerClose.on("click",n.proxy(this.onBaanerCloseBtnClick,this))},isTypeManage:function(){return this.$container.is(this.options.typeManage)},onCloseBtnClick:function(){this.isTypeManage()||this.setCookieAccept()},onAkkoordBtnClick:function(){this.isTypeManage()||(this.setCookieAccept(),n(".cookie-bar").hide())},setCookieAccept:function(){var f=this.options.paramsCookie;0>n.inArray(this.currentSiteCode,this.acceptedCountries)&& 1287this.acceptedCountries.push(this.currentSiteCode);cookies.setCookie2(f.acceptedCountries,this.acceptedCountries,90,k);cookies.setCookie2(f.commonaccepted,"true",90,k)},setCookieGeo:function(){var f=this.options.paramsCookie;cookies.setCookie(f.accepted,"true",90);cookies.setCookie2(f.commonaccepted,"true",90,k)},setBannerCookie:function(){cookies.setCookie(this.options.paramsCookie.banneraccepted,"true",90)},onAcceptClick:function(){this.setCookieAccept();this.isTypeManage()?n(".cookie-bar").hide(): 1288this.$geoMsgCookieWrap.remove()},onSelectBtnsClick:function(f){f=this.options.paramsCookie;this.selectedSiteCode=n(".cookie-bar__select-ctas .menu__select option:selected").attr("site_cd");this.setParamsCookie(f.siteCode,this.selectedSiteCode,999);this.setCookieGeo();this.isTypeManage()||this.setCookieAccept()},onBaanerCloseBtnClick:function(){this.setBannerCookie()},isAcceptedGeo:function(){return!!cookies.getCookie(this.options.paramsCookie.accepted)},isAcceptedBanner:function(){return!!cookies.getCookie(this.options.paramsCookie.banneraccepted)}, 1289isAcceptedCountries:function(){return 0>n.inArray(this.currentSiteCode,this.acceptedCountries)?!1:!0},removebannerInner:function(){null!==this.$bannerInner&&(this.$bannerInner.remove(),this.$bannerInner=null)},setParamsCookie:function(f,b,g){var p=new Date,r=window.location.protocol+"//"+window.location.host+"/"+this.selectedSiteCode;p.setDate(p.getDate()+parseInt(g));document.cookie=f+"\x3d"+escape(b)+"; path\x3d/;
1289 expires\x3d"+p.toGMTString()+";";window.location.href=r},getParam:function(f){var b= 1290{};document.location.search.replace("?","").replace(/(?:^|\?|&)([^=]+)(?==)(?:=([^&]*))?/g,function(g,p,r){b[decodeURIComponent(p.split("+").join(" "))]=decodeURIComponent(r.split("+").join(" "))});return b[f]}}}();n(function(){e.init(n(".cookie-bar__wrap"))})})(window,jQuery); 1291(function(){function a(){n(h.section).target.forEach(function(c){e.instances.has(c)||new e(c)})}var n=window.sg.common.$q,h={section:".notice"},e=function(c){var k=this;this.selector={section:h.section,btn:".notice__toggle-btn",hidden:".notice__toggle-btn .hidden",content:".notice__inner",nomarl:".notice__column notice__column--collapsed",expend:".notice__column notice__column--expanded",close:".notice__close"};this.timer=null;this.ele={window:n(window),section:n(c),btn:null,content:null,nomarl:null, 1292expand:null,close:null};this.toggleType=this.ele.section.hasClass("notice--toggle");this.handler={resize:function(){k.toggleType&&(k.ele.section.css({height:""}),k.timer&&clearTimeout(k.timer),setTimeout(function(){k.setHeight()},400))},clickClose:function(l){l.preventDefault();k.ele.section.hide();k.ele.window.trigger("resize")}};this.init();e.instances.set(c,this)};e.prototype.setProperty=function(){this.ele.btn=this.ele.section.find(this.selector.btn);this.toggleType?(this.ele.hidden=this.ele.section.find(this.selector.hidden), 1293this.ele.content=this.ele.section.find(this.selector.content),this.ele.pdBanner=this.ele.section.find(this.selector.pdBanner),this.ele.nomarl=this.ele.section.find(this.selector.nomarl),this.ele.expand=this.ele.section.find(this.selector.expend)):this.ele.close=this.ele.section.find(this.selector.close)};e.prototype.init=function(){this.setProperty();this.bindEvents()};e.prototype.reInit=function(){this.setProperty();this.bindEvents()};e.prototype.setHeight=function(){this.ele.section.css({height:this.ele.content.outerHeight()+ 1294"px"})};e.prototype.bindEvents=function(){var c=this;if(this.toggleType)this.ele.btn.off("click").on("click",function(){c.ele.section.hasClass("is-expanded")?c.closeBanner():c.openBanner()}),this.setHeight();else this.ele.close.off("click").on("click",this.handler.clickClose);this.ele.window.off("resize",this.handler.resize).on("resize",this.handler.resize)};e.prototype.openBanner=function(){this.ele.section.addClass("is-expanded");this.ele.section.attr("aria-expanded",!0);this.ele.nomarl.hide(); 1295this.ele.expand.show();this.ele.hidden.innerHTML("Click to Collapse");this.setHeight()};e.prototype.closeBanner=function(){this.ele.section.removeClass("is-expanded");this.ele.section.attr("aria-expanded",!1);this.ele.nomarl.show();this.ele.expand.hide();this.ele.hidden.innerHTML("Click to Expand");this.setHeight()};e.instances=new WeakMap;window.sg.components.notice={init:a,reInit:function(){n(h.section).target.forEach(function(c){e.instances.has(c)?e.instances.get(c).reInit():new e(c)})},closeBanner:function(c){c= 1296void 0===c?!0:c;n(h.section).target.forEach(function(k){e.instances.has(k)&&e.instances.get(k).closeBanner(c)})}};n.ready(a)})(); 1297(function(){function a(){n(c.section).target.forEach(function(f){l.instance.has(f)||new l(f)})}var n=window.sg.common.$q,h=window.sg.common.utils,e=window.sg.common.utils.getCurrentDevice,c={section:".nv16-country-selector"},k=[{site_code:"AE",local:{country_name:"UAE",lang:"English"},country_codes:"ae ae_ar bh ye om qa kw".split(" "),lang_code:"en-AE"},{site_code:"AE_AR",local:{country_name:"\u0627\u0644\u062e\u0644\u064a\u062c",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:"ae ae_ar bh ye om qa kw".split(" "), 1298lang_code:"ar-AE"},{site_code:"AFRICA_EN",local:{country_name:"Africa",lang:"English"},country_codes:"africa_en africa_fr africa_pt gh gm ga gn gw na ng ne lr mz mw bw sz sl et ug zm zw ke tz ao cv rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" "),lang_code:"en-002"},{site_code:"AFRICA_FR",local:{country_name:"Afrique",lang:"Fran\u00e7ais"},country_codes:"africa_en africa_fr africa_pt gh gm ga gn gw na ng ne lr mz mw bw sz sl et ug zm zw ke tz ao cv rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" "), 1299lang_code:"fr-002"},{site_code:"AFRICA_PT",local:{country_name:"\u00c1frica",lang:"Portugu\u
129900eas"},country_codes:"africa_en africa_fr africa_pt gh gm ga gn gw na ng ne lr mz mw bw sz sl et ug zm zw ke tz ao cv rw re mg yt ml mu mr bj bi bf sn sc cf dj td cm km ci cg cd tg".split(" "),lang_code:"pt-002"},{site_code:"AL",local:{country_name:"Shqip\u00ebri",lang:"Shqip"},country_codes:["al"],lang_code:"sq-AL"},{site_code:"AR",local:{country_name:"Argentina",lang:"Espa\u00f1ol"},country_codes:["ar"], 1300lang_code:"es-AR"},{site_code:"AT",local:{country_name:"\u00d6sterreich",lang:"Deutsch"},country_codes:["at"],lang_code:"de-AT"},{site_code:"AZ",local:{country_name:"Az\u0259rbaycan",lang:"Az\u0259rbaycan dili"},country_codes:["az"],lang_code:"az_AZ"},{site_code:"AU",local:{country_name:"Australia",lang:"English"},country_codes:["au"],lang_code:"en-AU"},{site_code:"BA",local:{country_name:"Bosna i Hercegovina",lang:"Bosanski"},country_codes:["ba"],lang_code:"bs-BA"},{site_code:"BD",local:{country_name:"Bangladesh", 1301lang:"English"},country_codes:["bd"],lang_code:"en-BD"},{site_code:"BE",local:{country_name:"Belgi\u00eb",lang:"Nederlands"},country_codes:["be","be_fr","lu"],lang_code:"nl-BE"},{site_code:"BE_FR",local:{country_name:"Belgium",lang:"French"},country_codes:["be","be_fr","lu"],lang_code:"fr-BE"},{site_code:"BG",local:{country_name:"\u0411\u044a\u043b\u0433\u0430\u0440\u0438\u044f",lang:"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438"},country_codes:["bg"],lang_code:"bg-BG"},{site_code:"BR", 1302local:{country_name:"Brasil",lang:"Portugu\u00eas"},country_codes:["br"],lang_code:"pt-BR"},{site_code:"CA",local:{country_name:"Canada",lang:"English"},country_codes:["ca","ca_fr"],lang_code:"en-CA"},{site_code:"CA_FR",local:{country_name:"Canada",lang:"Fran\u00e7ais"},country_codes:["ca","ca_fr"],lang_code:"fr-CA"},{site_code:"CH",local:{country_name:"Schweiz",lang:"Deutsch"},country_codes:["ch","ch_fr"],lang_code:"de-CH"},{site_code:"CH_FR",local:{country_name:"Suisse",lang:"Francaise"},country_codes:["ch", 1303"ch_fr"],lang_code:"fr-CH"},{site_code:"CL",local:{country_name:"Chile",lang:"Espa\u00f1ol"},country_codes:["cl"],lang_code:"es-CL"},{site_code:"CN",local:{country_name:"\u4e2d\u56fd",lang:"\u4e2d\u6587"},country_codes:["cn"],lang_code:"zh-CN"},{site_code:"CO",local:{country_name:"Colombia",lang:"Espa\u00f1ol"},country_codes:["co"],lang_code:"es-CO"},{site_code:"CZ",local:{country_name:"\u010cesk\u00e1 republika",lang:"\u010ce\u0161tina"},country_codes:["cz"],lang_code:"cs-CZ"},{site_code:"DE",local:{country_name:"Deutschland", 1304lang:"Deutsch"},country_codes:["de"],lang_code:"de-DE"},{site_code:"DK",local:{country_name:"Danmark",lang:"Dansk"},country_codes:["dk"],lang_code:"da-DK"},{site_code:"EE",local:{country_name:"Eesti",lang:"Eesti"},country_codes:["ee"],lang_code:"et-EE"},{site_code:"EG",local:{country_name:"\u0627\u0644\u0628\u0644\u062f \u0645\u0635\u0631",lang:"\u0627\u0644\u0639\u0631\u0628\u064a\u0629"},country_codes:["eg","so","er"],lang_code:"ar-EG"},{site_code:"ES",local:{country_name:"Espana",lang:"Espanol"}, 1305country_codes:["es"],lang_code:"es-ES"},{site_code:"FI",local:{country_name:"Suomi",lang:"Suomi"},country_codes:["fi"],lang_code:"fi-FI"},{site_code:"FR",local:{country_name:"France",lang:"Fran\u00e7ais"},country_codes:["fr"],lang_code:"fr-FR"},{site_code:"GE",local:{country_name:"\u10e1\u10d0\u10e5\u10d0\u10e0\u10d7\u10d5\u10d4\u10da\u10dd",lang:"\u10e5\u10d0\u10e0\u10d7\u10e3\u10da\u10d8"},country_codes:["ge"],lang_code:"ka_GE"},{site_code:"GR",local:{country_name:"\u0395\u03bb\u03bb\u03ac\u03b4\u03b1", 1306lang:"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac"},country_codes:["gr"],lang_code:"el-GR"},{site_code:"HK",local:{country_name:"\u9999\u6e2f",lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["hk","hk_en"],lang_code:"zh-HK"},{site_code:"HK_EN",local:{country_name:"Hong Kong",lang:"English"},country_codes:["hk","hk_en"],lang_code:"en-HK"},{site_code:"HR",local:{country_name:"Hrvatska",lang:"Hrvatski"},country_codes:["hr"],lang_code:"hr-HR"},{site_code:"HU",local:{country_name:"Magyarorsz\u00e1g", 1307lang:"Magyar"},country_codes:["hu"],lang_code:"hu-HU"},{site_code:"ID",local:{country_name:"Indonesia",lang:"Bahasa Indonesia"},country_codes:["id"],lang_code:"id-ID"},{site_code:"IE",local:{country_name:"Ireland",lang:"English"},country_codes:["ie"],lang_code:"en-IE"}
1307,{site_code:"IL",local:{country_name:"\u05d9\u05e9\u05e8\u05d0\u05dc",lang:"\u05e2\u05d1\u05e8\u05d9\u05ea"},country_codes:["il"],lang_code:"he-IL"},{site_code:"IN",local:{country_name:"India",lang:"English"},country_codes:["in","np", 1308"bd","lk"],lang_code:"en-IN"},{site_code:"IQ_AR",local:{country_name:"\u0627\u0644\u0639\u0631\u0627\u0642",lang:"\u0639\u0631\u0628\u064a"},country_codes:["iq","iq_ar","iq_ku"],lang_code:"ar-IQ"},{site_code:"IQ_KU",local:{country_name:"\u06a9\u0648\u0631\u062f\u0633\u062a\u0627\u0646",lang:"\u06a9\u0648\u0631\u062f\u06cc"},country_codes:["iq","iq_ar","iq_ku"],lang_code:"ku-IQ"},{site_code:"IRAN",local:{country_name:"\u0627\u06cc\u0631\u0627\u0646",lang:"\u0641\u0627\u0631\u0633\u064a"},country_codes:["lr", 1309"iran"],lang_code:"fa-IR"},{site_code:"IT",local:{country_name:"Italia",lang:"Italiano"},country_codes:["it","mt"],lang_code:"it-IT"},{site_code:"JP",local:{country_name:"\u65e5\u672c",lang:"\u65e5\u672c\u8a9e"},country_codes:["jp"],lang_code:"ja-JP"},{site_code:"KZ_KZ",local:{country_name:"\u049a\u0430\u0437\u0430\u049b\u0441\u0442\u0430\u043d",lang:"\u049a\u0430\u0437\u0430\u049b\u0448\u0430"},country_codes:["kz","kz_kz","kz_ru"],lang_code:"kk-KZ"},{site_code:"KZ_RU",local:{country_name:"\u041a\u0430\u0437\u0430\u0445\u0441\u0442\u0430\u043d", 1310lang:"P\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["kz","kz_kz","kz_ru"],lang_code:"ru-KZ"},{site_code:"LATIN",local:{country_name:"Latin",lang:"Espa\u00f1ol"},country_codes:"latin_en latin gt ni do bo ec sv cr pa hn gy gp mq bb bm bz lc sr aw ht ag jm ky tt".split(" "),lang_code:"es-419"},{site_code:"LATIN_EN",local:{country_name:"Latin",lang:"English"},country_codes:"latin_en latin gt ni do bo ec sv cr pa hn gy gp mq bb bm bz lc sr aw ht ag jm ky tt".split(" "),lang_code:"en-419"},{site_code:"LB", 1311local:{country_name:"Lebanon",lang:"English"},country_codes:["lb"],lang_code:"en-LB"},{site_code:"LEVANT",local:{country_name:"Levant",lang:"English"},country_codes:["levant_ar","levant","jo"],lang_code:"en-JO"},{site_code:"LEVANT_AR",local:{country_name:"Levant",lang:"Arabic"},country_codes:["levant_ar","levant","jo"],lang_code:"ar-JO"},{site_code:"LT",local:{country_name:"Lietuva",lang:"Lietuvi\u0173"},country_codes:["lt"],lang_code:"lt-LT"},{site_code:"LV",local:{country_name:"Latvija",lang:"Latvie\u0161u"}, 1312country_codes:["lv"],lang_code:"lv-LV"},{site_code:"MK",local:{country_name:"\u0421\u0435\u0432\u0435\u0440\u043d\u0430 \u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0438\u0458\u0430",lang:"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438"},country_codes:["mk"],lang_code:"mk-MK"},{site_code:"MM",local:{country_name:"Myanmar",lang:"Burmese"},country_codes:["mm"],lang_code:"my-MM"},{site_code:"MN",local:{country_name:"\u041c\u043e\u043d\u0433\u043e\u043b \u0443\u043b\u0441",lang:"\u041c\u043e\u043d\u0433\u043e\u043b \u0445\u044d\u043b"}, 1313country_codes:["mn"],lang_code:"mn-MN"},{site_code:"MX",local:{country_name:"M\u00e9xico",lang:"Espa\u00f1o"},country_codes:["mx"],lang_code:"es-MX"},{site_code:"MY",local:{country_name:"Malaysia",lang:"English"},country_codes:["my"],lang_code:"en-MY"},{site_code:"N_AFRICA",local:{country_name:"Maroc",lang:"Fran\u00e7ais"},country_codes:["ma","dz","tn"],lang_code:"fr-MA"},{site_code:"NL",local:{country_name:"Nederland",lang:"Nederlands"},country_codes:["nl"],lang_code:"nl-NL"},{site_code:"NO",local:{country_name:"Norge", 1314lang:"Norsk"},country_codes:["no"],lang_code:"no-NO"},{site_code:"NZ",local:{country_name:"New Zealand",lang:"English"},country_codes:["nz"],lang_code:"en-NZ"},{site_code:"PE",local:{country_name:"Per\u00fa ",lang:"Espa\u00f1ol"},country_codes:["pe"],lang_code:"es-PE"},{site_code:"PH",local:{country_name:"Philippines",lang:"English"},country_codes:["ph"],lang_code:"en-PH"},{site_code:"PK",local:{country_name:"Pakistan",lang:"English"},country_codes:["pk","af"],lang_code:"en-PK"},{site_code:"PL",local:{country_name:"Polska", 1315lang:"Polski"},country_codes:["pl"],lang_code:"pl-PL"},{site_code:"PS",local:{country_name:"\u0641\u0644\u0633\u0637\u064a\u0646",lang:" \u062f\u0648\u0644\u0629"},country_codes:["ps"],lang_code:"ar-PS"}
1315,{site_code:"PT",local:{country_name:"Portugal",lang:"Portugu\u00eas"},country_codes:["pt"],lang_code:"pt-PT"},{site_code:"PY",local:{country_name:"Paraguay",lang:"Espa\u00f1ol"},country_codes:["py"],lang_code:"es-PY"},{site_code:"RO",local:{country_name:"Romania",lang:"Romanian"},country_codes:["ro"], 1316lang_code:"ro-RO"},{site_code:"RS",local:{country_name:"C\u0440\u0431\u0438\u0458\u0430",lang:"C\u0440\u043f\u0441\u043a\u0438"},country_codes:["rs"],lang_code:"sr-RS"},{site_code:"RU",local:{country_name:"\u0420\u043e\u0441\u0441\u0438\u044f",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["ru"],lang_code:"ru-RU"},{site_code:"SA",local:{country_name:"\u0627\u0644\u0645\u0645\u0644\u0643\u0629 \u0627\u0644\u0639\u0631\u0628\u064a\u0629 \u0627\u0644\u0633\u0639\u0648\u062f\u064a\u0629", 1317lang:"\u0639\u0631\u0628\u064a"},country_codes:["sa","sa_en","ly"],lang_code:"ar-SA"},{site_code:"SA_EN",local:{country_name:"Saudi Arabia",lang:"English"},country_codes:["sa","sa_en","ly"],lang_code:"en-SA"},{site_code:"SE",local:{country_name:"Sverige",lang:"Svenska"},country_codes:["se"],lang_code:"sv-SE"},{site_code:"SEC",local:{country_name:"\ub300\ud55c\ubbfc\uad6d",lang:"\ud55c\uad6d\uc5b4"},country_codes:["kr"],lang_code:"ko"},{site_code:"SG",local:{country_name:"Singapore",lang:"English"}, 1318country_codes:["sg"],lang_code:"en-SG"},{site_code:"SI",local:{country_name:"Slovenija",lang:"Sloven\u0161\u010dina"},country_codes:["si"],lang_code:"sl-SI"},{site_code:"SK",local:{country_name:"Slovensko",lang:"Sloven\u010dina"},country_codes:["sk"],lang_code:"sk-SK"},{site_code:"TH",local:{country_name:"\u0e1b\u0e23\u0e30\u0e40\u0e17\u0e28\u0e44\u0e17\u0e22",lang:"\u0e44\u0e17\u0e22"},country_codes:["th"],lang_code:"th-TH"},{site_code:"TR",local:{country_name:"T\u00fcrkiye",lang:"T\u00fcrk\u00e7e"}, 1319country_codes:["tr"],lang_code:"tr-TR"},{site_code:"TW",local:{country_name:"\u53f0\u7063",lang:"\u7e41\u9ad4\u4e2d\u6587"},country_codes:["tw"],lang_code:"zh-TW"},{site_code:"UA",local:{country_name:"\u0423\u043a\u0440\u0430\u0457\u043d\u0430",lang:"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430"},country_codes:["ua"],lang_code:"uk-UA"},{site_code:"UK",local:{country_name:"United Kingdom",lang:"English"},country_codes:["gb","uk"],lang_code:"en-GB"},{site_code:"US",local:{country_name:"USA", 1320lang:"English"},country_codes:["us"],lang_code:"en"},{site_code:"UY",local:{country_name:"Uruguay",lang:"Espa\u00f1ol"},country_codes:["uy"],lang_code:"es-UY"},{site_code:"UZ_UZ",local:{country_name:"O'zbekiston",lang:"O'zbek"},country_codes:["uz","uz_ru","uz_uz"],lang_code:"uz-uz"},{site_code:"UZ_RU",local:{country_name:"\u0423\u0437\u0431\u0435\u043a\u0438\u0441\u0442\u0430\u043d",lang:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},country_codes:["uz","uz_ru","uz_uz"],lang_code:"uz-ru"},{site_code:"VN", 1321local:{country_name:"Vi\u1ec7t Nam",lang:"Ti\u1ebfng Vi\u1ec7t"},country_codes:["vn"],lang_code:"vi-VN"},{site_code:"ZA",local:{country_name:"South Africa",lang:"English"},country_codes:["za"],lang_code:"en-ZA"}],l=function(f){this.els={window:n(window),wrap:n("#wrap"),section:n(f)};this.settings={SITECD:this.getSITECD(),selector:{content:".nv16-country-selector__content-wrap",countrySelector:".nv16-country-selector__menu .menu",countryList:".nv16-country-selector__menu .menu__select",menuOptionText:".nv16-country-selector__menu .menu__list-option-text", 1322menuSelectFieldText:".menu__select-field-text",urlSitecd:"[data-country-type\x3dsitecd]",locationSitecd:"[data-country-type\x3dlocation]",continue:"[data-action\x3dcountrySelectorContinue]",close:"[data-action\x3dcountrySelectorClose]"},cookies:{accept:{name:"cookiesaccepted-geo",value:!0,days:90},selectedSitecd:{name:"site_cd",days:999},countryCodes:{name:"country_codes",value:h.getCookie("country_codes")}},otherCountry:"/function/ipredirection/ipredirectionLocalList/"};this.currentDevice=e();this.handler= 1323{handleResize:this.handleResize.bind(this),handleCountryChange:this.handleCountryChange.bind(this)};l.instance.set(f,this);this.init()};l.prototype.init=function(){this.settings.SITECD=this.getSITECD();this.settings.cookies.countryCodes.value=h.getCookie("country_codes");this.isExistSitecd()&&(this.setElements(),this.bindEvents(),this.isAccepted()||this.isCountrySelected()||!this.checkCountryValid()||this.isWebViewFlag()?this.remove():this.show())};l.prototype.reInit=function(){this.init()};l.prototype.getSITECD= 1324function(){return document.querySelector("#siteCode")?document.querySelector("#siteCode").value.toLowerCase():"test"};l.prototype.setElements=function(){var f=this;this.els.content=this.els.section.find(this.settings.selector.content);this.els.countrySelector=this.els.section.find(this.settings.selector.countrySelector);this.els.countryList=this.els.section.find(this.settings.selector.countryList);this.els.continue=this.els.section.find(this.settings.selector.continue);this.els.close=this.els.section.find(this.settings.selector.close); 1325this.els.countryList.find(this.settings.selector.urlSitecd).remove();this.els.countryList.find(this.settings.selector.locationSitecd).remove();var b=[];
1325k.forEach(function(g){(g.country_codes.find(function(p){return p===f.settings.SITECD})||g.site_code.toLowerCase()===f.settings.SITECD)&&b.push(g.site_code)});k.forEach(function(g){g.country_codes.find(function(p){return p===f.settings.cookies.countryCodes.value})&&b.push(g.site_code)});b=[].concat($jscomp.arrayFromIterable(new Set(b)));b.forEach(function(g){var p= 1326k.find(function(r){return r.site_code===g});f.setOptions(p)});window.sg.common.menu.reInit(this.els.section.find(".menu").target[0]);this.setLangCode();this.changeSelectedLangCode();this.changeSelectedText()};l.prototype.setLangCode=function(){var f=this.els.section.find(".menu option");this.els.section.find(this.settings.selector.menuOptionText).target.forEach(function(b,g){(g=f.target[g].getAttribute("lang"))&&n(b).attr("lang",g)})};l.prototype.bindEvents=function(){this.els.continue.off("click").on("click", 1327this.handleContinue.bind(this));this.els.close.off("click").on("click",this.close.bind(this));this.els.countrySelector.off("click").on("click",this.handleCountrySelector.bind(this));this.els.countryList.off("change",this.handler.handleCountryChange).on("change",this.handler.handleCountryChange);this.els.window.off("resize",this.handler.handleResize).on("resize",this.handler.handleResize)};l.prototype.show=function(){var f=this;this.els.section.css({height:this.els.content.height()+"px"});this.els.section.slideDown(400, 1328function(){f.els.section.addClass("nv16-country-selector--init");f.els.section.css({height:"auto"})})};l.prototype.close=function(){this.setAcceptCookie();this.els.section.css({height:this.els.section.height()+"px"});this.els.section.slideUp(350,this.remove.bind(this,"close"))};l.prototype.handleCountrySelector=function(){var f=this,b=new MutationObserver(function(g){g[0].target.classList.contains("open")?f.els.section.addClass("s-menu-opened"):(f.els.section.removeClass("s-menu-opened"),b.disconnect())}); 1329b.observe(this.els.countrySelector.target[0],{attributes:!0,childList:!1})};l.prototype.handleCountryChange=function(){this.changeSelectedLangCode();this.changeSelectedText()};l.prototype.changeSelectedLangCode=function(){var f=this.els.countryList.target[0].querySelector("option[selected]")&&this.els.countryList.target[0].querySelector("option[selected]").getAttribute("lang");f?this.els.section.find(this.settings.selector.menuSelectFieldText).attr("lang",f):this.els.section.find(this.settings.selector.menuSelectFieldText).removeAttr("lang")}; 1330l.prototype.changeSelectedText=function(){var f=this.els.countryList.target[0].options;(f=n(f[f.selectedIndex]).attr("data-display-text"))&&this.els.section.find(this.settings.selector.menuSelectFieldText).text(f)};l.prototype.handleContinue=function(){var f=this.els.countryList.target[0].querySelector("option[selected]").getAttribute("value"),b=document.getElementById("b2bFlag"),g=checkEppSite();if("other"===f)window.location.href=window.location.origin+"/"+this.settings.SITECD+this.settings.otherCountry; 1331else{h.setCookie(this.settings.cookies.selectedSitecd.name,f,this.settings.cookies.selectedSitecd.days);this.setAcceptCookie();this.close();var p=window.location.origin;"cn"===this.settings.SITECD&&window.location.origin.endsWith(".com.cn")&&(p=window.location.origin.replace("samsung.com.cn","samsung.com"));f===this.settings.SITECD?window.location.reload():b&&"Y"===b.value?window.location.href=p+"/"+f+"/business/":g?(f=document.getElementById("eppStoreCountryPath").value,window.location.href=p+"/"+ 1332f+"/"):window.location.href=p+"/"+f+"/"}};l.prototype.handleResize=function(){var f=e();f!==this.currentDevice&&"desktop"===f&&this.changeSelectedText();this.currentDevice=f};l.prototype.setAcceptCookie=function(){var f=this.settings.cookies.accept;h.setCookie(f.name,f.value,f.days)};l.prototype.setOptions=function(f){if(f.site_code&&f.local&&f.local.country_name&&f.local.lang){var b=f.site_code.toLowerCase(),g=b===this.settings.SITECD;f="\x3coption"+(g?" selected":"")+' value\x3d"'+b+'" data-country-type\x3d'+ 1333(g?"sitecd":"location")+' lang\x3d"'+f.lang_code+'" data-display-text\x3d"'+f.local.country_name+'"\x3e'+f.local.country_name+" / "+f.local.lang+"\x3c/option\x3e";this.els.countryList.find("option[value\x3dother]").target[0].insertAdjacentHTML("beforebegin",f)}};l.prototype.remove=function(f){f=void 0===f?!1:f;this.els.section.remove();this.els.wrap.target.length&&"close"===f&&h.setFocusFirstFocusableEl(this.els.wrap.target[0],["#header [href]","#header button, #haeder input, #haeder textarea, #haeder select"])}; 1334l.prototype.isAccepted=function(){return h.getCookie(this.settings.cookies.accept.name)?!0:!1};l.prototype.isCountrySelected=function(){return this.settings.SITECD===h.getCookie(this.settings.cookies.selectedSitecd.name)?!0:!1};l.prototype.isLocalSite=function(){var f=this;return!!this.els.countryList.find(this.settings.selector.locationSitecd).target.map(function(b){return b.value}).find(function(b){return b===f.settings.SITECD})};l.prototype.isExistSitecd=function(){var f=this;return k.find(function(b){return b.site_code.toLowerCase()=== 1335f.settings.SITECD})?!0:!1};l.prototype.checkCountryValid=function(){return this.els.countryList.find(this.settings.selector.urlSitecd).target.length&&this.els.countryList.find(this.settings.selector.locationSitecd).target.length?!0:!1};l.prototype.isOnlyOption=function(){return 2>this.els.countryList.find(this.settings.selector.urlSitecd).target.length};l.prototype.isWebViewFlag=function(){var f=!1;window.addEventListener("flutterInAppWebViewPlatformReady",function(){f=!0});var b=navigator.userAgent.toLowerCase(), 1336g=-1<b.indexOf("line")||-1<b.indexOf("naver")||-1<b.indexOf("kakao")||-1<b.indexOf("instagram")||-1<b.indexOf("fbsn")||-1<b.indexOf("twitter"),p=!(!window.EcommAndroidClient&&!window.flutter_inappwebview)||-1<b.indexOf("samsung-mobile-app"),r=-1<b.indexOf("mygalaxy")||-1<b.indexOf("samsungshopsdk");b=-1<b.indexOf("wv")||-1<b.indexOf("webview");return sessionStorage.getItem("isInAppWebViewSessionStorage")||f||g||p||r||b?!0:!1};l.instance=new WeakMap;window.sg.components.CountrySelector={init:a,reInit:function(){n(c.section).target.forEach(function(f){l.instance.has(f)&& 1337l.instance.get(f).reInit()})},show:function(){n(c.section).target.forEach(function(f){l.instance.has(f)&&l.instance.get(f).show()})},close:function(){n(c.section).target.forEach(function(f){l.instance.has(f)&&l.instance.get(f).close()})}};n.ready(a)})(); 1338(function(a,n){var h=document.querySelector(".nv16-country-selector__menu");null!=h&&h.querySelector(".menu__select").addEventListener("change",function(e){if(checkEppSite()){var c=document.getElementById("eppStoreCountryPath");if(null==c){var k=document.createElement("input");k.setAttribute("type","hidden");k.setAttribute("id","eppStoreCountryPath");h.appendChild(k);c=document.getElementById("eppStoreCountryPath")}var l=e.target.selectedOptions[0].value;if("other"!=l){e=n.trim(n("input#searchDomain").val()); 1339k=n.trim(n("input#apiStageInfo").val());var f=window.sg.epp.common.storeId;e=e+"/"+k+"/epp/v2/cms/storeinfo";k={siteCode:n.trim(l),companyCode:f};n.ajax({url:e,data:k,type:"GET",dataType:"json",async:!1,success:function(b){c.value=b&&b.response&&b.response.resultData&&b.response.resultData.storeInfo?l+"/multistore/"+f:""+l},error:function(b){c.value=""+l}})}}})})(window,$); 1340(function(a,n){function h(){var C=n("#searchDomain").val(),E=n("#apiStageInfo").val();n.ajax({url:C+"/"+E+"/"+(w?"epp/v2":"b2c")+"/contents/mobileappbanner?siteCode\x3d"+f+(w?"\x26companyCode\x3d"+a.sg.epp.common.companyCode:""),type:"GET",dataType:"json",crossDomain:!0,cache:!0,timeout:2E4,success:function(z){200===z.response.statusCode&&null!=z.response.resultData&&null!=z.response.resultData.mobileAp
1340pBanner&&(z=z.response.resultData.mobileAppBanner,y=p?{useFlag:z.iosUseFlag,headlineTitle:z.iosHeadlineTitle, 1341description:z.iosDescription,ctaTitle:z.iosCtaTitle,ctaUrl:z.iosCtaUrl,imgUrl:z.iosImgUrl}:{useFlag:z.aosUseFlag,headlineTitle:z.aosHeadlineTitle,description:z.aosDescription,ctaTitle:z.aosCtaTitle,ctaUrl:z.aosCtaUrl,imgUrl:z.aosImgUrl})},error:function(){},complete:function(){var z=y;if(0<t.length){var V=t.get(0);V.innerHTML="";if("Y"===("Y"===z.useFlag?"Y":"N")){var ca='\x3cdiv class\x3d"cod05-app-banner__icon"\x3e\t\x3cimg src\x3d"'+(z.imgUrl+'" alt\x3d"Samsung Shop App Icon"/\x3e');ca=ca+'\x3c/div\x3e\x3cdiv class\x3d"cod05-app-banner__content"\x3e\t\x3ch3 class\x3d"cod05-app-banner__title"\x3e'+ 1342(z.headlineTitle+"\x3c/h3\x3e");ca+='\t\x3cp class\x3d"cod05-app-banner__desc"\x3e'+z.description+"\x3c/p\x3e";ca+='\t\x3ca class\x3d"cta cta--underline cta--black cod05-app-banner__cta" href\x3d"'+getEppMultiStorePath(z.ctaUrl)+'" aria-label\x3d"'+z.ctaTitle+'" an-tr\x3d"cod05_app banner-'+digitalData.page.pageInfo.pageTrack+'-cta-content click" an-ca\x3d"content click" an-ac\x3d"feature" an-la\x3d"top banner:samsung shop app:download"\x3e';ca+=z.ctaTitle;V.innerHTML=ca+'\t\x3c/a\x3e\x3c/div\x3e\x3cbutton class\x3d"cod05-app-banner__close"\x3e\t\x3cspan class\x3d"hidden"\x3eClose\x3c/span\x3e\t\x3csvg class\x3d"icon" focusable\x3d"false" aria-hidden\x3d"true"\x3e\t\t\x3cuse xlink:href\x3d"#delete-bold" href\x3d"#delete-bold"\x3e\x3c/use\x3e\t\x3c/svg\x3e\x3c/button\x3e'}}z= 1343"Y"===z.useFlag?"Y":"N";!r||"Y"!==z||k()||l()?t.hide():t.show();c()}})}function e(){0<t.length&&(t.get(0).innerHTML="",t.hide())}function c(){var C=n(".cod05-app-banner__close");if(0<C.length)C.on("click",function(E){cookies.setCookie2("shopappBannerExp","true",1,!0);e()})}function k(){return!!cookies.getCookie("shopappBannerExp")}function l(){var C=!1;window.flutter_inappwebview?C=!0:window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.firebase&&(C=!0);return C}var f=n("#siteCode").val(), 1344b=window.sg.common.utils.getCurrentDevice,g=window.sg.common.utils.getMobileOS,p="ios"===g(),r="mobile"===b(),t=n(".cod05-app-banner"),w=checkEppSite(),y={useFlag:"N",headlineTitle:null,description:null,ctaTitle:null,ctaUrl:null,imgUrl:null};n(function(){0<t.length&&(r="mobile"===b(),(k()||l())&&e(),!r||k()||l()||(w?h():(t.show(),c())))})})(window,jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.